/* Theme for radiolab, generated from shows/radiolab/show.json - edit it there. */
@font-face { font-family: "Figtree"; font-style: normal; font-display: swap; font-weight: 300 900;
  src: url(/radiolab/fonts/figtree-latin-wght-normal.woff2) format("woff2-variations"), url(/radiolab/fonts/figtree-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Figtree"; font-style: normal; font-display: swap; font-weight: 300 900;
  src: url(/radiolab/fonts/figtree-latin-ext-wght-normal.woff2) format("woff2-variations"), url(/radiolab/fonts/figtree-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-display: swap; font-weight: 400;
  src: url(/radiolab/fonts/ibm-plex-mono-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-display: swap; font-weight: 400;
  src: url(/radiolab/fonts/ibm-plex-mono-latin-ext-400-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
:root { --bg: #ffffff; --surface: #f4f2f0; --surface-2: #ece9e5; --ink: #0a0b0c; --ink-2: #57544f; --line: #ddd9d4; --rule: #0a0b0c; --accent: #0454d6; --accent-ink: #ffffff; --accent-2: #0b6b4d; --focus: #0a0b0c; --saved: #0454d6; --playing: #033e9e; --playing-ink: #ffffff; --footer-bg: #111111; --footer-ink: #f7f6f5; --footer-ink-2: rgba(247,246,245,.82); --footer-ink-3: rgba(247,246,245,.75); --footer-fine: rgba(247,246,245,.85); --footer-rule: rgba(247,246,245,.3); --footer-field-bg: #f7f6f5; --footer-field-ink: #0a0b0c; --danger: #b3261e; --danger-strong: #b3261e; --danger-ink: #ffffff; --error-bg: #fde8e6; --error-ink: #7a1a12; --error-line: #e9a39b; --backdrop: rgba(10,11,12,.45); --c0: #0454d6; --c1: #6b2fa0; --c2: #1b7f46; --c3: #0a7c86; --c4: #b07a00; --c5: #c23b22; --c6: #b0246a; --c7: #4b5563; --c8: #6f7f17; --c9: #8c4a2f; --serif: "Figtree", "Helvetica Neue", Arial, sans-serif; --sans: "Figtree", "Helvetica Neue", Arial, sans-serif; --texture: none; --brush: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10' preserveAspectRatio='none'%3E%3Crect width='10' height='10' fill='%23f5b80c'/%3E%3C/svg%3E"); --map-cluster: #0454d6; --map-place: #c23b22; --map-ring: #0a0b0c; --map-label: #2b2a28; --map-halo: #ffffff; --map-stroke: #ffffff; --r: 16px; }
/* shows/radiolab/theme.css */
/* Radiolab explorer - theme layer 2. A bright science-magazine page: white paper, stone cards, near-black type in a
   medium weight, and two loud flat fields (cobalt and marigold) that run edge to edge. Soft corners, no shadows,
   and the energy comes from arc slices (our own, never the show's art). Restyles only: it never hides or moves the
   engine's markup. Tokens (colors, fonts, radius) come from show.json; the names below are this file's own.
   Rules from the brief: dark type on marigold, light type on cobalt, never the other way around. */

:root {
  --cobalt: #0454d6; --cobalt-deep: #033e9e; --marigold: #f5b80c; --chalk: #f7f6f5; --night: #111111;
  --coral: #f26b4f; --mint: #bfe3d0;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --pill: 32px;
  color-scheme: light;
}

/* ---------------------------------------------------------------- type */
body { font: 400 16px/1.5 var(--serif); letter-spacing: 0; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-weight: 500; letter-spacing: -.02em; line-height: 1.08; }
h3 { font-size: 20px; }
.fan-tag, .pill, .n, .when { font-family: var(--mono); }
.fan-tag { font-size: 12px; font-weight: 400; color: var(--ink-2); border: 1px solid var(--line); border-radius: var(--pill); padding: 1px 10px; top: -4px; }
:focus-visible { outline-width: 3px; outline-offset: 3px; border-radius: 4px; }

/* ---------------------------------------------------------------- header: a night strip, the wordmark, view pills */
header.top { padding: 0 var(--sp4); border-bottom: 1px solid var(--line); }
header.top::before {
  content: "Unofficial fan site - not affiliated with Radiolab or WNYC Studios";
  display: block; margin: 0 calc(-1 * var(--sp4)) var(--sp4); padding: 7px var(--sp4);
  background: var(--night); color: var(--chalk); font: 400 12px/18px var(--mono); text-align: center;
}
.wordmark { font-size: 30px; font-weight: 500; text-transform: none; letter-spacing: -.025em; line-height: 1.1; }
.wordmark::before {
  content: ""; display: inline-block; width: 36px; height: 26px; margin-right: 12px; vertical-align: -3px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 24'%3E%3Cpath d='M1 12a10 10 0 0 1 20 0z' fill='%230454d6'/%3E%3Cpath d='M13 12a10 10 0 0 0 20 0z' fill='%23f5b80c'/%3E%3C/svg%3E") no-repeat center / contain;
}
.brand p { font-family: var(--mono); font-size: 12px; }
nav.tabs { gap: 6px; margin-top: var(--sp3); padding: 4px 4px var(--sp3); margin-inline: -4px; }
nav.tabs a { min-height: 44px; padding: 0 18px; border-radius: var(--pill); background: var(--surface); color: var(--ink); font-weight: 500; font-size: 15px; transition: background var(--t), color var(--t); }
nav.tabs a:hover { background: var(--ink); color: var(--bg); }
nav.tabs a[aria-current="page"] { background: var(--accent); color: var(--accent-ink); }
nav.tabs a[aria-current="page"] .pill { background: var(--accent-ink); color: var(--accent); }
.pill { border-radius: var(--pill); background: var(--bg); color: var(--ink); font-size: 12px; }
.filterbar { background: var(--surface); border: 0; padding: 12px var(--sp4); }
.filterbar.active { background: color-mix(in srgb, var(--cobalt) 9%, var(--bg)); }

/* ---------------------------------------------------------------- buttons, chips, round buttons */
.btn { border-radius: var(--pill); border: 1px solid transparent; background: var(--surface); color: var(--ink); font-weight: 500; font-stretch: normal; letter-spacing: 0; }
.btn:hover { background: var(--ink); color: var(--bg); }
.btn:disabled { background: var(--surface); color: var(--ink); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.primary:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn.danger { background: transparent; border-color: var(--danger); color: var(--danger); }
.btn.danger:hover { background: var(--danger-strong); color: var(--danger-ink); }
.card .btn:not(.primary):not([aria-pressed="true"]), .panel .btn:not(.primary):not([aria-pressed="true"]), .sc .btn:not(.primary):not([aria-pressed="true"]), .rl-panel .btn:not(.primary):not([aria-pressed="true"]), .mappanel .btn:not(.primary):not([aria-pressed="true"]) { background: var(--bg); }
.card .btn:not(.primary):not([aria-pressed="true"]):hover, .panel .btn:not(.primary):not([aria-pressed="true"]):hover, .sc .btn:not(.primary):not([aria-pressed="true"]):hover, .rl-panel .btn:not(.primary):not([aria-pressed="true"]):hover, .mappanel .btn:not(.primary):not([aria-pressed="true"]):hover { background: var(--ink); color: var(--bg); }
.foot .btn, .foot .btn:disabled { background: transparent; color: var(--footer-ink); border-color: var(--footer-ink); }
.foot .btn:hover { background: var(--footer-ink); color: var(--footer-bg); }
.map-reset { background: var(--bg); }
.linkbtn { color: var(--accent); }
.chip { border-radius: var(--pill); border: 1px solid transparent; background: var(--surface); padding: 5px 12px; font-size: 13px; }
button.chip:hover { background: var(--line); border-color: transparent; }
button.chip[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
button.chip[aria-pressed="true"]:hover { background: var(--ink); }
.card .chip, .sc .chip, .panel .chip, .rl-panel .chip { background: var(--bg); }
.card .chip.guest, .chip.guest { background: var(--bg); border: 1px solid var(--accent); }
.dot { border-radius: 50%; }
.star { background: var(--bg); border-color: var(--line); }
.star:hover { background: var(--line); }
.star.play-btn[aria-pressed="false"] { background: var(--ink); border-color: var(--ink); }
.star.play-btn[aria-pressed="false"] svg { fill: var(--bg); }
.star.play-btn[aria-pressed="false"]:hover { background: var(--cobalt-deep); border-color: var(--cobalt-deep); }
.heard-tag { font-family: var(--mono); }

/* ---------------------------------------------------------------- the filter rail, search, selects */
.rail h2 { font-size: 13px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.field label { font-size: 13px; font-weight: 500; }
.field input[type="search"], .field select, select.inline { border: 1px solid transparent; border-radius: var(--pill); background-color: var(--surface); }
.field input[type="search"] { padding-left: var(--sp4); }
.field select { padding-left: var(--sp4); }
#plRate { border-radius: var(--pill); border-color: transparent; background-color: var(--surface); }
details.more summary { font-weight: 500; }
.toolbar .count, .chrono-head .count, .ltabs .count { font-family: var(--mono); font-size: 12px; }

/* ---------------------------------------------------------------- the list: stone cards, each with a generated tile */
.group-head { border-bottom: 0; padding: var(--sp3) 0 var(--sp2); }
.group-head h2 { font-size: 30px; letter-spacing: -.025em; }
.group-head .meta { font-family: var(--mono); font-size: 12px; }
.group-head .mix { border-radius: var(--pill); height: 10px; }
.cards { gap: 12px; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.card { background: var(--surface); border: 0; border-radius: var(--r); padding: 20px; gap: var(--sp3); transition: background var(--t); }
.card:hover { background: var(--line); }
.card.saved { box-shadow: inset 4px 0 0 var(--accent); }
.card .ttl { font-size: 18px; font-weight: 500; letter-spacing: -.01em; line-height: 1.22; }
.card .sub { font: 400 12px/1.5 var(--mono); margin: 4px 0 var(--sp2); }
.card .tags .chip { font-size: 12px; padding: 2px 10px; }
/* A tile at the head of every card: a flat field with one half-moon slice cut in from an edge - the show's art-wall
   feel without any of its art. The engine's card markup carries no episode number to seed it from, so these cycle
   with their place in the list (our own components seed theirs from the episode). */
.card::before {
  content: ""; flex: none; width: 56px; height: 56px; border-radius: 12px;
  background: radial-gradient(circle at var(--ax, 50%) var(--ay, 100%), var(--tf, var(--marigold)) 0 22px, transparent 22.5px), var(--tb, var(--cobalt));
}
.cards > .card:nth-child(5n+1) { --tb: var(--cobalt); --tf: var(--marigold); }
.cards > .card:nth-child(5n+2) { --tb: var(--marigold); --tf: var(--cobalt); }
.cards > .card:nth-child(5n+3) { --tb: var(--bg); --tf: var(--cobalt); }
.cards > .card:nth-child(5n+4) { --tb: var(--coral); --tf: var(--ink); }
.cards > .card:nth-child(5n+5) { --tb: var(--mint); --tf: var(--cobalt); }
.cards > .card:nth-child(4n+1) { --ax: 34%; --ay: 100%; }
.cards > .card:nth-child(4n+2) { --ax: 100%; --ay: 36%; }
.cards > .card:nth-child(4n+3) { --ax: 64%; --ay: 0%; }
.cards > .card:nth-child(4n+4) { --ax: 0%; --ay: 64%; }
.empty { border: 0; border-radius: var(--r); background: var(--surface); }

/* ---------------------------------------------------------------- panels, strip, patterns */
.panel, .strip, .mappanel { border: 0; border-radius: var(--r); background: var(--surface); }
.strip { padding: var(--sp4); }
.strip-head h2 { font-size: 26px; }
.strip-head p { font-size: 13px; }
.bar .stack { border-radius: 4px 4px 0 0; background: var(--bg); }
.bar .cnt, .bar .lbl { font-family: var(--mono); }
.bar[aria-pressed="true"] .stack { outline-color: var(--cobalt); }
table.heat tbody th { background: var(--surface); }
table.heat td button { border-radius: 4px; }
table.heat td button.zero { background: var(--bg); }
.rank .track { border-radius: var(--pill); background: var(--bg); }
.panel > h2 { font-size: 30px; letter-spacing: -.025em; }
.mapbox { border: 0; border-radius: var(--r); }
.tip { border-radius: 12px; padding: 8px 12px; font-size: 14px; }
table.list { border: 0; border-radius: var(--r); overflow: hidden; background: var(--surface); }
table.list th { background: var(--bg); border-bottom: 1px solid var(--line); }
table.list th, table.list td { border-color: var(--line); }
.saved-head .big { font-weight: 500; letter-spacing: -.03em; font-size: 40px; }
h3.era-h { font-size: 22px; border-bottom: 1px solid var(--line); }
.erow .yr { font-family: var(--mono); font-weight: 400; font-size: 13px; }
.erow .ttl, .minilist button.go { font-weight: 500; }
.ltabs { border-bottom: 1px solid var(--line); gap: 6px; padding-bottom: var(--sp3); }
.ltabs button { border-radius: var(--pill); font-size: 16px; font-weight: 500; padding: 10px 20px; background: var(--surface); color: var(--ink); }
.ltabs button:hover { background: var(--line); color: var(--ink); }
.ltabs button[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); }

/* ---------------------------------------------------------------- Where to start: the marigold band */
details.start { background: var(--marigold); color: var(--ink); border: 0; margin: 0 0 var(--sp5); box-shadow: 0 0 0 100vmax var(--marigold); clip-path: inset(0 -100vmax); }
details.start > summary { padding: 40px 0 var(--sp3); }
details.start > summary h2 { font-size: clamp(30px, 4vw, 52px); letter-spacing: -.03em; }
details.start .brush { background: linear-gradient(var(--ink), var(--ink)) no-repeat left 100% / 100% 4px; padding-bottom: 2px; }
details.start > summary .hint { color: var(--ink); font-weight: 500; }
.start-grid { padding: 0 0 40px; gap: var(--sp3); }
.sc { background: var(--surface); border: 0; border-radius: var(--r); padding: 20px; }
.sc h3 { font: 400 13px var(--mono); letter-spacing: .08em; color: var(--accent); }
.sc h3 span { font-family: var(--mono); }
.sc li { border-top-color: var(--line); }
.sc .when, .sc .sub { font-family: var(--mono); }
.sc .what { font-weight: 500; }
@media (max-width: 600px) { details.start > summary { padding-top: 28px; } .start-grid { padding-bottom: 28px; } }

/* ---------------------------------------------------------------- drawer, dialogs, player, toast, footer */
dialog.drawer { border-left: 0; border-radius: 24px 0 0 24px; }
.drawer-top h2 { font-size: 34px; letter-spacing: -.03em; }
.drawer .facts dt { font-family: var(--mono); font-size: 12px; padding-top: 2px; }
.drawer .desc { font-weight: 400; }
.drawer .desc.own .hook { font-size: 18px; }
.drawer-inner .chip { background: var(--surface); }
dialog.ask { border: 0; border-radius: 24px; }
.ask input, .ask textarea { border-radius: 16px; border-color: transparent; background: var(--surface); }
.rel-item .new, .rel .req { border-radius: var(--pill); }
.player { border-top: 1px solid var(--line); }
.pl-skip, .pl-close { border-radius: var(--pill); border-color: transparent; background: var(--surface); color: var(--ink); }
.pl-skip:hover, .pl-close:hover { background: var(--ink); color: var(--bg); }
.pl-play { background: var(--ink); }
.pl-play svg { fill: var(--bg); }
.toast { border-radius: 16px; }
.toast button { border-radius: var(--pill); }
.foot { margin-top: var(--sp6); }
.foot h2 { font-size: 32px; letter-spacing: -.03em; }
.foot p { font-weight: 400; letter-spacing: 0; }
.foot .contact span, .foot .fine { font-family: var(--mono); font-size: 12px; }
.foot .fine p { font-family: var(--serif); }
.note-box input, .note-box textarea { border-radius: 16px; }
.err { border-radius: 16px; }
.content-box { border-top-color: var(--line); }

/* ---------------------------------------------------------------- The Arc of Everything (signature.js) */
.signature { margin: 0 0 var(--sp5); }
.rl-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--sp2) var(--sp5); margin: var(--sp5) 0 var(--sp3); }
.rl-title { font-size: clamp(34px, 5.4vw, 72px); letter-spacing: -.035em; line-height: 1; }
.rl-copy { margin: 0; font-size: clamp(17px, 1.6vw, 22px); letter-spacing: -.01em; color: var(--ink); }
.rl-stage { overflow-x: auto; overflow-y: hidden; cursor: crosshair; border-radius: var(--r); scrollbar-width: thin; touch-action: pan-x pan-y; -webkit-tap-highlight-color: transparent; }
.rl-stage:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: var(--r); }
.rl-svg { display: block; }
.rl-base { stroke: var(--ink); stroke-width: 1; }
.rl-tick { stroke: var(--ink-2); stroke-width: 1; }
.rl-yr, .rl-flab text { font: 400 11px var(--mono); fill: var(--ink-2); }
.rl-flab text { fill: var(--ink); font-size: 12px; }
.rl-a { fill: none; stroke: var(--cobalt); stroke-opacity: .34; stroke-width: 1.5; transition: stroke-opacity .2s, stroke-width .2s; }
.rl-a.far { stroke-opacity: .24; }
.rl-f { fill: none; stroke: var(--marigold); stroke-opacity: .62; stroke-width: 1.5; stroke-linecap: round; transition: stroke-width .2s; }
.rl-f.on { stroke-width: 4.5; stroke-opacity: 1; }
.rl-d { fill: var(--ink); transition: opacity .2s; }
.rl-d.on { fill: var(--ink); r: 3.6px; }
.rl-svg[data-q] .rl-a { stroke-opacity: .06; }
.rl-svg[data-q] .rl-d { opacity: .22; }
.rl-svg[data-q] .rl-d.on { opacity: 1; }
.rl-svg[data-q="0"] .rl-a.q0, .rl-svg[data-q="1"] .rl-a.q1, .rl-svg[data-q="2"] .rl-a.q2, .rl-svg[data-q="3"] .rl-a.q3, .rl-svg[data-q="4"] .rl-a.q4,
.rl-svg[data-q="5"] .rl-a.q5, .rl-svg[data-q="6"] .rl-a.q6, .rl-svg[data-q="7"] .rl-a.q7, .rl-svg[data-q="8"] .rl-a.q8, .rl-svg[data-q="9"] .rl-a.q9 { stroke-opacity: .92; stroke-width: 2.25; }
.rl-svg[data-q="0"] .rl-d.q0, .rl-svg[data-q="1"] .rl-d.q1, .rl-svg[data-q="2"] .rl-d.q2, .rl-svg[data-q="3"] .rl-d.q3, .rl-svg[data-q="4"] .rl-d.q4,
.rl-svg[data-q="5"] .rl-d.q5, .rl-svg[data-q="6"] .rl-d.q6, .rl-svg[data-q="7"] .rl-d.q7, .rl-svg[data-q="8"] .rl-d.q8, .rl-svg[data-q="9"] .rl-d.q9 { opacity: 1; fill: var(--cobalt-deep); }
.rl-a.off, .rl-f.off { stroke-opacity: 0 !important; }
.rl-d.off { opacity: .1 !important; }
.rl-cur line { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 2 4; }
.rl-cur circle { fill: none; stroke: var(--ink); stroke-width: 2; }
.rl-sweep .rl-a, .rl-sweep .rl-f { animation: rl-draw .9s cubic-bezier(.3, .6, .3, 1) var(--d, 0ms) backwards; }
@keyframes rl-draw { from { stroke-dasharray: 1; stroke-dashoffset: 1; } to { stroke-dasharray: 1; stroke-dashoffset: 0; } }
.rl-read { margin: var(--sp2) 0 0; min-height: 1.6em; font: 400 13px/1.6 var(--mono); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rl-key { margin: var(--sp1) 0 0; max-width: 95ch; font-size: 13px; color: var(--ink-2); }
.rl-sw { display: inline-block; width: 20px; height: 10px; margin: 0 6px -1px 0; border: 2.5px solid; }
.rl-sw-a { border-color: var(--cobalt); border-bottom: 0; border-radius: 12px 12px 0 0; }
.rl-sw-f { margin-left: 8px; border-color: var(--marigold); border-top: 0; border-radius: 0 0 12px 12px; }
.rl-alt { margin: var(--sp2) 0 0; font-size: 13px; color: var(--ink-2); }
.rl-panel { margin-top: var(--sp3); background: var(--surface); border-radius: var(--r); padding: var(--sp4); }
.rl-idle { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp3) var(--sp5); }
.rl-idle p { margin: 0; }
.rl-stat { font-size: 18px; }
.rl-stat strong { font: 500 28px var(--serif); letter-spacing: -.03em; }
.rl-hint { color: var(--ink-2); flex: 1 1 16em; }
.rl-pcard { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--sp4) var(--sp5); }
.rl-pmain { display: flex; gap: var(--sp3); align-items: flex-start; min-width: 0; }
.rl-pthumb { flex: none; width: 132px; }
.rl-tile { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; }
.rl-pthumb .rl-tile { aspect-ratio: 1; }
.rl-pbody { min-width: 0; display: grid; gap: var(--sp2); }
.rl-pbody h3 { font-size: 28px; letter-spacing: -.03em; overflow-wrap: break-word; }
.rl-pbody > * { margin: 0; }
.rl-meta { font: 400 12px var(--mono); color: var(--ink-2); }
.rl-hook { font-size: 16px; }
.rl-vchips { display: flex; flex-wrap: wrap; gap: 6px; }
.rl-vchip { font: 400 12px/1.5 var(--mono); border: 1px solid var(--ink); border-radius: var(--pill); padding: 1px 10px; background: var(--bg); }
.rl-vchip.here { background: var(--ink); color: var(--bg); }
.rl-vchip.ghost { border-style: dashed; border-color: var(--ink-2); color: var(--ink-2); }
.rl-acts, .rl-step { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp2); }
.rl-round { display: inline-flex; gap: var(--sp2); }
.rl-conn { display: grid; gap: var(--sp3); align-content: start; min-width: 0; }
.rl-grp h4 { margin: 0 0 var(--sp2); font: 400 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.rl-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rl-chips .chip { text-align: left; }
.rl-chips .rl-more { background: transparent; border-color: var(--ink); }
.rl-chips .rl-more:hover { background: var(--ink); color: var(--bg); }
.rl-band { margin: var(--sp5) 0 0; padding: 56px 0; background: var(--cobalt); color: var(--chalk); box-shadow: 0 0 0 100vmax var(--cobalt); clip-path: inset(0 -100vmax); }
.rl-band h3 { margin: 0 0 var(--sp4); font-size: clamp(24px, 3vw, 41px); font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: #fff; line-height: 1.1; }
.rl-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.rl-band .chip { min-height: 44px; padding: 8px 18px; font-size: 16px; background: transparent; color: var(--chalk); border: 1px solid var(--chalk); }
.rl-band .chip .n { color: inherit; opacity: .9; }
.rl-band .chip .dot { box-shadow: 0 0 0 1.5px var(--chalk); }
.rl-band .chip:hover, .rl-band .chip[aria-pressed="true"] { background: var(--chalk); color: var(--cobalt); border-color: var(--chalk); }
.rl-band .chip[aria-pressed="true"]:hover { background: #fff; }
.rl-band :focus-visible { outline-color: #fff; }
@media (max-width: 900px) { .rl-pcard { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) {
  header.top { padding: 0 var(--sp3); }
  header.top::before { margin: 0 calc(-1 * var(--sp3)) var(--sp3); padding: 6px var(--sp3); font-size: 11px; line-height: 16px; }
  .wordmark { font-size: 22px; }
  .wordmark::before { width: 28px; height: 20px; margin-right: 8px; vertical-align: -2px; }
  .filterbar { padding: 12px var(--sp3); }
  .card::before { width: 44px; height: 44px; border-radius: 10px; }
  .card { padding: var(--sp3); }
  .rl-pmain { flex-direction: column; }
  .rl-pthumb { width: 88px; }
  .rl-pbody h3 { font-size: 24px; }
  .rl-panel { padding: var(--sp3); }
  .rl-band { padding: 40px 0; }
}

/* ---------------------------------------------------------------- the views: shared pieces (rv-), then one block each */
.rv { max-width: 1280px; margin: 0 auto; padding-bottom: var(--sp5); }
.rv-head { margin: var(--sp5) 0 var(--sp4); }
.rv-head h2 { font-size: clamp(34px, 5vw, 64px); letter-spacing: -.035em; line-height: 1; }
.rv-head p { max-width: 64ch; margin: var(--sp3) 0 0; font-size: 18px; }
.rv-block { margin: var(--sp5) 0; }
.rv-block > h3 { font-size: clamp(24px, 3vw, 34px); letter-spacing: -.03em; }
.rv-note { margin: 6px 0 var(--sp3); font-size: 14px; color: var(--ink-2); }
.rv-tools { display: flex; flex-wrap: wrap; align-items: end; gap: var(--sp3); margin: var(--sp3) 0; }
.rv-tools .field { flex: 0 1 300px; min-width: 200px; }
.rv-tools .count { margin-left: auto; align-self: center; }
.rv-sub { font: 400 12px/1.5 var(--mono); color: var(--ink-2); }
.rv-main { min-width: 0; display: grid; gap: 2px; justify-items: start; }
.rv-acts { display: inline-flex; flex-wrap: wrap; gap: var(--sp2); align-items: center; }
.rv-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--sp3); align-items: center; padding: 12px 16px; margin-bottom: var(--sp2); background: var(--surface); border-radius: var(--r); list-style: none; }
.rv .ttl, .rl-panel .ttl { background: none; border: 0; padding: 0; text-align: left; cursor: pointer; font: 500 18px/1.22 var(--serif); letter-spacing: -.01em; color: var(--ink); }
.rv .ttl:hover { text-decoration: underline; text-underline-offset: 3px; }
.rv ol, .rv ul { margin: 0; }
.rv > .rv-tools .btn, .rv .chip { min-height: 44px; }
.rv .rv-tools .chip { padding: 0 18px; font-size: 15px; font-weight: 500; }

/* Rerun Detector */
.rd-latest, .rd-fams { list-style: none; padding: 0; margin: 0; }
.rd-badge { min-width: 88px; padding: 4px 12px; border-radius: var(--pill); font: 400 12px var(--mono); text-align: center; white-space: nowrap; }
.rd-badge.new { background: var(--accent); color: var(--accent-ink); }
.rd-badge.back { background: var(--marigold); color: var(--ink); }
.rd-badge.up { background: var(--bg); color: var(--ink); border: 1px solid var(--ink); }
.rd-fams { display: grid; gap: var(--sp3); }
.rd-fam { padding: var(--sp4); background: var(--surface); border-radius: var(--r); }
.rd-fhead { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp2) var(--sp3); }
.rd-fhead h4 { margin-right: auto; font-size: 26px; letter-spacing: -.025em; }
.rd-heard { font: 400 12px var(--mono); color: var(--accent-2); }
.rd-tree { position: relative; margin: var(--sp3) 0 0; padding: 0 0 0 36px; list-style: none; }
.rd-tree::before { content: ""; position: absolute; left: 11px; top: 28px; bottom: 28px; width: 2px; background: var(--ink); }
.rd-leaf { position: relative; padding: 6px 0; }
.rd-node { position: absolute; left: -36px; top: 50%; width: 24px; height: 24px; margin-top: -12px; border-radius: 50%; border: 3px solid var(--ink); background: var(--bg); }
.rd-leaf.orig .rd-node { background: var(--cobalt); }
.rd-leaf.rr .rd-node { background: var(--marigold); }
.rd-leaf.ghost .rd-node { border-style: dashed; background: var(--surface); }
.rd-body { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: var(--sp3); align-items: center; padding: 12px; background: var(--bg); border-radius: 12px; }
.rd-leaf.ghost .rd-body { grid-template-columns: minmax(0, 1fr); gap: 2px; background: transparent; border: 1px dashed var(--ink-2); }
.rd-tile .rl-tile { width: 72px; aspect-ratio: 1; border-radius: 10px; }
.rd-kind { font: 400 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.rd-verdict { margin: var(--sp3) 0 0; padding-top: var(--sp3); border-top: 1px solid var(--line); font-size: 15px; max-width: 80ch; }

/* Rabbit Hole Trails */
.tr-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: var(--sp5); align-items: start; }
.tr-nav ul { list-style: none; padding: 0; display: grid; gap: var(--sp2); position: sticky; top: var(--sp3); }
.tr-pick { display: grid; gap: 2px; width: 100%; padding: 14px 18px; border: 0; border-radius: var(--r); background: var(--surface); text-align: left; cursor: pointer; color: var(--ink); transition: background var(--t); }
.tr-pick:hover { background: var(--line); }
.tr-pick[aria-current="true"] { background: var(--cobalt); color: #fff; }
.tr-pn { font-weight: 500; font-size: 16px; line-height: 1.2; }
.tr-pc { font: 400 12px var(--mono); color: var(--ink-2); }
.tr-pick[aria-current="true"] .tr-pc { color: #fff; }
.tr-trail > h3 { font-size: clamp(28px, 3.6vw, 46px); letter-spacing: -.03em; }
.tr-prog { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp3); margin: 0; font: 400 13px var(--mono); }
.tr-bar { flex: 0 0 180px; height: 10px; border-radius: var(--pill); background: var(--surface-2); overflow: hidden; }
.tr-bar > span { display: block; height: 100%; background: var(--cobalt); border-radius: var(--pill); }
.tr-stops { list-style: none; padding: 0; margin: var(--sp4) 0 0; }
.tr-stop { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 0 var(--sp3); padding-bottom: 32px; }
.tr-stop:last-child { padding-bottom: 0; }
.tr-node { position: relative; z-index: 1; grid-column: 1; justify-self: center; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--bg); font: 500 18px var(--serif); }
.tr-stop.heard .tr-node { background: var(--cobalt); }
/* the trail itself: a half-ring from each stop to the next, bulging right then left, cobalt then marigold */
.tr-stop:not(:last-child)::before { content: ""; position: absolute; left: 32px; top: 44px; width: 26px; height: calc(100% - 44px); border: 4px solid var(--cobalt); border-left: 0; border-radius: 0 999px 999px 0; }
.tr-stop:nth-child(even):not(:last-child)::before { left: 6px; border: 4px solid var(--marigold); border-right: 0; border-radius: 999px 0 0 999px; }
.tr-card { grid-column: 2; display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: var(--sp3); padding: var(--sp3); background: var(--surface); border-radius: var(--r); }
.tr-tile .rl-tile { width: 112px; aspect-ratio: 1; border-radius: 12px; }
.tr-info { display: grid; gap: 6px; justify-items: start; min-width: 0; }
.tr-why { margin: 0; font-size: 16px; max-width: 60ch; }
.tr-info .rv-sub { margin: 0; }
.tr-book { padding: var(--sp4); background: var(--surface); border-radius: var(--r); }
.tr-stamps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: var(--sp3); }
.tr-stamp { display: flex; align-items: center; gap: var(--sp3); }
.tr-stamp > span:last-child { display: grid; }
.tr-seal { flex: none; display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; border: 3px dashed var(--ink-2); font: 400 13px var(--mono); color: var(--ink-2); background: var(--bg); }
.tr-stamp.on .tr-seal { border: 3px solid var(--ink); background: var(--marigold); color: var(--ink); font-size: 22px; }

/* Lab Bench */
.lb-wrap { position: relative; overflow-x: auto; border-radius: var(--r); background: var(--surface); }   /* relative: the table's visually-hidden labels are absolutely placed and would otherwise escape the scroller */
.lb-wrap:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.lb-table { width: 100%; min-width: 1180px; border-collapse: collapse; font-size: 13px; }
.lb-table th, .lb-table td { padding: 6px 10px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line); }
.lb-table thead th { background: var(--bg); border-bottom: 1px solid var(--ink); white-space: nowrap; }
.lb-table td.num, .lb-table td.date { font-family: var(--mono); white-space: nowrap; }
.lb-table td.num { text-align: right; }
.lb-table th.num { text-align: right; }
.lb-table td.ttl-c { min-width: 220px; }
.lb-table .ttl { font: 500 14px/1.3 var(--serif); }
.lb-sort { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 0 4px; border: 0; background: none; color: var(--ink); font: 500 13px var(--serif); cursor: pointer; }
.lb-sort:hover { text-decoration: underline; text-underline-offset: 3px; }
.lb-arrow::after { content: ""; display: inline-block; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; }
th[aria-sort="ascending"] .lb-arrow::after { border-bottom: 6px solid var(--ink); }
th[aria-sort="descending"] .lb-arrow::after { border-top: 6px solid var(--ink); }
.lb-table tbody tr:hover { background: var(--line); }
.lb-acts { display: inline-flex; gap: 4px; }
.lb-acts .star { width: 32px; height: 32px; }
.lb-acts .star svg { width: 16px; height: 16px; }
.lb-empty { padding: var(--sp5) var(--sp3) !important; text-align: center !important; color: var(--ink-2); }
.lb-shared { margin: 0 0 var(--sp3); padding: 10px 16px; border-radius: 12px; background: color-mix(in srgb, var(--cobalt) 9%, var(--bg)); }
.lb-linkout { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp2); }
.lb-url { flex: 1 1 320px; max-width: 640px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); font: 400 12px var(--mono); color: var(--ink); }
@media (max-width: 1000px) { .lb-table .hide-md { display: none; } .lb-table { min-width: 960px; } }

/* Then and Now */
.tn-head, .tn-topic { display: grid; grid-template-columns: minmax(180px, 1.1fr) repeat(3, minmax(0, 1fr)); gap: var(--sp3); align-items: center; }
.tn-head { padding: 0 20px var(--sp2); font-size: 14px; }
.tn-head i { display: block; font: normal 400 12px var(--mono); color: var(--ink-2); }
.tn-mode { display: flex; flex-wrap: wrap; gap: var(--sp2); }
.tn-rows { list-style: none; padding: 0; display: grid; gap: var(--sp2); }
.tn-row { overflow: hidden; border-radius: var(--r); background: var(--surface); }
.tn-topic { width: 100%; padding: 16px 20px; border: 0; background: none; color: var(--ink); text-align: left; cursor: pointer; transition: background var(--t); }
.tn-topic:hover { background: var(--line); }
.tn-row.open .tn-topic { background: var(--ink); color: var(--bg); }
.tn-name { font-weight: 500; font-size: 18px; letter-spacing: -.01em; }
.tn-cell { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.tn-bar { height: 10px; border-radius: var(--pill); background: var(--bg); overflow: hidden; }
.tn-bar > span { display: block; height: 100%; border-radius: var(--pill); background: var(--cobalt); }
.tn-row.open .tn-bar { background: rgba(255, 255, 255, .25); }
.tn-row.open .tn-bar > span { background: var(--marigold); }
.tn-n { min-width: 2ch; font: 400 13px var(--mono); text-align: right; }
.tn-panel { padding: 20px; }
.tn-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp4); }
.tn-col { min-width: 0; }
.tn-col h4 { font-size: 20px; letter-spacing: -.02em; }
.tn-col h4 i { display: block; font: normal 400 12px var(--mono); color: var(--ink-2); }
.tn-col > .rv-sub { margin: 4px 0 0; }
.tn-pick { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: var(--sp3); margin: var(--sp3) 0; padding: var(--sp3); border-radius: 12px; background: var(--bg); }
.tn-tile .rl-tile { width: 72px; aspect-ratio: 1; border-radius: 10px; }
.tn-pbody { display: grid; gap: 4px; justify-items: start; min-width: 0; }
.tn-eyebrow { text-transform: uppercase; letter-spacing: .06em; }
.tn-hook { margin: 0; font-size: 14px; }
.tn-list { list-style: none; padding: 0; margin: var(--sp2) 0; }
.tn-list li { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp2); padding: 2px 0; border-top: 1px solid var(--line); }
.tn-list .ttl { min-height: 36px; font: 400 14px/1.3 var(--serif); }
@media (max-width: 900px) { .tn-cols { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 700px) {
  .tn-head { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp2); padding: 0 16px var(--sp2); font-size: 12px; }
  .tn-head span:first-child { display: none; }
  .tn-topic { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp2); padding: 14px 16px; }
  .tn-name { grid-column: 1 / -1; }
  .tn-cell { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .tn-n { text-align: left; }
  .tn-panel { padding: 16px; }
}

/* Box Sets */
.bs-shelf { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--sp2); margin: var(--sp5) 0 0; padding: var(--sp3) var(--sp3) 0; list-style: none; border-bottom: 8px solid var(--ink); }
.bs-spine { display: flex; flex-direction: column; align-items: center; justify-content: space-between; width: 72px; height: var(--h); padding: 0 0 14px; border: 0; border-radius: 12px 12px 0 0; background: var(--sb); color: var(--sf); cursor: pointer; overflow: hidden; transition: transform var(--t); }
.bs-spine:hover { transform: translateY(-6px); }
.bs-spine.on { transform: translateY(-16px); box-shadow: inset 0 -6px 0 var(--sf); }
.bs-cap { flex: none; width: 100%; height: 40px; }
.bs-name { flex: 1; display: flex; align-items: center; padding: var(--sp2) 0; writing-mode: vertical-rl; transform: rotate(180deg); font: 500 20px/1.1 var(--serif); letter-spacing: -.01em; }
.bs-meta { font: 400 13px var(--mono); }
.bs-open { margin-top: var(--sp5); }
.bs-card { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: var(--sp4); padding: var(--sp4); border-radius: var(--r); background: var(--surface); box-shadow: inset 0 10px 0 var(--sb); padding-top: 34px; }
.bs-tile .rl-tile { width: 160px; aspect-ratio: 1; border-radius: 12px; }
.bs-head { display: grid; gap: var(--sp2); align-content: start; justify-items: start; }
.bs-head h3 { font-size: clamp(28px, 3.6vw, 44px); letter-spacing: -.03em; }
.bs-head > p { margin: 0; }
.bs-parts { list-style: none; padding: 0; margin: var(--sp4) 0 0; }
.bs-no { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--bg); font: 400 13px var(--mono); }
.bs-parts .linkbtn { padding: 0 2px; min-height: 24px; font: 400 12px var(--mono); }
@media (max-width: 700px) {
  .bs-shelf { flex-direction: column; align-items: stretch; padding: var(--sp3) 0 0; border-bottom-width: 6px; }
  .bs-shelf li { display: block; }
  .bs-spine { flex-direction: row; justify-content: space-between; width: 100%; height: auto; min-height: 56px; padding: 0 var(--sp3); border-radius: 12px; }
  .bs-cap { display: none; }
  .bs-name { writing-mode: horizontal-tb; transform: none; font-size: 18px; }
  .bs-spine:hover, .bs-spine.on { transform: none; }
  .bs-card { grid-template-columns: minmax(0, 1fr); }
  .bs-tile .rl-tile { width: 96px; }
}

/* The One-Word Era */
.ow-count { margin: 0; font-size: 20px; }
.ow-count strong { font: 500 44px var(--serif); letter-spacing: -.03em; }
.ow-h { margin: var(--sp5) 0 var(--sp3); font-size: 26px; letter-spacing: -.025em; }
.ow-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: var(--sp3); }
.ow-card { position: relative; display: flex; min-height: 190px; border-radius: var(--r); background: var(--surface); overflow: hidden; }
.ow-card.heard { box-shadow: inset 0 0 0 3px var(--accent-2); }
.ow-tile { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 10px; }
.ow-word { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; width: 100%; min-height: 190px; padding: var(--sp3) 20px; border: 0; background: none; color: var(--ink); text-align: left; cursor: pointer; transition: background var(--t); }
.ow-word:hover { background: var(--line); }
.ow-big { font: 500 48px/1 var(--serif); letter-spacing: -.035em; }
.ow-yr { font: 400 12px var(--mono); color: var(--ink-2); }
.ow-late .ow-card, .ow-late .ow-word { min-height: 150px; }
.ow-back { display: grid; gap: var(--sp2); align-content: start; width: 100%; padding: var(--sp3) 20px; }
.ow-back h4 { padding-right: 56px; font-size: 22px; letter-spacing: -.02em; }
.ow-hook { margin: 0; font-size: 14px; }

@media (max-width: 900px) { .tr-layout { grid-template-columns: minmax(0, 1fr); } .tr-nav ul { position: static; display: flex; overflow-x: auto; padding: 4px; margin: -4px; } .tr-nav li { flex: 0 0 220px; } }
@media (max-width: 600px) {
  .rv-row { grid-template-columns: minmax(0, 1fr) auto; }
  .rv-row > :first-child:not(.rv-main) { grid-column: 1 / -1; justify-self: start; }
  .rd-fam { padding: var(--sp3); }
  .rd-body { grid-template-columns: 56px minmax(0, 1fr); }
  .rd-body .rv-acts { grid-column: 1 / -1; }
  .rd-tile .rl-tile { width: 56px; }
  .tr-stop { grid-template-columns: 44px minmax(0, 1fr); gap: 0 var(--sp2); }
  .tr-node { width: 36px; height: 36px; font-size: 15px; }
  .tr-stop:not(:last-child)::before { left: 22px; top: 36px; width: 18px; height: calc(100% - 36px); }
  .tr-stop:nth-child(even):not(:last-child)::before { left: 4px; }
  .tr-card { grid-template-columns: minmax(0, 1fr); }
  .tr-tile .rl-tile { width: 72px; }
  .tr-bar { flex-basis: 120px; }
}

