/*
  Direction: a printed broadcast ledger rather than a dashboard of cards.
  Warm paper-and-ink neutrals, hairline rules instead of boxes, serif display numerals,
  and one accent taken from the channel's own pink avatar.
*/
:root {
  color-scheme: dark;
  --bg: #100e0c;
  --raised: #181512;
  --rule: rgba(244, 233, 216, 0.11);
  --rule-strong: rgba(244, 233, 216, 0.22);
  --ink: #f4ede1;
  --ink-2: #b9ad9c;
  --ink-3: #85796a;
  --accent: #ff5d92;
  --accent-soft: rgba(255, 93, 146, 0.16);
  --on-accent: #1a0710;
  --up: #86d9ab;
  --down: #ff9478;
  --glow: rgba(255, 93, 146, 0.10);

  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --text: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #f5efe4;
    --raised: #fbf7ef;
    --rule: rgba(40, 30, 18, 0.13);
    --rule-strong: rgba(40, 30, 18, 0.28);
    --ink: #1c1712;
    --ink-2: #5a5044;
    --ink-3: #85796a;
    --accent: #d11f63;
    --accent-soft: rgba(209, 31, 99, 0.12);
    --on-accent: #fff6f9;
    --up: #17734a;
    --down: #b53a1c;
    --glow: rgba(209, 31, 99, 0.07);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background:
    radial-gradient(900px 480px at 12% -8%, var(--glow), transparent 70%),
    var(--bg);
  background-repeat: no-repeat;
  color: var(--ink);
  font: 15px/1.5 var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
i { font-style: normal; }
img { display: block; }

main {
  max-width: 1160px;
  margin: 0 auto;
  padding: 20px 32px 72px;
}

/* ── Shared type ─────────────────────────────────────────── */

.label {
  font: 600 11px/1.3 var(--text);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.label span { color: var(--ink-3); font-weight: 500; margin-left: 0.5em; }

.heading {
  font: 400 26px/1.15 var(--display);
  font-variation-settings: "opsz" 48;
  letter-spacing: -0.01em;
}

.hint, .note { font-size: 13px; color: var(--ink-3); }
.hint { margin-top: 4px; }
.empty { color: var(--ink-3); padding: 16px 0; }
.muted { color: var(--ink-3); }

.delta {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.delta span { font-weight: 400; color: var(--ink-3); margin-left: 0.35em; }
.delta.up { color: var(--up); }
/* All time has nothing earlier to compare with, so the up/down/no-change lines are dropped. */
.no-compare .delta:is(.up, .down, .flat):not(.keep) { display: none; }
.delta.down { color: var(--down); }

/* ── Top bar ─────────────────────────────────────────────── */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule);
}

.brand {
  font: 600 11px/1 var(--text);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.brand span { color: var(--accent); margin: 0 0.3em; }

.ranges {
  display: flex;
  gap: 2px;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 3px;
  border: 1px solid var(--rule);
  border-radius: 999px;
}
.ranges a {
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: color 160ms ease, background-color 160ms ease, transform 140ms var(--ease-out);
}
.ranges a:active { transform: scale(0.97); }
.ranges a[aria-current="page"] { background: var(--ink); color: var(--bg); }
.ranges a:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .ranges a:not([aria-current="page"]):hover { color: var(--ink); background: var(--rule); }
}

/* ── Masthead ────────────────────────────────────────────── */

.mast {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 44px 0 40px;
}

.avatar {
  width: 112px;
  height: 112px;
  border-radius: 28px;
  object-fit: cover;
  background: var(--raised);
}
.avatar.is-live { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--accent); }

.eyebrow {
  font: 600 11px/1.3 var(--text);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

h1 {
  margin-top: 6px;
  font: 400 clamp(44px, 7vw, 84px)/0.95 var(--display);
  font-variation-settings: "opsz" 144;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}

.bio {
  margin-top: 14px;
  max-width: 56ch;
  color: var(--ink-2);
  text-wrap: pretty;
}

.onair {
  width: 264px;
  padding: 18px 20px 20px;
  border-radius: 20px;
  background: var(--raised);
  border: 1px solid var(--rule);
}
.onair-flag {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 700 11px/1 var(--text);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.onair-flag i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-soft);
  animation: pulse 2s ease-out infinite;
}
.onair-count {
  margin-top: 12px;
  font: 400 56px/1 var(--display);
  font-variation-settings: "opsz" 144;
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: -0.03em;
}
.onair-unit { font-size: 13px; color: var(--ink-3); }
.onair-title {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
  font-weight: 600;
  line-height: 1.35;
}
.onair-meta { margin-top: 2px; font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 var(--accent-soft); }
  70%, 100% { box-shadow: 0 0 0 9px transparent; }
}

.notice {
  margin-bottom: 24px;
  padding: 12px 16px;
  border: 1px solid var(--rule-strong);
  border-radius: 12px;
  color: var(--ink-2);
}

/* ── Section tabs: sit on the rule that opens the page body ─ */

.tabs { display: flex; align-items: stretch; }
.tabs .views { flex: 1 1 auto; min-width: 0; }

/* Always in view: every recorded figure on the page starts at this moment. */
.since {
  display: flex;
  align-items: baseline;
  gap: 0.45em;
  padding: 0 0 14px 24px;
  border-bottom: 1px solid var(--rule-strong);
  font: 500 12px/1 var(--text);
  color: var(--ink-3);
  white-space: nowrap;
}
.since i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); transform: translateY(-1px); }
.since time { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }

.coverage {
  max-width: 96ch;
  padding-top: 14px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-3);
  text-wrap: pretty;
}
.coverage time { color: var(--ink-2); font-weight: 600; }

.views {
  display: flex;
  gap: 28px;
  border-bottom: 1px solid var(--rule-strong);
  overflow-x: auto;
  scrollbar-width: none;
}
.views a {
  padding: 0 0 14px;
  margin-bottom: -1px;
  border-bottom: 2px solid transparent;
  color: var(--ink-3);
  font: 600 12px/1 var(--text);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: color 160ms ease, border-color 160ms ease;
}
.views a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
@media (hover: hover) and (pointer: fine) {
  .views a:not([aria-current="page"]):hover { color: var(--ink-2); border-bottom-color: var(--rule-strong); }
}

/* ── Hero: one dominant figure beside a supporting panel ─── */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 7fr);
  gap: 40px;
  padding: 36px 0 40px;
}

.figure {
  margin: 10px 0 6px -0.04em;
  font: 300 clamp(96px, 14vw, 168px)/0.86 var(--display);
  font-variation-settings: "opsz" 144;
  font-variant-numeric: lining-nums;
  letter-spacing: -0.05em;
}
/* Longer headlines ($1,234 or #1,024) step down so they stay on one line. */
.figure.long { font-size: clamp(72px, 10vw, 124px); line-height: 0.95; }

.trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 36px;
  border-top: 1px solid var(--rule);
}
.trio > div { padding: 16px 16px 0 0; }
.trio > div + div { padding-left: 16px; border-left: 1px solid var(--rule); }
.trio dt { font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.trio dd:first-of-type {
  margin-top: 2px;
  font: 400 32px/1.1 var(--display);
  font-variation-settings: "opsz" 60;
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: -0.02em;
}
.trio .delta { margin-top: 4px; }

.chart, .panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 20px 22px 16px;
  border-radius: 20px;
  background: var(--raised);
  border: 1px solid var(--rule);
}
.panel { padding-bottom: 20px; }
.panel .shares { margin-top: 22px; }

.method {
  margin-top: auto;
  padding-top: 18px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink-3);
  text-wrap: pretty;
}
.method.wide { margin-top: 24px; padding-top: 0; max-width: 78ch; }

/* Channels either side of this one in the live listing. */
.around { margin-top: 14px; }
.around li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 8px;
  padding: 10px 12px;
  margin: 0 -12px;
  border-radius: 10px;
  font-variant-numeric: tabular-nums;
}
.around li + li { box-shadow: 0 -1px 0 var(--rule); }
.around .pos { font: italic 400 18px/1 var(--display); color: var(--ink-3); }
.around .who { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); }
.around b { font-weight: 600; color: var(--ink-2); }
.around .self { background: var(--accent-soft); box-shadow: none; }
.around .self + li { box-shadow: none; }
.around .self .pos { color: var(--accent); }
.around .self .who, .around .self b { color: var(--ink); font-weight: 700; }
.chart figcaption { display: flex; flex-direction: column; gap: 4px; }
.chart-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.plot {
  position: relative;
  flex: 1;
  min-height: 220px;
  margin-top: 18px;
  cursor: crosshair;
  touch-action: pan-y;
}
.plot.empty {
  display: grid;
  place-items: center;
  padding: 0 12%;
  text-align: center;
  cursor: default;
  border-top: 1px dashed var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
}
.plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.plot .gridline { stroke: var(--rule); stroke-width: 1; vector-effect: non-scaling-stroke; }
.plot .line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.fade-top { stop-color: var(--accent); stop-opacity: 0.26; }
.fade-bottom { stop-color: var(--accent); stop-opacity: 0; }

.grid-label {
  position: absolute;
  left: 0;
  z-index: 1;
  padding: 3px 0;
  font-size: 11px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}

.grid-label.floor { bottom: 0; }
.plot[data-step] .line { stroke-linejoin: miter; stroke-linecap: butt; }

.cursor, .dot, .tip { position: absolute; pointer-events: none; }
.cursor { top: 0; bottom: 0; width: 1px; background: var(--rule-strong); }
.dot {
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 2px var(--raised);
}
.tip {
  top: 0;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--bg);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  transform: translate(-50%, calc(-100% - 8px));
}
.tip small { display: block; font-weight: 400; opacity: 0.7; }

.axis {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--rule-strong);
  font-size: 11px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

/* ── Ledger strip ────────────────────────────────────────── */

.ledger {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
}
.ledger > div { padding: 20px 18px 20px 0; min-width: 0; }
.ledger > div + div { padding-left: 18px; border-left: 1px solid var(--rule); }
.ledger .value {
  margin-top: 8px;
  font: 400 36px/1.1 var(--display);
  font-variation-settings: "opsz" 72;
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: -0.025em;
}
.ledger .delta { margin-top: 6px; }

/* ── Streams + side column ───────────────────────────────── */

.columns {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 56px;
  padding: 48px 0;
}
.side { display: grid; gap: 44px; align-content: start; }

.streams ol { margin-top: 18px; border-top: 1px solid var(--rule); }
.streams li { border-bottom: 1px solid var(--rule); }
.streams .row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 112px 64px 10px;
  gap: 18px;
  align-items: center;
  padding: 13px 0;
  color: inherit;
  text-decoration: none;
}
.streams .row time { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* Rows with a recorded viewer curve are links that open it underneath. */
.streams a.row { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.streams a.row:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.streams a.row:active .what { opacity: 0.7; }
.streams .chevron {
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--ink-3);
  border-bottom: 1.5px solid var(--ink-3);
  transform: rotate(-45deg);
  transition: transform 200ms var(--ease-out), border-color 150ms ease;
}
.streams .open .chevron { transform: translateY(-2px) rotate(45deg); border-color: var(--accent); }
.streams .open .title { color: var(--accent); }
@media (hover: hover) and (pointer: fine) {
  .streams .title { transition: color 150ms ease; }
  .streams a.row:hover .title { color: var(--accent); }
  .streams a.row:hover .chevron { border-color: var(--accent); }
}

.streams .detail { padding: 6px 0 18px; }
.streams .detail .label span { text-transform: none; letter-spacing: 0.02em; font-size: 12px; }
.streams .detail .plot { flex: none; height: 190px; min-height: 0; margin-top: 14px; }
.streams .detail .dot { box-shadow: 0 0 0 2px var(--bg); }
.streams .title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.streams .length { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.streams .length i {
  display: block;
  height: 3px;
  min-width: 3px;
  margin-top: 6px;
  border-radius: 2px;
  background: var(--ink-3);
}
.streams .live-tag { color: var(--accent); }
.streams .live-tag + i { background: var(--accent); }
.streams .avg {
  text-align: right;
  font: 400 22px/1 var(--display);
  font-variation-settings: "opsz" 36;
  font-variant-numeric: lining-nums tabular-nums;
}
.streams .avg span {
  display: block;
  margin-top: 3px;
  font: 500 10px/1 var(--text);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.shares { margin-top: 16px; display: grid; gap: 16px; }
.shares li { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: baseline; }
.shares .name { font-weight: 600; }
.shares .pct {
  font: 400 22px/1 var(--display);
  font-variation-settings: "opsz" 36;
  font-variant-numeric: lining-nums tabular-nums;
}
.shares .bar { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: var(--rule); }
.shares .bar i { display: block; height: 100%; min-width: 3px; border-radius: 3px; background: var(--accent); }

.days {
  display: grid;
  grid-template-columns: repeat(var(--n), minmax(0, 1fr));
  gap: 2px;
  align-items: end;
  height: 64px;
  margin-top: 16px;
  padding-bottom: 1px;
  border-bottom: 1px solid var(--rule-strong);
}
.days i {
  height: max(3px, var(--h));
  border-radius: 2px 2px 0 0;
  background: var(--rule);
}
.days i.on { background: var(--accent); }
@media (hover: hover) and (pointer: fine) {
  .days i { transition: opacity 120ms ease; }
  .days:hover i { opacity: 0.45; }
  .days i:hover { opacity: 1; }
}

.habits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 24px;
  margin-top: 22px;
}
.habits dt { font-size: 13px; color: var(--ink-3); }
.habits dd {
  font: 400 26px/1.15 var(--display);
  font-variation-settings: "opsz" 48;
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: -0.015em;
}

/* ── Leaderboards ────────────────────────────────────────── */

.boards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px;
  padding: 48px 0;
  border-top: 1px solid var(--rule-strong);
}
.board { margin-top: 16px; counter-reset: rank; }
.board li {
  counter-increment: rank;
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 8px;
  padding: 11px 0 12px;
  border-bottom: 1px solid var(--rule);
}
.board li::before {
  content: counter(rank);
  font: italic 400 20px/1 var(--display);
  font-variant-numeric: lining-nums;
  color: var(--ink-3);
}
.board li:first-child::before { color: var(--accent); }
/* Each row's share of the leader, drawn on the rule beneath it. */
.board li::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: var(--w);
  height: 2px;
  background: var(--accent);
}
.board span { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board b { font-weight: 600; font-variant-numeric: tabular-nums; }
.board small { margin-left: 0.5em; font-size: 12px; font-weight: 400; color: var(--ink-3); }

/* ── Category table ──────────────────────────────────────── */

/* Names with a time each (new followers), in columns so a long list stays short on the page. */
.names {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 44px;
  margin-top: 16px;
  border-top: 1px solid var(--rule-strong);
}
.names li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
}
.names b { min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.names time { flex: none; font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
@media (max-width: 960px) { .names { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .names { grid-template-columns: minmax(0, 1fr); } }

/* Movements in a total: the sign carries the meaning, the colour only reinforces it. */
.gain { color: var(--up); }
.loss { color: var(--down); }

.performance { padding: 48px 0; border-top: 1px solid var(--rule-strong); }
.performance .hint { max-width: 78ch; text-wrap: pretty; }
/* When the hero is followed directly by a table section, as on Rankings. */
.hero + .performance { margin-top: 8px; }
td time { color: var(--ink-2); }
table { width: 100%; margin-top: 16px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { padding: 13px 0; text-align: right; border-bottom: 1px solid var(--rule); }
th {
  font: 600 11px/1.3 var(--text);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  border-bottom-color: var(--rule-strong);
}
td:first-child { font-weight: 600; }
th:first-child, td:first-child { text-align: left; }
/* Keep neighbouring number columns from touching on narrow screens. */
th + th, td + td { padding-left: 14px; }
/* A wording column (stream title) between the numbers: left-aligned, and it gives way first on narrow screens. */
th.text, td.text {
  width: 46%;
  max-width: 0;
  padding: 13px 16px 13px 24px;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
td.text { color: var(--ink-2); }
td small { display: block; margin-top: 2px; font-size: 12px; font-weight: 400; color: var(--ink-3); }
td.text.muted { color: var(--ink-3); }

footer {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--rule-strong);
  font-size: 13px;
  color: var(--ink-3);
}
footer p:first-child { max-width: 72ch; text-wrap: pretty; }
footer p:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ── First-load entrance only (never on the 30s refresh) ─── */

@media (prefers-reduced-motion: no-preference) {
  .intro .reveal {
    animation: rise 520ms var(--ease-out) both;
    animation-delay: calc(var(--i) * 60ms);
  }
  .intro .plot svg { animation: draw 900ms var(--ease-out) 240ms both; }
  /* Opening a past stream: set by the page script for that one swap, so the 30s refresh never replays it. */
  .opening .detail { animation: rise 260ms var(--ease-out) both; }
  .opening .detail .plot svg { animation: draw 700ms var(--ease-out) 80ms both; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@keyframes draw {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}
@media (prefers-reduced-motion: reduce) {
  .onair-flag i { animation: none; }
}

/* ── Smaller screens ─────────────────────────────────────── */

@media (max-width: 960px) {
  main { padding: 16px 20px 56px; }
  .mast { grid-template-columns: auto minmax(0, 1fr); gap: 20px; padding: 32px 0; }
  .views { gap: 22px; }
  .avatar { width: 80px; height: 80px; border-radius: 22px; }
  .onair { grid-column: 1 / -1; width: auto; }
  .hero, .columns, .boards { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .ledger { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ledger > div:nth-child(4) { padding-left: 0; border-left: 0; }
  .ledger > div:nth-child(n + 4) { border-top: 1px solid var(--rule); }
}

@media (max-width: 760px) {
  /* The tab row has no room for it, so the recording date takes its own line under the tabs. */
  .tabs { flex-direction: column; }
  .since { padding: 12px 0; border-bottom-color: var(--rule); }
}

@media (max-width: 560px) {
  main { padding: 14px 16px 48px; }
  .topbar { flex-wrap: wrap; }
  .ranges a { padding: 6px 9px; font-size: 12.5px; }
  .mast { grid-template-columns: minmax(0, 1fr); }
  .trio > div { padding-right: 8px; }
  .trio > div + div { padding-left: 10px; }
  .trio dd:first-of-type { font-size: 26px; }
  .ledger { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ledger > div:nth-child(4) { padding-left: 18px; border-left: 1px solid var(--rule); }
  .ledger > div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .ledger > div:nth-child(n + 3) { border-top: 1px solid var(--rule); }
  .streams .row { grid-template-columns: minmax(0, 1fr) 72px 52px 10px; gap: 12px; }
  .streams .row time { display: none; }
  .streams .detail .plot { height: 160px; }
  footer { flex-direction: column; gap: 8px; }
}
