/* Video atlas design system: components.
   Uses tokens.css only. No colour, family or rule is declared here by value.
   Components are named for what they are (.mast, .nav, .phero, .sec, .band, .slab, .ledger, .tdir, .flist,
   .chart, .player, .foot), never for a colour or a site. No site copy lives in this file.

   Dividers, in order of weight:
     .slab          reversed block, paper on ink. One per page at most.
     .band          block of tone, edge to edge. Holds a figure or a tool.
     .sec           section opened by the heavy rule (--rule-heavy).
     --rule-bold    opens a sub-block inside a section (column heads, role groups).
     --rule         closes a list or toolbar.
     --rule-hair    between rows of one list. Nothing else. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: var(--fs-base);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--font-display); font-weight: var(--fw-head); margin: 0; line-height: 1.1; text-wrap: balance; }
.display, .hero h1, .phero h1, .topic-head h2, .tp-head h1 { font-weight: var(--fw-display); font-stretch: var(--stretch-display); letter-spacing: var(--track-display); word-spacing: var(--word-display); }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
figure { margin: 0; }
dl, dd, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: var(--bg); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--fg); color: var(--bg); padding: 10px 16px; font: 500 var(--fs-sm) var(--font-text); transition: top var(--t-fast); }
.skip:focus { top: 12px; }
.sep { color: var(--fg-3); margin-inline: .2em; opacity: .7; }
.sc { font: 600 var(--fs-xs)/1.4 var(--font-text); color: var(--fg-2); margin-right: .5em; }

/* ───────── small parts ───────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 500 var(--fs-sm)/1 var(--font-text); padding: .85em 1.25em; border: 1px solid transparent; border-radius: var(--radius);
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast); white-space: nowrap;
}
.btn-solid { background: var(--fg); color: var(--bg); }
.btn-solid:hover { background: var(--accent); }
.btn-line { border-color: var(--line-2); color: var(--fg); }
.btn-line:hover { border-color: var(--fg); }
.btn-ghost { color: var(--fg-2); }
.btn-ghost:hover { color: var(--fg); }
.textlink, .more, .link {
  font: 400 var(--fs-sm)/1.4 var(--font-text); color: var(--fg-2);
  text-decoration: underline; text-decoration-color: var(--accent-dim); text-underline-offset: .28em; text-decoration-thickness: 1px;
  transition: color var(--t-fast), text-decoration-color var(--t-fast);
}
.textlink:hover, .more:hover, .link:hover { color: var(--accent); text-decoration-color: var(--accent); }
.more::after { content: '\00a0\2192'; }

.chips, .chipset { display: flex; flex-wrap: wrap; gap: 5px; margin: 0; }
.chip {
  display: inline-flex; align-items: baseline; gap: .5em;
  font: 400 var(--fs-xs)/1.2 var(--font-text); color: var(--fg-2); background: var(--bg-3);
  border-radius: var(--radius); padding: .36em .6em; transition: color var(--t-fast), background var(--t-fast), opacity var(--t-fast); text-align: left;
}
.chip:hover { color: var(--fg); background: var(--bg-4); }
.chip.on { color: var(--bg); background: var(--accent); }
.chip.zero { opacity: .4; }
.chip .n { font-size: .92em; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.chip.on .n { color: color-mix(in srgb, var(--bg) 65%, transparent); }
.chip .x { font-size: 1.1em; line-height: .8; }
.chips { gap: 2px 14px; }
.chips .chip { background: none; padding: 0; border-radius: 0; color: var(--fg-3); }
.chips .chip:hover { background: none; color: var(--accent); }
.chips .chip.on { background: none; color: var(--accent); }
.chips .chip.on .n { color: var(--fg-3); }
.flag { font: 400 var(--fs-2xs) var(--font-text); color: var(--fg-3); margin-left: .7em; white-space: nowrap; }
.flag::before { content: '('; } .flag::after { content: ')'; }
.flag-accent { color: var(--accent); }
kbd { font: 500 var(--fs-2xs) var(--font-text); color: var(--fg-3); border: var(--rule); border-radius: var(--radius); padding: .05em .45em; }

/* ───────── masthead ───────── */

.mast { position: sticky; top: 0; z-index: 40; background: var(--bg); border-bottom: var(--rule-hair); }
.mast-in { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 32px); height: var(--mast); }
.wordmark { font: 800 var(--fs-lg)/1 var(--font-display); letter-spacing: var(--track-head); margin-right: auto; white-space: nowrap; }
.nav { display: flex; gap: clamp(14px, 2.2vw, 30px); }
.nav a { font: 400 var(--fs-sm) var(--font-text); color: var(--fg-2); padding: 4px 0; white-space: nowrap; border-bottom: 1px solid transparent; transition: color var(--t-fast), border-color var(--t-fast); }
.nav a:hover { color: var(--fg); }
.nav a[aria-current] { color: var(--fg); border-color: var(--accent); }
.marginal { font: 400 var(--fs-sm) var(--font-text); color: var(--fg-2); border: var(--rule); border-radius: var(--radius); padding: .4em .85em; transition: color var(--t-fast), border-color var(--t-fast); white-space: nowrap; }
.marginal:hover { color: var(--fg); border-color: var(--fg); }

/* ───────── charts: one square is one video ───────── */

.chart { display: block; overflow: visible; }
.u { fill: none; stroke-width: 4; stroke-dasharray: 4 1; stroke-linecap: butt; }
.u-a { stroke: var(--c-a); }
.u-b { stroke: var(--c-b); }
.u-c { stroke: var(--c-c); }
.u-open { stroke: var(--c-a); opacity: .42; }
.u-lo { stroke: var(--c-a); }
.u-mid { stroke: var(--c-mid); }
.u-hi { stroke: var(--c-b); }
.chart .axis, .spark .axis { stroke: var(--line-2); stroke-width: 1; fill: none; }
.chart .tick { stroke: var(--line-2); stroke-width: 1; }
.chart .median { stroke: var(--fg-2); stroke-width: 1; stroke-dasharray: 2 3; }
.chart .hit { fill: transparent; }
.chart text { font-family: var(--font-text); fill: var(--fg-3); font-size: 11px; font-variant-numeric: tabular-nums; }
.chart .mid { text-anchor: middle; }
.chart .end { text-anchor: end; }
.chart .yv { fill: var(--fg-2); }
.chart .note { fill: var(--fg); font-size: 13px; font-weight: 500; }
.chart .note-2 { fill: var(--fg-3); font-size: 12px; font-weight: 400; }
.yc .u, .bin .u { transition: filter var(--t-fast); }
.yc:hover .u, .yc:focus-visible .u, .bin:hover .u { filter: brightness(1.3); }
.yc:hover .yl, .yc:focus-visible .yl { fill: var(--fg); }
.yc:hover .yv, .yc:focus-visible .yv { fill: var(--fg); }
.yc:focus-visible { outline: none; }
.yc:focus-visible .hit { stroke: var(--accent); stroke-width: 1; }
.yearchart { width: 100%; height: auto; }
.yearledger { display: none; width: 100%; height: auto; }
.yearledger text { font-size: 9px; }
.scorehist { width: 100%; height: auto; }

.fig-t { font: 500 var(--fs-md)/1.35 var(--font-text); color: var(--fg); margin: 0 0 .7rem; }
.fig-n { font: 400 var(--fs-xs)/1.45 var(--font-text); color: var(--fg-3); margin: .8rem 0 0; max-width: 30em; }
.key { font: 400 var(--fs-sm)/1.35 var(--font-text); color: var(--fg-2); display: grid; gap: .32rem; }
.key li { display: flex; align-items: baseline; gap: .6em; }
.key span { color: var(--fg-3); font-variant-numeric: tabular-nums; margin-left: auto; padding-left: 1.5em; }
.sw { flex: none; width: 9px; height: 9px; display: inline-block; transform: translateY(.5px); }
.sw-a, .sw-lo { background: var(--c-a); }
.sw-b, .sw-hi { background: var(--c-b); }
.sw-c { background: var(--c-c); }
.sw-mid { background: var(--c-mid); }
.sw-open { background: var(--c-a); opacity: .42; }

/* ───────── home hero ───────── */

.hero > .wrap { padding-block: clamp(30px, 4.6vw, 64px) clamp(26px, 3.4vw, 44px); }
.hero-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 27rem); gap: var(--gut); align-items: end; margin-bottom: 0; }
.hero h1 { white-space: nowrap; font-size: var(--fs-d1); line-height: .86; margin-left: -.045em; }
.hero h1 span { display: block; color: var(--fg-3); }
.lede { font-size: clamp(1.2rem, 1.55vw, 1.42rem); line-height: 1.4; color: var(--fg-2); margin: 0 0 1.3em; max-width: 31em; text-wrap: pretty; }
.lede b { font-weight: 500; color: var(--fg); font-variant-numeric: lining-nums; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 0; }
.cta-note { font: 400 var(--fs-sm) var(--font-text); color: var(--fg-3); }

/* ───────── sections: a margin column and a body ───────── */

.sec { padding-block: 0 calc(var(--sec-y) * 1.25); }
.sec > .wrap::before { content: ''; display: block; grid-column: 1 / -1; border-top: var(--rule-heavy); margin-bottom: var(--sp-4); }
.sec-first { padding-top: var(--sec-y); }
.sec-first > .wrap::before { display: none; }
.sec-tight { padding-top: 0; }
.band + .sec, .slab + .sec, .phero + .sec { padding-top: var(--sec-y); }
.sec-g { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); gap: var(--gut); align-items: start; }
.sec-l h2 { font-size: var(--fs-2xl); line-height: 1.15; letter-spacing: -.01em; margin-bottom: .6rem; }
.sec-l p { font: 400 var(--fs-sm)/1.5 var(--font-text); color: var(--fg-3); margin: 0 0 .8em; }
.sec-l p a { color: var(--fg-2); text-decoration: underline; text-decoration-color: var(--accent-dim); text-underline-offset: .25em; }
.sec-l p a:hover { color: var(--accent); }
.sec-key { padding-top: .8em; border-top: var(--rule-hair); }
.deck { font: 400 var(--fs-md)/1.5 var(--font-text); color: var(--fg-3); margin: 0 0 .6em; max-width: 44em; text-wrap: pretty; }
.empty { font: 400 var(--fs-md) var(--font-text); color: var(--fg-3); padding: 2rem 0; grid-column: 1 / -1; }
.label { font: 500 var(--fs-xs)/1.3 var(--font-text); color: var(--accent); margin: 0 0 .4rem; }

/* thumbnails */
.thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-3); }
.thumb img { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(.45) brightness(.86); transition: filter var(--t-slow); }
.dur { position: absolute; right: 6px; bottom: 6px; z-index: 1; font: 500 var(--fs-2xs)/1 var(--font-text); font-variant-numeric: tabular-nums; color: var(--fg); background: color-mix(in srgb, var(--bg) 86%, transparent); padding: .32em .45em; }
.playmark { position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; z-index: 1; fill: var(--fg); opacity: 0; transition: opacity var(--t-fast); filter: var(--shadow-mark); }
a:hover > .thumb img, button:hover > .thumb img, a:focus-visible > .thumb img, button:focus-visible > .thumb img, .mini:hover img { filter: none; }
a:hover > .thumb .playmark, button:hover > .thumb .playmark, a:focus-visible > .thumb .playmark, button:focus-visible > .thumb .playmark { opacity: 1; }

.eyebrow { font: 400 var(--fs-xs)/1.35 var(--font-text); color: var(--fg-3); margin: 0 0 .35rem; }
.eyebrow a:hover { color: var(--accent); }
.meta { font: 400 var(--fs-xs)/1.5 var(--font-text); color: var(--fg-3); margin: 0; }
.row-people { font-size: var(--fs-base); font-style: normal; color: var(--fg-2); margin: .3rem 0 0; }
.row-people a { font-style: normal; color: var(--fg); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: .22em; text-decoration-thickness: 1px; }
.row-people a:hover { color: var(--accent); text-decoration-color: var(--accent); }
.fullconv { margin: .6rem 0 0; font: 400 var(--fs-sm) var(--font-text); }
.fullconv a { color: var(--fg-2); text-decoration: underline; text-decoration-color: var(--accent-dim); text-underline-offset: .28em; }
.fullconv a:hover { color: var(--accent); }



/* ───────── the collection: a table of contents ───────── */

.cats { border-top: var(--rule); }
.cats li { border-bottom: var(--rule-hair); }
.cat { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr) 118px 7.5rem; gap: clamp(16px, 2.4vw, 36px); align-items: start; padding: 17px 0 18px; }
.cat-n { font-size: var(--fs-2xl); line-height: 1.15; letter-spacing: -.01em; transition: color var(--t-fast); }
.cat-d { font-size: var(--fs-md); line-height: 1.42; color: var(--fg-3); transition: color var(--t-fast); }
.cat-s { padding-top: 2px; line-height: 0; }
.spark .sp { stroke-width: 4; fill: none; stroke: var(--c-c); }
.sp-a .sp { stroke: var(--c-a); }
.sp-b .sp { stroke: var(--c-b); }
.cat-c { font: 400 var(--fs-xs)/1.4 var(--font-text); color: var(--fg-3); text-align: right; font-variant-numeric: tabular-nums; }
.cat-c b { font: 400 var(--fs-2xl)/1.15 var(--font-display); color: var(--fg); font-variant-numeric: lining-nums tabular-nums; margin-right: .15em; }
.cat-c i { display: block; font-style: normal; }
a.cat:hover .cat-n, a.cat:focus-visible .cat-n { color: var(--accent); }
a.cat:hover .cat-d { color: var(--fg-2); }
.cat-empty { opacity: .45; }

/* ───────── short lists ───────── */

.way-list { margin: 0 0 1.1rem; border-top: var(--rule); }
.way-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 9px 0; border-bottom: var(--rule-hair); }
.way-list a { font-size: var(--fs-lg); line-height: 1.25; transition: color var(--t-fast); }
.way-list a:hover { color: var(--accent); }
.way-list span { font: 400 var(--fs-xs) var(--font-text); color: var(--fg-3); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ───────── the index ───────── */

.index-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 28px; margin-bottom: 10px; }
.index-head h2 { font-size: var(--fs-d3); font-weight: var(--fw-display); letter-spacing: var(--track-display); word-spacing: var(--word-display); }
.index-head p { font: 400 var(--fs-sm) var(--font-text); color: var(--fg-3); margin: 0; }
.toolbar { display: flex; gap: 24px; align-items: stretch; margin-bottom: 26px; position: sticky; top: var(--mast); z-index: 20; padding-block: 10px 0; background: var(--bg); }
.search { flex: 1; display: flex; align-items: center; gap: 12px; border-bottom: var(--rule); transition: border-color var(--t-fast); min-width: 0; }
.search:focus-within { border-color: var(--accent); }
.search svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--fg-3); stroke-width: 1.4; stroke-linecap: round; }
.search input { flex: 1; min-width: 0; background: none; border: 0; padding: .55em 0; font: 400 var(--fs-2xl) var(--font-display); color: var(--fg); }
.search input::placeholder { color: var(--fg-3); opacity: 1; }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; height: 14px; width: 14px; cursor: pointer; background: linear-gradient(45deg, transparent 45%, var(--fg-3) 45%, var(--fg-3) 55%, transparent 55%), linear-gradient(-45deg, transparent 45%, var(--fg-3) 45%, var(--fg-3) 55%, transparent 55%); }
.search:focus-within kbd { opacity: 0; }
.sortbox { display: flex; align-items: center; border-bottom: var(--rule); }
.sortbox .sc { margin: 0; font-weight: 400; color: var(--fg-3); }
select { appearance: none; -webkit-appearance: none; background: linear-gradient(45deg, transparent 50%, var(--fg-2) 50%) right 11px center / 5px 5px no-repeat, linear-gradient(-45deg, transparent 50%, var(--fg-2) 50%) right 6px center / 5px 5px no-repeat; border: 0; padding: .8em 26px .8em 10px; font: 500 var(--fs-sm) var(--font-text); color: var(--fg); cursor: pointer; max-width: 100%; text-overflow: ellipsis; }
select option { background: var(--bg-2); color: var(--fg); }
.filters-btn { display: none; align-self: center; }

.index-body { display: grid; grid-template-columns: 272px minmax(0, 1fr); gap: var(--gut); align-items: start; }
.facets { position: sticky; top: 132px; max-height: calc(100vh - 148px); overflow-y: auto; padding-right: 14px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; overscroll-behavior: contain; }
.facets-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; border-bottom: var(--rule); min-height: 35px; }
.facets-head .sc { font-weight: 400; color: var(--fg-3); }
.facets-close { display: none; font-size: var(--fs-3xl); line-height: 1; color: var(--fg-2); padding: 0 6px; }
.facet { padding: 16px 0 18px; border-bottom: var(--rule-hair); }
legend { font: 500 var(--fs-sm)/1.4 var(--font-text); color: var(--fg); padding: 0; margin-bottom: 10px; display: flex; width: 100%; justify-content: space-between; align-items: baseline; float: left; }
legend + * { clear: both; }
legend output { font-weight: 400; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.facet-note { font: 400 var(--fs-xs) var(--font-text); color: var(--fg-3); margin: 8px 0 0; }
.hist { display: flex; align-items: flex-end; gap: 1px; height: 52px; padding: 0 8px; }
.bar { flex: 1; height: 100%; display: flex; align-items: flex-end; min-width: 0; }
.bar i { display: block; width: 100%; background: var(--c-mid); transition: height var(--t-slow) var(--ease), background var(--t-fast); }
.bar.in i { background: var(--c-a); }
.bar:hover i { background: var(--accent); }
.dual { position: relative; height: 22px; --lo: 0%; --hi: 100%; margin: 0 8px; }
.dual::before { content: ''; position: absolute; left: -8px; right: -8px; top: 0; height: 1px; background: var(--line-2); }
.dual::after { content: ''; position: absolute; left: var(--lo); width: calc(var(--hi) - var(--lo)); top: 0; height: 1px; background: var(--accent); }
.dual input { position: absolute; left: -8px; right: -8px; top: -8px; width: calc(100% + 16px); margin: 0; height: 18px; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.dual input::-webkit-slider-runnable-track { background: none; height: 18px; }
.dual input::-moz-range-track { background: none; height: 18px; }
.dual input::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--fg); cursor: ew-resize; margin-top: 2px; transition: background var(--t-fast); }
.dual input::-moz-range-thumb { pointer-events: auto; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--fg); cursor: ew-resize; }
.dual input:hover::-webkit-slider-thumb, .dual input:focus-visible::-webkit-slider-thumb { background: var(--accent); border-color: var(--accent); }
.dual input:focus-visible { outline: none; }
.dual input:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 30%, transparent); }
.dual input:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 30%, transparent); background: var(--accent); }

.typeahead { position: relative; }
.typeahead input { width: 100%; background: none; border: 0; border-bottom: var(--rule); padding: .45em 0; font: 400 var(--fs-md) var(--font-text); transition: border-color var(--t-fast); }
.typeahead input::placeholder { color: var(--fg-3); opacity: 1; }
.typeahead input:focus { border-color: var(--accent); }
.typeahead ul { position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 4px); background: var(--bg-3); border: var(--rule); max-height: 300px; overflow: auto; box-shadow: var(--shadow-pop); }
.typeahead li { display: flex; justify-content: space-between; gap: 12px; padding: .5em .8em; font: 400 var(--fs-sm)/1.3 var(--font-text); cursor: pointer; }
.typeahead li .n { font-size: var(--fs-xs); color: var(--fg-3); font-variant-numeric: tabular-nums; }
.typeahead li[aria-selected=true], .typeahead li[data-ch]:hover { background: var(--bg-4); color: var(--accent); }
.typeahead li.none { color: var(--fg-3); cursor: default; }
#f-ch-sel { margin-top: 8px; }
#f-ch-sel:empty { display: none; }
.facet select { width: 100%; border-bottom: var(--rule); font: 400 var(--fs-md) var(--font-text); padding: .45em 26px .45em 0; }
.switch { display: flex; align-items: center; gap: 12px; cursor: pointer; font: 400 var(--fs-sm) var(--font-text); color: var(--fg-2); }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch small { font-size: var(--fs-xs); color: var(--fg-3); margin-left: .3em; }
.track { flex: none; width: 34px; height: 18px; border: var(--rule); border-radius: 20px; position: relative; transition: border-color var(--t-fast), background var(--t-fast); }
.track::after { content: ''; position: absolute; left: 3px; top: 3px; width: 10px; height: 10px; border-radius: 50%; background: var(--fg-3); transition: transform var(--t-fast) var(--ease), background var(--t-fast); }
.switch input:checked + .track { border-color: var(--accent); }
.switch input:checked + .track::after { transform: translateX(16px); background: var(--accent); }
.switch input:focus-visible + .track { outline: 2px solid var(--accent); outline-offset: 3px; }
.keys { font: 400 var(--fs-xs) var(--font-text); color: var(--fg-3); padding-top: 14px; margin: 0; line-height: 2.1; }
.keys kbd { margin: 0 .25em 0 .7em; }
.keys kbd:first-child { margin-left: 0; }

#count { margin: 0; font: 400 var(--fs-sm) var(--font-text); color: var(--fg-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
#count b { font-weight: 500; color: var(--fg); }
.active { display: flex; flex-wrap: wrap; gap: 5px 6px; align-items: center; }
.active .link { margin-left: 6px; }

.hl-toggle { margin-top: .7rem; font: 400 var(--fs-sm) var(--font-text); color: var(--fg-2); display: inline-flex; align-items: center; gap: .5em; }
.hl-toggle::before { content: '+'; color: var(--accent); font-weight: 500; }
.hl-toggle[aria-expanded=true]::before { content: '\2212'; }
.hl-toggle:hover { color: var(--fg); }
.minis { margin-top: .7rem; display: grid; gap: 10px; }
.mini { display: grid; grid-template-columns: 84px 1fr; gap: 12px; align-items: center; }
.mini .dur { font-size: var(--fs-3xs); right: 3px; bottom: 3px; padding: .25em .4em; }
.mini-t { font-size: var(--fs-md); line-height: 1.25; color: var(--fg-2); transition: color var(--t-fast); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mini-t small { display: block; font: 400 var(--fs-2xs) var(--font-text); color: var(--fg-3); margin-top: .25em; }
.mini:hover .mini-t { color: var(--accent); }
#sentinel { height: 1px; }
.index-head p { max-width: 26em; }

.method { margin-top: 56px; padding-top: 20px; border-top: var(--rule-hair); color: var(--fg-3); font: 400 var(--fs-sm)/1.55 var(--font-text); max-width: 46rem; }
.method p { margin-bottom: .7em; }
/* ───────── inner page heads ───────── */

.phero > .wrap { padding-block: clamp(22px, 3vw, 34px) clamp(34px, 5vw, 64px); }
.ph-g { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: var(--gut); align-items: start; }
.ph-side { padding-top: .5rem; }
.phero-flat > .wrap { padding-bottom: clamp(26px, 3.4vw, 44px); }
.phero-flat .lede { max-width: 40em; }
.ph-count { color: var(--fg-3); margin-left: .12em; }
.phero-tool > .wrap { padding-bottom: var(--sp-2); }
.phero-tool + .sec { padding-top: 0; }
.phero h1 { font-size: var(--fs-d2); line-height: .92; margin: 0 0 .32em -.04em; }
.phero .lede { margin-bottom: 1.2em; }
.phero .lede:last-child { margin-bottom: 0; }
.crumbs { font: 400 var(--fs-sm) var(--font-text); color: var(--fg-3); margin-bottom: clamp(1.6rem, 3.4vw, 3rem); }
.crumbs a { color: var(--fg-2); }
.crumbs a:hover { color: var(--accent); }
.crumbs span { margin-inline: .4em; opacity: .6; }

/* people: a ledger and a set index */
.ledger { border-top: var(--rule); }
.ledger a { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr) 2.4em; gap: 14px; align-items: center; padding: 7px 0; border-bottom: var(--rule-hair); }
.lg-n { font-size: var(--fs-base); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color var(--t-fast); }
.lg-r { display: none; }
.lg-b { display: block; height: 4px; }
.lg-b i { display: block; height: 4px; background: var(--c-a); }
.lg-v { font: 400 var(--fs-sm) var(--font-text); color: var(--fg-2); text-align: right; font-variant-numeric: tabular-nums; }
.ledger a:hover .lg-n { color: var(--accent); }

.p-side { position: sticky; top: 80px; display: grid; gap: 18px; }
.p-side .search input { font-size: var(--fs-lg); }
.seg { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.seg button { font: 400 var(--fs-sm) var(--font-text); color: var(--fg-3); padding: 2px 0; border-bottom: 1px solid transparent; transition: color var(--t-fast); }
.seg button:hover { color: var(--fg); }
.seg button[aria-pressed=true] { color: var(--fg); border-color: var(--accent); }
.jump { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; max-width: 200px; }
.jump a { font: 400 var(--fs-sm)/1 var(--font-text); color: var(--fg-2); height: 1.9em; display: grid; place-items: center; transition: color var(--t-fast), background var(--t-fast); }
.jump a:hover { color: var(--bg); background: var(--accent); }
.p-count { font: 400 var(--fs-sm) var(--font-text); color: var(--fg-3); margin: 0; }
.plist { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 0 clamp(20px, 2.6vw, 40px); }
.plist .letter { grid-column: 1 / -1; margin: 34px 0 4px; padding-top: 6px; border-top: var(--rule-bold); font: 900 var(--fs-d4)/1 var(--font-display); font-stretch: var(--stretch-display); letter-spacing: -.03em; color: var(--fg); scroll-margin-top: 76px; }
.plist .letter:first-child { margin-top: 0; }
.pcard a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1px 12px; align-items: baseline; padding: 9px 0 10px; border-bottom: var(--rule-hair); height: 100%; align-content: start; }
.pc-name { font-size: var(--fs-lg); line-height: 1.2; transition: color var(--t-fast); }
.pcard a:hover .pc-name { color: var(--accent); }
.pc-n { font: 400 var(--fs-sm) var(--font-text); color: var(--fg-2); font-variant-numeric: tabular-nums; }
.pc-meta { grid-column: 1 / -1; font: 400 var(--fs-xs)/1.4 var(--font-text); color: var(--fg-3); }

/* person */
.person-topics { margin-top: 1.4rem; }
.person-body { padding-bottom: clamp(40px, 6vw, 80px); }
.role { padding-bottom: clamp(26px, 3.4vw, 44px); }
.subhead { font: 500 var(--fs-sm) var(--font-text); color: var(--fg-2); padding: 28px 0 9px; border-bottom: var(--rule-hair); }
.person-search { margin: 0 0 40px; }
.prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; border-top: var(--rule); padding-top: 18px; }
.prevnext a { display: flex; flex-direction: column; gap: .2em; font-size: var(--fs-2xl); line-height: 1.15; letter-spacing: -.015em; transition: color var(--t-fast); }
.prevnext a:hover { color: var(--accent); }
.pn-l { font: 400 var(--fs-xs) var(--font-text); color: var(--fg-3); letter-spacing: 0; }
.pn-next { text-align: right; align-items: flex-end; }

/* list pages */
.row-title { font-size: clamp(1.3rem, 1.9vw, 1.62rem); line-height: 1.14; font-weight: 700; letter-spacing: -.012em; margin-bottom: .4rem; overflow-wrap: anywhere; }
.row-title a { transition: color var(--t-fast); }
.row-title a:hover { color: var(--accent); }
.rank { font: 300 clamp(1.5rem, 2.4vw, 2rem)/1 var(--font-display); color: var(--fg-3); font-variant-numeric: lining-nums tabular-nums; letter-spacing: -.03em; }
.more-note { font: 400 var(--fs-sm) var(--font-text); color: var(--fg-3); margin-top: 18px; }

/* tabs */
.tabs { display: flex; gap: clamp(16px, 2.6vw, 36px); border-bottom: var(--rule); margin-bottom: 22px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.1; letter-spacing: -.015em; color: var(--fg-3); padding: 0 0 13px; position: relative; white-space: nowrap; transition: color var(--t-fast); }
.tabs a .n { font: 400 var(--fs-xs) var(--font-data); font-stretch: var(--stretch-data); letter-spacing: 0; color: var(--fg-3); vertical-align: super; margin-left: .1em; font-variant-numeric: tabular-nums; }
.tabs-row { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp-2) var(--sp-5); border-bottom: var(--rule); margin-bottom: var(--sp-4); }
.tabs-row .tabs { border-bottom: 0; margin-bottom: 0; flex: none; }
.lens-key { display: flex; align-items: center; gap: var(--sp-3); font: 400 var(--fs-xs)/1.4 var(--font-text); color: var(--fg-3); margin: 0 0 var(--sp-3); }
.lens-key .strip { flex: none; }
.ov-lists:has([role=tab]:last-child[aria-selected=true]) .lens-key { visibility: hidden; }
.lens-key a { color: var(--fg-2); text-decoration: underline; text-decoration-color: var(--accent-dim); text-underline-offset: .25em; margin-left: .3em; }
.lens-key a:hover { color: var(--accent); }
.tabs a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); opacity: 0; }
.tabs a:hover { color: var(--fg); }
.tabs-on .tabs a[aria-selected=true] { color: var(--fg); }
.tabs-on .tabs a[aria-selected=true]::after { opacity: 1; }
.tabpanel { margin-bottom: 50px; scroll-margin-top: 80px; }
.tabpanel h2 { font-size: var(--fs-3xl); margin-bottom: .5rem; }
.tabs-on .tabpanel { margin-bottom: 0; }
.tabs-on .tabpanel h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* ───────── player ───────── */

dialog.player { width: min(1120px, calc(100vw - 24px)); max-width: none; max-height: calc(100dvh - 24px); padding: 0; background: var(--bg-2); color: var(--fg); border: var(--rule); box-shadow: var(--shadow-modal); overflow-y: auto; overscroll-behavior: contain; }
dialog.player::backdrop { background: var(--scrim); }
.pl-bar { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px 6px 20px; position: sticky; top: 0; background: var(--bg-2); z-index: 2; }
.pl-bar .eyebrow { margin: 0; }
.pl-close { font-size: var(--fs-3xl); line-height: 1; width: 40px; height: 40px; color: var(--fg-2); transition: color var(--t-fast); }
.pl-close:hover { color: var(--accent); }
.pl-frame { aspect-ratio: 16 / 9; background: var(--black); }
.pl-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.pl-info { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: clamp(20px, 3vw, 44px); padding: clamp(18px, 2.4vw, 28px) clamp(18px, 2.6vw, 32px) clamp(22px, 3vw, 34px); }
.pl-main h2 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: .5rem; }
.pl-main .chips { margin-top: 1rem; }
.pl-course { margin: 1rem 0 0; }
.pl-course a { text-decoration: underline; text-decoration-color: var(--accent-dim); text-underline-offset: .25em; }
.pl-course a:hover { color: var(--accent); }
.pl-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 1.3rem 0 0; }
.pl-actions .btn-ghost { border-color: var(--line); }
.pl-parent, .pl-clips { margin-top: 1.6rem; padding-top: 1.1rem; border-top: var(--rule-hair); }
.pl-parent .sc, .pl-clips .sc { display: block; margin: 0; }
.pl-clips .minis { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px 20px; }
.pl .mini { grid-template-columns: 104px 1fr; }
.pl-lens { border-left: var(--rule-hair); padding-left: clamp(16px, 2vw, 26px); align-self: start; }
.pl-lens .sc { display: block; margin: 0 0 .7rem; }
.pl-lens .badge { margin-bottom: 14px; }
.pl-lens .legend-ends { margin-bottom: 0 !important; }
.lens-note { font: 400 var(--fs-sm)/1.5 var(--font-text); color: var(--fg-3); margin: .9rem 0 0; }
.lens-note a { color: var(--fg-2); text-decoration: underline; text-decoration-color: var(--accent-dim); text-underline-offset: .25em; }

/* ───────── footer ───────── */

.foot { border-top: var(--rule-heavy); margin-top: clamp(30px, 5vw, 70px); padding-block: 34px 56px; font: 400 var(--fs-sm)/1.55 var(--font-text); color: var(--fg-3); }
.foot-in { display: grid; grid-template-columns: var(--side) minmax(0, 1fr) auto; gap: var(--gut); align-items: start; }
.foot-name { font: 800 var(--fs-lg)/1.1 var(--font-display); letter-spacing: var(--track-head); color: var(--fg); margin-bottom: .6rem; }
.foot-text { max-width: 44rem; }
.foot-text p { margin-bottom: .8em; }
.foot-lead { color: var(--fg-2); }
.foot-text a { color: var(--fg-2); text-decoration: underline; text-decoration-color: var(--accent-dim); text-underline-offset: .25em; }
.foot-text a:hover { color: var(--accent); }
.foot-nav { display: flex; flex-direction: column; align-items: flex-start; gap: .5em; }
.foot-nav a, .foot-nav button { font: inherit; color: var(--fg-2); transition: color var(--t-fast); }
.foot-nav a:hover, .foot-nav button:hover { color: var(--accent); }

/* ───────── responsive ───────── */

@media (max-width: 1100px) {
  .cat { grid-template-columns: minmax(0, 13rem) minmax(0, 1fr) 7rem; }
  .cat-s { display: none; }
  .sec-key { display: none; }
}
@media (max-width: 1020px) {
  .filters-btn { display: inline-flex; }
  .index-body { grid-template-columns: minmax(0, 1fr); }
  .facets { position: fixed; z-index: 60; top: 0; right: 0; bottom: 0; width: min(380px, 92vw); max-height: none; background: var(--bg-2); border-left: var(--rule); padding: 18px 22px 40px; transform: translateX(102%); visibility: hidden; transition: transform var(--t-slow) var(--ease), visibility 0s var(--t-slow); }
  .facets-open .facets { transform: none; visibility: visible; transition: transform var(--t-slow) var(--ease); }
  .facets-open::after { content: ''; position: fixed; inset: 0; z-index: 50; background: var(--scrim); }
  .facets-close { display: block; }
  .keys { display: none; }
  .pl-info { grid-template-columns: minmax(0, 1fr); }
  .pl-lens { border-left: 0; padding-left: 0; border-top: var(--rule-hair); padding-top: 1.1rem; }
}
@media (max-width: 900px) {
  .sec-g { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .sec-l p { max-width: 34em; }
  .p-side { position: static; }
  .hero-top { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .ph-g { grid-template-columns: minmax(0, 1fr); gap: 34px; align-items: start; }
  .foot-in { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .foot-nav { flex-direction: row; flex-wrap: wrap; gap: 8px 22px; }
  .jump { grid-template-columns: repeat(13, 1fr); max-width: none; }
}
@media (max-width: 760px) {
  .yearchart { display: none; }
  .yearledger { display: block; }
}
@media (max-width: 640px) {
  :root { --mast: 50px; }
  html { scroll-padding-top: 64px; }
  .toolbar { flex-wrap: wrap; gap: 6px 18px; }
  .search { flex: 1 1 100%; }
  .search kbd { display: none; }
  .search input { font-size: var(--fs-lg); }
  .sortbox { flex: 1; }
  .sortbox select { flex: 1; }
  .cat { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 14px 0 15px; }
  .cat-n { font-size: var(--fs-xl); }
  .cat-d { grid-column: 1 / -1; grid-row: 2; font-size: var(--fs-md); }
  .cat-c i { display: none; }
  .cat-c b { font-size: var(--fs-xl); }
  .row-title { font-size: var(--fs-lg); }
  .plist { grid-template-columns: minmax(0, 1fr); }
  .ledger a { grid-template-columns: minmax(0, 10rem) minmax(0, 1fr) 1.8em; }
  .prevnext a { font-size: var(--fs-lg); }
  dialog.player { width: 100vw; max-height: 100dvh; height: 100dvh; border: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001s !important; transition-duration: .001s !important; }
}
@media print {
  .mast, .toolbar, .facets, dialog { display: none; }
  body { background: var(--paper); color: var(--black); }
}
/* moments: a link to one second of one video */
.moment { font: 500 var(--fs-xs)/1.3 var(--font-text); color: var(--accent); font-variant-numeric: tabular-nums; white-space: nowrap; transition: color var(--t-fast); }
.moment::before { content: '\25B6\FE0E'; font-size: .6em; margin-right: .6em; position: relative; top: -.12em; }
.moment .apx { margin-right: .12em; opacity: .7; }
.moment:hover { color: var(--fg); }
.tr { color: var(--fg-2); text-decoration: underline; text-decoration-color: var(--accent-dim); text-underline-offset: .25em; text-decoration-thickness: 1px; }
.tr::after { content: '\00a0\2197'; }
.tr:hover { color: var(--accent); }
mark { background: color-mix(in srgb, var(--accent) 20%, transparent); color: var(--fg); padding: 0 .08em; border-radius: 1px; }

/* the + on every video. A plain mark in its own column, never on the still. */
.add { display: none; }
.js .add { display: grid; place-items: center; width: 26px; height: 26px; border-radius: var(--radius); color: var(--fg-3); font: 400 var(--fs-lg)/1 var(--font-text); transition: background var(--t-fast), color var(--t-fast), opacity var(--t-fast); }
.add::before { content: '+'; }
.js .add[aria-pressed=true] { background: var(--accent); color: var(--bg); }
.add[aria-pressed=true]::before { content: '\2713'; font-size: var(--fs-sm); font-weight: 600; }
.js .add:hover:not(:disabled) { background: var(--fg); color: var(--bg); }
.add:disabled { opacity: .35; cursor: not-allowed; }
.queue-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 24px; margin: 1.5rem 0 0; }
.tabpanel .queue-line { margin: 0 0 .5rem; }
html:not(.js) [data-queue] { display: none; }
.queue-btn { margin-left: auto; white-space: nowrap; }

/* the drawer */
.has-syl { padding-bottom: 48px; }
.syl { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; }
.syl-bar { background: var(--bg-2); border-top: var(--rule); }
.syl-bar .wrap { display: flex; align-items: center; gap: 22px; height: 48px; }
.syl-toggle { flex: 1; min-width: 0; height: 100%; text-align: left; font: 400 var(--fs-sm) var(--font-text); color: var(--fg-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.syl-toggle b { font-weight: 500; color: var(--fg); }
.syl-toggle::before { content: '+'; color: var(--accent); font-weight: 500; margin-right: .7em; }
.syl-toggle[aria-expanded=true]::before { content: '\2212'; }
.syl-toggle:hover { color: var(--fg); }
.syl-barplay { font: 400 var(--fs-sm) var(--font-text); color: var(--fg-2); white-space: nowrap; text-decoration: underline; text-decoration-color: var(--accent-dim); text-underline-offset: .28em; }
.syl-barplay:hover { color: var(--accent); }
.syl-panel { background: var(--bg-2); border-top: var(--rule); max-height: calc(100dvh - var(--mast) - 48px); overflow-y: auto; overscroll-behavior: contain; padding-block: 26px 30px; box-shadow: var(--shadow-up); }
.sy-side { position: sticky; top: 0; display: grid; gap: 12px; }
.sy-title { width: 100%; background: none; border: 0; border-bottom: var(--rule); padding: .15em 0 .25em; font: 800 var(--fs-lg)/1.15 var(--font-display); letter-spacing: -.02em; color: var(--fg); }
.sy-intro { width: 100%; background: none; border: 0; border-bottom: var(--rule-hair); padding: .2em 0 .4em; font: 400 var(--fs-md)/1.45 var(--font-text); color: var(--fg-2); resize: vertical; min-height: 2.6em; }
.sy-title::placeholder, .sy-intro::placeholder, .sy-note::placeholder { color: var(--fg-3); opacity: 1; }
.sy-title:focus, .sy-intro:focus, .sy-note:focus { outline: none; border-color: var(--accent); }
.sy-sum, .sy-len { font: 400 var(--fs-xs)/1.45 var(--font-text); color: var(--fg-3); margin: 0; }
.sy-len:empty { display: none; }
.sy-warn { color: var(--c-c); }
.sy-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.sy-acts .btn { padding: .7em .9em; font-size: var(--fs-sm); }
.sy-acts .btn-ghost { border-color: var(--line); }
.sy-acts.is-empty > * { opacity: .35; pointer-events: none; }
.copy-fb { flex-basis: 100%; width: 100%; background: var(--bg-3); border: var(--rule); padding: .45em .6em; font: 400 var(--fs-xs) var(--font-text); color: var(--fg); }
.sy-orders { align-items: baseline; padding-bottom: 10px; border-bottom: var(--rule); }
.sy-orders-l { font: 400 var(--fs-sm) var(--font-text); color: var(--fg-3); margin-right: .4em; }
.sy-row { display: grid; grid-template-columns: 14px 1.5em 96px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: var(--rule-hair); }
.sy-grip { width: 14px; height: 21px; cursor: grab; background: radial-gradient(circle, var(--fg-3) 1.2px, transparent 1.5px) 0 0 / 7px 7px; }
.sy-grip:hover { background-image: radial-gradient(circle, var(--fg) 1.2px, transparent 1.5px); }
.sy-n { font: 400 var(--fs-xs) var(--font-text); color: var(--fg-3); text-align: right; font-variant-numeric: tabular-nums; }
.sy-th { display: block; width: 96px; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--bg-3); filter: grayscale(.45) brightness(.86); }
.sy-t { font-size: var(--fs-base); font-weight: 600; line-height: 1.2; margin: 0 0 .15rem; }
.sy-t a:hover { color: var(--accent); }
.sy-note { width: 100%; background: none; border: 0; border-bottom: 1px dashed var(--line-2); padding: .2em 0; margin-top: .2rem; font: 400 var(--fs-md) var(--font-text); color: var(--fg-2); }
.sy-rowacts { display: flex; gap: 2px; }
.sy-rowacts button { width: 30px; height: 30px; border-radius: var(--radius); font: 400 var(--fs-base)/1 var(--font-text); color: var(--fg-2); transition: background var(--t-fast), color var(--t-fast); }
.sy-rowacts button:hover:not(:disabled) { background: var(--bg-3); color: var(--fg); }
.sy-rowacts button:disabled { opacity: .25; cursor: default; }
.sy-row.dragging { opacity: .35; }
.sy-row.drop-before { box-shadow: 0 -2px 0 var(--accent); }
.sy-row.drop-after { box-shadow: 0 2px 0 var(--accent); }
.sy-row.is-watched .sy-th { opacity: .5; }
.sy-empty { font: 400 var(--fs-md) var(--font-text); color: var(--fg-3); margin: 0; }
.sy-savedbox h3 { font: 500 var(--fs-sm) var(--font-text); color: var(--fg); margin: 12px 0 2px; }
.sy-saved li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 9px 0; border-bottom: var(--rule-hair); }
.sy-saved-n { text-align: left; font-size: var(--fs-base); font-weight: 600; line-height: 1.2; transition: color var(--t-fast); }
.sy-saved-n:hover { color: var(--accent); }
.sy-saved-a { display: flex; gap: 14px; }
.sy-saved-a .link { font-size: var(--fs-xs); }
.toast { position: fixed; left: 50%; bottom: 62px; transform: translateX(-50%); z-index: 70; display: flex; gap: 1.1em; align-items: baseline; width: max-content; max-width: min(92vw, 36rem); background: var(--fg); color: var(--bg); font: 400 var(--fs-sm)/1.35 var(--font-text); padding: .7em 1em; border-radius: var(--radius); box-shadow: var(--shadow-pop); }
.toast .link { color: var(--bg); font-weight: 600; text-decoration-color: currentColor; }
.toast .link:hover { color: var(--bg); opacity: .7; }

/* the syllabus page */
.how { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); font: 400 var(--fs-md)/1.45 var(--font-text); color: var(--fg-3); }
.how li { display: flex; gap: .6em; }
.how b { font-weight: 500; color: var(--fg); }
.plus-ex { display: inline-grid; place-items: center; width: 1.25em; height: 1.25em; background: var(--bg-3); color: var(--fg); font: 400 .9em/1 var(--font-text); border-radius: var(--radius); vertical-align: .08em; }
.hs { grid-template-columns: minmax(0, 17rem) minmax(0, 1fr) 7.5rem; }
.sy-draft { margin-bottom: 30px; }
.sy-draft h3 button { text-align: left; font: 800 clamp(1.8rem, 3.2vw, 2.6rem)/1.05 var(--font-display); letter-spacing: -.03em; margin-bottom: .3rem; transition: color var(--t-fast); }
.sy-draft h3 button:hover { color: var(--accent); }
.sy-draft .hero-cta { margin-top: 1rem; }
.sy-none { color: var(--fg-2); max-width: 34em; margin: 0; }
#syl-mine .sy-saved { border-top: var(--rule); }
#syl-mine .sy-saved li { grid-template-columns: minmax(0, 1fr) auto auto; gap: 4px 28px; align-items: baseline; }
#syl-mine .sy-saved-n { font-size: var(--fs-2xl); font-weight: 400; letter-spacing: -.01em; }

/* ═════════ dividers: tone and reversal ═════════ */

.band { background: var(--bg-2); padding-block: var(--sec-y); }
.band .method { margin-top: var(--sp-5); }
.slab {
  --bg: var(--paper); --bg-2: var(--paper-2); --bg-3: var(--paper-2);
  --fg: var(--ink); --fg-2: var(--ink-2); --fg-3: var(--ink-3);
  --accent: var(--accent-ink); --accent-dim: var(--ink-3);
  --line: color-mix(in srgb, var(--ink) 16%, transparent); --line-2: color-mix(in srgb, var(--ink) 38%, transparent);
  --rule-hair: 1px solid var(--line); --rule: 1px solid var(--line-2); --rule-bold: 2px solid var(--fg); --rule-heavy: 6px solid var(--fg);
  background: var(--bg); color: var(--fg); padding-block: var(--sec-y);
}
.slab ::selection { background: var(--ink); color: var(--paper); }

/* a section title set as a bar: title, short note, action */
.sec-bar { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--sp-2) var(--sp-5); margin-bottom: var(--sp-4); }
.sec-bar h2 { font-size: var(--fs-d4); font-weight: var(--fw-display); font-stretch: var(--stretch-display); letter-spacing: var(--track-display); line-height: 1; }
.sec-bar p { font: 400 var(--fs-sm)/1.45 var(--font-text); color: var(--fg-3); margin: 0; max-width: 46em; }
.sec-bar > a, .sec-bar > .btn { margin-left: auto; }

/* ═════════ figures ═════════ */

.fig-wide figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--sp-2) var(--sp-5); margin-bottom: var(--sp-4); }
.fig-wide .fig-t { font: var(--fw-head) var(--fs-xl)/1.2 var(--font-display); letter-spacing: var(--track-head); margin: 0; }
.fig-wide .fig-n { max-width: none; }
.key-row { display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-4); }
.key-row li span { margin-left: 0; padding-left: .2em; }
.mix-bar { display: flex; gap: 2px; height: 14px; margin-bottom: var(--sp-2); }
.mix-bar i { display: block; min-width: 2px; }

/* ═════════ topic directory ═════════ */

.tdir { display: grid; grid-auto-flow: column; grid-template-rows: repeat(var(--rows, 9), auto); grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gut); border-top: var(--rule-bold); }
.tdir li { border-bottom: var(--rule-hair); }
.tdir a { display: grid; grid-template-columns: 1.7em minmax(0, 1fr) clamp(64px, 12vw, 170px) 2.4em; gap: var(--sp-3); align-items: center; padding: 9px 0 10px; }
.td-i { color: var(--fg-3); font-size: var(--fs-sm); }
.td-n { font: var(--fw-head) var(--fs-xl)/1.15 var(--font-display); letter-spacing: var(--track-head); }
.td-b { display: flex; height: 12px; }
.td-b i { display: block; height: 100%; background: var(--fg); }
.td-b .td-2 { background: none; border: 1.5px solid var(--fg); border-left: 0; }
.td-c { text-align: right; font-size: var(--fs-base); }
.tdir a:hover .td-n, .tdir a:focus-visible .td-n { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: .16em; }

/* topics index: a full-width table */
.tt-key { border: 0; padding: 0; margin: 0 0 var(--sp-3); text-align: right; font: 400 var(--fs-xs)/1.4 var(--font-text); color: var(--fg-3); }
.ttable li { border-bottom: var(--rule-hair); }
.tt { display: grid; grid-template-columns: 2.2rem minmax(0, 21rem) minmax(0, 1fr) 118px 7.5rem; gap: clamp(14px, 2.2vw, 32px); align-items: baseline; padding: 15px 0 16px; }
.tt-i { color: var(--fg-3); font-size: var(--fs-md); }
.tt-n { font: var(--fw-head) var(--fs-3xl)/1.08 var(--font-display); letter-spacing: var(--track-head); transition: color var(--t-fast); }
.tt-d { font-size: var(--fs-md); line-height: 1.42; color: var(--fg-3); }
.tt-s { align-self: center; line-height: 0; }
.tt-s .sp { stroke: var(--fg-2); }
.tt-c { font: 400 var(--fs-xs)/1.4 var(--font-text); color: var(--fg-3); text-align: right; }
.tt-c b { font-size: var(--fs-2xl); font-weight: 600; color: var(--fg); margin-right: .15em; }
.tt-c i { display: block; font-style: normal; }
.tt:hover .tt-n, .tt:focus-visible .tt-n { color: var(--accent); }
.tt:hover .tt-s .sp { stroke: var(--accent); }

/* shared videos: the triangle */
.cooc-g { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 22rem); gap: var(--gut); align-items: start; }
.cooc-scroll { overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.cooc { max-width: none; }
.cooc .cc { fill: var(--fg); }
.cooc .cv { text-anchor: middle; fill: var(--fg-2); font-size: 11px; }
.cooc .cv-hi { fill: var(--bg); font-weight: 700; }
.cooc .cl { fill: var(--fg); font-size: 13px; font-family: var(--font-text); font-stretch: var(--stretch-text); font-weight: 600; }
.cooc .ci { fill: var(--fg-3); font-size: 11px; font-weight: 400; }
.cooc a:hover .cl { fill: var(--accent); }
.cooc g:hover .cc { stroke: var(--accent); stroke-width: 1.5; }
.pairs .way-list span { font-size: var(--fs-md); line-height: 1.3; color: var(--fg); white-space: normal; }
.pairs .way-list a { font-size: inherit; }
.pairs .way-list b { font-weight: 600; color: var(--fg-2); }

/* ═════════ topic page ═════════ */

.tp-head { padding-block: clamp(22px, 3vw, 34px) var(--sec-y); }
.tp-head > .wrap { position: relative; }
.tp-i { position: absolute; right: var(--pad); top: 0; margin: 0; font: var(--fw-display) var(--fs-d4)/1 var(--font-data); font-stretch: var(--stretch-data); }
.tp-i span { font-weight: 400; font-size: var(--fs-sm); color: var(--fg-3); }
.tp-head h1 { font-size: clamp(1.9rem, 6.6vw, 5.6rem); line-height: .94; margin: 0 0 .3em -.03em; max-width: 14em; overflow-wrap: anywhere; }
.tp-def { font-size: clamp(1.1rem, 1.5vw, 1.36rem); line-height: 1.4; color: var(--fg-2); max-width: 38em; margin: 0 0 var(--sp-5); text-wrap: pretty; }
.specs { display: flex; flex-wrap: wrap; gap: var(--sp-4) var(--sp-4); margin: 0; }
.specs div { flex: 1 1 auto; min-width: 110px; }
.specs div { border-top: var(--rule-heavy); padding-top: var(--sp-2); }
.specs dt { font: 500 var(--fs-xs)/1.3 var(--font-text); color: var(--fg-2); }
.specs dd { margin: .1em 0 0; font-size: var(--fs-d4); font-weight: 800; line-height: 1.05; white-space: nowrap; }

/* three short lists side by side */
.vls { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--sp-5) var(--gut); align-items: start; }
.vl { border-top: var(--rule-bold); padding-top: var(--sp-2); min-width: 0; }
.vl h3 { font-size: var(--fs-xl); letter-spacing: var(--track-head); margin-bottom: var(--sp-1); }
.vl-note { font: 400 var(--fs-xs)/1.4 var(--font-text); color: var(--fg-3); margin: 0 0 var(--sp-2); }
.vl ol { counter-reset: vl; margin-top: var(--sp-3); }
.vl li { counter-increment: vl; display: grid; grid-template-columns: 1.4em minmax(0, 1fr); column-gap: var(--sp-2); padding: 10px 0 11px; border-bottom: var(--rule-hair); }
.vl li::before { content: counter(vl); grid-row: 1 / span 2; color: var(--fg-3); font: var(--fw-data) var(--fs-sm)/1.5 var(--font-data); font-stretch: var(--stretch-data); }
.vl li:first-child { grid-template-columns: minmax(0, 1fr); padding-top: 0; }
.vl li:first-child::before { display: none; }
.vl li a { display: block; }
.vl .thumb { margin-bottom: var(--sp-3); }
.vl-t { font-size: var(--fs-base); font-weight: 600; line-height: 1.24; transition: color var(--t-fast); text-wrap: pretty; overflow-wrap: anywhere; }
.vl li:first-child .vl-t { font-size: var(--fs-xl); font-weight: var(--fw-head); letter-spacing: var(--track-head); line-height: 1.14; }
.vl a:hover .vl-t { color: var(--accent); }
.vl a:hover .thumb img { filter: none; }
.vl-m { grid-column: -2; font: 400 var(--fs-xs)/1.5 var(--font-text); color: var(--fg-3); margin-top: .15rem; }
.vl-more { margin: var(--sp-3) 0 0; }

.pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--sp-5) var(--gut); align-items: start; margin-bottom: var(--sp-6); }
.lg .ledger { border-top: var(--rule-bold); }
.lg .fig-t { font: var(--fw-head) var(--fs-xl)/1.2 var(--font-display); letter-spacing: var(--track-head); }
.lg-n small { font-size: var(--fs-xs); color: var(--fg-3); margin-left: .5em; }

/* a ranked list set as running text */
.runin .fig-t { color: var(--fg-3); font-weight: 400; font-size: var(--fs-sm); }
.ri { font: var(--fw-head) clamp(1.5rem, 2.9vw, 2.5rem)/1.16 var(--font-display); letter-spacing: var(--track-head); margin: 0; max-width: 34em; }
.ri a { white-space: nowrap; margin-right: .5em; transition: color var(--t-fast); }
.ri a:hover { color: var(--accent); }
.ri-n { color: var(--fg-3); font-size: .5em; font-weight: 500; margin-left: .3em; vertical-align: .7em; letter-spacing: 0; }

/* ═════════ filter list: one line per value ═════════ */

.facet legend a { font-weight: 400; font-size: var(--fs-xs); color: var(--fg-3); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: .25em; }
.facet legend a:hover { color: var(--accent); }
.flist li { display: grid; grid-template-columns: minmax(0, 1fr) 1.5em; align-items: stretch; border-left: 3px solid transparent; }
.flist button { display: flex; justify-content: space-between; align-items: baseline; gap: var(--sp-2); padding: 3px 0 3px 9px; text-align: left; font: 400 var(--fs-sm)/1.35 var(--font-text); color: var(--fg-2); transition: color var(--t-fast); min-width: 0; }
.flist .fl-n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flist .n { color: var(--fg-3); font-size: var(--fs-xs); }
.flist button:hover { color: var(--fg); }
.flist li.on { border-left-color: var(--accent); background: var(--bg-3); }
.flist li.on button { color: var(--fg); font-weight: 600; }
.flist li.on .n { color: var(--accent); }
.flist li.zero button { opacity: .4; }
.fl-go { display: grid; place-items: center; font-size: var(--fs-xs); color: var(--fg-3); opacity: 0; transition: opacity var(--t-fast), color var(--t-fast); }
.flist li:hover .fl-go, .fl-go:focus-visible, .flist li.on .fl-go { opacity: 1; }
.fl-go:hover { color: var(--accent); }
.facet-topics { padding-top: var(--sp-3); }
.segbar { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 1px; background: var(--line-2); border: var(--rule); }
.segbar button { background: var(--bg); padding: .5em 0; font: 400 var(--fs-2xs)/1.2 var(--font-text); color: var(--fg-2); white-space: nowrap; transition: color var(--t-fast), background var(--t-fast); }
.segbar button:hover { color: var(--fg); background: var(--bg-3); }
.segbar button[aria-pressed=true] { background: var(--accent); color: var(--bg); font-weight: 600; }
.segbar button.zero { color: var(--fg-3); opacity: .55; }
.topic-hits { font: 400 var(--fs-md)/1.5 var(--font-text); margin: 0 0 var(--sp-3); padding: var(--sp-2) var(--sp-3); background: var(--bg-2); border-left: 3px solid var(--accent); }
.topic-hits a { font-weight: 600; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: .25em; }
.topic-hits a:hover { color: var(--accent); }
.tlink { font: inherit; color: var(--fg-2); transition: color var(--t-fast); }
.tlink:hover, .tlink.on { color: var(--accent); }
.eyebrow a { color: var(--fg-2); }
.meta a:hover { color: var(--accent); }

.foot-sub { display: block; columns: 2; column-gap: var(--sp-4); padding-left: var(--sp-3); border-left: var(--rule); font-size: var(--fs-xs); }
.foot-sub a { display: block; padding: .15em 0; break-inside: avoid; }
.fig-pair { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: var(--gut); align-items: start; }
.fig-pair .lg .fig-t { margin-bottom: var(--sp-3); }

/* ═════════ figures of record are set in the data face ═════════ */

.chart text, .td-i, .td-c, .tt-i, .tt-c b, .lg-v, .specs dd, .cat-c, .cat-c b, .pc-n, .card-figs, .card-m, .grp-l, .rec-figs, .rec-m, .rec-i, .rec-y, .rec-cols h2, .lens-axis, .ml-v, .sh-i, .sh-v, .yr-y, .cx-n i, .cx-p b, .rank, .dur, .ri-n, .flist .n, .ph-count, .way-list span, .pairs b, .key span, #count, .tm-n, .srcs-n, .sy-n {
  font-family: var(--font-data); font-stretch: var(--stretch-data); font-variant-numeric: tabular-nums lining-nums;
}
.ph-count { font-weight: 400; letter-spacing: -.02em; }

@media (max-width: 1100px) {
  .tt { grid-template-columns: 2rem minmax(0, 16rem) minmax(0, 1fr) 6.5rem; }
  .tt-s { display: none; }
  .tt-key { display: none; }
  .cooc-g, .fig-pair { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .tdir { grid-auto-flow: row; grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .tdir a { grid-template-columns: 1.6em minmax(0, 1fr) 64px 2.2em; gap: var(--sp-2); }
  .td-n { font-size: var(--fs-lg); }
  .tt { grid-template-columns: 1.8rem minmax(0, 1fr) auto; gap: 4px 12px; }
  .tt-n { font-size: var(--fs-xl); }
  .tt-d { grid-column: 2 / -1; grid-row: 2; }
  .tt-c i { display: none; }
  .tp-i { position: static; margin-bottom: var(--sp-3); }
  .specs div { min-width: 40%; }
  .sec-bar > a, .sec-bar > .btn { margin-left: 0; }
}
@media (max-width: 640px) {
  .td-n { white-space: normal; }
  .tdir a { grid-template-columns: 1.6em minmax(0, 1fr) 48px 2.2em; }
  .ledger a { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 2.2em; }
  .lg-n { white-space: normal; }
  .ri a { white-space: normal; }
}

/* ═════════ index ledger: column heads, one lead row, groups, rows ═════════
   The grid columns are shared by .cols and .card so heads sit over their figures. */

.results-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-3); padding-bottom: var(--sp-3); min-height: 35px; }
.cols, .card { display: grid; grid-template-columns: 104px minmax(0, 1fr) 4.2rem 5.6rem 3.4rem 26px; column-gap: clamp(12px, 1.6vw, 22px); }
.cols { margin: 0 0 var(--sp-4); padding-bottom: var(--sp-2); border-bottom: var(--rule); }
.cols button { font: 400 var(--fs-xs)/1.3 var(--font-text); color: var(--fg-3); text-align: right; white-space: nowrap; transition: color var(--t-fast); }
.cols button:first-child { grid-column: 3; }
.cols button:hover { color: var(--fg); }
.cols button[aria-pressed=true] { color: var(--fg); font-weight: 600; }
.cols button[aria-pressed=true]::before { content: '\2193\00a0'; color: var(--accent); }
.cols button.up[aria-pressed=true]::before { content: '\2191\00a0'; }

.card, .rec { position: relative; isolation: isolate; }
.card { align-items: start; padding: 11px 0 12px; border-bottom: var(--rule-hair); min-width: 0; }
.card::before, .rec::before { content: ''; position: absolute; inset: 0 calc(var(--sp-3) * -1); z-index: -1; background: var(--bg-2); opacity: 0; transition: opacity var(--t-fast); }
.card:hover::before, .rec:hover::before { opacity: .7; }
.card:focus-within::before { opacity: 1; box-shadow: inset 4px 0 0 var(--accent); }
.card-play { display: block; width: 100%; }
.card-body { min-width: 0; max-width: 46rem; }
.card-title, .rec-title { font-size: var(--fs-lg); line-height: 1.2; font-weight: 700; letter-spacing: -.012em; margin-bottom: .2rem; overflow-wrap: anywhere; text-wrap: pretty; }
.card-title a, .rec-title a { transition: color var(--t-fast); }
.card:hover .card-title a, .card-title a:hover, .rec-title a:hover { color: var(--accent); }
.card-ch { color: var(--fg-3); }
.card .row-people { font-size: var(--fs-sm); margin-top: .15rem; }
.card .dur, .card .playmark { display: none; }
.card-m { display: none; font-size: var(--fs-xs); line-height: 1.4; color: var(--fg-3); margin: .2rem 0 0; }
.card-figs { display: contents; font-size: var(--fs-md); line-height: 1.3; font-weight: var(--fw-data); color: var(--fg-2); }
.card-figs span { padding-top: .1rem; text-align: right; white-space: nowrap; }
.card-figs span:last-child { color: var(--fg); }
.by-year .card-figs span:nth-child(2) { color: var(--fg-3); }
.card .badge, .card .hl-toggle { margin-top: .5rem; }
.card .fullconv { margin-top: .3rem; font-size: var(--fs-xs); }

.card-lead { grid-template-columns: minmax(0, 300px) minmax(0, 1fr) 26px; column-gap: clamp(16px, 2.2vw, 28px); padding: 0 0 var(--sp-4); border-bottom: 0; }
.card-lead .dur { display: block; }
.card-lead .playmark { display: block; }
.card-lead .thumb img { filter: none; }
.lead-l { font: 600 var(--fs-xs)/1.3 var(--font-text); color: var(--fg-2); margin: 0 0 .5rem; }
.card-lead .card-title { font-size: var(--fs-3xl); line-height: 1.08; font-weight: var(--fw-head); letter-spacing: var(--track-head); margin-bottom: .55rem; }
.card-lead .meta { font-size: var(--fs-sm); }
.card-lead .row-people { font-size: var(--fs-md); margin-top: .3rem; }
.card-lead .card-m { display: block; font-size: var(--fs-md); color: var(--fg-2); margin-top: .6rem; }

.grp { position: sticky; top: calc(var(--mast) + var(--toolbar)); z-index: 5; display: flex; align-items: baseline; gap: var(--sp-3); background: var(--bg); border-top: var(--rule-bold); padding: 9px 0 8px; margin-top: var(--sp-5); border-bottom: var(--rule-hair); }
.card-lead + .grp, .grp:first-child { margin-top: 0; }
.grp-l { font-size: var(--fs-3xl); line-height: 1; font-weight: 700; }
.grp-n { font: 400 var(--fs-sm)/1 var(--font-text); color: var(--fg-3); }

/* ═════════ start here: picks in order of views, each drawn in squares ═════════ */

.shl { border-top: var(--rule-bold); }
.sh { position: relative; display: grid; grid-template-columns: 1.8rem 12rem minmax(0, 1fr) 278px 4.2rem 26px; grid-template-areas: 'i l b u v a'; column-gap: clamp(14px, 2vw, 28px); align-items: start; padding: 15px 0 17px; border-bottom: var(--rule-hair); }
.sh-i { grid-area: i; font-size: var(--fs-sm); color: var(--fg-3); padding-top: .42rem; }
.sh-l { grid-area: l; font: 400 var(--fs-sm)/1.35 var(--font-text); color: var(--fg-2); margin: 0; padding-top: .38rem; }
.sh-b { grid-area: b; min-width: 0; }
.sh-b h3 { font-size: var(--fs-2xl); line-height: 1.12; letter-spacing: var(--track-head); margin-bottom: .3rem; text-wrap: pretty; }
.sh-b h3 a { transition: color var(--t-fast); }
.sh-b h3 a:hover { color: var(--accent); }
.sh-note { font: 400 var(--fs-xs)/1.45 var(--font-text); color: var(--fg-2); margin: .25rem 0 0; }
.sh-u { grid-area: u; padding-top: .5rem; line-height: 0; }
.units { display: block; height: auto; }
.sh-v { grid-area: v; text-align: right; font-size: var(--fs-2xl); line-height: 1.2; font-weight: 600; }
.sh .add { grid-area: a; margin-top: .2rem; }

/* ═════════ year ruler: sparse counts on a full-measure axis. The axis is the heavy rule. ═════════ */

.yr { display: grid; grid-template-columns: repeat(var(--yr-n), minmax(0, 1fr)); grid-template-rows: auto auto; grid-auto-flow: column; }
.yr-c { display: contents; }
.yr-u { display: flex; flex-wrap: wrap-reverse; align-content: flex-start; min-height: 20px; padding: 0 max(0px, calc(100% - var(--yr-per) * 15px)) var(--sp-1) 0; border-bottom: var(--rule-heavy); }
.yr-u > * { display: block; flex: 0 0 calc(100% / var(--yr-per)); max-width: 15px; aspect-ratio: 1; border: solid transparent; border-width: 1px 1px 0 0; background: var(--c-a) padding-box; transition: background-color var(--t-fast); }
.yr-u .u-open { opacity: .42; }
.yr-u a:hover, .yr-u a:focus-visible { background-color: var(--accent); opacity: 1; }
.yr-y { font-size: var(--fs-xs); line-height: 1; font-weight: var(--fw-data); color: var(--fg-3); opacity: .6; padding-top: var(--sp-2); }
.yr-y i { font-style: normal; }
.yr-c.on .yr-y { color: var(--fg); opacity: 1; font-weight: 700; }
.sw-open { background: var(--c-a); opacity: .42; }

/* person: name, one record line, the ruler, then topics and actions on one line */
.person > .wrap { padding-bottom: var(--sp-5); }
.person h1 { margin-bottom: .22em; }
.person-rec { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--sp-2) var(--sp-5); }
.person-rec .lede { max-width: none; margin: 0; }
.person-rec .queue-line { margin: 0; }
.person-yr { margin: clamp(26px, 4vw, 52px) 0 0; }
.person-yr figcaption { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--sp-1) var(--sp-4); margin-top: var(--sp-3); }
.person-yr .fig-t { font-size: var(--fs-sm); font-weight: 400; color: var(--fg-3); margin: 0; }
.person-topics { margin: var(--sp-4) 0 0; }
.person-topics .sc { color: var(--fg-3); font-weight: 400; margin-right: .4em; }

/* ═════════ overlooked: the distribution at full measure, note set in its empty corner ═════════ */

.ov > .wrap { padding-bottom: var(--sp-5); }
.ov h1 { margin-bottom: .12em; }
.ov-g { position: relative; }
.ov-note { position: absolute; right: 0; top: var(--sp-2); z-index: 1; width: min(23rem, 32%); }
.ov-note .lede { font-size: var(--fs-xl); line-height: 1.3; margin-bottom: .5em; }
.ov-cap { font: 400 var(--fs-sm)/1.45 var(--font-text); color: var(--fg-3); margin: 0 0 1.3em; }
.ov-fig { margin: 0; }
.sh-mid, .sh-tall { display: none; }
.scorehist text { font-size: var(--hfs); }
.scorehist .bn { fill: var(--fg); font-weight: 700; font-size: calc(var(--hfs) * 1.3); }
.scorehist .bl { fill: var(--fg-2); }
.br { fill: none; stroke-width: 2; }
.br-lo { stroke: var(--c-a); }
.br-mid { stroke: var(--c-mid); }
.br-hi { stroke: var(--c-b); }

/* ═════════ shared videos, narrow: each topic with its three nearest ═════════ */

.cooc-list { display: none; border-top: var(--rule-bold); }
.cooc-list li { padding: var(--sp-3) 0; border-bottom: var(--rule-hair); }
.cx-n { display: block; font: var(--fw-head) var(--fs-lg)/1.2 var(--font-display); letter-spacing: var(--track-head); margin-bottom: .3rem; }
.cx-n i { display: inline-block; width: 2.4em; font-style: normal; font-weight: 400; font-size: var(--fs-sm); letter-spacing: 0; color: var(--fg-3); }
.cx-p { display: flex; flex-wrap: wrap; gap: 2px var(--sp-3); padding-left: 2.1rem; font: 400 var(--fs-sm)/1.45 var(--font-text); color: var(--fg-2); }
.cx-p b { font-weight: var(--fw-data); color: var(--fg-3); }

/* ═════════ record rows: the ledger on list pages ═════════
   Same parts as the index row (.card): small still, heavy title, figures in the data face, the + in its own
   column. Each page sets its own columns with a modifier and prints them once in .rec-cols.
     .rec-yr     a dated record. Year column, still, title, length, views. Clips nest under their episode.
     .rec-lens   a ranked record on the ratio axis. Views, cohort median, ratio, then a strip whose centre
                 is the cohort median in every row, so the column reads as one chart. */

.rec-yr { --rec-cols: 4.2rem 148px minmax(0, 1fr) 4.2rem 3.4rem 26px; }
.rec-lens { --rec-cols: 1.8rem 104px minmax(0, 1fr) 3.4rem 7.6rem 3.6rem 220px 26px; }
.rec-beat { --rec-cols: 1.8rem 104px minmax(0, 1fr) 4rem 4rem 3.6rem 220px 26px; }
.rec, .rec-cols { display: grid; grid-template-columns: var(--rec-cols); column-gap: clamp(12px, 1.6vw, 22px); }
.rec { align-items: start; padding: 13px 0 14px; border-bottom: var(--rule-hair); min-width: 0; }
.rec-play { display: block; }
.rec-body { min-width: 0; }
.rec-title { margin-top: 0; }
.rec-body .meta a { color: var(--fg-2); }
.rec-body .meta a:hover { color: var(--accent); }
.rec .row-people { font-size: var(--fs-sm); margin-top: .15rem; }
.rec .dur, .rec .playmark { display: none; }
.rec-i { font-size: var(--fs-md); line-height: 1.5; font-weight: var(--fw-data); color: var(--fg-3); }
.rec-figs { display: contents; font-size: var(--fs-md); line-height: 1.3; font-weight: var(--fw-data); color: var(--fg-2); }
.rec-figs span { padding-top: .1rem; text-align: right; white-space: nowrap; }
.rec-figs span:last-child { color: var(--fg); }
.rec-figs small { display: block; font: 400 var(--fs-2xs)/1.3 var(--font-text); color: var(--fg-3); white-space: normal; margin-top: .15rem; }
.rec-m { display: none; font-size: var(--fs-xs); line-height: 1.4; color: var(--fg-3); margin: .25rem 0 0; }
.rec-m b { font-weight: 700; color: var(--fg); }
.rec-m b .sep { font-weight: 400; color: var(--fg-3); }
.rec-cols { align-items: baseline; margin: 0; padding: 9px 0 8px; border-bottom: var(--rule); font: 400 var(--fs-xs)/1.3 var(--font-text); color: var(--fg-3); }
.rec-cols > span { text-align: right; white-space: nowrap; }

/* dated record */
.rec-cols.rec-yr { border-top: var(--rule-bold); border-bottom: var(--rule-hair); }
.rec-cols h2 { grid-column: 1 / 3; font-size: var(--fs-3xl); line-height: 1; font-weight: 700; color: var(--fg); }
.role-n { margin: 0; font-size: var(--fs-sm); }
.rec-yr .rec-title { font-size: var(--fs-xl); line-height: 1.16; letter-spacing: var(--track-head); font-weight: var(--fw-head); margin-bottom: .3rem; }
.rec-y { margin: 0; font-size: var(--fs-xs); line-height: 1.3; color: var(--fg-3); }
.rec-y b { display: block; font-size: var(--fs-xl); line-height: 1.16; font-weight: 700; color: var(--fg); }
.rec-y.same b { display: none; }
.rec-nest { grid-column: 3 / -1; margin-top: var(--sp-3); }
.rec-nest summary { cursor: pointer; font: 400 var(--fs-sm) var(--font-text); color: var(--fg-2); list-style: none; display: flex; align-items: center; padding-bottom: var(--sp-1); }
.rec-nest summary::-webkit-details-marker { display: none; }
.rec-nest summary::after { content: '+'; margin-left: .6em; color: var(--accent); }
.rec-nest[open] summary::after { content: '\2212'; }
.rec-nest ol { border-left: var(--rule); }
.rec-sub { display: grid; grid-template-columns: minmax(0, 1fr) 4.2rem 3.4rem 26px; column-gap: clamp(12px, 1.6vw, 22px); align-items: start; padding: 6px 0 7px var(--sp-3); }
.rec-sub + .rec-sub { border-top: var(--rule-hair); }
.rec-sub .rec-title { font-size: var(--fs-base); line-height: 1.25; font-weight: 600; letter-spacing: 0; margin-bottom: .1rem; }
.rec-sub .rec-m { margin-top: .1rem; }

/* the lens: strips and the shared ratio axis */
.strip { display: block; overflow: visible; max-width: 100%; }
.s-axis { stroke: var(--line-2); stroke-width: 1; }
.s-dot { fill: var(--fg); opacity: .3; }
.s-med { stroke: var(--fg-2); stroke-width: 1; stroke-dasharray: 2 2; }
.s-me { fill: var(--accent); }
.s-me-halo { fill: color-mix(in srgb, var(--accent) 16%, transparent); stroke: var(--accent); stroke-width: .8; }
.rec-cols.rec-lens { position: sticky; top: var(--mast); z-index: 5; background: var(--bg); }
.rec-cols.rec-lens > span:first-child { grid-column: 4; }
.lens-axis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding-inline: calc(100% / 12); font-size: var(--fs-2xs); }
.lens-axis i { font-style: normal; text-align: center; white-space: nowrap; }
.lens-axis i:nth-child(3) { color: var(--fg-2); }
.rec-strip { position: relative; align-self: stretch; margin-block: -13px -14px; padding-block: 13px 14px; border-right: var(--rule-hair);
  background: linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / calc(100% / 6) 100%; }
.rec-strip::after { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; border-left: 1px dashed var(--fg-3); }
.rec-strip .gstrip { width: 100%; height: auto; }
.rec-strip .s-med { display: none; }
.rec-lens .rf-x { font-size: var(--fs-lg); line-height: 1.15; font-weight: 700; }
.is-lo .rf-x, .is-lo .rec-m b { color: var(--c-a); }
.is-hi .rf-x, .is-hi .rec-m b, .rec-beat .rf-x { color: var(--c-b); }
.is-lo .s-me { fill: var(--c-a); }
.is-lo .s-me-halo { stroke: var(--c-a); fill: color-mix(in srgb, var(--c-a) 22%, transparent); }
.is-hi .s-me { fill: var(--c-b); }
.is-hi .s-me-halo { stroke: var(--c-b); fill: color-mix(in srgb, var(--c-b) 22%, transparent); }

/* a clip against its episode: two bars on one scale */
.rec-beat .rec-strip { background: none; border: 0; }
.rec-beat .rec-strip::after { display: none; }
.pairbar { display: grid; gap: 3px; align-content: start; }
.pairbar i { display: block; height: 8px; min-width: 2px; background: var(--c-mid); margin-top: .25rem; }
.pairbar i + i { background: var(--c-b); margin-top: 0; }
.pair-key { display: flex; align-items: center; gap: .5em; text-align: left !important; }
.pair-key i { width: 9px; height: 9px; background: var(--c-mid); }
.pair-key i + i, .pair-key i:nth-of-type(2) { background: var(--c-b); margin-left: 1em; }
.rec-clip { display: flex; align-items: baseline; gap: .6em; font: 400 var(--fs-sm)/1.35 var(--font-text); color: var(--fg-2); margin: .5rem 0 0; padding-left: .7em; border-left: 3px solid var(--c-b); }
.rec-clip .sc { margin: 0; color: var(--fg-3); font-weight: 400; }
.rec-clip a { color: var(--fg); min-width: 0; }
.rec-clip a:hover { color: var(--accent); }
.rec-clip-d { color: var(--fg-3); font-family: var(--font-data); font-stretch: var(--stretch-data); }
.rec-clip .add { flex: none; width: 20px; height: 20px; font-size: var(--fs-md); align-self: center; }

/* ═════════ home: two lists side by side, the formats ledger under them ═════════
   People are set as running text. Overlooked is a short lens ledger. Unequal columns, one heavy rule. */

.duo { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gut); align-items: start; }
.duo .sec-bar { margin-bottom: var(--sp-3); gap: var(--sp-1) var(--sp-4); }
.duo .sec-bar h2 a { transition: color var(--t-fast); }
.duo .sec-bar h2 a:hover { color: var(--accent); }
.duo .ri { font-size: clamp(1.4rem, 2.2vw, 2rem); line-height: 1.2; }
.duo-more { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--sp-2) var(--sp-4); margin: var(--sp-4) 0 0; }
.ml-key { margin-left: auto; font: 400 var(--fs-xs)/1.4 var(--font-text); color: var(--fg-3); }
.mini-lens { border-top: var(--rule-bold); }
.mini-lens li { display: grid; grid-template-columns: minmax(0, 1fr) 132px 4.8rem; column-gap: var(--sp-4); align-items: center; padding: 9px 0 10px; border-bottom: var(--rule-hair); }
.mini-lens a { font-size: var(--fs-lg); font-weight: 600; line-height: 1.22; text-wrap: pretty; transition: color var(--t-fast); }
.mini-lens a:hover { color: var(--accent); }
.mini-lens .gstrip { width: 132px; height: auto; }
.mini-lens .s-me { fill: var(--c-a); }
.mini-lens .s-me-halo { stroke: var(--c-a); fill: color-mix(in srgb, var(--c-a) 22%, transparent); }
.ml-v { text-align: right; font-size: var(--fs-sm); color: var(--fg-2); white-space: nowrap; }

.fmts { margin-top: var(--sp-6); border-top: var(--rule-bold); padding-top: var(--sp-3); }
.fmts-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--sp-1) var(--sp-4); margin-bottom: var(--sp-3); }
.fmts-h h3 { font-size: var(--fs-xl); letter-spacing: var(--track-head); }
.fmts-h p { font: 400 var(--fs-sm)/1.45 var(--font-text); color: var(--fg-3); margin: 0; }
.cats-2 { display: grid; grid-auto-flow: column; grid-template-rows: repeat(var(--rows, 5), auto); grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gut); }
.cats-2 .cat { grid-template-columns: minmax(0, 1fr) 118px 4.6rem; grid-template-areas: 'n s c' 'd s c'; gap: 1px var(--sp-4); padding: 8px 0 10px; height: 100%; align-content: start; }
.cats-2 .cat-n { grid-area: n; font-size: var(--fs-base); font-weight: 600; line-height: 1.3; letter-spacing: 0; }
.cats-2 .cat-d { grid-area: d; font: 400 var(--fs-xs)/1.4 var(--font-text); }
.cats-2 .cat-s { display: block; grid-area: s; align-self: center; padding: 0; }
.cats-2 .cat-c { grid-area: c; font-size: var(--fs-2xs); }
.cats-2 .cat-c b { display: block; font-size: var(--fs-lg); font-weight: 600; margin: 0; }

/* ═════════ narrower than a desktop ═════════ */

@media (max-width: 1100px) {
  .sh { grid-template-columns: 1.8rem minmax(0, 1fr) 278px 4.2rem 26px; grid-template-areas: 'i l u v a' 'i b u v a'; }
  .sh-l { padding: 0 0 .25rem; }
  .sh-i { padding-top: .1rem; }
}
@media (max-width: 900px) {
  .ov-note { position: static; width: auto; max-width: 34rem; margin-bottom: var(--sp-4); }
  .sh-wide { display: none; }
  .sh-mid { display: block; }
  .sh { grid-template-columns: 1.8rem minmax(0, 1fr) 4.2rem 26px; grid-template-areas: 'i l v a' 'i b b b' 'i u u u'; }
  .sh-u { padding-top: .7rem; }
}

/* ═════════ phones. Laid out for 390px, not collapsed from the desktop. ═════════ */

@media (max-width: 760px) {
  .cooc-scroll { display: none; }
  .cooc-list { display: block; }
}
@media (max-width: 640px) {
  /* masthead: heavy wordmark with the random button, then the six sections set narrow across the measure.
     It scrolls away so the sticky search bar gets the top of the screen. */
  :root { --mast: 0px; --toolbar: 0px; }
  html { scroll-padding-top: var(--sp-3); }
  .mast { position: static; border-bottom: 0; }
  .mast-in { flex-wrap: wrap; height: auto; gap: 0 var(--sp-3); padding-top: var(--sp-3); }
  .wordmark { font-size: var(--fs-2xl); font-weight: var(--fw-display); font-stretch: var(--stretch-display); letter-spacing: var(--track-display); word-spacing: var(--word-display); }
  .marginal { padding: .3em .7em; font-size: var(--fs-xs); }
  .nav { order: 3; flex: 1 0 100%; justify-content: space-between; gap: 0; margin-top: var(--sp-3); border-top: var(--rule-bold); border-bottom: var(--rule-hair); }
  .nav a { font: 600 var(--fs-md)/1 var(--font-data); font-stretch: var(--stretch-data); color: var(--fg); padding: 11px 0 10px; border-bottom: 0; box-shadow: none; }
  .nav a[aria-current] { color: var(--accent); }

  /* index: no figure columns. The figures run under the title in the data face. */
  .cols { display: none; }
  .results-head { border-bottom: var(--rule); margin-bottom: var(--sp-3); }
  .card { grid-template-columns: 92px minmax(0, 1fr); column-gap: var(--sp-3); padding: 12px 0 13px; }
  .card-figs { display: none; }
  .card-m { display: block; }
  .card-title, .rec-title { font-size: var(--fs-base); line-height: 1.22; }
  .card .meta > .sep, .card-ch { display: none; }
  .card:not(.card-lead) .card-t .tlink ~ * { display: none; }
  .card-body, .rec-yr > .rec-body { grid-area: 1 / 2; }
  .card .add, .rec-yr > .add { grid-area: 1 / 2; align-self: end; justify-self: end; width: 30px; height: 30px; margin: 0 -4px -5px 0; color: var(--fg-2); }
  .card-body > :last-child, .rec-yr > .rec-body > :last-child { padding-right: 34px; }
  .card-lead { grid-template-columns: minmax(0, 1fr); row-gap: var(--sp-3); padding-bottom: var(--sp-4); }
  .card-lead .card-title { font-size: var(--fs-3xl); }
  .card-lead .card-body, .card-lead .add { grid-area: 2 / 1; }
  .card-lead .card-body > :last-child { padding-right: 0; }
  .card-lead .card-m { padding-right: 34px; }
  .grp { position: static; margin-top: var(--sp-4); }
  .grp-l { font-size: var(--fs-2xl); }

  /* start here: number, rule and figure on one line, the title under them, squares across the measure */
  .sh { grid-template-columns: 1.5rem minmax(0, 1fr) auto 26px; column-gap: var(--sp-2); padding: 13px 0 15px; }
  .sh-b h3 { font-size: var(--fs-xl); }
  .sh-v { font-size: var(--fs-xl); }
  .sh-u .units { width: 100%; max-width: 278px; }

  /* overlooked: the tall cut of the histogram, straight under the title. Lists come before the key. */
  .ov h1 { margin-bottom: .2em; }
  .ov-note { margin-bottom: var(--sp-3); }
  .ov-note .lede { font-size: var(--fs-lg); margin-bottom: .3em; }
  .ov-note .hero-cta { display: none; }
  .ov-cap { margin-bottom: 0; }
  .sh-mid { display: none; }
  .sh-tall { display: block; }

  /* person: two-digit years on the ruler */
  .person-yr { margin-top: var(--sp-4); }
  .yr-y { font-size: var(--fs-2xs); }
  .yr-y i { display: none; }
  .yr-u > * { max-width: 13px; }
}
@media (max-width: 350px) {
  .marginal { display: none; }
  .nav a { font-size: var(--fs-sm); }
}

/* ═════════ record rows and the home lists, narrower ═════════ */

@media (max-width: 1180px) {
  /* lens: views and cohort median move into one line under the title. Ratio and strip keep their columns. */
  .rec-lens, .rec-beat { --rec-cols: 1.8rem 104px minmax(0, 1fr) 3.6rem 220px 26px; }
  .rec-lens .rec-figs span:not(.rf-x) { display: none; }
  .rec-lens .rec-m { display: block; }
  .rec-lens .rec-m b { display: none; }
  .rec-cols.rec-lens > span { display: none; }
  .rec-cols.rec-lens > span:nth-of-type(3) { display: block; grid-column: 4; }
  .rec-cols.rec-lens > .lens-axis, .rec-cols.rec-lens > .pair-key { display: grid; grid-column: 5; }
  .rec-cols.rec-lens > .pair-key { display: flex; }
}
@media (max-width: 900px) {
  /* tablet: a smaller still, a tighter gap and the phone title size give the title its measure back. The strip keeps its width. */
  .rec-lens, .rec-beat { --rec-cols: 1.4rem 80px minmax(0, 1fr) 3.4rem 180px 26px; column-gap: var(--sp-3); }
  .rec-lens .rec-title { font-size: var(--fs-base); line-height: 1.22; }
  .rec-lens .m-c { display: none; }
  .rec-lens .m-d > .sep:first-child { display: none; }
  .rec-lens .m-t + .m-c + .m-d > .sep:first-child { display: inline; }
  .tabs-row { display: block; border-bottom: 0; }
  .tabs-row .tabs { border-bottom: var(--rule); margin-bottom: var(--sp-3); }
  .duo { grid-template-columns: minmax(0, 1fr); gap: var(--sp-6); }
  .cats-2 { grid-auto-flow: row; grid-template-rows: none; grid-template-columns: minmax(0, 1fr); }
  /* dated record: no year or figure columns. One line of figures under the title. */
  .rec-yr { --rec-cols: 148px minmax(0, 1fr) 26px; }
  .rec-yr .rec-y, .rec-yr .rec-figs, .rec-cols.rec-yr > span, .rec-sub .meta { display: none; }
  .rec-yr .rec-m { display: block; }
  .rec-cols.rec-yr { display: flex; gap: var(--sp-3); }
  .rec-nest { grid-column: 2 / -1; }
  .rec-sub { grid-template-columns: minmax(0, 1fr) 26px; }
}
@media (max-width: 760px) {
  .ml-key { margin-left: 0; }
  /* lens: the strip takes its own line across the measure and ends in the + */
  .rec-lens, .rec-beat { --rec-cols: 1.4rem 92px minmax(0, 1fr) 30px; row-gap: var(--sp-2); }
  .rec-lens .rec-body { grid-column: 3 / -1; }
  .rec-lens .rec-figs { display: none; }
  .rec-lens .rec-m b { display: inline; }
  .rec-lens .rec-strip { grid-column: 1 / 4; margin-block: 0 -14px; padding-block: 0 14px; }
  .rec-lens > .add { width: 30px; height: 30px; color: var(--fg-2); }
  .rec-beat .rec-strip { padding-bottom: 0; margin-bottom: 0; align-self: center; }
  .rec-cols.rec-lens > span:nth-of-type(3) { display: none; }
  .rec-cols.rec-lens > .lens-axis, .rec-cols.rec-lens > .pair-key { grid-column: 1 / 4; }
}
@media (max-width: 640px) {
  /* tabs: three equal cells, the count over the label. Every label reads in full at 360. */
  .tabs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--sp-3); overflow: visible; }
  .tabs a { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 2px; white-space: normal; padding-bottom: 10px;
    font: 600 var(--fs-md)/1.15 var(--font-data); font-stretch: var(--stretch-data); letter-spacing: 0; color: var(--fg-2); }
  .tabs a .n { font-size: var(--fs-2xl); font-weight: 700; line-height: 1.1; vertical-align: baseline; margin: 0; color: inherit; }
  .lens-key { align-items: flex-start; }

  .cats-2 .cat { grid-template-areas: 'n s c'; grid-template-columns: minmax(0, 1fr) 118px 2.6rem; column-gap: var(--sp-3); align-items: center; padding: 9px 0 10px; }
  .cats-2 .cat-d, .cats-2 .cat-c i { display: none; }
  .duo .ri a { white-space: nowrap; }
  .mini-lens li { grid-template-columns: minmax(0, 1fr) 4.4rem; row-gap: var(--sp-1); }
  .mini-lens a { font-size: var(--fs-base); }
  .mini-lens .gstrip { grid-row: 2; width: 132px; }
  .mini-lens .ml-v { grid-row: 1; grid-column: 2; align-self: start; }
  .fmts { margin-top: var(--sp-5); }

  .rec-yr { --rec-cols: 92px minmax(0, 1fr); column-gap: var(--sp-3); }
  .rec-yr .rec-title { font-size: var(--fs-base); line-height: 1.22; letter-spacing: -.012em; font-weight: 700; }
  .rec-cols h2 { font-size: var(--fs-2xl); }
  .rec-nest { grid-column: 1 / -1; }
  .rec-lens .rec-title { font-size: var(--fs-base); line-height: 1.22; }
  /* one topic, no channel. The date stays. */
  .rec .m-c, .rec .m-t a ~ * { display: none; }
  .rec .m-d > .sep:first-child { display: none; }
  .rec .m-t + .m-c + .m-d > .sep:first-child { display: inline; }
  .rec-clip { flex-wrap: wrap; gap: 0 .6em; }
  .rec-clip .sc { flex-basis: 100%; }
  .rec-clip a { flex: 1; }
  .rec-clip-d { display: none; }
}

/* an open syllabus: flat head, then the running order as a ledger.
     .rec-run    a record in a queue. Grip, position, still, title, year, length, start offset, then a strip
                 on one time axis for the whole list. Each bar starts where the one above ends, so the
                 column reads as one chart of the running time. The axis ticks are printed once in .rec-cols. */
.phero h1.sv-h1 { font-size: clamp(2.2rem, 5vw, 4.2rem); line-height: .98; overflow-wrap: anywhere; }
.phero .sv-sum { max-width: none; margin-bottom: var(--sp-3); }
.sv-intro { font: 400 var(--fs-base)/1.5 var(--font-text); color: var(--fg-2); max-width: 40em; margin: 0 0 var(--sp-3); overflow-wrap: anywhere; }
.sv-rec { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-3) var(--sp-5); margin-top: var(--sp-4); }
.sv-acts { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4); margin: 0; }
.phero + .sv-sec { padding-top: 0; }
.sv-stage { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--gut); align-items: start; margin-bottom: var(--sp-5); }
.sv-stage[hidden] { display: none; }
.sv-player iframe { display: block; width: 100%; height: 100%; border: 0; }
.sv-now { border-top: var(--rule-bold); padding-top: var(--sp-3); }
.sv-now-n { margin: 0 0 var(--sp-3); font: var(--fw-data) var(--fs-md)/1 var(--font-data); font-stretch: var(--stretch-data); color: var(--fg-3); }
.sv-now-n b { font-size: var(--fs-d4); font-weight: 700; color: var(--accent); margin-right: .1em; }
.sv-now-t { font-size: var(--fs-2xl); line-height: 1.15; font-weight: var(--fw-head); letter-spacing: var(--track-head); margin: 0 0 .4rem; overflow-wrap: anywhere; }
.sv-next { display: grid; grid-template-columns: 3rem minmax(0, 1fr); align-items: baseline; margin: var(--sp-4) 0 0; padding-top: var(--sp-3); border-top: var(--rule-hair); font: 400 var(--fs-sm)/1.35 var(--font-text); color: var(--fg-3); }
.sv-next button { text-align: left; font-weight: 600; color: var(--fg); transition: color var(--t-fast); }
.sv-next button:hover { color: var(--accent); }

.rec-run { --rec-cols: 14px 2rem 104px minmax(0, 1fr) 3rem 4.4rem 4.2rem 240px 26px; }
.rec-cols.rec-run { position: sticky; top: var(--mast); z-index: 5; background: var(--bg); border-top: var(--rule-bold); }
.rec-cols.rec-run h2 { grid-column: 1 / 4; white-space: nowrap; }
.rec-cols.rec-run > p { margin: 0; font-size: var(--fs-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sv-sort { font: inherit; color: var(--fg-2); text-align: right; white-space: nowrap; transition: color var(--t-fast); }
.sv-sort::before { content: '\2193\00a0'; color: var(--accent); }
.sv-sort:hover { color: var(--fg); }
.run-axis { position: relative; height: 1.3em; font-size: var(--fs-2xs); }
.run-axis i { position: absolute; left: var(--x); padding-left: var(--sp-1); font-style: normal; white-space: nowrap; }
.run-axis .run-end { left: auto; right: var(--sp-1); color: var(--fg-2); }
.sv-grip { width: 14px; height: 21px; margin-top: .2rem; cursor: grab; border-radius: var(--radius); background: radial-gradient(circle, var(--fg-3) 1.2px, transparent 1.5px) 0 0 / 7px 7px; opacity: .55; transition: opacity var(--t-fast); }
.sv-row:hover .sv-grip, .sv-grip:focus-visible { opacity: 1; background-image: radial-gradient(circle, var(--fg) 1.2px, transparent 1.5px); }
.run-n { margin: 0; font: 700 var(--fs-xl)/1.16 var(--font-data); font-stretch: var(--stretch-data); font-variant-numeric: lining-nums tabular-nums; color: var(--fg); }
.rec-run .rec-title { margin-bottom: .25rem; }
.run-strip { position: relative; align-self: stretch; margin-block: -13px -14px; border-right: var(--rule-hair);
  background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px var(--tick, 100%)); }
.run-strip::before { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--x); background: var(--bg-3); opacity: .55; }
.run-strip i { position: absolute; left: var(--x); top: 17px; width: max(var(--w), 3px); height: 12px; background: var(--c-a); transition: background var(--t-fast); }
.sv-state { margin: .3rem 0 0; font: 600 var(--fs-xs)/1.3 var(--font-text); color: var(--accent); }
.sv-state:empty { display: none; }
.sv-note { margin: .5rem 0 0; padding-left: .7em; border-left: 3px solid var(--c-a); font-size: var(--fs-sm); line-height: 1.4; color: var(--fg-2); max-width: 40rem; overflow-wrap: anywhere; }
.sv-row.is-now .run-n, .sv-row.is-now .rec-title a { color: var(--accent); }
.sv-row.is-now .run-strip i { background: var(--fg); }
.sv-row.is-now .thumb img { filter: none; }
.sv-row.is-watched:not(.is-now) .thumb img { opacity: .45; }
.sv-row.is-watched:not(.is-now) .run-strip i { opacity: .42; }
.sv-row.is-watched:not(.is-now) .sv-state { color: var(--fg-3); }
.sv-row.is-gone { opacity: .5; }
.sv-row.dragging { opacity: .35; }
.sv-row.drop-before { box-shadow: 0 -2px 0 var(--accent); }
.sv-row.drop-after { box-shadow: 0 2px 0 var(--accent); }
@media (max-width: 1180px) {
  .rec-run { --rec-cols: 14px 2rem 104px minmax(0, 1fr) 3rem 4.4rem 200px 26px; }
  .rec-run .rec-figs span:nth-child(3), .rec-cols.rec-run > span { display: none; }
}
@media (max-width: 900px) {
  /* no grip and no figure columns. Figures run under the title. The strip takes the foot of the row. */
  .rec-run { --rec-cols: 2rem 104px minmax(0, 1fr) 26px; row-gap: var(--sp-3); }
  .rec-run .sv-grip, .rec-run .rec-figs { display: none; }
  .rec-run > .rec-body { grid-area: 1 / 3; }
  .rec-run > .add { grid-area: 1 / 4; }
  .rec-run .rec-m { display: block; }
  .rec-cols.rec-run { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--sp-1) var(--sp-3); position: static; }
  .rec-cols.rec-run > p { flex: 1 0 100%; order: 5; white-space: normal; }
  .rec-cols.rec-run h2 { margin-right: auto; }
  .rec-cols.rec-run .run-axis { flex: 1 0 100%; order: 6; margin-top: var(--sp-2); }
  .rec-run .run-strip { grid-column: 1 / -1; height: 6px; margin-block: 0 -14px; border-right: 0; background: var(--bg-2); }
  .rec-run .run-strip::before { display: none; }
  .rec-run .run-strip i { top: 0; height: 100%; }
  .sv-stage { grid-template-columns: minmax(0, 1fr); gap: var(--sp-3); }
  .sv-now { border-top: 0; padding-top: 0; }
  .sv-now-n b { font-size: var(--fs-3xl); }
}
@media (max-width: 640px) {
  .rec-run { --rec-cols: 1.3rem 92px minmax(0, 1fr); column-gap: var(--sp-3); }
  .rec-run .run-n { font-size: var(--fs-base); line-height: 1.22; color: var(--fg-2); }
  .rec-run > .rec-body { grid-area: 1 / 3; }
  .rec-run > .add { grid-area: 1 / 3; align-self: end; justify-self: end; width: 30px; height: 30px; margin: 0 -4px -5px 0; color: var(--fg-2); }
  .rec-run > .rec-body > .rec-m { padding-right: 34px; }
  .sv-rec { align-items: flex-start; }
  .sv-acts { gap: var(--sp-2) var(--sp-3); }
}
