:root {
  color-scheme: light;
  --ink: #303438;
  --slate: #435d7e;
  --accent: #5684c4;
  --link: #294f7f;
  --muted: #516074;
  --border: #d8e2ef;
  --paper: #fff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: #f4f7fb; line-height: 1.5; }
p, h1, h2, dl, dd { margin: 0; }
a { color: var(--link); text-underline-offset: .2em; }
:focus-visible { outline: 3px solid #396ab0; outline-offset: 4px; }
[hidden] { display: none !important; }
.masthead { background: var(--paper); border-bottom: 1px solid var(--border); }
.masthead-inner {
  max-width: 780px;
  margin-inline: auto;
  padding: 13px clamp(16px, 5vw, 32px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 14px;
}
.wordmark { display: flex; align-items: center; gap: 9px; font-weight: 750; font-size: .95rem; color: inherit; text-decoration: none; }
.wordmark:hover { text-decoration: underline; }
.preview { color: var(--slate); background: #edf3fa; border-radius: 999px; padding: 4px 10px; font-size: .73rem; font-weight: 700; }
.page { max-width: 780px; margin-inline: auto; padding: clamp(14px, 4vw, 32px); display: grid; gap: 18px; }
.host, .episode, .glance, .toolkit, .contact, .episode-archive {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 17px;
  padding: clamp(16px, 4vw, 26px);
}
.host { display: flex; gap: 15px; align-items: center; }
.portrait { border-radius: 14px; object-fit: cover; flex: none; width: clamp(56px, 15vw, 76px); height: auto; aspect-ratio: 1; }
.eyebrow { font-size: .72rem; font-weight: 780; letter-spacing: .075em; text-transform: uppercase; color: var(--slate); }
h2 { font-size: clamp(1.18rem, 4vw, 1.46rem); line-height: 1.22; letter-spacing: -.022em; }
.host h2 { margin: 3px 0; }
.muted, .deck { color: var(--muted); }
.muted { font-size: .87rem; }
.episode { background: linear-gradient(150deg, #f8fbff, #eaf2fc); border-color: #b9cfe9; }
.episode .eyebrow { font-variant-numeric: tabular-nums; }
h1 { margin: 9px 0 5px; color: #182e49; font-size: clamp(1.83rem, 5.5vw, 3rem); line-height: 1.09; letter-spacing: -.045em; }
.player { margin-top: 18px; padding: 12px; background: var(--paper); border: 1px solid #c9daee; border-radius: 12px; }
.player-main { display: flex; gap: 10px; align-items: center; }
.player-toggle { color: white; background: var(--slate); width: 46px; height: 46px; display: grid; place-items: center; border: 0; border-radius: 50%; flex: none; cursor: pointer; }
.player-toggle:disabled { background: #657a94; cursor: default; }
.player-toggle .pause-icon, .player-toggle.is-playing .play-icon { display: none; }
.player-toggle.is-playing .pause-icon { display: block; }
.player-track { flex: 1; min-width: 0; }
.player-track input { display: block; width: 100%; height: 24px; margin: 0; accent-color: var(--slate); }
.player-time { display: flex; justify-content: space-between; gap: 6px; font-variant-numeric: tabular-nums; }
.player-time, #player-status { color: var(--muted); font-size: .76rem; }
#player-status:empty { display: none; }
audio { display: block; width: 100%; }
.transcript { display: inline-flex; align-items: center; min-height: 44px; font-size: .87rem; gap: 5px; }
.episode-actions { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin-top: 6px; }
.episode-actions .share { display: inline-flex; align-items: center; gap: 7px; margin-left: auto; background: var(--paper); font-size: .87rem; }
.episode-actions .share:hover { background: #e1edfc; }
.share-fallback { display: grid; gap: 4px; margin-top: 8px; font-size: .87rem; }
.share-fallback input { min-width: 0; width: 100%; padding: 8px; border: 1px solid var(--slate); border-radius: 6px; font: inherit; }
.section-top { display: flex; align-items: center; gap: 8px; }
.bars { color: var(--accent); flex: none; }
.stats { display: grid; grid-template-columns: max-content max-content .95rem minmax(0, 1fr); margin-top: 10px; }
.stats > div { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; align-items: baseline; padding: 11px 0; }
.stats > div + div { border-top: 1px solid #e6edf6; }
.stats > div:last-child { padding-bottom: 0; }
.stats dt {
  display: grid; grid-column: 1 / 4; grid-template-columns: subgrid; align-items: baseline;
  color: var(--link); font-variant-numeric: tabular-nums; font-weight: 800; font-size: 1.4rem; letter-spacing: -.045em;
}
.stats .stat-number { grid-column: 1; justify-self: end; }
.stats .stat-percent { grid-column: 2; }
.stats dt > .stat-arrow { grid-column: 3; justify-self: center; }
.stats dt > .stat-arrow::before { margin-inline-start: 0; }
.stats dd { grid-column: 4; padding-inline-start: 12px; }
.glance .stat-up { color: #22734f; white-space: nowrap; }
.glance .stat-down { color: #a63d47; white-space: nowrap; }
.stat-arrow::before { margin-inline-start: .2em; font-size: .76em; font-weight: 650; }
.stat-up > .stat-arrow::before { content: "↑"; }
.stat-down > .stat-arrow::before { content: "↓"; }
.stats dd span { display: block; color: var(--muted); font-size: .82rem; }
.stats .stat-short { display: none; }
.market-details { margin-top: 15px; }
.market-table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: .86rem; }
.market-table caption { text-align: left; padding: 10px 0 6px; font-size: .86rem; font-weight: 750; color: var(--slate); }
.market-table th, .market-table td { padding: 8px clamp(4px, 2vw, 10px); text-align: left; vertical-align: top; }
.market-table thead th { background: #eef4fb; color: var(--link); }
.market-table thead th:first-child { width: 42%; }
.market-table tbody tr { border-bottom: 1px solid #e6edf6; }
.market-table tbody th { font-weight: 600; }
.market-table td strong, .market-snapshots strong { font-variant-numeric: tabular-nums; color: var(--link); }
.market-table td > span, .market-snapshots dd > span { display: block; color: var(--muted); font-size: .76rem; }
.market-note { margin: 7px 0 4px; font-size: .8rem; color: var(--muted); }
.market-snapshots { margin: 12px 0; }
.market-snapshots div { display: grid; grid-template-columns: 42% 1fr; border-bottom: 1px solid #e6edf6; font-size: .86rem; }
.market-snapshots dt, .market-snapshots dd { padding: 8px clamp(4px, 2vw, 10px); }
.market-snapshots dt { font-weight: 600; }
.toolkit h2 { margin-bottom: 9px; }
.starter-panels { display: grid; gap: 6px; }
.starter-panels details + details { margin-top: 0; }
details { border: 1px solid var(--border); border-radius: 10px; background: var(--paper); }
details + details { margin-top: 8px; }
summary { cursor: pointer; min-height: 46px; padding: 11px 13px; font-weight: 740; color: var(--link); }
summary:hover { background: #f3f7fc; border-radius: 9px; }
.panel { padding: 0 13px 13px; }
.starters { list-style: none; padding: 0; margin: 0; }
.starters li { padding: 12px 0; border-top: 1px solid #e6edf6; }
.starters p { margin-bottom: 6px; }
.copy { color: var(--link); background: #eef5fd; border: 1px solid var(--border); border-radius: 8px; padding: 8px 11px; font: inherit; font-weight: 700; min-height: 44px; cursor: pointer; }
.copy:hover { background: #e1edfc; }
.support, .local-note p { font-size: .91rem; color: var(--muted); }
.starter-panels:not(:empty) + .local-note { margin-top: 6px; }
.local-note h3 { margin: 0 0 4px; font-size: .95rem; }
.copy-status { font-size: .86rem; color: var(--link); margin-top: 8px; }
.copy-status:empty { margin: 0; }
.contact .muted { margin-top: 6px; }
.question-form { margin-top: 6px; }
.question-dialog {
  width: min(430px, calc(100% - 24px));
  max-height: calc(100% - 24px);
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--ink);
  background: var(--paper);
}
.question-dialog::backdrop { background: rgb(24 46 73 / 50%); }
.question-dialog label { display: block; margin-top: 10px; font-size: .9rem; font-weight: 650; }
.question-dialog input:not([type="checkbox"]), .question-dialog select {
  width: 100%;
  min-height: 44px;
  margin-top: 4px;
  padding: 8px 10px;
  border: 1px solid var(--slate);
  border-radius: 8px;
  color: var(--ink);
  background: var(--paper);
  font: inherit;
}
.question-dialog .reply-consent { display: flex; align-items: flex-start; gap: 8px; font-weight: 500; }
.reply-consent input { flex: none; width: 18px; height: 18px; accent-color: var(--slate); }
.reply-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.question-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
.question-row textarea {
  flex: 1 1 145px;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 9px 11px;
  resize: vertical;
  border: 1px solid var(--slate);
  border-radius: 9px;
  color: var(--ink);
  background: var(--paper);
  font: inherit;
}
.contact-actions {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}
.contact-actions a {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  min-height: 46px;
  padding: 9px 12px;
  border: 1px solid var(--slate);
  border-radius: 9px;
  font-weight: 740;
  text-align: center;
  text-decoration: none;
}
.contact-actions a:hover { background: #edf3fa; }
.contact .contact-primary { color: var(--paper); background: var(--slate); }
.contact .contact-primary:hover { background: var(--link); }
.contact-actions .weekly-link { width: 100%; background: #eaf2fc; border-color: var(--border); }
.contact-actions .weekly-link:hover { background: #e1edfc; }
.archive-entry { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 8px; margin-top: 6px; padding: 2px 5px 2px 9px; border: 1px solid var(--border); border-radius: 9px; }
.archive-link { display: grid; align-content: center; min-height: 44px; text-decoration: none; }
.archive-link:hover .archive-name { text-decoration: underline; }
.archive-meta { color: var(--muted); font-size: .78rem; font-weight: 650; }
.archive-name { font-size: .86rem; font-weight: 740; line-height: 1.25; }
.archive-play { font-size: .82rem; }
.archive-error { grid-column: 1 / -1; color: var(--muted); font-size: .8rem; }
.archive-error:empty { display: none; }
.sources ul { padding: 0 18px 0 32px; font-size: .87rem; }
@media (max-width: 360px) {
  .stats dt { font-size: 1.22rem; }
}

@media (max-width: 600px) {
  .masthead-inner { padding: 7px 12px; }
  .wordmark img { width: 22px; height: 22px; }
  .page { padding: 8px 10px; gap: 7px; }
  .host, .episode, .glance, .toolkit, .contact, .episode-archive { padding: 9px 11px; border-radius: 12px; }
  .host { gap: 9px; }
  .portrait { width: 42px; border-radius: 9px; }
  .host .eyebrow, .episode .deck { display: none; }
  .host h2 { margin: 0; }
  h2 { font-size: 1rem; }
  h1 { font-size: clamp(1.35rem, 6vw, 1.85rem); margin: 4px 0; }
  .player { margin-top: 8px; padding: 6px; }
  .episode-actions { margin-top: 2px; }
  .episode-actions .share { padding-block: 5px; }
  .bars { width: 19px; height: 19px; }
  .stats { margin-top: 5px; }
  .stats > div { padding: 3px 0; }
  .stats > div + div { border-top: 0; }
  .stats dt { font-size: 1.05rem; line-height: 1.2; }
  .stats dd { padding-inline-start: 7px; }
  .stats .stat-short { display: inline; font-size: .83rem; line-height: 1.2; }
  .stats .stat-label, .stats .stat-note { display: none; }
  .market-details { margin-top: 7px; }
  summary { min-height: 44px; padding: 8px 10px; font-size: .85rem; }
  .toolkit h2 { margin-bottom: 5px; }
  .starter-panels { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .starter-panels:has(details[open]) { grid-template-columns: 1fr; }
  .contact-actions a, .contact-actions .weekly-link { min-height: 44px; padding: 4px; font-size: .82rem; }
  .question-form .muted { margin-top: 3px; font-size: .74rem; }
  .question-row textarea { font-size: 1rem; }
  .archive-entry { margin-top: 5px; }
}

.client-waitlist {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #edf4fd;
}
.client-waitlist > div { flex: 1 1 16rem; }
.waitlist-action { min-height: 44px; color: var(--paper); background: var(--link); }
.waitlist-action:hover { background: var(--slate); }
.waitlist-action { display: inline-grid; place-items: center; text-decoration: none; }

.listener-question { margin: 8px 0; }

.listener-waitlist-status:not(:empty) { flex-basis: 100%; }
