/* ============================================================================
   Vintage Mio — COMPONENT STYLES. Consumes tokens.css only.
   Editorial "crate-digging" feel: charcoal field, restrained gold-foil accents,
   one display serif for headers, legible sans for UI. Dark-first, responsive.
   ========================================================================== */

/* ---- Reset / base ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-text);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--text);
  /* His actual store as a fixed, dimmed backdrop — atmosphere behind the dark UI.
     The gradient keeps text/cards readable (lighter up top behind the hero,
     darker toward the content below). */
  background:
    linear-gradient(180deg, rgba(13,13,15,.80), rgba(13,13,15,.90) 50%, rgba(13,13,15,.97)) center/cover fixed,
    url("/covers/store-backdrop.jpg") center/cover no-repeat fixed,
    var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}
[hidden] { display: none !important; }
.hidden { display: none !important; }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}
::selection { background: var(--accent-weak); color: var(--ink-050); }
.tnum { font-variant-numeric: tabular-nums; }
.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;
}

/* ---- Typography --------------------------------------------------------- */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: var(--lh-heading);
  font-weight: var(--fw-display); margin: 0 0 var(--sp-3); color: var(--text); }
h1 { font-size: var(--fs-2xl); letter-spacing: -0.01em; }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); font-weight: var(--fw-bold); }
p { margin: 0 0 var(--sp-4); max-width: 68ch; }
.eyebrow {
  font-family: var(--font-text); font-size: var(--fs-xs); font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--gold-300);
  margin: 0 0 var(--sp-2);
}
.muted { color: var(--text-muted); }
.display { font-family: var(--font-display); }

/* ---- Layout ------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto;
  padding-inline: var(--sp-4); }
.stack { display: flex; flex-direction: column; gap: var(--sp-4); }
.row { display: flex; align-items: center; gap: var(--sp-3); }
.wrap { flex-wrap: wrap; }
.spread { justify-content: space-between; }
.grow { flex: 1 1 auto; min-width: 0; }
main { min-height: calc(100vh - var(--header-h)); padding-bottom: var(--sp-9); }
.section { padding-block: var(--sp-7); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--sp-4); margin-bottom: var(--sp-5); flex-wrap: wrap; }
/* flex-wrap (2026-09-28): on a 360–375px phone "@vintagemiorecords" is one word
   too long to share a row, and the Follow button was pushed off the right edge —
   the page then slid sideways. The button now drops under the heading instead. */
.grid { display: grid; gap: var(--sp-5); }
/* SIX ACROSS on the browse page, TWO on a phone. A record shop is a wall of
   sleeves; one column on a phone turns a 2,000-record catalog into a list you
   scroll forever, and four across wastes most of a desktop screen.
   Counts are explicit rather than auto-fill so the page is the same shape for
   everyone — auto-fill would give seven columns on a wide monitor and five on a
   laptop, and neither is what was asked for. */
.grid-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); }
@media (min-width: 560px)  { .grid-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 860px)  { .grid-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .grid-cards { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

/* ---- Header (sticky) ---------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-sticky);
  background: color-mix(in srgb, var(--ink-900) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-bar { display: flex; align-items: center; gap: var(--sp-4);
  height: var(--header-h); }
.brand { display: flex; align-items: center; gap: var(--sp-2); flex: 0 0 auto; }
.brand img { width: 34px; height: 34px; }
.brand b { font-family: var(--font-display); font-weight: var(--fw-display);
  font-size: var(--fs-md); color: var(--ink-050); letter-spacing: -0.01em; }
.brand b span { color: var(--gold-400); }
/* His real badge logo — larger + transparent (overrides the 34px square icon). */
.brand.brand--logo img { width: auto; height: 84px; display: block; }
.site-footer .brand.brand--logo img { height: 108px; }
@media (max-width: 640px) { .brand.brand--logo img { height: 60px; } }

/* Global search */
.search { position: relative; flex: 1 1 420px; max-width: 560px; }
.search input[type="search"] {
  width: 100%; height: 42px; padding: 0 var(--sp-4) 0 46px;
  background: var(--ink-800); border: 1px solid var(--border);
  border-radius: var(--r-pill); color: var(--text); font: inherit;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.search input[type="search"]::placeholder { color: var(--text-muted); }
.search input[type="search"]:focus { border-color: var(--gold-600); box-shadow: var(--shadow-focus); outline: none; }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--text-muted); pointer-events: none; }

.header-actions { display: flex; align-items: center; gap: var(--sp-1); flex: 0 0 auto; }
/* Social icons sit first in the corner, a hair smaller than the shop's own controls,
   with a thin divider so they read as "elsewhere" rather than part of the cart. */
.social-links { display: inline-flex; align-items: center; gap: 2px; }
.social-links:not(:empty) { margin-right: var(--sp-2); padding-right: var(--sp-2);
  border-right: 1px solid var(--border); }
.social-links .icon-btn { width: 36px; height: 36px; min-width: 36px; }
.social-links .icon-btn svg { width: 18px; height: 18px; }
@media (max-width: 720px) { .social-links { display: none; } }   /* → footer instead */
.footer-social { display: flex; gap: var(--sp-4); flex-wrap: wrap; margin-top: var(--sp-3); }
.footer-social a { display: inline-flex; align-items: center; gap: 6px; color: var(--text-secondary); }
.footer-social svg { width: 18px; height: 18px; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; min-width: 44px; border: 0; background: transparent;
  color: var(--text-secondary); border-radius: var(--r-md); cursor: pointer;
  position: relative; transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.icon-btn:hover { background: var(--ink-800); color: var(--ink-050); }
.icon-btn svg { width: 22px; height: 22px; }
.cart-count {
  position: absolute; top: 5px; right: 5px; min-width: 18px; height: 18px;
  padding: 0 5px; border-radius: var(--r-pill); background: var(--accent);
  color: var(--on-accent); font-size: 11px; font-weight: var(--fw-bold);
  line-height: 18px; text-align: center; font-variant-numeric: tabular-nums;
}
.menu-toggle { display: none; }

/* Primary nav (desktop) */
.primary-nav { display: flex; align-items: center; gap: var(--sp-1);
  border-top: 1px solid var(--border); height: 46px; }
.primary-nav a, .primary-nav button {
  /* ⚑ A NAV LABEL NEVER WRAPS. Flex items shrink before they overflow, and past
     a certain squeeze they stop giving up padding and break the TEXT instead —
     at 1000px with ten links, four of them went to two lines and the bar
     doubled in height (measured 2026-09-23, adding the policies link). That is the
     failure this breakpoint is really defending against; the horizontal
     scrollbar in the older note below needs more pressure than the bar ever
     gets now. One line always, and the drawer takes over below the width where
     one line fits. */
  white-space: nowrap;
  font: inherit; font-size: var(--fs-sm); font-weight: var(--fw-medium);
  color: var(--text-secondary); background: none; border: 0; cursor: pointer;
  padding: var(--sp-2) var(--sp-3); border-radius: var(--r-sm);
  display: inline-flex; align-items: center; gap: 6px;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.primary-nav a:hover, .primary-nav button:hover { color: var(--ink-050); background: var(--ink-800); }
/* ⚑ GOLD MEANS "YOU ARE HERE", AND NOTHING ELSE (Armando via Larry, 2026-10-11:
   "yellow highlighted sections should be the tab you are on. It needs to move
   when the user selects a section").

   It used to mean two promoted links. Crate Club and We Buy Records carried
   class="accent" in index.html and were gold on every page, while the actual
   current-page marker was `.active` — the same dark pill as :hover, so it read
   as a cursor rather than a position. The eye went to the gold, the gold never
   moved, and the one signal that did move was indistinguishable from hovering.

   Active is now gold ON the pill, so it is both the brightest thing in the bar
   and structurally distinct from a hover. setActiveNav() in app.js already
   stamps it on every hash change, so it follows him without anything else. */
.primary-nav a.active { color: var(--gold-300); background: var(--ink-800); }
.primary-nav a.active:hover { color: var(--gold-200); }
.caret { width: 14px; height: 14px; transition: transform var(--dur) var(--ease); }
[aria-expanded="true"] .caret { transform: rotate(180deg); }

/* ---- Mega-menu (genre / format / condition) ----------------------------- */
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--surface-2); border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-2); z-index: var(--z-drawer);
  transform-origin: top;
}
/* SIX groups: Type, Shop, Pressing, genre, format, condition. Pressing became its
   own column on 2026-10-06 so that "Shop" lists the same six shelves here as it
   does in the phone drawer — the same heading used to carry twelve entries here
   and six there. Explicit columns, halving on the way down: auto-fit made an
   empty track, and three columns dropped the last group onto a row of its own
   beside a wide gap. */
.mega-inner { display: grid; grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-6); padding-block: var(--sp-6); }
@media (min-width: 860px)  { .mega-inner { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1220px) { .mega-inner { grid-template-columns: repeat(6, 1fr); } }
.mega h4 { font-family: var(--font-text); font-size: var(--fs-xs);
  text-transform: uppercase; letter-spacing: var(--tracking-caps);
  color: var(--gold-300); margin: 0 0 var(--sp-3); }
.mega ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-1); }
.mega a { display: block; padding: 6px 8px; margin: -6px -8px; border-radius: var(--r-sm);
  color: var(--text-secondary); font-size: var(--fs-sm); }
.mega a:hover { background: var(--ink-800); color: var(--ink-050); }

/* ---- Mobile drawer (hidden until toggled) ------------------------------- */
.backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.6);
  z-index: var(--z-backdrop); opacity: 0; animation: fade var(--dur) var(--ease) forwards;
}
.drawer {
  position: fixed; inset: 0 20% 0 0; max-width: 340px;
  background: var(--surface-2); z-index: var(--z-drawer);
  border-right: 1px solid var(--border); box-shadow: var(--shadow-3);
  padding: var(--sp-4); overflow-y: auto;
  transform: translateX(-100%); animation: slideIn var(--dur-slow) var(--ease) forwards;
  display: flex; flex-direction: column; gap: var(--sp-2);
}
.drawer .drawer-head { display: flex; align-items: center; justify-content: space-between;
  margin-bottom: var(--sp-3); }
.drawer nav { display: flex; flex-direction: column; gap: 2px; }
.drawer nav a, .drawer .grp-btn {
  font: inherit; text-align: left; background: none; border: 0; cursor: pointer;
  color: var(--text); padding: var(--sp-3); border-radius: var(--r-sm);
  font-size: var(--fs-md); font-weight: var(--fw-medium);
}
.drawer nav a:hover, .drawer .grp-btn:hover { background: var(--ink-800); }
.drawer .sub-links { display: flex; flex-direction: column; padding-left: var(--sp-3); }
.drawer .sub-links a { font-size: var(--fs-sm); font-weight: var(--fw-regular);
  color: var(--text-secondary); padding: var(--sp-2) var(--sp-3); }
@keyframes slideIn { to { transform: translateX(0); } }
@keyframes fade { to { opacity: 1; } }

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  font: inherit; font-weight: var(--fw-semibold); font-size: var(--fs-sm);
  min-height: 44px; padding: 0 var(--sp-5); border-radius: var(--r-pill);
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease),
              color var(--dur) var(--ease), transform var(--dur-fast) var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover:not(:disabled) { background: var(--accent-hover); color: var(--on-accent); }
.btn-primary:active { background: var(--accent-press); }
.btn-secondary { background: var(--ink-800); color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover:not(:disabled) { background: var(--ink-750); border-color: var(--ink-500); color: var(--ink-050); }
.btn-ghost { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover:not(:disabled) { background: var(--ink-800); color: var(--ink-050); }
.btn-sm { min-height: 36px; padding: 0 var(--sp-3); font-size: var(--fs-xs); }
.btn-block { width: 100%; }
.btn.is-loading { color: transparent !important; pointer-events: none; position: relative; }
.btn.is-loading::after {
  content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid currentColor; border-top-color: transparent;
  color: var(--on-accent); animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Chips / filter pills ---------------------------------------------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px;
  padding: 0 var(--sp-3); border-radius: var(--r-pill);
  background: var(--ink-800); border: 1px solid var(--border);
  color: var(--text-secondary); font-size: var(--fs-sm); font-weight: var(--fw-medium);
  cursor: pointer; transition: all var(--dur) var(--ease);
}
.chip:hover { border-color: var(--ink-500); color: var(--ink-050); }
.chip[aria-pressed="true"], .chip.active {
  background: var(--accent-weak); border-color: var(--gold-600); color: var(--gold-200);
}
.chip .x { font-size: 15px; line-height: 1; opacity: .8; }

/* ---- Cards -------------------------------------------------------------- */
.card {
  background: var(--surface-1); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
}
.card-pad { padding: var(--sp-5); }
.record-card {
  background: var(--surface-1); border: 1px solid var(--border);
  border-radius: var(--r-md); overflow: hidden; cursor: pointer;
  display: flex; flex-direction: column; text-align: left;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.record-card:hover { transform: translateY(-3px); border-color: var(--ink-500);
  box-shadow: var(--shadow-2); }
.record-card .cover { aspect-ratio: 1 / 1; background: var(--ink-850);
  position: relative; overflow: hidden; }
.record-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.record-card .cover .ph {
  display: flex; align-items: center; justify-content: center; height: 100%;
  color: var(--ink-600); background:
    radial-gradient(circle at 50% 50%, var(--ink-750) 0 30%, var(--ink-850) 31% 100%);
}
.record-card .cover .ph svg { width: 46px; height: 46px; }
.record-card .meta { padding: var(--sp-3); display: flex; flex-direction: column; gap: 4px; }
/* ⚑ THE WHOLE NAME, HOWEVER LONG (Larry, 2026-11-05: "the artist is getting
   cutoff"). A card that shows "DAVID CROSBY, STEPHEN ST…" is selling somebody
   else's record. It wraps; the row of cards grows to the tallest one. */
.record-card .rc-artist { font-size: var(--fs-xs); color: var(--gold-300);
  font-weight: var(--fw-semibold); letter-spacing: .02em; text-transform: uppercase;
  overflow-wrap: anywhere; }
.record-card .rc-title { font-size: var(--fs-sm); font-weight: var(--fw-semibold);
  color: var(--ink-050); line-height: 1.3; overflow-wrap: anywhere; }
/* ---- Gives Back: story, pull quote, sourced timeline -------------------- */
.mission-quote { margin: 8px 0 0; padding: 18px 22px; max-width: 60ch;
  border-left: 3px solid var(--gold-400); background: var(--surface-1);
  border-radius: 0 12px 12px 0; font-size: var(--fs-lg); line-height: 1.45;
  color: var(--ink-050); }
.mission-quote cite { display: block; margin-top: 10px; font-style: normal;
  font-size: var(--fs-sm); color: var(--text-muted); }
.mission-timeline { list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 2px; }
.mission-timeline li { display: grid; grid-template-columns: 150px 1fr; gap: 14px;
  padding: 12px 0; border-top: 1px solid var(--border); align-items: start; }
.mission-timeline li:first-child { border-top: 0; }
.mission-timeline .mt-when { color: var(--gold-300); font-weight: var(--fw-semibold);
  font-size: var(--fs-sm); }
.mission-timeline .mt-label { line-height: 1.4; }
@media (max-width: 620px) {
  .mission-timeline li { grid-template-columns: 1fr; gap: 2px; }
}

/* Session/interview date under the title — dated archive entry, not a price line. */
.record-card .rc-sub { font-size: var(--fs-xs); line-height: 1.3;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* ⚑ WHAT THE BUYER IS GETTING, IN WORDS (Larry, 2026-09-30: "add the media and
   the cover grade under each listing"). Two short rows under the price: the
   label quiet, the grade in tabular figures so NM- and VG+ line up down a column
   of cards. Small on purpose — this is the detail you check before buying, not
   the thing that sells the record. */
/* ⚑ minmax(0, 1fr) AND min-width: 0, OR NONE OF THE REST WORKS. An auto grid
   track sizes to its content, so the row simply grew past the card and the label
   never had to shrink — measured 269px inside a 202px card. Pinning the track to
   the container is what gives the ellipsis below something to bite on. */
/* ⚑ SIDE BY SIDE, NOT STACKED (his call, 2026-10-02). Two short facts about one
   record read as a pair — NM- beside VG+ is taken in at a glance, where two
   lines are read twice. They wrap back to stacked when there is not room for
   both, which is what a narrow phone gets, so nothing is ever cut off.
   ⚑ The column gap is deliberately wider than the gap INSIDE a line, between a
   label and its own grade. At the same gap the four words read as one run and
   you cannot tell which grade belongs to which label — which is the whole thing
   these lines exist to say.
   ⚑ Still no `grid-template-columns: 1fr`-shaped trap here: .cond-line carries
   min-width: 0 itself, so a long typed label shrinks rather than widening the
   card (PR #117). */
.cond { display: flex; flex-wrap: wrap; column-gap: var(--sp-5); row-gap: 2px;
  margin-top: 6px; }
.cond-line { display: flex; align-items: baseline; gap: var(--sp-2); min-width: 0;
  font-size: var(--fs-xs); line-height: var(--lh-tight); }
/* ⚑ THE GRADE IS THE INFORMATION, THE LABEL IS THE SIGNPOST (Greptile, Backroom
   #12). grade.media is his to type, so "Media" could become "Record condition"
   — and with the label unshrinkable that pushed the grade out of a 180px card.
   The label gives way first, by a factor of ten thousand, so a real grade like
   NM- or VG+ is never touched while there is any label left to give.
   ⚑ BUT NOT flex-shrink: 0 ON THE VALUE (Greptile, PR #117). grade.sealed is
   ALSO his to type — "Never opened, still sealed from the factory" goes in this
   same span — so a value that can never shrink just overflows the card instead.
   It gives way last, and ellipses rather than spills. */
.cond-k { color: var(--text-faint); text-transform: uppercase;
  letter-spacing: var(--tracking-caps); flex: 0 1 auto; flex-shrink: 10000;
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cond-v { color: var(--text-secondary); font-weight: var(--fw-semibold);
  font-variant-numeric: tabular-nums; flex: 0 1 auto; flex-shrink: 1;
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy-row .cond { margin: 0 0 var(--sp-3); }
.copy-row .cond-line { font-size: var(--fs-sm); }

.record-card .rc-foot { display: flex; align-items: center; justify-content: space-between;
  margin-top: 4px; }
.record-card .price { font-weight: var(--fw-bold); color: var(--ink-050);
  font-variant-numeric: tabular-nums; }
.local-tag { font-size: 10px; font-weight: var(--fw-bold); text-transform: uppercase;
  letter-spacing: .06em; color: var(--gold-300); background: var(--accent-wash);
  border: 1px solid var(--gold-800); padding: 2px 6px; border-radius: var(--r-sm); }

/* ---- Condition-grade badges (Goldmine scale) ---------------------------- */
.grade {
  display: inline-flex; align-items: center; gap: 5px; font-size: var(--fs-xs);
  font-weight: var(--fw-bold); letter-spacing: .03em; padding: 2px 8px;
  border-radius: var(--r-sm); font-variant-numeric: tabular-nums;
  border: 1px solid transparent; white-space: nowrap;
}
.grade::before { content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: currentColor; flex: 0 0 auto; }
.grade .lbl { color: var(--ink-100); font-weight: var(--fw-medium); }
/* SEALED IS NOT A GRADE, so it must not look like one. The grade chips run a
   green-to-red condition scale; this sits outside it in the brand gold and reads
   as a statement of fact rather than a point on that scale. */
.grade.is-sealed { color: var(--gold-300, #e6be5c);
  background: color-mix(in srgb, var(--gold-300, #e6be5c) 12%, transparent);
  border-color: color-mix(in srgb, var(--gold-300, #e6be5c) 42%, transparent); }
.grade.is-sealed::before { border-radius: 1px; width: 6px; height: 8px; }
.grade[data-g="M"]   { color: var(--grade-m);   background: color-mix(in srgb,var(--grade-m) 14%,transparent);   border-color: color-mix(in srgb,var(--grade-m) 40%,transparent); }
.grade[data-g="NM"]  { color: var(--grade-nm);  background: color-mix(in srgb,var(--grade-nm) 14%,transparent);  border-color: color-mix(in srgb,var(--grade-nm) 40%,transparent); }
.grade[data-g="NM-"] { color: var(--grade-nm);  background: color-mix(in srgb,var(--grade-nm) 14%,transparent);  border-color: color-mix(in srgb,var(--grade-nm) 40%,transparent); }
.grade[data-g="EX"]  { color: var(--grade-vgp); background: color-mix(in srgb,var(--grade-vgp) 14%,transparent); border-color: color-mix(in srgb,var(--grade-vgp) 40%,transparent); }
.grade[data-g="VG+"] { color: var(--grade-vgp); background: color-mix(in srgb,var(--grade-vgp) 14%,transparent); border-color: color-mix(in srgb,var(--grade-vgp) 40%,transparent); }
.grade[data-g="VG"]  { color: var(--grade-vg);  background: color-mix(in srgb,var(--grade-vg) 14%,transparent);  border-color: color-mix(in srgb,var(--grade-vg) 40%,transparent); }
.grade[data-g="G+"]  { color: var(--grade-gp);  background: color-mix(in srgb,var(--grade-gp) 14%,transparent);  border-color: color-mix(in srgb,var(--grade-gp) 40%,transparent); }
.grade[data-g="G"]   { color: var(--grade-g);   background: color-mix(in srgb,var(--grade-g) 14%,transparent);   border-color: color-mix(in srgb,var(--grade-g) 40%,transparent); }
.grade[data-g="F"]   { color: var(--grade-f);   background: color-mix(in srgb,var(--grade-f) 14%,transparent);   border-color: color-mix(in srgb,var(--grade-f) 40%,transparent); }
.grade[data-g="P"]   { color: var(--grade-p);   background: color-mix(in srgb,var(--grade-p) 14%,transparent);   border-color: color-mix(in srgb,var(--grade-p) 40%,transparent); }

/* ---- Forms -------------------------------------------------------------- */
label { display: block; font-size: var(--fs-sm); font-weight: var(--fw-medium);
  color: var(--text-secondary); margin-bottom: 6px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=tel],
input[type=search], input[type=url], input[type=datetime-local], select, textarea {
  width: 100%; min-height: 44px; padding: 10px var(--sp-3);
  background: var(--ink-850); border: 1px solid var(--border);
  border-radius: var(--r-sm); color: var(--text); font: inherit;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
textarea { min-height: 96px; resize: vertical; line-height: var(--lh-body); }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--gold-600); box-shadow: var(--shadow-focus); }
input::placeholder, textarea::placeholder { color: var(--text-muted); }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] {
  border-color: var(--danger); }
.field { margin-bottom: var(--sp-4); }
.field .err-msg { color: var(--danger); font-size: var(--fs-sm); margin-top: 6px; }
.range-row { display: flex; align-items: center; gap: var(--sp-2); }

/* ---- Layout: browse (sidebar filters + results) ------------------------- */
/* ⚑ minmax(0, 1fr), NOT 1fr. A grid track sized `1fr` is minmax(AUTO, 1fr):
   it refuses to go below its content, so one wide child — the list view's
   seven-column table — widened the column, the results bar and the page
   itself, and the whole storefront scrolled sideways on a phone. Same root
   cause as the condition lines in PR #117. */
.browse { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: var(--sp-6);
  align-items: start; }
/* ⚑ AND THE ITEMS, not just the track. A grid item defaults to
   min-width: auto, which refuses to shrink below its own content — so with
   minmax(0, 1fr) alone the track was a correct 343px and the column INSIDE
   it was still 575, overflowing the page anyway. Measured in the browser:
   .browse 343px, its child div 575px, min-width computed `auto`. Both
   halves are needed and fixing only one looks like fixing none. */
.browse > * { min-width: 0; }
/* The catalog gets more room than the reading pages: six sleeves plus a 264px
   filter rail do not fit in the 1200px used for prose. */
.container.browse-page { max-width: 1560px; }
/* ⚑ The rail scrolls ON ITS OWN. Sticky alone pinned the top of a rail taller
   than the screen, so its lower groups were only reachable by scrolling the
   whole page half-way down (Armando, 2026-09-25: "you have to scroll half the
   page to see the rest of the menu"). Cap it at the viewport and let it scroll
   inside itself; the page and the rail then move independently. */
.filters { position: sticky; top: calc(var(--header-h) + var(--sp-4));
  max-height: calc(100dvh - var(--header-h) - var(--sp-6));
  overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
  background: var(--surface-1); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: var(--sp-5); }
.filters .fgroup { padding-block: var(--sp-4); border-top: 1px solid var(--border); }
.filters .fgroup:first-of-type { border-top: 0; padding-top: 0; }
.filters h4 { font-family: var(--font-text); font-size: var(--fs-xs);
  text-transform: uppercase; letter-spacing: var(--tracking-caps);
  color: var(--text-muted); margin: 0 0 var(--sp-3); }
/* Each group folds (same ask). The heading is the control; the chevron says
   which way it will go; a folded group with a filter on still says so. */
.filters h4 .fgroup-btn { all: unset; cursor: pointer; display: flex; width: 100%;
  align-items: center; justify-content: space-between; gap: var(--sp-2); font: inherit;
  color: inherit; letter-spacing: inherit; text-transform: inherit; }
.filters h4 .fgroup-btn:focus-visible { outline: 2px solid var(--gold-500, #d4a13a); outline-offset: 2px; border-radius: 4px; }
.filters h4 .chev { display: inline-block; transition: transform .15s ease; font-size: 10px; }
.filters .fgroup.is-collapsed h4 { margin-bottom: 0; }
.filters .fgroup.is-collapsed h4 .chev { transform: rotate(-90deg); }
.filters .fgroup.is-collapsed .facet-list { display: none; }
.filters h4 .on-count { color: var(--gold-200); font-weight: 700; margin-left: auto; margin-right: 6px; }
@media (prefers-reduced-motion: reduce) { .filters h4 .chev { transition: none; } }
.facet-list { display: flex; flex-direction: column; gap: 2px; }
.facet { display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-2); background: none; border: 0; cursor: pointer; color: var(--text-secondary);
  font: inherit; font-size: var(--fs-sm); padding: 7px 8px; border-radius: var(--r-sm);
  text-align: left; }
.facet:hover { background: var(--ink-800); color: var(--ink-050); }
.facet.on { color: var(--gold-200); background: var(--accent-wash); }
.facet .n { color: var(--text-faint); font-variant-numeric: tabular-nums; font-size: var(--fs-xs); }
.results-bar { display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-3); margin-bottom: var(--sp-4); flex-wrap: wrap; }

/* The filter rail is a DESKTOP rail. Below 860px the 264px column wraps and the
   panel stacks on top of the results: 1,993px of facets — nearly three phone
   screens — before the first sleeve. Tapping a genre then changed a count the
   shopper could not see, which reads as the filter being broken rather than the
   layout being wrong. On a phone it collapses behind a button instead. */
#filters-toggle { display: none; }
@media (max-width: 859px) {
  /* minmax(0, …) here too — see the note on .browse above. Stacking the rail
     away does not help if the one remaining track still refuses to shrink. */
  .browse { grid-template-columns: minmax(0, 1fr); }
  .filters { position: static; max-height: 60vh; overflow-y: auto;
    -webkit-overflow-scrolling: touch; }
  .filters[hidden] { display: none; }
  #filters-toggle { display: inline-flex; align-items: center; gap: 6px; }
  /* The count is the feedback that a filter did something, so it must stay put
     while the panel opens and closes above the results. */
  .results-bar { position: sticky; top: var(--header-h); z-index: 5;
    background: var(--surface-1); padding-block: var(--sp-2); }
}

/* ---- Hero --------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--border);
  background:
    radial-gradient(120% 80% at 85% -10%, color-mix(in srgb,var(--gold-900) 55%,transparent) 0, transparent 60%),
    var(--ink-950); }
.hero .container { padding-block: var(--sp-8); }
.hero h1 { font-size: var(--fs-3xl); max-width: 16ch; margin-bottom: var(--sp-4); }
.hero p { font-size: var(--fs-md); color: var(--text-secondary); max-width: 52ch; }
.hero .cta-row { display: flex; gap: var(--sp-3); flex-wrap: wrap; margin-top: var(--sp-5); }

/* ---- Mission meter ------------------------------------------------------ */
.meter { height: 14px; border-radius: var(--r-pill); background: var(--ink-800);
  overflow: hidden; border: 1px solid var(--border); }
.meter > span { display: block; height: 100%; border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--gold-600), var(--gold-400));
  transition: width var(--dur-slow) var(--ease); }
.mission-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); }
.mstat { background: var(--surface-1); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: var(--sp-4); }
.mstat .v { font-family: var(--font-display); font-weight: var(--fw-display);
  font-size: var(--fs-xl); color: var(--gold-300); font-variant-numeric: tabular-nums; }
.mstat .k { font-size: var(--fs-sm); color: var(--text-muted); }

/* ---- Modal / dialog ----------------------------------------------------- */
dialog.modal {
  border: 1px solid var(--border-strong); background: var(--surface-3);
  color: var(--text); border-radius: var(--r-lg); padding: 0;
  max-width: 480px; width: calc(100% - var(--sp-6)); box-shadow: var(--shadow-3);
  /* Cap the dialog to the viewport and let the BODY scroll under a fixed header.
     The item editor is taller than a laptop screen, and without this its lower
     half — where writing off and deleting live — simply cannot be reached. */
  max-height: calc(100dvh - var(--sp-6)); display: flex; flex-direction: column;
}
dialog.modal::backdrop { background: rgba(0,0,0,.6); }
dialog.modal .m-head { display: flex; align-items: center; justify-content: space-between;
  padding: var(--sp-4) var(--sp-5); border-bottom: 1px solid var(--border); }
dialog.modal .m-head { flex: 0 0 auto; }
dialog.modal .m-body { padding: var(--sp-5); overflow-y: auto; -webkit-overflow-scrolling: touch; }

/* ---- Sale ribbon + sale pricing -----------------------------------------
   A diagonal band across the top-left corner of the sleeve. It has to survive
   three different containers (browse card, album hero, placeholder cover), so
   the ribbon is positioned against a wrapper and the cover knows nothing about
   it. overflow:hidden on the wrapper is what turns a rotated bar into a corner
   ribbon — without it the band hangs off the card. */
.rc-cover { position: relative; overflow: hidden; border-radius: inherit; }
.sale-ribbon {
  /* Bottom-right corner (Armando, 2026-09-25) — the top of the sleeve is the
     art. The format pill sits bottom-LEFT, so the two never meet. The same
     -45° band reads bottom-left to top-right across this corner too. */
  position: absolute; bottom: 14px; right: -34px; width: 132px;
  transform: rotate(-45deg);
  /* Red, not gold — Armando, 2026-09-25: a sale should look like a sale. */
  background: var(--sale-red); color: #fff;
  font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  text-align: center; padding: 5px 0; pointer-events: none; z-index: 2;
  box-shadow: 0 1px 6px rgba(0,0,0,.35);
}
/* The sale price leads; what it was follows, struck through and quiet. Showing
   the old price is the whole point of a discount, but it must never compete with
   the number the shopper is actually paying. */
.price.is-sale { color: var(--gold-300, #e6be5c); }
.price-was { margin-left: 6px; color: var(--text-muted); text-decoration: line-through;
  font-size: var(--fs-sm); font-weight: 400; }
/* The percentage is worked out from the two prices on the server, so it is
   right for a hand markdown as well as a discount event (2026-09-25). */
.price-off { margin-left: 6px; color: var(--sale-red); font-size: var(--fs-xs);
  font-weight: 700; white-space: nowrap; }
.chip-sale { background: color-mix(in srgb, var(--gold-500, #d4a13a) 16%, transparent);
  border-color: color-mix(in srgb, var(--gold-500, #d4a13a) 45%, transparent);
  color: var(--gold-300, #e6be5c); }

/* ---- Toast -------------------------------------------------------------- */
.toast-wrap { position: fixed; right: var(--sp-4); bottom: var(--sp-4);
  z-index: var(--z-toast); display: flex; flex-direction: column; gap: var(--sp-2); }
.toast { background: var(--surface-3); border: 1px solid var(--border-strong);
  border-left: 3px solid var(--accent); border-radius: var(--r-md);
  padding: var(--sp-3) var(--sp-4); box-shadow: var(--shadow-2); max-width: 340px;
  animation: slideUp var(--dur) var(--ease); }
.toast.ok { border-left-color: var(--success); }
.toast.err { border-left-color: var(--danger); }
@keyframes slideUp { from { opacity: 0; transform: translateY(8px); } }

/* ---- Skeletons / states ------------------------------------------------- */
.skeleton { background: linear-gradient(100deg, var(--ink-800) 30%, var(--ink-750) 50%, var(--ink-800) 70%);
  background-size: 200% 100%; animation: shimmer 1.3s infinite; border-radius: var(--r-sm); }
.sk-card { height: 260px; border-radius: var(--r-md); }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } }
.empty-state { text-align: center; padding: var(--sp-8) var(--sp-4); color: var(--text-muted); }
.empty-state svg { width: 48px; height: 48px; color: var(--ink-600); margin-bottom: var(--sp-3); }
.empty-state h3 { color: var(--text-secondary); }
.error-state { background: var(--danger-wash); border: 1px solid color-mix(in srgb,var(--danger) 40%,transparent);
  color: var(--text); border-radius: var(--r-md); padding: var(--sp-4); }

/* ---- Pagination --------------------------------------------------------- */
.pager { display: flex; align-items: center; justify-content: center; gap: var(--sp-3);
  margin-top: var(--sp-7); }
.pager .page-of { font-size: var(--fs-sm); color: var(--text-muted); font-variant-numeric: tabular-nums; }

/* ---- Footer ------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--border); background: var(--ink-950);
  padding-block: var(--sp-7); color: var(--text-muted); font-size: var(--fs-sm); margin-top: var(--sp-8); }
.site-footer a { color: var(--text-secondary); }
.footer-credits { border-top: 1px solid var(--border); margin-top: var(--sp-5); padding-top: var(--sp-4); font-size: var(--fs-xs); color: var(--text-muted); line-height: 1.6; }
.footer-credits p { margin: 0 0 6px; max-width: 110ch; }
.bio-credit { font-size: var(--fs-xs); margin-top: 6px; }
.site-footer a:hover { color: var(--gold-300); }
.footer-cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: var(--sp-6); }
.footer-hours { border-collapse: collapse; margin-top: 6px; font-size: var(--fs-sm); color: var(--text-secondary); }
.footer-hours th { text-align: left; font-weight: var(--fw-semibold); padding: 2px 14px 2px 0; white-space: nowrap; }
.footer-hours td { padding: 2px 0; white-space: nowrap; }
.footer-notice { margin: 10px 0 0; font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--gold-300); }
.footer-hours tr.closed td { color: var(--text-muted); font-style: italic; }

/* ---- Inline callout (We Buy Records confirmation, etc.) ------------------ */
.ask-answer { background: var(--ink-850); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: var(--sp-4); margin-top: var(--sp-4);
  line-height: var(--lh-body); }

/* ---- Album detail ------------------------------------------------------- */
/* Sleeve | info two-up. This lives here rather than as an inline style on the
   node because inline styles outrank media-query rules — as an inline style the
   two-column track never collapsed, and on a phone the info column (and its gold
   "Add to cart" button) was pushed off the right edge of the screen. */
.album-hero { grid-template-columns: minmax(260px, 380px) 1fr; align-items: start; }
/* Grid and flex children default to min-width:auto, so a long title or the price
   row can hold the column open wider than the viewport. */
.album-hero > * { min-width: 0; }
.album-hero h1 { overflow-wrap: anywhere; }

/* One available copy: grades on the left, price + buy button on the right. */
.copy-row { display: flex; gap: var(--sp-4); align-items: center;
  justify-content: space-between; flex-wrap: wrap; }
.copy-row .copy-buy { gap: 14px; flex-wrap: wrap; }

@media (max-width: 720px) {
  .album-hero { grid-template-columns: 1fr; }
  /* Price and button take their own full-width line once the grades have wrapped,
     so the button never gets squeezed into a sliver. */
  .copy-row .copy-buy { width: 100%; justify-content: space-between; }
  .copy-row .copy-buy .btn { flex: 1 1 auto; }
}

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 900px) {
  /* minmax(0, …) here too — see the note on .browse above. Stacking the rail
     away does not help if the one remaining track still refuses to shrink. */
  .browse { grid-template-columns: minmax(0, 1fr); }
  .filters { position: static; }
  .footer-cols { grid-template-columns: 1fr; }
  .mega-inner { grid-template-columns: 1fr; gap: var(--sp-4); }
}
/* The primary-nav links need a minimum viewport before they fit, and the drawer
   has to take over ABOVE that number — not below it. Miss by a few pixels and
   "We Buy Records" hangs past the right edge and gives EVERY page a horizontal
   scrollbar; that is what a 720px breakpoint did when the links needed 780px.
   Renaming "Sessions" to "Vintage Mío Sessions" pushed the requirement from ~780px
   to a measured 857px (820 → 900). Adding "Home" (Armando, 2026-09-22) measured
   918px of links + 32px container padding = 950, so 900 → 960. Adding the
   policies link (Larry, 2026-09-23) measured 1036 + 32 = 1068 as "Store
   Policies" — which put the drawer on a 1024-wide laptop — so it is labelled
   just "Policies": 997 + 32 = 1029, and 960 → 1040. Ten links is getting to be
   a lot for one row, and the next addition should take something out.
   MEASURE IT AGAIN if a nav label changes: sum the link widths plus the gaps plus
   the container padding.

   THIS NUMBER IS FOR THE SHOP AS CONFIGURED, WITH CRATE CLUB OFF — that link is
   not rendered at all while its switch is off (app.js strips [data-feature]),
   which is why 900 was ever enough. With it ON the links want 1013 + 32 = 1045.
   It is the ONLY feature switch that reaches this nav; The Counter and the rest
   are admin-side and add nothing here.

   ⚑ AND TURNING IT ON DOES NOT OVERFLOW — MEASURED, 2026-09-22, DO NOT "FIX" IT.
   The obvious conclusion from the paragraph above is that Crate Club needs this
   breakpoint at 1060, and that is wrong. These are flex items with the default
   flex-shrink, so between 960 and 1045 they give up padding instead of hanging
   off the edge: at a 965px viewport with Crate Club shown, "Online Inventory"
   goes 132 → 111px, "We Buy Records" 132 → 111, and documentElement.scrollWidth
   stays at 965 — no horizontal scrollbar, one row, slightly tighter links. The
   720px incident above was a different shape of failure, before these labels.
   If you widen a label, re-measure; but measure the scrollbar, do not infer it. */
@media (max-width: 1040px) {
  .primary-nav, .mega { display: none; }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 720px) {
  :root { --fs-3xl: 2.25rem; --fs-2xl: 1.875rem; }
  .primary-nav, .mega { display: none; }
  .menu-toggle { display: inline-flex; }
  .search { flex: 1 1 auto; }
  .brand b { display: none; }
  /* ⚑ On a phone the logo and five icons left the search a ~60px pill, and the
     input's 46px icon inset ate the rest: typed text had nowhere to appear
     (Armando, 2026-09-25: "when you start typing in the search, show us what
     we are typing"). While the box has focus it lays over the whole header
     row; on blur it folds back to the pill. 16px stops iOS zooming the page
     on focus; appearance:none keeps iOS from restyling the field. */
  .header-bar { position: relative; }
  .search:focus-within { position: absolute; left: var(--sp-3); right: var(--sp-3);
    top: 50%; transform: translateY(-50%); max-width: none; z-index: 3; }
  .search input[type="search"] { font-size: 16px; -webkit-appearance: none; appearance: none; }
  .search:focus-within input[type="search"] { background: var(--ink-850); }
  .mission-stats { grid-template-columns: 1fr; }
  .hero .container { padding-block: var(--sp-7); }
}
/* ⚑ ON AN IPHONE THE LAST ICON SAT ON THE SCREEN EDGE (Larry, 2026-09-28: "move
   the logo and the top menu bar to the left just a bit to insure all top icons
   are seen correctly"). Measured at 390px: the four 44px icons ran 20px past the
   page's own 16px margin, so the menu button ended at the glass, under the
   phone's rounded corner. The row now fits inside the margin: a slightly smaller
   badge, tighter gaps, 40px icons (still a comfortable tap), and a search pill
   allowed to shrink rather than push the icons out. */
@media (max-width: 480px) {
  .header-bar { gap: var(--sp-2); }
  .brand.brand--logo img { height: 48px; }
  .search { min-width: 0; }
  .header-actions { gap: 0; }
  .header-actions .icon-btn { width: 40px; min-width: 40px; }
}

/* ============================================================================
   WANTLIST & ALERTS  (storefront feature — wantlist.js)
   ========================================================================== */
.row.spread { justify-content: space-between; }

/* header bell badge (mirrors .cart-count) */
.want-count {
  position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px;
  padding: 0 4px; border-radius: var(--r-pill); background: var(--gold-500);
  color: var(--ink-900); font-size: 11px; font-weight: var(--fw-bold);
  line-height: 18px; text-align: center; font-variant-numeric: tabular-nums;
}

.wl-layout {
  display: grid; grid-template-columns: minmax(280px, 360px) 1fr;
  gap: var(--sp-6); align-items: start; margin-top: var(--sp-5);
}
.wl-col-save { position: sticky; top: 110px; }

.wl-alert-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--sp-4);
}
.wl-alert {
  display: flex; gap: var(--sp-3); padding: var(--sp-3);
  background: var(--surface-1); border: 1px solid var(--border);
  border-radius: var(--r-md); text-decoration: none; color: inherit;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.wl-alert:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.wl-alert.is-unread { border-color: var(--gold-700, var(--border-strong)); background: var(--accent-wash); }
.wl-alert-cover { flex: 0 0 84px; width: 84px; }
.wl-alert-cover .cover { border-radius: var(--r-sm); }
.wl-alert-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
.wl-alert-kicker {
  font-size: var(--fs-xs); font-weight: var(--fw-semibold); letter-spacing: var(--tracking-caps);
  text-transform: uppercase; color: var(--gold-300);
}
.wl-alert.is-unread .wl-alert-kicker { color: var(--gold-200); }
.wl-alert-artist { font-size: var(--fs-xs); color: var(--text-muted); }
.wl-alert-title {
  font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--ink-050);
  overflow-wrap: anywhere;
}

/* native <dialog> save-want modal */
.wl-dialog {
  border: 1px solid var(--border-strong); border-radius: var(--r-lg);
  background: var(--surface-2); color: var(--text); padding: 0;
  width: min(440px, calc(100vw - 32px)); box-shadow: var(--shadow-3);
}
.wl-dialog::backdrop { background: rgba(4, 4, 6, .66); backdrop-filter: blur(2px); }
.wl-dialog[open] { animation: wl-pop var(--dur) var(--ease); }
.wl-dialog-inner { padding: var(--sp-5); }
.wl-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-3); margin-bottom: var(--sp-3); }
@keyframes wl-pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .wl-dialog[open] { animation: none; }
  .wl-alert:hover { transform: none; }
}

@media (max-width: 860px) {
  .wl-layout { grid-template-columns: 1fr; }
  .wl-col-save { position: static; }
}

/* ======================= The Crate Club ============================= */
.cc-hero {
  background:
    radial-gradient(120% 120% at 85% -10%, var(--accent-wash) 0%, transparent 55%),
    linear-gradient(180deg, var(--surface-2) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  padding: var(--sp-8) 0 var(--sp-7);
}
.cc-hero h1 { margin: var(--sp-2) 0 var(--sp-4); }
.cc-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); margin-top: var(--sp-6); }
.cc-step { display: flex; gap: var(--sp-3); align-items: flex-start; }
.cc-step-n {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: var(--r-pill);
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 800;
  color: var(--gold-100); background: var(--accent-wash); border: 1px solid var(--gold-700);
}
.cc-tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); }
.cc-tier {
  text-align: left; cursor: pointer; padding: var(--sp-5); border-radius: var(--r-lg);
  background: var(--surface-1); border: 1.5px solid var(--border); color: var(--text);
  transition: border-color .15s, transform .12s, background .15s;
}
.cc-tier:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.cc-tier.on { border-color: var(--gold-500); background: var(--surface-2); box-shadow: 0 0 0 1px var(--gold-600) inset; }
.cc-tier-name { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-lg); }
.cc-tier-price { margin: 6px 0 4px; }
.cc-tier-price strong { font-size: var(--fs-2xl); font-family: var(--font-display); color: var(--gold-200); }
.cc-tier-price span { color: var(--text-muted); font-size: var(--fs-sm); }
.cc-tier-floor { color: var(--gold-300); font-size: var(--fs-sm); font-weight: 600; }
.cc-tier-blurb { color: var(--text-muted); font-size: var(--fs-sm); margin-top: 8px; }
.cc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cc-chip {
  cursor: pointer; padding: 6px 12px; border-radius: var(--r-pill); font-size: var(--fs-sm);
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text-secondary);
  transition: border-color .12s, color .12s, background .12s;
}
.cc-chip:hover { border-color: var(--border-strong); color: var(--text); }
.cc-chip.on { background: var(--accent-wash); border-color: var(--gold-600); color: var(--gold-100); }
.cc-big-price strong { font-size: var(--fs-3xl); font-family: var(--font-display); color: var(--gold-200); }
.cc-big-price span { color: var(--text-muted); }
.cc-status { padding: 4px 12px; border-radius: var(--r-pill); font-size: var(--fs-sm); font-weight: 600; text-transform: capitalize; border: 1px solid var(--border); }
.cc-status.cc-active { color: var(--gold-100); background: var(--accent-wash); border-color: var(--gold-700); }
.cc-status.cc-paused { color: var(--text-muted); }
.cc-status.cc-cancelled { color: var(--danger); }
.cc-plan .cc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--sp-4); }
.cc-box-items { display: flex; flex-direction: column; gap: 10px; margin-top: var(--sp-3); }
.cc-box-item { display: flex; gap: 12px; align-items: center; }
.cc-box-item img, .cc-box-item .cover { border-radius: var(--r-sm); }
.cc-reason { color: var(--gold-300); font-size: var(--fs-xs); margin-top: 2px; }
.cc-picks { margin-top: var(--sp-3); border-top: 1px solid var(--border); }
.cc-pull-item { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.cc-pull-item .cc-bin { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--gold-200); background: var(--surface-2); padding: 3px 8px; border-radius: var(--r-sm); }
.cc-pull-item .gr { font-weight: 700; font-size: var(--fs-sm); color: var(--text-secondary); min-width: 34px; text-align: right; }
.cc-alts { margin-top: 10px; }
.cc-alts summary { cursor: pointer; color: var(--text-muted); font-size: var(--fs-sm); }
.cc-select { background: var(--surface-2); border: 1px solid var(--border); color: var(--text); border-radius: var(--r-md); padding: 8px 12px; font-size: var(--fs-sm); }
.adm-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.adm-table th { text-align: left; padding: 10px 14px; color: var(--text-muted); font-weight: 600; border-bottom: 1px solid var(--border); }
.adm-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); }
.st.active { color: var(--gold-100); background: var(--accent-wash); border-color: var(--gold-700); }
.st.paused { color: var(--text-muted); }
.st.cancelled { color: var(--danger); }
.st.shipped { color: var(--gold-100); background: var(--accent-wash); border-color: var(--gold-700); }
@media (max-width: 780px) {
  .cc-steps, .cc-tiers { grid-template-columns: 1fr; }
}

/* Crate Club — checkout (shipping + demo payment) + billing on file */
.cc-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
.cc-demo-note { background: var(--surface-2); border: 1px solid var(--gold-700); border-radius: var(--r-md); padding: 12px 14px; font-size: var(--fs-sm); color: var(--text-secondary); margin-bottom: var(--sp-4); line-height: 1.5; }
.cc-demo-note strong { color: var(--gold-200); }
.cc-banner { background: var(--accent-wash); border: 1px solid var(--gold-700); border-radius: var(--r-md); padding: 10px 14px; margin: var(--sp-4) 0; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: var(--fs-sm); color: var(--gold-100); }
.cc-addr { font-size: var(--fs-sm); line-height: 1.55; color: var(--text-secondary); }
.cc-shipto { font-size: var(--fs-sm); color: var(--text-secondary); margin: 8px 0 4px; padding: 8px 10px; background: var(--surface-2); border-radius: var(--r-sm); }
.cc-shipto strong { color: var(--text); }
.cc-shipto.cc-noship { color: var(--danger); background: var(--danger-wash, rgba(220,80,80,.08)); }
@media (max-width: 520px) { .cc-row2 { grid-template-columns: 1fr; } }

/* Sold-out marker. Deliberately quiet, not alarming — a record he no longer has
   is still worth showing (it feeds the wantlist), it just must never look buyable. */
.sold-tag { display: inline-block; font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; padding: 2px 8px;
  border-radius: 999px; background: var(--surface-2); color: var(--text-muted);
  border: 1px solid var(--border); }
.record-card:has(.sold-tag) .cover img { opacity: .55; }

/* A sold-out size stays VISIBLE but unbuyable — "no XL left" is information a
   shopper wants; hiding it makes the size picker look broken. */
.facet.is-out { opacity: .5; text-decoration: line-through; cursor: not-allowed; }

/* A facet group that has more rows than it shows. The toggle reads as a control,
   not as another filter, so it is never mistaken for a genre. */
.facet-more { display: contents; }
.facet-toggle {
  margin-top: 4px; padding: 4px 8px; font: inherit; font-size: var(--fs-xs);
  color: var(--text-muted); background: none; border: 0; border-radius: 6px;
  cursor: pointer; text-align: left; text-decoration: underline;
  text-underline-offset: 2px;
}
.facet-toggle:hover { color: var(--text); }
.facet-toggle:focus-visible { outline: 2px solid var(--gold-300); outline-offset: 1px; }

/* ── the till's price suggestion ─────────────────────────────────────────────
   Shown under the price box when he catalogs a record at the counter. It is a
   SUGGESTION and has to look like one: quieter than the field it is helping, and
   never styled as a decision that has already been made. */
.till-suggest {
  margin: 6px 0 10px;
  padding: 10px 12px;
  background: #f7f8fa;
  /* ⚑ --gold is not a token (they are --gold-200..900), so this fallback was
     the one actually rendering — and it was INCORPORATE AI's gold, not the
     shop's. Larry, 2026-09-27: "Vintage Mio is not Navy and gold. It is
     black and gold." */
  border-left: 3px solid var(--gold-500, #d4a13a);
  font-size: var(--fs-sm, 13px);
  line-height: 1.45;
}
.till-suggest-row { display: flex; align-items: center; gap: 10px; }
.till-suggest-conf {
  font-size: 11px; letter-spacing: .4px; text-transform: uppercase;
  color: #2e7d54;
}
/* "worth a look" is not an error — it means the evidence was thin or the sources
   disagreed, so he should decide rather than accept. Amber, not red. */
.till-suggest-conf.is-low { color: #9a6b00; }
.till-suggest-why { margin-top: 6px; color: #55606e; }

/* ── The pressing block on an album page ──────────────────────────────────────
   A definition list, not a paragraph: these are field/value pairs and a buyer
   scans them for one line rather than reading them. Two columns on anything
   wider than a phone; stacked below that, where a 2-column grid would wrap the
   values into unreadable slivers. */
.pressing {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 2px var(--sp-3, 12px);
  margin: var(--sp-3, 12px) 0 0;
  font-size: var(--fs-sm, .875rem);
  line-height: 1.5;
}
.pressing dt { color: var(--text-muted); }
.pressing dd { margin: 0; }
@media (max-width: 480px) {
  .pressing { grid-template-columns: 1fr; gap: 0; }
  .pressing dt { margin-top: 6px; }
}

/* ── The shopfront banner ─────────────────────────────────────────────────────
   Above the sticky header on purpose: it scrolls away instead of taking a strip
   of the viewport on every screen for a month. Three looks, because Record Store
   Day and a half-price clearance should not shout in the same voice. */
.promo { border-bottom: 1px solid rgba(0,0,0,.18); }
.promo-inner {
  display: flex; align-items: center; gap: var(--sp-3, 12px);
  padding: 10px 0; flex-wrap: wrap;
}
.promo-text { margin: 0; flex: 1; min-width: 220px; font-size: var(--fs-sm, .9rem); line-height: 1.45; }
.promo-text b { font-weight: 700; }
.promo-sep { opacity: .55; }
/* ⚑ THE COLOUR IS SET PER VARIANT, NOT INHERITED. `.promo-cta` is an <a>, and the
   site-wide link rule paints links gold — which on the gold banner produced gold on
   gold at a contrast ratio of 1.33:1, an invisible button. Inheriting from the
   banner looks like it should work and does not: a global element selector beats
   `color: inherit` further up the tree. Each variant states its own. */
.promo-cta {
  font-size: var(--fs-sm, .9rem); font-weight: 600; text-decoration: none;
  padding: 5px 14px; border-radius: 3px; white-space: nowrap;
  border: 1px solid currentColor;
}
.promo-cta:hover { text-decoration: underline; }
.promo-close {
  background: none; border: 0; font-size: 20px; line-height: 1; cursor: pointer;
  color: inherit; opacity: .6; padding: 2px 6px;
}
.promo-close:hover { opacity: 1; }
.promo-cta:focus-visible, .promo-close:focus-visible {
  outline: 2px solid currentColor; outline-offset: 2px;
}

/* gold — the shop's own accent, for the events it actually celebrates */
.promo--gold { background: var(--gold-300, #e6be5c); color: #1b1508; }
.promo--gold .promo-cta { color: #1b1508; background: rgba(0,0,0,.10); }
.promo--gold .promo-close { color: #1b1508; }
/* dark — for something that should read as an announcement, not a party */
.promo--dark { background: #1d1a16; color: #f2ece0; border-bottom-color: rgba(255,255,255,.12); }
.promo--dark .promo-cta { color: #f2ece0; background: rgba(255,255,255,.10); }
.promo--dark .promo-close { color: #f2ece0; }
/* quiet — a notice. Shop closed Monday, delayed post, that sort of thing. */
.promo--quiet {
  background: var(--surface-1, #f4efe7); color: var(--text, #2a251d);
  border-bottom-color: rgba(0,0,0,.10);
}
.promo--quiet .promo-cta { color: var(--text, #2a251d); background: rgba(0,0,0,.06); }
.promo--quiet .promo-close { color: var(--text, #2a251d); }
@media (max-width: 560px) {
  .promo-inner { padding: 8px 0; }
  .promo-text { font-size: .82rem; }
}

/* ---- Homepage, Direction A (2026-09-18) --------------------------------- */
/* Armando's vintagemio.com front page in this site's clothes: his photo under
   his quote, the mission, the Sessions, the shelves. Rows hide themselves when
   there is nothing live to put in them (app.js), so nothing here assumes a row. */
.hero--photo { background: var(--ink-950); }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  object-position: 50% 30%; filter: brightness(1.12); }
.hero-shade { position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,10,12,.82) 0%, rgba(10,10,12,.45) 45%, rgba(10,10,12,.08) 100%); }
.hero-copy { text-shadow: 0 1px 2px rgba(0,0,0,.6), 0 2px 18px rgba(0,0,0,.45); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--sp-6); align-items: end; min-height: 560px; padding-block: var(--sp-9) var(--sp-8); }
.hero-copy { display: flex; flex-direction: column; gap: var(--sp-3); }
.hero .hero-quote { font-size: clamp(1.75rem, 3.4vw, 2.75rem); line-height: 1.15; max-width: 20ch;
  margin: 0; color: var(--ink-050); }
.hero .hero-by { color: var(--text-secondary); margin: 0; }
.hero .cta-row { margin-top: var(--sp-2); }
.spotlight { display: flex; gap: var(--sp-4); align-items: center; padding: var(--sp-4);
  background: color-mix(in srgb, var(--ink-800) 82%, transparent); backdrop-filter: blur(6px);
  color: inherit; text-decoration: none; transition: border-color .15s; }
.spotlight:hover { border-color: var(--ink-500); }
.spotlight-cover { width: 104px; flex: 0 0 auto; border-radius: var(--r-md); overflow: hidden; }
.spotlight-cover .cover { aspect-ratio: 1 / 1; background: var(--ink-850); }
.spotlight-cover .cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.spotlight-cover .ph { display: grid; place-items: center; height: 100%; color: var(--ink-500); }
.spotlight-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.spotlight-name { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-lg); color: var(--ink-050); }
/* Local music (2026-09-21): the ribbon under the hero's right column, and the
   calendar page. The ribbon reuses the spotlight's glass so the two stack. */
.hero-side { display: flex; flex-direction: column; gap: var(--sp-3); }
/* Hours, top right of the photo (2026-09-29). The side column stretches the full
   height of the hero and the hours card takes the slack under it, so the card
   sits at the top while the spotlight and the ribbons stay at the bottom. Same
   glass as the spotlight so the column reads as one set. */
.hero-grid > .hero-side { align-self: stretch; }
.hero-hours { align-self: flex-end; margin-bottom: auto; padding: 12px 16px; max-width: 100%;
  border: 1px solid var(--border); border-radius: 14px;
  background: color-mix(in srgb, var(--ink-800) 82%, transparent); backdrop-filter: blur(6px); }
.hero-hours .eyebrow { margin: 0 0 6px; }
/* The address leads the card (2026-11-04). It wraps inside the card's own width
   rather than widening it: the hours table sets that width, not a long street. */
.hero-hours-addr { display: block; margin: 0 0 10px; font-size: var(--fs-sm); font-weight: var(--fw-semibold);
  color: var(--ink-050); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.hero-hours-addr:hover { color: var(--gold-300); }
.hero-hours-addr:last-child { margin-bottom: 0; }
.hero-hours-t { border-collapse: collapse; font-size: var(--fs-sm); color: var(--text-secondary); }
/* Short rows stay on one line; a long one ("Tuesday – Friday, and the first
   Sunday of the month") wraps inside the card rather than widening it over the
   quote or off a phone's edge (review of #92). */
.hero-hours-t th { text-align: left; font-weight: var(--fw-semibold); color: var(--ink-050);
  padding: 2px 16px 2px 0; vertical-align: top; overflow-wrap: anywhere; }
.hero-hours-t td { padding: 2px 0; vertical-align: top; overflow-wrap: anywhere; }
.hero-hours-t tr.closed td { color: var(--text-muted); font-style: italic; }
.hero-hours-note { margin: 8px 0 0; font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--gold-300); }
.events-ribbon { display: flex; align-items: center; gap: 14px; padding: 10px 12px 10px 18px;
  border: 1px solid var(--border); border-radius: 999px; text-decoration: none; color: inherit;
  background: color-mix(in srgb, var(--ink-800) 82%, transparent); backdrop-filter: blur(6px);
  transition: border-color .15s; }
.events-ribbon:hover { border-color: var(--ink-500); }
.events-ribbon-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gold-300); flex: 0 0 auto;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold-300) 25%, transparent); }
.events-ribbon-body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.events-ribbon-body b { color: var(--ink-050); }
.events-ribbon-body .muted { font-size: var(--fs-sm); }
.events-ribbon .btn { flex: 0 0 auto; }
.event-day { margin-top: var(--sp-5); }
.event-picks { padding: 12px 14px; border: 1px solid var(--gold-700); border-radius: 14px; }
.event-picks .event-day-h { color: var(--gold-300); border-bottom-color: var(--gold-700); }
.event-picks .event-time { flex-basis: 120px; }
.event-day-h { font-size: var(--fs-lg); margin: 0 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.event-row { display: flex; align-items: center; gap: 14px; padding: 10px 6px; border-radius: 10px;
  text-decoration: none; color: inherit; }
a.event-row:hover { background: var(--ink-850); }
.event-time { flex: 0 0 74px; color: var(--gold-300); font-weight: var(--fw-semibold); }
.event-body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.event-body b { color: var(--ink-050); }
.event-body .muted { font-size: var(--fs-sm); }
.event-go { color: var(--text-secondary); font-size: var(--fs-sm); white-space: nowrap; }
/* This week's chart (2026-09-22): the second pill in the hero and the chart page.
   Both borrow the events shapes — two rails that look the same stack; two that
   nearly match read as a mistake. The only new colour is the one that marks HIS
   copies, which is the single thing on the page a shopper can buy. */
.charts-ribbon .events-ribbon-dot { background: var(--ink-500); box-shadow: none; }
.chart-mine { margin-top: var(--sp-5); padding: 12px 14px; border: 1px solid var(--gold-700); border-radius: 14px; }
.chart-mine .event-day-h { color: var(--gold-300); border-bottom-color: var(--gold-700); }
.chart-all { margin-top: var(--sp-6); }
.chart-row { display: flex; align-items: center; gap: 12px; padding: 8px 6px; border-radius: 10px;
  text-decoration: none; color: inherit; }
a.chart-row:hover { background: var(--ink-850); }
.chart-rank { flex: 0 0 30px; text-align: right; color: var(--text-secondary); font-weight: var(--fw-semibold); }
.chart-row--mine .chart-rank { color: var(--gold-300); }
.chart-art { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 6px; object-fit: cover;
  background: var(--ink-850); }
.chart-body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.chart-body b { color: var(--ink-050); overflow-wrap: anywhere; }
.chart-body .muted { font-size: var(--fs-sm); overflow-wrap: anywhere; }
.chart-go { color: var(--text-secondary); font-size: var(--fs-sm); white-space: nowrap; }
.chart-row--mine .chart-go { color: var(--gold-300); }
/* New releases (2026-09-23): five records he is expecting, above New arrivals.
   Deliberately NOT a record card — these are not for sale yet and a card that
   looks buyable would be a lie. A row with the art small, the date plain, and
   one button. */
.newrel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: var(--sp-3); }
.newrel { display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: 14px; background: var(--ink-850); }
.newrel-art { flex: 0 0 62px; width: 62px; height: 62px; border-radius: 8px; overflow: hidden;
  background: var(--ink-800); display: grid; place-items: center; }
.newrel-art img { width: 100%; height: 100%; object-fit: cover; }
.newrel-ph { color: var(--ink-500); font-size: 22px; }
/* The art and the title open the record's own page (2026-10-30). */
.newrel-body > a { color: inherit; text-decoration: none; }
.newrel-body > a:hover b, .newrel-body > a:focus-visible b { text-decoration: underline; }
.newrel-body { display: flex; flex-direction: column; min-width: 0; flex: 1; gap: 1px; }
/* Album and artist both wrap in full: "The Great Div…" is not a record anybody
   can recognise, and the artist clipping too drew "the artist is getting
   cutoff" (Larry, 2026-11-05). */
.newrel-body b { color: var(--ink-050); overflow-wrap: anywhere; line-height: 1.25; }
.newrel-body .muted { font-size: var(--fs-sm); overflow-wrap: anywhere; }
.newrel-when { font-size: var(--fs-xs); color: var(--gold-300); white-space: nowrap; }
/* ⚑ THE NOTE WRAPS. It inherited .muted's single-line ellipsis, which turned
   "Indie exclusive — translucent sunburst vinyl" into "Indie exc…" — the one
   line on the card that exists to say something, saying nothing. Two lines,
   then clipped: enough for the detail, bounded so five cards stay even. */
/* .newrel-body .muted, not .newrel-note: the note IS a .muted, and the
   descendant selector above it wins on specificity — written the short way this
   rule lost the nowrap fight silently and the note still ellipsed to one line. */
.newrel-body .newrel-note { font-style: italic; white-space: normal;
  text-overflow: clip; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden; }
.newrel-want { flex: 0 0 auto; white-space: nowrap; }
.newrel-want.is-on { border-color: var(--gold-700); color: var(--gold-300); }
.newrel-n { opacity: .75; font-variant-numeric: tabular-nums; }
/* ⚑ ON A PHONE THE BUTTON TAKES ITS OWN ROW.
   The card is art | words | button, which wants ~340px. On a 375px iPhone the
   button's ~130px left the words about 140px and everything ellipsed — titles
   clipped MID-WORD ("Ride Lonesd", "Dandelior"), the artist cut to "KPop De…",
   the note to "Beck's…", and the date broken over three lines. Measured
   2026-09-23 on his own Beck row. Dropping the button to a full-width row of
   its own gives the words the whole card, which is the only thing that fixes
   all four at once. */
@media (max-width: 560px) {
  .newrel { flex-wrap: wrap; align-items: flex-start; }
  .newrel-body { flex: 1 1 0; gap: 2px; }
  .newrel-want { flex: 1 1 100%; margin-left: 0; justify-content: center; }
  .newrel-body .newrel-note { -webkit-line-clamp: 3; }
}
/* The seller's note on a copy. ⚑ pre-line, because the admin box he types it in
   is now six rows tall (2026-09-23) and he will use paragraphs; without this the
   browser collapses every line break and the shopper reads one run-on block —
   a bigger box that quietly lies about what it produces. */
.copy-note { font-size: var(--fs-sm); white-space: pre-line; }
/* The seller's description, read BEFORE the decision, not after: its own block
   under the price and the button, body size, primary colour, line breaks kept
   (Armando, 2026-09-25: "the description sells the item"). */
.copy-about { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
.copy-about h4 { margin: 0 0 6px; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--text-muted); }
.copy-about p { margin: 0; font-size: var(--fs-md); line-height: 1.55; color: var(--text); white-space: pre-line;
  max-width: 65ch; }
/* His own photographs of the copy (Larry, 2026-10-07). Same clothes as
   "About this copy" because it is the same kind of thing — what the owner can
   tell you about THIS record that the catalogue cannot. Square thumbnails so a
   portrait phone shot and a square sleeve scan sit on one line without the row
   jumping; object-fit keeps them uncropped-looking at this size, and the full
   frame is one tap away. */
.copy-photos { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
.copy-photos h4 { margin: 0 0 8px; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--text-muted); }
.copy-photo-strip { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.copy-photo-strip a { display: block; line-height: 0; border-radius: 6px; overflow: hidden;
  border: 1px solid var(--border); background: var(--surface-2); }
.copy-photo-strip img { width: 88px; height: 88px; object-fit: cover; display: block;
  transition: transform .18s ease; }
.copy-photo-strip a:hover img, .copy-photo-strip a:focus-visible img { transform: scale(1.06); }
.copy-photo-strip a:focus-visible { outline: 2px solid var(--gold-400); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .copy-photo-strip img { transition: none; } }

/* How many, and the limit (Armando, 2026-09-25). The chips read as facts, not
   warnings; the card's "Only N left" borrows the tag clothes. */
.chip-qty { pointer-events: none; }
/* Pressing categories on the album page — links into their shelf. */
.chip-tag { border-color: color-mix(in srgb, var(--gold-500, #d4a13a) 45%, transparent); color: var(--gold-200, #eecf85); }
.inv-tags { display: inline-flex; gap: 4px; flex-wrap: wrap; vertical-align: middle; margin-left: 6px; }
.inv-tag { font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 1px 6px; border-radius: 999px; border: 1px solid var(--border); color: var(--text-secondary); }
.chip-limit { pointer-events: none; border-color: color-mix(in srgb, var(--sale-red) 45%, transparent);
  color: var(--sale-red); }
.few-tag { font-size: 10px; font-weight: var(--fw-bold); text-transform: uppercase;
  letter-spacing: .06em; color: var(--gold-300); background: var(--accent-wash);
  border: 1px solid var(--gold-800); padding: 2px 6px; border-radius: var(--r-sm); }
/* "Play tested" on the card: the one line from the description that changes a
   mind while browsing. Same clothes as the local-artist tag. */
.play-tag { font-size: 10px; font-weight: var(--fw-bold); text-transform: uppercase;
  letter-spacing: .06em; color: var(--gold-300); background: var(--accent-wash);
  border: 1px solid var(--gold-800); padding: 2px 6px; border-radius: var(--r-sm); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-row .chip { padding: 5px 12px; border: 1px solid var(--border); border-radius: 999px; font-size: var(--fs-sm);
  color: var(--text-secondary); text-decoration: none; }
.chip-row .chip.on { border-color: var(--gold-300); color: var(--ink-050); }
.home-different { border-top: 1px solid var(--border); }
.home-different-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--sp-7); align-items: center; }
.home-different-p { color: var(--text-secondary); max-width: 56ch; margin: var(--sp-3) 0 0; }
.home-meter { display: flex; flex-direction: column; gap: var(--sp-3); }
.home-meter-big { font-family: var(--font-display); font-weight: var(--fw-display); font-size: var(--fs-2xl); color: var(--ink-050); line-height: 1; }
.home-meter .meter { height: 8px; }
.home-row { border-top: 1px solid var(--border); }
.spotlight-line { margin: 6px 0 0; font-size: var(--fs-sm); font-style: italic; color: var(--ink-200); max-width: 36ch; }
/* the newsletter signup band (app/newsletter_signup.py) */
/* The newsletter pill (2026-09-29): under the chart ribbon, the same glass and
   shape, so the right-hand column reads as one stack. It is the form itself —
   Subscribe opens the email box inside it — so the old band is gone. */
.news-ribbon { margin: 0; }
#home-news-ribbon:not([hidden]) { display: flex; flex-direction: column; gap: 6px; }
.story-ribbon .events-ribbon-dot { background: var(--gold-300); box-shadow: none; border-radius: 3px; }
.story-ribbon .muted { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.story-page { max-width: 820px; }
.story-pics { display: grid; gap: 12px; margin: 16px 0 20px; align-items: start; }
.story-pics-2 { grid-template-columns: 1fr 1fr; }
.story-pics img { display: block; width: 100%; height: auto; border-radius: 12px; }
.story-more { display: flex; flex-direction: column; gap: 10px; }
.story-more-row { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.story-more-row img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; flex: 0 0 auto; }
.story-more-row span { display: flex; flex-direction: column; min-width: 0; }
.story-more-row b { color: var(--ink-050); }
@media (max-width: 640px) { .story-pics-2 { grid-template-columns: 1fr; } }
.news-ribbon .events-ribbon-dot { background: transparent; border: 2px solid var(--gold-300); box-shadow: none; }
.news-ribbon-field { flex: 1; min-width: 0; }
.news-ribbon-field input { width: 100%; min-width: 0; padding: 6px 10px; font-size: var(--fs-sm); }
/* The line under the open pill sits on the photo, so it gets the pill's glass —
   bare text over the picture was hard to read (checked 2026-09-29). */
.news-ribbon-note { margin: 0; padding: 8px 14px; font-size: var(--fs-sm); line-height: 1.45;
  border: 1px solid var(--border); border-radius: 14px;
  background: color-mix(in srgb, var(--ink-800) 82%, transparent); backdrop-filter: blur(6px); }
.home-join-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.home-strip { border-top: 1px solid var(--border); background: var(--ink-850); padding-block: var(--sp-6); }
.home-strip-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-5); text-align: center; }
.home-stat { font-family: var(--font-display); font-weight: var(--fw-display); font-size: var(--fs-xl); color: var(--ink-050); }
.sessions-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-4); }
.sessions-grid--even { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.session-card { display: flex; flex-direction: column; color: inherit; text-decoration: none; transition: transform .15s, border-color .15s; }
.session-card:hover { transform: translateY(-3px); border-color: var(--ink-500); }
.session-thumb { position: relative; aspect-ratio: 16 / 9; background: radial-gradient(60% 60% at 50% 45%, var(--ink-700) 0, var(--ink-850) 70%); }
.session-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.session-thumb .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 52px; height: 52px; border-radius: 50%; background: var(--gold-500); color: var(--ink-950);
  display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.45); }
.session-thumb .play svg { width: 26px; height: 26px; margin-left: 2px; }
.session-body { padding: var(--sp-3) var(--sp-4) var(--sp-4); display: flex; flex-direction: column; gap: 4px; }
.session-title { font-weight: var(--fw-semibold); color: var(--ink-100); line-height: 1.3; }
.session-card--big .session-title { font-size: var(--fs-md); }
.insta-frame iframe { width: 100%; height: 880px; border: 0; border-radius: var(--r-lg); background: var(--ink-850); }
.events-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.event-card { display: flex; flex-direction: column; gap: 6px; }
.event-card h3 { margin: 0; font-size: var(--fs-lg); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; padding-block: var(--sp-8) var(--sp-6); }
  /* On a phone the photo sits BEHIND the words, so the old top-to-bottom shade
     blacked out most of it (Larry, 2026-09-18: "really dark on the iPhone").
     Lighter photo, thinner shade, and the copy's text-shadow carries legibility. */
  .hero-photo { filter: brightness(1.25); object-position: 45% 25%; }
  .hero-shade { background: linear-gradient(180deg, rgba(10,10,12,.2) 0%, rgba(10,10,12,.35) 45%, rgba(10,10,12,.8) 100%); }
  .home-different-grid { grid-template-columns: 1fr; gap: var(--sp-5); }
  .sessions-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sessions-grid .session-card--big { grid-column: 1 / -1; }
  .events-grid { grid-template-columns: 1fr; }
  .insta-frame iframe { height: 560px; }
}
/* ⚑ THE PHONE, NOT A NARROW WINDOW (Larry, 2026-09-29: "Just the iPhone version.
   The computer homepage needs to stay where it was"). Stacked, the hours are no
   longer beside the quote, so on a phone the card sits in the middle. `pointer:
   coarse` is what keeps a Mac out of it: a browser window dragged under 900px
   stacks the same way but still has a mouse, and there the card stays where it
   has always been, against the right edge. */
@media (max-width: 900px) and (pointer: coarse) {
  .hero-hours { align-self: center; }
}
@media (max-width: 560px) {
  .home-strip-grid { grid-template-columns: 1fr; gap: var(--sp-4); }
  .sessions-grid, .sessions-grid--even { grid-template-columns: 1fr; }
  .spotlight { padding: var(--sp-3); }
  .events-ribbon { flex-wrap: wrap; border-radius: 16px; padding: 12px 14px; }
  .events-ribbon .btn { margin-left: 24px; }
  .event-time { flex-basis: 62px; }
  .chart-rank { flex-basis: 22px; }
  .chart-art, .chart-row .chart-art { flex-basis: 40px; width: 40px; height: 40px; }
  /* On a phone the row is the link and the gold rank says which are his; the
     trailing "In the crates →" only ate the title it was pointing at. */
  .chart-go { display: none; }
  .spotlight-cover { width: 80px; }
  .insta-frame iframe { height: 420px; }
}

/* The format on the crate card's picture (2026-09-20) — bottom-left, out of the
   way of the sale ribbon, legible on any sleeve. */
.rc-cover { position: relative; }
.rc-format { position: absolute; left: 8px; bottom: 8px; padding: 2px 8px; border-radius: var(--r-pill);
  background: rgba(10, 8, 6, .78); color: var(--ink-050, #f4f4f6); border: 1px solid rgba(255,255,255,.14);
  font-size: var(--fs-xs); font-weight: var(--fw-semibold); letter-spacing: .02em; line-height: 1.5;
  backdrop-filter: blur(3px); pointer-events: none; }

/* ---- checkout: ship or pick up (2026-09-24) ------------------------------
   Two radio cards above the address. Choosing pickup hides the address block,
   zeroes postage and taxes at the shop's own rate (app/commerce.checkout). */
.co-how { border: 0; padding: 0; margin: 0 0 4px; display: grid; gap: 8px; }
.co-how legend { padding: 0; margin-bottom: 6px; }
.co-how-opt { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px;
  border: 1px solid var(--border, rgba(255,255,255,.12)); border-radius: 10px; cursor: pointer; }
.co-how-opt:has(input:checked) { border-color: var(--gold-400, #d9ab42); background: var(--accent-wash, rgba(212,161,58,.08)); }
.co-how-opt input { margin-top: 4px; flex: 0 0 auto; }
.co-how-opt .muted { font-size: var(--fs-sm); }

/* ⚑ THE STOREFRONT HAS NO .table-wrap OF ITS OWN. There is one in admin.css and
   I wrote this markup assuming it applied — it does not; the shop page never
   loads that stylesheet. So the class did nothing, the table overflowed, and at
   375px the page scrolled sideways. Found by looking at it, not by the tests.
   Minimal on purpose: the admin one carries a border and a radius that would
   look wrong among the cards. */
.table-wrap { overflow-x: auto; max-width: 100%; }

/* The browse list view — a feature beside the cards, not instead of them.
   ⚑ .table-wrap scrolls it sideways on a phone rather than letting seven columns
   break the page, the same pattern the shelves table uses. The page body must
   never scroll horizontally; this one container may. */
.list-view { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.list-view th, .list-view td { padding: var(--sp-2) var(--sp-3);
  border-bottom: 1px solid var(--border); text-align: left; white-space: nowrap; }
.list-view th { color: var(--text-faint); text-transform: uppercase;
  letter-spacing: var(--tracking-caps); font-size: var(--fs-xs); font-weight: var(--fw-semibold); }
/* Artist and title are the two that may be long, so they are the two that give. */
.list-view td:nth-child(1), .list-view td:nth-child(2) { white-space: normal; min-width: 12ch; }
.list-view td:last-child, .list-view th:last-child { text-align: right; }
.list-view tbody tr:hover { background: var(--surface-2); }
.list-view a { color: inherit; text-decoration: none; }
.list-view a:hover { text-decoration: underline; }

/* ---- the holiday pack v2 (app/holidays.py, the block at the end of app.js) ----
   Everything is scoped to .holiday-on, so with the switch off not one rule applies.
   ⚑ Every ornament HANGS BELOW the header, clear of the logo. */
.holiday-on .site-header { position: relative; border-bottom-color: transparent; }
.holiday-on .site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: var(--holiday-accent, var(--gold-500)); z-index: 1; }
.holiday-on .eyebrow { color: var(--holiday-text, var(--gold-300)); }
.holiday-ornament { position: absolute; left: 0; right: 0; top: 100%; height: 0; pointer-events: none; z-index: 5; }
.holiday-ornament svg { position: absolute; display: block; overflow: visible; }
.holiday-ornament .hd-wide { left: 0; top: -6px; }
.holiday-ornament .hd-single { right: 24px; top: 4px; }
/* the season's light over his photo — the photo stays his */
.holiday-on .hero-shade::after { content: ""; position: absolute; inset: 0; background: var(--holiday-wash, transparent); pointer-events: none; }
/* motion: slow, paired, and none at all when the device asks for none */
@keyframes hd-twinkle { 0%, 100% { opacity: .95; } 50% { opacity: .45; } }
@keyframes hd-glow { 0%, 100% { opacity: .22; } 50% { opacity: .08; } }
@keyframes hd-pulse { 0% { transform: scale(1); } 40% { transform: scale(1.08); } 100% { transform: scale(1); } }
@keyframes hd-spark { 0% { opacity: 0; } 30% { opacity: 1; } 100% { opacity: .35; } }
.holiday-on .hd-tw { animation: hd-twinkle 3.2s ease-in-out infinite; }
.holiday-on .hd-gl { animation: hd-glow 3.2s ease-in-out infinite; }
.holiday-on .hd-pulse { transform-origin: 40px 40px; animation: hd-pulse 1.2s ease-out 1; }
.holiday-on .hd-spark { animation: hd-spark 1.4s ease-out 1 both; }
@media (prefers-reduced-motion: reduce) { .holiday-on .hd-tw, .holiday-on .hd-gl, .holiday-on .hd-pulse, .holiday-on .hd-spark { animation: none; } }
/* between the front page's sections, at Christmas */
.holiday-on .home-row { position: relative; }
.holiday-divider { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); pointer-events: none; }
/* the strip under the hero: order-by and his hours */
.holiday-on .hd-strip { display: flex; align-items: center; gap: var(--sp-5); margin-top: var(--sp-5); padding: var(--sp-4) var(--sp-5);
  border-radius: 12px; background: var(--surface-1); border: 1px solid var(--border); }
.holiday-on .hd-strip-main { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; }
.holiday-on .hd-strip-note { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; padding-left: var(--sp-5); border-left: 1px solid var(--border); }
.holiday-on .hd-strip-main:empty + .hd-strip-note, .holiday-on .hd-strip > .hd-strip-note:only-child { align-items: flex-start; padding-left: 0; border-left: 0; }
.holiday-on .hd-eyebrow { font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
.holiday-on .hd-ink { color: var(--holiday-text, var(--gold-300)); }
.holiday-on .hd-gold { color: var(--gold-500); }
.holiday-on .hd-strong { color: var(--text); }
/* the gift guide's tabs */
.holiday-on .hd-tabs { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.holiday-on .hd-tab { font: inherit; font-size: var(--fs-sm); padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border);
  background: transparent; color: var(--text); cursor: pointer; }
.holiday-on .hd-tab.is-on { background: var(--holiday-text, var(--gold-500)); border-color: transparent; color: var(--ink-900); font-weight: 600; }
/* Record Store Day */
.holiday-on .hd-rsd { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: var(--sp-7); align-items: center; }
.holiday-on .hd-stamp { width: 240px; height: 240px; }
.holiday-on .hd-stamp-t { font-family: var(--font-display); font-size: 22px; font-weight: 800; fill: var(--ink-900); letter-spacing: 1px; }
.holiday-on .hd-rsd-copy { display: flex; flex-direction: column; gap: var(--sp-3); }
.holiday-on .hd-rsd-copy h2 { margin: 0; }
.holiday-on .hd-rsd-p { margin: 0; color: var(--ink-200); max-width: 60ch; line-height: 1.55; }
.holiday-on .hd-count { display: flex; gap: var(--sp-3); }
.holiday-on .hd-count > div { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 72px; padding: 12px 16px;
  background: var(--surface-1); border: 1px solid var(--border); border-radius: 10px; }
.holiday-on .hd-count b { font-family: var(--font-display); font-size: 32px; }
.holiday-on .hd-count span { font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
.holiday-on .hd-count-today { font-family: var(--font-display); font-size: 28px; color: var(--holiday-text, var(--gold-300)); }
.holiday-on .hd-drops, .holiday-on .hd-memory { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: var(--sp-5); }
.holiday-on .hd-drop, .holiday-on .hd-mem { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: inherit; }
.holiday-on .hd-drop svg, .holiday-on .hd-mem svg { width: 100%; max-width: 160px; aspect-ratio: 1; margin-bottom: var(--sp-2); }
.holiday-on .hd-drop-foot { display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; margin-top: 4px; }
.holiday-on .hd-mem-line { font-size: var(--fs-sm); font-style: italic; color: var(--ink-200); }
@media (max-width: 700px) {
  /* a phone header is short: the single ornament shrinks, the wide ones stay */
  .holiday-ornament .hd-single { transform: scale(.7); transform-origin: top right; right: 12px; }
  .holiday-on .hd-strip { flex-direction: column; align-items: flex-start; }
  .holiday-on .hd-strip-note { align-items: flex-start; padding-left: 0; border-left: 0; }
  .holiday-on .hd-rsd { grid-template-columns: 1fr; }
  .holiday-on .hd-stamp { width: 180px; height: 180px; }
}
