/* ============================================================
   CrossFit TBB — built on the Obsidian Design System tokens.
   Dark-first canvas, single purple accent, system display type,
   Fira Code mono for technical/disciplined metadata.
   Light theme is a token override applied at [data-theme="light"].
   ============================================================ */

/* ---- Semantic layer over DS tokens ---- */
:root {
  --bg: var(--ob-canvas);
  --surface: var(--ob-surface-1);
  --surface-2: var(--ob-surface-2);
  --border: var(--ob-border);
  --ink: var(--ob-ink);
  --muted: var(--ob-ink-muted);
  --accent: var(--ob-purple);
  --accent-hover: var(--ob-purple-hover);
  --link: var(--ob-link);
  --on-accent: #ffffff;
  --hairline: rgba(255, 255, 255, 0.07);
  --tint: color-mix(in srgb, var(--ob-purple) 14%, transparent);

  --font-display: var(--font-ui);
  --maxw: 1280px;
  --pad: clamp(20px, 5vw, 72px);
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #f4f4f3;
  --surface: #ffffff;
  --surface-2: #fafaf9;
  --border: #e5e4e2;
  --ink: #16161a;
  --muted: #6c6c72;
  --accent: #6d28d9;
  --accent-hover: #5b21b6;
  --link: #6d28d9;
  --hairline: rgba(0, 0, 0, 0.08);
  --tint: color-mix(in srgb, #6d28d9 9%, transparent);
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 17px;
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

::selection { background: var(--accent); color: #fff; }

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

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

/* ---- Layout helpers ---- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }

.section { padding-block: clamp(64px, 9vw, 132px); position: relative; }
.section + .section { border-top: 1px solid var(--hairline); }

/* ---- Type primitives ---- */
.kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
}
[data-theme="light"] .kicker { color: var(--accent); }
.kicker::before {
  content: "";
  width: 26px; height: 1px; background: currentColor; opacity: 0.6;
}
.kicker.no-rule::before { display: none; }

.display {
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
.h-xl { font-size: clamp(56px, 9vw, 132px); }
.h-lg { font-size: clamp(40px, 6vw, 84px); }
.h-md { font-size: clamp(30px, 4vw, 52px); }

.lede {
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.6;
  color: var(--muted);
  max-width: 52ch;
  margin: 0;
}
.lede strong { color: var(--ink); font-weight: 600; }

.eyebrow-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* ---- Buttons ---- */
.btn {
  --btn-pad-y: 15px;
  --btn-pad-x: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 120ms var(--ease-standard), border-color 120ms var(--ease-standard),
    color 120ms var(--ease-standard), transform 120ms var(--ease-standard);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; }

.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }

.btn-outline { border-color: var(--border); color: var(--ink); background: transparent; }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.btn-ghost { color: var(--ink); background: transparent; padding-inline: 8px; }
.btn-ghost:hover { color: var(--accent); }
.hero-link svg { transition: transform 120ms var(--ease-standard); }
.hero-link:hover svg { transform: translateX(4px); }

.btn-block { width: 100%; }

a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: var(--focus-ring-width) solid var(--focus-ring-color);
  outline-offset: var(--focus-ring-offset);
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 76px;
}
.brand { display: flex; flex-direction: column; justify-content: center; gap: 3px; margin-right: auto; }
.brand-logo {
  width: 184px;
  height: 48px;
  background: transparent;
  border: none;
  border-radius: 0;
}
.brand .mark {
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 21px;
  line-height: 1;
  text-transform: uppercase;
}
.brand .mark b { color: var(--accent); }
.brand .sub {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
@media (max-width: 1080px) { .brand .sub { display: none; } }
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: color 100ms, background 100ms;
}
.nav-links a:hover { color: var(--ink); background: var(--surface); }
.nav-links a.active { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

.theme-btn {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 120ms, color 120ms;
}
.theme-btn:hover { border-color: var(--accent); color: var(--accent); }
.theme-btn svg { width: 18px; height: 18px; }
.theme-btn .sun { display: none; }
[data-theme="light"] .theme-btn .sun { display: block; }
[data-theme="light"] .theme-btn .moon { display: none; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 120ms, color 120ms;
}
.nav-toggle:hover { border-color: var(--accent); color: var(--accent); }
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .nt-close { display: none; }
.nav.nav-open .nav-toggle .nt-open { display: none; }
.nav.nav-open .nav-toggle .nt-close { display: block; }

@media (max-width: 960px) {
  /* Top-bar CTA is redundant on mobile (the hero + purple band both carry it) */
  .nav-actions .btn-primary { display: none; }
  .nav-toggle { display: inline-flex; }
  /* Mobile nav: hide the wordmark, theme toggle pinned far-left, hamburger far-right */
  .brand { display: none; }
  .nav-actions { flex: 1; justify-content: space-between; gap: 0; }
  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 10px clamp(16px, 5vw, 30px) 18px;
    background: color-mix(in srgb, var(--bg) 97%, transparent);
    backdrop-filter: saturate(140%) blur(14px);
    border-bottom: 1px solid var(--hairline);
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.45);
  }
  .nav.nav-open .nav-links { display: flex; }
  .nav-links a {
    padding: 13px 12px;
    font-size: 16px;
    border-radius: var(--radius-md);
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .nav-links a.active { background: var(--surface); }
}

/* Phone tuning — calmer headline scale + full-width buttons so the
   longer labels (“Start your trial week”) sit on one tidy line. */
@media (max-width: 560px) {
  .h-xl { font-size: clamp(36px, 11vw, 48px); }
  .h-lg { font-size: clamp(30px, 9vw, 40px); }
  .h-md { font-size: clamp(25px, 7.5vw, 32px); }
  .hero-cta { gap: 10px; margin-top: 28px; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .cta .cta-row { gap: 10px; }
  .cta .cta-row .btn { width: 100%; justify-content: center; }
  .btn { --btn-pad-x: 20px; font-size: 15px; }

  /* Stack section heads and drop the trailing "See all…" links / supplementary
     notes — they ran off the right edge or looked stranded on narrow screens. */
  .section-head.between { flex-direction: column; align-items: flex-start; gap: 14px; text-align: left; }
  .section-head.between > a,
  .section-head.between > .lede { display: none; }
  .section-head, .section-head > div { text-align: left; align-items: flex-start; }

  /* Hide the location chip that sat under the hero title on mobile */
  .hero .tagpill { display: none; }

  /* Trim the long descriptive paragraphs on phones — the headline +
     buttons carry the message; the lede just crowds the small screen. */
  .hero-b .inner .lede,
  .hero-a .copy .lede,
  .cta .lede { display: none; }

  /* Recovery showreel video is hidden on mobile (per request) */
  #recovery .visual { display: none; }

  /* Safety net: nothing should scroll the page sideways on a phone */
  .content-cols { grid-template-columns: minmax(0, 1fr); }
  .post-list, .podcast { min-width: 0; }
  .feature { grid-template-columns: minmax(0, 1fr); }
  .feature .copy { min-width: 0; }
}

/* ============================================================
   HERO — three variants toggled by [data-hero] on <html>
   ============================================================ */
.hero { display: none; }
[data-hero="a"] .hero-a,
[data-hero="b"] .hero-b,
[data-hero="c"] .hero-c { display: block; }

/* shared hero bits */
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 0;
  margin-top: 56px;
  border-top: 1px solid var(--hairline);
}
.hero-meta .stat {
  padding: 22px 28px 22px 0;
  margin-right: 28px;
  border-right: 1px solid var(--hairline);
}
.hero-meta .stat:last-child { border-right: 0; }
.stat .num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -0.02em;
  line-height: 1;
}
.stat .lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 8px;
}

/* Variant A — editorial split */
.hero-a .grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  padding-block: clamp(40px, 6vw, 80px);
}
.hero-a .copy .h-xl { margin-bottom: 26px; }
.hero-a .visual { position: relative; }
.hero-a image-slot { width: 100%; height: clamp(380px, 50vw, 600px); }
.hero-a .visual .tagpill {
  position: absolute; left: 18px; bottom: 18px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: #fff;
  background: rgba(0,0,0,0.55); backdrop-filter: blur(6px);
  padding: 8px 14px; border-radius: var(--radius-pill);
}

/* Variant B — full-bleed cinematic */
.hero-b .stage {
  position: relative;
  min-height: clamp(560px, 84vh, 860px);
  display: flex;
  align-items: flex-end;
}
.hero-b image-slot { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-b #hero-video {
  position: absolute; top: 0; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100vw; height: 100%; object-fit: cover; z-index: 0;
  -webkit-mask-image: radial-gradient(125% 118% at 50% 42%, #000 52%, transparent 100%);
  mask-image: radial-gradient(125% 118% at 50% 42%, #000 52%, transparent 100%);
}
.hero-b video-slot {
  /* the FILM bleeds full-viewport-wide; being absolute it doesn't shift the text */
  position: absolute; top: 0; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100vw; height: 100%; z-index: 0;
  border: 0; background: transparent;
  /* dissolve all four edges into the canvas */
  -webkit-mask-image: radial-gradient(125% 118% at 50% 42%, #000 52%, transparent 100%);
  mask-image: radial-gradient(125% 118% at 50% 42%, #000 52%, transparent 100%);
}
.hero-b .scrim {
  position: absolute; top: 0; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100vw;
  pointer-events: none;
  background: radial-gradient(120% 120% at 50% 40%, rgba(15,15,18,0) 45%, rgba(15,15,18,0.55) 100%),
              linear-gradient(180deg, rgba(15,15,18,0.25) 0%, rgba(15,15,18,0.1) 40%, rgba(15,15,18,0.85) 100%);
  z-index: 1;
}
.hero-b .inner { position: relative; z-index: 2; max-width: none; padding-inline: 0; padding-bottom: clamp(48px, 7vw, 96px); color: #fff; }
.hero-b .inner .lede { color: rgba(255,255,255,0.82); }
.hero-b .inner .kicker { color: #fff; }
.hero-b .stat .lbl { color: rgba(255,255,255,0.7); }
.hero-b .hero-meta { border-color: rgba(255,255,255,0.2); }
.hero-b .hero-meta .stat { border-color: rgba(255,255,255,0.2); }

/* Variant C — typographic poster */
.hero-c .poster { padding-block: clamp(36px, 5vw, 72px); }
.hero-c .megaline {
  font-weight: 800; text-transform: uppercase; letter-spacing: -0.025em;
  line-height: 0.88; font-size: clamp(52px, 12vw, 188px); margin: 0;
}
.hero-c .megaline .accent { color: var(--accent); }
.hero-c .row2 {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px;
  align-items: end; margin-top: 36px;
}
.hero-c .strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 48px;
}
.hero-c .strip image-slot { width: 100%; height: clamp(150px, 18vw, 240px); }

/* Variant C — bold purple call-to-action hero (reuses .cta visual) */
.hero-c .hero-cta-block { padding-block: clamp(56px, 9vw, 116px); }
@media (max-width: 860px) {
  .hero-a .grid { grid-template-columns: 1fr; }
}

/* ============================================================
   ABOUT — four pillars
   ============================================================ */
.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head.between {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 32px; max-width: none;
}
.section-head .h-md { margin-top: 0; }

.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); border-radius: var(--radius-lg); overflow: hidden; }
.pillar { background: var(--bg); padding: 32px 28px 36px; }
.pillar .ix { font-family: var(--font-mono); font-size: 12px; color: var(--accent); letter-spacing: 0.1em; }
.pillar h3 { font-size: 21px; font-weight: 700; margin: 18px 0 10px; letter-spacing: -0.01em; }
.pillar p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
@media (max-width: 880px) { .pillars { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .pillars { grid-template-columns: 1fr; } }

/* ============================================================
   OFFERINGS — cards
   ============================================================ */
.offer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.offer {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  min-height: 230px;
  transition: border-color 140ms var(--ease-standard), transform 140ms var(--ease-standard), background 140ms;
  overflow: hidden;
}
.offer:hover { border-color: var(--accent); transform: translateY(-3px); }
.offer .ic {
  width: 46px; height: 46px; border-radius: var(--radius-md);
  display: grid; place-items: center; color: var(--accent);
  background: var(--tint); margin-bottom: auto;
}
.offer .ic svg { width: 24px; height: 24px; }
.offer h3 { font-size: 22px; font-weight: 700; margin: 26px 0 8px; letter-spacing: -0.01em; }
.offer p { margin: 0 0 18px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.offer .more {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent);
  display: inline-flex; align-items: center; gap: 8px;
}
.offer .more svg { width: 14px; height: 14px; transition: transform 140ms; }
.offer:hover .more svg { transform: translateX(4px); }
.offer.wide { grid-column: span 2; }
.offer.full { grid-column: 1 / -1; }
@media (max-width: 900px) { .offer-grid { grid-template-columns: 1fr 1fr; } .offer.wide { grid-column: span 2; } .offer.full { grid-column: 1 / -1; } }
@media (max-width: 600px) { .offer-grid { grid-template-columns: 1fr; } .offer.wide { grid-column: auto; } .offer.full { grid-column: auto; } }

/* ============================================================
   RECOVERY — feature band
   ============================================================ */
.feature {
  display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(28px, 4vw, 64px);
  align-items: center;
}
.feature .visual image-slot { width: 100%; height: clamp(360px, 44vw, 540px); }
.feature ul { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 2px; }
.feature li {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 0; border-top: 1px solid var(--hairline);
  font-size: 17px;
}
.feature li:last-child { border-bottom: 1px solid var(--hairline); }
.feature li .dot { color: var(--accent); flex: none; }
.feature li .dot svg { width: 18px; height: 18px; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } }

/* ============================================================
   MEMBERSHIPS — two layout variants by [data-memberships]
   ============================================================ */
.mem-cards, .mem-table { display: none; }
[data-memberships="cards"] .mem-cards { display: block; }
[data-memberships="table"] .mem-table { display: block; }

/* Variant: cards */
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px 30px;
}
.plan.plan-pop { border-color: var(--accent); background: var(--surface-2); position: relative; }
.plan.plan-pop::after {
  content: "Most popular"; position: absolute; top: 22px; right: 22px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--on-accent); background: var(--accent); padding: 6px 12px; border-radius: var(--radius-pill);
}
.plan .pname { font-size: 14px; font-family: var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.plan .price { display: flex; align-items: baseline; gap: 6px; margin: 18px 0 4px; }
.plan .price .amt { font-weight: 800; font-size: 54px; letter-spacing: -0.03em; line-height: 1; }
.plan .price .per { font-family: var(--font-mono); font-size: 13px; color: var(--muted); white-space: nowrap; }
.plan .note { color: var(--muted); font-size: 14px; margin: 0 0 24px; }
.plan ul { list-style: none; margin: 0 0 28px; padding: 22px 0 0; border-top: 1px solid var(--hairline); display: grid; gap: 13px; }
.plan li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.45; }
.plan li svg { width: 17px; height: 17px; color: var(--accent); flex: none; margin-top: 3px; }
.plan .btn { margin-top: auto; }
@media (max-width: 900px) { .plan-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; } }

/* Variant: comparison table */
.mtable { width: 100%; border-collapse: collapse; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.mtable th, .mtable td { padding: 20px 22px; text-align: left; border-bottom: 1px solid var(--hairline); }
.mtable thead th { background: var(--surface); vertical-align: bottom; }
.mtable thead .plan-col { width: 22%; }
.mtable .plan-name { font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.mtable .plan-price { font-family: var(--font-mono); font-size: 13px; color: var(--muted); margin-top: 4px; }
.mtable thead .featured-col { color: var(--accent); }
.mtable td.feat { font-size: 15px; color: var(--ink); }
.mtable td.center { text-align: center; }
.mtable td.center svg { width: 18px; height: 18px; color: var(--accent); }
.mtable td.center .dash { color: var(--muted); }
.mtable tbody tr:hover td { background: var(--surface-2); }
.mtable tfoot td { padding: 22px; }
.mtable .row-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 760px) { .mtable-scroll { overflow-x: auto; } .mtable { min-width: 640px; } }

.mem-faq { margin-top: 48px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); border-radius: var(--radius-lg); overflow: hidden; }
.mem-faq .qa { background: var(--bg); padding: 26px 28px; }
.mem-faq h4 { margin: 0 0 8px; font-size: 16px; font-weight: 600; }
.mem-faq p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
@media (max-width: 640px) { .mem-faq { grid-template-columns: 1fr; } }

/* ============================================================
   STORIES — testimonials
   ============================================================ */
.story-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 18px; }
.story {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 30px; display: flex; flex-direction: column;
}
.story.lead { grid-row: span 2; justify-content: space-between; }
.story .quote { font-size: 17px; line-height: 1.55; margin: 0 0 26px; letter-spacing: -0.005em; }
.story.lead .quote { font-size: clamp(22px, 2.4vw, 30px); font-weight: 600; line-height: 1.32; letter-spacing: -0.02em; }
.story .who { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.story .who image-slot { width: 46px; height: 46px; flex: none; }
.story .who .nm { font-weight: 600; font-size: 15px; }
.story .who .mt { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.story .stars { color: var(--accent); display: flex; gap: 3px; margin-bottom: 18px; }
.story .stars svg { width: 16px; height: 16px; }
@media (max-width: 900px) { .story-grid { grid-template-columns: 1fr 1fr; } .story.lead { grid-row: auto; grid-column: span 2; } }
@media (max-width: 560px) { .story-grid { grid-template-columns: 1fr; } .story.lead { grid-column: auto; } }

/* ============================================================
   CONTENT — blog + podcast
   ============================================================ */
.content-cols { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(28px, 4vw, 56px); }
.post-list { display: grid; gap: 2px; }
.post {
  display: grid; grid-template-columns: 120px 1fr auto; gap: 22px; align-items: center;
  padding: 22px 4px; border-top: 1px solid var(--hairline); transition: padding-left 140ms;
}
.post-list .post:last-child { border-bottom: 1px solid var(--hairline); }
.post:hover { padding-left: 12px; }
.post image-slot { width: 120px; height: 78px; }
.post .cat { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.post h3 { font-size: 19px; font-weight: 600; margin: 7px 0 0; letter-spacing: -0.01em; line-height: 1.25; }
.post .date { font-family: var(--font-mono); font-size: 12px; color: var(--muted); white-space: nowrap; }
@media (max-width: 600px) { .post { grid-template-columns: 1fr; } .post image-slot { width: 100%; height: 150px; } .post .date { display: none; } }

.podcast {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px; align-self: start;
}
.podcast .ph { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.podcast .ph .spot { width: 34px; height: 34px; border-radius: 50%; background: #1db954; display: grid; place-items: center; color: #000; flex: none; }
.podcast .ph .spot svg { width: 20px; height: 20px; }
.podcast .ph .tt { font-weight: 700; font-size: 16px; }
.podcast .ph .tt span { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 400; margin-top: 2px; }
.episode { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--hairline); }
.episode .play { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); display: grid; place-items: center; color: var(--accent); flex: none; }
.episode .play svg { width: 15px; height: 15px; }
.episode .ei { min-width: 0; }
.episode .ei h4 { margin: 0; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.episode .ei p { margin: 2px 0 0; font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: 0.04em; }
@media (max-width: 820px) { .content-cols { grid-template-columns: minmax(0, 1fr); } .episode, .episode .ei { min-width: 0; } }

/* ============================================================
   GET STARTED — final CTA
   ============================================================ */
.cta {
  background: var(--accent);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 80px);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta .h-lg { color: #fff; }
.cta .h-xl { color: #fff; }
.cta .lede { color: rgba(255,255,255,0.85); }
.cta .kicker { color: rgba(255,255,255,0.9); }
.cta .cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.cta .btn-light { background: #fff; color: var(--accent); }
.cta .btn-light:hover { background: rgba(255,255,255,0.88); }
.cta .btn-clear { background: transparent; border-color: rgba(255,255,255,0.45); color: #fff; }
.cta .btn-clear:hover { border-color: #fff; background: rgba(255,255,255,0.1); }
.cta .watermark {
  position: absolute; right: -2%; bottom: -38%;
  font-weight: 800; font-size: clamp(180px, 30vw, 420px); line-height: 1;
  color: rgba(255,255,255,0.08); letter-spacing: -0.04em; pointer-events: none; user-select: none;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--hairline); padding-block: clamp(48px, 6vw, 80px) 40px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer .brand { margin: 0 0 18px; }
.footer .fdesc { color: var(--muted); font-size: 15px; max-width: 30ch; }
.footer h5 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; font-weight: 500; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer ul a { color: var(--ink); font-size: 15px; }
.footer ul a:hover { color: var(--accent); }
.footer .addr { color: var(--muted); font-size: 14px; line-height: 1.7; font-style: normal; }
.footer .addr a { color: var(--ink); }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 40px; height: 40px; border: 1px solid var(--border); border-radius: var(--radius-md); display: grid; place-items: center; color: var(--ink); transition: border-color 120ms, color 120ms; }
.socials a:hover { border-color: var(--accent); color: var(--accent); }
.socials svg { width: 18px; height: 18px; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--hairline); }
.footer-bottom p { margin: 0; color: var(--muted); font-size: 13px; font-family: var(--font-mono); letter-spacing: 0.04em; }
@media (max-width: 820px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-top { grid-template-columns: 1fr; } }

/* ---- image-slot default look (dark stock placeholder) ---- */
image-slot {
  --is-bg: var(--surface);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
}

/* ---- video-slot (recovery showreel) — matches the image-slot dark look ---- */
.feature .visual video-slot { width: 100%; height: clamp(360px, 44vw, 540px); }
video-slot {
  background: var(--surface);
  border: 1px solid var(--border);
}

/* ---- reveal: content is always visible. (A JS/CSS hide-then-animate reveal is
   intentionally NOT used — some render/capture/export contexts freeze CSS
   animations at their first frame, which would leave content blank. The .reveal
   class is kept as a harmless hook.) ---- */
.reveal { opacity: 1; transform: none; }

/* keep tweaks panel readable regardless of theme */
#tweaks-root { position: fixed; z-index: 90; }

/* ============================================================
   RESOURCE HUB  (resource-hub.html)
   ============================================================ */
.hub-hero { padding-block: clamp(40px, 6vw, 72px) 0; }
.hub-hero .lede { margin-top: 18px; }

/* Featured article */
.featured {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(24px, 3vw, 48px);
  align-items: stretch;
  margin-top: clamp(36px, 5vw, 56px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 140ms var(--ease-standard);
}
.featured:hover { border-color: var(--accent); }
.featured .ft-media { position: relative; min-height: 340px; }
.featured .ft-media image-slot { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; border: 0; }
.featured .ft-flag {
  position: absolute; top: 18px; left: 18px; z-index: 2;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: #fff; background: var(--accent); padding: 7px 13px; border-radius: var(--radius-pill);
}
.featured .ft-body { padding: clamp(28px, 3vw, 44px); display: flex; flex-direction: column; }
.featured .ft-cat { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.featured .ft-body h2 { font-size: clamp(26px, 3vw, 40px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.08; margin: 16px 0 14px; }
.featured .ft-body p { color: var(--muted); font-size: 16px; line-height: 1.6; margin: 0 0 22px; max-width: 48ch; }
.featured .ft-meta { display: flex; align-items: center; gap: 16px; margin-top: auto; font-family: var(--font-mono); font-size: 12px; color: var(--muted); letter-spacing: 0.04em; }
.featured .ft-meta .dotsep { width: 3px; height: 3px; border-radius: 50%; background: var(--muted); }
@media (max-width: 800px) { .featured { grid-template-columns: 1fr; } .featured .ft-media { min-height: 220px; } }

/* Toolbar: search + categories */
.hub-toolbar { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-top: clamp(40px, 5vw, 64px); }
.search-box { position: relative; flex: 1 1 320px; max-width: 440px; }
.search-box svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.search-box input {
  width: 100%; height: 52px; padding: 0 16px 0 46px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  color: var(--ink); font-family: var(--font-display); font-size: 15px;
  transition: border-color 120ms;
}
.search-box input::placeholder { color: var(--muted); }
.search-box input:focus { outline: none; border-color: var(--accent); }
.search-box input:focus-visible { outline: var(--focus-ring-width) solid var(--focus-ring-color); outline-offset: var(--focus-ring-offset); }

.cat-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-chip {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); background: transparent; border: 1px solid var(--border);
  padding: 11px 16px; border-radius: var(--radius-pill); cursor: pointer; min-height: 44px;
  transition: color 120ms, border-color 120ms, background 120ms;
}
.cat-chip:hover { color: var(--ink); border-color: var(--accent); }
.cat-chip.active { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }

/* Tag row */
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 20px; }
.tag-row .tag-lead { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-right: 4px; display: inline-flex; align-items: center; gap: 6px; }
.tag-row .tag-lead svg { width: 13px; height: 13px; }
.tag-chip {
  font-family: var(--font-mono); font-size: 12px; color: var(--link);
  background: var(--tint); border: 1px solid transparent; padding: 6px 12px; border-radius: var(--radius-sm);
  cursor: pointer; transition: background 120ms, color 120ms;
}
.tag-chip::before { content: "#"; opacity: 0.6; }
.tag-chip:hover { color: var(--ink); }
.tag-chip.active { background: var(--accent); color: var(--on-accent); }

/* Results meta + grid */
.hub-resultline { margin-top: 28px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; color: var(--muted); }
.hub-resultline b { color: var(--ink); font-weight: 600; }
.hub-resultline .clearf { color: var(--accent); cursor: pointer; margin-left: 10px; }
.hub-resultline .clearf:hover { text-decoration: underline; }

.hub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }
.hub-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; transition: border-color 140ms var(--ease-standard), transform 140ms var(--ease-standard);
}
.hub-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.hub-card .hc-media { position: relative; aspect-ratio: 16 / 10; }
.hub-card .hc-media image-slot { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; border: 0; }
.hub-card .hc-cat { position: absolute; top: 14px; left: 14px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: #fff; background: rgba(0,0,0,0.6); backdrop-filter: blur(6px); padding: 6px 11px; border-radius: var(--radius-pill); z-index: 2; }
.hub-card .hc-play { position: absolute; bottom: 14px; right: 14px; z-index: 2; width: 46px; height: 46px; border-radius: 50%; background: #1db954; color: #000; display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0,0,0,0.35); transition: transform 140ms var(--ease-standard); }
.hub-card .hc-play svg { width: 20px; height: 20px; margin-left: 1px; }
.hub-card.podcast-card:hover .hc-play { transform: scale(1.08); }
.hub-card .hc-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.hub-card h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; margin: 0 0 10px; }
.hub-card p { color: var(--muted); font-size: 14px; line-height: 1.55; margin: 0 0 18px; }
.hub-card .hc-meta { display: flex; align-items: center; gap: 12px; margin-top: auto; font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: 0.04em; }
.hub-card .hc-meta .dotsep { width: 3px; height: 3px; border-radius: 50%; background: var(--muted); }
@media (max-width: 900px) { .hub-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .hub-grid { grid-template-columns: 1fr; } }

.hub-empty { margin-top: 28px; padding: 48px; text-align: center; border: 1px dashed var(--border); border-radius: var(--radius-lg); color: var(--muted); }
.hub-empty h3 { color: var(--ink); font-size: 20px; margin: 0 0 8px; }
.hub-empty p { margin: 0; font-size: 15px; }

/* Hub podcast subscribe banner */
.pod-subscribe {
  margin-top: clamp(56px, 7vw, 96px);
  display: flex; align-items: center; gap: clamp(18px, 3vw, 32px);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 36px);
}
.pod-subscribe .spot { width: 52px; height: 52px; border-radius: 50%; background: #1db954; display: grid; place-items: center; color: #000; flex: none; }
.pod-subscribe .spot svg { width: 30px; height: 30px; }
.pod-subscribe .ps-copy { flex: 1; min-width: 0; }
.pod-subscribe .ps-copy h2 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 6px; }
.pod-subscribe .ps-copy p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; max-width: 60ch; }
.pod-subscribe .btn { flex: none; }
@media (max-width: 680px) { .pod-subscribe { flex-direction: column; align-items: flex-start; text-align: left; } .pod-subscribe .btn { width: 100%; } }

/* ============================================================
   ARTICLE  (article.html)
   ============================================================ */
.article { padding-block: clamp(32px, 4vw, 56px) clamp(56px, 7vw, 96px); }
.article-narrow { max-width: 760px; margin-inline: auto; }
.backlink { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 32px; }
.art-topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.art-topbar .backlink { margin-bottom: 32px; }
.backlink svg { width: 15px; height: 15px; transition: transform 120ms; }
.backlink:hover { color: var(--accent); }
.backlink:hover svg { transform: translateX(-3px); }

.art-head .ah-cat { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.art-head h1 { font-size: clamp(34px, 5vw, 58px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.04; margin: 16px 0 22px; text-wrap: balance; }
.art-byline { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.art-byline image-slot { width: 46px; height: 46px; flex: none; }
.art-byline .who .nm { font-weight: 600; font-size: 15px; }
.art-byline .who .meta { font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: 0.04em; margin-top: 2px; }
.art-byline .share { display: flex; gap: 8px; margin-left: auto; }
.art-byline .share a, .art-byline .share button { width: 42px; height: 42px; border: 1px solid var(--border); border-radius: var(--radius-md); display: grid; place-items: center; color: var(--ink); background: transparent; cursor: pointer; transition: border-color 120ms, color 120ms; }
.art-byline .share a:hover, .art-byline .share button:hover { border-color: var(--accent); color: var(--accent); }
.art-byline .share svg { width: 17px; height: 17px; }

.art-hero { margin: clamp(32px, 4vw, 48px) 0; }
.art-hero image-slot { width: 100%; height: clamp(280px, 42vw, 520px); }

.prose { font-size: 18px; line-height: 1.75; color: var(--ink); }
.prose > * + * { margin-top: 1.4em; }
.prose h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 700; letter-spacing: -0.015em; margin-top: 1.8em; line-height: 1.2; }
.prose h3 { font-size: 21px; font-weight: 700; margin-top: 1.6em; }
.prose p { color: var(--ink); }
.prose strong { font-weight: 700; }
.prose a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--link) 45%, transparent); }
.prose a:hover { text-decoration-color: var(--link); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-top: 0.5em; }
.prose li::marker { color: var(--accent); }
.prose blockquote { border-left: 3px solid var(--accent); padding: 4px 0 4px 24px; margin-left: 0; font-size: 22px; line-height: 1.5; font-weight: 500; color: var(--ink); letter-spacing: -0.01em; }
.prose .callout { background: var(--tint); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); border-radius: var(--radius-md); padding: 20px 24px; font-size: 16px; }
.prose .callout .ct-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 6px; }

.art-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--hairline); }
.art-tags a { font-family: var(--font-mono); font-size: 12px; color: var(--link); background: var(--tint); padding: 7px 13px; border-radius: var(--radius-sm); }
.art-tags a::before { content: "#"; opacity: 0.6; }
.art-tags a:hover { color: var(--ink); }

.art-share-foot { display: flex; align-items: center; gap: 14px; margin-top: 32px; padding: 22px 0; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.art-share-foot .lbl { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-right: auto; }
.art-share-foot a, .art-share-foot button { width: 44px; height: 44px; border: 1px solid var(--border); border-radius: var(--radius-md); display: grid; place-items: center; color: var(--ink); background: transparent; cursor: pointer; transition: border-color 120ms, color 120ms; }
.art-share-foot a:hover, .art-share-foot button:hover { border-color: var(--accent); color: var(--accent); }
.art-share-foot svg { width: 18px; height: 18px; }

/* Comments */
.comments { margin-top: clamp(48px, 6vw, 72px); }
.comments h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 6px; display: flex; align-items: center; gap: 10px; }
.comments h2 .cc-count { font-family: var(--font-mono); font-size: 13px; color: var(--muted); font-weight: 400; }
.comment-form { margin: 24px 0 36px; }
.comment-form .row { display: flex; gap: 12px; }
.comment-form input, .comment-form textarea {
  width: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  color: var(--ink); font-family: var(--font-display); font-size: 15px; padding: 13px 16px;
}
.comment-form input::placeholder, .comment-form textarea::placeholder { color: var(--muted); }
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--accent); }
.comment-form textarea { margin-top: 12px; min-height: 96px; resize: vertical; line-height: 1.5; }
.comment-form .cf-actions { display: flex; justify-content: flex-end; margin-top: 12px; }
.comment-list { display: grid; gap: 24px; }
.comment { display: flex; gap: 16px; }
.comment .av { width: 44px; height: 44px; border-radius: 50%; flex: none; background: var(--surface-2); border: 1px solid var(--border); display: grid; place-items: center; font-weight: 700; font-size: 15px; color: var(--accent); }
.comment .cbody { flex: 1; min-width: 0; }
.comment .chead { display: flex; align-items: baseline; gap: 10px; }
.comment .chead .nm { font-weight: 600; font-size: 15px; }
.comment .chead .when { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.comment .ctext { color: var(--ink); font-size: 15px; line-height: 1.6; margin: 6px 0 0; }

/* Related */
.related { margin-top: clamp(48px, 6vw, 80px); }
.related h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 24px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 760px) { .related-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .article-narrow { max-width: 100%; } }

/* ============================================================
   PODCAST — live Spotify embed
   ============================================================ */
.pod-embed { margin-top: 22px; border-radius: var(--radius-lg); overflow: hidden; }
.pod-embed iframe { display: block; width: 100%; border: 0; border-radius: var(--radius-lg); }

/* ============================================================
   ADMIN + ARTICLE EDITOR  (client-side CMS for the Resource Hub)
   ============================================================ */
image-slot[shape="circle"] { border-radius: 50%; }
image-slot[shape="pill"] { border-radius: 9999px; }

/* Footer admin entry */
.admin-link {
  display: inline-flex; align-items: center; gap: 7px;
  background: transparent; border: 0; cursor: pointer;
  color: var(--muted); font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.06em; padding: 4px 6px; transition: color 120ms;
}
.admin-link svg { width: 13px; height: 13px; }
.admin-link:hover { color: var(--accent); }

/* Inline edit button on cards + featured */
.hc-edit {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  width: 38px; height: 38px; border-radius: var(--radius-md); border: 0; cursor: pointer;
  display: grid; place-items: center; background: rgba(0,0,0,0.6); color: #fff;
  backdrop-filter: blur(6px); transition: background 120ms, transform 120ms;
}
.hc-edit:hover { background: var(--accent); transform: translateY(-1px); }
.hc-edit svg { width: 17px; height: 17px; }

/* Article page edit button */
.art-edit-btn {
  display: inline-flex; align-items: center; gap: 8px; margin: -12px 0 28px;
  background: var(--tint); color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: var(--radius-md); font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.06em; text-transform: uppercase; padding: 10px 16px; cursor: pointer;
  transition: background 120ms;
}
.art-edit-btn svg { width: 15px; height: 15px; }
.art-topbar .art-edit-btn { margin: 0 0 32px; }
.art-edit-btn:hover { background: color-mix(in srgb, var(--accent) 20%, transparent); }

/* Admin bar */
.adm-bar {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 120;
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-pill);
  padding: 8px 8px 8px 18px; box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.adm-bar .adm-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px color-mix(in srgb, #22c55e 25%, transparent); flex: none; }
.adm-bar .adm-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-right: 6px; }
.adm-btn {
  display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
  border-radius: var(--radius-pill); padding: 10px 16px; min-height: 42px;
  transition: background 120ms, color 120ms;
}
.adm-btn svg { width: 15px; height: 15px; }
.adm-new { background: var(--accent); color: var(--on-accent); }
.adm-new:hover { background: var(--accent-hover); }
.adm-out { background: transparent; color: var(--muted); }
.adm-out:hover { color: var(--ink); }
@media (max-width: 560px) { .adm-bar { left: 12px; right: 12px; transform: none; justify-content: center; flex-wrap: wrap; } }

/* Backdrop */
.adm-backdrop { position: fixed; inset: 0; z-index: 130; background: rgba(8,8,10,0.66); backdrop-filter: blur(3px); }
.adm-backdrop[hidden], .adm-login[hidden], .editor[hidden], .adm-bar[hidden] { display: none !important; }

/* Login card */
.adm-login {
  position: fixed; z-index: 140; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(92vw, 400px); background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 36px 32px 32px; box-shadow: 0 24px 70px rgba(0,0,0,0.5);
}
.adm-login .adm-lock { width: 52px; height: 52px; border-radius: var(--radius-md); background: var(--tint); color: var(--accent); display: grid; place-items: center; margin-bottom: 18px; }
.adm-login .adm-lock svg { width: 24px; height: 24px; }
.adm-login h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 6px; }
.adm-login .adm-sub { color: var(--muted); font-size: 14px; margin: 0 0 22px; line-height: 1.5; }
.adm-login .adm-pw { width: 100%; height: 50px; padding: 0 16px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-md); color: var(--ink); font-family: var(--font-display); font-size: 15px; }
.adm-login .adm-pw:focus { outline: none; border-color: var(--accent); }
.adm-login .adm-err { color: #ef4444; font-size: 13px; margin: 10px 0 0; }
.adm-login form .btn { margin-top: 16px; }
.adm-close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border: 0; background: transparent; color: var(--muted); border-radius: var(--radius-md); cursor: pointer; display: grid; place-items: center; transition: color 120ms, background 120ms; }
.adm-close:hover { color: var(--ink); background: var(--bg); }
.adm-close svg { width: 18px; height: 18px; }

/* Editor drawer */
.editor {
  position: fixed; z-index: 140; top: 0; right: 0; bottom: 0; width: min(96vw, 720px);
  background: var(--bg); border-left: 1px solid var(--border);
  box-shadow: -20px 0 60px rgba(0,0,0,0.45); display: flex; flex-direction: column;
}
.ed-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 28px; border-bottom: 1px solid var(--hairline); }
.ed-kicker { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); }
.ed-title-lbl { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; margin: 6px 0 0; }
.ed-x { position: static; }
.ed-body { flex: 1; overflow-y: auto; padding: 24px 28px 36px; display: flex; flex-direction: column; gap: 18px; }
.ed-field { display: flex; flex-direction: column; gap: 8px; }
.ed-lbl { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.ed-lbl em { font-style: normal; opacity: 0.7; text-transform: none; letter-spacing: 0; margin-left: 4px; }
.ed-input { width: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); color: var(--ink); font-family: var(--font-display); font-size: 15px; padding: 12px 14px; }
.ed-input:focus { outline: none; border-color: var(--accent); }
.ed-input::placeholder { color: var(--muted); }
.ed-f-title { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.ed-invalid { border-color: #ef4444 !important; }
textarea.ed-input { resize: vertical; line-height: 1.5; min-height: 58px; }
.ed-row { display: grid; gap: 14px; }
.ed-row-3 { grid-template-columns: 1fr 1fr 1fr; align-items: end; }
.ed-row-byline { grid-template-columns: auto 1fr 1fr; align-items: end; gap: 14px; }
.ed-cover image-slot { border-radius: 10px; }
@media (max-width: 560px) { .ed-row-3, .ed-row-byline { grid-template-columns: 1fr; } }

/* Featured toggle */
.ed-feat .ed-switch { display: flex; align-items: center; gap: 10px; height: 46px; position: relative; }
.ed-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.ed-switch .ed-track { width: 42px; height: 24px; border-radius: 999px; background: var(--border); position: relative; transition: background 120ms; flex: none; }
.ed-switch .ed-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform 120ms; }
.ed-switch input:checked + .ed-track { background: var(--accent); }
.ed-switch input:checked + .ed-track::after { transform: translateX(18px); }
.ed-switch b { font-weight: 500; font-size: 14px; }

/* Body editor toolbar + canvas */
.ed-toolbar { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; background: var(--surface); border: 1px solid var(--border); border-bottom: 0; border-radius: var(--radius-md) var(--radius-md) 0 0; }
.ed-tool { min-width: 36px; height: 36px; padding: 0 10px; border: 0; background: transparent; color: var(--ink); border-radius: var(--radius-sm); cursor: pointer; font-family: var(--font-mono); font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; transition: background 120ms, color 120ms; }
.ed-tool:hover { background: var(--tint); color: var(--accent); }
.ed-tool svg { width: 16px; height: 16px; }
.ed-sep { width: 1px; align-self: stretch; background: var(--hairline); margin: 4px 4px; }
.ed-prose { background: var(--surface); border: 1px solid var(--border); border-radius: 0 0 var(--radius-md) var(--radius-md); padding: 18px 20px; min-height: 280px; font-size: 16px; outline: none; }
.ed-prose:focus { border-color: var(--accent); }

/* Editor footer */
.ed-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 28px; border-top: 1px solid var(--hairline); background: var(--surface); }
.ed-foot .ed-delete { color: #ef4444; border-color: color-mix(in srgb, #ef4444 40%, transparent); }
.ed-foot .ed-delete:hover { border-color: #ef4444; color: #ef4444; background: color-mix(in srgb, #ef4444 10%, transparent); }
.ed-foot-r { display: flex; align-items: center; gap: 8px; }

/* Editor content-type modes */
.editor.mode-podcast .ed-only-art { display: none; }
.editor:not(.mode-podcast) .ed-only-pod { display: none; }
.ed-hint { text-transform: none !important; letter-spacing: 0 !important; color: var(--muted); margin-top: -2px; }

/* ============================================================
   PODCAST TILES (in the hub grid) + live player lightbox
   ============================================================ */
.hub-card.podcast-card { cursor: pointer; }
.hub-card.podcast-card .hc-cover {
  position: absolute; inset: 0;
  background: var(--surface-2) center / cover no-repeat;
}
.hub-card.podcast-card .hc-cover::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.45) 100%);
}
.hc-cat-pod { display: inline-flex !important; align-items: center; gap: 5px; background: #1db954 !important; color: #000 !important; }
.hc-cat-pod svg { width: 11px; height: 11px; }
.hc-latest { display: none; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.02em; color: var(--accent); margin: 0 0 8px !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.pod-modal { position: fixed; inset: 0; z-index: 150; background: rgba(8,8,10,0.72); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 24px; }
.pod-modal[hidden] { display: none !important; }
.pod-modal-card { width: min(96vw, 560px); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; box-shadow: 0 30px 80px rgba(0,0,0,0.55); }
.pod-modal-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.pod-modal-spot { width: 36px; height: 36px; border-radius: 50%; background: #1db954; color: #000; display: grid; place-items: center; flex: none; }
.pod-modal-spot svg { width: 20px; height: 20px; }
.pod-modal-title { font-weight: 700; font-size: 16px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pod-modal-x { position: static; flex: none; }
.pod-modal-player { border-radius: 12px; overflow: hidden; min-height: 152px; }
.pod-modal-player iframe { display: block; width: 100%; border: 0; }
.pod-modal-sub { width: 100%; margin-top: 16px; }
