/* Shared stylesheet for the CONTENT pages — genre pages and scene pages.
   Everything site-wide lives in hmt_theme.css; this is the layer between.
   Class prefix is c- for "content".
   --g is the family's brand colour, --accent-ink the same colour lightened by
   hmt_ink() to clear 4.6:1 on the dark background. Brand colour for
   graphics and borders, ink for anything that is text. */

.c-page { max-width: 54rem; }

/* --accent is the family brand colour, --accent-ink the same colour
   lightened by hmt_ink() to clear 4.6:1 on the dark background. Brand
   colour for graphics and borders, ink for anything that is text. */

/* ─── Header ───────────────────────────────────────────────────────── */

.c-crumbs {
  font-size: .82rem;
  color: var(--hmt-text-faint);
  margin: 0 0 .9rem;
  line-height: 1.7;
}
.c-crumbs a { color: var(--hmt-text-muted); text-decoration: none; }
.c-crumbs a:hover, .c-crumbs a:focus-visible { color: var(--accent-ink); text-decoration: underline; }
.c-sep { padding: 0 .4em; color: var(--hmt-line); }
.c-crumb-here { color: var(--hmt-text-strong); }

.c-title {
  font-size: clamp(1.7rem, 4.5vw, 2.5rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--hmt-text-strong);
  margin: 0 0 .5rem;
  /* The only place the raw brand colour is used at size — a 4px rule, which
     is a graphic and so needs 3:1, not 4.5:1. */
  border-left: 4px solid var(--accent);
  padding-left: .6rem;
}

.c-hook {
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--hmt-text);
  max-width: 42rem;
  margin: 0 0 1.3rem;
}

.c-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 0 0 2.2rem;
  padding: 0 0 1.4rem;
  border-bottom: 1px solid var(--hmt-line-soft);
}
.c-facts dt {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--hmt-text-faint);
  margin-bottom: .2rem;
}
.c-facts dd { margin: 0; font-size: .95rem; color: var(--hmt-text-strong); }

/* ─── Blocks ───────────────────────────────────────────────────────── */

.c-block { margin: 0 0 2.4rem; }
.c-block h2 {
  font-size: 1.16rem;
  font-weight: 600;
  color: var(--hmt-text-strong);
  margin: 0 0 .5rem;
}
.c-block-intro {
  font-size: .9rem;
  color: var(--hmt-text-muted);
  margin: 0 0 1rem;
  max-width: 40rem;
}
.c-sub {
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--accent-ink);
  margin: 1.3rem 0 .6rem;
  font-weight: 700;
}
.c-prose {
  font-size: 1rem;
  line-height: 1.68;
  color: var(--hmt-text);
  max-width: 40rem;
  margin: 0 0 1.4rem;
}

/* Visually hidden, still read out. */
.c-vh {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ─── Browse index — hmt_browse.php ────────────────────────────────────
   155 links on one page, so density is the entire design problem. Two
   things do the work:

     · auto-fill columns sized in ch, so the list reflows from one column
       on a phone to four or five on a desktop with no breakpoints and no
       guessing at how long a genre name is
     · the year or era on the same row as the name, right-aligned and
       dimmed, so it reads as a column when the names are ragged

   The page is wider than .c-page's 54rem because it is a list, not prose. */

.c-idx { max-width: 74rem; }

.c-idx-head { margin: 0 0 2.2rem; }
.c-idx-lede {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--hmt-text-muted);
  max-width: 44rem;
  margin: .9rem 0 0;
}
.c-idx-lede a { color: var(--hmt-text-strong); }

.c-idx-part { margin: 0 0 3rem; }

.c-idx-h {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--hmt-text-strong);
  margin: 0 0 .4rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--hmt-line-soft);
}
.c-idx-note {
  font-size: .88rem;
  color: var(--hmt-text-muted);
  max-width: 44rem;
  margin: .7rem 0 1.6rem;
}

.c-idx-fam { margin: 0 0 1.7rem; }

/* The family colour as a left rule, not as text — a 3px bar is a graphic
   and needs 3:1, which every family colour clears. The label beside it is
   set in --accent-ink for the same reason the genre pages are. */
.c-idx-famh {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
  color: var(--accent-ink, var(--hmt-text-muted));
  border-left: 3px solid var(--accent, var(--hmt-line));
  padding-left: .55rem;
  margin: 0 0 .7rem;
  display: flex;
  align-items: baseline;
  gap: .5rem;
}
/* Regions have no family colour of their own — the scenes inside them
   have several — so the heading rule stays neutral. */
.c-idx-famh--plain { color: var(--hmt-text-muted); border-left-color: var(--hmt-line); }

.c-idx-n {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--hmt-text-faint);
}

.c-idx-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  gap: .1rem .9rem;
}
.c-idx-list--wide { grid-template-columns: repeat(auto-fill, minmax(24rem, 1fr)); }

.c-idx-list a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .6rem;
  text-decoration: none;
  padding: .34rem .5rem .34rem .55rem;
  border-radius: 3px;
  border-left: 2px solid transparent;
}
.c-idx-list a:hover,
.c-idx-list a:focus-visible {
  background: var(--hmt-surface);
  border-left-color: var(--accent-ink, var(--hmt-text-faint));
}
.c-idx-name {
  color: var(--hmt-text);
  font-size: .95rem;
  font-weight: 500;
}
.c-idx-list a:hover .c-idx-name,
.c-idx-list a:focus-visible .c-idx-name { color: var(--hmt-text-strong); }

.c-idx-meta {
  color: var(--hmt-text-faint);
  font-size: .76rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex: 0 0 auto;
}

/* "city" next to the 21 scene-tier entries. The distinction matters — a
   city scene is a room full of bands who knew each other, a country is a
   whole nation's worth — and it is not obvious from the name alone that
   Bergen and Norway are different kinds of entry. */
.c-idx-tier {
  font-size: .62rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  font-weight: 700;
  color: var(--accent-ink, var(--hmt-text-faint));
  border: 1px solid currentColor;
  border-radius: 2px;
  padding: 0 .25em;
  margin-left: .4em;
  vertical-align: .1em;
}

/* ─── Content advisory ─────────────────────────────────────────────────
   Deliberately quiet. This block sits above "Start here" on 45 of the 77
   genre pages and it must not read as a health warning stapled to the
   music — the site recommends these records. A left rule and a slightly
   inset background is enough to mark it as an aside; the extremist variant
   gets a red rule because it IS a different kind of statement, but the
   same restrained shape, because shouting would undermine the sentence
   next to it.

   Note it does NOT use --accent. Every other block on the page is tinted
   with the family colour; this one is not, so it stays legible as a
   separate voice rather than looking like more editorial. */

.c-advisory {
  background: var(--hmt-surface-2);
  border-left: 3px solid var(--hmt-line);
  border-radius: 0 4px 4px 0;
  padding: 1rem 1.15rem .9rem;
  max-width: 42rem;
}
.c-advisory.is-extremist { border-left-color: #b4453a; }   /* 3.2:1 on the panel */

.c-advisory h2 {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--hmt-text-faint);
  margin: 0 0 .6rem;
  font-weight: 700;
}

.c-adv-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 .7rem; }
.c-adv-tag {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 700;
  color: var(--hmt-text-muted);
  border: 1px solid var(--hmt-line);
  border-radius: 3px;
  padding: .2rem .45rem;
  white-space: nowrap;
}
.c-adv-tag.is-x { color: #e79a91; border-color: #b4453a; }  /* 8.4:1 text on panel */

.c-adv-text {
  font-size: .93rem;
  line-height: 1.62;
  color: var(--hmt-text);
  margin: 0;
}

/* ─── The listening ladder ─────────────────────────────────────────── */

.c-listen { padding: 0; }

.c-ladder { list-style: none; margin: 0; padding: 0; counter-reset: none; }

.c-rec {
  position: relative;
  background: var(--hmt-surface);
  border: 1px solid var(--hmt-line-soft);
  border-left: 3px solid var(--hmt-line);
  border-radius: var(--hmt-radius);
  padding: .9rem 1rem .8rem 1rem;
  margin-bottom: .6rem;
}
.c-rec.is-landmark { border-left-color: var(--accent); background: var(--hmt-surface-2); }

.c-rec-head { margin: 0 0 .4rem; line-height: 1.45; }
.c-rec-n {
  display: inline-block;
  min-width: 1.4em;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--hmt-text-faint);
}
.c-rec-title { font-weight: 600; color: var(--hmt-text-strong); font-size: 1.02rem; }
.c-rec-band { color: var(--hmt-text-muted); font-size: .92rem; }
.c-rec-band::before { content: ' — '; color: var(--hmt-line); }

.c-badge {
  display: inline-block;
  margin-left: .5rem;
  font-size: .66rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
  color: var(--accent-ink);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: .1rem .5rem;
  vertical-align: .1em;
}

.c-rec-why {
  font-size: .92rem;
  line-height: 1.62;
  color: var(--hmt-text);
  margin: 0 0 .6rem;
  padding-left: 1.4em;
  max-width: 38rem;
}
.c-rec-go { margin: 0; padding-left: 1.4em; }

.c-listen-link {
  display: inline-block;
  font-size: .86rem;
  font-weight: 600;
  color: var(--accent-ink);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
.c-listen-link:hover, .c-listen-link:focus-visible { color: var(--hmt-text-strong); }

/* ─── Stats ────────────────────────────────────────────────────────── */

.c-stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: .5rem 1.8rem;
  max-width: 40rem;
}
.c-stats li { display: flex; align-items: center; gap: .6rem; font-size: .88rem; }
.c-stat-label { flex: 0 0 6.6rem; color: var(--hmt-text-muted); }
.c-stat-bar { display: inline-flex; gap: 3px; }
.c-pip {
  width: 15px; height: 8px;
  border-radius: 1px;
  background: var(--hmt-line-soft);
  border: 1px solid var(--hmt-line);
}
.c-pip.is-on { background: var(--accent); border-color: var(--accent); }
/* The number is the accessible value; the pips are aria-hidden. Kept visible
   because "4 out of 5" is clearer than counting blocks anyway. */
.c-stat-num { color: var(--hmt-text-faint); font-size: .78rem; font-variant-numeric: tabular-nums; }

/* ─── Bands ────────────────────────────────────────────────────────── */

.c-bands { list-style: none; margin: 0 0 .4rem; padding: 0; }
.c-bands li {
  display: inline-block;
  margin: 0 .4rem .4rem 0;
  padding: .3rem .6rem;
  background: var(--hmt-surface);
  border: 1px solid var(--hmt-line-soft);
  border-radius: var(--hmt-radius);
  font-size: .88rem;
}
.c-bands--key li {
  border-color: var(--accent);
  background: var(--hmt-surface-2);
  padding: .45rem .8rem;
  font-size: .98rem;
}
.c-band-name { color: var(--hmt-text-strong); font-weight: 600; }
.c-bands li:not(.c-bands--key li) .c-band-name { font-weight: 500; }
.c-band-cc { color: var(--hmt-text-faint); font-size: .78rem; margin-left: .4rem; }
.c-band-note {
  color: var(--accent-ink);
  font-size: .74rem;
  margin-left: .4rem;
  font-style: italic;
}

/* ─── Places, children, neighbours ─────────────────────────────────── */

.c-places { list-style: none; margin: 0; padding: 0; }
.c-places li {
  padding: .5rem 0;
  border-bottom: 1px solid var(--hmt-line-soft);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .6rem;
}
.c-places a { color: var(--accent-ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.c-places a:hover, .c-places a:focus-visible { text-decoration: underline; }
.c-place-sub { color: var(--hmt-text-muted); font-size: .85rem; }
.c-place-n { margin-left: auto; color: var(--hmt-text-faint); font-size: .8rem; }

.c-children { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.c-children li {
  border: 1px solid var(--hmt-line-soft);
  border-left: 3px solid var(--c, var(--hmt-line));
  border-radius: var(--hmt-radius);
  background: var(--hmt-surface);
  padding: .45rem .75rem;
}
.c-children a { color: var(--c, var(--hmt-text-strong)); text-decoration: none; font-weight: 600; font-size: .93rem; }
.c-children a:hover, .c-children a:focus-visible { text-decoration: underline; }
.c-child-yr { color: var(--hmt-text-faint); font-size: .78rem; margin-left: .45rem; }

/* ─── Footer nav ───────────────────────────────────────────────────── */

.c-elsewhere {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin: 2.6rem 0 0;
  padding-top: 1.3rem;
  border-top: 1px solid var(--hmt-line-soft);
}
.c-elsewhere a { color: var(--hmt-text-muted); font-size: .9rem; text-decoration: none; }
.c-elsewhere a:hover, .c-elsewhere a:focus-visible { color: var(--accent-ink); text-decoration: underline; }

@media (max-width: 34rem) {
  .c-facts { gap: 1rem 1.4rem; }
  .c-rec-why, .c-rec-go { padding-left: 0; }
  .c-stat-label { flex-basis: 5.6rem; }
}

/* ─── Scene page: the map call-to-action ───────────────────────────── */

.c-mapcta { margin: 0 0 2.2rem; }

.c-mapbtn {
  display: inline-block;
  padding: .55rem 1rem;
  background: var(--hmt-surface-2);
  border: 1px solid var(--accent);
  border-radius: var(--hmt-radius);
  color: var(--accent-ink);
  font-size: .92rem;
  font-weight: 600;
  text-decoration: none;
}
.c-mapbtn:hover, .c-mapbtn:focus-visible {
  background: var(--hmt-surface);
  color: var(--hmt-text-strong);
}

