/* TuneLit band tunings (/bands/, /bands/<band>/, /bands/<band>/<album>/, /how-we-measure-recordings/):
   Design F's cards, tiles and kickers as a music magazine. Linked only on those pages (build/bands.mjs).
   Tokens from tunelit.css; family colours from content.css (.k-standard aqua, .k-drop coral, .k-open sand,
   .k-other violet set --c). Phone first: nothing may overflow at 360 px, every tap target is 44 px or more. */

/* ==========================================================================
   Shared parts
   ========================================================================== */
main > :is(.bd-find, .bd-bands, .bd-albums, .bd-songs, .bd-pager) {
  max-width: var(--maxw); margin: clamp(40px, 7vw, 88px) auto 0;
  padding: 0 max(var(--gutter), var(--right)) 0 max(var(--gutter), var(--left));
}
main > :is(.bd-summary, .bd-tune-card) {
  width: min(var(--maxw) - 2 * var(--gutter), calc(100% - 2 * var(--gutter)));
  margin: clamp(40px, 6vw, 72px) auto 0;
}
main > .bd-tune-card { margin-top: clamp(28px, 5vw, 56px); }
.bd-albums .section-head, .bd-songs .section-head, .bd-bands .section-head { margin-bottom: 22px; }
.bd-songs .section-head p a, .bd-albums .section-head p a { color: var(--aqua); text-decoration: underline; text-underline-offset: 3px; }

/* tuning badge: the name, then the pitch in a pill of the family colour */
.bd-tn {
  --c: var(--aqua);
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; max-width: 100%;
  font: 800 15px/1.2 var(--display); letter-spacing: -0.005em; color: var(--text); font-variant-numeric: tabular-nums;
}
.bd-tn > span { overflow-wrap: anywhere; }
.bd-tn::before { content: ''; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px color-mix(in srgb, var(--c) 70%, transparent); }
.bd-tn > b {
  display: inline-flex; align-items: center; min-height: 24px; padding: 0 9px; border-radius: 999px; white-space: nowrap;
  font: 800 13px/1 var(--font); color: var(--text);
  background: color-mix(in srgb, var(--c) 18%, transparent); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
}
.bd-tn-lg { font-size: 18px; }

/* evidence labels */
.bd-st {
  --s: var(--muted);
  display: inline-flex; align-items: center; gap: 5px; min-height: 26px; padding: 0 10px; border-radius: 999px; white-space: nowrap;
  font: 800 12px/1 var(--font); letter-spacing: 0.02em; color: color-mix(in srgb, var(--s) 82%, #fff);
  background: color-mix(in srgb, var(--s) 13%, transparent); border: 1px solid color-mix(in srgb, var(--s) 36%, transparent);
}
.bd-st .ic { width: 14px; height: 14px; stroke-width: 2.6; }
.bd-st-measured { --s: var(--aqua); }
.bd-st-official { --s: var(--violet); }
.bd-st-widely-reported { --s: var(--sand); }
.bd-st-community { --s: var(--muted); }
.bd-st-disputed { --s: var(--coral); }
/* the tabs' semitone when the database lists the next one (evidence.reported.shift): a fact, in sand */
.bd-st-tabs { --s: var(--sand); }
.bd-few { color: var(--muted); }

/* pitch bar, −60 … +60 ¢: a tick at A 440, a fill to the dot (flat runs left, sharp right; the words carry the value) */
.bd-meter {
  --x: 50%; --m: var(--aqua);
  position: relative; display: block; flex: 1 1 90px; min-width: 70px; height: 8px; border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
}
.bd-meter.is-sharp { --m: var(--sand); }
.bd-meter.is-flat { --m: var(--coral); }
.bd-meter::before { content: ''; position: absolute; left: 50%; top: -5px; bottom: -5px; width: 2px; margin-left: -1px; border-radius: 2px; background: var(--muted); opacity: 0.7; }
.bd-meter::after {
  content: ''; position: absolute; top: 0; bottom: 0; border-radius: 99px; background: color-mix(in srgb, var(--m) 55%, transparent);
  left: min(var(--x), 50%); right: calc(100% - max(var(--x), 50%));
}
.bd-meter i {
  position: absolute; left: var(--x); top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; z-index: 1;
  background: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--m) 40%, transparent), 0 2px 8px rgba(0, 0, 0, 0.45);
}
.bd-meter.is-zero i { box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.18), 0 2px 8px rgba(0, 0, 0, 0.45); }
.bd-pitch { display: flex; align-items: center; gap: 14px; min-width: 0; }
.bd-pitch-txt { flex: none; font: 800 14px/1.2 var(--font); color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }

.bd-nw { white-space: nowrap; }

.bd-meas { font: 700 13.5px/1.35 var(--font); color: var(--muted); font-variant-numeric: tabular-nums; }

/* photo credit: author · licence · source · resized */
/* /photo-credits/: one line per photo, its caption first */
.prose .bd-credits { list-style: none; margin: 8px 0 0; padding: 0; }
.prose .bd-credits li { margin: 0; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.55; color: var(--muted); scroll-margin-top: 90px; }
.prose .bd-credits li:target { color: var(--text); }
.prose .bd-credits .bd-cap { display: block; color: var(--text); }
.bd-credit { display: inline; font-size: 12.5px; line-height: 1.5; color: var(--faint); }
.bd-credit b { color: var(--muted); font-weight: 800; }
.bd-credit a { color: var(--muted); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.bd-credit a:hover { color: var(--text); text-decoration-color: currentColor; }
figcaption .bd-cap { display: block; margin-bottom: 4px; font-size: 14px; line-height: 1.5; color: var(--muted); }

/* ==========================================================================
   Album covers: the real covers, small, to identify the albums (credited once, in the footer: .bd-cover-credit),
   or TuneLit's own tile for a release without one (.bd-cover-none: title and year on a gradient, a record's
   grooves in the corner; plainly ours, never a made-up cover). Every size is set by its place (.bd-*-cv).
   ========================================================================== */
:root {
  --cover-none:
    radial-gradient(120% 85% at 0% 100%, color-mix(in srgb, var(--coral) 85%, transparent), transparent 70%),
    radial-gradient(100% 90% at 100% 0%, color-mix(in srgb, var(--violet) 62%, transparent), transparent 68%),
    linear-gradient(155deg, color-mix(in srgb, var(--aqua) 30%, var(--bg-top)), var(--bg-mid));
}
.bd-cover {
  display: block; flex: none; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 7%; /* one ratio at every size */
  background: var(--bg-mid); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 14px 30px -14px rgba(0, 0, 0, 0.8);
}
/* offline, a cover never cached: the gradient instead of a broken picture or its alt text (Chrome, Firefox) */
/* overflow: a picture that fails keeps its square (a broken image would grow to its hidden alt text) */
img.bd-cover { position: relative; color: transparent; overflow: hidden; }
img.bd-cover::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: var(--cover-none); }
.bd-cover-none {
  container-type: inline-size; position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 0.35em;
  background: var(--cover-none); color: #fff; text-align: left; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}
.bd-cover-none::before {
  content: ''; position: absolute; right: -30%; top: -30%; width: 88%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.85) 0 4.5%, transparent 5% 15%, rgba(6, 24, 43, 0.28) 15.5% 100%),
    repeating-radial-gradient(circle, rgba(255, 255, 255, 0.16) 0 1px, transparent 1px 4px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
}
/* insets in cqw (the tile's own width): a percentage padding would follow the parent's width */
.bd-cover-none > span { position: relative; margin-inline: 11cqw; overflow-wrap: anywhere; }
.bd-cover-none > span:last-child { margin-bottom: 11cqw; }
.bd-cv-t { font: 800 14.5cqw/1.02 var(--display); letter-spacing: -0.02em; text-wrap: balance; }
.bd-cv-s { font: 700 7.2cqw/1.2 var(--font); color: rgba(255, 255, 255, 0.86); }
.bd-cv-y { margin-top: 0.25em; font: 900 8cqw/1 var(--font); letter-spacing: 0.08em; color: rgba(255, 255, 255, 0.9); font-variant-numeric: tabular-nums; }
@container (max-width: 159px) { .bd-cv-s { display: none; } }
/* thumbnails and the album tiles (up to 112 px): the year alone, large; a title that small could not be read */
@container (max-width: 119px) {
  .bd-cv-t { display: none; }
  .bd-cv-y { margin: 0; font: 800 27cqw/1 var(--display); letter-spacing: -0.02em; }
}

/* /bands/<band>/: each album tile opens with its cover beside the year and the title (sized by the tile: --cv) */
.bd-album { container-type: inline-size; }
.bd-album-head { --cv: clamp(80px, 30cqw, 112px); display: grid; grid-template-columns: var(--cv) minmax(0, 1fr); align-items: start; gap: 16px; }
.bd-album-cv { width: var(--cv); transition: transform 0.3s; }
.bd-album:hover .bd-album-cv { transform: translateY(-2px) scale(1.02); }
/* from the cover's top edge: the years of a row line up whatever the length of the titles */
.bd-album-id { display: grid; gap: 8px; align-content: start; min-width: 0; padding-top: 2px; }

/* /bands/: a band's albums as a shelf of small covers, the same size on every band's tile: seven to a row (five on a
   narrow tile, so a phone's covers stay about 52 px), at most 64 px */
.bd-band-body { container-type: inline-size; }
.bd-shelf { --cols: 7; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 64px)); gap: 8px; margin: 2px 0; }
@container (max-width: 419px) { .bd-shelf { --cols: 5; } }
.bd-shelf-cv { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 10px 20px -10px rgba(0, 0, 0, 0.8); }

/* /bands/<band>/<album>/: an album header. Phones: the cover with the way back and the kicker beside it, the title
   and the lede under them, all from the left edge (the cover costs almost no height: Tune like this stays on the
   first screen). From 900 px the cover sits left of the whole block. Its own colours glow softly behind it. */
.bd-album-hero {
  --hc: clamp(92px, 27vw, 156px);
  display: grid; grid-template-columns: var(--hc) minmax(0, 1fr); grid-template-rows: 1fr auto auto 1fr auto auto;
  column-gap: 16px; justify-items: start; text-align: left;
}
.bd-album-hero > * { grid-column: 1 / -1; min-width: 0; max-width: 100%; }
.bd-album-hero > .bd-hero-cover { grid-column: 1; grid-row: 1 / 5; align-self: center; }
.bd-album-hero > .crumbs { grid-column: 2; grid-row: 2; }
.bd-album-hero > .kicker { grid-column: 2; grid-row: 3; }
.bd-album-hero > h1 { grid-row: 5; margin-top: 18px; }
.bd-album-hero > .lede { grid-row: 6; margin-inline: 0; }
.bd-album-hero .crumbs ol { justify-content: flex-start; }
.bd-hero-cover { position: relative; isolation: isolate; width: var(--hc); }
.bd-hero-cover::before {
  content: ''; position: absolute; inset: 10% 6% -8%; z-index: -1; border-radius: 30%;
  background: var(--cover, var(--cover-none)) center / cover; filter: blur(30px) saturate(1.6); opacity: 0.6;
}
.bd-hero-cover.is-none::before { background: var(--cover-none); }
.bd-hero-cv { width: 100%; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 30px 60px -26px rgba(0, 0, 0, 0.9); }
@media (max-width: 899px) {
  /* beside the cover the kicker is a line of small capitals, not a pill (it may take two lines) */
  .hero.bd-album-hero > .kicker { display: block; padding: 0; border: 0; border-radius: 0; background: none; line-height: 1.5; }
  .hero.bd-album-hero > .kicker .dot { display: inline-block; margin: 0 8px 1px 0; vertical-align: middle; }
}
@media (max-width: 560px) {
  /* the cover keeps clear of the top bar (16 px), and the lede steps aside: the tuning card right under the title
     says the same, bigger, so Tune like this stays on a short phone's first screen */
  .hero.bd-album-hero { padding-top: calc(90px + var(--top)); }
  .hero.bd-album-hero > .lede { display: none; }
}
@media (min-width: 900px) {
  /* the cover left, the words right: a record sleeve beside its title. Never over its 320 px file (--hc ≤ 272 px),
     never taller than the screen allows (Tune like this stays on the first screen of a laptop), and its left edge in
     line with the tuning card under it (the header takes the card's width) */
  .hero.bd-album-hero { max-width: var(--maxw); }
  .bd-album-hero {
    --hc: clamp(160px, min(19vw, 100svh - 580px), 272px);
    grid-template-rows: 1fr auto auto auto auto 1fr; column-gap: clamp(32px, 4vw, 60px);
  }
  .bd-album-hero > * { grid-column: 2; }
  .bd-album-hero > .bd-hero-cover { grid-column: 1; grid-row: 1 / -1; }
  .bd-album-hero > .crumbs { grid-row: 2; }
  .bd-album-hero > .kicker { grid-row: 3; }
  .bd-album-hero > h1 { grid-row: 4; }
  .bd-album-hero > .lede { grid-row: 5; }
  .hero.bd-album-hero h1 { font-size: clamp(44px, min(4.6vw, 8.4vh), 72px); }
}

/* the pager: the earlier album's cover on the left, the later one's on the right */
.bd-page:has(> .bd-page-cv) { grid-template-columns: 64px minmax(0, 1fr); column-gap: 16px; align-items: center; }
.bd-page-cv { grid-column: 1; grid-row: 1 / span 3; width: 64px; }
.bd-page:has(> .bd-page-cv) > :not(.bd-page-cv) { grid-column: 2; }
.bd-next:has(> .bd-page-cv) { grid-template-columns: minmax(0, 1fr) 64px; }
.bd-next > .bd-page-cv { grid-column: 2; }
.bd-next:has(> .bd-page-cv) > :not(.bd-page-cv) { grid-column: 1; }
/* phones stack the three: all of them read from the left, the cover first */
@media (max-width: 759px) {
  .bd-page.bd-next { text-align: left; justify-items: start; }
  .bd-next:has(> .bd-page-cv) { grid-template-columns: 64px minmax(0, 1fr); }
  .bd-next > .bd-page-cv { grid-column: 1; }
  .bd-next:has(> .bd-page-cv) > :not(.bd-page-cv) { grid-column: 2; }
}

/* search results: the album's cover (a song shows its album's), a band its initial */
.bd-hit-cv { flex: none; width: 56px; }
.bd-hit-band {
  display: grid; place-items: center; aspect-ratio: 1; border-radius: 50%;
  font: 800 26px/1 var(--display); color: var(--on-coral);
  background: radial-gradient(circle at 30% 25%, #FF9A8F, var(--coral) 55%, color-mix(in srgb, var(--coral) 55%, var(--violet)));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 10px 22px -12px rgba(255, 107, 107, 0.8);
}

/* the credit, once per page, closing the footer */
.site-footer .bd-cover-credit { margin-top: -14px; }

/* ==========================================================================
   /bands/: search and band tiles
   ========================================================================== */
.bd-find-card { display: grid; gap: 14px; overflow: hidden; overflow: clip; }
.bd-find-card::before {
  content: ''; position: absolute; right: -120px; top: -140px; width: 380px; height: 380px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 107, 107, 0.2), transparent 65%);
}
.bd-find-card > * { position: relative; }
.bd-find-label { font: 800 clamp(24px, 3.4vw, 34px)/1.1 var(--display); letter-spacing: -0.02em; color: var(--text); }
.bd-search {
  display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 0 20px; border-radius: 999px;
  border: 1.5px solid var(--line-2); background: rgba(4, 10, 24, 0.55); transition: border-color 0.2s, box-shadow 0.2s;
}
.bd-search:focus-within { border-color: var(--coral); box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.18); }
.bd-search .ic { width: 24px; height: 24px; color: var(--coral); stroke-width: 2.2; }
.bd-search input {
  flex: 1 1 auto; min-width: 0; height: 60px; border: 0; outline: 0; background: none; color: var(--text);
  font: 700 clamp(17px, 2.2vw, 20px)/1.2 var(--font); -webkit-appearance: none; appearance: none;
}
.bd-search input::placeholder { color: var(--faint); font-weight: 600; }
.bd-search input::-webkit-search-cancel-button { filter: invert(1) opacity(0.6); cursor: pointer; }
.bd-hint { font-size: 14.5px; font-weight: 700; color: var(--foam); }
.bd-count { font-size: 14px; color: var(--muted); }
.bd-count:empty { display: none; }
.bd-results { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bd-hit {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'main tune' 'tn tune'; align-items: center; gap: 6px 14px;
  padding: 12px 12px 12px 14px; border-radius: 20px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04);
}
.bd-hit:hover { border-color: var(--line-2); background: rgba(255, 255, 255, 0.06); }
.bd-hit-main { grid-area: main; display: flex; align-items: center; gap: 14px; min-width: 0; color: var(--text); text-decoration: none; }
.bd-hit-text { display: grid; gap: 2px; min-width: 0; }
.bd-hit-main:hover { text-decoration: none; }
.bd-hit-main:hover .bd-hit-title { color: var(--aqua); }
.bd-hit-kind { font: 900 11px/1.3 var(--font); letter-spacing: 0.14em; text-transform: uppercase; color: var(--coral); }
.bd-hit-title { font: 800 18px/1.2 var(--display); letter-spacing: -0.01em; overflow-wrap: anywhere; }
.bd-hit-sub { font-size: 13.5px; line-height: 1.4; color: var(--muted); overflow-wrap: anywhere; }
.bd-hit-tn { grid-area: tn; min-width: 0; }
.bd-hit-tune { grid-area: tune; min-height: 48px; padding: 0 18px; }
/* a narrow phone: the Tune button gets its own row, so titles and "Song 10 · own tuning" keep one line */
@media (max-width: 419px) {
  .bd-hit { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'main' 'tn' 'tune'; gap: 8px; padding: 14px 14px 12px 14px; }
  .bd-hit-tune { justify-self: start; }
  /* the tuning and Tune line up with the words, not under the cover */
  .bd-hit-tn, .bd-hit-tune { margin-left: 70px; }
}
.bd-hit-tune .ic, .bd-tune .ic { width: 18px; height: 18px; stroke-width: 2.2; }
@media (min-width: 760px) {
  .bd-hit { grid-template-columns: minmax(0, 1fr) minmax(0, 15em) auto; grid-template-areas: 'main tn tune'; padding: 12px 12px 12px 14px; }
}

.bd-band-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
@media (min-width: 820px) { .bd-band-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; } }
.bd-band { display: grid; grid-template-rows: 1fr auto; gap: 8px; min-width: 0; }
/* two tiles side by side are as tall as each other and their photo credits share a line (subgrid) */
@supports (grid-template-rows: subgrid) { .bd-band { grid-row: span 2; grid-template-rows: subgrid; } }
.bd-band-link {
  position: relative; display: grid; overflow: hidden; min-width: 0; border-radius: var(--r-lg); border: 1px solid var(--line);
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg-top) 55%, rgba(255, 255, 255, 0.04)), color-mix(in srgb, var(--bg-mid) 60%, transparent));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 30px 80px -30px rgba(0, 0, 0, 0.6);
  color: var(--text); text-decoration: none; transition: transform 0.25s, border-color 0.25s;
}
.bd-band-link:hover { text-decoration: none; transform: translateY(-3px); border-color: color-mix(in srgb, var(--coral) 45%, var(--line)); }
.bd-band-link:focus-visible { border-radius: var(--r-lg); }
/* the photo melts into the tile at its lower edge (no seam where the photo ends and the glass begins) */
.bd-band-photo {
  position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent); mask-image: linear-gradient(180deg, #000 72%, transparent);
}
.bd-band-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.bd-band-link:hover .bd-band-photo img { transform: scale(1.03); }
/* a scrim under the years line and the name, which sit on the photo's lower edge: the coral line reads on any stage light */
.bd-band-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 32%, color-mix(in srgb, var(--bg-mid) 80%, transparent) 62%, color-mix(in srgb, var(--bg-mid) 97%, transparent) 100%); }
.bd-band-link { grid-template-rows: auto 1fr; }
.bd-band-body { position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 10px; margin-top: -64px; padding: 0 clamp(18px, 3vw, 30px) clamp(20px, 3vw, 28px); }
.bd-band-meta { font: 900 12px/1.3 var(--font); letter-spacing: 0.16em; text-transform: uppercase; color: var(--coral); text-shadow: 0 1px 2px rgb(0 0 0 / 0.7), 0 0 14px rgb(0 0 0 / 0.55); }
.bd-band-name { font: 800 clamp(40px, 6vw, 64px)/0.95 var(--display); letter-spacing: -0.035em; overflow-wrap: anywhere; }
.bd-band-line { font-size: 16.5px; line-height: 1.5; color: var(--muted); }
.bd-band-stats { font: 800 14.5px/1.4 var(--font); color: var(--foam); font-variant-numeric: tabular-nums; }
.bd-band-tunings { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.bd-band-go { display: inline-flex; align-self: start; align-items: center; gap: 8px; min-height: 44px; margin-top: auto; font-weight: 800; color: var(--coral); }
.bd-band-go .ic { transition: transform 0.2s; }
.bd-band-link:hover .bd-band-go .ic { transform: translateX(4px); }
.bd-band-credit { padding: 0 8px; }
/* offline, a photo not cached yet (app.js marks it): the tile keeps its shape with the sky behind it, a figure steps aside */
.bd-band-photo.is-missing { background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--coral) 22%, transparent), transparent 60%), linear-gradient(160deg, var(--bg-top), var(--bg-mid)); }
.bd-band-photo.is-missing img { visibility: hidden; }
.bd-band:has(.is-missing) .bd-band-credit, figure.is-missing { display: none; }

/* ==========================================================================
   /bands/<band>/: magazine hero, summary, album tiles, the article
   ========================================================================== */
.bd-hero .bd-stats, .bd-hero .bd-hero-cta { justify-content: center; }
.bd-stats { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 30px; margin: 26px 0 0; padding: 0; }
.bd-stats li { display: grid; justify-items: center; }
.bd-stats b { font: 800 clamp(34px, 4.4vw, 48px)/1 var(--display); letter-spacing: -0.03em; color: var(--text); font-variant-numeric: tabular-nums; }
.bd-stats span { margin-top: 4px; font: 900 11.5px/1.3 var(--font); letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); }
.bd-hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; }
/* every album's cover, each a link to its page: the albums on the first screen (even rows: --cols, --cols-sm) */
.bd-strip {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 24px auto 0;
  max-width: calc(var(--cols-sm, 5) * 60px - 8px); /* five to a row on a phone, the last row centred under them */
}
.bd-strip-al { display: block; flex: 0 0 52px; border-radius: 7%; transition: transform 0.2s; }
.bd-strip-al:hover { transform: translateY(-3px); }
.bd-strip-al:focus-visible { outline-offset: 3px; }
.bd-strip-cv { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 12px 24px -12px rgba(0, 0, 0, 0.85); }
.bd-hero-cta .btn .ic { width: 18px; height: 18px; }
.bd-hero-fig { margin: 34px 0 0; text-align: left; }
.bd-hero-fig img {
  width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-lg); border: 1px solid var(--line-2);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.03);
}
.bd-hero-fig figcaption { margin-top: 12px; padding: 0 4px; }
@media (min-width: 1000px) {
  .bd-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); column-gap: clamp(36px, 4.5vw, 72px); align-items: center; text-align: left; }
  .bd-hero > :not(.bd-hero-fig) { grid-column: 1; }
  .bd-hero > .bd-hero-fig { grid-column: 2; grid-row: 1 / span 7; margin: 0; align-self: center; }
  .bd-hero .crumbs ol, .bd-hero .bd-stats, .bd-hero .bd-hero-cta { justify-content: flex-start; }
  .bd-hero .bd-strip { display: grid; grid-template-columns: repeat(var(--cols, 7), minmax(0, 56px)); justify-content: start; max-width: none; margin-inline: 0; }
  .bd-hero .bd-stats li { justify-items: start; }
  .bd-hero > .kicker { justify-self: start; }
  .bd-hero h1 { font-size: clamp(64px, 7.4vw, 108px); }
  .bd-hero .lede { margin-left: 0; }
}

.bd-summary { display: grid; gap: 24px; overflow: hidden; }
.bd-summary::before {
  content: ''; position: absolute; right: -100px; top: -110px; width: 320px; height: 320px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 107, 107, 0.16), transparent 65%);
}
.bd-summary > * { position: relative; min-width: 0; }
.bd-summary-text { display: grid; gap: 12px; align-content: start; }
.bd-more > summary {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 2px; cursor: pointer; list-style: none;
  font: 800 15px/1.2 var(--font); color: var(--aqua);
}
.bd-more > summary::-webkit-details-marker { display: none; }
.bd-more > summary::after { content: '+'; font: 300 24px/1 var(--display); transition: transform 0.2s; }
.bd-more[open] > summary::after { transform: rotate(45deg); }
.bd-more > p { margin-top: 0.4em; }
@media (min-width: 900px) {
  @supports selector(::details-content) {
    .bd-more::details-content { content-visibility: visible; display: block; }
    .bd-more > summary { display: none; }
    .bd-more > p { margin-top: 1em; }
  }
}
.bd-summary h2 { font-weight: 800; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.05; }
.bd-summary .prose p { color: var(--text); opacity: 0.92; font-size: clamp(16.5px, 1.7vw, 18px); line-height: 1.65; }
.bd-summary-side, .bd-tune-side {
  display: grid; gap: 14px; align-content: start; padding: clamp(16px, 2.4vw, 26px);
  border-radius: 24px; border: 1px solid var(--line); background: rgba(4, 10, 24, 0.5);
}
.bd-side-title { font: 900 12px/1.3 var(--font); letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.bd-used { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.bd-used li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.bd-used li:last-child { border-bottom: 0; }
.bd-used li > span:last-child { font: 800 14px/1.2 var(--font); color: var(--muted); font-variant-numeric: tabular-nums; }
.bd-side-note { font-size: 14px; color: var(--foam); font-weight: 700; }
.bd-summary-link { margin-top: 2px; }
.bd-summary-link .link { padding-left: 0; }
@media (min-width: 900px) { .bd-summary { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); column-gap: clamp(28px, 4vw, 48px); align-items: start; } }

/* album tiles */
.bd-album-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 700px) { .bd-album-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 1100px) { .bd-album-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
.bd-album-list > li { display: grid; min-width: 0; }
/* a column, so the footer sits at the bottom of every tile in a row (margin-top: auto) */
.bd-album {
  position: relative; display: flex; flex-direction: column; gap: 12px; min-width: 0; overflow: hidden;
  padding: 20px 20px 16px 24px; border-radius: 24px; border: 1px solid var(--line);
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 9%, rgba(255, 255, 255, 0.045)), rgba(255, 255, 255, 0.02) 55%);
  color: var(--text); text-decoration: none; transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.bd-album::before { content: ''; position: absolute; left: 0; top: 18px; bottom: 18px; width: 4px; border-radius: 0 4px 4px 0; background: var(--c); box-shadow: 0 0 16px color-mix(in srgb, var(--c) 60%, transparent); }
.bd-album:hover { text-decoration: none; transform: translateY(-3px); border-color: color-mix(in srgb, var(--c) 45%, var(--line)); box-shadow: 0 22px 50px -26px color-mix(in srgb, var(--c) 60%, transparent); }
.bd-album:focus-visible { border-radius: 24px; }
.bd-album-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.bd-year { font: 800 20px/1 var(--display); letter-spacing: -0.01em; color: var(--coral); font-variant-numeric: tabular-nums; }
/* "Studio album": small capitals, a touch lighter than --muted, so they pass 4.5:1 on a tinted glass tile (QA: 3.1) */
.bd-type { font: 900 12px/1.3 var(--font); letter-spacing: 0.12em; text-transform: uppercase; color: color-mix(in srgb, var(--muted) 55%, var(--text)); }
.bd-album-title { font: 800 clamp(22px, 2.3vw, 26px)/1.12 var(--display); letter-spacing: -0.02em; overflow-wrap: anywhere; text-wrap: balance; }
.bd-album-ev { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.bd-album-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.bd-diff { font: 800 14px/1.35 var(--font); color: var(--foam); }
.bd-go {
  display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line-2); color: var(--text); transition: background 0.2s, color 0.2s, transform 0.2s;
}
.bd-album:hover .bd-go { background: var(--coral); color: var(--on-coral); transform: translateX(2px); }

/* the article: a reading column of cards, photos breaking out between them */
.info > .bd-read { grid-column: 1 / -1; }
/* one centred reading column, like a magazine page (the about card of every band page too) */
.info > :is(.bd-read, .about) > :is(.kicker, h2, .prose) { justify-self: center; width: min(100%, 720px); }
/* /bands/: its intro card starts at the card's edge, in line with the search, the tiles and the labels card */
main > .bd-bands ~ .info > .about > :is(.kicker, h2, .prose) { justify-self: start; width: min(100%, 860px); }
.info > :is(.bd-read, .about) > .prose { font-size: 17px; }
.info > .about .prose p { line-height: 1.72; }
.bd-read .prose p { line-height: 1.72; }
.bd-read .prose h3 { margin-top: 1.8em; font-size: clamp(21px, 2.4vw, 26px); }
.bd-read .prose > h3 + p, .bd-read .prose > .bd-art-strip + p { margin-top: 0.6em; }
.bd-read .prose .table-wrap { max-width: 100%; }
/* the article's own tables (Markdown): text wraps, the album names lead */
table.bd-md-table td, table.bd-md-table th { white-space: normal; }
table.bd-md-table thead th { white-space: nowrap; }
table.bd-md-table tbody th { color: var(--text); font-family: var(--display); font-weight: 700; min-width: 10em; }
.bd-read .prose ul > li::marker { color: var(--coral); }
/* heading and table links: a 44 px hit area without moving the text */
.bd-art-album a, .bd-claims th a { display: inline-block; padding: 12px 0; margin: -12px 0; }
.bd-claims th a { padding: 13px 8px; margin: -13px -8px; } /* "One", "Load": 44 px wide to the finger too */
.bd-art-album a { color: var(--text); text-decoration: none; }
.bd-art-album a:hover { color: var(--aqua); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.bd-art-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: 10px; }
.bd-art-strip .bd-art-go { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 800; font-size: 14.5px; color: var(--coral); text-decoration: none; }
.bd-art-strip .bd-art-go:hover { text-decoration: underline; text-underline-offset: 4px; }
.bd-art-strip .ic { width: 18px; height: 18px; }

.info > .bd-photo { grid-column: 1 / -1; margin: clamp(8px, 2vw, 20px) 0; display: grid; gap: 14px; }
.bd-photo img {
  width: 100%; height: auto; max-height: min(78vh, 720px); object-fit: cover; border-radius: var(--r-lg);
  border: 1px solid var(--line-2); box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.8);
}
.bd-photo figcaption { max-width: 74ch; padding: 0 6px; }
@media (min-width: 900px) {
  .info > .bd-photo { grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); align-items: end; column-gap: 28px; }
  .info > .bd-photo.is-tall { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
  .bd-photo figcaption { padding: 0 0 8px; border-left: 3px solid var(--coral); padding-left: 18px; }
  .bd-photo figcaption .bd-cap { font: 700 clamp(19px, 1.9vw, 23px)/1.35 var(--display); letter-spacing: -0.01em; color: var(--text); margin-bottom: 10px; }
}

/* ==========================================================================
   /bands/<band>/<album>/: the tuning card, the songs, the pager
   ========================================================================== */
.bd-album-hero h1 { font-size: clamp(44px, 8.6vw, 104px); overflow-wrap: anywhere; }

.bd-tune-card { display: grid; gap: 24px; overflow: hidden; overflow: clip; }
.bd-tune-card::before {
  content: ''; position: absolute; left: -120px; top: -140px; width: 420px; height: 420px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, color-mix(in srgb, var(--c) 22%, transparent), transparent 65%);
}
.bd-tune-card > * { position: relative; min-width: 0; }
/* a size container: the tuning's name and its pitch pill share one line on a laptop's narrow column too */
.bd-tune-main { container-type: inline-size; display: grid; gap: 14px; align-content: start; }
.bd-big { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font: 800 clamp(44px, 12.5cqi, 76px)/0.98 var(--display); letter-spacing: -0.035em; }
.bd-big > span { overflow-wrap: anywhere; }
.bd-big > b {
  display: inline-flex; align-items: center; min-height: 0.8em; padding: 0.12em 0.42em; border-radius: 999px; white-space: nowrap;
  font: 800 0.42em/1 var(--display); letter-spacing: 0; color: var(--on-coral); background: var(--coral);
  box-shadow: 0 10px 30px -12px rgba(255, 107, 107, 0.8);
}
.bd-big-sub { font-size: clamp(16px, 1.8vw, 18px); color: var(--text); opacity: 0.9; font-variant-numeric: tabular-nums; }
.bd-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bd-strings { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 600px) { .bd-strings { grid-template-columns: repeat(var(--n, 6), minmax(0, 1fr)); gap: 6px; } }
.bd-strings li { padding: 12px 4px 11px; }
.bd-strings .nt-note { font-size: 30px; }
.bd-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 4px; }
.bd-actions .btn .ic { width: 20px; height: 20px; stroke-width: 2.1; }
.bd-actions .btn-ghost .ic { fill: currentColor; stroke: none; }
.bd-jump { gap: 6px; font-size: 15px; color: var(--muted); }
.bd-jump .ic { width: 18px; height: 18px; }
.bd-bass { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 14px; border-radius: 16px; border: 1px dashed var(--line-2); }
.bd-bass-what { font: 900 11.5px/1.3 var(--font); letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.bd-bass-tune { min-height: 44px; }
.bd-pitch-lg .bd-meter { height: 10px; }
.bd-pitch-lg .bd-pitch-txt { font: 800 20px/1.1 var(--display); color: var(--text); }
/* the measured sources: one small card per source at every width (the panel is narrow), each value under its name */
.bd-mtable { background: transparent; overflow: visible; }
.bd-mtable table.stack { display: flex; flex-direction: column; }
.bd-mtable table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bd-mtable table.stack tbody { display: block; }
.bd-mtable table.stack caption { order: 2; display: block; }
.bd-mtable table.stack tr { display: grid; grid-template-columns: repeat(auto-fit, minmax(6.4em, 1fr)); gap: 10px 14px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.bd-mtable table.stack tbody tr:last-child { border-bottom: 0; }
.bd-mtable table.notes.stack tr > * { display: block; padding: 0; border: 0; text-align: left; white-space: normal; }
.bd-mtable table.notes.stack tbody th { grid-column: 1 / -1; }
.bd-mtable table.stack td[data-label="Spread"] { grid-column: span 2; } /* "−23.3 to −20.0 ¢" on one line */
.bd-mtable tbody th b { display: block; font: 800 16px/1.25 var(--display); color: var(--text); }
.bd-mtable tbody th span { display: inline-block; margin-top: 6px; padding: 3px 9px; border-radius: 999px; font: 800 11.5px/1.2 var(--font); color: var(--coral); background: rgba(255, 107, 107, 0.12); }
.bd-mtable td { font: 800 17px/1.2 var(--display); color: var(--text); font-variant-numeric: tabular-nums; }
.bd-mtable table.stack td::before { content: attr(data-label); display: block; margin-bottom: 4px; font: 900 10.5px/1.3 var(--font); letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.bd-said { font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.bd-said b { color: var(--text); }
.bd-notes { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid var(--line); max-width: 80ch; }
.bd-notes p { color: var(--text); opacity: 0.88; }
@media (min-width: 960px) {
  .bd-tune-card { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); column-gap: clamp(28px, 4vw, 48px); align-items: start; }
}
/* Tune like this right under the tuning's name and its labels, on the first screen at every width; the strings follow */
.bd-tune-main > .bd-actions { order: 1; }
.bd-tune-main > :is(.note-tiles, .bd-bass) { order: 2; }
@media (max-width: 599px) {
  .bd-tune-side, .bd-summary-side { margin-inline: -8px; padding: 16px 14px; border-radius: 20px; }
  .bd-actions .btn-lg { flex: 1 1 auto; }
  /* a phone: the labels follow Tune like this (they may take two lines on a short screen) */
  .bd-tune-main > .bd-chips { order: 2; }
}

/* songs (QA 2026-10-07, "too busy"): one calm card per song. The number, the title, the tuning with its pitch and ONE
   label; Tune and Play along; the notes last. Phones: the buttons under the words,
   the notes behind a toggle. From 700 px: the buttons on the right, the notes open under the words. A song tuned
   differently from its album gets its family colour on the edge, the words "Different tuning" over its title and a
   coral Tune. */
.bd-tracks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: none; }
.bd-track {
  position: relative; display: grid; grid-template-columns: 2.2em minmax(0, 1fr); gap: 14px 12px; align-items: start; scroll-margin-top: 96px;
  padding: 18px 16px 16px 12px; border-radius: 22px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.035);
}
.bd-track.is-diff { background: linear-gradient(100deg, color-mix(in srgb, var(--c) 10%, rgba(255, 255, 255, 0.04)), rgba(255, 255, 255, 0.03) 60%); border-color: color-mix(in srgb, var(--c) 30%, var(--line)); }
.bd-track.is-diff::before { content: ''; position: absolute; left: 0; top: 18px; bottom: 18px; width: 4px; border-radius: 0 4px 4px 0; background: var(--c); }
.bd-track:target { border-color: var(--coral); box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.25); }
.bd-no { grid-column: 1; grid-row: 1; padding-top: 1px; text-align: right; font: 800 22px/1.15 var(--display); color: var(--faint); font-variant-numeric: tabular-nums; }
/* the number sits beside the title, under the "Different tuning" line */
.bd-track:has(.bd-flag) .bd-no { padding-top: 24px; }
.bd-tr-main { grid-column: 2; grid-row: 1; display: grid; gap: 10px; min-width: 0; }
.bd-tr-title { font: 800 clamp(20px, 2vw, 23px)/1.2 var(--display); letter-spacing: -0.01em; overflow-wrap: anywhere; }
/* "Different tuning" in words over the title (after it for screen readers, which read it with the song) */
.bd-flag { order: -1; margin-bottom: -6px; font: 900 11.5px/1.3 var(--font); letter-spacing: 0.12em; text-transform: uppercase; color: var(--coral); }
.bd-track.is-tuning .bd-flag { color: var(--coral); }
.bd-track.is-pitch .bd-flag { color: var(--sand); }
.bd-tr-tn { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.bd-tr-tn .bd-tn { font-size: 16px; }

/* the buttons: Tune first and widest, Play along beside it on a phone; nothing under them */
.bd-tr-act { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px 14px; }
.bd-tune { flex: 1 1 auto; min-height: 50px; font-size: 16px; }
.bd-play { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 4px; font: 800 14.5px/1.2 var(--font); color: var(--muted); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; }
.bd-play:hover { color: var(--text); }
.bd-play .ic { width: 14px; height: 14px; fill: currentColor; stroke: none; }
/* the notes: last, aligned with the words */
.bd-tr-notes { grid-column: 2; margin-top: -6px; }
.bd-tr-notes summary {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; list-style: none;
  font: 800 14.5px/1.2 var(--font); color: var(--aqua);
}
.bd-tr-notes summary::-webkit-details-marker { display: none; }
.bd-tr-notes summary::after { content: '+'; font: 300 22px/1 var(--display); transition: transform 0.2s; }
.bd-tr-notes[open] summary::after { transform: rotate(45deg); }
.bd-tr-more { display: grid; gap: 8px; padding-bottom: 4px; }
.bd-tr-more p { font-size: 15px; line-height: 1.6; color: var(--muted); max-width: 72ch; }
.bd-tr-more .bd-tr-read { font-size: 14px; color: var(--faint); font-variant-numeric: tabular-nums; }
@media (min-width: 700px) {
  .bd-track { grid-template-columns: 3em minmax(0, 1fr) auto; padding: 20px 20px 20px 14px; column-gap: 18px; row-gap: 12px; }
  .bd-tr-act { grid-column: 3; grid-row: 1; }
  .bd-tune { flex: none; min-height: 52px; }
  .bd-tr-notes { margin-top: 0; }
  /* wide screens show the notes open; phones keep them behind the toggle (browsers without ::details-content keep the toggle) */
  @supports selector(::details-content) {
    .bd-tr-notes::details-content { content-visibility: visible; display: block; }
    .bd-tr-notes > summary { display: none; }
  }
}
/* a tablet: Tune over Play along on the right, beside every row of the words (the notes fill the next row
   of the middle column; the last row takes what the buttons need beyond the words: 1fr) */
@media (min-width: 700px) and (max-width: 999px) {
  .bd-track:has(> .bd-tr-notes) { grid-template-rows: auto 1fr; }
  .bd-track:has(> .bd-tr-notes) > .bd-tr-act { grid-row: 1 / span 2; }
  .bd-tr-act { flex-direction: column; align-items: stretch; gap: 6px; min-width: 10em; }
  .bd-play { justify-content: center; }
}
/* a desktop: Tune and Play along side by side, as on a phone, level with the title and the tuning (rows stay low) */
@media (min-width: 1000px) {
  .bd-tr-act { align-self: center; gap: 18px; }
  .bd-tune { min-width: 9.5em; }
}


.bd-legend { margin-top: 22px; padding: clamp(16px, 2.4vw, 24px); border-radius: 22px; border: 1px solid var(--line); background: rgba(4, 10, 24, 0.4); }
.bd-legend-title { margin-bottom: 12px; font: 900 12px/1.3 var(--font); letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.bd-legend dl { display: grid; gap: 12px 24px; margin: 0; }
@media (min-width: 700px) { .bd-legend dl { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .bd-legend dl { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* the labels card across the page: the seven labels in two rows (four, then the other three) */
@media (min-width: 1000px) { .bd-labels .bd-legend dl { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.bd-labels > .prose > p:first-child { max-width: 760px; }
.bd-legend dl > div { display: grid; gap: 6px; align-content: start; }
.bd-legend dt { margin: 0; }
.bd-legend dd { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.bd-legend-note { margin-top: 14px; font-size: 14px; color: var(--muted); }
.bd-legend-note a { color: var(--aqua); }
/* links inside a sentence: 44 px to the finger without moving the words */
.bd-legend-note a, .bd-songs .section-head p a { display: inline-block; padding: 12px 0; margin: -12px 0; }
.info .bd-legend { margin-top: 4px; }

.bd-pager { display: grid; gap: 10px; }
@media (min-width: 760px) { .bd-pager { grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr) minmax(0, 1fr); gap: 14px; } }
.bd-page {
  display: grid; gap: 4px; align-content: start; min-width: 0; padding: 16px 20px; border-radius: 22px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035); color: var(--text); text-decoration: none; transition: border-color 0.2s, transform 0.2s;
}
.bd-page:hover { text-decoration: none; border-color: color-mix(in srgb, var(--coral) 50%, var(--line)); transform: translateY(-2px); }
.bd-page.is-none { visibility: hidden; padding: 0; border: 0; }
@media (max-width: 759px) { .bd-page.is-none { display: none; } }
.bd-page-dir { display: inline-flex; align-items: center; gap: 6px; font: 900 11.5px/1.3 var(--font); letter-spacing: 0.14em; text-transform: uppercase; color: var(--coral); }
.bd-page-dir .ic { width: 16px; height: 16px; stroke-width: 2.2; }
.bd-page-title { font: 800 20px/1.15 var(--display); letter-spacing: -0.01em; overflow-wrap: anywhere; }
.bd-page-sub { font-size: 13.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.bd-prev { text-align: left; justify-items: start; }
.bd-next { text-align: right; justify-items: end; }
.bd-all { background: color-mix(in srgb, var(--coral) 8%, rgba(255, 255, 255, 0.03)); }
@media (min-width: 760px) { .bd-all { text-align: center; justify-items: center; } }

/* ==========================================================================
   /how-we-measure-recordings/: the claims tables
   ========================================================================== */
.bd-claims tbody th span { color: var(--faint); font-weight: 600; }
.bd-claims td b { color: var(--text); font-weight: 800; }
.bd-claims td span { color: var(--faint); font-size: 13px; }
.bd-claims tr.is-song th { font-weight: 600; color: var(--muted); }
.bd-claims tr.is-song th a { font-weight: 600; }
table.bd-claims td, table.bd-claims th { white-space: normal; }
table.bd-claims tbody th { min-width: 11em; }

/* phones: the band and album pages keep their breadcrumb (the site hides it elsewhere), with 44 px links */
@media (max-width: 560px) {
  /* only the way back, "‹ Pantera", on one line: the whole trail would wrap on a 360 px phone */
  :is(.bd-hero, .bd-album-hero) .crumbs { display: block; margin: -6px 0 6px; font-size: 14px; }
  :is(.bd-hero, .bd-album-hero) .crumbs li { display: none; }
  :is(.bd-hero, .bd-album-hero) .crumbs li:nth-last-child(2) { display: inline-flex; }
  :is(.bd-hero, .bd-album-hero) .crumbs li:nth-last-child(2)::before { content: none; }
  :is(.bd-hero, .bd-album-hero) .crumbs a { min-height: 44px; padding: 0 8px; margin: 0; font-weight: 800; color: var(--text); }
  :is(.bd-hero, .bd-album-hero) .crumbs a::before { content: '‹'; margin-right: 8px; font-size: 1.35em; line-height: 1; color: var(--coral); }
  .bd-album-hero .crumbs { margin: 0; }
  .bd-album-hero .crumbs a { padding: 0 8px 0 0; }
  /* the claims tables: one header row, then each album's three values under it (no label repeated in every row) */
  table.stack.bd-claims thead { position: static; display: block; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; }
  table.stack.bd-claims thead tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 12px; padding: 10px 14px; border-bottom: 1px solid var(--line-2); }
  table.stack.bd-claims thead th { padding: 0; border: 0; text-align: left; white-space: normal; font-size: 10.5px; letter-spacing: 0.08em; }
  table.stack.bd-claims thead th:first-child { display: none; }
  table.stack.bd-claims tr { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  table.stack.bd-claims td::before { content: none; }
  :is(.bd-hero, .bd-album-hero) .lede { font-size: 16px; }
  .bd-album { gap: 10px; padding: 16px 16px 12px 20px; }
  .bd-album-foot { padding-top: 10px; }
}

/* /bands/: a compact hero on a desktop, so the bands' photos start on the first screen */
@media (min-width: 900px) {
  .hero.bd-index-hero { padding-top: calc(76px + var(--top) + clamp(6px, 2.4vh, 28px)); }
  .hero.bd-index-hero h1 { margin-top: 14px; font-size: clamp(56px, min(6.4vw, 10vh), 96px); }
  .hero.bd-index-hero .lede { margin-top: 14px; }
  main > .bd-find { margin-top: clamp(28px, 4vw, 48px); }
  main > .bd-find + .bd-bands { margin-top: clamp(40px, 4.4vw, 64px); }
}

@media (prefers-reduced-motion: reduce) {
  .bd-band-link, .bd-band-photo img, .bd-album, .bd-go, .bd-page, .bd-album-cv, .bd-strip-al { transition: none; }
  .bd-band-link:hover, .bd-album:hover, .bd-page:hover, .bd-album:hover .bd-album-cv, .bd-strip-al:hover { transform: none; }
}
@media print {
  .bd-find, .bd-tr-act, .bd-actions, .bd-pager, .bd-hero-cta { display: none !important; }
}
