/* Healthscape site styles. All values come from tokens.css. */

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-height) + var(--space-xs)); }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--font-serif); font-size: var(--text-base); line-height: var(--leading-body);
  font-optical-sizing: auto; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { margin: 0; line-height: var(--leading-heading); font-weight: 600; text-wrap: balance; }
p { margin: 0 0 var(--space-xs); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: var(--radius-xs); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--space-xs); top: -4rem; z-index: 100; background: var(--fg); color: var(--bg); padding: var(--space-3xs) var(--space-xs); border-radius: var(--radius-s); font-family: var(--font-sans); }
.skip:focus { top: var(--space-xs); }
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 3rem); }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: currentColor; }

/* condensed meta text: season codes, dates, eyebrows */
.meta, .eyebrow, .chip, .badge {
  font-family: var(--font-display); font-stretch: var(--stretch-display); font-weight: 600; letter-spacing: var(--tracking-display);
  text-transform: uppercase; font-size: var(--text-sm); line-height: 1.2;
}
.meta { color: var(--ink-3); }
.eyebrow { color: var(--accent); margin-bottom: var(--space-3xs); display: block; }
.badge { display: inline-block; padding: .2em .55em; border-radius: var(--radius-xs); background: var(--accent); color: var(--accent-ink); font-size: var(--text-xs); }
.new-tag { color: var(--accent); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-3xs);
  height: var(--btn-height); padding: 0 1.25rem; border-radius: var(--radius-pill);
  font-family: var(--font-sans); font-size: var(--text-sm); font-weight: 600; white-space: nowrap;
  text-decoration: none; border: 1.5px solid var(--fg); background: transparent; color: var(--fg); cursor: pointer;
  transition: background var(--dur), color var(--dur), border-color var(--dur), transform var(--dur);
}
.btn:hover { background: var(--fg); color: var(--bg); text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn-solid { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-solid:hover { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.btn-sm { height: var(--btn-height-sm); padding: 0 1rem; font-size: var(--text-xs); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3xs); }
.icon-btn {
  display: inline-grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: var(--radius-pill);
  border: 1px solid var(--line); background: var(--bg); color: var(--fg); text-decoration: none; cursor: pointer;
  transition: background var(--dur), color var(--dur), border-color var(--dur);
}
.icon-btn:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.icon-btn .icon { width: 1.125rem; height: 1.125rem; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.nav-inner { height: var(--nav-height); display: grid; grid-template-columns: 1fr minmax(0, 32rem) 1fr; align-items: center; gap: var(--space-xs); }
.wordmark { justify-self: start; color: var(--fg); text-decoration: none; font-family: var(--font-wordmark); font-weight: 700; font-size: 1.5rem; letter-spacing: .07em; text-transform: uppercase; line-height: 1; }
.wordmark:hover { text-decoration: none; }
.wordmark:hover .wm-name { color: var(--accent); }
.wordmark { display: inline-flex; flex-direction: column; gap: .3rem; }
.wm-sub { font-family: var(--font-sans); font-stretch: 87.5%; font-weight: 600; font-size: .6875rem; letter-spacing: .09em; color: var(--tagline); }
.nav-search { display: flex; align-items: center; justify-content: space-between; gap: .5rem; height: 2.875rem; padding: 0 1.1rem 0 1.4rem; border-radius: var(--radius-pill); border: 1px solid var(--line); background: var(--bg); color: var(--ink-3); text-decoration: none; font-family: var(--font-sans); font-size: var(--text-sm); }
.nav-search:hover { border-color: var(--fg); color: var(--fg); text-decoration: none; }
.nav-right { justify-self: end; display: flex; gap: var(--space-3xs); }
.pill-btn { display: inline-flex; align-items: center; height: 2.875rem; padding: 0 1.3rem; border-radius: var(--radius-pill); border: 1px solid var(--line); color: var(--fg); text-decoration: none; font-family: var(--font-sans); font-stretch: 87.5%; font-weight: 600; font-size: var(--text-sm); letter-spacing: .03em; text-transform: uppercase; background: var(--bg); }
.pill-btn:hover { border-color: var(--fg); text-decoration: none; }
@media (max-width: 760px) {
  .nav-inner { grid-template-columns: 1fr auto auto; }
  .nav-search { width: 2.875rem; padding: 0; justify-content: center; order: 2; }
  .nav-search span { display: none; }
  .nav-right { order: 3; }
  .wordmark { font-size: 1.05rem; letter-spacing: .06em; }
  .pill-btn { padding: 0 .85rem; font-size: var(--text-xs); }
}
@media (max-width: 420px) {
  .nav-inner { gap: .35rem; }
  .wordmark { font-size: 1.05rem; letter-spacing: .04em; }
  .nav-search, .pill-btn { height: 2.5rem; }
  .nav-search { width: 2.5rem; }
  .pill-btn { padding: 0 .7rem; }
  .nav-right { gap: .35rem; }
}

/* ---------- popups (native <dialog>) ---------- */
.popup { border: 0; padding: 0; margin: 0; max-width: none; max-height: none; width: 100%; height: 100%; background: var(--bg); color: var(--fg); }
.popup::backdrop { background: var(--scrim); }
.popup[open] { animation: pop-in .25s var(--ease); }
@keyframes pop-in { from { opacity: 0; transform: translateY(12px); } }
.popup-head { height: var(--nav-height); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.popup-close { display: inline-flex; align-items: center; gap: .4rem; }
.popup-body { padding-block: var(--space-l) var(--space-2xl); }
.menu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: var(--space-l); }
.menu-big { list-style: none; margin: 0; padding: 0; }
.menu-big a { display: block; font-family: var(--font-heading); font-size: var(--text-3xl); font-weight: 400; text-transform: uppercase; color: var(--fg); text-decoration: none; padding-block: .3rem; }
.menu-big a:hover { color: var(--accent); }
.link-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; font-family: var(--font-sans); font-size: var(--text-sm); }
.link-list a { color: var(--fg); text-decoration: none; }
.link-list a:hover, .link-list a[aria-current] { color: var(--accent); text-decoration: underline; }
.listen-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3xs); max-width: 32rem; }
.listen-list a { display: flex; align-items: center; gap: var(--space-xs); padding: var(--space-xs) var(--space-s); border: 1px solid var(--line); border-radius: var(--radius-l); color: var(--fg); text-decoration: none; font-family: var(--font-sans); font-weight: 600; font-size: var(--text-lg); }
.listen-list a:hover { border-color: var(--fg); }
.listen-list .icon { width: 1.75rem; height: 1.75rem; }
@media (min-width: 800px) {
  .popup-listen { width: min(36rem, 100%); height: auto; max-height: 90vh; margin: auto; border-radius: var(--radius-xl); }
  .popup-listen .popup-head { padding-inline: var(--space-m); }
  .popup-listen .popup-body { padding: var(--space-m); }
  .popup-listen .wrap { padding: 0; }
}

/* ---------- search popup ---------- */
.popup-search { background: var(--bg); }
@media (min-width: 800px) {
  .popup-search { width: min(48rem, 100% - 2rem); height: auto; max-height: min(44rem, 100vh - 4rem); margin: 2rem auto auto; border-radius: var(--radius-xl); flex-direction: column; }
  .popup-search[open] { display: flex; }
}
.search-bar { display: flex; align-items: center; gap: var(--space-3xs); padding: var(--space-2xs) var(--space-xs); border-bottom: 1px solid var(--line); }
.search-bar .icon { width: 1.5rem; height: 1.5rem; color: var(--ink-3); }
.search-input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--fg); font-family: var(--font-serif); font-size: var(--text-xl); padding: .5rem 0; }
.search-input:focus { outline: none; }
.search-bar:focus-within { box-shadow: inset 0 -2px 0 var(--focus); }
.search-scroll { overflow-y: auto; padding: var(--space-xs); flex: 1; }
.search-group + .search-group { margin-top: var(--space-s); }
.search-group h2 { font-family: var(--font-display); font-size: var(--text-sm); letter-spacing: var(--tracking-display); text-transform: uppercase; color: var(--ink-3); margin: 0 0 var(--space-3xs); }
.search-results { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.result { display: grid; grid-template-columns: 4rem 1fr; gap: var(--space-2xs); padding: var(--space-3xs); border-radius: var(--radius-m); color: var(--fg); text-decoration: none; }
.result:hover, .result:focus-visible { background: var(--surface); text-decoration: none; }
.tile-mini { display: grid; place-items: center; width: 4rem; height: 4rem; background: var(--b); color: var(--i); font-family: var(--font-sans); font-weight: 800; font-size: 1.1rem; letter-spacing: .02em; }
.result-title { font-weight: 600; line-height: 1.25; }
.result-excerpt { font-size: var(--text-sm); color: var(--ink-2); margin: .2rem 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.result mark, .transcript mark { background: var(--theme-accent-hi); color: inherit; padding: 0 .1em; border-radius: 2px; }
.result .ts { color: var(--accent); }
.search-empty { padding: var(--space-m) var(--space-xs); text-align: center; color: var(--ink-2); }
.search-foot { padding: var(--space-3xs) var(--space-xs); border-top: 1px solid var(--line); font-family: var(--font-sans); font-size: var(--text-xs); color: var(--ink-3); display: flex; justify-content: space-between; gap: var(--space-xs); }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { display: inline-flex; align-items: center; height: 2rem; padding: 0 .8rem; border-radius: var(--radius-pill); border: 1px solid var(--line); color: var(--fg); text-decoration: none; font-size: var(--text-xs); background: var(--bg); }
.chip:hover { border-color: var(--fg); text-decoration: none; }
.chip[aria-current] { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* ---------- footer ---------- */
.footer { background: var(--surface); margin-top: var(--space-3xl); padding-block: var(--space-xl) var(--space-l); font-family: var(--font-sans); font-size: var(--text-sm); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: var(--space-l); }
.footer h2 { font-family: var(--font-display); text-transform: uppercase; letter-spacing: var(--tracking-display); font-size: var(--text-sm); color: var(--ink-3); margin-bottom: var(--space-2xs); }
.footer-bottom { margin-top: var(--space-xl); padding-top: var(--space-s); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-xs); color: var(--ink-2); font-size: var(--text-xs); }
.footer-bottom a { color: inherit; }

/* ---------- newsletter ---------- */
.signup-band { background: var(--purple-1000); color: #f6f2fd; padding-block: var(--space-2xl); }
.signup-band h2 { font-size: var(--text-2xl); text-transform: uppercase; }
.signup-band p { color: #d9d0ea; }
.signup-band .btn-solid { background: #f6f2fd; border-color: #f6f2fd; color: var(--purple-1000); }
.signup-band .btn-solid:hover { background: transparent; color: #f6f2fd; }
.signup-band .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-l); align-items: end; }
@media (max-width: 800px) { .signup-band .wrap { grid-template-columns: 1fr; } }

/* ---------- page header ---------- */
.page-head { padding-block: var(--space-xl) var(--space-l); }
.page-head h1 { font-size: var(--text-3xl); text-transform: uppercase; letter-spacing: -.01em; }
.page-head p { color: var(--ink-2); max-width: var(--measure); margin-top: var(--space-2xs); font-size: var(--text-lg); }

/* ---------- episode cards ---------- */
.playlist { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: var(--space-l); align-items: start; }
.playlist-sidebar { position: sticky; top: calc(var(--nav-height) + var(--space-s)); max-height: calc(100vh - var(--nav-height) - var(--space-l)); overflow: auto; padding-bottom: var(--space-s); }
.playlist-sidebar summary { display: none; }
.filter-group + .filter-group { margin-top: var(--space-s); }
.filter-group h2 { font-family: var(--font-display); text-transform: uppercase; letter-spacing: var(--tracking-display); font-size: var(--text-sm); color: var(--ink-3); margin-bottom: var(--space-3xs); }
.filter-group .link-list a[aria-current] { font-weight: 600; text-decoration: none; }
.filter-group .count { color: var(--ink-3); font-variant-numeric: tabular-nums; }
@media (max-width: 900px) {
  .playlist { grid-template-columns: 1fr; gap: var(--space-s); }
  .playlist-sidebar { position: static; max-height: none; border: 1px solid var(--line); border-radius: var(--radius-l); padding: 0; }
  .playlist-sidebar summary { display: flex; justify-content: space-between; align-items: center; padding: var(--space-2xs) var(--space-xs); cursor: pointer; font-family: var(--font-sans); font-weight: 600; font-size: var(--text-sm); list-style: none; }
  .playlist-sidebar summary::-webkit-details-marker { display: none; }
  .playlist-sidebar summary::after { content: "+"; font-size: 1.25rem; }
  .playlist-sidebar[open] summary::after { content: "–"; }
  .playlist-sidebar .filters { padding: 0 var(--space-xs) var(--space-xs); display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: var(--space-s); }
  .filter-group + .filter-group { margin-top: 0; }
}

.toolbar { display: flex; justify-content: space-between; align-items: center; gap: var(--space-xs); margin-bottom: var(--space-s); flex-wrap: wrap; }
.toolbar .meta { margin: 0; }
.view-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 3px; font-family: var(--font-sans); font-size: var(--text-xs); font-weight: 600; }
.view-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.view-toggle label { padding: .45rem .9rem; border-radius: var(--radius-pill); cursor: pointer; color: var(--ink-2); }
.view-toggle input:checked + label { background: var(--fg); color: var(--bg); }
.view-toggle input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; }

.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-l) var(--space-s); grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); }
@media (min-width: 1200px) { .playlist .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 600px) and (max-width: 1199px) { .playlist .cards { grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); } }
@media (max-width: 599px) { .cards { grid-template-columns: 1fr; } }

.card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.card-link { color: var(--fg); text-decoration: none; display: flex; flex-direction: column; gap: var(--space-2xs); }
.card-link:hover { text-decoration: none; }
.card-link:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }
.bg-media { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--surface); }
.bg-media > img { width: 100%; height: 100%; object-fit: cover; }
.card-hover { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: var(--space-xs); background: linear-gradient(to top, rgba(20,12,32,.92), rgba(20,12,32,.55)); color: #fff; font-size: var(--text-sm); line-height: 1.4; opacity: 0; transition: opacity var(--dur); }
.card-hover span { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
@media (hover: hover) { .card-link:hover .card-hover, .card-link:focus-visible .card-hover { opacity: 1; } }
.card h3 { font-size: 1.1875rem; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-guest { font-family: var(--font-sans); font-size: var(--text-xs); color: var(--ink-2); margin: 0; }
.card-desc { display: none; }
.card-text { display: grid; gap: .35rem; }
.card-listen { display: flex; gap: .4rem; margin-top: var(--space-2xs); }

/* skim view: compact list (CSS-only, toggled by the radio buttons; JS just remembers the choice) */
.view:has(#view-skim:checked) .cards { grid-template-columns: 1fr; gap: 0; }
.view:has(#view-skim:checked) .card { flex-direction: row; align-items: center; gap: var(--space-xs); padding-block: var(--space-xs); border-bottom: 1px solid var(--line); }
.view:has(#view-skim:checked) .card-link { flex-direction: row; align-items: flex-start; gap: var(--space-xs); flex: 1; min-width: 0; }
.view:has(#view-skim:checked) .bg-media { width: 5.5rem; flex: none; }
.view:has(#view-skim:checked) .card-hover { display: none; }
.view:has(#view-skim:checked) .card-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--ink-2); font-size: var(--text-sm); margin: 0; }
.view:has(#view-skim:checked) .card-listen { margin-top: 0; }
@media (max-width: 599px) {
  .view:has(#view-skim:checked) .card { flex-direction: column; align-items: stretch; }
  .view:has(#view-skim:checked) .card-listen { padding-left: calc(5.5rem + var(--space-xs)); }
}

/* ---------- home ---------- */
.hero { padding-block: var(--space-xl) var(--space-xl); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--space-xl); align-items: center; }
.hero h1 { font-family: var(--font-heading); font-weight: 400; font-size: var(--text-3xl); line-height: 1; text-transform: uppercase; max-width: 18ch; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub { font-size: var(--text-lg); color: var(--ink-2); max-width: 34rem; margin-top: var(--space-s); }
.hero-links { display: flex; flex-wrap: wrap; gap: var(--space-3xs); align-items: center; margin-top: var(--space-s); }
.hero-feature { display: grid; gap: var(--space-xs); }
.hero-feature .bg-media { box-shadow: 0 30px 60px -30px rgba(34, 16, 59, .45); }
.hero-feature h2 { font-size: var(--text-xl); }
.hero-feature h2 a { color: var(--fg); text-decoration: none; }
.hero-feature h2 a:hover { text-decoration: underline; }
.hero-feature p { color: var(--ink-2); margin: 0; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero-feature { max-width: 30rem; } }

.section { padding-top: var(--space-2xl); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: var(--space-xs); flex-wrap: wrap; margin-bottom: var(--space-s); }
.section-head h2 { font-size: var(--text-2xl); text-transform: uppercase; }
.carousel-nav { display: flex; gap: .4rem; }
.carousel { display: grid; grid-auto-flow: column; grid-auto-columns: max(16rem, calc((100% - 3 * var(--space-s)) / 4)); gap: var(--space-s); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; padding-bottom: var(--space-xs); list-style: none; margin: 0; padding-left: 0; }
.carousel > li { scroll-snap-align: start; }
@media (max-width: 700px) { .carousel { grid-auto-columns: 78%; } }
.slide .card-desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; color: var(--ink-2); font-size: var(--text-sm); margin: 0; }
.slide .card-hover { display: none; }
.topic-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.topic-tiles a { background: var(--bg); padding: var(--space-s); color: var(--fg); text-decoration: none; display: grid; gap: .35rem; min-height: 9rem; align-content: start; }
.topic-tiles a:hover { background: var(--surface); }
.topic-tiles b { font-size: var(--text-lg); line-height: 1.2; }
.topic-tiles span { color: var(--ink-2); font-size: var(--text-sm); }
.quote { margin: 0; padding: var(--space-xl) 0; border-block: 1px solid var(--line); }
.quote blockquote { margin: 0; font-size: var(--text-2xl); line-height: 1.2; max-width: 50rem; }
.quote figcaption { margin-top: var(--space-s); }

/* ---------- episode page ---------- */
.episode-page-left .bg-media { max-width: 21rem; }
.episode-hero { display: grid; grid-template-columns: minmax(0, 21rem) minmax(0, 1fr); gap: var(--space-xl); padding-block: var(--space-l) var(--space-xl); align-items: start; }
@media (max-width: 900px) { .episode-hero { grid-template-columns: 1fr; gap: var(--space-l); } }
.episode-page-left { display: grid; gap: var(--space-s); }
.back { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--font-sans); font-size: var(--text-xs); font-weight: 600; color: var(--fg); text-decoration: none; }
.back:hover { text-decoration: underline; }
.episode-art { position: relative; }
.episode-art { max-width: 21rem; }
.episode-page-left h1 { font-size: var(--text-2xl); text-transform: uppercase; letter-spacing: -.005em; }
.episode-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.guest-line { font-family: var(--font-sans); font-size: var(--text-sm); color: var(--ink-2); margin: 0; }
.guest-line strong { color: var(--fg); }
.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary { display: flex; justify-content: space-between; align-items: center; padding: var(--space-2xs) 0; cursor: pointer; list-style: none; font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: var(--tracking-display); }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-family: var(--font-sans); font-size: 1.4rem; line-height: 1; }
.accordion details[open] summary::after { content: "–"; }
.accordion .acc-body { padding-bottom: var(--space-xs); font-size: var(--text-sm); }
.episode-page-right { min-width: 0; }
.episode-lede { font-size: var(--text-xl); line-height: 1.35; font-weight: 500; max-width: 42rem; }
.rich-text { max-width: var(--measure); }
.rich-text h2, .episode-page-right h2 { font-family: var(--font-display); font-size: var(--text-lg); text-transform: uppercase; letter-spacing: var(--tracking-display); margin: var(--space-l) 0 var(--space-2xs); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: .5rem var(--space-s); margin: 0; font-size: var(--text-sm); }
.facts dt { font-family: var(--font-display); text-transform: uppercase; letter-spacing: var(--tracking-display); color: var(--ink-3); font-weight: 600; }
.facts dd { margin: 0; }
.chapters-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .3rem; font-size: var(--text-sm); }
.chapters-list .meta { display: inline-block; min-width: 3.5rem; }
.related .cards { grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); }
.related .card-hover { display: none; }

/* sticky mini player */
.has-player { padding-bottom: var(--player-height); }
.player { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; height: var(--player-height); background: var(--fg); color: var(--bg); }
.player-inner { height: 100%; display: flex; align-items: center; gap: var(--space-xs); }
.player .tile-mini { width: 3rem; height: 3rem; font-size: .85rem; flex: none; }
.player-text { min-width: 0; flex: 1; display: grid; }
.player-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: var(--text-sm); }
.player .meta { color: color-mix(in srgb, var(--bg) 70%, var(--fg)); font-size: var(--text-xs); }
.player .icon-btn { background: transparent; color: var(--bg); border-color: color-mix(in srgb, var(--bg) 35%, var(--fg)); }
.player .icon-btn:hover { background: var(--bg); color: var(--fg); }
.player .play { width: 3rem; height: 3rem; background: var(--bg); color: var(--fg); }
@media (max-width: 600px) { .player .platform { display: none; } }

/* ---------- transcript page ---------- */
.transcript-top { position: sticky; top: 0; z-index: 40; background: var(--bg); border-bottom: 1px solid var(--line); }
.transcript-top .wrap { height: 3.75rem; display: flex; align-items: center; gap: var(--space-xs); }
.transcript-top .t-title { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.progress { position: absolute; left: 0; bottom: -1px; height: 3px; width: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.transcript-layout { display: grid; grid-template-columns: 15rem minmax(0, 42rem); gap: var(--space-xl); padding-block: var(--space-l); justify-content: center; }
.chapter-toc { position: sticky; top: calc(3.75rem + var(--space-s)); max-height: calc(100vh - 6rem); overflow: auto; align-self: start; font-family: var(--font-sans); font-size: var(--text-xs); }
.chapter-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.chapter-toc a { display: grid; grid-template-columns: 3.25rem 1fr; gap: .4rem; padding: .35rem .5rem; border-radius: var(--radius-s); color: var(--ink-2); text-decoration: none; border-left: 2px solid transparent; }
.chapter-toc a:hover { background: var(--surface); color: var(--fg); }
.chapter-toc a.active { color: var(--fg); background: var(--surface); border-left-color: var(--accent); font-weight: 600; }
.chapter-toc .ts { font-variant-numeric: tabular-nums; color: var(--ink-3); }
.chapters-toggle { display: none; }
@media (max-width: 900px) {
  .transcript-layout { grid-template-columns: 1fr; }
  .chapters-toggle { display: inline-flex; }
  .chapter-toc { position: fixed; inset: 3.75rem 0 auto 0; max-height: 60vh; background: var(--bg); border-bottom: 1px solid var(--line); padding: var(--space-xs); z-index: 35; display: none; }
  .chapter-toc.open { display: block; }
}
.transcript h1 { font-size: var(--text-2xl); text-transform: uppercase; margin-bottom: var(--space-3xs); }
.transcript-section { content-visibility: auto; contain-intrinsic-size: auto 1800px; }
.transcript-section h2 { font-family: var(--font-display); font-size: var(--text-sm); letter-spacing: var(--tracking-display); text-transform: uppercase; color: var(--accent); margin: var(--space-l) 0 var(--space-xs); padding-top: var(--space-xs); border-top: 1px solid var(--line); }
.episode-rich-text p { position: relative; }
.episode-rich-text p[data-t]::before { content: attr(data-t); position: absolute; right: calc(100% + var(--space-xs)); top: .2em; font-family: var(--font-sans); font-size: .75rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
/* content-visibility clips paint to the section box, so widen the box to hold the timestamp gutter */
@media (min-width: 1101px) { .transcript-section { margin-inline: -4.5rem -.75rem; padding-inline: 4.5rem .75rem; } }
@media (max-width: 1100px) { .episode-rich-text p[data-t]::before { display: none; } .transcript-section { margin-inline: -.75rem; padding-inline: .75rem; } }
.episode-rich-text p:target, .episode-rich-text p.hit { background: color-mix(in srgb, var(--theme-accent-hi) 45%, transparent); box-shadow: 0 0 0 .5rem color-mix(in srgb, var(--theme-accent-hi) 45%, transparent); border-radius: 2px; }
.transcript-note { font-family: var(--font-sans); font-size: var(--text-xs); color: var(--ink-3); }

/* ---------- misc ---------- */
.prose { max-width: var(--measure); font-size: var(--text-lg); }
.notice { border: 1px dashed var(--line); padding: var(--space-xs); border-radius: var(--radius-m); color: var(--ink-2); font-family: var(--font-sans); font-size: var(--text-sm); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Pagefind metadata carriers: never take up layout space */
[data-pagefind-meta]:empty, [data-pagefind-filter]:empty { display: none; }

/* ---------- substack page ---------- */
.substack-grid { display: grid; grid-template-columns: minmax(0, 30rem) minmax(0, 1fr); gap: var(--space-xl); align-items: start; }
@media (max-width: 900px) { .substack-grid { grid-template-columns: 1fr; } }
.substack-embed { width: 100%; height: 20rem; border: 1px solid var(--line); border-radius: var(--radius-l); background: #fff; }
.posts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.post { display: grid; gap: .3rem; padding-block: var(--space-xs); border-bottom: 1px solid var(--line); color: var(--fg); text-decoration: none; }
.post b { font-size: var(--text-lg); line-height: 1.25; }
.post span:last-child { color: var(--ink-2); font-size: var(--text-sm); }
.post:hover b { text-decoration: underline; }

/* ---------- display headings ---------- */
h1, .section-head h2, .signup-band h2 { font-family: var(--font-heading); font-weight: 400; letter-spacing: 0; }
.page-head h1, .episode-page-left h1, .transcript h1 { text-transform: uppercase; }
.page-head h1 { font-size: var(--text-hero); line-height: .95; }
.episode-page-left h1 { font-size: var(--text-3xl); line-height: 1; }
.section-head h2 { font-size: var(--text-3xl); line-height: 1; }
.card h3, .hero-feature h2 { font-family: var(--font-serif); }

/* ---------- generated episode tiles ---------- */
.tile { container-type: inline-size; position: relative; aspect-ratio: 1; width: 100%; display: grid; place-items: center; padding: 9%; background: var(--b); color: var(--i); text-align: center; overflow: hidden; }
.tile-name { font-size: var(--fs); line-height: .95; text-wrap: balance; overflow-wrap: anywhere; }
.tile[data-style="sans"] .tile-name { font-family: var(--font-sans); font-weight: 800; letter-spacing: -.02em; }
.tile[data-style="wide"] .tile-name { font-family: var(--font-sans); font-stretch: 125%; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; }
.tile[data-style="condensed"] .tile-name { font-family: var(--font-sans); font-stretch: 62%; font-weight: 800; text-transform: uppercase; letter-spacing: .01em; }
.tile[data-style="serif"] .tile-name { font-family: var(--font-heading); font-weight: 400; letter-spacing: -.01em; line-height: 1; }
.tile-pill { position: absolute; top: 4.5cqi; right: 4.5cqi; padding: .35em .7em; border-radius: var(--radius-xs); font-family: var(--font-sans); font-stretch: 87.5%; font-weight: 600; font-size: max(.6875rem, 3.6cqi); letter-spacing: .03em; text-transform: uppercase; color: var(--i); background: color-mix(in srgb, var(--i) 14%, transparent); border: 1px solid color-mix(in srgb, var(--i) 30%, transparent); line-height: 1.2; }
.bg-media > .tile { position: absolute; inset: 0; }
.hover-sector { display: block; font-family: var(--font-display); font-stretch: var(--stretch-display); font-weight: 600; text-transform: uppercase; letter-spacing: var(--tracking-display); margin-bottom: .4rem; color: #fff; opacity: .85; }
.card-hover { flex-direction: column; justify-content: flex-end; align-items: flex-start; }
.card-sector { margin: 0; font-family: var(--font-display); font-stretch: var(--stretch-display); font-weight: 600; text-transform: uppercase; letter-spacing: var(--tracking-display); font-size: var(--text-xs); color: var(--accent); }
.chip-sector { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* ---------- homepage wall ---------- */
.wall { position: relative; overflow: hidden; height: min(calc(100vh - var(--nav-height)), 64vw); min-height: 26rem; }
.wall-grid { list-style: none; margin: 0 0 0 -4vw; padding: 1.25rem 0 0; width: 108vw; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 2.2vw; }
.wall-tile { position: relative; display: block; color: inherit; text-decoration: none; transition: transform .35s var(--ease); }
.wall-tile .tile { border-radius: 2px; }
.wall-hover { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: .35rem; padding: 8%; background: color-mix(in srgb, var(--b, #000) 30%, rgba(14, 10, 20, .9)); color: #fff; opacity: 0; transition: opacity .25s var(--ease); font-family: var(--font-sans); font-size: var(--text-sm); line-height: 1.3; }
.wall-hover b { font-family: var(--font-serif); font-size: clamp(1rem, 1.5vw, 1.4rem); font-weight: 600; line-height: 1.15; }
.wall-hover .meta { color: rgba(255, 255, 255, .75); font-size: var(--text-xs); }
.wall-sector { align-self: flex-start; margin-bottom: auto; padding: .3em .7em; border-radius: var(--radius-xs); background: #fff; color: #16121c; font-family: var(--font-display); font-stretch: var(--stretch-display); font-weight: 600; font-size: var(--text-xs); letter-spacing: var(--tracking-display); text-transform: uppercase; }
.wall-tile:hover, .wall-tile:focus-visible { transform: translateY(-4px); }
.wall-tile:hover .wall-hover, .wall-tile:focus-visible .wall-hover { opacity: 1; }
.wall::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 38%; background: linear-gradient(to bottom, transparent, var(--bg) 92%); pointer-events: none; }
.wall-explore { white-space: nowrap; position: absolute; z-index: 2; left: 50%; bottom: var(--space-m); transform: translateX(-50%); display: inline-flex; align-items: center; gap: .5rem; height: 3.5rem; padding: 0 1.75rem; border-radius: var(--radius-pill); background: var(--bg); color: var(--fg); text-decoration: none; font-family: var(--font-sans); font-stretch: 87.5%; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; box-shadow: 0 10px 30px -10px rgba(20, 14, 30, .35); }
.wall-explore:hover { text-decoration: none; background: var(--fg); color: var(--bg); }
@media (max-width: 900px) { .wall-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); width: 116vw; margin-left: -8vw; } .wall { height: 100vw; } }
@media (max-width: 560px) { .wall-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); width: 130vw; margin-left: -15vw; gap: 3vw; } .wall { height: 125vw; } .wall-hover { display: none; } }
@media (hover: none) { .wall-hover { display: none; } }
.hero { border-bottom: 0; padding-top: var(--space-l); }
@media (max-width: 1000px) { .topic-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* logo and photo tiles */
.tile-logo { width: 64%; height: 34%; object-fit: contain; filter: brightness(0) invert(1); }
.tile[data-ink="dark"] .tile-logo { filter: brightness(0); opacity: .9; }
.tile[data-kind="photo"] { padding: 0; background: var(--b); }
.tile-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.tile[data-kind="photo"] .tile-pill { background: rgba(251, 249, 245, .9); color: #16121c; border-color: rgba(255, 255, 255, .6); }
.tile-pill { z-index: 1; max-width: 80%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- episode hero (deep brand color) ---------- */
.ep-themed .nav { background: var(--deep); backdrop-filter: none; -webkit-backdrop-filter: none; }
.ep-themed .nav .wordmark, .ep-themed .nav .wm-sub, .ep-themed .nav .pill-btn { color: #fff; }
.ep-themed .nav .wm-sub { color: #d6c8f5; }
.ep-themed .nav .wordmark:hover .wm-name { color: var(--deep-title); }
.ep-themed .nav .pill-btn, .ep-themed .nav .nav-search { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .28); }
.ep-themed .nav .pill-btn:hover, .ep-themed .nav .nav-search:hover { border-color: #fff; }
.ep-themed .nav .nav-search { color: rgba(255, 255, 255, .78); }
.ep-themed .nav :focus-visible { outline-color: #fff; }
.ep-hero { background: var(--deep); color: var(--deep-text); padding-block: var(--space-l) var(--space-2xl); }
.ep-hero :focus-visible { outline-color: #fff; }
.ep-hero-inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 28rem); gap: var(--space-xl); align-items: center; }
.ep-hero-text { display: grid; gap: var(--space-xs); justify-items: start; }
.ep-back { display: inline-flex; align-items: center; gap: .45rem; height: 2.5rem; padding: 0 1.1rem; border-radius: var(--radius-pill); background: rgba(255, 255, 255, .08); color: var(--deep-text); text-decoration: none; font-family: var(--font-sans); font-stretch: 87.5%; font-weight: 600; font-size: var(--text-xs); letter-spacing: .04em; text-transform: uppercase; margin-bottom: var(--space-xs); }
.ep-back:hover { background: rgba(255, 255, 255, .16); text-decoration: none; }
.ep-hero h1 { color: var(--deep-title); font-size: clamp(2.75rem, 1.6rem + 4.6vw, 6rem); line-height: 1; text-transform: none; letter-spacing: -.01em; max-width: 16ch; }
.ep-hero-meta { margin: 0; font-family: var(--font-display); font-stretch: var(--stretch-display); font-weight: 600; text-transform: uppercase; letter-spacing: var(--tracking-display); font-size: var(--text-sm); color: var(--deep-text); }
.ep-hero-guest { margin: 0; font-size: var(--text-lg); color: var(--deep-text); max-width: 38rem; }
.ep-chips .chip { background: transparent; color: var(--deep-text); border-color: rgba(255, 255, 255, .3); }
.ep-chips .chip:hover { border-color: #fff; }
.ep-chips .chip-sector { background: var(--deep-title); border-color: var(--deep-title); color: var(--deep); }
.ep-actions { margin-top: var(--space-2xs); }
.ep-play { background: #fbf9f5; border-color: #fbf9f5; color: #16121c; text-transform: uppercase; letter-spacing: .03em; }
.ep-play:hover { background: #fff; border-color: #fff; color: #16121c; }
.ep-ghost { border-color: rgba(255, 255, 255, .35); color: var(--deep-text); text-transform: uppercase; letter-spacing: .03em; }
.ep-ghost:hover { background: rgba(255, 255, 255, .1); border-color: #fff; color: #fff; }
.ep-cover { position: relative; display: block; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .65); transition: transform .35s var(--ease); }
.ep-cover:hover, .ep-cover:focus-visible { transform: translateY(-4px); }
.ep-cover-play { position: absolute; left: 50%; top: 50%; width: 4.5rem; height: 4.5rem; margin: -2.25rem 0 0 -2.25rem; display: grid; place-items: center; border-radius: 50%; background: rgba(251, 249, 245, .94); color: #16121c; opacity: 0; transform: scale(.9); transition: opacity .25s var(--ease), transform .25s var(--ease); z-index: 2; }
.ep-cover-play .icon { width: 1.75rem; height: 1.75rem; margin-left: .2rem; }
.ep-cover:hover .ep-cover-play, .ep-cover:focus-visible .ep-cover-play { opacity: 1; transform: none; }
@media (hover: none) { .ep-cover-play { opacity: 1; transform: none; width: 3.5rem; height: 3.5rem; margin: -1.75rem 0 0 -1.75rem; } }
@media (max-width: 860px) { .ep-hero-inner { grid-template-columns: 1fr; } .ep-cover { max-width: 22rem; order: -1; } }
.episode-body { padding-block: var(--space-xl) 0; display: grid; gap: var(--space-xl); }
.episode-main { max-width: 44rem; }
.episode-main h2 { font-family: var(--font-display); font-stretch: var(--stretch-display); font-size: var(--text-lg); text-transform: uppercase; letter-spacing: var(--tracking-display); margin: var(--space-l) 0 var(--space-2xs); }
.related h2 { font-family: var(--font-display); font-stretch: var(--stretch-display); font-size: var(--text-lg); text-transform: uppercase; letter-spacing: var(--tracking-display); margin: 0 0 var(--space-s); }
.related .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .related .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .wm-sub { font-size: .5625rem; letter-spacing: .06em; } }
.tile[data-logo-kind="mark"] .tile-logo { width: 38%; height: 38%; }
.tile[data-logo-ink="light"] .tile-logo { filter: brightness(0) invert(1); opacity: 1; }
/* hide the corner name label while the hover overlay (with its topic tag) is showing */
.tile-pill { transition: opacity .2s var(--ease); }
.wall-tile:hover .tile-pill, .wall-tile:focus-visible .tile-pill,
.card-link:hover .tile-pill, .card-link:focus-visible .tile-pill { opacity: 0; }

/* ---------- soft ask (survey + Substack) ---------- */
.ask-inline { border: 1px solid var(--line); border-radius: var(--radius-l); padding: var(--space-s); background: var(--surface); max-width: 44rem; }
.ask-inline h2 { font-family: var(--font-heading); font-weight: 400; font-size: var(--text-xl); margin: 0 0 .35rem; text-transform: none; letter-spacing: 0; }
.ask-inline p { color: var(--ink-2); }
.transcript .ask-inline { margin-top: var(--space-xl); }
.ask-card { position: fixed; right: var(--space-s); bottom: var(--space-s); z-index: 45; width: min(24rem, calc(100vw - 2rem)); background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: var(--space-s); box-shadow: 0 24px 60px -20px rgba(20, 14, 30, .45); transform: translateY(16px); opacity: 0; transition: transform .3s var(--ease), opacity .3s var(--ease); }
.ask-card.in { transform: none; opacity: 1; }
.ask-card h2 { font-family: var(--font-heading); font-weight: 400; font-size: var(--text-xl); margin: 0 2rem .3rem 0; text-transform: none; letter-spacing: 0; }
.ask-card p { color: var(--ink-2); font-size: var(--text-sm); }
.ask-close { position: absolute; top: .6rem; right: .6rem; width: 2.25rem; height: 2.25rem; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--ink-2); cursor: pointer; }
.ask-close:hover { background: var(--surface); color: var(--ink); }
.ask-form { display: grid; gap: var(--space-2xs); }
.ask-field { display: grid; gap: .3rem; font-family: var(--font-sans); font-size: var(--text-xs); font-weight: 600; color: var(--ink); }
.ask-field select { height: 2.5rem; border: 1px solid var(--line); border-radius: var(--radius-m); padding: 0 .6rem; background: var(--paper); color: var(--ink); font: inherit; font-weight: 400; font-size: var(--text-sm); }
.ask-form .btn { justify-self: start; margin-top: .25rem; }
.survey-page { max-width: 30rem; }
@media (max-width: 600px) { .ask-card { right: 1rem; left: 1rem; bottom: 1rem; width: auto; } }

/* LinkedIn name links */
.li-link { white-space: nowrap; }
.li-icon { width: .85em; height: .85em; margin-left: .25em; vertical-align: -.05em; opacity: .75; }
.ep-hero-guest .li-link { color: #fff; text-decoration-color: rgba(255, 255, 255, .45); }
.ep-hero-guest .li-link:hover { text-decoration-color: #fff; }

/* ---------- about: team ---------- */
.team-intro { color: var(--ink-2); }
.team-section { margin-top: var(--space-xl); }
.team-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: var(--space-s); }
.team-card { display: flex; gap: var(--space-xs); align-items: center; padding: var(--space-xs); border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--bg); }
.team-avatar { flex: none; width: 4rem; height: 4rem; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--purple-700); color: #fff; font-family: var(--font-heading); font-size: 1.5rem; }
.team-avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-card p { margin: 0; }
.team-name { font-weight: 600; font-size: var(--text-lg); line-height: 1.2; }
.team-name a { color: var(--fg); }
.team-count { font-family: var(--font-sans); font-size: var(--text-xs); color: var(--ink-2); margin-top: .2rem !important; }
.alumni { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: var(--space-l); }
.alumni-year h3 { font-family: var(--font-display); font-stretch: var(--stretch-display); text-transform: uppercase; letter-spacing: var(--tracking-display); font-size: var(--text-sm); color: var(--ink-3); border-bottom: 1px solid var(--line); padding-bottom: .4rem; margin-bottom: .5rem; }
.alumni-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.alumni-list a { color: var(--fg); }
.host-band { margin-top: var(--space-2xl); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-s); padding: var(--space-m); border-radius: var(--radius-xl); background: var(--purple-1000); color: #f6f2fd; }
.host-band h2 { font-family: var(--font-heading); font-weight: 400; font-size: var(--text-2xl); margin: 0 0 .3rem; }
.host-band p { margin: 0; color: #d9d0ea; max-width: 38rem; }
.host-band .btn-solid { background: #f6f2fd; border-color: #f6f2fd; color: var(--purple-1000); }
.host-band .btn-solid:hover { background: transparent; color: #f6f2fd; }
.host-band .btn:not(.btn-solid) { color: #f6f2fd; border-color: rgba(246, 242, 253, .5); }
.host-band .btn:not(.btn-solid):hover { background: #f6f2fd; color: var(--purple-1000); }

/* ---------- become a host ---------- */
.host-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-s); }
@media (max-width: 900px) { .host-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .host-steps { grid-template-columns: 1fr; } }
.host-steps li { border-top: 2px solid var(--purple-700); padding-top: var(--space-xs); }
.step-n { font-family: var(--font-heading); font-size: var(--text-2xl); color: var(--purple-700); line-height: 1; display: block; }
.host-steps b { display: block; font-size: var(--text-lg); margin: .3rem 0 .2rem; }
.host-steps p { color: var(--ink-2); font-size: var(--text-sm); margin: 0; }
.host-form-wrap { margin-top: var(--space-2xl); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 32rem); gap: var(--space-xl); align-items: start; }
@media (max-width: 900px) { .host-form-wrap { grid-template-columns: 1fr; } }
.host-form-intro h2 { font-family: var(--font-heading); font-weight: 400; font-size: var(--text-3xl); margin-bottom: .4rem; }
.host-form { display: grid; gap: var(--space-xs); padding: var(--space-s); border: 1px solid var(--line); border-radius: var(--radius-xl); background: var(--bg); }
.host-form input, .host-form textarea { border: 1px solid var(--line); border-radius: var(--radius-m); padding: .6rem; background: var(--paper); color: var(--ink); font: inherit; font-weight: 400; font-size: var(--text-sm); }
.host-form input { height: 2.6rem; }
.host-form input:focus-visible, .host-form textarea:focus-visible, .host-form select:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.host-form select { height: 2.6rem; border: 1px solid var(--line); border-radius: var(--radius-m); padding: 0 .6rem; background: var(--paper); color: var(--ink); font: inherit; font-weight: 400; font-size: var(--text-sm); }
.host-form .btn { justify-self: start; }
.optional { font-weight: 400; color: var(--ink-3); }
@media (min-width: 900px) { .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* team cards are buttons that open a person pop-up */
.team-grid > li { display: flex; }
button.team-card { width: 100%; font: inherit; color: inherit; text-align: left; cursor: pointer; transition: border-color var(--dur), transform var(--dur); }
button.team-card:hover { border-color: var(--purple-700); transform: translateY(-2px); }
.team-card .team-name, .team-card .meta { display: block; }
.alumni-btn { border: 0; background: none; padding: 0; font: inherit; color: var(--fg); cursor: pointer; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: .2em; }
.alumni-btn:hover { text-decoration-color: var(--purple-700); color: var(--purple-700); }
.popup-person { width: min(36rem, calc(100% - 2rem)); height: auto; max-height: min(85vh, 46rem); margin: auto; border-radius: var(--radius-xl); padding: var(--space-m); overflow: auto; }
.popup-person[open] { display: block; }
.person-head { display: flex; gap: var(--space-s); align-items: center; margin-bottom: var(--space-s); padding-right: 2rem; }
.person-head h2 { font-family: var(--font-heading); font-weight: 400; font-size: var(--text-2xl); margin: 0 0 .25rem; }
.person-head .meta { margin-bottom: .6rem; }
.team-avatar-lg { width: 5.5rem; height: 5.5rem; font-size: 2rem; }
.popup-person h3 { font-family: var(--font-display); font-stretch: var(--stretch-display); text-transform: uppercase; letter-spacing: var(--tracking-display); font-size: var(--text-sm); border-bottom: 1px solid var(--line); padding-bottom: .4rem; margin: var(--space-s) 0 .4rem; }
.person-eps { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.person-ep { display: grid; grid-template-columns: 3.5rem 1fr; gap: var(--space-2xs); align-items: center; padding: .45rem; border-radius: var(--radius-m); color: var(--fg); text-decoration: none; }
.person-ep:hover { background: var(--surface); text-decoration: none; }
.person-ep .tile-mini { width: 3.5rem; height: 3.5rem; font-size: .95rem; }
.person-ep b { display: block; font-size: var(--text-base); line-height: 1.25; }
.person-ep-guest { display: block; font-family: var(--font-sans); font-size: var(--text-xs); color: var(--ink-2); }
.person-note { color: var(--ink-2); font-size: var(--text-sm); margin: 0; }

/* icon buttons: keep glyphs optically centered */
.icon-btn .icon { display: block; }

/* ---------- subscribe flow ---------- */
.popup-sub { width: min(32rem, calc(100% - 2rem)); height: auto; max-height: min(90vh, 48rem); margin: auto; border-radius: var(--radius-xl); padding: var(--space-m); overflow: auto; }
.popup-sub[open] { display: block; }
.popup-sub h2 { font-family: var(--font-heading); font-weight: 400; font-size: var(--text-2xl); margin: .2rem 2rem .4rem 0; }
.popup-sub p { color: var(--ink-2); }
.sub-embed { height: 9.5rem; margin-bottom: var(--space-xs); background: #fff; }
.link-btn { border: 0; background: none; padding: .5rem 0 0; font: inherit; font-family: var(--font-sans); font-size: var(--text-xs); color: var(--ink-2); text-decoration: underline; cursor: pointer; }
.ask-checks { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .35rem .75rem; }
.ask-checks legend { grid-column: 1 / -1; padding: 0; margin-bottom: .35rem; }
.ask-checks label { display: flex; align-items: center; gap: .45rem; font-weight: 400; font-size: var(--text-sm); }
.ask-checks input { width: 1rem; height: 1rem; accent-color: var(--purple-700); }
@media (max-width: 420px) { .ask-checks { grid-template-columns: 1fr; } }
.ask-card .btn { margin-top: .25rem; }

/* ---------- be a guest ---------- */
.guest-section { margin-top: var(--space-xl); }
.why-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-s); }
@media (max-width: 1000px) { .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }
.why-grid li { background: var(--surface); border-radius: var(--radius-l); padding: var(--space-s); }
.why-grid b { display: block; font-family: var(--font-heading); font-weight: 400; font-size: var(--text-xl); line-height: 1.1; margin-bottom: .5rem; }
.why-grid p { color: var(--ink-2); font-size: var(--text-sm); margin: 0; }
.guest-asks { margin-top: var(--space-m); max-width: 44rem; }
.guest-asks h3 { font-family: var(--font-display); font-stretch: var(--stretch-display); text-transform: uppercase; letter-spacing: var(--tracking-display); font-size: var(--text-sm); color: var(--ink-3); margin-bottom: .4rem; }
.guest-asks ul { margin: 0; padding-left: 1.2rem; display: grid; gap: .3rem; }
.contact-list { list-style: none; padding: 0; margin: 0 0 var(--space-s); display: grid; gap: .6rem; font-family: var(--font-sans); }
.contact-list li { display: flex; align-items: center; gap: .6rem; }
.contact-list .icon { color: var(--purple-700); }
.carousel.cards { grid-template-columns: none; }

/* ---------- be a guest: cards + marquee ---------- */
.guest-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-s); }
@media (max-width: 760px) { .guest-cards { grid-template-columns: 1fr; } }
.guest-cards li { background: var(--surface); border-radius: var(--radius-l); padding: var(--space-m); }
.guest-cards h2 { font-family: var(--font-heading); font-weight: 400; font-size: var(--text-2xl); line-height: 1.05; margin: 0 0 .6rem; }
.guest-cards p { margin: 0; color: var(--ink-2); font-size: var(--text-lg); line-height: 1.5; }
.mq { overflow: hidden; padding-block: .25rem; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.mq-track { display: flex; width: max-content; animation: mq-scroll 60s linear infinite; }
.mq ul { list-style: none; margin: 0; padding: 0 .75rem 0 0; display: flex; gap: .75rem; }
.mq a { display: inline-flex; align-items: center; white-space: nowrap; height: 3rem; padding: 0 1.25rem; border-radius: var(--radius-pill); background: var(--surface); color: var(--ink-2); text-decoration: none; font-family: var(--font-sans); font-size: var(--text-sm); }
.mq a b { color: var(--fg); font-weight: 600; margin-left: .3em; }
.mq a:hover { background: var(--cream-2); color: var(--fg); }
.mq:hover .mq-track, .mq:focus-within .mq-track { animation-play-state: paused; }
@keyframes mq-scroll { to { transform: translateX(-50%); } }
@media (max-width: 600px) { .mq-track { animation-duration: 45s; } .mq a { height: 2.6rem; font-size: var(--text-xs); } }
@media (prefers-reduced-motion: reduce) {
  .mq { -webkit-mask-image: none; mask-image: none; }
  .mq-track { width: auto; animation: none; }
  .mq ul { flex-wrap: wrap; padding: 0; }
  .mq ul[aria-hidden="true"] { display: none; }
}

/* ---------- substack page ---------- */
.post-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-s); }
@media (max-width: 860px) { .post-grid { grid-template-columns: 1fr; } }
.post-card { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: var(--space-s); padding: var(--space-s); border-radius: var(--radius-l); background: var(--surface); }
@media (max-width: 480px) { .post-card { grid-template-columns: 1fr; } .post-art { max-width: 12rem; } }
.post-art { display: block; aspect-ratio: 1; overflow: hidden; background: var(--purple-1000); }
.post-art > img { width: 100%; height: 100%; object-fit: cover; }
.post-art .tile { height: 100%; }
.post-art-blank { width: 100%; height: 100%; display: grid; place-items: center; color: #fff; font-family: var(--font-heading); font-size: 3rem; }
.post-body { display: grid; gap: .4rem; align-content: start; }
.post-body h3 { font-size: var(--text-xl); line-height: 1.15; }
.post-body h3 a { color: var(--fg); text-decoration: none; }
.post-body h3 a:hover { text-decoration: underline; }
.post-body p { margin: 0; color: var(--ink-2); font-size: var(--text-sm); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-links { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; margin-top: .3rem; font-family: var(--font-sans); font-size: var(--text-xs); font-weight: 600; }
.post-links a { display: inline-flex; align-items: center; gap: .3rem; color: var(--purple-700); text-decoration: none; }
.post-links a:hover { text-decoration: underline; }
.post-links .icon { width: 1em; height: 1em; }
.sub-band { margin-top: var(--space-2xl); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 28rem); gap: var(--space-l); align-items: center; padding: var(--space-l); border-radius: var(--radius-xl); background: var(--purple-1000); color: #f6f2fd; }
@media (max-width: 860px) { .sub-band { grid-template-columns: 1fr; } }
.sub-band h2 { font-family: var(--font-heading); font-weight: 400; font-size: var(--text-3xl); line-height: 1; margin-bottom: .5rem; text-transform: uppercase; }
.sub-band p { margin: 0; color: #d9d0ea; }
.sub-band .substack-embed { height: 9.5rem; border: 0; }

/* ---------- be a guest: audience ---------- */
.audience { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--space-l); align-items: stretch; }
@media (max-width: 860px) { .audience { grid-template-columns: 1fr; } }
.audience-copy { background: var(--surface); border-radius: var(--radius-l); padding: var(--space-m); }
.audience-copy h2 { font-family: var(--font-heading); font-weight: 400; font-size: var(--text-2xl); line-height: 1.05; margin: 0 0 .6rem; }
.audience-copy p { color: var(--ink-2); font-size: var(--text-lg); line-height: 1.5; }
.sector-chips { list-style: none; margin: var(--space-xs) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.sector-chips li { padding: .35rem .8rem; border-radius: var(--radius-pill); border: 1px solid var(--line); background: var(--bg); font-family: var(--font-display); font-stretch: var(--stretch-display); font-weight: 600; font-size: var(--text-xs); letter-spacing: var(--tracking-display); text-transform: uppercase; }
.audience-stack { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.audience-stack li { display: grid; align-content: center; gap: .2rem; padding: var(--space-s); border-radius: var(--radius-l); color: #fff; }
.audience-stack li:nth-child(1) { background: var(--purple-1000); }
.audience-stack li:nth-child(2) { background: var(--purple-700); }
.audience-stack li:nth-child(3) { background: var(--purple-500); }
.audience-stack b { font-family: var(--font-heading); font-weight: 400; font-size: var(--text-xl); line-height: 1.1; }
.audience-stack span { font-family: var(--font-sans); font-size: var(--text-sm); color: rgba(255, 255, 255, .85); }
.involves-lede { max-width: 48rem; color: var(--ink-2); font-size: var(--text-lg); margin-bottom: var(--space-m); }

/* marquee items: logo tile above the role */
.mq ul { align-items: stretch; }
.mq a { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: .6rem; height: auto; width: 13rem; padding: .75rem; border-radius: var(--radius-l); white-space: normal; line-height: 1.3; }
.mq-logo { display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius-s); }
.mq-logo .tile { aspect-ratio: auto; height: 100%; padding: 6%; }
.mq-logo .tile[data-kind="logo"] .tile-logo { width: 46%; height: 52%; }
.mq-logo .tile[data-logo-kind="mark"] .tile-logo { width: 34%; height: 46%; }
.mq-text { font-size: var(--text-xs); }
.mq a b { margin-left: 0; }
@media (max-width: 600px) { .mq a { width: 11rem; } }

/* marquee: uniform, larger cards and a slower scroll */
.mq-track { animation-duration: 120s; }
.mq a { width: 16rem; height: 15.5rem; padding: .9rem; gap: .75rem; }
.mq-logo { flex: none; }
.mq-text { font-size: var(--text-sm); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 600px) { .mq-track { animation-duration: 90s; } .mq a { width: 13.5rem; height: 13.5rem; } }

/* ---------- be a guest: redesign ---------- */
.guest-head h1 { max-width: 16ch; }
.guest-head .eyebrow { margin-bottom: var(--space-xs); }
.stat-band { list-style: none; margin: var(--space-l) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.stat-band li { padding: var(--space-m) var(--space-s); display: grid; gap: .35rem; align-content: start; }
.stat-band li + li { border-left: 1px solid var(--line); }
.stat-band b { font-family: var(--font-heading); font-weight: 400; font-size: clamp(3rem, 2rem + 4vw, 5.5rem); line-height: .9; color: var(--purple-700); }
.stat-band span { font-family: var(--font-display); font-stretch: var(--stretch-display); font-weight: 600; text-transform: uppercase; letter-spacing: var(--tracking-display); font-size: var(--text-sm); color: var(--ink-2); max-width: 14rem; }
@media (max-width: 860px) {
  .stat-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-band li:nth-child(3) { border-left: 0; }
  .stat-band li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
.feature-grid { list-style: none; margin: var(--space-xl) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-s); }
@media (max-width: 760px) { .feature-grid { grid-template-columns: 1fr; } }
.feature-card { border-radius: var(--radius-l); padding: var(--space-m); display: grid; gap: .7rem; align-content: start; }
.feature-card:nth-child(1) { background: var(--purple-1000); color: #f6f2fd; }
.feature-card:nth-child(1) p { color: #d9d0ea; }
.feature-card:nth-child(2) { background: var(--surface); }
.feature-card h2 { font-family: var(--font-heading); font-weight: 400; font-size: var(--text-2xl); line-height: 1.05; margin: 0; }
.feature-card p { margin: 0; color: var(--ink-2); font-size: var(--text-lg); line-height: 1.5; }
.feature-chips { list-style: none; margin: .3rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.feature-chips li { padding: .4rem .85rem; border-radius: var(--radius-pill); background: var(--bg); border: 1px solid var(--line); font-family: var(--font-display); font-stretch: var(--stretch-display); font-weight: 600; font-size: var(--text-xs); letter-spacing: var(--tracking-display); text-transform: uppercase; }
.ask-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-xs); }
.ask-strip li { background: var(--surface); border-radius: var(--radius-l); padding: var(--space-s); display: grid; gap: .25rem; }
.ask-strip b { font-family: var(--font-heading); font-weight: 400; font-size: var(--text-2xl); line-height: 1; color: var(--purple-700); }
.ask-strip span { font-family: var(--font-sans); font-size: var(--text-sm); color: var(--ink-2); }
@media (max-width: 860px) { .ask-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mini-steps { list-style: none; margin: var(--space-m) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-s); counter-reset: none; }
.mini-steps li { display: grid; grid-template-columns: auto 1fr; column-gap: .7rem; align-items: baseline; border-top: 2px solid var(--purple-700); padding-top: .8rem; }
.mini-steps .step-n { grid-row: span 2; font-size: var(--text-xl); }
.mini-steps b { font-size: var(--text-lg); }
.mini-steps p { margin: .15rem 0 0; color: var(--ink-2); font-size: var(--text-sm); }
@media (max-width: 860px) { .mini-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .mini-steps, .ask-strip { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .ask-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ask-strip b { font-size: var(--text-xl); } .ask-strip li { padding: var(--space-xs); } }


/* "Who's been on": once JavaScript is running the strip becomes a real scroller (no CSS animation) */
.mq.is-live { overflow-x: auto; scrollbar-width: none; cursor: grab; overscroll-behavior-x: contain; }
.mq.is-live::-webkit-scrollbar { display: none; }
.mq.is-live .mq-track { animation: none; }
.mq.is-live.dragging { cursor: grabbing; user-select: none; }
.mq.is-live.dragging a { pointer-events: none; }
.mq:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: var(--radius-m); }
.mq-nav[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .mq.is-live .mq-track { width: max-content; } .mq.is-live ul { flex-wrap: nowrap; } .mq.is-live ul[aria-hidden="true"] { display: flex; } }

/* guest cards: name, title and company on separate lines */
.mq a { height: 18.5rem; gap: 0; color: var(--fg); }
.mq-logo { margin-bottom: .8rem; }
.mq-name { font-family: var(--font-heading); font-size: var(--text-xl); line-height: 1.1; color: var(--fg); }
.mq-role { margin-top: .35rem; font-family: var(--font-sans); font-size: var(--text-sm); line-height: 1.35; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mq-org { margin-top: auto; padding-top: .5rem; font-family: var(--font-display); font-stretch: var(--stretch-display); font-weight: 600; font-size: var(--text-sm); letter-spacing: var(--tracking-display); text-transform: uppercase; color: var(--purple-700); }
@media (max-width: 600px) { .mq a { height: 16.5rem; } .mq-name { font-size: var(--text-lg); } }

/* ---------------------------------------------------------------- private dashboard (/dashboard/) */
.dash { padding-block: var(--space-l) var(--space-xl); }
.dash-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--space-s); margin-bottom: var(--space-m); }
.dash-head h1 { font-family: var(--font-heading); font-weight: 400; font-size: var(--text-2xl); }
.dash-sub { color: var(--ink-3); font-family: var(--font-sans); font-size: var(--text-sm); margin-top: .25rem; }
.dash-controls { display: flex; flex-wrap: wrap; gap: var(--space-3xs); align-items: center; }
.dash-controls[hidden], .dash-connect[hidden], .dash-body[hidden], .dash-foot[hidden] { display: none; }
.seg { display: inline-flex; background: var(--cream); border-radius: var(--radius-pill); padding: 4px; }
.seg button { font: 600 var(--text-xs)/1 var(--font-sans); border: 0; background: none; color: var(--ink-2); padding: .65rem 1rem; border-radius: var(--radius-pill); cursor: pointer; white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--paper); color: var(--fg); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.dash-connect { max-width: 36rem; background: var(--cream); border-radius: var(--radius-xl); padding: var(--space-m); font-family: var(--font-sans); }
.dash-connect h2 { font-family: var(--font-heading); font-weight: 400; font-size: var(--text-xl); margin-bottom: var(--space-3xs); }
.dash-connect ol { padding-left: 1.2rem; margin: var(--space-s) 0; line-height: 1.6; }
.dash-connect label { font-weight: 600; font-size: var(--text-sm); display: block; margin-bottom: .4rem; }
.dash-token-row { display: flex; gap: var(--space-3xs); }
.dash-token-row input { flex: 1; min-width: 0; height: var(--btn-height); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 0 1rem; font: inherit; background: var(--paper); color: var(--fg); }
.dash-note { color: var(--ink-3); font-size: var(--text-xs); margin-top: .5rem; }
.dash-error { color: #b42318; font-family: var(--font-sans); font-size: var(--text-sm); margin-top: .5rem; }
.dash-error:empty { display: none; }
.dash-loading, .dash-empty { color: var(--ink-3); font-family: var(--font-sans); font-size: var(--text-sm); }
.dash-demo { background: var(--purple-100); color: var(--purple-800); border-radius: var(--radius-m); padding: .75rem 1rem; font-family: var(--font-sans); font-size: var(--text-sm); margin-bottom: var(--space-s); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: var(--space-xs); margin-bottom: var(--space-xs); }
.kpi { background: var(--cream); border-radius: var(--radius-xl); padding: var(--space-s); display: flex; flex-direction: column; gap: .3rem; font-family: var(--font-sans); }
.kpi-label { font-size: var(--text-sm); font-weight: 600; color: var(--ink-2); }
.kpi-n { font-family: var(--font-display); font-stretch: var(--stretch-display); font-weight: 700; font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem); line-height: 1; color: var(--fg); }
.kpi-hint { font-size: var(--text-xs); color: var(--ink-3); }
.chg { font-size: var(--text-xs); font-weight: 600; }
.chg.up { color: #1a7f4b; } .chg.down { color: #b42318; } .chg.flat { color: var(--ink-3); }
.dcard { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: var(--space-s); font-family: var(--font-sans); min-width: 0; }
.dcard h2 { font-size: var(--text-base); font-weight: 700; margin-bottom: var(--space-xs); }
.dcard h3 { font-size: var(--text-xs); font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; margin-bottom: .6rem; }
.dcard.wide { margin-bottom: var(--space-xs); }
.dgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr)); gap: var(--space-xs); margin-bottom: var(--space-xs); }
.hbars { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.hbars li { display: grid; grid-template-columns: minmax(0, 1fr) 30% 3rem; align-items: center; gap: .75rem; font-size: var(--text-sm); }
.hb-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-label a { color: inherit; }
.hb-label small { display: block; color: var(--ink-3); font-size: var(--text-xs); }
.hb-track { height: .55rem; background: var(--cream); border-radius: var(--radius-pill); overflow: hidden; }
.hb-fill { display: block; height: 100%; background: var(--purple-500); border-radius: var(--radius-pill); }
.hb-n { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.two, .survey-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: var(--space-s); }
.vchart { font-size: var(--text-xs); color: var(--ink-3); }
.vc-bars { display: flex; align-items: end; height: 12rem; gap: 2px; border-bottom: 1px solid var(--line); }
.vc-bar { position: relative; flex: 1 1 0; min-height: 2px; background: var(--purple-400); border-radius: 3px 3px 0 0; }
.vc-bar:hover { background: var(--purple-700); }
.vc-bar i { display: none; position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); white-space: nowrap; background: var(--ink); color: var(--paper); font-style: normal; padding: .35rem .55rem; border-radius: var(--radius-s); z-index: 1; }
.vc-bar i b { margin-left: .4rem; }
.vc-bar:hover i { display: block; }
.vc-axis { display: flex; justify-content: space-between; margin-top: .4rem; }
.dash-foot { margin-top: var(--space-s); font-family: var(--font-sans); font-size: var(--text-xs); color: var(--ink-3); }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--link); text-decoration: underline; cursor: pointer; }
@media (max-width: 40rem) { .hbars li { grid-template-columns: minmax(0, 1fr) 25% 2.5rem; } .dash-token-row { flex-direction: column; } }
.two .hbars li { grid-template-columns: minmax(0, 1fr) 18% 3rem; }
.dash-lede { color: var(--ink-3); font-size: var(--text-xs); margin: -.5rem 0 var(--space-xs); }
.dash-tabs { display: flex; gap: var(--space-m); border-bottom: 1px solid var(--line); margin-bottom: var(--space-m); font-family: var(--font-sans); }
.dash-tabs button { background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 0 0 .8rem; font: 600 var(--text-base)/1 var(--font-sans); color: var(--ink-3); cursor: pointer; }
.dash-tabs button span { font-weight: 400; font-size: var(--text-xs); margin-left: .3rem; color: var(--ink-3); }
.dash-tabs button[aria-selected="true"] { color: var(--fg); border-bottom-color: var(--accent); }
.dash-tabs button:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.dash[data-tab="pod"] .dash-controls, .dash[data-tab="pod"] [data-dash-status] { display: none; }
.pod-sub { margin: -.75rem 0 var(--space-s); }
.insights { margin: 0; padding-left: 1.1rem; display: grid; gap: .55rem; font-size: var(--text-sm); line-height: 1.5; }
.insights b { font-weight: 700; }
/* dashboard v2: funnel, line chart, leaderboard, glance row, episode map */
.dcard-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: var(--space-xs); }
.dcard-head h2 { margin: 0; }
.dcard-aside { font-size: var(--text-sm); font-weight: 600; display: inline-flex; gap: .5rem; align-items: baseline; }
.funnel-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 13rem; gap: var(--space-xs); margin-bottom: .6rem; font-family: var(--font-sans); }
.funnel { display: flex; align-items: stretch; background: var(--cream); border-radius: var(--radius-xl); padding: var(--space-s); gap: .25rem; }
.fn-stage, .fn-side { display: flex; flex-direction: column; gap: .3rem; flex: 1 1 0; min-width: 0; }
.fn-side { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: var(--space-s); }
.fn-arrow { flex: 0 0 3.5rem; display: grid; place-items: center; position: relative; }
.fn-arrow::before { content: ""; position: absolute; inset: 50% 0 auto; border-top: 1px dashed var(--ink-3); }
.fn-arrow span { position: relative; background: var(--paper); border-radius: var(--radius-pill); padding: .2rem .45rem; font-size: var(--text-xs); font-weight: 700; color: var(--purple-700); }
.fn-note { font-family: var(--font-sans); font-size: var(--text-sm); color: var(--ink-2); margin: 0 0 var(--space-xs) .25rem; }
.lchart { position: relative; }
.lchart svg { width: 100%; height: 11rem; display: block; overflow: visible; }
.lc-cur { fill: none; stroke: var(--purple-600); stroke-width: 2.5; stroke-linejoin: round; }
.lc-prev { fill: none; stroke: var(--ink-3); stroke-width: 1.5; stroke-dasharray: 4 4; opacity: .55; }
.lc-area { fill: var(--purple-500); opacity: .1; }
.lc-peak { position: absolute; transform: translate(-50%, -.4rem); pointer-events: none; }
.lc-peak span { font-size: var(--text-xs); font-weight: 700; color: var(--purple-700); background: var(--paper); padding: 0 .25rem; }
.lc-key { display: inline-flex; align-items: center; gap: .4rem; }
.lc-key i { display: inline-block; width: 1rem; border-top: 2.5px solid var(--purple-600); margin-left: .6rem; }
.lc-key i.k-prev { border-top: 1.5px dashed var(--ink-3); }
.dgrid-2-1 { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.dtable { width: 100%; border-collapse: collapse; font-size: var(--text-sm); font-variant-numeric: tabular-nums; }
.dtable th { text-align: right; font-size: var(--text-xs); font-weight: 600; color: var(--ink-3); padding: 0 0 .5rem; }
.dtable th:first-child, .dtable td:first-child { text-align: left; }
.dtable td { text-align: right; padding: .5rem 0; border-top: 1px solid var(--line); white-space: nowrap; }
.dtable td:first-child { white-space: normal; padding-right: .75rem; }
.dtable td a { color: inherit; }
.dtable tr.is-best td { background: var(--purple-100); }
.dtable tr.is-best td:first-child { box-shadow: inset 3px 0 0 var(--purple-600); padding-left: .5rem; }
.dtable th.sortable { cursor: pointer; user-select: none; }
.dtable th.sortable[aria-sort]::after { content: " ↓"; }
.rate { display: inline-block; width: 3.5rem; height: .4rem; background: var(--cream); border-radius: var(--radius-pill); margin-right: .5rem; vertical-align: middle; overflow: hidden; }
.rate span { display: block; height: 100%; background: var(--purple-500); }
.hbars.ch li { grid-template-columns: minmax(0, 1fr) 28% 5.5rem; }
.hbars.ch .hb-n { display: inline-flex; gap: .35rem; justify-content: flex-end; align-items: baseline; }
.hb-fill.is-ai { background: var(--purple-bright); }
.glance { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: var(--space-m); padding: var(--space-s) .25rem 0; border-top: 1px solid var(--line); margin-top: var(--space-s); font-family: var(--font-sans); }
.glance h3, .pod-more h3 { font-size: var(--text-xs); font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; margin: 0 0 .5rem; }
.glance h3:not(:first-child) { margin-top: var(--space-xs); }
.mini { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; font-size: var(--text-sm); }
.mini li { display: flex; justify-content: space-between; gap: 1rem; }
.mini li span:last-child { color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mini .gap { color: #b42318 !important; font-weight: 600; }
.spark { width: 7.5rem; height: 2rem; display: block; }
.spark path { fill: none; stroke: var(--purple-600); stroke-width: 2; stroke-linejoin: round; }
.kpi-row { display: flex; justify-content: space-between; align-items: end; gap: .75rem; }
.takeaways { list-style: none; counter-reset: t; margin: 0; padding: 0; display: grid; gap: .8rem; }
.takeaways li { counter-increment: t; display: grid; grid-template-columns: 1.9rem minmax(0, 1fr); gap: .6rem; font-size: var(--text-base); line-height: 1.45; }
.takeaways li::before { content: counter(t); width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--purple-700); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: var(--text-sm); }
.takeaways .act { display: block; color: var(--purple-700); font-weight: 600; font-size: var(--text-sm); margin-top: .15rem; }
.tag-small { font-size: var(--text-xs); font-weight: 600; color: var(--ink-3); background: var(--cream); border-radius: var(--radius-pill); padding: .1rem .45rem; margin-left: .35rem; white-space: nowrap; }
.dcard.hero-card { background: var(--purple-100); border-color: transparent; }
.emap { position: relative; }
.emap svg { width: 100%; height: auto; display: block; font-family: var(--font-sans); }
.emap .q-line { stroke: var(--line); stroke-dasharray: 3 4; }
.emap .q-name { font-size: 13px; font-weight: 700; fill: var(--ink-3); }
.emap .q-name.gem { fill: var(--purple-700); }
.emap .axis { font-size: 12px; fill: var(--ink-3); }
.emap .dot { fill: var(--purple-300); stroke: var(--paper); stroke-width: 1.5; transition: r .15s; }
.emap .dot.gem { fill: var(--purple-bright); }
.emap .dot.hit { fill: var(--purple-700); }
.emap a:hover .dot { r: 9; }
.emap .dot-label { font-size: 12px; font-weight: 600; fill: var(--fg); paint-order: stroke; stroke: var(--paper); stroke-width: 4px; }
.map-lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: var(--space-s); margin-top: var(--space-xs); }
.launch-status { font-weight: 700; }
.launch-status.ahead { color: #1a7f4b; } .launch-status.behind { color: #b42318; } .launch-status.on { color: var(--purple-700); }
.launch svg { width: 100%; height: auto; display: block; font-family: var(--font-sans); }
.launch .band { fill: var(--purple-200); opacity: .7; }
.launch .typical { fill: none; stroke: var(--ink-3); stroke-width: 1.5; stroke-dasharray: 4 4; }
.launch .newest { fill: none; stroke: var(--purple-700); stroke-width: 3; stroke-linejoin: round; }
.launch .newest-dot { fill: var(--purple-700); }
.launch .axis { font-size: 12px; fill: var(--ink-3); }
.idx li { grid-template-columns: minmax(0, 1fr) 40% 3.2rem; }
.idx .hb-track { position: relative; overflow: visible; background: none; }
.idx .hb-track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--line); }
.idx .hb-track::after { content: ""; position: absolute; left: 50%; top: -.35rem; bottom: -.35rem; border-left: 1.5px solid var(--ink-3); }
.idx .hb-fill { position: absolute; top: 0; height: 100%; }
.idx .hb-fill.below { background: var(--ink-3); opacity: .45; }
.pod-more { margin-top: var(--space-xs); }
.pod-more details { border: 1px solid var(--line); border-radius: var(--radius-xl); padding: var(--space-xs) var(--space-s); margin-bottom: var(--space-xs); font-family: var(--font-sans); }
.pod-more summary { cursor: pointer; font-weight: 700; font-size: var(--text-base); }
.pod-more details[open] summary { margin-bottom: var(--space-xs); }
@media (max-width: 60rem) {
  .funnel-wrap, .dgrid-2-1 { grid-template-columns: minmax(0, 1fr); }
  .funnel { flex-wrap: wrap; } .fn-stage { flex-basis: 40%; } .fn-arrow { flex-basis: 100%; height: 1.6rem; } .fn-arrow::before { inset: 50% 30% auto; }
}
.sub-h { font-size: var(--text-xs); font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; margin: var(--space-xs) 0 .6rem; }
.dash-lede.after { margin: .9rem 0 0; }
.emap .dot-label { pointer-events: none; }
.launch .fw { fill: var(--purple-300); } .launch .fw-hi { fill: var(--purple-500); } .launch .fw-new { fill: var(--purple-700); }
.launch .fw-name { fill: var(--fg); font-weight: 600; }
.launch a:hover rect { opacity: .8; }
.disc-stats { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-s); margin-bottom: var(--space-xs); }
.disc-stats > div { display: flex; flex-direction: column; gap: .2rem; }
.kpi-n.sm { font-size: clamp(1.8rem, 1.5rem + 1vw, 2.4rem); }
.launch .fw-name { font-size: 11px; }
.launch .past { fill: none; stroke: var(--ink-3); stroke-width: 1.5; opacity: .35; stroke-linejoin: round; }
.launch a:hover .past { opacity: .9; stroke-width: 2.5; }
.launch .grid { stroke: var(--line); stroke-width: 1; }
.launch .nw-label { font-size: 12px; font-weight: 700; fill: var(--purple-700); }
.playbook li { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) 3.2rem; }
.playbook .pb-vals { font-size: var(--text-sm); color: var(--ink-2); }
.playbook .pb-lift { font-weight: 700; text-align: right; } .pb-lift.up { color: #1a7f4b; } .pb-lift.down { color: #b42318; }
.playbook .pb-wait .hb-label, .playbook .pb-wait .pb-vals { color: var(--ink-3); }
.pb-count { font-weight: 400; color: var(--ink-3); font-size: var(--text-sm); margin-left: .4rem; }
.playbook li.pb-wait { grid-template-columns: minmax(0, 1fr) auto; }
.pb-count { margin: -.3rem 0 .5rem; color: var(--ink-3); font-size: var(--text-sm); }
.reshare-sum { margin: 0 0 var(--space-xs); }
.pb-wait-t { color: var(--ink-3); font-size: var(--text-sm); }
.pb-lift.up { color: #1a7f4b; font-weight: 700; } .pb-lift.down { color: #b42318; font-weight: 700; }
.dcard.fold > summary { cursor: pointer; list-style: none; margin-bottom: 0; }
.dcard.fold > summary::-webkit-details-marker { display: none; }
.dcard.fold[open] > summary { margin-bottom: var(--space-xs); }
.dcard.fold > summary:hover h2 { color: var(--purple-700); }
.dcard.fold > summary { justify-content: flex-start; }
.dcard.fold > summary h2::before { content: "▶"; display: inline-block; font-size: .7em; margin-right: .5em; transform: translateY(-.1em); }
.dcard.fold[open] > summary h2::before { content: "▼"; }
.lchart[data-lc] svg { cursor: crosshair; }
.lc-hover { position: absolute; top: 0; width: 0; pointer-events: none; z-index: 2; }
.lc-line { position: absolute; top: 0; bottom: 0; left: 0; border-left: 1px solid var(--ink-3); opacity: .5; }
.lc-dot { position: absolute; left: 0; width: 10px; height: 10px; margin: 0 0 -5px -5px; border-radius: 50%; background: var(--purple-700); border: 2px solid var(--paper); }
.lc-tip { position: absolute; top: 0; left: 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: .4rem .6rem; box-shadow: 0 4px 14px rgb(0 0 0 / .08); white-space: nowrap; font-size: var(--text-sm); display: grid; gap: .1rem; }
.lc-tip.flip { left: auto; right: 10px; }
.lc-tip small { color: var(--ink-3); font-size: var(--text-xs); }
.kpi-unit { font-size: .45em; font-weight: 600; color: var(--ink-3); }
