/* CatalystX Media. A podcast-app shell around plain, crawlable pages.
   Brand: navy ink #081e2f, teal #009ca4, cyan glow, white ground, faint grid.
   Type: Inter Tight (display), Inter (text), JetBrains Mono (micro labels). */

@font-face { font-family: 'Inter'; src: url('/fonts/inter-var.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Inter Tight'; src: url('/fonts/inter-tight-var.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('/fonts/jetbrains-mono-var.woff2') format('woff2'); font-weight: 400 800; font-display: swap; }

:root {
  --bg: #ffffff;
  --bg-2: #f6f7f7;
  --bg-3: #eef1f2;
  --ink: #081e2f;
  --ink-2: #3d4b58;
  --ink-3: #6b7783;
  --line: #e4e8eb;
  --line-2: #d3d9de;
  --grid: #f1f2ef;
  --teal: #009ca4;
  --teal-ink: #00737a;
  --cyan: #48c0d2;
  --glow: 148, 239, 243;
  --black: #0b0f14;
  --paper: #f4f4f1;
  --r: 6px;
  --side: 236px;
  --top: 64px;
  --player: 76px;
  --tabs: 0px;
  --ease: cubic-bezier(.12, .9, .2, 1);
  --f-display: 'Inter Tight', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-text: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--top) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17.5px/1.62 var(--f-text);
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 2px; }
::selection { background: rgba(var(--glow), .7); color: var(--ink); }
[hidden] { display: none !important; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--r); }
.skip:focus { top: 12px; }

/* ---------- Shell ---------- */
.side {
  position: fixed; z-index: 30; left: 0; top: 0; bottom: var(--player); width: var(--side);
  display: flex; flex-direction: column; gap: 22px;
  padding: 22px 16px 18px; background: var(--bg-2); border-right: 1px solid var(--line);
  overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); padding: 2px 8px; }
.brand img { width: 46px; height: auto; }
.brand b { font: 800 17px/1 var(--f-display); letter-spacing: -.02em; }
.brand small { display: block; font: 500 10.5px/1.2 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-top: 4px; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav a {
  position: relative; display: flex; align-items: baseline; gap: 12px;
  padding: 9px 10px; border-radius: var(--r); text-decoration: none;
  color: var(--ink-2); font: 550 15.5px/1.2 var(--f-text);
}
.side-nav a span { font: 500 10.5px/1 var(--f-mono); color: var(--ink-3); letter-spacing: .04em; width: 16px; }
.side-nav a:hover { background: var(--bg-3); color: var(--ink); }
.side-nav a[aria-current="page"] { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.side-nav a[aria-current="page"]::before { content: ''; position: absolute; left: -16px; top: 9px; bottom: 9px; width: 3px; background: var(--teal); border-radius: 0 2px 2px 0; }
.side-label { font: 500 10.5px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); padding: 0 10px; margin: 0 0 8px; }
.side-genres { display: flex; flex-direction: column; gap: 6px; }
.side-genres a { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: var(--r); text-decoration: none; color: var(--ink-2); font: 500 14.5px/1.2 var(--f-text); }
.side-genres a:hover { background: var(--bg-3); color: var(--ink); }
.side-genres i { width: 22px; height: 22px; border-radius: 4px; flex: none; }
.side-cta { margin-top: auto; padding: 16px; border-radius: var(--r); background: var(--ink); color: #fff; }
.side-cta p { margin: 0 0 12px; font: 600 15px/1.35 var(--f-display); letter-spacing: -.005em; }
.side-cta small { display: block; font: 500 10.5px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--cyan); margin-bottom: 8px; }
.side-cta a { display: inline-flex; align-items: center; justify-content: center; width: 100%; height: 38px; border-radius: var(--r); background: #fff; color: var(--ink); text-decoration: none; font: 650 14px/1 var(--f-text); }
.side-cta a:hover { background: rgb(var(--glow)); }

.col { overflow-x: clip; margin-left: var(--side); min-height: 100vh; padding-bottom: calc(var(--player) + var(--tabs)); display: flex; flex-direction: column; }
.top {
  position: sticky; top: 0; z-index: 20; height: var(--top);
  display: flex; align-items: center; gap: 14px; padding: 0 clamp(16px, 3vw, 40px);
  background: rgba(255,255,255,.86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.top.is-stuck { border-bottom-color: var(--line); }
.top-brand { display: none; }
.search { position: relative; flex: 1; max-width: 520px; }
.search input {
  width: 100%; height: 42px; padding: 0 14px 0 40px; border-radius: var(--r);
  border: 1px solid var(--line-2); background: #fff; color: var(--ink);
  font: 450 15.5px/1 var(--f-text);
}
.search input::placeholder { color: var(--ink-3); }
.search input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(var(--glow), .55); }
.search svg { position: absolute; left: 13px; top: 12px; width: 18px; height: 18px; color: var(--ink-3); pointer-events: none; }
.search kbd { position: absolute; right: 10px; top: 10px; font: 500 11px/20px var(--f-mono); padding: 0 6px; border: 1px solid var(--line-2); border-radius: 4px; color: var(--ink-3); background: var(--bg-2); }
.results {
  position: absolute; left: 0; right: 0; top: 48px; z-index: 40; max-height: 70vh; overflow: auto;
  background: #fff; border: 1px solid var(--line-2); border-radius: var(--r); padding: 6px;
  box-shadow: 0 18px 40px -18px rgba(8,30,47,.28);
}
.results[hidden] { display: none; }
.results a { display: block; padding: 10px 12px; border-radius: 5px; text-decoration: none; color: var(--ink); }
.results a small { display: block; font: 500 10.5px/1.4 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.results a b { display: block; font: 600 15px/1.35 var(--f-text); }
.results a span { display: block; font-size: 13.5px; color: var(--ink-3); line-height: 1.4; margin-top: 2px; }
.results a[aria-selected="true"], .results a:hover { background: var(--bg-2); }
.results p { margin: 0; padding: 12px; color: var(--ink-3); font-size: 14.5px; }
.top-cta { margin-left: auto; }

main { flex: 1; width: 100%; max-width: 1120px; margin: 0 auto; padding: 18px clamp(16px, 3vw, 40px) 40px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 46px; padding: 0 20px; border-radius: var(--r);
  font: 650 15.5px/1 var(--f-text); text-decoration: none; white-space: nowrap; cursor: pointer;
  border: 1px solid transparent; transition: background .18s, color .18s, border-color .18s, transform .18s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #12314a; color: #fff; }
.btn-line { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-line:hover { border-color: var(--ink); color: var(--ink); }
.btn-sm { height: 38px; padding: 0 14px; font-size: 14.5px; }
.btn-play svg { width: 14px; height: 14px; }
.btn-play[data-state="playing"] .i-play, .btn-play:not([data-state="playing"]) .i-pause { display: none; }
.no-js .needs-js { display: none !important; }

/* ---------- Micro labels, headings ---------- */
.kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 14px; font: 500 11.5px/1.3 var(--f-mono); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); }
.kicker b { color: var(--teal-ink); font-weight: 600; }
.kicker i { width: 4px; height: 4px; border-radius: 50%; background: var(--teal); display: inline-block; }
h1, h2, h3 { font-family: var(--f-display); color: var(--ink); margin: 0; }
h1 { font-weight: 800; font-size: clamp(36px, 4.4vw, 58px); line-height: 1.02; letter-spacing: -.035em; text-wrap: balance; }
.home h1 { font-size: clamp(40px, 5.6vw, 74px); line-height: .96; }
.h1-pre { display: block; font: 550 clamp(19px, 1.9vw, 26px)/1.25 var(--f-display); letter-spacing: -.01em; color: var(--ink-2); margin-bottom: 14px; }
.h1-big { display: block; }
.h1-big .w { display: block; }
.h1-big .dot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.h1-big .w::after { content: ''; display: inline-block; width: .15em; height: .15em; border-radius: 50%; background: var(--teal); margin-left: .05em; }
h2 { font-weight: 750; font-size: clamp(25px, 2.5vw, 31px); line-height: 1.12; letter-spacing: -.022em; text-wrap: balance; }
h3 { font-weight: 680; font-size: 19.5px; line-height: 1.25; letter-spacing: -.012em; }
p { margin: 0 0 1em; }
.lead { font-size: 19.5px; line-height: 1.55; color: var(--ink-2); max-width: 64ch; }
.muted { color: var(--ink-3); }
.mono { font-family: var(--f-mono); }

/* ---------- Cover art (typographic, crawlable) ---------- */
.cover {
  position: relative; aspect-ratio: 1; border-radius: var(--r); overflow: hidden; container-type: inline-size;
  background: var(--ink); color: #fff; isolation: isolate;
}
.cover::before { /* hairline grid */
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px) 0 0 / 12.5% 12.5%,
              linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px) 0 0 / 12.5% 12.5%;
}
.cover::after { /* grain, felt not seen */
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: .16; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.cover-k { position: absolute; left: 7%; top: 7%; font: 500 max(9px, 4.4cqw)/1.2 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; opacity: .8; }
.cover-n { position: absolute; right: 7%; top: 7%; font: 500 max(9px, 4.4cqw)/1.2 var(--f-mono); letter-spacing: .06em; opacity: .8; }
.cover-w { position: absolute; left: 6%; right: 6%; bottom: 17%; font: 800 calc(var(--fs, .25) * 100cqw)/.9 var(--f-display); letter-spacing: -.045em; overflow-wrap: anywhere; }
.cover-w em { font-style: normal; color: var(--accent, var(--cyan)); }
.cover-s { position: absolute; left: 7%; right: 26%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; bottom: 7%; font: 500 max(9px, 4.6cqw)/1.2 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; opacity: .78; }
.cover-mark { position: absolute; right: 7%; bottom: 6.2%; width: 15%; }
.cover-crop { position: absolute; width: 5%; height: 5%; border-color: currentColor; border-style: solid; opacity: .45; }
.cover-crop.tl { left: 3%; top: 3%; border-width: 1px 0 0 1px; } .cover-crop.br { right: 3%; bottom: 3%; border-width: 0 1px 1px 0; }
.t-navy { background: var(--ink); color: #fff; --accent: var(--cyan); }
.t-teal { background: var(--teal); color: #fff; --accent: var(--ink); }
.t-ink { background: var(--black); color: #fff; --accent: var(--cyan); }
.t-paper { background: var(--paper); color: var(--ink); --accent: var(--teal); }
.t-paper::before, .t-white::before, .t-glow::before { background: linear-gradient(rgba(8,30,47,.06) 1px, transparent 1px) 0 0 / 12.5% 12.5%, linear-gradient(90deg, rgba(8,30,47,.06) 1px, transparent 1px) 0 0 / 12.5% 12.5%; }
.t-white { background: #fff; color: var(--ink); --accent: var(--teal); box-shadow: inset 0 0 0 1px var(--line-2); }
.t-glow { background: radial-gradient(120% 90% at 100% 0%, rgba(var(--glow), .95), rgba(var(--glow), .35) 55%, #fff 100%); color: var(--ink); --accent: var(--teal); box-shadow: inset 0 0 0 1px var(--line); }
.t-paper .cover-mark, .t-white .cover-mark, .t-glow .cover-mark { filter: none; }
.t-navy .cover-mark, .t-ink .cover-mark, .t-teal .cover-mark { filter: brightness(0) invert(1); opacity: .9; }

/* ---------- Show header (hero) ---------- */
.show { position: relative; display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: clamp(24px, 4vw, 52px); align-items: center; padding: 26px 0 38px; }
.show::before { /* ambient glow like the LinkedIn banner */
  content: ''; position: absolute; z-index: -1; right: -10%; top: -80px; width: 60%; height: 420px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(var(--glow), .55), rgba(var(--glow), .18) 55%, transparent 100%);
}
.show-art { box-shadow: 0 28px 60px -34px rgba(8,30,47,.55); border-radius: var(--r); }
.show h1 { margin-bottom: 18px; }
.show .lead { margin-bottom: 22px; }
.show-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none; font: 500 12px/1.4 var(--f-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }
.meta li { display: flex; align-items: center; gap: 8px; }
.meta li + li::before { content: ''; width: 3px; height: 3px; border-radius: 50%; background: var(--line-2); margin-right: 10px; }
.show.is-page { grid-template-columns: minmax(150px, 210px) 1fr; padding-top: 18px; }
.show.is-page h1 { font-size: clamp(32px, 3.6vw, 50px); }
[data-type="answer"] .show.is-page h1 { font-size: clamp(29px, 3.1vw, 42px); line-height: 1.06; }

.byline { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; color: var(--ink-2); font-size: 15px; }
.byline img { width: 38px; height: 38px; border-radius: 50%; }
.byline b { color: var(--ink); font-weight: 600; }
.byline small { display: block; font: 500 11.5px/1.4 var(--f-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); margin-top: 2px; }

/* ---------- Shelves and sections ---------- */
.shelf { padding: 34px 0 10px; }
.shelf-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.shelf-head .kicker { margin-bottom: 8px; }
.shelf-head a.more { font: 600 14.5px/1 var(--f-text); color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.shelf-head a.more:hover { color: var(--teal-ink); }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 18px; }
@media (max-width: 1180px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tile { text-decoration: none; color: var(--ink); display: block; }
.tile .cover { transition: transform .5s var(--ease); }
.tile:hover .cover { transform: translateY(-4px); }
.tile h3 { font: 650 16px/1.3 var(--f-text); letter-spacing: -.005em; margin: 12px 0 4px; }
.tile p { margin: 0; font-size: 14.5px; line-height: 1.45; color: var(--ink-3); }

.genres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.genre { position: relative; display: block; min-height: 168px; padding: 20px; border-radius: var(--r); overflow: hidden; text-decoration: none; color: #fff; isolation: isolate; }
.genre::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px) 0 0 / 28px 28px, linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px) 0 0 / 28px 28px; }
.genre small { font: 500 11px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; opacity: .8; }
.genre b { display: block; margin-top: 46px; font: 800 clamp(28px, 3vw, 38px)/.95 var(--f-display); letter-spacing: -.04em; }
.genre span { display: block; margin-top: 10px; font-size: 14.5px; line-height: 1.45; opacity: .86; max-width: 34ch; }
.genre:hover b { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* Episode list (answers) */
.episodes { list-style: none; margin: 0; padding: 0; counter-reset: ep; }
.ep { border-bottom: 1px solid var(--line); }
.ep a { display: grid; grid-template-columns: 34px 58px 1fr auto; gap: 16px; align-items: center; padding: 14px 10px; margin: 0 -10px; border-radius: var(--r); text-decoration: none; color: var(--ink); }
.ep a:hover { background: var(--bg-2); }
.ep-n { font: 500 12px/1 var(--f-mono); color: var(--ink-3); text-align: right; }
.ep .cover { width: 58px; border-radius: 4px; }
.ep .cover-w { display: none; }
.ep .cover-k, .ep .cover-n, .ep .cover-s, .ep .cover-crop { display: none; }
.ep b { display: block; font: 620 16.5px/1.3 var(--f-text); letter-spacing: -.005em; }
.ep span { display: block; margin-top: 3px; font-size: 14.5px; line-height: 1.45; color: var(--ink-3); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.ep-t { font: 500 12px/1 var(--f-mono); color: var(--ink-3); white-space: nowrap; }

/* Chapters (steps) */
.chapters { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--ink); }
.chapters li { padding: 18px 18px 6px 0; }
.chapters li + li { padding-left: 18px; border-left: 1px solid var(--line); }
.chapters time, .chapters .ch-n { display: block; font: 500 11.5px/1 var(--f-mono); letter-spacing: .08em; color: var(--teal-ink); margin-bottom: 14px; }
.chapters h3 { margin-bottom: 8px; }
.chapters p { font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.plan { padding: 24px; border: 1px solid var(--line-2); border-radius: var(--r); background: #fff; display: flex; flex-direction: column; }
.plan.is-feature { background: var(--ink); color: #fff; border-color: var(--ink); }
.plan.is-feature h3, .plan.is-feature .price { color: #fff; }
.plan .kicker { margin-bottom: 10px; }
.plan.is-feature .kicker { color: var(--cyan); }
.plan .price { font: 800 clamp(34px, 3.4vw, 44px)/1 var(--f-display); letter-spacing: -.035em; margin: 14px 0 6px; color: var(--ink); opacity: 1; }
.price small { font: 500 14px/1 var(--f-text); letter-spacing: 0; color: inherit; opacity: .7; margin-left: 4px; }
.plan > p { font-size: 15.5px; opacity: .85; }
.plan ul { list-style: none; margin: 8px 0 20px; padding: 0; }
.plan li { position: relative; padding: 8px 0 8px 22px; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.45; }
.plan.is-feature li { border-color: rgba(255,255,255,.14); }
.plan li::before { content: ''; position: absolute; left: 2px; top: 16px; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--teal); }
.plan .btn { margin-top: auto; align-self: flex-start; }
.plan.is-feature .btn-primary { background: #fff; color: var(--ink); }
.plan.is-feature .btn-primary:hover { background: rgb(var(--glow)); }

/* Host card */
.host { display: grid; grid-template-columns: 120px 1fr; gap: 24px; align-items: start; padding: 22px; border: 1px solid var(--line); border-radius: var(--r); background: linear-gradient(180deg, #fff, var(--bg-2)); }
.host img { width: 120px; height: 120px; border-radius: 50%; }
.host h3 { margin-bottom: 4px; }
.host .kicker { margin-bottom: 10px; }
.host p { font-size: 16px; color: var(--ink-2); max-width: 62ch; }

/* ---------- Article body ---------- */
.page { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 48px; align-items: start; }
.page.is-wide { grid-template-columns: minmax(0, 1fr); }
.article { max-width: 70ch; }
.article > section { padding: 26px 0 8px; border-top: 1px solid var(--line); }
.article > section:first-child { border-top: 0; padding-top: 4px; }
.article h2 { margin-bottom: 14px; }
.article h3 { margin: 22px 0 8px; }
.answer { font-size: 18px; line-height: 1.6; color: var(--ink); }
.article ul, .article ol { padding-left: 1.2em; margin: 0 0 1.1em; }
.article li { margin: .35em 0; }
.article li::marker { color: var(--teal); }
.short { margin: 4px 0 26px; padding: 20px 22px; border-radius: var(--r); background: var(--bg-2); border-left: 3px solid var(--teal); }
.short .kicker { margin-bottom: 8px; }
.short p { margin: 0; font-size: 18.5px; line-height: 1.58; color: var(--ink); }
.takeaways { margin: 0 0 26px; padding: 0; list-style: none; counter-reset: tk; border-top: 1px solid var(--ink); }
.takeaways li { counter-increment: tk; position: relative; padding: 12px 0 12px 40px; border-bottom: 1px solid var(--line); font-size: 16.5px; line-height: 1.5; }
.takeaways li::before { content: counter(tk, decimal-leading-zero); position: absolute; left: 0; top: 14px; font: 500 12px/1 var(--f-mono); color: var(--teal-ink); }
.table-wrap { overflow-x: auto; margin: 6px 0 22px; border: 1px solid var(--line); border-radius: var(--r); }
table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.45; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
th { font: 600 12px/1.3 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); background: var(--bg-2); }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 600; color: var(--ink); }
.note { margin: 6px 0 22px; padding: 14px 16px; border: 1px dashed var(--line-2); border-radius: var(--r); font-size: 15px; color: var(--ink-2); }
.tracks { list-style: none; margin: 4px 0 24px; padding: 0; border-top: 1px solid var(--ink); }
.tracks li { display: grid; grid-template-columns: 34px 1fr auto; gap: 14px; align-items: baseline; padding: 13px 0; border-bottom: 1px solid var(--line); }
.tracks .tn { font: 500 12px/1 var(--f-mono); color: var(--ink-3); }
.tracks b { display: block; font: 620 16.5px/1.3 var(--f-text); }
.tracks span { display: block; font-size: 15px; line-height: 1.45; color: var(--ink-2); margin-top: 3px; }
.tracks .tm { font: 500 11.5px/1 var(--f-mono); letter-spacing: .04em; color: var(--ink-3); text-transform: uppercase; white-space: nowrap; }
.faq { border-top: 1px solid var(--ink); }
.faq-item { padding: 18px 0 6px; border-bottom: 1px solid var(--line); }
.faq-item h3 { margin: 0 0 8px; font-size: 18px; }
.faq-item p { color: var(--ink-2); font-size: 16.5px; }
.sources { font-size: 14.5px; color: var(--ink-2); }
.sources li { margin: .4em 0; }
.updated { margin: 28px 0 0; font: 500 12px/1.4 var(--f-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }

/* Sticky aside: chapters + CTA */
.aside { position: sticky; top: calc(var(--top) + 18px); display: flex; flex-direction: column; gap: 16px; }
.toc { border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.toc .kicker { margin-bottom: 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: c; }
.toc li { counter-increment: c; }
.toc a { display: grid; grid-template-columns: 26px 1fr; gap: 6px; padding: 7px 0; font-size: 14px; line-height: 1.35; color: var(--ink-2); text-decoration: none; border-top: 1px solid var(--line); }
.toc li:first-child a { border-top: 0; }
.toc a::before { content: counter(c, decimal-leading-zero); font: 500 11px/1.6 var(--f-mono); color: var(--ink-3); }
.toc a:hover, .toc a.is-current { color: var(--ink); }
.toc a.is-current::before { color: var(--teal-ink); }
.mini-cta { padding: 18px; border-radius: var(--r); background: var(--ink); color: #fff; }
.mini-cta small { display: block; font: 500 10.5px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--cyan); margin-bottom: 8px; }
.mini-cta p { font: 600 16px/1.35 var(--f-display); margin: 0 0 14px; }
.mini-cta .btn { width: 100%; background: #fff; color: var(--ink); height: 40px; font-size: 14.5px; }
.mini-cta .btn:hover { background: rgb(var(--glow)); }

.author { display: grid; grid-template-columns: 72px 1fr; gap: 16px; margin: 30px 0 0; padding: 20px; border: 1px solid var(--line); border-radius: var(--r); }
.author img { width: 72px; height: 72px; border-radius: 50%; }
.author h3 { font-size: 17px; margin: 0 0 2px; }
.author .kicker { margin: 0 0 8px; }
.author p { margin: 0; font-size: 15px; color: var(--ink-2); }

.glossary { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.glossary li { padding: 18px 0 8px; border-bottom: 1px solid var(--line); }
.glossary dfn { font: 700 19px/1.25 var(--f-display); font-style: normal; letter-spacing: -.012em; color: var(--ink); }
.glossary p { margin: 6px 0 8px; color: var(--ink-2); font-size: 16.5px; }
.letters { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; }
.letters a { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 4px; font: 600 13px/1 var(--f-mono); color: var(--ink-2); text-decoration: none; }
.letters a:hover { border-color: var(--ink); color: var(--ink); }

.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--ink); margin: 6px 0 22px; }
.facts div { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); }
.facts div:nth-child(2n) { padding-left: 16px; border-left: 1px solid var(--line); }
.facts dt { font: 500 11px/1.3 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.facts dd { margin: 0; font-size: 16px; line-height: 1.45; color: var(--ink); }

.end-cta { margin: 40px 0 0; padding: clamp(24px, 4vw, 40px); border-radius: var(--r); background: var(--ink); color: #fff; position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; }
.end-cta::before { content: ''; position: absolute; z-index: -1; right: -120px; top: -160px; width: 420px; height: 420px; background: radial-gradient(closest-side, rgba(var(--glow), .45), transparent); }
.end-cta::after { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px) 0 0 / 32px 32px, linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px) 0 0 / 32px 32px; }
.end-cta .kicker { color: var(--cyan); }
.end-cta h2 { color: #fff; max-width: 22ch; }
.end-cta p { margin: 12px 0 0; color: rgba(255,255,255,.78); max-width: 56ch; }
.end-cta .btn-primary { background: #fff; color: var(--ink); }
.end-cta .btn-primary:hover { background: rgb(var(--glow)); }

/* ---------- Footer ---------- */
.foot { margin-top: 30px; padding: 30px clamp(16px, 3vw, 40px) 26px; border-top: 1px solid var(--line); background: var(--bg-2); }
.foot-in { max-width: 1040px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.foot h2 { font: 500 11px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 12px; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin: 7px 0; }
.foot a { color: var(--ink-2); text-decoration: none; font-size: 14.5px; }
.foot a:hover { color: var(--ink); text-decoration: underline; }
.foot p { font-size: 14.5px; color: var(--ink-2); margin: 0 0 10px; max-width: 40ch; }
.foot-base { max-width: 1040px; margin: 22px auto 0; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font: 500 11.5px/1.4 var(--f-mono); letter-spacing: .04em; color: var(--ink-3); }

/* ---------- Player bar ---------- */
.player {
  position: fixed; z-index: 50; left: 0; right: 0; bottom: var(--tabs); height: var(--player);
  display: grid; grid-template-columns: minmax(200px, 1fr) minmax(280px, 1.4fr) minmax(200px, 1fr); align-items: center; gap: 18px;
  padding: 0 18px; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px);
  border-top: 1px solid var(--line);
}
.np { display: flex; align-items: center; gap: 12px; min-width: 0; }
.np .cover { width: 46px; flex: none; border-radius: 4px; }
.np .cover-k, .np .cover-n, .np .cover-s, .np .cover-crop { display: none; }
.np .cover-w { display: none; }
.np .cover-mark, .ep .cover-mark { right: auto; bottom: auto; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 62%; }
.np b { display: block; font: 620 14.5px/1.25 var(--f-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np span { display: block; font: 500 11px/1.4 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np > div { min-width: 0; }
.ctrl { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ctrl-row { display: flex; align-items: center; gap: 16px; }
.ic { width: 34px; height: 34px; display: grid; place-items: center; border: 0; background: none; color: var(--ink-2); border-radius: 50%; cursor: pointer; padding: 0; }
.ic:hover { color: var(--ink); background: var(--bg-3); }
.ic svg { width: 18px; height: 18px; }
.ic-play { width: 38px; height: 38px; background: var(--ink); color: #fff; }
.ic-play:hover { background: #12314a; color: #fff; }
.ic-play svg { width: 15px; height: 15px; }
.ic-play[data-state="playing"] .i-play, .ic-play:not([data-state="playing"]) .i-pause { display: none; }
.bar { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; width: 100%; max-width: 560px; font: 500 11px/1 var(--f-mono); color: var(--ink-3); }
.track { position: relative; height: 4px; background: var(--bg-3); border-radius: 2px; cursor: pointer; }
.track i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--p, 0%); background: var(--ink); border-radius: 2px; }
.track:hover i { background: var(--teal); }
.track u { position: absolute; top: -2px; width: 2px; height: 8px; background: #fff; box-shadow: 0 0 0 .5px var(--line-2); text-decoration: none; }
.side-r { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.chap-pop { position: absolute; right: 18px; bottom: calc(var(--player) + 8px); width: min(360px, calc(100vw - 36px)); max-height: 60vh; overflow: auto; background: #fff; border: 1px solid var(--line-2); border-radius: var(--r); padding: 8px; box-shadow: 0 18px 40px -18px rgba(8,30,47,.3); }
.chap-pop[hidden] { display: none; }
.chap-pop p { margin: 4px 8px 8px; font: 500 10.5px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.chap-pop a { display: grid; grid-template-columns: 28px 1fr; gap: 6px; padding: 9px 8px; border-radius: 4px; text-decoration: none; color: var(--ink-2); font-size: 14.5px; line-height: 1.35; }
.chap-pop a span { font: 500 11px/1.6 var(--f-mono); color: var(--ink-3); }
.chap-pop a:hover, .chap-pop a.is-current { background: var(--bg-2); color: var(--ink); }
.is-reading { background: linear-gradient(90deg, rgba(var(--glow), .45), rgba(var(--glow), .12)); box-shadow: -10px 0 0 rgba(var(--glow), .45); border-radius: 2px; transition: background .3s; }

/* Mobile tab bar */
.tabs { display: none; }

/* ---------- Motion (Rocket Settle; content is visible without JS) ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(26px); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(40px) scale(.97); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@media (prefers-reduced-motion: no-preference) {
  .w { display: inline-block; animation: rise .9s var(--ease) both; animation-delay: calc(var(--i) * 42ms + 80ms); }
  .show-art { animation: slideUp 1.1s var(--ease) both; }
  .show .lead, .show .byline { animation: rise .9s var(--ease) both; animation-delay: .38s; }
  .show-actions, .show .meta { animation: rise .9s var(--ease) both; animation-delay: .5s; }
  @supports (animation-timeline: view()) {
    .reveal { animation: rise both var(--ease); animation-timeline: view(); animation-range: entry 0% entry 38%; }
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .page { grid-template-columns: minmax(0, 1fr); }
  .aside { position: static; display: none; }
}
@media (max-width: 1023px) {
  :root { --tabs: 58px; --player: 62px; }
  .side { display: none; }
  .col { margin-left: 0; }
  .top-brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); }
  .top-brand img { width: 40px; }
  .top-brand b { font: 800 16px/1 var(--f-display); letter-spacing: -.02em; }
  .search kbd { display: none; }
  .player { grid-template-columns: 1fr auto; gap: 10px; padding: 0 12px; }
  .player .ctrl { order: 2; }
  .player .ctrl-row .ic:not(.ic-play) { display: none; }
  .player .bar { position: absolute; left: 0; right: 0; top: -1px; max-width: none; display: block; }
  .player .bar > span { display: none; }
  .player .track { height: 3px; border-radius: 0; }
  .player .track u { display: none; }
  .player .side-r { display: none; }
  .tabs { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; z-index: 51; left: 0; right: 0; bottom: 0; height: var(--tabs); background: #fff; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .tabs a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-decoration: none; color: var(--ink-3); font: 600 11px/1 var(--f-text); }
  .tabs a[aria-current="page"] { color: var(--ink); }
  .tabs svg { width: 20px; height: 20px; }
  .chap-pop { bottom: calc(var(--player) + var(--tabs) + 8px); }
}
@media (max-width: 860px) {
  .show, .show.is-page { grid-template-columns: 1fr; align-items: start; gap: 22px; }
  .show-art { width: min(220px, 62vw); }
  .show.is-page .show-art { width: 150px; }
  .genres { grid-template-columns: 1fr; }
  .genre { min-height: 0; }
  .genre b { margin-top: 26px; }
  .chapters { grid-template-columns: 1fr 1fr; }
  .chapters li:nth-child(3) { padding-left: 0; border-left: 0; }
  .chapters li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .plans { grid-template-columns: 1fr; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .end-cta { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .facts div:nth-child(2n) { padding-left: 0; border-left: 0; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .top { gap: 10px; }
  .top-brand b, .top-cta { display: none; }
  .tiles { grid-template-columns: repeat(2, 1fr); gap: 18px 12px; }
  .ep a { grid-template-columns: 46px 1fr; gap: 12px; }
  .ep-n, .ep-t { display: none; }
  .ep .cover { width: 46px; }
  .chapters { grid-template-columns: 1fr; }
  .chapters li, .chapters li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .host { grid-template-columns: 1fr; }
  .host img { width: 88px; height: 88px; }
  .foot-in { grid-template-columns: 1fr; }
  .tracks li { grid-template-columns: 26px 1fr; }
  .tracks .tm { grid-column: 2; }
}
@media print { .side, .top, .player, .tabs, .aside, .end-cta { display: none !important; } .col { margin: 0; } }
