/* ============================================================
   MISC CLUB — Modern dark editorial design
   Palette: jet #0a0a0a · ink #141414 · charcoal #1c1c1c
            gold #C9A84C · gold-bright #E5C66A · crimson #C8102E
            text #EDEDED · muted #9A9A9A · dim #6A6A6A
   Type:   Inter (body) + Barlow Condensed (display)
   ============================================================ */
:root {
  --jet:      #0a0a0a;
  --ink:      #141414;
  --char:     #1c1c1c;
  --line:     #2a2a2a;
  --gold:     #C9A84C;
  --gold-2:   #E5C66A;
  --crimson:  #C8102E;
  --text:     #EDEDED;
  --muted:    #9A9A9A;
  --dim:      #6A6A6A;
  --max-w:    1240px;
  --pad-x:    clamp(20px, 5vw, 64px);
  --display:  'Barlow Condensed', system-ui, -apple-system, sans-serif;
  --body:     'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--body); background: var(--jet); color: var(--text); line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad-x); }

/* ── reveal animation ────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2,.7,.2,1) var(--d, 0s), transform .9s cubic-bezier(.2,.7,.2,1) var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { transition: none; transform: none; opacity: 1; } }

/* ── buttons ─────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 26px; border: 1.5px solid transparent; border-radius: 2px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.85rem; cursor: pointer; transition: all .25s ease; white-space: nowrap; }
.btn-sm { padding: 9px 18px; font-size: 0.78rem; }
.btn-lg { padding: 16px 32px; font-size: 0.92rem; }
.btn-gold { background: var(--gold); color: #111; }
.btn-gold:hover { background: var(--gold-2); transform: translateY(-2px); box-shadow: 0 12px 30px -10px rgba(201,168,76,.6); }
.btn-ghost { background: transparent; color: var(--text); border-color: rgba(255,255,255,.25); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn span { transition: transform .25s ease; }
.btn:hover span { transform: translateX(4px); }

/* ── topbar ──────────────────────────────────────────── */
.topbar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px var(--pad-x); background: rgba(10,10,10,.55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: background .3s ease, border-color .3s ease, padding .3s ease; }
.topbar.scrolled { background: rgba(10,10,10,.92); border-bottom-color: var(--line); padding-top: 12px; padding-bottom: 12px; }
.logo { display: flex; align-items: center; gap: 12px; color: var(--text); }
.logo img { width: 42px; height: 42px; object-fit: contain; }
.logo span { display: flex; flex-direction: column; line-height: 1.05; }
.logo strong { font-family: var(--display); font-size: 1.4rem; font-weight: 900; letter-spacing: 0.05em; color: var(--text); }
.logo em { font-style: normal; font-size: 0.7rem; color: var(--muted); letter-spacing: 0.08em; }
.topnav { display: flex; gap: 28px; }
.topnav a { font-size: 0.83rem; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; font-weight: 500; transition: color .2s; }
.topnav a:hover { color: var(--gold); }
@media (max-width: 900px) { .topnav { display: none; } }

/* ── HERO ───────────────────────────────────────────── */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 80px var(--pad-x) 120px; overflow: hidden; isolation: isolate; }

/* ── Crossfading Ken-Burns slideshow ─────────────────────────────────────
   7 frames × 7s visible each = 49s full cycle (last frame is the aerial
   drone shot — a "where we are" reveal that closes the rotation).
   Each frame slowly zooms (Ken Burns) while visible, then crossfades to the
   next. Reduced-motion users see only frame 1 with no animation.
   ──────────────────────────────────────────────────────────────────────── */
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-bg-frame {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  /* Lighter treatment so photos read clearly; overlay handles text contrast. */
  filter: contrast(1.05) saturate(1.05);
  opacity: 0;
  transform: scale(1.05);
  will-change: opacity, transform;
  animation: heroCrossfade 49s infinite cubic-bezier(.4,0,.2,1), heroKenBurns 49s infinite linear;
}
/* Frame 1 needs its OWN crossfade so it's visible at page load (no blank intro).
   It fades back in during 96-100% so the cycle loops continuously. */
.hero-bg-frame:nth-child(1) {
  animation: heroCrossfadeFirst 49s infinite cubic-bezier(.4,0,.2,1), heroKenBurns 49s infinite linear;
  animation-delay: 0s, 0s;
}
.hero-bg-frame:nth-child(2) { animation-delay:  7s,  7s; }
.hero-bg-frame:nth-child(3) { animation-delay: 14s, 14s; }
.hero-bg-frame:nth-child(4) { animation-delay: 21s, 21s; }
.hero-bg-frame:nth-child(5) { animation-delay: 28s, 28s; }
.hero-bg-frame:nth-child(6) { animation-delay: 35s, 35s; }
.hero-bg-frame:nth-child(7) { animation-delay: 42s, 42s; }

/* Frames 2-7: invisible at start of cycle, fade in, hold ~5.5s, fade out.
   7 of 49 seconds visible = ~14.3%; we hold opacity 1 from 2.5% to 13.5%
   and fade through 1.2s on each side. */
@keyframes heroCrossfade {
  0%    { opacity: 0; }
  2.5%  { opacity: 1; }
  13.5% { opacity: 1; }
  16%   { opacity: 0; }
  100%  { opacity: 0; }
}
/* Frame 1: visible at start, fades out at ~14.5%, fades back in 97-100%. */
@keyframes heroCrossfadeFirst {
  0%    { opacity: 1; }
  12%   { opacity: 1; }
  14.5% { opacity: 0; }
  97%   { opacity: 0; }
  100%  { opacity: 1; }
}
/* Subtle zoom while frame is on screen — gives the still photos motion */
@keyframes heroKenBurns {
  0%   { transform: scale(1.05); }
  16%  { transform: scale(1.18); }
  100% { transform: scale(1.18); }
}

/* Overlay: dark only enough to keep the headline + sub-text readable.
   Heavier shadow at the top-left (where the text sits) via radial gradient;
   bottom is gradient that fades the image into the section below.   */
.hero-overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(105deg, rgba(10,10,10,.78) 0%, rgba(10,10,10,.45) 45%, rgba(10,10,10,.25) 75%, rgba(10,10,10,.55) 100%), linear-gradient(180deg, rgba(10,10,10,0) 60%, rgba(10,10,10,.7) 100%); }
.hero-grain { position: absolute; inset: 0; z-index: 1; opacity: 0.08; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); pointer-events: none; }

/* ── Progress dots (which slide is active) ──────────────────────────── */
.hero-dots { position: absolute; bottom: 84px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 8px; }
.hero-dots span { width: 28px; height: 2px; background: rgba(255,255,255,.18); border-radius: 1px; overflow: hidden; position: relative; }
.hero-dots span::after { content: ''; position: absolute; inset: 0; background: var(--gold); transform: translateX(-100%); animation: dotFill 49s linear infinite; }
.hero-dots span:nth-child(1)::after { animation-delay:  0s; }
.hero-dots span:nth-child(2)::after { animation-delay:  7s; }
.hero-dots span:nth-child(3)::after { animation-delay: 14s; }
.hero-dots span:nth-child(4)::after { animation-delay: 21s; }
.hero-dots span:nth-child(5)::after { animation-delay: 28s; }
.hero-dots span:nth-child(6)::after { animation-delay: 35s; }
.hero-dots span:nth-child(7)::after { animation-delay: 42s; }
@keyframes dotFill {
  0%   { transform: translateX(-100%); }
  14%  { transform: translateX(0%); }
  15%, 100% { transform: translateX(100%); }
}
@media (max-width: 640px) { .hero-dots { bottom: 96px; } .hero-dots span { width: 18px; } }

/* Reduced motion: show only frame 1, no animation, no Ken Burns */
@media (prefers-reduced-motion: reduce) {
  .hero-bg-frame { animation: none; transform: none; }
  .hero-bg-frame:nth-child(1) { opacity: 1; }
  .hero-dots { display: none; }
}

.hero-content { position: relative; z-index: 2; max-width: var(--max-w); margin: 0 auto; width: 100%; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; background: rgba(201,168,76,.12); border: 1px solid rgba(201,168,76,.3); border-radius: 100px; color: var(--gold-2); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; margin-bottom: 28px; }
.hero-eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold-2); box-shadow: 0 0 12px var(--gold-2); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }

.hero-headline { font-family: var(--display); font-weight: 900; font-size: clamp(3rem, 9vw, 7.5rem); line-height: 0.92; letter-spacing: -0.02em; margin-bottom: 28px; max-width: 18ch; text-transform: uppercase; }
.gold { color: var(--gold); }
.hero-sub { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: rgba(237,237,237,.78); max-width: 560px; margin-bottom: 40px; line-height: 1.55; font-weight: 300; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 64px; }

.hero-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; max-width: 720px; border-top: 1px solid rgba(255,255,255,.15); padding-top: 28px; }
.hero-stats > div { display: flex; flex-direction: column; padding-right: 24px; border-right: 1px solid rgba(255,255,255,.1); }
.hero-stats > div:last-child { border-right: 0; }
.hero-stats strong { font-family: var(--display); font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 900; color: var(--gold); letter-spacing: 0.02em; }
.hero-stats span { font-size: 0.78rem; color: var(--muted); letter-spacing: 0.14em; text-transform: uppercase; margin-top: 4px; }
@media (max-width: 640px) { .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 18px; } .hero-stats > div { border-right: 0; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.08); } }

.scroll-cue { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); z-index: 3; width: 22px; height: 36px; border: 1.5px solid rgba(255,255,255,.5); border-radius: 12px; display: flex; justify-content: center; padding-top: 6px; }
.scroll-cue span { width: 2px; height: 8px; background: var(--gold); border-radius: 1px; animation: scrollPulse 1.6s infinite; }
@keyframes scrollPulse { 0% { opacity: 0; transform: translateY(0); } 50% { opacity: 1; } 100% { opacity: 0; transform: translateY(10px); } }

/* ── marquee ────────────────────────────────────────── */
.marquee { background: var(--ink); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding: 22px 0; }
.marquee-track { display: flex; gap: 28px; white-space: nowrap; animation: marquee 38s linear infinite; font-family: var(--display); font-size: 1.4rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.marquee-track span:nth-child(2n) { color: var(--gold); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── sections ───────────────────────────────────────── */
.section { padding: clamp(80px, 12vh, 140px) 0; background: var(--jet); }
.section-dark { background: var(--ink); }
.section-head { max-width: 760px; margin-bottom: 64px; }
.section-eyebrow { font-family: var(--display); font-size: 0.82rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); font-weight: 700; display: inline-block; margin-bottom: 14px; }
.gold-text { color: var(--gold); }
.section-title { font-family: var(--display); font-weight: 900; font-size: clamp(2.4rem, 5.4vw, 4.2rem); line-height: 0.95; letter-spacing: -0.015em; text-transform: uppercase; margin-bottom: 18px; }
.section-sub { font-size: 1.08rem; color: rgba(237,237,237,.7); max-width: 60ch; line-height: 1.65; font-weight: 300; }

/* ── discipline grid ────────────────────────────────── */
.discipline-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.discipline-card { position: relative; display: block; background: var(--char); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease; }
.discipline-card:hover { transform: translateY(-6px); border-color: var(--gold); box-shadow: 0 30px 60px -20px rgba(0,0,0,.7); }
.discipline-num { position: absolute; top: 18px; left: 22px; z-index: 2; font-family: var(--display); font-size: 0.78rem; letter-spacing: 0.18em; color: var(--gold); font-weight: 700; }
.discipline-img { aspect-ratio: 16/10; background-size: cover; background-position: center; transition: transform .8s ease, filter .35s ease; filter: brightness(.7) saturate(.9); }
.discipline-card:hover .discipline-img { transform: scale(1.06); filter: brightness(.85) saturate(1); }
.discipline-body { padding: 26px 28px 28px; }
.discipline-body h3 { font-family: var(--display); font-size: 2rem; font-weight: 800; letter-spacing: 0.01em; text-transform: uppercase; margin-bottom: 8px; }
.discipline-body p { font-size: 0.96rem; color: var(--muted); line-height: 1.55; margin-bottom: 16px; }
.arrow { color: var(--gold); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; transition: letter-spacing .25s; }
.discipline-card:hover .arrow { letter-spacing: 0.18em; }

/* ── timeline ───────────────────────────────────────── */
.timeline { position: relative; max-width: 760px; margin: 0 auto; padding-left: 40px; }
.timeline::before { content: ''; position: absolute; left: 8px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(180deg, transparent, var(--gold), transparent); }
.timeline-item { display: flex; gap: 24px; padding: 22px 0; position: relative; }
.timeline-item::before { content: ''; position: absolute; left: -36px; top: 32px; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(201,168,76,.15); }
.t-year { font-family: var(--display); font-size: 2.2rem; font-weight: 900; color: var(--gold); min-width: 100px; letter-spacing: 0.02em; }
.t-body h4 { font-family: var(--display); font-size: 1.4rem; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; margin-bottom: 6px; }
.t-body p { color: var(--muted); font-size: 0.96rem; line-height: 1.55; max-width: 50ch; }
.legacy-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 56px; justify-content: center; }

/* ── facilities ─────────────────────────────────────── */
.facilities-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-bottom: 64px; }
.facility-card { padding: 32px 28px; background: var(--char); border: 1px solid var(--line); border-radius: 4px; transition: border-color .3s, transform .3s; }
.facility-card:hover { border-color: var(--gold); transform: translateY(-4px); }
.facility-num { font-family: var(--display); font-size: 3rem; font-weight: 900; color: var(--gold); letter-spacing: 0.02em; line-height: 1; margin-bottom: 14px; }
.facility-card h4 { font-family: var(--display); font-size: 1.3rem; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; margin-bottom: 8px; }
.facility-card p { color: var(--muted); font-size: 0.94rem; line-height: 1.55; }

.facilities-location { display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; align-items: center; padding: 56px 0 0; border-top: 1px solid var(--line); margin-top: 32px; }
.facilities-location h3 { font-family: var(--display); font-size: 2rem; font-weight: 800; letter-spacing: 0.02em; text-transform: uppercase; margin: 8px 0 14px; }
.facilities-location p { color: var(--muted); margin-bottom: 22px; }
.facilities-location img { max-width: 280px; margin-left: auto; opacity: 0.55; filter: grayscale(1); }
@media (max-width: 800px) { .facilities-location { grid-template-columns: 1fr; gap: 32px; text-align: center; } .facilities-location img { margin: 0 auto; } }

/* ── join / CTA ─────────────────────────────────────── */
.join-section { position: relative; overflow: hidden; padding-top: 0; padding-bottom: 0; }
.join-section .container { padding-top: clamp(80px, 12vh, 140px); padding-bottom: clamp(80px, 12vh, 140px); position: relative; z-index: 2; }
.join-bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: brightness(.25) saturate(.7); }
.join-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, var(--jet) 0%, rgba(10,10,10,.85) 30%, rgba(10,10,10,.85) 70%, var(--jet) 100%); }
.join-content { display: grid; grid-template-columns: 1.5fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 900px) { .join-content { grid-template-columns: 1fr; } }
.join-cards { display: flex; flex-direction: column; gap: 14px; }
.join-card { display: block; padding: 22px 26px; background: rgba(20,20,20,.7); border: 1px solid var(--line); border-radius: 4px; backdrop-filter: blur(8px); transition: all .3s; }
.join-card:hover { background: rgba(28,28,28,.85); border-color: var(--gold); transform: translateX(6px); }
.jc-icon { display: inline-block; color: var(--gold); font-size: 1.4rem; margin-bottom: 8px; }
.join-card h4 { font-family: var(--display); font-size: 1.3rem; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; margin-bottom: 4px; }
.join-card p { color: var(--muted); font-size: 0.88rem; }

/* ── footer ─────────────────────────────────────────── */
.site-footer { background: var(--ink); border-top: 1px solid var(--line); padding: 72px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 56px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
.footer-grid h5 { font-family: var(--display); font-size: 0.82rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; font-weight: 700; }
.footer-grid a { display: block; color: var(--muted); font-size: 0.92rem; padding: 4px 0; transition: color .2s; }
.footer-grid a:hover { color: var(--gold); }
.footer-logo { margin-bottom: 14px; }
.footer-tag { color: var(--muted); font-size: 0.92rem; max-width: 36ch; line-height: 1.55; }
.footer-bar { display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); color: var(--dim); font-size: 0.82rem; flex-wrap: wrap; }
.footer-bar a { color: var(--gold); }

/* ============================================================
   Content pages (rendered by /p/:slug from DB)
   ============================================================ */
body.page-wrap, body.admin { background: var(--jet); }

.site-header { background: var(--ink); border-bottom: 1px solid var(--line); padding: 14px var(--pad-x); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; position: sticky; top: 0; z-index: 50; }
.site-header .brand a { color: var(--text); font-family: var(--display); font-weight: 900; font-size: 1.3rem; letter-spacing: 0.05em; }
.site-header .brand strong { color: var(--gold); }
.site-header nav a { color: var(--muted); margin-left: 22px; font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; }
.site-header nav a:hover { color: var(--gold); }

.side-nav { float: left; width: 240px; padding: 32px 18px; background: var(--ink); border-right: 1px solid var(--line); min-height: calc(100vh - 60px); }
.nav-group { margin-bottom: 22px; }
.nav-group-label { display: block; font-family: var(--display); font-size: 0.74rem; font-weight: 800; color: var(--gold); text-transform: uppercase; letter-spacing: 0.16em; margin-bottom: 8px; padding-left: 8px; }
.nav-group-items a { display: block; padding: 5px 10px; color: var(--muted); font-size: 0.88rem; border-radius: 3px; border-left: 2px solid transparent; }
.nav-group-items a:hover { background: var(--char); color: var(--text); border-left-color: var(--gold); }
.nav-group-items a.active { background: var(--char); color: var(--gold); border-left-color: var(--gold); }

.content { margin-left: 240px; padding: 48px clamp(28px, 5vw, 64px); max-width: 920px; }
.content h1 { font-family: var(--display); font-weight: 900; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: 0.01em; text-transform: uppercase; margin-bottom: 28px; color: var(--text); }
.content h1::after { content: ''; display: block; width: 60px; height: 3px; background: var(--gold); margin-top: 14px; }
.content h2 { font-family: var(--display); font-weight: 700; font-size: 1.6rem; letter-spacing: 0.02em; text-transform: uppercase; margin: 32px 0 14px; color: var(--text); }
.content h3 { font-family: var(--display); font-weight: 700; font-size: 1.25rem; margin: 22px 0 10px; color: var(--text); }
.content p { margin-bottom: 16px; color: rgba(237,237,237,.82); line-height: 1.7; }
.content ul, .content ol { margin: 14px 0 18px 24px; color: rgba(237,237,237,.82); }
.content li { margin-bottom: 6px; }
.content a { color: var(--gold); border-bottom: 1px solid transparent; transition: border-color .2s; }
.content a:hover { border-color: var(--gold); }
.content img { max-width: 100%; height: auto; border-radius: 4px; margin: 18px 0; border: 1px solid var(--line); }
.content table { border-collapse: collapse; margin: 18px 0; width: 100%; }
.content table td, .content table th { padding: 10px 14px; border: 1px solid var(--line); color: var(--muted); }
.content table th { background: var(--char); color: var(--gold); font-family: var(--display); letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.85rem; }

.members-gate { background: linear-gradient(135deg, rgba(201,168,76,.08), rgba(201,168,76,.02)); border: 1px solid rgba(201,168,76,.3); border-left: 4px solid var(--gold); padding: 32px; border-radius: 4px; }
.members-gate h1 { margin-bottom: 14px; }
.members-gate p { color: var(--muted); }

@media (max-width: 800px) {
  .side-nav { display: none; }
  .content { margin-left: 0; }
}

/* ── form pages ────────────────────────────────────── */
.form-page { background: var(--char); padding: 40px clamp(24px, 5vw, 48px); border-radius: 4px; border: 1px solid var(--line); max-width: 720px; margin: 32px auto; }
.form-page h1 { font-family: var(--display); font-weight: 900; font-size: clamp(2rem, 4vw, 2.6rem); letter-spacing: 0.01em; text-transform: uppercase; margin-bottom: 12px; }
.form-page h1::after { content: ''; display: block; width: 50px; height: 3px; background: var(--gold); margin-top: 12px; }
.form-page > p { color: var(--muted); margin-bottom: 24px; }
.form { display: flex; flex-direction: column; gap: 18px; }
.form label { display: block; font-size: 0.78rem; color: var(--muted); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.form input[type=text], .form input[type=email], .form input[type=tel], .form input[type=date], .form input[type=time], .form input[type=number], .form input[type=password], .form input:not([type]), .form select, .form textarea {
  display: block; width: 100%; margin-top: 6px; padding: 11px 14px; background: var(--jet); border: 1px solid var(--line); border-radius: 3px; color: var(--text); font-size: 0.95rem; letter-spacing: 0.01em; text-transform: none; font-family: var(--body); font-weight: 400;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,76,.18); }
.form .row { display: flex; gap: 14px; flex-wrap: wrap; }
.form .row label { flex: 1 1 200px; }

/* form submit button mirrors gold btn */
.form button[type=submit], .form .btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 32px; background: var(--gold); color: #111; border: none; border-radius: 2px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.88rem; cursor: pointer; transition: all .25s; align-self: flex-start; }
.form button[type=submit]:hover { background: var(--gold-2); transform: translateY(-2px); box-shadow: 0 12px 30px -10px rgba(201,168,76,.6); }

/* ── training strip (homepage) ──────────────────────── */
.training-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.t-pill { display: flex; flex-direction: column; gap: 6px; padding: 26px 24px; background: var(--char); border: 1px solid var(--line); border-radius: 4px; transition: all .3s; }
.t-pill:hover { transform: translateY(-4px); border-color: var(--gold); background: var(--ink); }
.t-pill .t-icon { font-size: 1.6rem; color: var(--gold); }
.t-pill strong { font-family: var(--display); font-size: 1.3rem; font-weight: 800; letter-spacing: 0.02em; text-transform: uppercase; color: var(--text); }
.t-pill em { font-style: normal; color: var(--muted); font-size: 0.86rem; line-height: 1.5; }

/* ── training/booking page UI ───────────────────────── */
.members-banner { display: flex; align-items: center; gap: 16px; padding: 16px 22px; background: linear-gradient(135deg, rgba(201,168,76,.14), rgba(201,168,76,.04)); border: 1px solid rgba(201,168,76,.35); border-left: 4px solid var(--gold); border-radius: 4px; margin-bottom: 28px; }
.members-banner .mb-icon { font-size: 1.4rem; line-height: 1; }
.members-banner strong { display: block; font-family: var(--display); font-size: 1rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); margin-bottom: 2px; }
.members-banner span { color: var(--muted); font-size: 0.92rem; }
.members-banner a { color: var(--gold); text-decoration: underline; font-weight: 600; }

.training-times { list-style: none; margin: 16px 0 0; padding: 14px 18px; background: var(--char); border: 1px solid var(--line); border-radius: 4px; font-size: 0.92rem; }
.training-times li { padding: 4px 0; color: var(--muted); }
.training-times li strong { color: var(--text); font-weight: 600; }
.training-times .t-time { color: var(--gold); font-weight: 600; }

.policy-note { display: flex; align-items: flex-start; gap: 12px; margin-top: 14px; padding: 12px 16px; background: rgba(26,111,255,.06); border: 1px solid rgba(80,140,255,.25); border-radius: 4px; color: var(--muted); font-size: 0.9rem; line-height: 1.5; }
.policy-note .pn-icon { color: #80b3ff; font-size: 1.1rem; line-height: 1.3; }

.session-day.preview h3 { color: var(--muted); }
.opens-badge { font-family: var(--body); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); background: rgba(201,168,76,.12); border: 1px solid rgba(201,168,76,.3); padding: 4px 10px; border-radius: 100px; margin-left: 14px; vertical-align: middle; }
.session-card.preview { opacity: 0.55; }
.session-card.preview:hover { transform: none; border-color: var(--line); }

.session-card-time { font-family: var(--display); font-size: 0.92rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); margin-top: -2px; }

.training-intro { padding: 12px 0 28px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.training-intro h1 { font-family: var(--display); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 900; letter-spacing: 0.01em; text-transform: uppercase; margin: 6px 0 14px; }
.training-intro h1::after { display: none; }

.discipline-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.discipline-filter a { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; background: var(--char); border: 1px solid var(--line); border-radius: 100px; color: var(--muted); font-size: 0.85rem; letter-spacing: 0.04em; font-weight: 500; transition: all .25s; }
.discipline-filter a:hover { color: var(--gold); border-color: rgba(201,168,76,.4); }
.discipline-filter a.active { background: var(--gold); color: #111; border-color: var(--gold); font-weight: 700; }
.discipline-filter a span { font-size: 1rem; }

.session-day { margin-bottom: 36px; }
.session-date { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-family: var(--display); font-size: 1.4rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text); padding-bottom: 12px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.session-date::after { display: none; }
.session-time { font-family: var(--body); font-size: 0.85rem; font-weight: 500; color: var(--gold); letter-spacing: 0.08em; }

.session-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.session-card { display: flex; flex-direction: column; gap: 8px; padding: 22px 22px 20px; background: var(--char); border: 1px solid var(--line); border-radius: 4px; transition: all .3s; }
.session-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.session-card.full { opacity: 0.65; }
.session-card.full:hover { transform: none; border-color: var(--line); }
.session-icon { font-size: 1.6rem; color: var(--gold); line-height: 1; }
.session-card h4 { font-family: var(--display); font-size: 1.2rem; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; color: var(--text); }
.session-card p { color: var(--muted); font-size: 0.86rem; line-height: 1.5; min-height: 2.4em; }
.session-meta { padding: 8px 0 4px; }
.cap-pill { display: inline-block; padding: 4px 10px; border-radius: 100px; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.cap-ok   { background: rgba(15, 206, 108, 0.14); color: #0fce6c; }
.cap-low  { background: rgba(201, 168, 76, 0.16); color: var(--gold); }
.cap-full { background: rgba(200, 16, 46, 0.16); color: #ff5a6e; }

.btn-sess { display: inline-flex; align-items: center; justify-content: center; padding: 12px 18px; background: var(--gold); color: #111; border: none; border-radius: 3px; font-weight: 800; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; transition: all .25s; cursor: pointer; font-family: var(--body); margin-top: 6px; }
.btn-sess:hover:not(:disabled) { background: var(--gold-2); transform: translateY(-1px); }
.btn-sess:disabled { background: var(--line); color: var(--dim); cursor: not-allowed; }

.checkbox-row { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.checkbox-row input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--gold); margin: 0; }
.checkbox-row span { font-size: 0.92rem; color: var(--text); letter-spacing: 0; text-transform: none; font-weight: 400; }

.confirm-card { padding: 28px; background: var(--ink); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 4px; margin-top: 24px; }
.confirm-table { width: 100%; border-collapse: collapse; }
.confirm-table td { padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 0.92rem; }
.confirm-table td:first-child { width: 35%; }
.confirm-table strong { color: var(--text); }

.empty-state { padding: 48px 24px; text-align: center; color: var(--muted); background: var(--char); border: 1px dashed var(--line); border-radius: 4px; }

/* ── admin ──────────────────────────────────────────── */
body.admin { background: var(--jet); color: var(--text); }
.admin-header { background: var(--ink); padding: 14px var(--pad-x); display: flex; align-items: center; justify-content: space-between; border-bottom: 2px solid var(--gold); }
.admin-header strong { font-family: var(--display); color: var(--gold); font-size: 1.1rem; letter-spacing: 0.08em; text-transform: uppercase; }
.admin-header nav a { color: var(--muted); margin-left: 16px; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; }
.admin-header nav a:hover { color: var(--gold); }
body.admin main { padding: 40px var(--pad-x); max-width: 1240px; margin: 0 auto; }
body.admin h1 { font-family: var(--display); color: var(--gold); margin-bottom: 28px; font-size: 2rem; letter-spacing: 0.02em; text-transform: uppercase; }
body.admin .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
body.admin .card { background: var(--char); border: 1px solid var(--line); border-radius: 4px; padding: 28px; text-align: center; color: inherit; transition: all .25s; }
body.admin .card:hover { background: var(--ink); border-color: var(--gold); transform: translateY(-4px); }
body.admin .card h2 { font-family: var(--display); font-size: 2.6rem; color: var(--gold); margin-bottom: 6px; font-weight: 900; }
body.admin .data-table { width: 100%; border-collapse: collapse; background: var(--char); border-radius: 4px; overflow: hidden; }
body.admin .data-table th, body.admin .data-table td { padding: 11px 16px; border-bottom: 1px solid var(--line); text-align: left; font-size: 0.88rem; vertical-align: top; }
body.admin .data-table th { background: var(--ink); color: var(--gold); font-family: var(--display); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; }
body.admin code { background: var(--jet); padding: 2px 6px; border-radius: 3px; font-size: 0.85rem; color: var(--gold); }
body.admin .sub-tabs { display: flex; gap: 4px; margin-bottom: 18px; }
body.admin .sub-tabs a { padding: 10px 18px; background: var(--char); color: var(--muted); border-radius: 3px; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; }
body.admin .sub-tabs a.active { background: var(--gold); color: #111; font-weight: 700; }

body.login-page { background: var(--jet); color: var(--text); display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 24px; }
body.login-page .login-form { background: var(--char); padding: 40px; border-radius: 4px; min-width: 340px; border: 1px solid var(--line); }
body.login-page h1 { font-family: var(--display); color: var(--gold); text-align: center; margin-bottom: 24px; font-size: 1.6rem; letter-spacing: 0.06em; text-transform: uppercase; }

.btn-link { background: transparent; color: var(--muted); border: none; cursor: pointer; font: inherit; padding: 6px 12px; }
.btn-link:hover { color: var(--gold); }
