/* The Real Estate Investing Club — site stylesheet.
   One file, no framework. Tokens first, then base, layout, components, pages.
   Light + dark themes: system preference by default, overridable via
   <html data-theme="light|dark"> (set by the header toggle, stored in localStorage). */

@font-face {
  font-family: "Inter";
  src: url("fonts/inter-var-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("fonts/newsreader-wght-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
/* Metric-matched fallbacks keep layout shift small while the web fonts load. */
@font-face { font-family: "Inter Fallback"; src: local("Arial"); ascent-override: 90.44%; descent-override: 22.52%; line-gap-override: 0%; size-adjust: 107.12%; }
@font-face { font-family: "Newsreader Fallback"; src: local("Georgia"); ascent-override: 92%; descent-override: 25%; line-gap-override: 0%; size-adjust: 94%; }

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;
  --paper: #ffffff;
  --paper-2: #f3f5f8;
  --paper-3: #e9edf2;
  --ink: #0e1726;
  --ink-2: #3b4656;
  --ink-3: #5f6b7c;
  --rule: #e1e5eb;
  --rule-strong: #c7cfd9;
  --accent: #1d6bbd;
  --accent-hover: #175a9f;
  --accent-ink: #ffffff;
  --accent-soft: #e9f1fa;
  --link: #1a62ad;
  --navy: #0d1f35;
  --navy-2: #13294424;
  --navy-ink: #e9eef5;
  --navy-ink-2: #a7b4c6;
  --navy-rule: rgba(233, 238, 245, 0.14);
  --navy-accent: #7fb5ec;
  --cover-1: #0d1f35;
  --cover-2: #17375c;
  --shadow-sm: 0 1px 2px rgba(14, 23, 38, 0.06);
  --shadow-md: 0 14px 34px -18px rgba(14, 23, 38, 0.28);
  --shadow-lg: 0 30px 70px -32px rgba(14, 23, 38, 0.38);
  --header-bg: rgba(255, 255, 255, 0.86);
  --surface: #ffffff;       /* cards that sit on a .band */
  --footer-bg: #081526;     /* a shade deeper than --navy so a closing navy band never fuses with the footer */
  --ok: #1f7a50;
  --err: #c0392b;

  --font-sans: "Inter", "Inter Fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-serif: "Newsreader", "Newsreader Fallback", ui-serif, Georgia, "Times New Roman", serif;

  --step--2: 0.75rem;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.375rem, 1.15rem + 0.9vw, 1.75rem);
  --step-3: clamp(1.875rem, 1.35rem + 2vw, 2.875rem);
  --step-4: clamp(2.375rem, 1.5rem + 3.5vw, 4.25rem);
  --step-5: clamp(2.75rem, 1.6rem + 5vw, 5.75rem);

  --gutter: clamp(20px, 4vw, 48px);
  --max: 1240px;
  --max-text: 68ch;
  --radius: 6px;
  --radius-lg: 10px;
  --section: clamp(64px, 8vw, 116px);
  --header-h: 68px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #0a111c;
    --paper-2: #111c2c;
    --paper-3: #162132;
    --ink: #e6ebf2;
    --ink-2: #b3becc;
    --ink-3: #8a97a9;
    --rule: #1e2939;
    --rule-strong: #2e3b4f;
    --accent: #5ea4ea;
    --accent-hover: #7db6f0;
    --accent-ink: #06111f;
    --accent-soft: #11243b;
    --link: #7db3ef;
    --navy: #13294a;
    --navy-ink: #e9eef5;
    --navy-ink-2: #a7b4c6;
    --navy-rule: rgba(233, 238, 245, 0.12);
    --navy-accent: #8cc0f2;
    --cover-1: #12233a;
    --cover-2: #1b3557;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 14px 34px -18px rgba(0, 0, 0, 0.7);
    --shadow-lg: 0 30px 70px -32px rgba(0, 0, 0, 0.8);
    --header-bg: rgba(10, 17, 28, 0.84);
  --surface: #142033;
  --footer-bg: #060c15;
  --ok: #5fcf98;
  --err: #ff8a7a;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0a111c;
  --paper-2: #111c2c;
  --paper-3: #162132;
  --ink: #e6ebf2;
  --ink-2: #b3becc;
  --ink-3: #8a97a9;
  --rule: #1e2939;
  --rule-strong: #2e3b4f;
  --accent: #5ea4ea;
  --accent-hover: #7db6f0;
  --accent-ink: #06111f;
  --accent-soft: #11243b;
  --link: #7db3ef;
  --navy: #13294a;
  --navy-ink: #e9eef5;
  --navy-ink-2: #a7b4c6;
  --navy-rule: rgba(233, 238, 245, 0.12);
  --navy-accent: #8cc0f2;
  --cover-1: #12233a;
  --cover-2: #1b3557;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 14px 34px -18px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 30px 70px -32px rgba(0, 0, 0, 0.8);
  --header-bg: rgba(10, 17, 28, 0.84);
  --surface: #142033;
  --footer-bg: #060c15;
  --ok: #5fcf98;
  --err: #ff8a7a;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--accent-hover); }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-serif); font-weight: 500; line-height: 1.12; letter-spacing: -0.012em; color: var(--ink); text-wrap: balance; }
p { margin: 0; }
p, li { text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
::selection { background: color-mix(in srgb, var(--accent) 28%, transparent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--ink); color: var(--paper); border-radius: var(--radius); font-weight: 600; text-decoration: none; transition: top 0.15s; }
.skip-link:focus { top: 12px; color: var(--paper); }
.icon { flex: none; }

/* ---------- Layout ---------- */
.container { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.container--narrow { width: min(100% - 2 * var(--gutter), 860px); margin-inline: auto; }
.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section:not(.band):not(.band-navy):not(.cta-band) + .section:not(.band):not(.band-navy):not(.rule-top) { padding-top: 0; }
.band { background: var(--paper-2); }
.band-navy { background: var(--navy); color: var(--navy-ink); }
.band-navy h1, .band-navy h2, .band-navy h3 { color: var(--navy-ink); }
.band-navy a:not(.btn) { color: var(--navy-accent); }
.rule-top { border-top: 1px solid var(--rule); }
.stack > * + * { margin-top: var(--stack, 1rem); }
.grid { display: grid; gap: var(--grid-gap, clamp(24px, 3vw, 40px)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.split { display: grid; gap: clamp(32px, 5vw, 80px); align-items: center; grid-template-columns: 1fr; }
.split--top { align-items: start; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1.05fr 0.95fr; }
  .split--even { grid-template-columns: 1fr 1fr; }
  .split--media-first > :first-child { order: 2; }
}

/* ---------- Typography helpers ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-sans); font-size: var(--step--2); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.eyebrow--accent { color: var(--accent); }
.band-navy .eyebrow { color: var(--navy-ink-2); }
.display { font-size: var(--step-5); line-height: 1.02; letter-spacing: -0.022em; font-weight: 500; }
.h1 { font-size: var(--step-4); line-height: 1.05; letter-spacing: -0.02em; }
.h2 { font-size: var(--step-3); line-height: 1.1; }
.h3 { font-size: var(--step-2); line-height: 1.2; }
.lede { font-size: clamp(1.125rem, 1.02rem + 0.4vw, 1.3125rem); line-height: 1.6; color: var(--ink-2); max-width: 60ch; }
.band-navy .lede { color: var(--navy-ink-2); }
.muted { color: var(--ink-3); }
.meta { font-size: var(--step--1); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.meta > span, .meta > time { white-space: nowrap; }
/* Separator dots sit in the column gap: a dot that would start a wrapped line falls outside the box and is clipped. */
.meta { display: flex; flex-wrap: wrap; row-gap: 2px; column-gap: 1.1em; overflow-x: clip; }
.meta > * + *::before { content: "·"; display: inline-block; width: 1.1em; margin-left: -1.1em; text-align: center; color: var(--rule-strong); }
.band-navy .meta { color: var(--navy-ink-2); }
.serif { font-family: var(--font-serif); }
.num { font-variant-numeric: tabular-nums lining-nums; }

/* ---------- Buttons & links ---------- */
.btn {
  --btn-bg: var(--accent); --btn-fg: var(--accent-ink); --btn-bd: var(--accent);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 48px; padding: 0 1.35rem;
  border: 1px solid var(--btn-bd); border-radius: var(--radius);
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--font-sans); font-size: 0.96875rem; font-weight: 600; line-height: 1; letter-spacing: -0.005em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease), transform 0.18s var(--ease);
}
.btn:hover { --btn-bg: var(--accent-hover); --btn-bd: var(--accent-hover); color: var(--btn-fg); }
.btn:active { transform: translateY(1px); }
.btn .icon { transition: transform 0.2s var(--ease); }
.btn:hover .icon-arrowRight { transform: translateX(3px); }
.btn--secondary { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--rule-strong); }
.btn--secondary:hover { --btn-bg: transparent; --btn-bd: var(--ink); --btn-fg: var(--ink); }
.btn--light { --btn-bg: #ffffff; --btn-fg: #0d1f35; --btn-bd: #ffffff; }
.btn--light:hover { --btn-bg: #e6edf6; --btn-bd: #e6edf6; --btn-fg: #0d1f35; }
.btn--outline-light { --btn-bg: transparent; --btn-fg: var(--navy-ink); --btn-bd: var(--navy-rule); }
.btn--outline-light:hover { --btn-bg: rgba(255, 255, 255, 0.06); --btn-bd: var(--navy-ink-2); --btn-fg: var(--navy-ink); }
.btn--sm { min-height: 40px; padding: 0 1rem; font-size: 0.9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.text-link { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; font-size: 0.96875rem; color: var(--ink); text-decoration: none; }
.text-link .icon { transition: transform 0.2s var(--ease); }
.text-link:hover { color: var(--accent); }
.text-link:hover .icon { transform: translateX(3px); }
.band-navy .text-link { color: var(--navy-ink); }
.band-navy .text-link:hover { color: var(--navy-accent); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--header-bg); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.site-header.is-scrolled, .site-header.is-open { border-bottom-color: var(--rule); }
.site-header__bar { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; margin-right: auto; min-width: 0; }
.brand:hover { color: var(--ink); }
.brand__mark { width: 38px; height: 38px; border-radius: 8px; flex: none; }
.brand__name { font-family: var(--font-serif); font-size: 1.1875rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.05; white-space: nowrap; }
.brand__name small { display: block; font-family: var(--font-sans); font-size: 0.625rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 3px; }
.site-nav { display: none; }
.site-nav ul { list-style: none; display: flex; gap: clamp(14px, 1.6vw, 26px); align-items: center; }
.site-nav a { position: relative; display: inline-block; padding: 6px 0; color: var(--ink-2); font-size: 0.9375rem; font-weight: 500; text-decoration: none; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.25s var(--ease); }
.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav a[aria-current="page"] { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 1px solid transparent; border-radius: var(--radius); background: transparent; color: var(--ink-2); cursor: pointer; transition: color 0.15s, border-color 0.15s, background-color 0.15s; }
.icon-btn:hover { color: var(--ink); border-color: var(--rule); }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}
.header-cta { display: none; }
.menu-toggle .icon-close { display: none; }
.site-header.is-open .menu-toggle .icon-close { display: block; }
.site-header.is-open .menu-toggle .icon-menu { display: none; }
@media (max-width: 420px) { .brand__name { font-size: 1.0625rem; } .brand__mark { width: 34px; height: 34px; } }
@media (min-width: 1080px) {
  .site-nav { display: block; }
  .header-cta { display: inline-flex; }
  .menu-toggle { display: none; }
}

/* Mobile menu panel */
.mobile-menu { position: fixed; inset: var(--header-h) 0 0 0; z-index: 49; background: var(--paper); overflow-y: auto; overscroll-behavior: contain; padding: 8px 0 40px; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0s linear 0.2s; }
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity 0.2s var(--ease), transform 0.2s var(--ease); }
.mobile-menu nav ul { list-style: none; }
.mobile-menu nav a { display: flex; align-items: center; justify-content: space-between; min-height: 60px; border-bottom: 1px solid var(--rule); color: var(--ink); font-family: var(--font-serif); font-size: 1.625rem; text-decoration: none; }
.mobile-menu nav a[aria-current="page"] { color: var(--accent); }
.mobile-menu__cta { margin-top: 28px; display: grid; gap: 12px; }
.mobile-menu__cta .btn { width: 100%; }
.mobile-menu__listen { margin-top: 32px; }
.mobile-menu__row { display: flex; align-items: center; justify-content: space-between; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--rule); }
body.menu-open { overflow: hidden; }
@media (min-width: 1080px) { .mobile-menu { display: none; } }

/* ---------- Platform links ---------- */
.platforms { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; list-style: none; }
.platforms a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; color: var(--ink-2); font-size: 0.9375rem; font-weight: 500; text-decoration: none; transition: color 0.15s; }
.platforms a:hover { color: var(--ink); }
.platforms .icon { opacity: 0.9; }
.platforms--label { color: var(--ink-3); font-size: var(--step--2); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.band-navy .platforms a { color: var(--navy-ink-2); }
.band-navy .platforms a:hover { color: var(--navy-ink); }

/* ---------- Section header ---------- */
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head__text { max-width: 720px; }
.section-head__text .eyebrow { margin-bottom: 14px; }
.section-head__text p:not(.eyebrow) { margin-top: 14px; color: var(--ink-2); font-size: 1.0625rem; max-width: 60ch; }
.band-navy .section-head__text p:not(.eyebrow) { color: var(--navy-ink-2); }

/* ---------- Media + covers ---------- */
.media { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--paper-3); aspect-ratio: 16 / 9; }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.media--square { aspect-ratio: 1 / 1; }
.media--portrait { aspect-ratio: 4 / 5; }
a:hover > .media img, .card:hover .media img { transform: scale(1.035); }
.media__badge { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px 6px 8px; border-radius: 4px; background: rgba(8, 15, 26, 0.78); color: #fff; font-size: 0.8125rem; font-weight: 600; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
/* Typographic episode cover, used when an episode has no video thumbnail. */
.cover { position: relative; display: grid; align-content: space-between; height: 100%; padding: clamp(14px, 3%, 24px); background: radial-gradient(120% 90% at 100% 0%, var(--cover-2), transparent 60%), var(--cover-1); color: #eef3f9; }
.cover__show { display: flex; align-items: center; gap: 8px; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(238, 243, 249, 0.72); }
.cover__show img { width: 22px; height: 22px; border-radius: 4px; }
.cover__num { font-family: var(--font-serif); font-size: clamp(2.25rem, 7cqi, 4.5rem); line-height: 0.9; letter-spacing: -0.03em; font-weight: 500; }
.cover__guest { font-family: var(--font-serif); font-size: clamp(1rem, 3.2cqi, 1.5rem); line-height: 1.15; color: rgba(238, 243, 249, 0.92); max-width: 90%; }
.media { container-type: inline-size; }

/* ---------- Episode cards ---------- */
.ep-grid { display: grid; gap: clamp(28px, 3vw, 40px) clamp(20px, 2.5vw, 32px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.ep-card { position: relative; display: flex; flex-direction: column; gap: 14px; }
.ep-card__link { position: absolute; inset: 0; z-index: 1; border-radius: var(--radius); }
.ep-card__link:focus-visible { outline-offset: 4px; }
.ep-card__body { display: grid; gap: 6px; }
.ep-card__title { font-size: 1.3125rem; line-height: 1.22; font-weight: 500; }
.ep-card:hover .ep-card__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.ep-card__guest { font-size: 0.9375rem; color: var(--ink-2); font-weight: 500; }
.ep-card .media img { transition: transform 0.5s var(--ease); }
.ep-card:hover .media img { transform: scale(1.035); }

/* Episode rows (archive lists): number · thumbnail · title / guest · date · length / summary.
   Phones drop the thumbnail, length and summary so the title gets the width. */
.ep-list { list-style: none; border-top: 1px solid var(--rule); }
.ep-row { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 6px 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.ep-row__num { font-family: var(--font-serif); font-size: 1.25rem; line-height: 1; color: var(--ink-3); font-variant-numeric: lining-nums tabular-nums; }
.ep-row__body { min-width: 0; }
.ep-row__title { font-size: 1.1875rem; line-height: 1.3; font-weight: 500; }
.ep-row__title a { color: var(--ink); text-decoration: none; }
.ep-row__title a::after { content: ""; position: absolute; inset: 0; }
.ep-row:hover .ep-row__title a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.ep-row .meta { margin-top: 4px; }
.ep-row__thumb { display: none; width: 152px; }
.ep-row__summary { display: none; }
@media (max-width: 759.98px) { .ep-row__dur { display: none; } }
@media (min-width: 760px) {
  .ep-row { grid-template-columns: 52px 152px minmax(0, 1fr); gap: 6px 24px; padding: 20px 0; }
  .ep-row__num { font-size: 1.5rem; }
  .ep-row__thumb { display: block; }
  .ep-row__summary { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; margin-top: 6px; max-width: 70ch; color: var(--ink-2); font-size: 0.9375rem; line-height: 1.5; }
}

/* ---------- Featured episode ---------- */
.feature { display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (min-width: 960px) { .feature { grid-template-columns: 1.25fr 1fr; } }
.feature__media { position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.feature__media .media { border-radius: 0; }
.feature__play { position: absolute; inset: 0; display: grid; place-items: center; }
.feature__play span { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: rgba(255, 255, 255, 0.94); color: #0d1f35; box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.5); transition: transform 0.25s var(--ease); }
.feature__media:hover .feature__play span { transform: scale(1.06); }
.feature__title { font-size: clamp(1.875rem, 1.3rem + 2vw, 3rem); line-height: 1.08; margin-top: 14px; }
.feature__title a { color: inherit; text-decoration: none; }
.feature__title a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.12em; }
.feature__guest { margin-top: 14px; font-size: 1.0625rem; font-weight: 500; color: var(--ink-2); }
.feature__summary { margin-top: 18px; color: var(--ink-2); font-size: 1.0625rem; max-width: 56ch; }
.feature .btn-row { margin-top: 28px; }
.band-navy .feature__guest, .band-navy .feature__summary { color: var(--navy-ink-2); }

/* ---------- Topic index ---------- */
.topic-index { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); border-top: 1px solid var(--rule); }
.topic-index a { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 22px 4px 22px 0; border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none; transition: color 0.15s, padding 0.25s var(--ease); }
.topic-index a:hover { color: var(--accent); padding-left: 6px; }
.topic-index__name { font-family: var(--font-serif); font-size: 1.5rem; line-height: 1.2; text-wrap: balance; }
.topic-index__count { font-size: var(--step--1); color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (min-width: 640px) { .topic-index { column-gap: clamp(24px, 3vw, 48px); } }
/* Phones: one column, so tighter rows keep the whole list in view (all topics stay listed). */
@media (max-width: 639px) {
  .topic-index a { padding-block: 16px; }
  .topic-index__name { font-size: 1.25rem; }
}
/* /topics: each topic with its description; counts pinned to the bottom so they line up per row. */
.topic-group__title { margin-bottom: 20px; }
.topic-index--described a { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 6px; }
.topic-index__desc { color: var(--ink-2); font-size: 0.9375rem; line-height: 1.5; max-width: 46ch; }
.topic-index--described .topic-index__count { margin-top: auto; padding-top: 4px; }

/* Filter tabs (episodes page) */
.filters { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.filters::-webkit-scrollbar { display: none; }
.filter { flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--rule); border-radius: 999px; background: transparent; color: var(--ink-2); font-size: 0.9rem; font-weight: 500; text-decoration: none; cursor: pointer; transition: all 0.15s; }
.filter:hover { color: var(--ink); border-color: var(--rule-strong); }
.filter[aria-pressed="true"], .filter[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
@media (min-width: 900px) { .filters { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; } }
/* Narrow screens scroll the chips sideways: fade only the right gutter, so the last chip is never faded. */
@media (max-width: 899.98px) {
  .filters { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - var(--gutter)), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - var(--gutter)), transparent); }
}
/* Result count line: wraps long queries; collapses while empty but stays in the a11y tree (live region). */
.meta[data-episode-count] { display: block; }
.meta[data-episode-count]:empty { margin-top: 0; }

/* Search */
.search { position: relative; max-width: 560px; }
.search .icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.search input { width: 100%; min-height: 54px; padding: 0 16px 0 48px; border: 1px solid var(--rule-strong); border-radius: var(--radius); background: var(--paper); color: var(--ink); font: inherit; font-size: 1.0625rem; transition: border-color 0.15s, box-shadow 0.15s; }
.search input::placeholder { color: var(--ink-3); }
.search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }

/* Pagination */
.pagination { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; margin-top: 40px; list-style: none; }
.pagination a, .pagination span { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid var(--rule); border-radius: var(--radius); color: var(--ink-2); text-decoration: none; font-variant-numeric: tabular-nums; }
.pagination a:hover { border-color: var(--ink); color: var(--ink); }
.pagination [aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* ---------- Page hero ---------- */
.page-hero { padding-block: clamp(48px, 7vw, 104px) clamp(36px, 5vw, 64px); }
.page-hero .eyebrow { margin-bottom: 18px; }
.page-hero h1 { max-width: 18ch; }
.page-hero .lede { margin-top: 22px; }
.page-hero .btn-row { margin-top: 32px; }

/* Home hero */
.home-hero { position: relative; padding-block: clamp(40px, 6vw, 88px) clamp(56px, 7vw, 104px); overflow: hidden; }
.home-hero__grid { display: grid; gap: clamp(36px, 5vw, 72px); align-items: end; }
@media (min-width: 980px) { .home-hero__grid { grid-template-columns: 1.15fr 0.85fr; align-items: center; } }
.home-hero h1 { margin-top: 20px; }
.home-hero .lede { margin-top: 26px; }
.home-hero .btn-row { margin-top: 34px; }
.home-hero .eyebrow { text-wrap: balance; }

/* Stats strip */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--rule); }
.stats > div { padding: 24px 0 4px; }
.stats dt { order: 2; font-size: var(--step--1); color: var(--ink-3); margin-top: 6px; }
.stats dd { margin: 0; font-family: var(--font-serif); font-size: clamp(2rem, 1.5rem + 2vw, 3rem); line-height: 1; letter-spacing: -0.02em; font-variant-numeric: lining-nums; }
.stats > div { display: flex; flex-direction: column; }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, 1fr); } .stats > div + div { padding-left: 24px; border-left: 1px solid var(--rule); } }
.band-navy .stats { border-color: var(--navy-rule); }
.band-navy .stats dt { color: var(--navy-ink-2); }
.band-navy .stats > div + div { border-color: var(--navy-rule); }

/* ---------- Community block ---------- */
.community { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (min-width: 960px) { .community { grid-template-columns: 0.95fr 1.05fr; } }
.checklist { list-style: none; display: grid; gap: 14px; margin-top: 28px; }
.checklist li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; color: var(--ink-2); }
.checklist .icon { margin-top: 3px; color: var(--accent); }
.band-navy .checklist li { color: var(--navy-ink-2); }
.band-navy .checklist .icon { color: var(--navy-accent); }
.screen-frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--rule); box-shadow: var(--shadow-lg); background: var(--paper); }
.screen-frame__bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-bottom: 1px solid var(--rule); background: var(--paper-2); }
.screen-frame__bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--rule-strong); }
.screen-frame__bar em { margin-left: 12px; font-style: normal; font-size: 0.75rem; color: var(--ink-3); }
.band-navy .screen-frame { border-color: var(--navy-rule); }

/* ---------- Apps ---------- */
.app-feature { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (min-width: 960px) { .app-feature { grid-template-columns: 1fr 1fr; } .app-feature--flip > :first-child { order: 2; } }
.app-head { display: flex; align-items: center; gap: 16px; }
.app-icon { width: 64px; height: 64px; border-radius: 15px; box-shadow: 0 0 0 1px var(--edge), 0 8px 20px -10px rgba(0, 0, 0, 0.5); flex: none; background: var(--paper-3); }
.app-icon--placeholder { display: grid; place-items: center; font-family: var(--font-serif); font-size: 1.75rem; color: #eef3f9; background: radial-gradient(120% 90% at 100% 0%, var(--cover-2), transparent 60%), var(--cover-1); }
.app-head__name { font-family: var(--font-serif); font-size: 1.5rem; line-height: 1.15; }
.app-head__sub { font-size: var(--step--1); color: var(--ink-3); margin-top: 2px; }
.status { display: inline-flex; align-items: center; gap: 7px; font-size: 0.8125rem; font-weight: 600; color: var(--ink-2); }
.status::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
/* Live = filled dot, unreleased = hollow ring: the two states differ by shape, not only colour. */
.status--soon::before { background: transparent; border: 1.5px solid var(--ink-3); }
.phones { position: relative; display: flex; justify-content: center; gap: clamp(12px, 2vw, 22px); align-items: flex-start; }
.phones img { width: min(46%, 250px); border-radius: 26px; box-shadow: 0 0 0 1px var(--edge), var(--shadow-lg); }
.phones img + img { margin-top: clamp(28px, 5vw, 64px); }
.app-placeholder { display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: var(--radius-lg); border: 1px dashed var(--rule-strong); color: var(--ink-3); background: var(--paper-2); text-align: center; padding: 24px; }
.app-store-badge { display: inline-block; line-height: 0; border-radius: 10px; }
.app-store-badge img { height: 52px; width: auto; }
.app-list { display: grid; gap: clamp(20px, 2.5vw, 28px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.app-card { position: relative; display: flex; flex-direction: column; gap: 16px; padding: clamp(22px, 2.5vw, 30px); border: 1px solid var(--rule); border-radius: var(--radius-lg); background: var(--surface); transition: border-color 0.2s, transform 0.25s var(--ease), box-shadow 0.25s var(--ease); }
.app-card:hover { border-color: var(--rule-strong); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.app-card p { color: var(--ink-2); }
.app-card__link { position: absolute; inset: 0; border-radius: var(--radius-lg); }
.app-card .text-link { margin-top: auto; position: relative; }

/* Spotlight (featured app callout, home page only). A blue-tinted panel so it reads apart from grey bands and white app cards. */
.spotlight { display: grid; gap: clamp(28px, 4vw, 56px); align-items: center; padding: clamp(28px, 4vw, 56px); border-radius: var(--radius-lg); background: var(--accent-soft); color: var(--ink); border: 1px solid var(--rule-strong); border-color: color-mix(in srgb, var(--accent) 22%, transparent); box-shadow: var(--shadow-md); overflow: hidden; position: relative; }
.spotlight h3 { color: var(--ink); }
.spotlight p { color: var(--ink-2); }
.spotlight .phones img { box-shadow: var(--shadow-lg); }
.spotlight__label { display: flex; align-items: center; gap: 12px; }
.spotlight__label .app-icon { border-radius: 10px; }
.spotlight__name { font-family: var(--font-sans); font-size: 1rem; font-weight: 600; line-height: 1.3; letter-spacing: 0; }
.spotlight .spotlight__sub { font-size: var(--step--1); color: var(--ink-3); margin-top: 2px; }
.spotlight .spotlight__pitch { font-family: var(--font-serif); font-size: clamp(1.625rem, 1.25rem + 1.2vw, 2.25rem); line-height: 1.15; letter-spacing: -0.015em; color: var(--ink); text-wrap: balance; max-width: 24ch; }
.spotlight__specs { list-style: none; max-width: 52ch; border-top: 1px solid var(--rule-strong); border-top-color: color-mix(in srgb, var(--accent) 20%, transparent); }
.spotlight__specs li { padding: 10px 0; font-size: 0.96875rem; line-height: 1.45; color: var(--ink-2); border-bottom: 1px solid var(--rule-strong); border-bottom-color: color-mix(in srgb, var(--accent) 20%, transparent); }
.spotlight .spotlight__note { font-size: 0.9375rem; color: var(--ink-3); }
/* Desktop: both phones sit whole inside the panel, centred against the copy (a partial bottom crop read as a layout slip). */
@media (min-width: 900px) {
  .spotlight { grid-template-columns: 1.1fr 0.9fr; }
}

/* ---------- Cards (articles, resources) ---------- */
.card { position: relative; display: flex; flex-direction: column; gap: 12px; }
.card__title { font-size: 1.3125rem; line-height: 1.25; font-weight: 500; }
.card__title a { color: var(--ink); text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card:hover .card__title a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.card p { color: var(--ink-2); font-size: 0.98rem; }
.article-list { list-style: none; border-top: 1px solid var(--rule); }
.article-list li { position: relative; display: grid; gap: 6px; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.article-list a { color: var(--ink); text-decoration: none; font-family: var(--font-serif); font-size: 1.3125rem; line-height: 1.25; }
.article-list a::after { content: ""; position: absolute; inset: 0; }
.article-list li:hover a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.article-list p { color: var(--ink-2); font-size: 0.96rem; max-width: 68ch; }

/* Pull quote / testimonial */
.quote { margin: 0; }
.quote blockquote { margin: 0; font-family: var(--font-serif); font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem); line-height: 1.3; letter-spacing: -0.01em; }
.quote figcaption { margin-top: 16px; font-size: var(--step--1); color: var(--ink-3); }
.quotes { display: grid; gap: clamp(32px, 4vw, 64px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.band-navy .quote figcaption { color: var(--navy-ink-2); }

/* ---------- Newsletter ---------- */
.newsletter { display: grid; gap: 24px 48px; align-items: center; padding-block: clamp(36px, 5vw, 56px); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
@media (min-width: 900px) { .newsletter { grid-template-columns: 1fr 1fr; } }
.newsletter h2 { font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.25rem); }
.newsletter p { margin-top: 10px; color: var(--ink-2); }
.form-inline { display: flex; flex-wrap: wrap; gap: 10px; }
.form-inline input { flex: 1 1 240px; }
.input, .form-inline input, .field input, .field textarea, .field select { min-height: 50px; padding: 0 16px; border: 1px solid var(--rule-strong); border-radius: var(--radius); background: var(--paper); color: var(--ink); font: inherit; font-size: 1rem; transition: border-color 0.15s, box-shadow 0.15s; }
.field textarea { min-height: 160px; padding: 14px 16px; resize: vertical; line-height: 1.5; }
.input:focus, .form-inline input:focus, .field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.form-note { margin-top: 10px; font-size: var(--step--1); color: var(--ink-3); }
.form-status { margin-top: 12px; font-size: 0.95rem; font-weight: 500; }
.form-status[data-state="ok"] { color: var(--ok); }
.form-status[data-state="error"] { color: var(--err); }
.field { display: grid; gap: 8px; }
.field label, .field legend { font-size: 0.875rem; font-weight: 600; color: var(--ink-2); }
.form-grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } }
.choices { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.choices legend { margin-bottom: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border: 1px solid var(--rule-strong); border-radius: 999px; font-size: 0.9375rem; color: var(--ink-2); cursor: pointer; transition: all 0.15s; }
.choice input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: var(--step--1); color: var(--ink-3); }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; color: var(--rule-strong); }
.breadcrumbs a { color: var(--ink-3); text-decoration: none; }
.breadcrumbs a:hover { color: var(--ink); text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: var(--ink-2); }

/* ---------- Episode page ---------- */
.episode-hero { padding-block: clamp(28px, 4vw, 48px) clamp(28px, 4vw, 40px); }
.episode-hero h1 { margin-top: 18px; font-size: clamp(2rem, 1.3rem + 2.8vw, 3.5rem); line-height: 1.08; max-width: 24ch; }
.episode-hero .meta { margin-top: 16px; font-size: 0.95rem; }
/* "with <Guest>": part of the h1 text, set as a smaller sans line under the title. */
.episode-hero__guest { display: block; margin-top: 12px; font-family: var(--font-sans); font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); font-weight: 500; line-height: 1.4; letter-spacing: 0; color: var(--ink-2); text-wrap: pretty; }
.episode-hero__guest::first-letter { text-transform: uppercase; }
.episode-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(40px, 5vw, 72px); }
@media (min-width: 1000px) { .episode-layout { grid-template-columns: minmax(0, 1fr) 320px; } }
.player { border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: 18px; background: var(--paper-2); }
.player audio { width: 100%; }
/* Custom controls (site.js); the native <audio controls> stays as the no-JS fallback. */
.player__ui { display: flex; align-items: center; gap: 14px; }
.player__ui[hidden] { display: none; }
.player__toggle { flex: none; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: var(--accent); color: var(--accent-ink); cursor: pointer; transition: background-color 0.18s var(--ease); }
.player__toggle:hover { background: var(--accent-hover); }
.player__toggle .icon-play { transform: translateX(1px); }
.player__toggle .icon-pause, .player.is-playing .player__toggle .icon-play { display: none; }
.player.is-playing .player__toggle .icon-pause { display: block; }
.player__body { flex: 1; min-width: 0; }
.player__seek { --p: 0%; display: block; width: 100%; height: 24px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.player__seek::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(to right, var(--accent) var(--p), var(--rule-strong) var(--p)); }
.player__seek::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5px; border: 0; border-radius: 50%; background: var(--accent); }
.player__seek::-moz-range-track { height: 4px; border-radius: 2px; background: var(--rule-strong); }
.player__seek::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--accent); }
.player__seek::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: var(--accent); }
.player__seek:focus-visible { outline-offset: 2px; }
.player__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 8px; }
.player__time { font-size: 0.8125rem; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.player__aux { display: flex; gap: 2px; margin-left: auto; }
.player__aux button { min-width: 40px; min-height: 36px; padding: 0 6px; border: 0; border-radius: var(--radius); background: transparent; color: var(--ink-2); font: 600 0.8125rem/1 var(--font-sans); font-variant-numeric: tabular-nums; cursor: pointer; }
.player__aux button:hover { background: var(--paper-3); color: var(--ink); }
.player__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 18px; margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--rule); }
.player__foot .platforms { gap: 0 18px; }
.player__foot .platforms a { min-height: 36px; font-size: 0.875rem; }
@media (max-width: 479.98px) { .player__foot .platforms { gap: 0 14px; } .player__foot .platforms a { gap: 6px; font-size: 0.8125rem; } }
@media (max-width: 359.98px) {
  .player { padding: 14px; }
  .player__ui { gap: 10px; }
  .player__toggle { width: 44px; height: 44px; }
  .player__aux button { min-width: 34px; padding: 0 4px; }
}
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: #000; }
.video button, .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video button { padding: 0; cursor: pointer; background: #000; }
.video button img { width: 100%; height: 100%; object-fit: cover; opacity: 0.92; transition: opacity 0.2s, transform 0.5s var(--ease); }
.video button:hover img { opacity: 1; transform: scale(1.02); }
.video__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 78px; height: 78px; border-radius: 50%; background: rgba(255, 255, 255, 0.95); color: #0d1f35; box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.55); }
.aside-box { border-top: 2px solid var(--ink); padding-top: 18px; }
.aside-box + .aside-box { margin-top: 40px; }
.aside-box h2 { font-family: var(--font-sans); font-size: var(--step--2); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.tag-list a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border: 1px solid var(--rule); border-radius: 999px; color: var(--ink-2); font-size: 0.875rem; text-decoration: none; }
.tag-list a:hover { border-color: var(--ink); color: var(--ink); }
.sticky-aside { position: sticky; top: calc(var(--header-h) + 24px); }

/* ---------- Prose (articles, show notes) ---------- */
.prose { font-family: var(--font-serif); font-size: clamp(1.125rem, 1.06rem + 0.3vw, 1.25rem); line-height: 1.7; color: var(--ink); max-width: var(--max-text); }
.prose > * + * { margin-top: 1.1em; }
/* html's scroll-padding-top already clears the sticky header; this only adds a little air (the two add up). */
.prose h2 { font-size: clamp(1.625rem, 1.35rem + 1vw, 2.125rem); line-height: 1.2; margin-top: 2em; scroll-margin-top: 8px; }
.prose h3 { font-size: 1.375rem; line-height: 1.25; margin-top: 1.7em; scroll-margin-top: 8px; }
.prose h4 { font-family: var(--font-sans); font-size: 1.0625rem; font-weight: 600; margin-top: 1.5em; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: 0.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.45em; }
.prose li::marker { color: var(--ink-3); }
.prose a { color: var(--link); }
.prose strong { font-weight: 600; }
.prose blockquote { margin-inline: 0; padding-left: 1.2em; border-left: 2px solid var(--accent); color: var(--ink-2); font-style: italic; }
.prose img, .prose figure img { border-radius: var(--radius); }
.prose figure { margin-inline: 0; }
.prose figcaption { margin-top: 10px; font-family: var(--font-sans); font-size: var(--step--1); color: var(--ink-3); }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin-block: 2.2em; }
.prose table { width: 100%; border-collapse: collapse; font-family: var(--font-sans); font-size: 0.95rem; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.prose th { font-weight: 600; color: var(--ink-2); background: var(--paper-2); }
.prose svg { display: inline-block; width: 1.1em; height: 1.1em; vertical-align: -0.15em; }
.prose a { overflow-wrap: anywhere; }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--radius); }
.prose .post-video { margin-block: 2em; }
.prose .post-video img { border-radius: 0; }
.prose dl.guest-info { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; font-family: var(--font-sans); font-size: 1rem; padding: 18px 20px; border: 1px solid var(--rule); border-radius: var(--radius-lg); background: var(--paper-2); }
.prose dl.guest-info dt { font-weight: 600; color: var(--ink-3); }
.prose dl.guest-info dd { margin: 0; min-width: 0; }
.prose > :first-child { margin-top: 0; }
.prose--sans { font-family: var(--font-sans); font-size: 1.0625rem; line-height: 1.7; }
.prose--sans h2 { font-family: var(--font-serif); }

/* Article header + TOC */
.article-hero { padding-block: clamp(32px, 5vw, 64px) clamp(24px, 3vw, 40px); }
.article-hero h1 { margin-top: 18px; font-size: clamp(2.125rem, 1.4rem + 3vw, 3.75rem); line-height: 1.06; max-width: 22ch; }
.article-hero .lede { margin-top: 20px; }
.article-hero .meta { margin-top: 22px; }
.article-cover { margin: 0 0 clamp(32px, 4vw, 56px); }
.article-cover img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-lg); background: var(--paper-2); }
.article-layout { display: grid; gap: clamp(32px, 5vw, 80px); }
@media (min-width: 1080px) { .article-layout { grid-template-columns: minmax(0, 1fr) 300px; } }
.toc ol { list-style: none; counter-reset: toc; display: grid; gap: 2px; }
.toc li { counter-increment: toc; }
.toc a { display: grid; grid-template-columns: 28px 1fr; padding: 8px 0; color: var(--ink-2); font-size: 0.9375rem; line-height: 1.4; text-decoration: none; border-bottom: 1px solid var(--rule); }
.toc a::before { content: counter(toc, decimal-leading-zero); color: var(--ink-3); font-variant-numeric: tabular-nums; font-size: 0.8125rem; padding-top: 1px; }
.toc a:hover { color: var(--ink); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; }
.cta-band__inner { display: grid; gap: 28px; align-items: end; }
@media (min-width: 900px) { .cta-band__inner { grid-template-columns: 1.3fr auto; } }
.cta-band h2 { font-size: var(--step-4); line-height: 1.04; max-width: 16ch; }
.cta-band p { margin-top: 18px; max-width: 54ch; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); border-top: 1px solid var(--navy-rule); color: var(--navy-ink-2); padding-block: clamp(56px, 7vw, 88px) 32px; font-size: 0.9375rem; }
.site-footer a { color: var(--navy-ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--navy-ink); text-decoration: underline; text-underline-offset: 0.2em; }
.footer-top { display: grid; gap: 40px; }
@media (min-width: 1000px) { .footer-top { grid-template-columns: 1.4fr 3fr; gap: 64px; } }
.footer-brand .brand { color: var(--navy-ink); }
.footer-brand .brand small { color: var(--navy-ink-2); }
.footer-brand p { margin-top: 18px; max-width: 38ch; line-height: 1.6; }
.footer-cols { display: grid; gap: 32px 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .footer-cols { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.footer-cols h2 { font-family: var(--font-sans); font-size: var(--step--2); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--navy-ink); margin-bottom: 14px; }
.footer-cols ul { list-style: none; display: grid; gap: 10px; }
.footer-social { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 24px; list-style: none; }
.footer-social a { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--navy-rule); border-radius: 50%; }
.footer-social a:hover { border-color: var(--navy-ink-2); text-decoration: none; }
.footer-news { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--navy-rule); display: grid; gap: 16px 40px; align-items: center; }
@media (min-width: 900px) { .footer-news { grid-template-columns: 1fr 1.1fr; } }
.footer-news h2 { font-family: var(--font-serif); font-size: 1.5rem; color: var(--navy-ink); font-weight: 500; }
.footer-news p { margin-top: 6px; }
.site-footer .form-inline input { background: rgba(255, 255, 255, 0.04); border-color: var(--navy-rule); color: var(--navy-ink); }
.site-footer .form-inline input::placeholder { color: var(--navy-ink-2); }
.site-footer .form-inline input:focus { border-color: var(--navy-accent); box-shadow: 0 0 0 3px rgba(127, 181, 236, 0.25); }
.site-footer .form-status[data-state="ok"] { color: #7fdcac; }
.site-footer .form-status[data-state="error"] { color: #ff9b8f; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--navy-rule); font-size: 0.8125rem; }
.footer-legal ul { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; }

/* ---------- Home ---------- */
.home-hero__listen { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin-top: 32px; }
.home-hero__art { margin: 0; justify-self: center; width: min(78vw, 440px); }
.home-hero__art a { display: block; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.home-hero__art a:hover { transform: translateY(-3px); }
.home-hero__art img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.home-hero__art figcaption { margin-top: 14px; font-size: var(--step--1); color: var(--ink-3); text-align: center; }
.home-hero .stats { margin-top: clamp(40px, 6vw, 72px); }
.host { display: grid; gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (min-width: 900px) { .host { grid-template-columns: 0.42fr 1fr; } }
.host__portrait { margin: 0; max-width: 380px; }
.host__portrait .media { border-radius: var(--radius-lg); }
.host .quotes { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 32px; }
.host .quote blockquote { font-size: clamp(1.1875rem, 1.05rem + 0.5vw, 1.4375rem); }
.community { align-items: start; }
.band-navy .checklist { margin-top: 0; }
.band-navy .checklist li { font-size: 1.0625rem; padding-bottom: 14px; border-bottom: 1px solid var(--navy-rule); }

/* ---------- Community page ---------- */
.community-panel { padding: clamp(24px, 3vw, 36px); border: 1px solid var(--rule); border-radius: var(--radius-lg); background: var(--paper-2); }
.community-panel__title { margin-top: 10px; font-family: var(--font-serif); font-size: 2rem; line-height: 1.1; }
.community-panel__when { margin-top: 6px; font-weight: 600; color: var(--ink-2); }
.community-panel hr { border: 0; border-top: 1px solid var(--rule); margin: 24px 0 18px; }
/* Columns as wide as the longest tag, so no tag breaks mid-label (1 column on phones, 2 on desktop). */
.community-panel__list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 12.5rem), 1fr)); gap: 8px 16px; margin-top: 12px; font-size: 0.95rem; color: var(--ink-2); }
.community-panel__list li::before { content: "#"; margin-right: 6px; color: var(--accent); font-weight: 600; }
/* Three items: one row from 900px, a single column below (never 2 + 1). */
.feature-grid { display: grid; gap: clamp(28px, 3vw, 44px) clamp(24px, 3vw, 48px); grid-template-columns: 1fr; }
@media (min-width: 900px) { .feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.feature-item { border-top: 2px solid var(--ink); padding-top: 18px; }
.feature-item h3 { font-size: 1.375rem; line-height: 1.25; }
.feature-item p { margin-top: 10px; color: var(--ink-2); max-width: var(--max-text); }

/* ---------- Resources ---------- */
.jump ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.jump a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--rule); border-radius: 999px; color: var(--ink-2); font-size: 0.9rem; text-decoration: none; }
.jump a:hover { border-color: var(--ink); color: var(--ink); }
.two-col-list .article-list { display: grid; column-gap: clamp(24px, 4vw, 64px); }
@media (min-width: 900px) { .two-col-list .article-list { grid-template-columns: 1fr 1fr; } .two-col-list .article-list li:nth-child(2) { border-top: 0; } }
.mini-apps { display: grid; gap: 12px; }
.mini-app { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; padding: 14px; border: 1px solid var(--rule); border-radius: var(--radius-lg); background: var(--surface); color: var(--ink); text-decoration: none; transition: border-color 0.2s; }
.mini-app:hover { border-color: var(--rule-strong); color: var(--ink); }
.mini-app strong { display: block; font-weight: 600; }
.mini-app .muted { display: block; font-size: 0.9rem; line-height: 1.45; }
.link-list { list-style: none; border-top: 1px solid var(--rule); }
.link-list li { border-bottom: 1px solid var(--rule); }
.link-list a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; font-family: var(--font-serif); font-size: 1.25rem; line-height: 1.3; color: var(--ink); text-decoration: none; }
.link-list a:hover { color: var(--accent); }
.link-list .muted { flex: none; font-family: var(--font-sans); font-size: 0.9rem; }
.tool-groups { display: grid; gap: clamp(28px, 3vw, 48px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.tool-group h3 { font-family: var(--font-sans); font-size: var(--step--2); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.tool-group ul { list-style: none; }
.tool-group li a { display: grid; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none; }
.tool-group li a:hover .tool-name { color: var(--accent); }
.tool-name { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.tool-what { font-size: var(--step--1); color: var(--ink-3); }
.tool-blurb { font-size: 0.95rem; color: var(--ink-2); }
.tool-group .mini-apps { margin-top: 14px; }
/* App detail "More screens": a centred row; on phones a swipeable row with the next screen peeking in.
   The bottom padding keeps the scroller from clipping the phones' drop shadow. */
.phones--row { justify-content: center; gap: clamp(12px, 2vw, 28px); max-width: 860px; margin-inline: auto; }
.phones--row img { flex: 1 1 0; min-width: 0; width: auto; max-width: 268px; margin: 0 !important; }
@media (max-width: 640px) {
  .phones--row { justify-content: flex-start; max-width: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 48px; scroll-padding-inline: var(--gutter); }
  .phones--row::-webkit-scrollbar { display: none; }
  .phones--row img { flex: 0 0 min(68%, 260px); max-width: none; scroll-snap-align: start; }
}

/* ---------- About ---------- */
.about-portrait { margin: 0; justify-self: center; width: min(100%, 420px); }
.about-portrait .media { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.timeline { list-style: none; margin-top: 16px; border-top: 1px solid var(--rule); }
.timeline li { display: grid; grid-template-columns: 72px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.timeline__year { font-family: var(--font-serif); font-size: 1.375rem; line-height: 1.2; color: var(--ink-3); font-variant-numeric: lining-nums tabular-nums; }
.timeline strong { display: block; font-weight: 600; }
.timeline .muted { display: block; font-size: 0.95rem; }
.social-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.social-list a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; text-decoration: none; color: inherit; }
.band-navy .social-list a { color: var(--navy-ink-2); }
.band-navy .social-list a:hover { color: var(--navy-ink); }

/* ---------- Guest ---------- */
.steps { list-style: none; display: grid; gap: clamp(28px, 3vw, 44px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); counter-reset: none; }
.steps li { border-top: 2px solid var(--ink); padding-top: 18px; }
.steps__n { display: block; font-family: var(--font-serif); font-size: 2.25rem; line-height: 1; color: var(--accent); font-variant-numeric: lining-nums; }
.steps h3 { margin-top: 14px; font-size: 1.375rem; }
.steps p { margin-top: 10px; color: var(--ink-2); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: clamp(40px, 5vw, 80px); }
@media (min-width: 960px) { .contact-grid { grid-template-columns: minmax(0, 1fr) 320px; } }
.contact-form { padding: clamp(22px, 3vw, 36px); border: 1px solid var(--rule); border-radius: var(--radius-lg); background: var(--paper-2); }
.contact-form .field input, .contact-form .field textarea { width: 100%; }
.contact-aside .aside-box p { margin-top: 4px; }

/* ---------- Reveal motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
  .js [data-reveal].is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0 !important; }
.mt-s { margin-top: 12px; }
.mt-m { margin-top: 24px; }
.mt-l { margin-top: 40px; }
.mt-xl { margin-top: 64px; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }
.section-head__links { display: flex; flex-wrap: wrap; gap: 8px 28px; }

/* ---------- Guests index (/guests) ---------- */
.guest-az ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.guest-az a, .guest-az span { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--rule); border-radius: var(--radius); font-size: 0.9375rem; font-weight: 600; text-decoration: none; }
.guest-az a { color: var(--ink); transition: border-color 0.15s, color 0.15s; }
.guest-az a:hover { border-color: var(--accent); color: var(--accent); }
.guest-az span { border-color: transparent; color: var(--ink-3); opacity: 0.45; }
.guest-cards { display: grid; gap: clamp(24px, 3vw, 36px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.guest-card { display: flex; flex-direction: column; gap: 16px; }
.guest-card__media { display: block; text-decoration: none; }
.guest-card__name { font-family: var(--font-serif); font-size: 1.375rem; line-height: 1.2; font-weight: 500; }
.guest-card__count { margin-top: 4px; font-size: var(--step--1); font-weight: 600; color: var(--accent); }
.guest-card .guest__eps { margin-top: 12px; }
@media (max-width: 639px) {
  .guest-card { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; align-items: start; }
  .guest-card__name { font-size: 1.1875rem; }
  /* The typographic episode cover at thumbnail size: just the episode number. */
  .guest-card .cover { padding: 10px; align-content: center; }
  .guest-card .cover__show, .guest-card .cover__guest { display: none; }
  .guest-card .cover__num { font-size: 1.75rem; }
}
.guest__eps { list-style: none; display: grid; gap: 6px; }
.guest__eps li { font-size: 0.9375rem; line-height: 1.4; color: var(--ink-2); }
.guest__eps a { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--rule-strong); text-underline-offset: 3px; }
.guest__eps a:hover { color: var(--accent); text-decoration-color: currentColor; }
.guest__meta { font-size: 0.8125rem; color: var(--ink-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.guest-index { border-top: 1px solid var(--rule); }
.guest-group { border-bottom: 1px solid var(--rule); }
.guest-group > summary { list-style: none; display: flex; align-items: baseline; gap: 14px; padding: 24px 0 16px; cursor: pointer; }
.guest-group > summary::-webkit-details-marker { display: none; }
.guest-group__letter { font-family: var(--font-serif); font-size: clamp(2rem, 1.6rem + 1.4vw, 2.75rem); line-height: 1; font-weight: 500; }
.guest-group__count { font-size: var(--step--1); color: var(--ink-3); }
.guest-group > summary .icon { margin-left: auto; align-self: center; color: var(--ink-3); transition: transform 0.2s var(--ease); }
.guest-group[open] > summary .icon { transform: rotate(180deg); }
/* Entries flow down each column like a printed index, so a guest with several episodes leaves no gap beside it. */
.guest-list { list-style: none; columns: 3 300px; column-gap: clamp(24px, 4vw, 56px); padding-bottom: 28px; }
.guest { break-inside: avoid; padding: 14px 0 16px; border-top: 1px solid var(--rule); }
.guest:target { background: var(--accent-soft); box-shadow: -10px 0 0 var(--accent-soft), 10px 0 0 var(--accent-soft); }
.guest__name { margin-bottom: 6px; font-family: var(--font-serif); font-size: 1.1875rem; line-height: 1.25; font-weight: 500; }
.guest__count { margin-left: 6px; font-family: var(--font-sans); font-size: 0.75rem; font-weight: 600; color: var(--accent); white-space: nowrap; vertical-align: 2px; }
.guest-empty { padding: 24px 0; color: var(--ink-2); }
[data-guest][hidden], [data-guest-letter][hidden], [data-guest-hide-on-search][hidden] { display: none; }
/* Wide screens show every letter open; the toggle only exists on phones. */
@media (min-width: 700px) {
  .guest-group > summary { cursor: default; }
  .guest-group > summary .icon { display: none; }
}
.aside-guest { font-family: var(--font-serif); font-size: 1.1875rem; line-height: 1.25; }
.aside-box .guest__eps { margin-top: 10px; }

/* === Pass 2: home === */
/* Each headline phrase gets its own line, so the two-column hero never strands "Real" on a line of its own. */
.home-hero .display .line { display: block; }
/* "Real investors." is ~5.9em wide: cap the size to the text column so it fits on one line at 980–1100px. */
.home-hero__grid > :first-child { container-type: inline-size; }
.home-hero .display { font-size: min(var(--step-5), 16cqi); }
/* Below the two-column breakpoint the cover art becomes a compact show badge instead of a second full-width cover. */
@media (max-width: 979px) {
  .home-hero__art { display: grid; grid-template-columns: 88px 1fr; gap: 16px; align-items: center; justify-self: stretch; width: 100%; }
  .home-hero__art a { border-radius: var(--radius); box-shadow: var(--shadow-md); }
  .home-hero__art figcaption { margin-top: 0; text-align: left; font-size: 0.9375rem; color: var(--ink-2); }
}
/* Stacked buttons on phones share one width instead of ragging. */
@media (max-width: 480px) {
  .home-hero .btn-row > .btn, .home-latest .btn-row > .btn { flex: 1 1 100%; }
}
/* Unreleased apps: same footprint as their neighbours, quieter treatment. */
.app-list .app-card--soon { background: transparent; border-style: dashed; border-color: var(--rule-strong); }
.app-list .app-card--soon:hover { transform: none; box-shadow: none; }
/* Recent episodes: 3 cards then rows. The list repeats card 3 as its first row; only one of the two shows,
   so the two-column (tablet) range gets 2 cards + 4 rows instead of a lone third card. */
.home-recent .ep-grid { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 639px), (min-width: 1040px) { .home-recent .ep-row:first-child { display: none; } }
@media (min-width: 640px) and (max-width: 1039px) {
  .home-recent .ep-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-recent .ep-card:nth-child(3) { display: none; }
}
@media (min-width: 1040px) { .home-recent .ep-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Two-line names and audience lines on phones: keep the icon on the first line. */
.home-apps .app-head { align-items: flex-start; }

/* === Pass 2: episodes & topics === */
/* Side-by-side Zoom recordings ("crop": "left" in data/youtube.json): the frame is a 32:9 two-up with
   baked-in black bars (a quarter of the height each). Show the guest's (left) panel, exactly 16:9. */
.media--guest img { transform-origin: 0 50%; transform: scale(2); }
a:hover > .media--guest img, .card:hover .media--guest img, .ep-card:hover .media--guest img { transform: scale(2.07); }

/* A page hero followed by a plain section: the hero's bottom padding is the gap. */
.page-hero + .section:not(.band):not(.band-navy):not(.cta-band) { padding-top: clamp(8px, 2vw, 24px); }

/* Previous / next episode, right after the show notes. */
.ep-pager { display: grid; gap: 12px; margin-top: clamp(40px, 5vw, 56px); }
.ep-pager a { display: grid; gap: 6px; align-content: start; padding: 16px 18px; border: 1px solid var(--rule); border-radius: var(--radius-lg); color: var(--ink); text-decoration: none; transition: border-color 0.2s; }
.ep-pager a:hover { border-color: var(--rule-strong); color: var(--ink); }
.ep-pager__dir { font-size: var(--step--2); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.ep-pager a[rel="prev"] .ep-pager__dir::before { content: "← "; }
.ep-pager a[rel="next"] .ep-pager__dir::after { content: " →"; }
.ep-pager__title { font-family: var(--font-serif); font-size: 1.1875rem; line-height: 1.3; text-wrap: balance; }
.ep-pager a:hover .ep-pager__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
@media (min-width: 640px) {
  .ep-pager { grid-template-columns: 1fr 1fr; gap: 16px; }
  .ep-pager a[rel="next"] { grid-column: 2; text-align: right; }
  .ep-pager a[rel="next"] .meta { justify-content: flex-end; }
}

/* Topic page "A tool for this": the app's screen beside it on wide screens. */
.topic-tool__shot { display: none; }
@media (min-width: 900px) {
  .topic-tool { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
  .topic-tool__shot { display: block; }
  .topic-tool__shot .phones img { width: min(100%, 220px); }
}

/* === Pass 2: apps & resources === */
/* --edge: hairline around app icons and screenshots so dark art keeps its outline on dark paper.
   --bezel: device frame for raw UI captures (graphite in dark mode; near-black would vanish). */
:root { --edge: rgba(14, 23, 38, 0.08); --bezel: #0b1420; }
:root[data-theme="dark"] { --edge: rgba(233, 238, 245, 0.12); --bezel: #1e2838; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --edge: rgba(233, 238, 245, 0.12); --bezel: #1e2838; }
}
.phones img.shot--ui { padding: 6px; background: var(--bezel); border-radius: 32px; }
/* Home spotlight re-declares the phone shadow; keep the hairline there too. */
.spotlight .phones img { box-shadow: 0 0 0 1px var(--edge), var(--shadow-lg); }
/* A single hero phone (apps with a screen gallery) is larger than one of a staggered pair. */
.app-feature .phones img:only-child { width: min(64%, 280px); }

/* Status chip + platforms on one line under the app name. */
.app-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 8px; font-size: 0.8125rem; color: var(--ink-3); }
.app-meta > .status + span { padding-left: 12px; border-left: 1px solid var(--rule-strong); }
.page-hero .app-head .eyebrow { margin-bottom: 0; }
/* The App Store badge is 52px tall; a button beside it matches. On phones, where the two stack at
   different widths, the website link drops its outline and reads as a link under the badge. */
.app-store-badge + .btn { min-height: 52px; }
@media (max-width: 479px) {
  .app-store-badge + .btn--secondary, .app-store-badge + .btn--secondary:hover { --btn-bd: transparent; min-height: 44px; padding-inline: 0; }
}

/* /apps hub: on phones the screenshots come right after the name and purpose; from 960px the
   grid areas rebuild the two-column layout (and its flip). */
.app-feature--hub .app-feature__body > :first-child { margin-top: 0; }
@media (min-width: 960px) {
  .app-feature--hub { grid-template-areas: "intro shots" "body shots"; row-gap: 28px; }
  .app-feature--hub.app-feature--flip { grid-template-areas: "shots intro" "shots body"; }
  .app-feature--hub .app-feature__intro { grid-area: intro; align-self: end; }
  .app-feature--hub .app-feature__body { grid-area: body; align-self: start; }
  .app-feature--hub .app-feature__shots { grid-area: shots; align-self: center; }
}
@media (pointer: coarse) {
  .app-feature__body .text-link { min-height: 44px; }
}
/* Hub hero: one card per app, linking to its section. */
@media (min-width: 720px) { .mini-apps--row { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } }
.mini-app .status { margin-top: 6px; }

/* /resources */
.two-col-list .article-list li { align-content: start; }
/* Rows are labelled with topic names; Inter's tabular figures widen the hyphen in "Short-Term". */
.res-list .meta { font-variant-numeric: normal; }
/* The short left column (heading + app cards) stays in view beside the longer article list. */
@media (min-width: 900px) and (min-height: 700px) {
  .res-sticky > :first-child { position: sticky; top: calc(var(--header-h) + 24px); }
}
/* Phones: two-line excerpts, and titles only for the podcast roundups. */
@media (max-width: 639px) {
  .res-list .article-list p:not(.meta) { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
  .res-list--titles .article-list p:not(.meta) { display: none; }
}
/* In the narrow tool columns (tablet) the card's text runs to several lines; keep the icon at the top. */
.tool-group .mini-app { align-items: start; }
.tool-aff { display: inline-block; margin-left: 8px; padding: 1px 6px; border: 1px solid var(--rule-strong); border-radius: 4px; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.08em; line-height: 1.4; text-transform: uppercase; color: var(--ink-3); vertical-align: 1px; }

/* === Pass 2: connect pages === */
/* Two-button rows (.btn-row--fill): stacked on phones, both buttons share one width. */
@media (max-width: 479px) { .btn-row--fill > .btn { flex: 1 1 100%; } }
/* contain: the note sits under the buttons but never widens an auto-width grid column. */
.btn-row__note { margin-top: 12px; contain: inline-size; font-size: var(--step--1); color: var(--ink-3); }
.band-navy .btn-row__note { color: var(--navy-ink-2); }

/* Hero media (guest page): a framed episode still beside the headline. */
.hero-media { margin: 0; }
.hero-media > a { display: block; border-radius: var(--radius-lg); }
.hero-media .media { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }

/* /community hero: who runs the group, with a face. */
.host-line { display: flex; align-items: center; gap: 12px; font-size: var(--step--1); color: var(--ink-2); }
.host-line img { width: 40px; height: 40px; flex: none; border-radius: 50%; object-fit: cover; border: 1px solid var(--rule); background: var(--paper-3); }

/* The community panel on the navy home band: remap every light-surface token it uses. */
.band-navy .community-panel { background: rgba(255, 255, 255, 0.04); border-color: var(--navy-rule); }
.band-navy .community-panel__when { color: var(--navy-ink); }
.band-navy .community-panel .muted, .band-navy .community-panel__list { color: var(--navy-ink-2); }
.band-navy .community-panel hr { border-top-color: var(--navy-rule); }
.band-navy .community-panel__list li::before { color: var(--navy-accent); }

/* /community closing band: the join copy with its button; the culture line as a pull statement. */
.community-join { align-items: end; }
.community-creed { margin: 0; padding-top: 22px; border-top: 1px solid var(--navy-rule); }
.community-creed__statement { margin-top: 16px; font-family: var(--font-serif); font-size: var(--step-2); line-height: 1.3; letter-spacing: -0.01em; color: var(--navy-ink); }
.community-creed__note { margin-top: 16px; color: var(--navy-ink-2); max-width: 46ch; }

/* Ruled criteria list: serif rows between hairlines, no check icons (app feature lists keep the checks). */
.checklist--ruled { gap: 0; border-top: 1px solid var(--rule); }
.checklist--ruled li { grid-template-columns: 1fr; padding-block: 14px; border-bottom: 1px solid var(--rule); color: var(--ink); font-family: var(--font-serif); font-size: 1.25rem; line-height: 1.35; }

/* Smaller pull quote (guest "Value first"). */
.quote--sm blockquote { font-size: clamp(1.1875rem, 1.05rem + 0.5vw, 1.4375rem); }

/* /about */
.about-links { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.about-listen { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; padding-top: 20px; border-top: 1px solid var(--rule); }
/* Phones and tablets: the portrait leads the page as a head-and-shoulders crop, so the face shows first. */
@media (max-width: 899px) {
  .about-portrait { order: -1; justify-self: start; width: min(100%, 480px); }
  .about-portrait .media { aspect-ratio: 4 / 3; }
  .about-portrait img { object-position: 50% 0; }
}

/* Footer newsletter: the status line takes its own row, and stays out of the layout while empty
   (still in the accessibility tree, so the live region is announced). */
.form-inline .form-status { flex: 0 0 100%; margin-top: 2px; }
.form-inline .form-status:empty { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 639px) { .form-inline .btn { flex: 1 1 100%; } }

/* === Pass 2: reading === */
/* Serif article measure. `ch` is the wide "0" glyph (0.57em in Newsreader) while running text averages
   0.42em, so 68ch ran ~85 characters a line. 33em ≈ 72 and scales with the clamp. Sans prose keeps --max-text. */
.prose:not(.prose--sans) { max-width: 33em; }
/* Subsections (h3) after their parent heading, and stacked headings, get a little more air than heading + text. */
.prose h2 + h2, .prose h2 + h3 { margin-top: 0.9em; }
/* Episode video lifted to the top of the article: level with the top of the aside. */
.prose > .post-video--lead:first-child { margin-top: 0; }
/* "The short answer" callout (the old "Quick Answer" SEO section). */
.prose .answer-box { margin-block: 1.8em; padding: clamp(16px, 2.5vw, 22px) clamp(18px, 3vw, 26px); border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 var(--radius) var(--radius) 0; }
.prose .answer-box > * + * { margin-top: 8px; }
.prose .answer-box p:not(.eyebrow) { color: var(--ink); line-height: 1.6; }
.prose > .answer-box:first-child { margin-top: 0; }

/* TOC: headings that number themselves get no counter; the section being read is marked (site.js). */
/* Plain items keep a constant inset, so marking one current never rewraps its text. */
.toc--plain a { display: block; padding-left: 10px; box-shadow: inset 2px 0 0 transparent; }
.toc--plain a::before { content: none; }
.toc a[aria-current] { color: var(--ink); }
.toc a[aria-current]::before { color: var(--accent); font-weight: 600; }
.toc--plain a[aria-current] { box-shadow: inset 2px 0 0 var(--accent); }
/* Long TOCs: keep the whole aside reachable while it is sticky (two-column layout only). The inset
   leaves room for the focus outline, which the scroll box would otherwise clip. */
@media (min-width: 1080px) {
  .article-layout .sticky-aside {
    max-height: calc(100vh - var(--header-h) - 48px);
    max-height: calc(100dvh - var(--header-h) - 48px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--rule-strong) transparent;
    margin-inline: -6px;
    padding: 0 6px 6px;
  }
}
/* Below 1080px the aside drops under the article, so the TOC there would come after the reading:
   a collapsed disclosure above the body replaces it. Only one of the two is ever displayed. */
/* Same font-size as .prose, so 33em is exactly the reading column's width (the TOC's own text sizes are rem). */
.toc--inline { max-width: 33em; font-size: clamp(1.125rem, 1.06rem + 0.3vw, 1.25rem); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); font-family: var(--font-sans); }
.toc--inline summary { display: flex; align-items: center; gap: 10px; min-height: 52px; cursor: pointer; list-style: none; }
.toc--inline summary::-webkit-details-marker { display: none; }
.toc--inline .toc__label { font-size: var(--step--2); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.toc--inline .toc__count { font-size: 0.875rem; color: var(--ink-3); }
.toc--inline .toc__count::before { content: "·"; margin-right: 10px; color: var(--rule-strong); }
.toc--inline summary .icon { margin-left: auto; color: var(--ink-2); transition: transform 0.2s var(--ease); }
.toc--inline[open] summary .icon { transform: rotate(180deg); }
.toc--inline ol { padding-bottom: 12px; }
.toc--inline li:last-child a { border-bottom: 0; }
@media (min-width: 1080px) { .toc--inline { display: none; } }
@media (max-width: 1079.98px) {
  .article-layout aside .toc { display: none; }
  .article-layout .sticky-aside > .toc + .aside-box { margin-top: 0; }
  .article-layout .aside-box--wide-only { display: none; }
}
/* Phones: the H1 sits right under the breadcrumb, so drop the (truncated) current-page crumb. */
@media (max-width: 640px) { .article-hero .breadcrumbs li:last-child { display: none; } }

/* Compact episode list: opt-in via episodeGrid(eps, { compact: true }). Below 1040px, where three cards
   would stack full-width (phones) or leave one stranded (tablets), the cards become thumbnail rows. */
@media (max-width: 1039px) {
  .ep-grid--compact { grid-template-columns: minmax(0, 1fr); gap: 0; border-top: 1px solid var(--rule); }
  .ep-grid--compact .ep-card { display: grid; grid-template-columns: 30% minmax(0, 1fr); gap: 14px; align-items: start; padding: 18px 0; border-bottom: 1px solid var(--rule); }
  .ep-grid--compact .ep-card__body { gap: 4px; }
  .ep-grid--compact .ep-card__title { font-size: 1.0625rem; line-height: 1.28; }
  .ep-grid--compact .ep-card__guest { font-size: 0.875rem; }
  .ep-grid--compact .ep-card .meta { font-size: 0.8125rem; }
}
@media (max-width: 679px) { .ep-grid--compact .ep-card__dur { display: none; } }
@media (min-width: 680px) and (max-width: 1039px) {
  .ep-grid--compact .ep-card { grid-template-columns: 240px minmax(0, 1fr); gap: 24px; padding: 22px 0; }
  .ep-grid--compact .ep-card__title { font-size: 1.25rem; }
}

/* /blog: two columns of rows, two-line excerpts; titles and dates only on phones. */
.blog-index-list .article-list__excerpt { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
@media (max-width: 639px) { .blog-index-list .article-list__excerpt { display: none; } }

/* Dark mode: give adjacent bands an edge, and dark app art a hairline so it does not vanish. */
:root[data-theme="dark"] .band { box-shadow: inset 0 1px 0 var(--rule); }
:root[data-theme="dark"] .band-navy { box-shadow: inset 0 1px 0 var(--navy-rule); }
:root[data-theme="dark"] .app-icon { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 8px 20px -10px rgba(0, 0, 0, 0.5); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .band { box-shadow: inset 0 1px 0 var(--rule); }
  :root:not([data-theme="light"]) .band-navy { box-shadow: inset 0 1px 0 var(--navy-rule); }
  :root:not([data-theme="light"]) .app-icon { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 8px 20px -10px rgba(0, 0, 0, 0.5); }
}

@media print { .site-header, .site-footer, .mobile-menu, .skip-link { display: none !important; } body { background: #fff; color: #000; } }
