/* Deep Cut Explorer. "Liner notes": the Steve Murray house style (GameVibe / Foundry: warm paper,
   navy ink, Outfit 800 display, DM Mono labels and numbers, DM Sans body, quiet dashed grids) with
   record-sleeve touches: a back-cover tracklist, a hype sticker, a shelf of album sleeves.
   Broadsheet pass (ROADMAP Phase 4): one sheet of paper, no floating cards. A module is marked by a 3px ink rule
   across its top (teal for the cult track, amber for sleeper hits), rows by hairlines, and nothing casts a shadow
   except what really sits above the page (the tooltip, the track panel, an album jacket).
   Chart colours were checked with the dataviz validator (teal/amber pass CVD and contrast in both modes);
   "other" tracks are a deliberate neutral, carried by the legend and the table. */
:root {
  --paper: #f5f2ed;          /* GameVibe page */
  --paper-2: #ece7df;        /* subtle panels, formula blocks */
  --surface: #f5f2ed;        /* = paper: modules sit on the page, not on cards */
  --ink: #1a2f4a;            /* brief navy, next to GameVibe #1a2535 */
  --ink-2: #3d4b5e;
  --ink-3: #5f6d80;
  --rule: rgba(26, 47, 74, .09);
  --rule-2: rgba(26, 47, 74, .18);
  --grid: rgba(26, 47, 74, .16);

  --teal: #1D9E75;           /* the cult-track mark */
  --teal-ink: #0e7c5b;       /* GameVibe green: teal that carries text */
  --teal-soft: #e3f3ec;
  --amber: #EF9F27;          /* singles */
  --amber-ink: #8a5a08;
  --amber-soft: #fcefd9;
  --other: #74869d;          /* neutral context tracks; 3.3:1 on paper (non-text minimum 3:1) */
  --stamp: #0e7c5b;          /* fill behind white text (sticker, Deep Cut tag): 5.2:1 */
  --other-soft: #e8edf3;
  --ramp-early: #8aa0bf;     /* the artist grid's albums in release order: one ordinal ramp, validated on paper (2.39:1) */
  --ramp-late: #1a2f4a;
  --lastfm: #d51007;
  --danger: #b3261e;

  --on-ink: #f5f2ed;
  --shadow: none;
  --radius: 2px;
  --gutter: 16px;

  --display: "Outfit", "DM Sans", system-ui, sans-serif;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "DM Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}

/* Late-night listening room. Its own steps, validated against the dark surface, not an inversion. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #10161f;
    --paper-2: #1b2430;
    --surface: #10161f;
    --ink: #e9e4da;
    --ink-2: #bcc3cc;
    --ink-3: #8d97a4;
    --rule: rgba(233, 228, 218, .09);
    --rule-2: rgba(233, 228, 218, .18);
    --grid: rgba(233, 228, 218, .14);
    --teal: #22A87D;
    --teal-ink: #4fd1a3;
    --teal-soft: rgba(34, 168, 125, .16);
    --amber: #C88020;
    --amber-ink: #f0b865;
    --amber-soft: rgba(200, 128, 32, .18);
    --other: #6e8199;
    --other-soft: rgba(110, 129, 153, .22);
    --ramp-early: #4f6788;   /* its own steps on the dark surface (3.14:1), earliest darkest */
    --ramp-late: #d7e0ec;
    --stamp: #157a5a;
    --lastfm: #ff6b5e;
    --on-ink: #10161f;
    --shadow: none;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #10161f; --paper-2: #1b2430; --surface: #10161f;
  --ink: #e9e4da; --ink-2: #bcc3cc; --ink-3: #8d97a4;
  --rule: rgba(233, 228, 218, .09); --rule-2: rgba(233, 228, 218, .18); --grid: rgba(233, 228, 218, .14);
  --teal: #22A87D; --teal-ink: #4fd1a3; --teal-soft: rgba(34, 168, 125, .16);
  --amber: #C88020; --amber-ink: #f0b865; --amber-soft: rgba(200, 128, 32, .18);
  --ramp-early: #4f6788; --ramp-late: #d7e0ec;
  --other: #6e8199; --other-soft: rgba(110, 129, 153, .22); --stamp: #157a5a; --lastfm: #ff6b5e;
  --on-ink: #10161f; --shadow: none;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
/* Anything scrolled into view (a Next-questions jump, a focused sort tile) clears the sticky header (ENTRYWAY_FIXES_BRIEF H). */
html { scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.55 var(--body);
  overflow-x: hidden;
}
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--teal-ink); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: var(--radius); }
button { font: inherit; color: inherit; }
.num, td { font-variant-numeric: tabular-nums; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 var(--gutter); }
/* A laptop gets the room and a monitor isn't a ribbon (SITE_PASS_BRIEF 1); prose keeps its 68ch measure inside. */
@media (min-width: 1120px) { .wrap, .search-inner { max-width: min(1320px, 94vw); } }

/* Mono label: the house eyebrow */
.label, .eyebrow {
  font: 500 11px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3);
}

/* Synthetic / error banner: loud on purpose, never ships (validate.py refuses synthetic data) */
.banner {
  background: var(--danger); color: #fff; text-align: center;
  font: 500 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  padding: 10px var(--gutter);
}

/* ---------- Header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 58px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { width: 28px; height: 28px; flex: none; }
.brand-name { font: 800 19px/1 var(--display); letter-spacing: -.01em; white-space: nowrap; }
.site-nav { display: flex; gap: 18px; }
.site-nav a {
  white-space: nowrap;
  font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3);
  text-decoration: none; padding: 8px 0; border-bottom: 1.5px solid transparent;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 34px 0 10px; margin: 0 calc(-1 * var(--gutter)); padding-left: var(--gutter); padding-right: var(--gutter); }
.hero .eyebrow { margin: 0 0 12px; }
.hero h1 {
  font: 800 clamp(2.1rem, 8.4vw, 3.9rem)/.98 var(--display); letter-spacing: -.035em; text-transform: uppercase;
  margin: 0 0 14px; max-width: 13ch; text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--teal-ink); display: block; }
.hero p.lede { position: relative; margin: 0; color: var(--ink-2); max-width: 52ch; font-size: 17px; }
/* The hero (Steve, 25 Sep): headline, one sentence, a large search field, then the row of eight artists (FRONT_ROW_BRIEF). */
.hero-search { position: relative; z-index: 5; margin: 16px 0 6px; max-width: 560px; }
.hero-search.search-form input { min-height: 54px; padding: 0 16px; font-size: 19px; }
.hero-search.search-form input::placeholder { color: var(--ink-3); opacity: 1; }
.hero-drop { position: absolute; left: 0; right: 0; top: 100%; margin-top: 4px; padding: 4px 8px 8px; background: var(--paper);
  border: 1px solid var(--rule-2); box-shadow: 0 14px 28px -18px rgba(16, 22, 31, .45); }
.hero-drop[hidden] { display: none; }
.lede-defs { margin: 28px 0 10px; color: var(--ink-2); max-width: 62ch; font-size: 16px; line-height: 1.55; }
.lede-defs a { white-space: nowrap; }
/* The row (FRONT_ROW_BRIEF): "Try:" and eight artist links on one line under the search. It never wraps: on a phone it
   scrolls sideways inside itself (no scrollbar), with a fade at the right edge while there is more to the right. */
.front-row { position: relative; display: flex; align-items: center; gap: 10px; margin: 4px 0 0; }
.front-row[hidden] { display: none; }
.front-row .label { flex: none; margin: 0; }
/* .tabs.row-tabs: not the artist and album pages' .tabs phone rule, which bleeds a wrapping row into the gutters. */
.tabs.row-tabs { flex: 1 1 auto; min-width: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0; padding: 2px 0; }
.row-tabs::-webkit-scrollbar { display: none; }
.row-tabs.has-more { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); }
.row-tabs li { flex: none; }
a.tab { display: inline-flex; align-items: center; min-height: 40px; white-space: nowrap; text-decoration: none; }
a.tab:focus-visible { outline: 2px solid var(--teal); outline-offset: -2px; }
@media (max-width: 699px) { .front-row { margin-right: calc(-1 * var(--gutter)); } .tabs.row-tabs { padding-right: var(--gutter); } }
.hero-disc { display: none; }
@media (min-width: 760px) {
  .hero { padding-top: 54px; padding-bottom: 18px; }
  /* The disc is clipped by its own box, not the hero's, so the search matches can drop over the shelf. */
  .hero-disc { display: block; position: absolute; inset: 0; overflow: hidden; pointer-events: none; opacity: .9; }
  .hero-disc svg { position: absolute; right: -70px; top: 22px; width: 300px; height: 300px; }
  .hero-disc .groove { fill: none; stroke: var(--ink); stroke-opacity: .07; }
  .hero-disc .disc { fill: var(--ink); fill-opacity: .035; }
  .hero-disc .center { fill: var(--teal); }
  .hero-disc .hole { fill: var(--paper); }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-disc svg { animation: spin 18s linear infinite; transform-origin: 50% 50%; }
  @keyframes spin { to { transform: rotate(360deg); } }
}

/* ---------- The shelf (album picker) ---------- */
.shelf { padding: 22px 0 6px; }
.shelf-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
@media (max-width: 640px) {
  .shelf-head { display: block; }
  .shelf-head .label { margin: 0 0 8px; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter) 6px; scrollbar-width: thin; }
  .tabs li { flex: none; }
}
.tab {
  font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid var(--rule-2); background: var(--surface); color: var(--ink-2);
  border-radius: var(--radius); padding: 0 12px; min-height: 36px; cursor: pointer;
}
.tab:hover { border-color: var(--ink); color: var(--ink); }
.tab[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }

.sleeves {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(196px, 1fr); gap: 10px;
  margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter) 12px; list-style: none;
  overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin;
}
.sleeves li { scroll-snap-align: start; }
@media (min-width: 900px) { .sleeves { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); overflow: visible; margin: 0; padding: 4px 0 12px; } }
.sleeve {
  all: unset; box-sizing: border-box; display: flex; flex-direction: column; gap: 6px; width: 100%; height: 100%;
  border-top: 3px solid var(--teal); border-bottom: 1px solid var(--rule-2); padding: 12px 12px 14px; cursor: pointer; min-height: 118px;
}
.sleeve.tier-leading { border-top-style: dashed; }
.sleeve.tier-none { border-top-color: var(--other); }
.sleeve.tier-none .s-pick b { font-weight: 400; color: var(--ink-3); }
.sleeve.is-early { border-top-color: var(--amber); }
.sleeve:hover .s-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.sleeve:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.sleeve[aria-pressed="true"], .sleeve[aria-current="page"] { background: var(--ink); color: var(--on-ink); }
.sleeve[aria-pressed="true"] .label, .sleeve[aria-current="page"] .label { color: color-mix(in srgb, var(--on-ink) 70%, transparent); }
a.sleeve { text-decoration: none; color: var(--ink); }
a.sleeve:hover { color: var(--ink); }
a.sleeve[aria-current="page"]:hover { color: var(--on-ink); }
.sleeve .s-title { font: 700 17px/1.15 var(--display); letter-spacing: -.005em; overflow-wrap: anywhere; }
.sleeve .s-pick b { overflow-wrap: anywhere; }
.sleeve .s-pick { margin-top: auto; font-size: 13px; line-height: 1.3; }
.sleeve .s-pick .label { display: block; margin-bottom: 2px; font-size: 10px; }
.sleeve .s-pick b { font-weight: 600; }
/* On an album page the strip follows the album's own header and cards, compact: title and year, a small jacket, no pick
   line (the album page it leads to says that). */
.album-shelf { padding-top: 6px; }
.album-shelf .sleeves { grid-auto-columns: minmax(150px, 1fr); }
@media (min-width: 900px) { .album-shelf .sleeves { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); } }
.album-shelf .sleeve { min-height: 0; padding: 8px 10px 10px; }
.album-shelf .sleeve .s-pick { display: none; }
.album-shelf .sleeve .s-title { font-size: 15px; }
.album-shelf .art-sleeve { width: 40px; height: 40px; }

/* ---------- Album heading ---------- */
.album-head { margin: 26px 0 14px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 16px; }
.album-head .label { margin: 0 0 4px; overflow-wrap: anywhere; }
.album-head h2 { font: 800 clamp(1.7rem, 5.5vw, 2.5rem)/1.05 var(--display); letter-spacing: -.035em; margin: 0; text-wrap: balance; overflow-wrap: anywhere; }
.album-head > div { min-width: 0; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; font: 500 10.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 999px;
}
.badge-early { background: var(--amber-soft); color: var(--amber-ink); }
.badge-early::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
@media (prefers-reduced-motion: no-preference) { .badge-early::before { animation: pulse 1.6s ease-in-out infinite; } }
@keyframes pulse { 50% { opacity: .35; } }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 22px 32px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .grid { grid-template-columns: minmax(0, 1fr) 330px; align-items: start; } }
.card { border-top: 3px solid var(--ink); }
.card-title {
  font: 500 11px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink);
  margin: 0;
}
/* Headline-first chart headers: the kicker (.card-title), then a one-line deck that says what the chart shows with
   its number in it (a description, never a verdict), then the reader guide (.card-sub). */
.deck { font: italic 500 clamp(1.1rem, 2.8vw, 1.35rem)/1.3 var(--body); color: var(--ink); margin: 8px 0 0; max-width: 62ch; text-wrap: balance; overflow-wrap: anywhere; }
.deck:empty { display: none; }
.card-sub { font-size: 13px; color: var(--ink-3); margin: 8px 0 0; }

/* ---------- Chart ---------- */
.chart-card { padding: 14px 0 10px; min-width: 0; position: relative; }
@media (min-width: 640px) { .chart-card { padding: 18px 0 14px; } }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 10px 0 4px; padding: 0; list-style: none; font: 400 11px/1.3 var(--mono); letter-spacing: .04em; color: var(--ink-2); }
.legend li { display: flex; align-items: center; gap: 6px; }
.legend svg { flex: none; }
.chart { width: 100%; position: relative; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; touch-action: manipulation; }
.chart .gridline { stroke: var(--grid); stroke-width: 1; stroke-dasharray: 2 3; }
.chart .baseline { stroke: var(--rule-2); stroke-width: 1; }
.chart .tick { font: 400 10px var(--mono); fill: var(--ink-3); }
.chart .axis-label { font: 500 10px var(--mono); letter-spacing: .08em; fill: var(--ink-2); text-transform: uppercase; }
.chart .dc-label { font: 700 14px var(--display); fill: var(--ink); }
.chart .dc-sub { font: 400 10.5px var(--mono); fill: var(--ink-2); }
.chart .exp-label { font: 500 9px var(--mono); letter-spacing: .1em; fill: var(--teal-ink); }
.chart .halo { stroke: var(--surface); stroke-width: 4px; paint-order: stroke; stroke-linejoin: round; }
/* Every other dot's name, small and faint (SITE_PASS_BRIEF 5). */
.chart .dot-label { font: 500 10.5px var(--display); fill: var(--ink-3); }
.chart .dot-label.halo { stroke-width: 3px; }
.chart .stem { stroke: var(--teal); stroke-width: 2; stroke-opacity: .45; stroke-linecap: round; }
.chart .stem-cap { stroke: var(--teal); stroke-width: 2; stroke-linecap: round; }
.chart .mk { stroke: var(--surface); stroke-width: 2; }
.chart .mk-dc { fill: var(--teal); stroke-width: 2.5; }
.chart .mk-deep { fill: var(--ink); stroke: var(--teal); stroke-width: 2.5; }
.chart .mk-both { fill: var(--teal); stroke: var(--ink); stroke-width: 2.5; }
.chart .median-line { stroke: var(--ink-2); stroke-width: 1.25; stroke-dasharray: 5 4; }
.chart .cell-wash { fill: var(--paper-2); }
.chart .near-band { fill: var(--ink); fill-opacity: .06; }
.def-line { font-size: 13px; color: var(--ink-3); margin: 0 0 12px; }
.chart .dc-sub.sub-dc, .chart .dc-sub.sub-both { fill: var(--teal-ink); }
.chart .mk-single { fill: var(--amber); }
.chart .mk-other { fill: var(--other); }
.chart .mk-interlude { fill: var(--surface); stroke: var(--other); stroke-width: 1.75; }
.chart .mk.is-hover { stroke: var(--ink); stroke-width: 2.5; }
.chart .hit { fill: transparent; cursor: pointer; }
.chart .hit:focus { outline: none; }
.chart .hit:focus-visible { stroke: var(--teal); stroke-width: 2; }
.legend .sw-deep { fill: var(--ink); stroke: var(--teal); stroke-width: 2; }
.legend .sw-dc { fill: var(--teal); } .legend .sw-single { fill: var(--amber); }
.legend .sw-other { fill: var(--other); } .legend .sw-interlude { fill: var(--surface); stroke: var(--other); stroke-width: 1.75; }

.tooltip {
  position: absolute; pointer-events: none; z-index: 5;
  background: color-mix(in srgb, #1a2535 96%, transparent); color: #f5f2ed; border-radius: var(--radius); padding: 9px 11px;
  font: 400 11px/1.45 var(--mono); min-width: 180px; max-width: 250px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .22);
}
.tooltip .tt-name { font: 700 14px/1.2 var(--display); margin-bottom: 6px; display: flex; gap: 7px; align-items: baseline; overflow-wrap: anywhere; min-width: 0; }
@media (max-width: 420px) { .tooltip { min-width: 0; max-width: 200px; padding: 7px 9px; font-size: 10px; } .tooltip .tt-name { font-size: 13px; } }
.tooltip .tt-key { width: 9px; height: 9px; border-radius: 50%; flex: none; transform: translateY(-1px); }
.tooltip dl { display: grid; grid-template-columns: auto auto; gap: 1px 14px; margin: 0; }
.tooltip dt { color: #9fb0c4; }
.tooltip dd { margin: 0; text-align: right; }
.tooltip .tt-flag { color: #9fb0c4; margin-top: 6px; padding-top: 6px; border-top: 1px dashed rgba(245, 242, 237, .2); text-transform: uppercase; letter-spacing: .08em; font-size: 10px; }

/* ---------- Terms (TERMS_BRIEF.md): a definition under every metric label, tap to open, never on hover ---------- */
.term { all: unset; cursor: help; font: inherit; color: inherit; border-radius: var(--radius);
  text-decoration: underline dotted var(--ink-3); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.term:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
/* The tracklist's "?": beside the sort button, not inside it (a button can't hold a button), 24 px square on a phone. */
.term-q { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; min-height: 24px;
  margin-left: 2px; text-decoration: none; color: var(--ink-3); font: 700 11px/1 var(--mono); vertical-align: middle; }
.term-q:hover { color: var(--ink); }
.term-note {
  position: absolute; z-index: 20; width: min(320px, calc(100vw - 24px));
  background: var(--paper); color: var(--ink); border: 1px solid var(--rule-2); border-radius: var(--radius);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .22); padding: 12px 14px; font: 400 13px/1.45 var(--body);
}
.term-note[hidden] { display: none; }
.term-note-label { font: 700 13px var(--display); margin: 0 0 4px; color: var(--ink); }
.term-note-def { margin: 0; color: var(--ink-2); }
.term-note-groups { margin: 10px 0 0; padding-top: 8px; border-top: 1px solid var(--rule-2); font-size: 12px; }
.term-note-groups dt { font-weight: 700; margin-top: 6px; }
.term-note-groups dt:first-child { margin-top: 0; }
.term-note-groups dd { margin: 1px 0 0; color: var(--ink-3); }
.term-note-more { display: inline-block; margin-top: 10px; font: 500 12px var(--mono); color: var(--teal-ink); }

/* ---------- The cult track: a sleeve with a hype sticker ---------- */
.dc-card { position: relative; padding: 16px 0 18px; border-top: 3px solid var(--teal); }
.dc-card.tier-none { border-top-color: var(--other); }
.dc-card.tier-leading { border-top-style: dashed; }
/* The quiet state: an outlined stamp on the 19 albums in 20 whose cult track isn't clearly ahead. The solid stamp is
   kept for "clear", so the flag's absence shows without a sentence for it (METHODOLOGY: no sentence for "shared"). */
.sticker.outline { background: var(--surface); color: var(--teal-ink); box-shadow: inset 0 0 0 2px var(--teal); }
.sticker.outline::after { border-color: color-mix(in srgb, var(--teal) 55%, transparent); }
.dc-sure { font-size: 14px; color: var(--ink-2); margin: 0 0 16px; padding-left: 10px; border-left: 2px solid var(--teal); }
.route-note { margin: 18px 0 0; padding: 10px 12px; border-radius: var(--radius); background: var(--amber-soft); color: var(--amber-ink); font-size: 14px; }
.dc-card .eyebrow { color: var(--teal-ink); margin: 0 0 10px; padding-right: 108px; }
.dc-head { min-height: 72px; padding-right: 100px; margin-bottom: 14px; }
.dc-head .dc-name { padding-right: 0; }
.dc-head .dc-meta { margin: 0; }
.dc-card.tier-none .eyebrow { color: var(--ink-3); padding-right: 0; }
.dc-name { font: 800 clamp(1.6rem, 6vw, 2rem)/1.05 var(--display); letter-spacing: -.015em; margin: 0 0 6px; padding-right: 100px; overflow-wrap: anywhere; text-wrap: balance; }
.dc-name a { text-decoration: none; color: inherit; }
.dc-name a:hover { text-decoration: underline; }
.dc-meta { margin: 0 0 14px; }
.sticker {
  position: absolute; top: 14px; right: 0; width: 96px; height: 96px; border-radius: 50%;
  background: var(--stamp); color: #fff; display: grid; place-content: center; text-align: center;
  transform: rotate(-9deg); box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .22);
}
.sticker::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, .45); }
.sticker .v { font: 800 30px/1 var(--display); letter-spacing: -.02em; }
.sticker .v.long { font-size: 22px; }
.sticker .v.xlong { font-size: 17px; }
.sticker .l { font: 500 8.5px/1.25 var(--mono); letter-spacing: .1em; text-transform: uppercase; margin-top: 4px; }
.dc-sentence { margin: 0 0 16px; font-size: 16px; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 14px 0 16px; }
.tile { border-top: 1px solid var(--rule-2); padding: 8px 10px 0 0; min-width: 0; }
.tile .label { font-size: 9.5px; letter-spacing: .1em; }
.tile .v { font: 800 19px/1.1 var(--display); margin-top: 4px; overflow-wrap: anywhere; }
.dc-note { font-size: 13px; font-style: italic; color: var(--ink-3); margin: 12px 0 0; }
/* The adjusted pick: the model's pick where it isn't the cult track, under a hairline in the cult-track module. */
.adjusted { margin: 18px 0 16px; padding-top: 14px; border-top: 1px solid var(--rule-2); display: grid; justify-items: start; gap: 2px; }
.adjusted .eyebrow { color: var(--teal-ink); margin: 0 0 4px; padding-right: 0; }
.adjusted .track-link.adjusted-name { font: 700 19px/1.2 var(--display); }
.adjusted .label { margin: 0 0 6px; }
.adjusted .dc-ratio { margin: 0; }
.adjusted .dc-sure { margin: 12px 0 0; }
.dc-card.tier-none .dc-sentence { color: var(--ink-2); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--ink); color: var(--on-ink); border: 1px solid var(--ink); border-radius: var(--radius);
  padding: 0 16px; min-height: 44px; cursor: pointer;
  font: 500 11.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase;
}
.btn:hover { background: color-mix(in srgb, var(--ink) 86%, var(--teal)); }
.btn.secondary { background: transparent; color: var(--ink); border-color: var(--rule-2); }
.btn.secondary:hover { border-color: var(--ink); }
.btn[disabled] { opacity: .5; cursor: progress; }

/* One click, one image (SITE_PASS_BRIEF 7): the button and Copy link side by side, the status line under them. */
.chart-actions, .share-anchor { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.share-anchor .share-status { flex-basis: 100%; margin-top: 0; }
.share-status { font: 400 12px/1.4 var(--mono); color: var(--teal-ink); min-height: 1.4em; margin-top: 6px; }

/* ---------- Tracklist: the back of the sleeve ---------- */
.tracklist { margin: 22px 0 8px; padding: 16px 0 6px; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 8px; }
table { border-collapse: collapse; width: 100%; min-width: 720px; font-size: 14px; }
th, td { padding: 10px 8px; text-align: right; border-bottom: 1px solid var(--rule); white-space: nowrap; }
th:first-child, td:first-child { padding-left: 10px; }
th:last-child, td:last-child { padding-right: 0; }
th.l, td.l { text-align: left; }
td { font: 400 13px/1.3 var(--mono); color: var(--ink-2); }
td.name { font: 500 15px/1.3 var(--body); color: var(--ink); white-space: normal; min-width: 150px; max-width: 320px; overflow-wrap: anywhere; }
td.name .tn { display: flex; align-items: baseline; gap: 9px; }
td.name .tn .key { flex: none; margin-right: 0; }
td.name .tn-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 5px 0 0 18px; }
td.name .tn-tags .tag { margin-left: 0; }
td.name .tn-also { display: block; margin: 3px 0 0 18px; font: 400 11px/1.4 var(--mono); color: var(--ink-3); white-space: normal; }
@media (min-width: 640px) { td.name { min-width: 200px; } }
td.pos { color: var(--ink-3); width: 1%; }
th { font: 500 10px/1.25 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); border-bottom-color: var(--ink);
  white-space: normal; vertical-align: bottom; font-variant-numeric: tabular-nums; }
/* The header band: a tint across the metric columns, so the numbers read as one block against the track names. */
th.m { background: var(--paper-2); color: var(--ink-2); }
tr > th.m:nth-child(3) { box-shadow: inset 1px 0 0 var(--rule-2); }
th button { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; border-radius: var(--radius); }
th button:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
th button .arrow { opacity: .35; font-size: 9px; }
th[aria-sort="ascending"] .arrow, th[aria-sort="descending"] .arrow { opacity: 1; color: var(--ink); }
tbody tr:hover td { background: color-mix(in srgb, var(--paper) 55%, transparent); }
/* The cult row: a left accent, not a highlighter. The name in bold, its number in teal. */
tr.is-dc td { background: color-mix(in srgb, var(--teal-soft) 55%, transparent); }
tr.is-dc:hover td { background: var(--teal-soft); }
tr.is-dc td:first-child { box-shadow: inset 4px 0 0 var(--teal); color: var(--teal-ink); padding-left: 14px; font-weight: 500; }
tr.is-dc td.name { font-weight: 700; }
tr.is-deep td:first-child { box-shadow: inset 4px 0 0 var(--ink); font-weight: 500; padding-left: 14px; }
tr.is-deep td.name { font-weight: 700; }
tr.is-interlude td, tr.is-interlude td.name { color: var(--ink-3); }
.key { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 9px; vertical-align: 1px; }
.key.k-dc { background: var(--teal); }
.key.k-deep { background: var(--ink); box-shadow: 0 0 0 2px var(--teal); }
.key.k-single { background: var(--amber); border-radius: 1px; transform: rotate(45deg) scale(.85); }
.key.k-other { background: var(--other); }
.key.k-interlude { border: 1.5px solid var(--other); }
.tag {
  display: inline-block; font: 500 9.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 6px 3px; border-radius: var(--radius); margin-left: 8px; vertical-align: 2px;
}
.tag.dc { background: var(--stamp); color: #fff; }
.tag.lead { border: 1px solid var(--teal); color: var(--teal-ink); }
.tag.deep { background: var(--ink); color: var(--paper); }
.tag.sit { border: 1px solid var(--ink-3); color: var(--ink-2); }
.tag.single { background: var(--amber-soft); color: var(--amber-ink); }
.tag.skit { background: var(--other-soft); color: var(--ink-2); }
.tag.floor { border: 1px solid var(--rule-2); color: var(--ink-3); }

/* Replay meter: log2(actual / expected), centred on 1×, like a level meter on a mixing desk */
.meter { display: inline-flex; align-items: center; gap: 8px; }
.meter-track { position: relative; width: 60px; height: 8px; border-radius: 2px; background: var(--paper-2); flex: none; }
.meter-track::after { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: var(--rule-2); }
.meter-fill { position: absolute; top: 0; bottom: 0; border-radius: 2px; background: var(--other); }
.meter-fill.up { background: color-mix(in srgb, var(--teal) 55%, var(--other)); }
tr.is-dc .meter-fill { background: var(--teal); }
.meter-v { min-width: 3.4em; text-align: right; }

/* ---------- Phase 2: sleeper line, artist depth, retention bars ---------- */
.dc-ratio { margin: -8px 0 14px; font-size: 14px; color: var(--ink-2); }
.dc-card.tier-notable { border-top-style: dashed; }
.dc-card.tier-notable .sticker { background: var(--surface); color: var(--teal-ink); box-shadow: inset 0 0 0 2px var(--teal); }
.dc-card.tier-notable .sticker::after { border-color: color-mix(in srgb, var(--teal) 55%, transparent); }
.sleeve.tier-notable { border-top-style: dashed; }
.chart .corner-label { font: 500 9px var(--mono); letter-spacing: .1em; text-transform: uppercase; fill: var(--ink-3); }
.chart .corner-label.cell-deep { fill: var(--ink); }
.retention-card { margin: 22px 0 0; padding: 14px 0 14px; min-width: 0; }
@media (min-width: 640px) { .retention-card { padding: 18px 0 16px; } }
.retention-chart .bar { stroke: none; }
.retention-chart .bar:focus { outline: none; }
.retention-chart .bar:focus-visible { stroke: var(--ink); stroke-width: 2; }
.retention-chart .bar-dc { fill: var(--teal); }
.retention-chart .bar-single { fill: var(--amber); }
.retention-chart .bar-other { fill: var(--other); }
.retention-chart .bar-interlude { fill: var(--paper-2); stroke: var(--other); stroke-width: 1.5; }
.retention-chart .bar-least { fill: var(--surface); stroke: var(--other); stroke-width: 1.75; }
.retention-chart .bar-diamond { fill: var(--amber); }
.retention-chart .full-line { stroke: var(--ink-2); stroke-width: 1.25; stroke-dasharray: 5 4; }
.retention-chart .full-label { font: 500 9px var(--mono); letter-spacing: .08em; fill: var(--ink-2); text-transform: uppercase; }
.retention-notes { margin: 10px 0 0; padding-left: 18px; font-size: 14px; color: var(--ink-2); }
.retention-notes li { margin-bottom: 4px; }
.legend .sw-least { fill: var(--surface); stroke: var(--other); stroke-width: 1.5; }
.tag.sleeper { background: var(--amber-soft); color: var(--amber-ink); border: 1px dashed var(--amber-ink); }
@media (forced-colors: active) { .retention-chart .bar { forced-color-adjust: none; } }

/* ---------- Level 2: the case, then next questions ---------- */
.case-grid { margin-top: 0; }
@media (min-width: 900px) { .case-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); } .case-grid.one-card { grid-template-columns: minmax(0, 1fr); } }
/* The deep cut (METHODOLOGY 2026-09-24, "Four groups on every album"): its own card beside the cult track's, ruled in ink
   like its mark on the grid. */
.deep-card { padding: 16px 0 18px; border-top: 3px solid var(--ink); }
.deep-card .eyebrow { color: var(--ink); margin: 0 0 10px; }
.deep-card .dc-name { margin-bottom: 2px; }
.deep-card .deep-def { font-size: 14px; color: var(--ink-2); margin: 10px 0 0; padding-left: 10px; border-left: 2px solid var(--ink); }
.deep-card.is-none .dc-sentence { color: var(--ink); }
/* The question each lead card answers, over its eyebrow (ENTRYWAY_FIXES_BRIEF F). */
.card-q { font: 500 14px/1.35 var(--body); color: var(--ink-2); margin: 0 0 6px; padding-right: 96px; }
.deep-card .card-q { padding-right: 0; }
/* No deep cut, or no grid: somewhere to go next (METHODOLOGY 2026-09-25). */
.deep-card .next-step { font-size: 14px; line-height: 1.5; margin: 12px 0 0; color: var(--ink-2); }
.deep-card .next-step a { font-weight: 600; }
.cell-line { font-size: 14px; color: var(--ink-2); margin: 0 0 14px; }
.chart-actions { margin-top: 12px; }
.sleeper-card { padding: 16px 0 18px; border-top: 3px solid var(--amber); margin-top: 22px; }
.sleeper-card .eyebrow { color: var(--amber-ink); margin: 0 0 6px; }
.sleeper-card .sleeper-def { margin: 0 0 12px; }
.sleeper-list { list-style: none; margin: 0; padding: 0; counter-reset: sl; }
.sleeper-list li { padding: 10px 0; border-top: 1px solid var(--rule); display: grid; gap: 2px; }
.sleeper-list b { font: 700 17px/1.2 var(--display); overflow-wrap: anywhere; }
.sleeper-list .sleeper-beats { font-size: 14px; color: var(--ink-2); overflow-wrap: anywhere; }
.scatter-card { margin-top: 22px; }
/* The album's first screen from 1024 px (SITE_PASS_BRIEF 4): the two cards stacked on the left, the grid with its deck on
   the right, neither "first". Narrower, cards then grid. */
@media (min-width: 1024px) {
  .album-first { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0 36px; align-items: start; }
  .album-first .case-grid { grid-template-columns: minmax(0, 1fr); }
  .album-first .scatter-card { margin-top: 0; }
}
.next-questions { margin: 18px 0 8px; }
.next-questions > .card-title { border-bottom: 0; }
.next-grid { display: grid; gap: 0 32px; grid-template-columns: minmax(0, 1fr); margin-top: 6px; }
@media (min-width: 760px) { .next-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
.next-card { padding: 0; border-top: 1px solid var(--rule-2); }
.next-card summary { cursor: pointer; list-style: none; padding: 14px 0; font: 600 16px/1.3 var(--body); display: flex; gap: 10px; align-items: baseline; }
.next-card summary::-webkit-details-marker { display: none; }
.next-card summary::before { content: "+"; font: 500 14px var(--mono); color: var(--teal-ink); flex: none; }
.next-card[open] summary::before { content: "\2212"; }
.next-card summary:focus-visible { outline: 2px solid var(--teal); outline-offset: -2px; border-radius: var(--radius); }
.next-body { padding: 0 0 14px 20px; }
.next-body p { margin: 0 0 10px; }
.spellings { margin: 0 0 6px; padding-left: 18px; font: 400 12.5px/1.5 var(--mono); color: var(--ink-2); overflow-wrap: anywhere; }

/* ---------- Level 1: the artist ---------- */
.artist-case { font-size: 18px; max-width: 60ch; margin: 4px 0 18px; color: var(--ink); }
.artist-grid { margin-bottom: 14px; }
.depth-rows { list-style: none; margin: 12px 0 6px; padding: 0; }
.depth-rows li { display: grid; grid-template-columns: minmax(0, 1fr) 3.4em; grid-template-areas: "head head" "track v"; gap: 4px 10px;
  padding: 8px 6px; border-top: 1px solid var(--rule); align-items: center; border-radius: var(--radius); }
@media (min-width: 640px) { .depth-rows li { grid-template-columns: minmax(0, 14em) minmax(0, 1fr) 3.4em; grid-template-areas: "head track v"; } }
.depth-rows li.is-highlight { background: var(--teal-soft); }
.depth-head { grid-area: head; display: flex; gap: 8px; align-items: baseline; min-width: 0; }
.depth-name { font: 600 15px/1.25 var(--body); color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.depth-name:hover { text-decoration: underline; }
.depth-track { grid-area: track; position: relative; height: 12px; background: var(--paper-2); border-radius: 2px; }
.depth-track::after { content: ""; position: absolute; left: var(--fair); top: -4px; bottom: -4px; border-left: 1.5px dashed var(--ink-2); }
.depth-track.is-empty { background: repeating-linear-gradient(45deg, var(--paper-2) 0 4px, transparent 4px 8px); }
.depth-bar { position: absolute; left: 0; top: 0; bottom: 0; background: var(--teal); border-radius: 2px; }
.depth-v { grid-area: v; font: 400 13px var(--mono); color: var(--ink-2); text-align: right; }
.artist-picks .pick { padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--rule-2); }
.artist-picks .pick-sleeper .eyebrow { color: var(--amber-ink); }
.artist-picks .dc-name { padding-right: 0; font-size: clamp(1.4rem, 5vw, 1.7rem); }
.rank-list { margin: 6px 0 0; padding-left: 22px; }
.rank-list li { padding: 4px 0; display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.rank-list li a { overflow-wrap: anywhere; }
.next-questions.card { padding: 16px 0; margin-top: 22px; }

/* ---------- Level 3: the track panel ---------- */
.track-link { all: unset; cursor: pointer; overflow-wrap: anywhere; border-bottom: 1px dotted var(--rule-2); }
.track-link:hover { color: var(--teal-ink); border-bottom-color: var(--teal-ink); }
.track-link:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 2px; }
.sleeper-name { font: 700 17px/1.2 var(--display); }
.panel-backdrop { position: fixed; inset: 0; background: rgba(16, 22, 31, .38); z-index: 40; }
.track-panel { position: fixed; z-index: 41; background: var(--surface); box-shadow: 0 10px 40px rgba(0, 0, 0, .25); overflow-y: auto;
  left: 0; right: 0; bottom: 0; max-height: 86vh; padding: 18px 16px 24px; border-top: 3px solid var(--teal); }
@media (max-width: 759px) { .track-panel.is-arrival { max-height: 56vh; } }
@media (min-width: 760px) { .track-panel { left: auto; top: 0; bottom: 0; width: min(440px, 92vw); max-height: none; border-radius: 0; padding: 26px 26px 30px; border-top: 0; border-left: 3px solid var(--teal); } }
.track-panel .eyebrow { color: var(--teal-ink); margin: 0 0 8px; padding-right: 44px; }
.track-panel .dc-name { padding-right: 44px; }
.tp-close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--rule-2);
  background: var(--surface); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.tp-close:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.tp-facts { margin: 14px 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px 0; }
.tp-facts dt { font: 500 10.5px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-top: 10px; }
.tp-facts dd { margin: 2px 0 0; font-size: 15px; color: var(--ink); overflow-wrap: anywhere; }
/* A track on another of the artist's releases, and the track's own Last.fm page (WALKTHROUGH_2_BRIEF B2, B3). */
.tp-also { margin: 6px 0 0; font: 400 12.5px/1.45 var(--mono); color: var(--ink-3); }
.tp-lastfm { margin: 8px 0 0; font: 500 12px/1.4 var(--mono); }
.tp-lastfm a { color: var(--teal-ink); }
.tp-share { margin-top: 18px; }
body.panel-open { overflow: hidden; }

/* ---------- The game ---------- */
.game { padding-top: 30px; padding-bottom: 20px; }
.game-title { font: 800 clamp(2rem, 7vw, 3rem)/1 var(--display); letter-spacing: -.035em; text-transform: uppercase; margin: 6px 0 12px; }
.game-lede { max-width: 60ch; color: var(--ink-2); font-size: 17px; margin: 0 0 18px; }
.game-pick { margin-bottom: 16px; }
.game-record { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 0; }
.game-record select { font: 500 14px/1.2 var(--body); color: var(--ink); background: var(--surface); border: 1px solid var(--rule-2);
  border-radius: var(--radius); min-height: 40px; padding: 0 10px; max-width: 100%; }
.game-resume { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 12px; font-size: 14px; color: var(--ink-2); }
.game-artists { flex-wrap: wrap; margin-top: 8px; }
.tab-best { opacity: .7; }
.game-round, .game-end { padding: 18px 0 20px; margin-bottom: 14px; }
@media (min-width: 640px) { .game-round, .game-end { padding: 22px 0 24px; } }
.game-album { font: 800 clamp(1.6rem, 6vw, 2.2rem)/1.05 var(--display); margin: 6px 0 4px; overflow-wrap: anywhere; }
.game-q { color: var(--ink-2); margin: 0 0 14px; }
.game-tracks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .game-tracks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.game-track { width: 100%; min-height: 48px; display: grid; grid-template-columns: 2.4em minmax(0, 1fr) auto; gap: 4px 8px; align-items: center;
  text-align: left; padding: 10px 12px; border: 1px solid var(--rule-2); border-radius: var(--radius); background: var(--surface); color: var(--ink);
  font: 500 15px/1.3 var(--body); cursor: pointer; }
.game-track:hover:not([disabled]) { border-color: var(--teal); background: var(--teal-soft); }
.game-track:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.game-track[disabled] { cursor: default; color: var(--ink-3); background: var(--paper-2); }
.gt-name { overflow-wrap: anywhere; }
.gt-why, .gt-tag { font: 500 9.5px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.gt-tag { grid-column: 2 / -1; }
.game-track.is-answer { border: 2px solid var(--teal); background: var(--teal-soft); color: var(--ink); }
.game-track.is-answer .gt-tag { color: var(--teal-ink); }
.game-track.is-wrong { border: 2px dashed var(--ink-3); color: var(--ink); }
.game-reveal { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--rule-2); }
.game-reveal p { margin: 0 0 10px; }
.game-verdict { font: 800 22px/1.2 var(--display); overflow-wrap: anywhere; }
.game-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.game-score { font: 800 clamp(3rem, 14vw, 5rem)/1 var(--display); margin: 0 0 6px; color: var(--teal-ink); }
.game-summary { margin: 10px 0 0; padding-left: 20px; }
.game-summary li { padding: 3px 0; overflow-wrap: anywhere; }
@media (forced-colors: active) { .game-track.is-answer { border: 3px solid Highlight; } }

/* Sort the record: the album's four groups, empty, and its tracks as tiles. The grid keeps its size; the tray and each
   group scroll (a 20-track album at 360 px). */
.game-modes { flex-wrap: wrap; margin: 4px 0 10px; }
/* Phones: both mode tabs on one row ("Guess the track" / "Sort the record"; REVIEW_GAME 5). The page's heading below
   still names the game in full. */
.game-modes .tab-short { display: none; }
@media (max-width: 480px) { .game-modes .tab-long { display: none; } .game-modes .tab-short { display: inline; } }
/* Phones: the site header scrolls away on the game, so it never sits over the album's title or the board's top groups
   while the tray is in use (REVIEW_GAME 4). */
@media (max-width: 600px) { body[data-page="game"] .site-head { position: static; } }
.sort-board { display: grid; grid-template-columns: 1.4em minmax(0, 1fr); gap: 4px; margin: 6px 0 10px; }
.sort-axis { font: 500 10px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 0; }
.sort-axis-y { grid-column: 1; grid-row: 1; writing-mode: vertical-rl; transform: rotate(180deg); text-align: center; }
.sort-axis-x { grid-column: 2; text-align: right; }
.sort-grid { grid-column: 2; grid-row: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.sort-cell { height: 170px; overflow-y: auto; border: 1px dashed var(--rule-2); padding: 6px; background: var(--surface); min-width: 0; }
/* A full group says it scrolls (Agy 9: tiles past the fourth were cut off with no cue); after the reveal every group grows to
   hold its tracks, so none is clipped ("mirrorball"). */
.sort-cell.overflows { box-shadow: inset 0 -16px 12px -12px rgba(16, 22, 31, .28); }
.sort-board.is-revealed .sort-cell { height: auto; min-height: 120px; overflow: visible; box-shadow: none; }
@media (min-width: 760px) { .sort-cell { height: 230px; } }
.sort-cell.cell-deep { background: var(--paper-2); }
.sort-grid.has-sel .sort-cell { border-style: solid; cursor: pointer; }
.sort-cell.is-target { border: 2px solid var(--teal); }
.sort-cell:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; }
.sort-cell-name { font: 500 9.5px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 5px; }
.sort-cell.cell-deep .sort-cell-name { color: var(--ink); }
.sort-chips { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.sort-left { margin: 0 0 6px; min-height: 1.3em; }
.sort-tray { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 40vh; overflow-y: auto; }
@media (min-width: 760px) { .sort-tray { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: none; overflow: visible; } }
.sort-item { display: flex; min-width: 0; }
.st-grip { flex: none; width: 28px; display: grid; place-items: center; color: var(--ink-3); cursor: grab; touch-action: none; user-select: none;
  border: 1px solid var(--rule-2); border-right: 0; background: var(--paper-2); }
/* A finger drags by the grip, so on a touch screen it's a full 44 px target (REVIEW_GAME 7). */
@media (pointer: coarse) { .sort-tray .st-grip { width: 44px; font-size: 18px; } }
.sort-tile { flex: 1; min-width: 0; min-height: 44px; display: grid; grid-template-columns: 2em minmax(0, 1fr) auto; gap: 2px 6px; align-items: center;
  text-align: left; background: var(--surface); border: 1px solid var(--rule-2); padding: 6px 8px; font: inherit; color: var(--ink); cursor: grab; }
.sort-tile:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; }
.sort-tile[aria-pressed="true"] { border-color: var(--teal); background: var(--teal-soft); }
.st-pos { font: 400 11px var(--mono); color: var(--ink-3); }
.st-name { font-weight: 600; overflow-wrap: anywhere; }
.st-single { font: 500 9px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--amber-ink); background: var(--amber-soft); padding: 1px 5px; }
.st-aim { grid-column: 2 / -1; font: 500 10px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--teal-ink); }
.st-aim:empty { display: none; }
/* Inside a group a tile is a chip: the name at full width, a single as an amber diamond. A placed tile still moves by
   tap-then-group, or by dragging with a mouse. */
.sort-cell { padding: 5px; }
.sort-cell .st-grip, .sort-cell .st-pos { display: none; }
.sort-cell .sort-tile { min-height: 32px; padding: 3px 6px; font-size: 13px; line-height: 1.25; grid-template-columns: minmax(0, 1fr) auto; }
.sort-cell .st-name { font-weight: 500; overflow-wrap: break-word; hyphens: auto; }
.sort-cell .st-aim { grid-column: 1 / -1; font-size: 9.5px; }
.sort-cell .st-single { font-size: 0; width: 7px; height: 7px; padding: 0; background: var(--amber); transform: rotate(45deg); }
.sort-item.is-dragging { position: relative; z-index: 20; opacity: .92; box-shadow: 0 6px 18px rgba(26, 47, 74, .25); }
.sort-tile[disabled] { cursor: default; color: var(--ink); }
.sort-item.is-right .sort-tile { border-color: var(--teal); }
.sort-item.is-wrong .sort-tile { border-style: dashed; border-color: var(--ink-3); }
.sort-item.is-wrong .st-aim { color: var(--ink-2); }
.sort-item.is-right .st-grip, .sort-item.is-wrong .st-grip { visibility: hidden; }

/* ---------- Cover art (Cover Art Archive, only where `make art` found a front; else the typographic sleeve) ---------- */
.s-top { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; }
.s-head { display: grid; gap: 3px; min-width: 0; }
.s-art { display: block; border-radius: 1px; background: var(--paper-2); object-fit: cover; box-shadow: 0 1px 3px rgba(0, 0, 0, .18); }
.art-sleeve { width: 56px; height: 56px; }

/* ---------- The album opener: the jacket at 200px, title, artist, year and singles stacked beside it ---------- */
.album-opener { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 16px; align-items: end; margin: 26px 0 26px; }
@media (min-width: 560px) { .album-opener { grid-template-columns: 200px minmax(0, 1fr); gap: 26px; } }
.album-opener .album-art { width: 100%; aspect-ratio: 1; }
/* The jacket: the one shadow on the page that isn't an overlay, because a record sleeve does sit on the table. */
.album-opener img.art-head { display: block; }
.album-opener .art-head { width: 100%; height: 100%;
  box-shadow: 0 1px 1px rgba(16, 22, 31, .14), 0 3px 6px rgba(16, 22, 31, .10), 0 14px 26px -10px rgba(16, 22, 31, .45); }
.opener-text { min-width: 0; display: grid; gap: 6px; justify-items: start; }
.opener-text h2 { font: 800 clamp(1.6rem, 5.5vw, 3rem)/1.02 var(--display); letter-spacing: -.035em; margin: 0; text-wrap: balance; overflow-wrap: anywhere; }
.opener-artist { margin: 0; font: 600 clamp(1rem, 2.6vw, 1.25rem)/1.25 var(--body); overflow-wrap: anywhere; }
.opener-artist a { text-decoration: none; }
.opener-artist a:hover { text-decoration: underline; }
.opener-text .label { margin: 0; }
.opener-text .badge { margin-top: 4px; }
/* The quiet page's lede: the album described (where its listening goes, what fans reach least) before any pick. */
.album-lede { font: 400 clamp(1.08rem, 2.6vw, 1.3rem)/1.5 var(--body); color: var(--ink); max-width: 62ch; margin: -8px 0 26px; }

/* The typographic sleeve: a plain-sleeve pressing, sized off its own width so it holds at 56px and at 200px. */
.type-sleeve { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 4px; aspect-ratio: 1; padding: 9%; overflow: hidden;
  background: var(--ink); color: var(--on-ink); container-type: inline-size; }
.type-sleeve .ts-by { font: 500 9px/1.2 var(--mono); font-size: max(8px, 6.2cqi); letter-spacing: .1em; text-transform: uppercase; opacity: .78;
  overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.type-sleeve .ts-title { align-self: end; font: 800 22px/1 var(--display); font-size: 14cqi; letter-spacing: -.02em; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.type-sleeve .ts-title.long { font-size: 10.5cqi; -webkit-line-clamp: 5; }
.type-sleeve .ts-foot { display: flex; justify-content: space-between; align-items: center; font: 500 9px/1 var(--mono); font-size: max(8px, 5.6cqi);
  letter-spacing: .1em; opacity: .78; }
.type-sleeve .ts-mark { width: 16cqi; height: 16cqi; border-radius: 50%;
  background: radial-gradient(circle, var(--ink) 0 7%, var(--teal) 8% 34%, transparent 35%),
    repeating-radial-gradient(circle, color-mix(in srgb, var(--on-ink) 28%, transparent) 0 1px, transparent 1px 3px); }
@media (forced-colors: active) { .type-sleeve { border: 1px solid CanvasText; } }

/* ---------- The crate ---------- */
.site-nav { align-items: center; }
.crate-link { display: inline-flex; align-items: center; gap: 3px; color: var(--ink-2); border-bottom: 0 !important; padding: 2px 0; text-decoration: none; }
.crate-link:hover { color: var(--ink); }
.crate-count { font: 600 11px/1 var(--mono); min-width: 1ch; }
.crate-count:empty { display: none; }
.crate-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: var(--radius); cursor: pointer;
  border: 1px solid var(--rule-2); background: var(--surface); color: var(--ink); font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.crate-btn:hover { border-color: var(--ink); }
.crate-btn[aria-pressed="true"] { background: var(--teal-soft); border-color: var(--teal); color: var(--teal-ink); }
.crate-btn:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.crate-btn.compact { min-height: 30px; min-width: 30px; padding: 0 8px; font-size: 14px; letter-spacing: 0; justify-content: center; }
td.add { width: 1%; padding-left: 4px; padding-right: 4px; }
th.add { text-align: center; }
.tp-share { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tp-share .share-status { flex-basis: 100%; }
.crate-page { padding-top: 30px; padding-bottom: 20px; }
.crate-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 14px; }
.crate-tools-note { flex-basis: 100%; margin: 4px 0 0; }
/* What the share image will hold (CRATE_PICTURE_BRIEF): a tick per slot, like record edges in a crate, filled ink for a
   track in the picture and --rule-2 for an empty slot, and one line beside it (under it on a narrow phone). */
.crate-fit { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 16px; }
.crate-fit[hidden] { display: none; }
.crate-slots { display: flex; flex: none; gap: 4px; color: var(--ink); }
.crate-slots span { width: 6px; height: 28px; border-radius: 1px; background: var(--rule-2); }
.crate-slots span.on { background: currentColor; }
.crate-fit-line { flex: 1 1 12em; margin: 0; }
.crate-shared { margin: 0 0 14px; padding: 12px 14px; border-radius: var(--radius); background: var(--teal-soft); }
.crate-shared p { margin: 0 0 8px; }
.crate-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: ci; border-top: 3px solid var(--ink); }
.crate-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 14px 0; }
.crate-list .crate-item { border-top: 0; border-bottom: 1px solid var(--rule-2); }
.crate-item > .s-art { width: 56px; height: 56px; }
.ci-main { display: grid; gap: 3px; min-width: 0; }
.ci-name { font: 700 18px/1.2 var(--display); color: var(--ink); overflow-wrap: anywhere; }
.ci-main .label { overflow-wrap: anywhere; }
.ci-open { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; font-size: 14px; align-items: baseline; }
.ci-ctl { display: flex; gap: 4px; }
@media (max-width: 520px) { .crate-item { grid-template-columns: auto minmax(0, 1fr); } .ci-ctl { grid-column: 1 / -1; justify-content: flex-end; } }
.crate-empty { padding: 18px 0; }
.dc-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 14px; }
.sleeper-list li .crate-btn { justify-self: start; margin-top: 4px; }

/* ---------- Charts ---------- */
.charts { padding-top: 30px; padding-bottom: 20px; }
/* One board at a time (CHARTS_BRIEF): the floor line under the lede, the tabs (the artist page's chips; on a phone the row
   scrolls sideways inside itself), then the board, 18 rows and "Show 18 more". */
.chart-floor { margin: 0 0 14px; }
.chart-tabs { margin: 0 0 12px; }
.board-more { margin: 14px 0 0; }
.board { padding: 14px 0 10px; scroll-margin-top: 70px; }
@media (min-width: 640px) { .board { padding: 18px 0 14px; } }
.board-list { margin: 10px 0 0; padding-left: 26px; }
.board-list li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--rule); }
.bl-main { display: grid; gap: 1px; min-width: 0; }
.bl-main a { font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.bl-main .label { overflow-wrap: anywhere; }
.bl-value { display: grid; justify-items: end; text-align: right; flex: none; }
.bl-value b { font: 800 17px/1.1 var(--display); }
/* Under 480px the value goes under the title, so a long title keeps the row's full width (REVIEW_GRID finding 1). */
@media (max-width: 479px) {
  .board-list li { flex-direction: column; gap: 2px; }
  .bl-value { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; justify-items: start; text-align: left; }
}
.start-card { display: grid; gap: 4px; padding: 14px 0; text-decoration: none; color: var(--ink); border-top: 3px solid var(--teal); }
.start-card.is-sleeper { border-top-color: var(--amber); } .start-card.is-depth { border-top-color: var(--other); }
.start-card b { font: 800 20px/1.15 var(--display); overflow-wrap: anywhere; }
.start-card span { font-size: 14px; color: var(--ink-2); overflow-wrap: anywhere; }
.start-card:hover b { text-decoration: underline; }
.start-more { margin: 10px 0 0; font: 500 11px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; }

/* ---------- Pages: breadcrumbs, start-here strip ---------- */
.crumbs { margin: 22px 0 0; font: 500 11px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); overflow-wrap: anywhere; }
.crumbs a { color: var(--ink-2); }
.crumbs span { margin: 0 6px; }
.start-here { margin: 26px 0 0; }
/* The front's Start here holds its place under the row while index.json loads (three cards stacked, one row from 760 px). */
.start-here .start-grid:empty { min-height: 330px; }
@media (min-width: 760px) { .start-here .start-grid:empty { min-height: 110px; } }
.start-grid { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 12px 32px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .start-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Status / empty ---------- */
.status { padding: 40px 0; color: var(--ink-2); }
.status strong { color: var(--ink); }

/* ---------- Prose (methodology) ---------- */
.prose { padding-top: 34px; padding-bottom: 36px; }
.prose > * { max-width: 68ch; }
.prose .eyebrow { margin: 0 0 12px; }
.prose h1 { font: 800 clamp(2rem, 7vw, 3rem)/1 var(--display); letter-spacing: -.035em; text-transform: uppercase; margin: 0 0 14px; max-width: 16ch; }
.prose .lede { font-size: 17px; color: var(--ink-2); }
.prose h2 {
  font: 800 22px/1.2 var(--display); letter-spacing: -.035em; margin: 34px 0 10px; padding-top: 22px; border-top: 1px solid var(--rule);
  display: flex; gap: 12px; align-items: baseline;
}
.prose h2 .n { font: 500 11px/1 var(--mono); letter-spacing: .12em; color: var(--teal-ink); }
.prose p, .prose li { color: var(--ink); }
.prose li { margin-bottom: 8px; }
.prose dl { margin: 0; }
.prose dt { font: 500 11px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); margin-top: 16px; }
.prose dd { margin: 4px 0 0; color: var(--ink-2); }
.prose code { font: 400 .88em var(--mono); background: var(--paper-2); padding: 1px 5px; border-radius: var(--radius); }
.formula {
  font: 400 13.5px/1.6 var(--mono); background: var(--paper-2); border-radius: var(--radius); padding: 12px 16px; margin: 10px 0 14px;
  overflow-x: auto; white-space: pre; max-width: 100%;
}
.model-box { border-top: 3px solid var(--ink); border-bottom: 1px solid var(--rule-2); padding: 6px 0; margin: 12px 0; overflow-x: auto; }
.model-box table { min-width: 0; }
.model-box th, .model-box td { padding: 8px 14px; white-space: normal; }
.model-box td.l { font: 400 14px/1.4 var(--body); color: var(--ink-2); }
.model-box td.term { font: 500 12.5px var(--mono); color: var(--ink); white-space: nowrap; }
.model-meta { font: 400 12px/1.6 var(--mono); color: var(--ink-3); }
/* The objections FAQ: the reply in Outfit, the one-sentence answer under a hairline, the page that shows it after. */
.faq { margin: 12px 0 0; border-top: 3px solid var(--ink); }
.faq dt { font: 700 17px/1.3 var(--display); letter-spacing: 0; color: var(--ink); text-transform: none; margin: 0; padding-top: 14px; border-top: 1px solid var(--rule); }
.faq dt:first-child { border-top: 0; }
.faq dd { margin: 4px 0 14px; color: var(--ink-2); }
.faq dd a { font: 500 11px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; white-space: normal; margin-left: 4px; }
.attribution { border-left: 3px solid var(--lastfm); padding: 4px 0 4px 16px; }

/* ---------- Footer ---------- */
/* The branded block above the footer on album and artist pages (WALKTHROUGH_2_BRIEF B5): one column on a phone, one
   row from 760 px. Its links take the header's style. */
.brand-foot { margin-top: 44px; border-top: 1px solid var(--rule); padding: 26px 0 4px; }
.brand-foot .wrap { display: grid; gap: 12px; justify-items: start; }
.brand-foot .brand-name { display: inline; }
.brand-foot-line { margin: 0; font: 500 15px/1.45 var(--body); color: var(--ink-2); max-width: 44ch; }
.brand-foot-nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.brand-foot-nav a, .brand-foot-nav button {
  all: unset; cursor: pointer; white-space: nowrap;
  font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3);
  padding: 12px 0; border-bottom: 1.5px solid transparent;
}
.brand-foot-nav a:hover, .brand-foot-nav button:hover { color: var(--ink); border-bottom-color: var(--ink); }
.brand-foot-nav a:focus-visible, .brand-foot-nav button:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
@media (min-width: 760px) {
  .brand-foot .wrap { grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; }
}
.brand-foot + .site-foot { margin-top: 18px; }
.site-foot { margin-top: 34px; border-top: 1px solid var(--rule); padding: 20px 0 34px; font: 400 12px/1.6 var(--mono); color: var(--ink-3); }
.site-foot p { margin: 0 0 6px; }
.site-foot a { color: var(--ink-2); }
.lastfm-logo { color: var(--lastfm); font-weight: 500; }

@media (forced-colors: active) { .chart .mk, .key, .sticker { forced-color-adjust: none; } }

/* The header (Steve, 25 Sep): Albums · Artists · Play · Charts · Notes, then search and the crate; How it works lives in
   every footer (Notes too). Under 700 px the links go behind the menu button, and the mark, search, the crate and the menu
   stay. */
.menu-toggle { display: none; }
.site-menu { display: none; }
@media (max-width: 699px) {
  .site-nav { gap: 6px; }
  .site-nav .nav-link { display: none; }
  .menu-toggle {
    display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 10px; margin-left: 2px; cursor: pointer;
    background: transparent; color: var(--ink); border: 1px solid var(--rule-2); border-radius: var(--radius);
    font: 500 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  }
  .menu-toggle[aria-expanded="true"] { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
  .menu-toggle:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
  .site-menu:not([hidden]) { display: block; border-top: 1px solid var(--rule); background: var(--paper); }
  .menu-inner { list-style: none; margin: 0; padding: 4px var(--gutter) 12px; }
  .menu-inner a { display: flex; align-items: center; min-height: 52px; border-bottom: 1px solid var(--rule); text-decoration: none;
    font: 700 20px/1.1 var(--display); color: var(--ink); }
  .menu-inner li:last-child a { border-bottom: 0; }
  .menu-inner a[aria-current="page"] { color: var(--teal-ink); }
  .search-toggle { width: 36px; height: 40px; }
}
@media (max-width: 480px) { .brand-name { display: none; } }
@media (max-width: 340px) { .menu-toggle span { display: none; } .menu-toggle { padding: 0 9px; } }
.eyebrow a { color: inherit; text-underline-offset: 3px; }
.foot-nav a + a { margin-left: 14px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Forced colours (Windows high contrast): shadows and fills vanish, so selection needs a real border (S6). */
@media (forced-colors: active) {
  .sleeve, .tab { border: 1px solid CanvasText; }
  /* forced-color-adjust: none, or the browser's readability backplate (Canvas) sits behind SelectedItemText and the
     label disappears (BREAK_LOG S28). */
  .sleeve[aria-pressed="true"], .sleeve[aria-current="page"], .tab[aria-pressed="true"] { forced-color-adjust: none; outline: 3px solid Highlight; outline-offset: 1px; background: SelectedItem; color: SelectedItemText; }
  .sleeve[aria-pressed="true"] .label, .sleeve[aria-current="page"] .label { color: SelectedItemText; }
  .btn { border: 1px solid ButtonText; }
}

@media (forced-colors: active) { .meter-track, .meter-fill { forced-color-adjust: none; } .meter-fill { background: CanvasText !important; } }
/* Galaxy Fold cover screen (280 px): the wordmark gives way to the record mark (round-2 S18). */
@media (max-width: 300px) { .brand-name { display: none; } }

/* ---------- Search (header of every page) ---------- */
.search-toggle { all: unset; box-sizing: border-box; display: inline-grid; place-items: center; width: 32px; height: 32px; cursor: pointer;
  color: var(--ink-2); border-radius: var(--radius); }
.search-toggle:hover, .search-toggle[aria-expanded="true"] { color: var(--ink); }
.search-toggle:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.search-panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--rule-2);
  box-shadow: 0 14px 28px -18px rgba(16, 22, 31, .45); padding: 12px 0 10px; }
.search-inner { max-width: 1040px; margin: 0 auto; padding: 0 var(--gutter); }
.search-form input { box-sizing: border-box; width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--rule-2); border-top: 3px solid var(--ink);
  border-radius: 0; background: var(--paper); color: var(--ink); font: 500 17px/1.2 var(--body); }
.search-form input:focus { outline: none; border-color: var(--ink); }
.search-results { list-style: none; margin: 6px 0 0; padding: 0; max-height: min(60vh, 440px); overflow-y: auto; }
.search-opt a { display: grid; gap: 2px; padding: 8px 10px; border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--ink); min-width: 0; }
.search-opt[aria-selected="true"] a { background: var(--paper-2); box-shadow: inset 3px 0 0 var(--teal); }
.so-name { font: 700 16px/1.25 var(--display); overflow-wrap: anywhere; }
.so-meta { font: 500 10.5px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-left: 8px; }
.so-sub { font: 400 13px/1.3 var(--body); color: var(--ink-2); overflow-wrap: anywhere; }
.is-artist .so-sub { font: 500 10.5px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--teal-ink); }
.search-status { margin: 6px 0 0; font: 400 12px/1.4 var(--mono); color: var(--ink-3); min-height: 1em; }
.search-status:empty { display: none; }
@media (forced-colors: active) { .search-opt[aria-selected="true"] a { outline: 2px solid Highlight; } }

/* ---------- Browse ---------- */
.browse .board { margin-bottom: 22px; }
.browse-letters { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 10px 0 4px; font: 500 12px/1.6 var(--mono); letter-spacing: .06em; }
.browse-letters a { color: var(--ink-2); }
/* /albums/ page by page (a page per year-end list and per artist letter): the page you're on is marked. */
.album-pages .label { margin: 14px 0 0; }
.browse-letters a[aria-current="page"] { color: var(--ink); font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--teal); }
.browse-head { font: 800 20px/1.2 var(--display); letter-spacing: -.02em; margin: 20px 0 6px; padding-top: 8px; border-top: 1px solid var(--rule-2);
  scroll-margin-top: 70px; }
.browse-head .label { margin-left: 8px; vertical-align: 2px; }
.browse-list { list-style: none; margin: 0; padding: 0; columns: 1; column-gap: 32px; }
@media (min-width: 640px) { .browse-list { columns: 2; } }
@media (min-width: 960px) { .browse-list { columns: 3; } }
/* 2,000+ rows in one page: off-screen lists skip layout and paint until scrolled near (first paint at 360 px, make perf). */
.browse .browse-list { content-visibility: auto; contain-intrinsic-size: auto 1200px; }
.browse-list li { break-inside: avoid; display: grid; gap: 1px; padding: 5px 0; border-bottom: 1px solid var(--rule); min-width: 0; }
.browse-list a { font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.browse-list .label { overflow-wrap: anywhere; }
.browse-more { margin: 4px 0 0; }

/* ---------- The artist's catalogue on one grid (QUADRANT_BRIEF 3b) ---------- */
.cat-card { margin-bottom: 22px; position: relative; }
.cat-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; }
.cat-views { margin: 0; }
.cat-chart { position: relative; }
.cat-mk { stroke: var(--surface); stroke-width: 1.25; transition: opacity .15s; }
.chart .cat-svg .dc-label { font-size: 12.5px; }  /* = catalog.js nameFs, subFs */
.chart .cat-svg .dc-sub { font-size: 9.5px; }
.cat-mk.is-single { stroke: var(--amber); stroke-width: 2; }
.cat-mk.is-named { stroke-width: 2; }
.cat-mk.is-dim { opacity: .12; }
.cat-mk.is-hover { stroke: var(--ink); stroke-width: 2.5; }
.cat-shape { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 14px 0 6px; }
.cat-shape div { border-top: 3px solid var(--rule-2); padding-top: 6px; min-width: 0; }
.cat-shape div.cell-deep { border-top-color: var(--ink); }
.cat-shape dt { font: 500 10px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); overflow-wrap: anywhere; }
.cat-shape dd { margin: 2px 0 0; font: 800 24px/1 var(--display); }
.cat-sentence { margin: 6px 0 14px; font-size: 1.05rem; }
.cat-legend { list-style: none; margin: 6px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 2px 14px; }
.cat-legend button { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 2px; cursor: pointer;
  border-bottom: 1px solid var(--rule); font-size: 14px; }
.cat-legend button:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; }
.cat-legend .sw { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.cat-legend .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Wider screens: a long title wraps to a second line rather than losing its end (REVIEW_ARTIST_GRID 10: "THE TORTURED PO…",
   "Red (Taylor's Versio…"). Phones keep one line, since the legend scrolls in a short box there. */
@media (min-width: 601px) {
  .cat-legend { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
  .cat-legend .t { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-height: 1.25; }
}
.cat-legend .label { flex: none; }
.cat-legend button[aria-pressed="true"] { font-weight: 700; border-bottom-color: var(--ink); }
.cat-legend.has-focus button[aria-pressed="false"] { opacity: .55; }
.cat-key { margin-top: 8px; }
@media (max-width: 600px) {
  .cat-legend { max-height: 220px; overflow-y: auto; grid-template-columns: 1fr; overscroll-behavior: contain; }
  .cat-legend.overflows { box-shadow: inset 0 -18px 14px -14px rgba(16, 22, 31, .3); }
  .cat-shape dd { font-size: 20px; }
}
@media (forced-colors: active) { .cat-mk { forced-color-adjust: none; } }

/* ---------- Your deep cuts (YOU_BRIEF.md): the entry line, the album's "You" card, the artist's line and sleeve marks ---------- */
.you-bar { margin: 12px 0 2px; padding: 0 0 10px; border-bottom: 1px solid var(--rule); color: var(--ink-2); font-size: 14px; line-height: 1.4; }
.you-form { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0; }
.you-ask { flex: 1 1 100%; }
@media (min-width: 1024px) { .you-ask { flex: 0 1 auto; } }
.you-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.you-row input[type="text"] { box-sizing: border-box; width: 11.5em; min-height: 40px; padding: 0 10px; border: 1px solid var(--rule-2);
  border-radius: 0; background: var(--paper); color: var(--ink); font: 500 15px/1.2 var(--body); }
.you-row input[type="text"]:focus { outline: 2px solid var(--teal); outline-offset: 1px; }
.you-row .btn { min-height: 40px; padding: 0 16px; }
.you-keep { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; color: var(--ink-3); font-size: 13px; cursor: pointer; }
.you-keep input { width: 16px; height: 16px; margin: 0; accent-color: var(--teal); }
/* On a phone the box shows once the field is in use, so the untouched line costs the album's first screen one row less. */
@media (max-width: 699px) { .you-form:not(:focus-within):has(#you-user:placeholder-shown) .you-keep:not(:has(:checked)) { display: none; } }
.you-status { font: 400 12.5px/1.4 var(--mono); color: var(--ink-3); }
.you-status.is-error { color: var(--ink); }
.you-status:empty { display: none; }
.you-showing { margin: 0; padding: 8px 0 0; min-height: 32px; }
.you-showing strong { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.you-link { all: unset; cursor: pointer; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; padding: 8px 2px; }
.you-link:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.you-card { margin-top: 18px; }
.you-card .eyebrow { color: var(--teal-ink); margin: 0 0 8px; }
.you-card .you-body p { margin: 0 0 6px; color: var(--ink); font-size: 17px; line-height: 1.45; max-width: 60ch; }
.you-card .you-body em { font-style: normal; font-weight: 700; overflow-wrap: anywhere; }
/* Room kept from the moment a name is submitted, so nothing below moves when the plays arrive. */
.you-card.is-pending { min-height: 160px; }
@media (min-width: 700px) { .you-card.is-pending { min-height: 88px; } }
.you-line { margin: 0 0 10px; color: var(--ink-2); font-size: 15px; }
.you-line.is-pending { min-height: 2.8em; }
@media (min-width: 700px) { .you-line.is-pending { min-height: 1.4em; } }
.sleeve .s-you { display: block; margin-top: 4px; color: var(--teal-ink); }
.sleeve .s-you.is-played { color: var(--ink-3); }

/* Who made it (Steve, 2026-09-29): one line under the Last.fm credit on every page, and one sentence on the methodology page. */
.foot-by a { color: var(--ink-2); }
.lede-by { color: var(--ink-2); font-size: 16px; margin: 6px 0 22px; }
