/* Brand: navy #0D2B42, key blue #3FA9F5, KEYS green #7AC943 (from the official logo).
   Button/link green is deepened to #2D7A22 so white text and links on white pass contrast. */
:root {
  --bg: #f7f9fb; --surface: #ffffff; --ink: #0d2b42; --muted: #5a6b78; --line: #dde5ec;
  --accent: #2d7a22; --accent-ink: #ffffff; --chip: #e8f1f8; --blue: #1f8ad6;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0b1a27; --surface: #102536; --ink: #eaf1f6; --muted: #9fb2c1; --line: #22394c;
    --accent: #7ac943; --accent-ink: #0b1a27; --chip: #173247; --blue: #5db8f7; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.65 var(--font); }
a { color: var(--accent); text-underline-offset: 2px; }
h1, h2, h3 { line-height: 1.25; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin: .4em 0 .3em; }
h2 { font-size: 1.35rem; margin: 2em 0 .6em; }
h3 { font-size: 1.08rem; margin: .2em 0 .3em; }
img { max-width: 100%; height: auto; }
code { background: var(--chip); padding: 2px 6px; border-radius: 4px; font-size: .9em; word-break: break-all; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: var(--surface); padding: 8px; z-index: 10; }

.site-head { border-bottom: 1px solid var(--line); background: var(--surface); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; flex-wrap: wrap; }
.brand { display: block; line-height: 0; padding: 8px 0; }
.brand img { width: 150px; height: auto; }
nav a { color: var(--ink); text-decoration: none; margin-left: 18px; font-size: .95rem; font-weight: 500; }
nav a:hover { color: var(--accent); }
/* Phones: logo on its own line, menu as one swipeable row -- never wrapped mid-label. */
@media (max-width: 760px) {
  .site-head .wrap { flex-direction: column; align-items: flex-start; gap: 0; padding-bottom: 6px; }
  .brand img { width: 120px; }
  .site-head nav { display: flex; width: 100%; overflow-x: auto; white-space: nowrap; gap: 16px; padding: 4px 0 6px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .site-head nav::-webkit-scrollbar { display: none; }
  nav a { margin: 0; }
}
h1, h2 { color: var(--ink); }
.hero { border-bottom: 4px solid var(--accent); }

.btn, .btn-sm { display: inline-block; background: var(--accent); color: var(--accent-ink) !important; border-radius: 999px;
  text-decoration: none; font-weight: 600; }
.btn { padding: 9px 18px; margin: 4px 8px 4px 0; font-size: .95rem; }
.btn-sm { padding: 5px 14px; }
.listen { margin: 16px 0 8px; }

.hero { background: var(--surface); border-bottom: 1px solid var(--line); padding: 40px 0; }
.hero-grid { display: grid; grid-template-columns: 240px 1fr; gap: 32px; align-items: center; }
.hero img { border-radius: 14px; }
@media (max-width: 700px) { .hero-grid { grid-template-columns: 1fr; } .hero img { width: 160px; } }

.lede { font-size: 1.12rem; color: var(--ink); }
.meta, .fine, .crumbs { color: var(--muted); font-size: .88rem; margin: 0; }
.crumbs { margin-top: 24px; }
.crumbs a { color: var(--muted); }
.people { color: var(--muted); margin: .4em 0 1em; }
.note { background: var(--chip); padding: 10px 14px; border-radius: 8px; }
audio { width: 100%; margin: 12px 0 4px; }

.cards { list-style: none; padding: 0; display: grid; gap: 12px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--accent); }
.card p { margin: .3em 0 0; }
.latest { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.latest h3 a { color: var(--ink); }

.rows { list-style: none; padding: 0; }
.rows li { padding: 7px 0; border-bottom: 1px solid var(--line); }
.rows a { color: var(--ink); text-decoration: none; }
.rows a:hover { color: var(--accent); }
.num { display: inline-block; min-width: 2.6em; color: var(--muted); font-variant-numeric: tabular-nums; font-size: .9em; }

.topic-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.topic-grid a { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
  text-decoration: none; color: var(--ink); height: 100%; }
.topic-grid a:hover { border-color: var(--accent); }
.topic-grid span { display: block; color: var(--muted); font-size: .85rem; }

.chips { margin-top: 2em; }
.chip { display: inline-block; background: var(--chip); color: var(--ink); border-radius: 999px; padding: 4px 12px; margin: 0 6px 6px 0;
  text-decoration: none; font-size: .88rem; }
.chapters { padding-left: 0; list-style: none; }
.chapters li { padding: 3px 0; }
.ts { color: var(--muted); font-variant-numeric: tabular-nums; font-size: .88em; margin-right: 6px; }
details summary { cursor: pointer; color: var(--accent); font-weight: 600; }
.transcript p { margin: .7em 0; }
.faq h3 { margin-top: 1.2em; }
.hosts { list-style: none; padding: 0; }
.hosts li { margin-bottom: 14px; }
.hosts p { margin: .2em 0; color: var(--muted); }
.timeline li { margin-bottom: 10px; }

.flash { text-align: center; padding-top: 32px; }
.flash h1 { font-size: clamp(2rem, 6vw, 3rem); }
.flash-cover { border-radius: 14px; }
.host-photos { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.host-photos figure { margin: 0; }
.host-photos img { border-radius: 50%; object-fit: cover; width: 160px; height: 160px; }
.host-photos figcaption { font-weight: 600; margin-top: 6px; }
.flash-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; text-align: left; margin: 28px 0; }
.flash-cards h2 { margin-top: .2em; }

.site-foot { border-top: 1px solid var(--line); margin-top: 64px; padding: 28px 0 40px; background: var(--surface); font-size: .92rem; }
.site-foot .links a { color: var(--ink); }
.host-photo { border-radius: 50%; object-fit: cover; float: right; margin: 0 0 12px 16px; width: 160px; height: 160px; }
.hosts li { overflow: hidden; }
.host-thumb { float: left; width: 72px; height: 72px; border-radius: 50%; object-fit: cover; margin: 2px 14px 6px 0; }
.yt { display: block; position: relative; margin: 16px 0; border-radius: 12px; overflow: hidden; max-width: 480px; text-decoration: none; }
.yt img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.yt span { position: absolute; left: 12px; bottom: 12px; background: rgba(0,0,0,.78); color: #fff; padding: 6px 12px; border-radius: 999px; font-weight: 600; font-size: .9rem; }
.sources { font-size: .85rem; color: var(--muted); margin-top: -.3em; }
.sources a { color: var(--muted); }
/* Home hero in the cover-art navy. */
.hero { background: #0d2b42; color: #dbe7f0; border-bottom: 4px solid #7ac943; }
.hero h1 { color: #ffffff; }
.hero .lede { color: #7ac943; font-weight: 600; }
.hero .btn { background: #2d7a22; color: #fff !important; }
.hero .btn:hover { background: #3b8f2e; }
.appearance { border-top: 1px solid var(--line); margin-top: 28px; }
.appearance h2 { margin-top: 1em; }
.appearance h2 a { color: var(--ink); text-decoration: none; }
