:root{
  --bg:#05070b;
  --panel:#111318;
  --panel2:#171a21;
  --line:rgba(255,255,255,.12);
  --text:#fff7ed;
  --muted:#b8bac4;
  --red:#d63a33;
  --redDark:#971d1a;
  --gold:#e8bd55;
  --radius:22px;
}

*{box-sizing:border-box}

html,body{
  margin:0;
  min-height:100%;
  background:#05070b;
  color:var(--text);
  font-family:Arial, Helvetica, sans-serif;
}

body{
  background:
    radial-gradient(circle at 0 0, rgba(160,27,27,.35), transparent 420px),
    linear-gradient(90deg,#05070b 0%,#111315 100%);
}

a{
  color:inherit;
  text-decoration:none;
}

img{
  max-width:100%;
  display:block;
}

.site-header{
  min-height:76px;
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:26px;
  padding:12px clamp(18px,5vw,110px);
  background:rgba(5,7,11,.94);
  border-bottom:1px solid var(--line);
  position:sticky;
  top:0;
  z-index:100;
}

.brand{
  display:flex;
  align-items:center;
  gap:14px;
  min-width:240px;
}

.brand img{
  width:56px;
  height:56px;
  object-fit:contain;
}

.brand strong{
  display:block;
  font-size:18px;
  font-weight:900;
  letter-spacing:.01em;
}

.brand small{
  display:block;
  margin-top:2px;
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:.24em;
  font-size:10px;
}

.site-nav{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:28px;
  flex:1;
}

.site-nav a{
  display:flex;
  align-items:center;
  height:52px;
  color:#d9d0c8;
  font-size:14px;
  font-weight:900;
  border-bottom:3px solid transparent;
}

.site-nav a:hover{
  color:#fff;
  border-bottom-color:var(--red);
}

.account{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:12px;
  min-width:190px;
  white-space:nowrap;
}

.account-chip{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:900;
}

.logout{
  color:var(--muted);
  font-size:13px;
}

.nav-toggle{
  display:none;
  border:1px solid var(--line);
  background:#141820;
  color:white;
  border-radius:12px;
  padding:10px 12px;
  font-weight:900;
}

.page{
  width:min(1180px, calc(100% - 40px));
  margin:0 auto;
  padding:44px 0 80px;
}

.hero,
.panel,
.post-card,
.comment-card{
  background:linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.025));
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:0 24px 70px rgba(0,0,0,.3);
}

.hero{
  padding:42px;
  margin-bottom:28px;
}

.eyebrow{
  color:#f3d681;
  text-transform:uppercase;
  letter-spacing:.28em;
  font-size:13px;
  font-weight:900;
  margin-bottom:14px;
}

h1{
  font-size:clamp(42px,6vw,72px);
  line-height:.98;
  margin:0 0 22px;
  letter-spacing:-.055em;
}

h2{
  font-size:30px;
  margin:0 0 18px;
  letter-spacing:-.025em;
}

h3{
  font-size:22px;
  margin:0 0 10px;
}

p{
  color:#e3dbd2;
  line-height:1.72;
}

.muted{
  color:var(--muted);
}

.grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) 340px;
  gap:28px;
  align-items:start;
}

.stack{
  display:grid;
  gap:18px;
}

.panel{
  padding:24px;
}

.btn,
button,
input[type=submit]{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border:0;
  border-radius:14px;
  padding:13px 18px;
  background:linear-gradient(135deg,var(--red),var(--redDark));
  color:#fff;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 14px 35px rgba(214,58,51,.22);
}

.btn-small{
  padding:9px 13px;
  font-size:13px;
}

.btn-outline{
  background:transparent;
  border:1px solid var(--line);
  box-shadow:none;
}

.post-card{
  overflow:visible;
}

.post-inner{
  display:grid;
  grid-template-columns:220px minmax(0,1fr);
}

.post-author{
  padding:24px;
  border-right:1px solid var(--line);
}

.post-author-top{
  display:flex;
  align-items:flex-start;
  gap:14px;
  margin-bottom:18px;
}

.post-author-name{
  font-size:18px;
  font-weight:900;
  margin-bottom:8px;
}

.post-author-stats{
  display:grid;
  gap:12px;
  margin-top:24px;
  color:var(--muted);
}

.post-body{
  padding:26px;
  min-width:0;
}

.post-title{
  font-size:28px;
  font-weight:950;
  margin:0 0 12px;
}

.post-text{
  margin:0 0 18px;
}

.post-image{
  width:100%;
  max-height:420px;
  object-fit:cover;
  border-radius:16px;
  border:1px solid var(--line);
  margin:18px 0;
}

.post-actions{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:14px;
  margin-top:18px;
}

.meta-row{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  margin:0 0 18px;
  color:var(--muted);
  font-size:14px;
}

.meta-author{
  display:flex;
  align-items:center;
  gap:12px;
}

.meta-author-name{
  color:#efe7dc;
  font-weight:900;
}

.meta-dot{
  color:#777;
}

.avatar{
  width:52px;
  height:52px;
  border-radius:50%;
  background:#30323a;
  border:1px solid rgba(255,255,255,.18);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  object-fit:cover;
  flex:0 0 auto;
  font-weight:900;
}

.avatar-sm{
  width:38px;
  height:38px;
  font-size:14px;
}

.avatar-lg{
  width:92px;
  height:92px;
  font-size:30px;
}

.badge-stack{
  display:inline-flex;
  align-items:center;
  gap:10px;
  position:relative;
  vertical-align:middle;
}

.badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:28px;
  padding:7px 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:950;
  line-height:1;
  white-space:nowrap;
}

.badge-owner{background:linear-gradient(135deg,#ffd56d,#9b5a05);color:#160e03}
.badge-co-owner{background:linear-gradient(135deg,#b65cff,#6420a4);color:white}
.badge-developer{background:linear-gradient(135deg,#4776ff,#1d49db);color:white}
.badge-admin{background:linear-gradient(135deg,#ff6558,#bd3129);color:white}
.badge-moderator{background:linear-gradient(135deg,#45d18d,#13734b);color:white}
.badge-staff{background:linear-gradient(135deg,#9ca3af,#4b5563);color:white}
.badge-member{background:linear-gradient(135deg,#334155,#111827);color:white}

.extra-badges{
  position:relative;
  display:inline-flex;
  align-items:center;
}

.more-badges{
  min-height:28px;
  padding:7px 11px;
  border-radius:999px;
  background:#191d25;
  border:1px solid var(--line);
  color:white;
  box-shadow:none;
  font-size:12px;
}

.badge-dropdown{
  display:none;
  position:absolute;
  left:0;
  top:calc(100% + 10px);
  min-width:180px;
  padding:12px;
  border-radius:16px;
  background:#0b0e14;
  border:1px solid var(--line);
  box-shadow:0 20px 50px rgba(0,0,0,.55);
  z-index:999;
  flex-direction:column;
  gap:8px;
}

.extra-badges:hover .badge-dropdown,
.extra-badges:focus-within .badge-dropdown{
  display:flex;
}

.cards{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:18px;
}

.member-card,
.dept-card{
  background:rgba(255,255,255,.045);
  border:1px solid var(--line);
  border-radius:18px;
  padding:20px;
}

.member-top{
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom:14px;
}

.form{
  display:grid;
  gap:14px;
}

label{
  display:grid;
  gap:8px;
  font-weight:850;
  color:#eee;
}

input,
textarea,
select{
  width:100%;
  background:#090b10;
  border:1px solid var(--line);
  color:white;
  border-radius:14px;
  padding:13px;
}

textarea{
  min-height:160px;
  resize:vertical;
}

.comment-card{
  padding:18px;
}

.comment-head{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:12px;
  margin-bottom:8px;
}

.comment-form{
  margin-top:18px;
  max-width:860px;
}

.notice{
  padding:14px 16px;
  border-radius:14px;
  background:rgba(217,56,52,.13);
  border:1px solid rgba(217,56,52,.3);
}

.table{
  width:100%;
  border-collapse:collapse;
}

.table th,
.table td{
  padding:14px;
  border-bottom:1px solid var(--line);
  text-align:left;
}

.table th{
  color:#f4d487;
}

.site-footer{
  border-top:1px solid var(--line);
  color:var(--muted);
  padding:22px clamp(18px,5vw,110px);
}

@media (max-width:980px){
  .site-header{
    flex-wrap:wrap;
    justify-content:flex-start;
  }

  .brand{
    flex:1;
  }

  .nav-toggle{
    display:inline-flex;
  }

  .site-nav{
    display:none;
    width:100%;
    flex-direction:column;
    align-items:flex-start;
    gap:8px;
  }

  .site-nav.open{
    display:flex;
  }

  .site-nav a{
    height:auto;
    padding:8px 0;
  }

  .account{
    width:100%;
    justify-content:flex-start;
  }

  .grid{
    grid-template-columns:1fr;
  }

  .post-inner{
    grid-template-columns:1fr;
  }

  .post-author{
    border-right:0;
    border-bottom:1px solid var(--line);
  }

  .hero{
    padding:26px;
  }
}
/* V13 homepage glow-up */
.home-hero{
  display:grid;
  grid-template-columns:minmax(0,1fr) 360px;
  gap:28px;
  align-items:stretch;
  margin-bottom:34px;
}

.home-hero-content,
.home-hero-card,
.feature-card,
.cta-banner{
  background:linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.025));
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:0 24px 70px rgba(0,0,0,.3);
}

.home-hero-content{
  min-height:520px;
  padding:48px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  position:relative;
  overflow:hidden;
}

.home-hero-content:before{
  content:"";
  position:absolute;
  inset:auto -120px -160px auto;
  width:420px;
  height:420px;
  background:radial-gradient(circle, rgba(214,58,51,.34), transparent 68%);
  pointer-events:none;
}

.home-lead{
  max-width:760px;
  font-size:18px;
  color:#eee2d8;
}

.hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:18px;
}

.stat-strip{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:12px;
  margin-top:34px;
  position:relative;
}

.stat-strip div{
  background:rgba(0,0,0,.24);
  border:1px solid var(--line);
  border-radius:18px;
  padding:18px;
}

.stat-strip strong{
  display:block;
  font-size:30px;
  line-height:1;
}

.stat-strip span{
  display:block;
  color:var(--muted);
  margin-top:6px;
  font-size:13px;
  font-weight:800;
}

.home-hero-card{
  padding:28px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  text-align:center;
}

.home-hero-card img{
  width:220px;
  margin:0 auto 22px;
  filter:drop-shadow(0 18px 30px rgba(0,0,0,.45));
}

.home-hero-card h3{
  font-size:28px;
}

.section-heading{
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:28px;
  margin:42px 0 20px;
}

.section-heading p{
  max-width:540px;
  margin:0;
  color:var(--muted);
}

.section-heading.compact{
  margin:0 0 16px;
}

.feature-grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0,1fr));
  gap:18px;
  margin-bottom:34px;
}

.feature-card{
  padding:24px;
}

.feature-icon{
  display:inline-flex;
  width:46px;
  height:46px;
  align-items:center;
  justify-content:center;
  background:rgba(214,58,51,.13);
  border:1px solid rgba(214,58,51,.26);
  border-radius:16px;
  font-size:23px;
  margin-bottom:16px;
}

.home-grid{
  margin-top:18px;
}

.steps{
  margin:0 0 18px;
  padding-left:20px;
  color:#e3dbd2;
  line-height:1.8;
}

.dept-mini-list{
  display:grid;
  gap:10px;
  margin-top:14px;
}

.dept-mini-list a{
  display:flex;
  justify-content:space-between;
  gap:14px;
  align-items:center;
  padding:13px 14px;
  background:rgba(255,255,255,.045);
  border:1px solid var(--line);
  border-radius:14px;
}

.dept-mini-list strong{
  color:#f3d681;
  white-space:nowrap;
}

.cta-banner{
  margin-top:34px;
  padding:34px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:22px;
}

.cta-banner h2{
  margin-bottom:8px;
}

.cta-banner p{
  margin:0;
  color:var(--muted);
}

@media (max-width:1050px){
  .home-hero,
  .feature-grid{
    grid-template-columns:1fr 1fr;
  }
}

@media (max-width:760px){
  .home-hero,
  .feature-grid{
    grid-template-columns:1fr;
  }

  .home-hero-content{
    min-height:auto;
    padding:30px;
  }

  .stat-strip{
    grid-template-columns:1fr;
  }

  .section-heading,
  .cta-banner{
    align-items:flex-start;
    flex-direction:column;
  }
}
/* V14 backend controls and rules */
.backend-shell{
  margin-bottom:22px;
}

.backend-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:20px;
}

.backend-tabs{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:18px;
}

.backend-tabs a{
  padding:11px 14px;
  border:1px solid var(--line);
  border-radius:999px;
  color:#ddd;
  font-weight:900;
  background:rgba(255,255,255,.035);
}

.backend-tabs a.active,
.backend-tabs a:hover{
  background:linear-gradient(135deg,var(--red),var(--redDark));
  color:white;
}

.checkbox-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(140px,1fr));
  gap:10px;
}

.check-pill{
  display:flex;
  align-items:center;
  gap:9px;
  padding:12px 13px;
  border:1px solid var(--line);
  border-radius:14px;
  background:rgba(255,255,255,.04);
  cursor:pointer;
}

.check-pill input{
  width:auto;
}

.check-pill span{
  font-weight:900;
}

.form-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

button.danger{
  background:linear-gradient(135deg,#7f1d1d,#450a0a);
}

.rule-card{
  display:grid;
  grid-template-columns:64px minmax(0,1fr);
  gap:18px;
  padding:22px;
  border:1px solid var(--line);
  border-radius:18px;
  background:rgba(255,255,255,.04);
}

.rule-number{
  width:48px;
  height:48px;
  border-radius:16px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(214,58,51,.15);
  border:1px solid rgba(214,58,51,.3);
  color:#f3d681;
  font-weight:950;
  font-size:20px;
}

/* V15 auth links */
.account .logout{margin-left:4px}.panel a:not(.btn){color:#f3d681;font-weight:900}



/* V17 roles, banned users, and moderation */
.badge-banned{
  background:linear-gradient(135deg,#555,#1f1f1f);
  color:#ddd;
  border:1px solid rgba(255,255,255,.18);
}

.member-card.is-banned{
  opacity:.48;
  filter:grayscale(1);
  background:rgba(120,120,120,.045);
}

.check-pill.disabled{
  opacity:.45;
  cursor:not-allowed;
}

.check-pill.disabled input{
  cursor:not-allowed;
}

.is-hidden-content{
  border-color:rgba(243,214,129,.35);
  background:rgba(243,214,129,.045);
}

.badge-stack:has(.badge-banned) .badge:not(.badge-banned){
  opacity:.65;
}


/* V18 mail toggle / resend / display name */
.quick-resend-form{
  margin:10px 0 18px;
}

/* V19 compact badges */

.badge-compact-wrap{
  display:inline-flex;
  align-items:center;
  gap:8px;
  position:relative;
  flex-wrap:nowrap;
}

.badge-more{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:30px;
  height:28px;
  padding:0 10px;
  border-radius:999px;
  background:#191d25;
  border:1px solid var(--line);
  color:white;
  font-size:12px;
  font-weight:950;
  cursor:default;
}

.badge-tooltip{
  display:none;
  position:absolute;
  left:0;
  top:calc(100% + 10px);
  min-width:190px;
  padding:12px;
  border-radius:16px;
  background:#0b0e14;
  border:1px solid var(--line);
  box-shadow:0 20px 50px rgba(0,0,0,.55);
  z-index:999;
  flex-wrap:wrap;
  gap:8px;
}

.badge-more:hover .badge-tooltip,
.badge-more:focus-within .badge-tooltip{
  display:flex;
}

/* V20 global post modal and account menu */

.account-menu-wrap{
  position:relative;
}

.account-menu-button{
  border:0;
  background:rgba(255,255,255,.045);
  color:var(--text);
  padding:7px 10px;
  border-radius:999px;
  box-shadow:none;
}

.account-caret{
  color:var(--muted);
  font-size:12px;
}

.account-menu{
  display:none;
  position:absolute;
  right:0;
  top:calc(100% + 12px);
  min-width:220px;
  padding:10px;
  border-radius:18px;
  background:#0b0e14;
  border:1px solid var(--line);
  box-shadow:0 22px 55px rgba(0,0,0,.55);
  z-index:1000;
}

.account-menu.is-open{
  display:grid;
  gap:6px;
}

.account-menu a{
  padding:12px 13px;
  border-radius:12px;
  color:#e8e0d8;
  font-weight:900;
}

.account-menu a:hover{
  background:rgba(255,255,255,.07);
  color:#fff;
}

.create-post-trigger{
  white-space:nowrap;
}

.post-modal-backdrop{
  display:none;
  position:fixed;
  inset:0;
  z-index:2000;
  background:rgba(0,0,0,.74);
  backdrop-filter:blur(9px);
  padding:24px;
  overflow:auto;
}

.post-modal-backdrop.is-open{
  display:grid;
  place-items:center;
}

body.modal-open{
  overflow:hidden;
}

.post-modal{
  width:min(780px,100%);
  max-height:92vh;
  overflow:auto;
  border-radius:30px;
  background:
    radial-gradient(circle at top left, rgba(214,58,51,.18), transparent 26rem),
    linear-gradient(145deg, #151820, #07090d);
  border:1px solid var(--line);
  box-shadow:0 30px 90px rgba(0,0,0,.7);
  padding:28px;
}

.post-modal-head{
  display:flex;
  justify-content:space-between;
  gap:20px;
  align-items:flex-start;
  margin-bottom:22px;
}

.post-modal-head h2{
  margin-bottom:8px;
}

.post-modal-head p{
  margin:0;
}

.post-modal-close{
  width:44px;
  height:44px;
  border-radius:999px;
  padding:0;
  background:rgba(255,255,255,.08);
  box-shadow:none;
  font-size:28px;
  line-height:1;
}

.post-modal-form textarea{
  min-height:190px;
}

.post-image-preview-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(130px,1fr));
  gap:12px;
}

.post-image-preview-item{
  overflow:hidden;
  border-radius:16px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.045);
}

.post-image-preview-item img{
  width:100%;
  height:110px;
  object-fit:cover;
}

.post-image-preview-item span{
  display:block;
  padding:9px 10px;
  font-size:12px;
  color:var(--muted);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.post-gallery{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:14px;
  margin:22px 0;
}

.post-gallery img{
  width:100%;
  max-height:420px;
  object-fit:cover;
  border-radius:16px;
  border:1px solid var(--line);
}

@media (max-width:980px){
  .account{
    align-items:flex-start;
    flex-wrap:wrap;
  }

  .account-menu{
    left:0;
    right:auto;
  }
}

/* V21 image galleries */

.post-gallery{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  margin:22px 0;
}

.gallery-item{
  position:relative;
  overflow:hidden;
  border-radius:18px;
  cursor:pointer;
  border:1px solid var(--line);
  background:#111;
  aspect-ratio:1/1;
}

.gallery-item img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .22s ease;
}

.gallery-item:hover img{
  transform:scale(1.03);
}

.gallery-more{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.66);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:34px;
  font-weight:1000;
  color:white;
  backdrop-filter:blur(3px);
}

.gallery-lightbox{
  display:none;
  position:fixed;
  inset:0;
  z-index:4000;
  background:rgba(0,0,0,.94);
  backdrop-filter:blur(10px);
  padding:30px;
}

.gallery-lightbox.is-open{
  display:flex;
  align-items:center;
  justify-content:center;
}

.gallery-lightbox-inner{
  width:min(1400px,100%);
  display:grid;
  grid-template-columns:80px minmax(0,1fr) 80px;
  gap:20px;
  align-items:center;
}

.gallery-lightbox-image-wrap{
  width:100%;
  max-height:88vh;
  display:flex;
  align-items:center;
  justify-content:center;
}

.gallery-lightbox-image{
  max-width:100%;
  max-height:88vh;
  border-radius:20px;
  object-fit:contain;
}

.gallery-lightbox-nav{
  width:64px;
  height:64px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(255,255,255,.08);
  color:white;
  font-size:34px;
  font-weight:900;
  cursor:pointer;
  box-shadow:none;
}

.gallery-lightbox-close{
  position:absolute;
  top:24px;
  right:24px;
  width:56px;
  height:56px;
  border-radius:999px;
  background:rgba(255,255,255,.1);
  color:white;
  font-size:34px;
  border:1px solid rgba(255,255,255,.12);
  box-shadow:none;
}

.gallery-lightbox-counter{
  position:absolute;
  bottom:28px;
  left:50%;
  transform:translateX(-50%);
  padding:10px 16px;
  border-radius:999px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.1);
  color:white;
  font-weight:900;
}

@media (max-width:900px){

  .post-gallery{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .gallery-lightbox-inner{
    grid-template-columns:60px minmax(0,1fr) 60px;
  }

}

@media (max-width:600px){

  .post-gallery{
    grid-template-columns:1fr 1fr;
  }

  .gallery-lightbox{
    padding:12px;
  }

  .gallery-lightbox-nav{
    width:50px;
    height:50px;
    font-size:26px;
  }

}

/* V22 cleaner post detail layout */

.hero.post-detail-hero{
  padding:32px;
}

.post-detail-hero h1{
  font-size:clamp(34px,4vw,54px);
  margin-bottom:18px;
}

.post-detail-hero .eyebrow{
  margin-bottom:10px;
}

.post-content-box{
  margin-top:22px;
  padding:18px 20px;
  border-radius:18px;
  background:rgba(0,0,0,.22);
  border:1px solid rgba(255,255,255,.08);
}

.post-content-box p{
  margin:0;
  font-size:16px;
  line-height:1.8;
}

.post-gallery{
  margin:18px 0 0;
}

@media (max-width:700px){
  .hero.post-detail-hero{
    padding:24px;
  }

  .post-detail-hero h1{
    font-size:36px;
  }
}

/* V26 cleaner responsive header */

.site-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:22px;
}

.brand{
  display:flex;
  align-items:center;
  gap:14px;
  min-width:220px;
  flex:0 0 auto;
}

.brand img{
  width:46px;
  height:auto;
  flex-shrink:0;
}

.brand span{
  display:flex;
  flex-direction:column;
  line-height:1;
}

.site-nav{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:26px;
  flex:1 1 auto;
  min-width:0;
}

.site-nav > a,
.nav-dropdown-button{
  white-space:nowrap;
}

.nav-dropdown{
  position:relative;
  display:flex;
  align-items:center;
}

.nav-dropdown-button{
  display:flex;
  align-items:center;
  gap:6px;
  border:0;
  background:none;
  color:#e8e0d8;
  font-size:14px;
  font-weight:900;
  font-family:inherit;
  cursor:pointer;
  padding:0;
  height:auto;
  border-radius:0;
  box-shadow:none;
  transition:color .18s ease;
}

.nav-dropdown-button:hover{
  color:#fff;
}

.nav-dropdown-button::before,
.nav-dropdown-button::after{
  display:none !important;
  content:none !important;
}

.nav-dropdown-button span{
  font-size:11px;
  opacity:.7;
}

.nav-dropdown-menu{
  display:none;
  position:absolute;
  top:calc(100% + 12px);
  left:50%;
  transform:translateX(-50%);
  min-width:220px;
  padding:10px;
  border-radius:18px;
  background:#0c1016;
  border:1px solid rgba(255,255,255,.08);
  box-shadow:0 20px 45px rgba(0,0,0,.45);
  z-index:1000;
}

.nav-dropdown-menu.is-open{
  display:grid;
  gap:6px;
}

.nav-dropdown:hover .nav-dropdown-menu{
  display:grid;
  gap:6px;
}

.nav-dropdown-menu a{
  display:block;
  padding:11px 13px;
  border-radius:12px;
  text-decoration:none;
  color:#fff;
  font-weight:700;
}

.nav-dropdown-menu a:hover{
  background:rgba(255,255,255,.06);
}

.account{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:12px;
  flex:0 1 auto;
  min-width:0;
}

.account-menu-wrap{
  min-width:0;
  max-width:210px;
}

.account-menu-button{
  min-width:0;
  max-width:210px;
  overflow:hidden;
}

.account-menu-button span:not(.account-caret){
  display:inline-block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  max-width:clamp(70px,8vw,135px);
}

@media (max-width:1200px){

  .brand span{
    display:none;
  }

  .site-nav{
    gap:18px;
  }

}

@media (max-width:980px){

  .site-header{
    flex-wrap:wrap;
    justify-content:flex-start;
  }

  .nav-toggle{
    display:inline-flex;
    margin-left:auto;
  }

  .site-nav{
    display:none;
    width:100%;
    flex-direction:column;
    align-items:flex-start;
    gap:10px;
    padding-top:10px;
  }

  .site-nav.open{
    display:flex;
  }

  .site-nav > a{
    width:100%;
  }

  .nav-dropdown{
    width:100%;
    flex-direction:column;
    align-items:flex-start;
  }

  .nav-dropdown-button{
    padding:8px 0;
  }

  .nav-dropdown-menu{
    position:static;
    transform:none;
    width:100%;
    margin-top:8px;
    box-shadow:none;
    background:rgba(255,255,255,.03);
  }

  .account{
    width:100%;
    justify-content:flex-start;
    flex-wrap:wrap;
  }

}

/* V31 ORP homepage, less card hell */

.orp-home{
  display:grid;
  gap:44px;
}

.orp-hero{
  min-height:430px;
  display:grid;
  grid-template-columns:minmax(0,1fr) 300px;
  gap:42px;
  align-items:center;
  position:relative;
  padding:34px 0 42px;
  border-bottom:1px solid rgba(255,255,255,.08);
}

.orp-hero::before{
  content:"";
  position:absolute;
  inset:-160px auto auto -180px;
  width:520px;
  height:520px;
  background:radial-gradient(circle, rgba(214,58,51,.18), transparent 68%);
  pointer-events:none;
}

.orp-hero-copy{
  position:relative;
  z-index:1;
}

.orp-hero h1{
  max-width:820px;
  font-size:clamp(3.4rem,7vw,6.4rem);
  line-height:.88;
  margin:0 0 22px;
}

.orp-hero p{
  max-width:680px;
  font-size:1.08rem;
  color:rgba(255,255,255,.68);
}

.orp-hero-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:28px;
}

.orp-hero-mark{
  display:flex;
  justify-content:center;
  align-items:center;
}

.orp-hero-mark img{
  width:min(260px,80%);
  filter:drop-shadow(0 24px 45px rgba(0,0,0,.5));
}

.orp-intro{
  display:grid;
  grid-template-columns:minmax(0,.9fr) minmax(0,1fr);
  gap:38px;
  align-items:end;
}

.orp-intro h2{
  font-size:clamp(2rem,4vw,3.2rem);
  line-height:1;
  max-width:620px;
}

.orp-intro p{
  color:rgba(255,255,255,.64);
  margin:0;
  max-width:620px;
}

.orp-strip{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  border-top:1px solid rgba(255,255,255,.08);
  border-bottom:1px solid rgba(255,255,255,.08);
}

.orp-strip div{
  padding:20px 22px;
  border-right:1px solid rgba(255,255,255,.08);
}

.orp-strip div:last-child{
  border-right:0;
}

.orp-strip strong{
  display:block;
  font-size:1.7rem;
  line-height:1;
}

.orp-strip span{
  display:block;
  margin-top:5px;
  color:rgba(255,255,255,.52);
  font-size:.82rem;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.12em;
}

.orp-main{
  display:grid;
  grid-template-columns:minmax(0,1fr) 330px;
  gap:46px;
  align-items:start;
}

.orp-section-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:20px;
  margin-bottom:24px;
}

.orp-section-head h2,
.orp-side h2{
  margin:0;
}

.orp-news-list{
  display:grid;
  gap:0;
}

.orp-news-item{
  display:grid;
  grid-template-columns:74px minmax(0,1fr);
  gap:22px;
  padding:24px 0;
  border-bottom:1px solid rgba(255,255,255,.075);
}

.orp-news-item:first-child{
  padding-top:0;
}

.orp-news-date{
  width:64px;
  height:64px;
  border-radius:18px;
  display:grid;
  place-items:center;
  align-content:center;
  background:rgba(255,255,255,.045);
  border:1px solid rgba(255,255,255,.08);
}

.orp-news-date span{
  color:#f3d681;
  font-size:.75rem;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.12em;
}

.orp-news-date strong{
  font-size:1.45rem;
  line-height:1;
}

.orp-news-body h3{
  font-size:1.45rem;
  margin:0 0 8px;
}

.orp-news-body p{
  margin:0 0 10px;
  color:rgba(255,255,255,.64);
}

.orp-text-link{
  color:#f3d681;
  font-weight:900;
  font-size:.92rem;
}

.orp-side{
  display:grid;
  gap:34px;
}

.orp-side-block{
  padding-left:24px;
  border-left:1px solid rgba(255,255,255,.08);
}

.orp-side-block.subtle{
  opacity:.92;
}

.orp-side-block p{
  color:rgba(255,255,255,.62);
}

.orp-dept-list{
  display:grid;
  gap:0;
  margin-top:18px;
}

.orp-dept-list a{
  display:flex;
  justify-content:space-between;
  gap:16px;
  padding:13px 0;
  border-bottom:1px solid rgba(255,255,255,.07);
}

.orp-dept-list span{
  font-weight:850;
}

.orp-dept-list strong{
  color:#f3d681;
  font-size:.78rem;
  text-transform:uppercase;
  letter-spacing:.1em;
  white-space:nowrap;
}

.orp-final{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding:34px 0 4px;
  border-top:1px solid rgba(255,255,255,.08);
}

.orp-final h2{
  font-size:clamp(1.9rem,4vw,3rem);
  margin:0;
}

@media (max-width:980px){

  .orp-hero,
  .orp-intro,
  .orp-main{
    grid-template-columns:1fr;
  }

  .orp-hero{
    min-height:auto;
  }

  .orp-hero-mark{
    justify-content:flex-start;
  }

  .orp-hero-mark img{
    width:180px;
  }

  .orp-strip{
    grid-template-columns:1fr;
  }

  .orp-strip div{
    border-right:0;
    border-bottom:1px solid rgba(255,255,255,.08);
  }

  .orp-strip div:last-child{
    border-bottom:0;
  }

  .orp-side-block{
    padding-left:0;
    border-left:0;
    border-top:1px solid rgba(255,255,255,.08);
    padding-top:26px;
  }

  .orp-final{
    align-items:flex-start;
    flex-direction:column;
  }

}

@media (max-width:640px){

  .orp-news-item{
    grid-template-columns:1fr;
    gap:14px;
  }

  .orp-news-date{
    width:58px;
    height:58px;
  }

}
/* V39 cinematic ORP homepage with real scroll parallax */

body:has(.orp-cinema-home) .page{
  width:100%;
  max-width:none;
  margin:0;
  padding:0;
}

.orp-cinema-home{
  margin:0;
  overflow:hidden;
  background:#05070b;
}

.orp-cinema-hero{
  position:relative;
  min-height:calc(100vh - 98px);
  width:100%;
  overflow:hidden;
  display:flex;
  align-items:center;
  isolation:isolate;
}

.orp-hero-bg{
  position:absolute;
  inset:-5% 0;
  background-image:url('/assets/parliment.png');
  background-size:cover;
  background-position:center;
  filter:saturate(1.16) contrast(1.08) brightness(.96);
  transform:translate3d(0,var(--bg-y,0px),0) scale(1.05);
  will-change:transform;
}

.orp-hero-car{
  position:absolute;
  z-index:2;
  right:-10vw;
  bottom:-7vw;
  width:min(88vw, 1500px);
  pointer-events:none;
  user-select:none;
  transform:
    translate3d(var(--car-x,0px), var(--car-y,0px), 0)
    scale(var(--car-scale,1));
  transform-origin:center bottom;
  will-change:transform;
  filter:
    drop-shadow(0 42px 64px rgba(0,0,0,.82))
    drop-shadow(0 0 38px rgba(255,35,35,.24));
}

.orp-hero-overlay{
  position:absolute;
  z-index:3;
  inset:0;
  background:
    linear-gradient(
      90deg,
      rgba(5,7,11,.97) 0%,
      rgba(5,7,11,.78) 31%,
      rgba(5,7,11,.20) 60%,
      rgba(5,7,11,.14) 100%
    ),
    linear-gradient(
      180deg,
      rgba(5,7,11,.04) 0%,
      rgba(5,7,11,.08) 58%,
      #05070b 100%
    );
}

.orp-hero-inner{
  position:relative;
  z-index:4;
  width:min(1280px, calc(100% - 96px));
  margin:0 auto;
  padding:58px 0 54px;
}

.orp-hero-copy{
  max-width:600px;
}

.orp-kicker{
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom:24px;
  color:rgba(255,255,255,.88);
  font-size:.7rem;
  font-weight:950;
  letter-spacing:.32em;
  text-transform:uppercase;
}

.orp-kicker::before{
  content:"";
  width:38px;
  height:2px;
  background:#ff3030;
  box-shadow:0 0 18px rgba(255,48,48,.7);
}

.orp-hero-copy h1{
  margin:0 0 22px;
  font-size:clamp(3.2rem,5.4vw,5.7rem);
  line-height:.9;
  letter-spacing:-.07em;
  text-shadow:0 10px 34px rgba(0,0,0,.45);
}

.orp-hero-copy h1 span{
  display:block;
  color:#ff3838;
  text-shadow:
    0 0 32px rgba(255,35,35,.34),
    0 10px 34px rgba(0,0,0,.45);
}

.orp-hero-copy p{
  max-width:520px;
  margin:0;
  color:rgba(255,255,255,.82);
  font-size:1rem;
  line-height:1.72;
  text-shadow:0 6px 22px rgba(0,0,0,.5);
}

.orp-hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:16px;
  margin-top:32px;
}

.orp-hero-actions .btn{
  min-height:52px;
  padding:14px 21px;
  text-transform:uppercase;
  letter-spacing:.04em;
}

.orp-hero-stats{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:0;
  max-width:580px;
  margin-top:34px;
  padding-top:20px;
  border-top:1px solid rgba(255,255,255,.16);
}

.orp-hero-stats div{
  padding:0 22px;
  border-right:1px solid rgba(255,255,255,.16);
}

.orp-hero-stats div:first-child{
  padding-left:0;
}

.orp-hero-stats div:last-child{
  border-right:0;
}

.orp-hero-stats strong{
  display:block;
  font-size:1.42rem;
  line-height:1;
  color:white;
}

.orp-hero-stats span{
  display:block;
  margin-top:6px;
  color:rgba(255,255,255,.66);
  font-size:.84rem;
}

.orp-difference{
  padding:58px 0 52px;
  border-bottom:1px solid rgba(255,255,255,.08);
  background:
    radial-gradient(circle at 50% 0%, rgba(214,58,51,.10), transparent 30rem),
    #05070b;
}

.orp-section-kicker{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  margin-bottom:34px;
  color:rgba(255,255,255,.86);
  font-size:.72rem;
  font-weight:950;
  letter-spacing:.34em;
  text-transform:uppercase;
}

.orp-section-kicker::before{
  content:"";
  width:38px;
  height:2px;
  background:#ff3030;
}

.orp-difference-grid{
  width:min(1050px, calc(100% - 48px));
  margin:0 auto;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
}

.orp-difference-item{
  text-align:center;
  padding:10px 42px;
  border-right:1px solid rgba(255,255,255,.12);
}

.orp-difference-item:last-child{
  border-right:0;
}

.orp-icon{
  color:#ff3838;
  font-size:1.8rem;
  margin-bottom:14px;
}

.orp-difference-item h3{
  margin-bottom:10px;
  font-size:1.05rem;
}

.orp-difference-item p{
  margin:0;
  color:rgba(255,255,255,.64);
  font-size:.96rem;
  line-height:1.68;
}

.orp-home-lower{
  width:min(1180px, calc(100% - 48px));
  margin:0 auto;
  padding:52px 0 80px;
  display:grid;
  grid-template-columns:minmax(0,1fr) 330px;
  gap:46px;
}

.orp-section-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:20px;
  margin-bottom:22px;
}

.orp-section-head h2,
.orp-dept-preview h2{
  margin:0;
}

.orp-news-list{
  display:grid;
  gap:0;
}

.orp-news-row{
  display:grid;
  grid-template-columns:86px minmax(0,1fr);
  gap:20px;
  padding:20px 0;
  border-bottom:1px solid rgba(255,255,255,.08);
}

.orp-news-row:first-child{
  padding-top:0;
}

.orp-news-date{
  color:#f3d681;
  font-size:.82rem;
  font-weight:950;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.orp-news-row h3{
  margin:0 0 8px;
  font-size:1.35rem;
}

.orp-news-row p{
  margin:0 0 8px;
  color:rgba(255,255,255,.64);
}

.orp-news-row span{
  color:rgba(255,255,255,.46);
  font-size:.86rem;
}

.orp-dept-preview{
  padding-left:26px;
  border-left:1px solid rgba(255,255,255,.1);
}

.orp-dept-list{
  display:grid;
  margin-top:18px;
}

.orp-dept-list a{
  display:flex;
  justify-content:space-between;
  gap:14px;
  padding:13px 0;
  border-bottom:1px solid rgba(255,255,255,.08);
}

.orp-dept-list span{
  font-weight:850;
}

.orp-dept-list strong{
  color:#f3d681;
  font-size:.76rem;
  text-transform:uppercase;
  letter-spacing:.09em;
  white-space:nowrap;
}

@media (max-width:900px){

  .orp-cinema-hero{
    min-height:auto;
    align-items:flex-start;
  }

  .orp-hero-bg{
    background-position:center top;
    transform:translate3d(0,var(--bg-y,0px),0) scale(1.1);
  }

.orp-hero-car{
  width:190vw;
  right:-95vw;
  bottom:-4px;
  opacity:.82;
}

  .orp-hero-overlay{
    background:
      linear-gradient(
        180deg,
        rgba(5,7,11,.16) 0%,
        rgba(5,7,11,.38) 20%,
        rgba(5,7,11,.78) 60%,
        #05070b 100%
      ),
      linear-gradient(
        90deg,
        rgba(5,7,11,.86),
        rgba(5,7,11,.20)
      );
  }

  .orp-hero-inner{
    width:calc(100% - 32px);
    padding:112px 0 34px;
  }

  .orp-kicker{
    font-size:.55rem;
    letter-spacing:.18em;
    margin-bottom:14px;
    gap:10px;
  }

  .orp-kicker::before{
    width:28px;
  }

  .orp-hero-copy h1{
    font-size:clamp(2.75rem,12.8vw,4.1rem);
    line-height:.9;
    letter-spacing:-.065em;
    margin-bottom:16px;
  }

  .orp-hero-copy p{
    font-size:.96rem;
    line-height:1.58;
    color:rgba(255,255,255,.84);
  }

  .orp-hero-actions{
    display:grid;
    grid-template-columns:1fr;
    gap:10px;
    margin-top:24px;
  }

  .orp-hero-actions .btn{
    width:100%;
    min-height:50px;
  }

  .orp-hero-stats{
    grid-template-columns:repeat(3,1fr);
    margin-top:24px;
    padding-top:16px;
  }

  .orp-hero-stats div{
    padding:0 8px;
  }

  .orp-hero-stats div:first-child{
    padding-left:0;
  }

  .orp-hero-stats strong{
    font-size:1.08rem;
  }

  .orp-hero-stats span{
    font-size:.68rem;
  }

  .orp-difference{
    padding:42px 0 36px;
  }

  .orp-section-kicker{
    width:calc(100% - 36px);
    margin:0 auto 24px;
    justify-content:flex-start;
    font-size:.6rem;
    letter-spacing:.2em;
  }

  .orp-difference-grid{
    width:calc(100% - 36px);
    grid-template-columns:1fr;
  }

  .orp-difference-item{
    text-align:left;
    padding:20px 0;
    border-right:0;
    border-bottom:1px solid rgba(255,255,255,.1);
  }

  .orp-difference-item:last-child{
    border-bottom:0;
  }

  .orp-home-lower{
    width:calc(100% - 36px);
    grid-template-columns:1fr;
    gap:34px;
    padding-top:38px;
  }

  .orp-section-head{
    align-items:flex-start;
    flex-direction:column;
  }

  .orp-news-row{
    grid-template-columns:1fr;
    gap:8px;
  }

  .orp-dept-preview{
    padding-left:0;
    border-left:0;
    padding-top:28px;
    border-top:1px solid rgba(255,255,255,.1);
  }

}