/*
 * music.gonglogic.com — the music site's own design system.
 *
 * ═════════════════════════════════════════════════════════════════════════════
 * WRITTEN 2026-10-25, AS ONE SYSTEM
 * ═════════════════════════════════════════════════════════════════════════════
 * The owner, the day the library got its own look and forum: "give the music subsite
 * the same treatment with a new look + a forum". Until then this file was 34 lines —
 * a banner drawn behind the main theme's dark title band, and a fix to its cards —
 * and the site was gonglogic.com's marketing theme with sheet music in it.
 *
 * It is not the library recoloured. The library is a book: cream paper, amber, a
 * book face. This is a SCORE:
 *
 *   - its own TOKENS (manuscript paper, engraver's ink, a score-cover blue and one
 *     red-pencil accent for the thing you press to hear it), light and dark;
 *   - a SERIF for titles (Source Serif 4), with Inter for everything that is interface.
 *     It was a Didone (Bodoni Moda, the engraved title page's face) until the owner found
 *     it "too hard to read" (2026-10-25): a Didone's hairlines vanish at card-title and
 *     body sizes. Source Serif keeps the printed-score feel with strokes that hold up
 *     from the 1.2rem card titles to the hero;
 *   - the STAVE as the site's one motif: five hairlines under the header and above
 *     the footer, under every piece's opening phrase, and under the hero's notation,
 *     which is real engraving (Includes/MusicHeroArt.ss, see the hero).
 *
 * ── HOW IT WINS AGAINST THE THEME
 *
 * main.css styles bare elements (h1, p, a, a:hover). This file is linked AFTER it, so
 * ties go here, and every rule is scoped to `[data-area="music"]` — the attribute
 * MusicChrome puts on <body> — so nothing here reaches another site, and a reset
 * written `[data-area="music"] :where(h1)` (0,1,0) beats the theme's (0,0,1) while
 * still losing to any component class later in this file.
 *
 * ── THE HOVER RULE
 *
 * A `:hover` here changes PAINT only — colour, background, border colour, shadow —
 * and never size, padding, border width, font weight or position. The library lost an
 * afternoon to a button that shrank 16px when pointed at, because a hover rule
 * repeated its size at a higher specificity. check:read-hover (`--site music`)
 * measures every link and button on every page for exactly that — and caught it here
 * on the first run, in the header's desktop links.
 *
 * So a base rule here NEVER lists `.x:hover` beside `.x`. It does not need to: every
 * selector carries `[data-area="music"]`, (0,2,0) at least, which already beats the
 * theme's `a:hover` (0,1,1). A hover rule is its own rule, and it holds colours only.
 * The one exception is a framework submit button, whose theme hover is
 * `:hover:not(:disabled)` and moves; that rule restates the resting box to undo it.
 *
 * ── `hidden` MEANS HIDDEN
 *
 * An author `display` beats the user agent's `[hidden] { display: none }`. One rule at
 * the end of this file ends that class of fault, as it does in library.css.
 */

/* ═══ 1. TOKENS ════════════════════════════════════════════════════════════════ */

/* PHASE C (2026-11-16): the paper, ink, rules, accent, type and radii are the family's
   (static/family/tokens.css), shared by every Gong Logic site; the music site's accent is the
   score-cover blue, set there on body[data-site="music"]. The navy header band and the red pencil
   went with the site's own system: its personality is its blue and its stave. What stays here is
   the site's own vocabulary, DERIVED from those tokens, so the rules below read the names they
   always have. */
body[data-area="music"] {
  --ink-3: var(--muted);     /* the floor for text: 6.0:1 on paper */
  --rule: var(--line);
  --rule-2: var(--line-2);
  --staff: color-mix(in srgb, var(--ink) 17%, transparent);   /* stave lines */
  --brand: var(--accent-ink);        /* blue that has to be READ */
  --brand-wash: var(--accent-wash);
  --lit: color-mix(in srgb, var(--accent) 22%, transparent);
  /* A band that is dark in both schemes (the video's frame before it plays). The header and footer
     bands that once wore it are the family's now. */
  --cover: #10131a;
  --on-cover: #eef1f7;

  /* The instrument on a piece's edge: one colour each, so a shelf sorts by eye. */
  --inst-piano: #2f5aa6;
  --inst-guitar: #9c5c0c;
  --inst-voice: #9b3a68;
  --inst-other: #5c6474;

  --r-s: 6px;
  --r: var(--radius-s);
  --r-l: var(--radius-m);

  --display: var(--font-text);
  --sans: var(--font-ui);

  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
}

/*
 * DARK: the concert hall with the house lights down. The family's tokens turn over on
 * `:root[data-scheme="dark"]`; only the site's own values are here. The SCORE stays black on
 * white (see the desk): it is a printed page and the engraving is drawn for one.
 */
:root[data-scheme="dark"] body[data-area="music"] {
  --inst-piano: #7fa6ec;
  --inst-guitar: #e3a34f;
  --inst-voice: #e083ad;
  --inst-other: #939db1;
}


/* ═══ 2. RESETS — (0,1,0), see the header ══════════════════════════════════════ */

[data-area="music"] :where(.layout) :where(h1, h2, h3, h4, h5, h6) {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: inherit;
  line-height: 1.15;
  letter-spacing: 0;
  color: inherit;
}
[data-area="music"] :where(.layout) :where(p) {
  margin: 0;
  font-size: inherit;
  line-height: inherit;
  font-weight: inherit;
  color: inherit;
}
/* Scoped to the site's own regions: the family bar above the header is family.css's. */
[data-area="music"] :where(.layout) :where(a) { color: var(--brand); }
[data-area="music"] :where(.layout) :where(a:not([class])):hover { color: var(--ink); text-decoration: underline; }
[data-area="music"] :where(.layout) :where(ul, ol) { list-style: none; margin: 0; padding: 0; }
[data-area="music"] :where(.layout) :where(button, input, select, textarea) { font: inherit; color: inherit; }
[data-area="music"] ::selection { background: var(--lit); color: var(--ink); }
[data-area="music"] :where(:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 0.25rem; }

/* The page is at least a screen tall, so a short one ends in its footer rather than in
   a band of bare paper under it. NOT `overflow-x: clip`: nothing here may be wider than
   a phone, and clipping would hide the fault from check:read-layout instead of fixing it. */
body[data-area="music"] { display: flex; flex-direction: column; min-height: 100vh; }
[data-area="music"] .layout { flex: 1 0 auto; background: transparent; padding: 0; }

[data-area="music"] .visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
[data-area="music"] .mu-ic { display: block; width: 1.1em; height: 1.1em; flex: none; }

/* The theme draws EVERY form as a centred 34rem card with a shadow (_form-container.scss),
   which boxed the search and the sort here. A form on this site is drawn by its own
   component, or not at all. */
[data-area="music"] .layout form {
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

/* ═══ 3. LAYOUT ════════════════════════════════════════════════════════════════ */

[data-area="music"] .mu-wrap,
[data-area="music"] .lib-wrap {
  width: 100%;
  max-width: 76rem;
  margin-inline: auto;
  padding-inline: 1rem;      /* a 16px gutter on a phone */
}
[data-area="music"] .lib-wrap--text { max-width: 48rem; }
@media (min-width: 48rem) {
  [data-area="music"] .mu-wrap,
  [data-area="music"] .lib-wrap { padding-inline: 2rem; }
}

[data-area="music"] .mu-eyebrow {
  margin: 0 0 0.6rem;
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
[data-area="music"] .mu-eyebrow a { color: inherit; text-decoration: none; }
[data-area="music"] .mu-eyebrow a:hover { text-decoration: underline; }

/* ═══ 4. HEADER AND 5. FOOTER ══════════════════════════════════════════════════
   The shared header, notice row and footer of every Gong Logic site since phase C (2026-11-16):
   .gl-head, .gl-notice and .gl-foot in static/family/family.css. The navy band and
   the stave under it went with the site's own system. */
/* The music site's current place, in the header's second row, is set in its blue ink on the shared
   wash (family.css); the underline in that blue belongs to the Music tab of the site bar above it now
   (2026-11-16). On a 360px phone "Sign in" gives up a little room. */
[data-area="music"] .gl-head .mh__link[aria-current] { color: var(--accent-ink); }
@media (max-width: 23rem) {
  [data-area="music"] .gl-head .mh__signin { padding-inline: 6px; }
}
[data-area="music"] .gl-foot { margin-top: 3rem; }
[data-area="music"] .mu-notice__msg { color: var(--ink); }
[data-area="music"] .mu-notice__dev { margin-left: auto; }

/* ═══ 6. COMPONENTS ════════════════════════════════════════════════════════════
   Buttons and tags. `.button` is the name the SHARED forum templates use (and the
   framework's form actions are given); `.mu-btn` is this site's own. Same drawing. */

[data-area="music"] .mu-btn,
[data-area="music"] .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.5rem;
  padding: 0.5rem 1.1rem;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
[data-area="music"] .mu-btn--ink,
[data-area="music"] .button--primary {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
[data-area="music"] .mu-btn--ink:hover,
[data-area="music"] .button--primary:hover { background: var(--brand); border-color: var(--brand); color: var(--paper); }
[data-area="music"] .mu-btn--quiet,
[data-area="music"] .button--quiet {
  background: transparent;
  border-color: var(--rule-2);
  color: var(--ink);
}
[data-area="music"] .mu-btn--quiet:hover,
[data-area="music"] .button--quiet:hover { background: var(--surface); border-color: var(--ink-3); color: var(--ink); }

[data-area="music"] .tag {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.5rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 999px;
  background: var(--brand-wash);
  color: var(--brand);
  vertical-align: middle;
}
[data-area="music"] .tag--course { background: var(--accent); color: var(--on-accent); }
[data-area="music"] .cm-tag--warn { background: var(--bad-wash); color: var(--bad); }

/* A piece's facts: key, metre, tempo, length. Small caps of the engraver's ink. */
[data-area="music"] .mu-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; margin: 0; }
[data-area="music"] .mu-tag {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3rem;
  padding: 0.15rem 0.5rem;
  font-size: 0.74rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
  background: var(--surface-2);
  border-radius: var(--r-s);
  white-space: nowrap;
}
[data-area="music"] .mu-tag__label { color: var(--ink-3); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; }

[data-area="music"] .ticks { display: grid; gap: 0.5rem; }
[data-area="music"] .ticks li { position: relative; padding-left: 1.4rem; line-height: 1.5; color: var(--ink-2); }
[data-area="music"] .ticks li::before {
  content: '';
  position: absolute;
  left: 0.15rem;
  top: 0.5rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--brand);
}
[data-area="music"] .library-note {
  margin: 0 0 1rem;
  padding: 0.8rem 1rem;
  border-radius: var(--r);
  background: var(--brand-wash);
  color: var(--ink);
  line-height: 1.55;
}
[data-area="music"] .library-fineprint { margin-top: 1rem; font-size: 0.86rem; line-height: 1.55; color: var(--ink-3); }
[data-area="music"] .library-empty { color: var(--ink-2); }

/* ═══ 7. THE FRONT PAGE AND EACH INSTRUMENT'S SHELF ═══════════════════════════ */

[data-area="music"] .mu-hero { padding-block: 2rem 1.5rem; }
@media (min-width: 48rem) {
  [data-area="music"] .mu-hero { padding-block: 3.25rem 2.25rem; }
}
[data-area="music"] .mu-hero__inner { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 64rem) {
  [data-area="music"] .mu-hero__inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 3rem; }
}
/* Grid children: without min-width 0 a long word or a wide child sets the column's
   minimum, and a phone scrolls sideways. */
[data-area="music"] .mu-hero__text,
[data-area="music"] .mu-results,
[data-area="music"] .mu-together__text { min-width: 0; }

[data-area="music"] .mu-hero__title {
  font-family: var(--display);
  font-size: clamp(2.1rem, 1.3rem + 3.6vw, 3.9rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
[data-area="music"] .mu-hero__title em { font-style: italic; color: var(--accent-ink); }
[data-area="music"] .mu-hero__lede { margin-top: 1rem; max-width: 36rem; font-size: 1.05rem; line-height: 1.6; color: var(--ink-2); }

[data-area="music"] .mu-stats { display: flex; flex-wrap: wrap; gap: 0.75rem 2.25rem; margin: 1.5rem 0 0; }
[data-area="music"] .mu-stats__item { display: flex; flex-direction: column-reverse; }
[data-area="music"] .mu-stats dt { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
[data-area="music"] .mu-stats dd {
  margin: 0;
  font-family: var(--display);
  font-size: 2.1rem;
  font-weight: 600;
  line-height: 1.1;
  font-variant-numeric: lining-nums;
}

/*
 * The hero's notation PLAYS: bars 3–6 of the Arabesque, engraved by VexFlow on a stack of score
 * pages, with a playhead, lit notes and a keyboard (Includes/MusicHeroArt.ss, generated by
 * tools/music-hero.mjs; it replaced banner.svg, "a boring bar of music", 2026-10-25). On a phone
 * it sits under the words.
 */
[data-area="music"] .mu-hero__art { display: flex; align-items: center; justify-content: center; }
/* The hero art (Includes/MusicHeroArt.ss, tools/music-hero.mjs): a stack of score pages whose front
   one plays. The pages are paper in both schemes, as the score on a piece page is: a printed page. */
[data-area="music"] .mu-hero__art .ha { display: block; width: 100%; max-width: 38rem; height: auto; overflow: visible; --ha-ink: #1c1f27; }
[data-area="music"] .ha .ha-back rect { fill: #f3efe6; stroke: rgba(28, 31, 39, 0.12); stroke-width: 1; }
[data-area="music"] .ha .ha-page { fill: #fffdf8; stroke: rgba(28, 31, 39, 0.1); stroke-width: 1; filter: drop-shadow(0 10px 18px rgba(14, 19, 32, 0.18)); }
[data-area="music"] .ha .ha-title { font-family: var(--display); font-size: 17px; font-weight: 600; fill: #1c1f27; }
[data-area="music"] .ha .ha-by { font-family: Inter, system-ui, sans-serif; font-size: 9.5px; fill: #5d6170; }
[data-area="music"] .ha .ha-score { color: var(--ha-ink); fill: currentColor; stroke: currentColor; }
[data-area="music"] .ha .ha-score .vf-stave, [data-area="music"] .ha .ha-score .vf-stavebarline { color: #8d92a0; }
[data-area="music"] .ha .ha-n { color: var(--ha-ink); }
[data-area="music"] .ha .ha-head { fill: var(--accent); opacity: 0; }
[data-area="music"] .ha .ha-key { fill: #fffdf8; stroke: #bdb6a8; stroke-width: 0.8; }
[data-area="music"] .ha .ha-key--black { fill: #1c1f27; stroke: none; }
[data-area="music"] .ha .ha-press { fill: var(--accent); }
:root[data-scheme="dark"] [data-area="music"] .ha .ha-back rect { fill: #d9d4c8; }
:root[data-scheme="dark"] [data-area="music"] .ha .ha-page { filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.55)); }


/* The trail, on the shelves and the piece pages. */
[data-area="music"] .sm-crumbs { padding-block: 0.25rem 0.5rem; font-size: 0.85rem; }
[data-area="music"] .sm-crumbs__list { display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; }
[data-area="music"] .sm-crumbs__item { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--ink-3); }
[data-area="music"] .sm-crumbs__item + .sm-crumbs__item::before { content: '/'; color: var(--ink-3); opacity: 0.6; }
[data-area="music"] .sm-crumbs__link { color: var(--ink-2); text-decoration: none; }
[data-area="music"] .sm-crumbs__link:hover { color: var(--brand); text-decoration: underline; }
[data-area="music"] .sm-crumbs__current { color: var(--ink); font-weight: 500; }

/* ── Browse: the filters beside the pieces on a wide screen, above them on a phone ── */

[data-area="music"] .mu-browse { padding-block: 0.75rem 2.5rem; }
[data-area="music"] .mu-browse__grid { display: grid; gap: 1.25rem; align-items: start; }
@media (min-width: 64rem) {
  [data-area="music"] .mu-browse__grid { grid-template-columns: 15.5rem minmax(0, 1fr); gap: 2.5rem; }
  [data-area="music"] .mu-filters { position: sticky; top: 1rem; }
}

[data-area="music"] .mu-filters__panel {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-l);
}
[data-area="music"] .mu-filters__toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  list-style: none;
}
[data-area="music"] .mu-filters__toggle::-webkit-details-marker { display: none; }
[data-area="music"] .mu-filters__toggle::after {
  content: '';
  margin-left: auto;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid var(--ink-3);
  border-bottom: 2px solid var(--ink-3);
  transform: rotate(45deg) translateY(-2px);
}
[data-area="music"] .mu-filters__panel[open] > .mu-filters__toggle::after { transform: rotate(-135deg) translateY(-2px); }
@media (min-width: 64rem) {
  /* Always open on a wide screen: the summary is a phone's affordance. */
  [data-area="music"] .mu-filters__toggle { display: none; }
}
[data-area="music"] .mu-filters__badge {
  display: inline-grid;
  place-items: center;
  min-width: 1.3rem;
  height: 1.3rem;
  padding: 0 0.3rem;
  font-size: 0.72rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
}
[data-area="music"] .mu-filters__body { display: grid; gap: 1.25rem; padding: 0 1rem 1rem; }
/* FOLDED FROM THE FIRST PAINT on a phone. The panel is rendered open (see the template) and
   music.js folds it; once the page lost 550 KB (2026-11-14) it painted before music.js ran,
   and the grid jumped 1,000 px up as the panel folded: CLS 0.15 on a slow phone. While a
   script is running (the head script sets data-scheme) and music.js has not yet marked the
   panel, its body is not drawn: the folded look, with no jump. With no script at all the
   rule does not apply and the panel is open, as before. */
@media (max-width: 63.99rem) {
  :root[data-scheme] [data-area="music"] .mu-filters__panel:not([data-folded]) > .mu-filters__body { display: none; }
  :root[data-scheme] [data-area="music"] .mu-filters__panel:not([data-folded]) > .mu-filters__toggle::after { transform: rotate(45deg) translateY(-2px); }
}
@media (min-width: 64rem) {
  [data-area="music"] .mu-filters__body { padding-top: 1rem; }
}
[data-area="music"] .mu-filters__clear { font-size: 0.86rem; color: var(--accent-ink); text-decoration: underline; }
[data-area="music"] .mu-filters__clear:hover { color: var(--ink); }

[data-area="music"] .mu-search { display: grid; gap: 0.5rem; }
[data-area="music"] .mu-search__box { position: relative; }
[data-area="music"] .mu-search__input {
  width: 100%;
  min-height: 2.6rem;
  padding: 0.5rem 2.4rem 0.5rem 0.8rem;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule-2);
  border-radius: var(--r);
}
[data-area="music"] .mu-search__input:hover { border-color: var(--ink-3); }
[data-area="music"] .mu-search__input:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: var(--brand); }
[data-area="music"] .mu-search__input::placeholder { color: var(--ink-3); }
[data-area="music"] .mu-search__kbd {
  position: absolute;
  right: 0.55rem;
  top: 50%;
  translate: 0 -50%;
  display: inline-grid;
  place-items: center;
  min-width: 1.35rem;
  height: 1.35rem;
  font: 600 0.72rem/1 var(--sans);
  color: var(--ink-3);
  border: 1px solid var(--rule-2);
  border-radius: 0.25rem;
  pointer-events: none;
}
[data-area="music"] .mu-search__input:focus ~ .mu-search__kbd,
[data-area="music"] .mu-search__input:not(:placeholder-shown) ~ .mu-search__kbd { visibility: hidden; }
@media (hover: none) {
  [data-area="music"] .mu-search__kbd { display: none; }
}
[data-area="music"] .mu-search__go { justify-self: start; }

[data-area="music"] .mu-facet { display: grid; gap: 0.1rem; }
[data-area="music"] .mu-facet__title {
  display: block;
  margin: 0 0 0.4rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
[data-area="music"] .mu-facet__list { display: grid; gap: 1px; }
[data-area="music"] .mu-facet__list--long { max-height: 22rem; overflow-y: auto; overscroll-behavior: contain; }
[data-area="music"] .mu-facet__option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.1rem;
  padding: 0.3rem 0.6rem;
  font-size: 0.9rem;
  color: var(--ink-2);
  text-decoration: none;
  border-radius: var(--r-s);
  border-left: 2px solid transparent;
}
[data-area="music"] .mu-facet__option:hover { background: var(--surface-2); color: var(--ink); }
[data-area="music"] .mu-facet__option[aria-current] {
  background: var(--brand-wash);
  color: var(--ink);
  border-left-color: var(--accent);
}
[data-area="music"] .mu-facet__option.is-empty { color: var(--ink-3); }
[data-area="music"] .mu-facet__count { font-size: 0.78rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* ── The bar over the pieces: how many, and the order ── */

[data-area="music"] .mu-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding-bottom: 0.85rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
}
[data-area="music"] .mu-count { font-family: var(--display); font-size: 1.35rem; font-weight: 600; }
[data-area="music"] .mu-sort { display: flex; align-items: center; gap: 0.5rem; }
[data-area="music"] .mu-sort__label { font-size: 0.85rem; color: var(--ink-3); }
[data-area="music"] .mu-sort__select {
  min-height: 2.25rem;
  padding: 0.3rem 0.6rem;
  font-size: 0.9rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--rule-2);
  border-radius: var(--r-s);
}
[data-area="music"] .mu-sort__select:hover { border-color: var(--ink-3); }
/* The button is for a page with no script; music.js flags the form when it takes over. */
[data-area="music"] .mu-sort[data-js] .mu-sort__go { display: none; }
[data-area="music"] .mu-sort__go { min-height: 2.25rem; padding-block: 0.3rem; }

[data-area="music"] .mu-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin: 0 0 1rem; }
[data-area="music"] .mu-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0.2rem 0.15rem 0.65rem;
  font-size: 0.84rem;
  background: var(--brand-wash);
  border-radius: 999px;
}
[data-area="music"] .mu-chip__label { color: var(--ink-3); }
[data-area="music"] .mu-chip__value { font-weight: 600; }
[data-area="music"] .mu-chip__remove {
  display: inline-grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  font-size: 1.05rem;
  line-height: 1;
  color: var(--ink-2);
  text-decoration: none;
  border-radius: 50%;
}
[data-area="music"] .mu-chip__remove:hover { background: var(--surface); color: var(--accent-ink); }
[data-area="music"] .mu-chips__clear { font-size: 0.84rem; color: var(--accent-ink); }
[data-area="music"] .mu-chips__clear:hover { color: var(--ink); }

/* ── A piece: a page of score ── */

[data-area="music"] .mu-pieces {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 14.5rem), 1fr));
  gap: 1.1rem;
}
[data-area="music"] .mu-piece {
  --edge: var(--inst-other);
  display: flex;
  flex-direction: column;
  min-width: 0;
}
[data-area="music"] .mu-piece[data-instrument="solo-piano"] { --edge: var(--inst-piano); }
[data-area="music"] .mu-piece[data-instrument="guitar"] { --edge: var(--inst-guitar); }
[data-area="music"] .mu-piece[data-instrument="voice-piano"] { --edge: var(--inst-voice); }
[data-area="music"] .mu-piece__link {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--edge);
  border-radius: var(--r-s) var(--r-l) var(--r-l) var(--r-s);
  box-shadow: var(--shadow-1);
  overflow: hidden;
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}
[data-area="music"] .mu-piece__link:hover { box-shadow: var(--shadow-2); border-color: var(--rule-2); border-left-color: var(--edge); }
/* A card off screen is not laid out or painted until it nears the screen: the front page draws 143
   engraved incipits (about 5,000 SVG nodes), and on a slow phone painting them cost 1.3 s against
   0.03 s contained (trace, 2026-11-13). On the link, which already clips its contents and keeps its
   own shadow, so nothing looks different. `auto` remembers each card's real height once drawn. */
[data-area="music"] .mu-piece__link { content-visibility: auto; contain-intrinsic-block-size: auto 13rem; }
[data-area="music"] .mu-piece__staff {
  position: relative;
  display: block;
  padding: 0.85rem 0.9rem 0.5rem;
  border-bottom: 1px solid var(--rule);
}
/* The opening bars, engraved server-side (Incipit, with MusicGlyphs' Bravura outlines).
   Every part is painted from the ink tokens, so the notation is the page's own ink in
   either scheme; the stave is drawn lighter than the notes, as an engraver would. */
[data-area="music"] .sm-incipit { display: block; width: 100%; height: 5.25rem; color: var(--ink); object-fit: contain; }
/* On the grid the opening bars are an <img> of a file (Incipit::document), drawn in the light
   scheme's ink because an image cannot read these tokens. Dark turns that ink light: inverted,
   then turned back round the colour wheel so the blue-black becomes this scheme's blue-white. */
:root[data-scheme="dark"] body[data-area="music"] img.sm-incipit { filter: invert(1) hue-rotate(180deg); }
[data-area="music"] .sm-incipit__staff,
[data-area="music"] .sm-incipit__ledger { stroke: var(--ink); stroke-width: 0.7; opacity: 0.4; }
[data-area="music"] .sm-incipit__glyph { fill: var(--ink); }
[data-area="music"] .sm-incipit__stem { stroke: var(--ink); stroke-width: 0.9; }
[data-area="music"] .mu-piece__play {
  position: absolute;
  right: 0.6rem;
  bottom: 0.5rem;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  color: var(--on-accent);
  background: var(--accent);
  border-radius: 50%;
  box-shadow: var(--shadow-1);
  opacity: 0;
  transition: opacity 0.18s ease;
}
[data-area="music"] .mu-piece__play svg { width: 0.95rem; height: 0.95rem; }
/* The grid's badge is an empty span (it is repeated on every card) and its triangle is drawn
   here, the same shape as the 16-unit icon it replaced: M5 3.2 v9.6 L13 8. */
[data-area="music"] .mu-piece__play:empty::before {
  content: "";
  width: 0.95rem;
  height: 0.95rem;
  background: currentColor;
  clip-path: polygon(31.25% 20%, 31.25% 80%, 81.25% 50%);
}
[data-area="music"] .mu-piece__link:hover .mu-piece__play,
[data-area="music"] .mu-piece__link:focus-visible .mu-piece__play { opacity: 1; }
@media (hover: none) {
  [data-area="music"] .mu-piece__play { opacity: 1; }
}
[data-area="music"] .mu-piece__text { display: flex; flex-direction: column; gap: 0.2rem; padding: 0.75rem 0.9rem 0.9rem; flex: 1 1 auto; }
[data-area="music"] .mu-piece__inst {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--edge);
}
[data-area="music"] .mu-piece__title {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
[data-area="music"] .mu-piece__by { font-size: 0.86rem; color: var(--ink-2); margin-bottom: 0.45rem; }
[data-area="music"] .mu-piece__text .mu-tags { margin-top: auto; }
/* One row: "More by …" leads (it goes further INTO the catalogue) and gives way with an
   ellipsis; the two provenance links keep their width on the right. */
[data-area="music"] .mu-piece__more {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.45rem 0.25rem 0;
  font-size: 0.8rem;
  white-space: nowrap;
}
[data-area="music"] .mu-piece__composer { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
[data-area="music"] .mu-piece__sources { display: inline-flex; gap: 0.75rem; flex: none; margin-left: auto; }
[data-area="music"] .mu-piece__more a { color: var(--ink-3); text-decoration: none; }
[data-area="music"] .mu-piece__more a:hover { color: var(--brand); text-decoration: underline; }

[data-area="music"] .mu-empty { padding: 2rem 0; display: grid; gap: 0.75rem; color: var(--ink-2); max-width: 36rem; }
[data-area="music"] .mu-empty__lead { font-family: var(--display); font-size: 1.4rem; color: var(--ink); }

[data-area="music"] .mu-about {
  margin-top: 2.25rem;
  padding: 1.1rem 1.25rem;
  max-width: 46rem;
  border-left: 3px solid var(--brand);
  background: var(--surface);
  border-radius: 0 var(--r) var(--r) 0;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--ink-2);
}
[data-area="music"] .mu-about__title { margin-bottom: 0.35rem; font-size: 1.1rem; color: var(--ink); }
[data-area="music"] .mu-about strong { color: var(--ink); font-weight: 600; }

/* ── The forum's two doors, at the foot of the front page ── */

[data-area="music"] .mu-together { padding-block: 2.5rem; background: var(--paper-2); border-block: 1px solid var(--rule); }
[data-area="music"] .mu-together + * { margin-top: 0; }
[data-area="music"] .mu-together__inner { display: grid; gap: 1.25rem; align-items: center; }
@media (min-width: 56rem) {
  [data-area="music"] .mu-together__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 2.5rem; }
}
[data-area="music"] .mu-together__title { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem); font-weight: 500; }
[data-area="music"] .mu-together__lede { margin-top: 0.5rem; color: var(--ink-2); line-height: 1.6; max-width: 32rem; }
[data-area="music"] .mu-together__doors { display: grid; gap: 0.75rem; }
@media (min-width: 36rem) {
  [data-area="music"] .mu-together__doors { grid-template-columns: 1fr 1fr; }
}
[data-area="music"] .mu-door {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.1rem;
  color: var(--ink);
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-l);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
[data-area="music"] .mu-door:hover { border-color: var(--brand); box-shadow: var(--shadow-2); }
[data-area="music"] .mu-door__title { font-family: var(--display); font-size: 1.15rem; font-weight: 600; }
[data-area="music"] .mu-door__about { font-size: 0.88rem; color: var(--ink-2); }
/* The front page's last band runs into the footer; no gap of bare paper between. */
[data-area="music"] .layout:has(> .mu-together:last-child) + .mf { margin-top: 0; }

/* ═══ 8. ONE PIECE: the player ═════════════════════════════════════════════════
   The ids and the classes sheetmusic-viewer.js creates and toggles are unchanged;
   these rules moved here from a <style> block in the template so they have tokens. */

[data-area="music"] .mu-player { padding-block: 1rem 1rem; }
[data-area="music"] .mu-piecehead { margin: 0.5rem 0 1.25rem; }
[data-area="music"] .mu-piecehead .mu-eyebrow { margin-bottom: 0.4rem; }
[data-area="music"] .mu-piecehead__title {
  font-family: var(--display);
  font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3rem);
  font-weight: 600;
  line-height: 1.08;
  text-wrap: balance;
}
[data-area="music"] .mu-piecehead__by { margin-top: 0.4rem; font-size: 1.05rem; color: var(--ink-2); }
[data-area="music"] .mu-piecehead__by a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule-2); text-underline-offset: 3px; }
[data-area="music"] .mu-piecehead__by a:hover { color: var(--brand); text-decoration-color: currentColor; }
[data-area="music"] .mu-piecehead__work { margin-top: 0.2rem; font-size: 0.88rem; font-style: italic; color: var(--ink-3); }
[data-area="music"] .mu-piecehead .mu-tags { margin-top: 0.8rem; }

[data-area="music"] .smv-main { width: 100%; min-width: 0; }

/* The transport: sticks to the top of the screen as the score scrolls. */
[data-area="music"] .smp-toolbar {
  position: sticky;
  top: 0.5rem;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1rem;
  margin-bottom: 1.4rem;
  padding: 0.6rem 0.75rem;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border: 1px solid var(--rule);
  border-radius: var(--r-l);
  box-shadow: var(--shadow-2);
}
[data-area="music"] .smp-step { display: flex; align-items: center; gap: 0.35rem; min-width: 0; }
[data-area="music"] .smp-step__back,
[data-area="music"] .smp-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  min-height: 2.25rem;
  min-width: 2.25rem;
  padding: 0 0.65rem;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1;
  color: var(--ink-2);
  text-decoration: none;
  background: transparent;
  border: 1px solid var(--rule-2);
  border-radius: 999px;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
[data-area="music"] .smp-step__back { overflow: hidden; text-overflow: ellipsis; max-width: 12rem; }
[data-area="music"] .smp-step__back:hover,
[data-area="music"] a.smp-nav:hover { color: var(--ink); background: var(--surface-2); border-color: var(--ink-3); }
[data-area="music"] .smp-nav > span[aria-hidden] { font-size: 1.15rem; }
[data-area="music"] .smp-nav.is-disabled { opacity: 0.35; pointer-events: none; }
[data-area="music"] .smp-actions { display: flex; align-items: center; gap: 0.5rem; }

/* Play: the one red thing on the page, because it is the one thing to press. */
[data-area="music"] .smp-play {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.5rem;
  padding: 0 1.15rem;
  font: 600 0.95rem/1 var(--sans);
  white-space: nowrap;
  color: var(--on-accent);
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
[data-area="music"] .smp-play:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
[data-area="music"] .smp-play:disabled { opacity: 0.5; cursor: default; }
[data-area="music"] .smp-play.playing { background: var(--ink); border-color: var(--ink); color: var(--paper); }

[data-area="music"] .smp-zoom {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--rule-2);
  border-radius: 999px;
  overflow: hidden;
}
[data-area="music"] .smp-zoom__btn {
  min-width: 2.2rem;
  padding: 0 0.5rem;
  font: 600 1rem/1 var(--sans);
  color: var(--ink-2);
  background: transparent;
  border: 0;
  cursor: pointer;
}
[data-area="music"] .smp-zoom__btn:hover { background: var(--surface-2); color: var(--ink); }
[data-area="music"] .smp-zoom__pct {
  display: inline-grid;
  place-items: center;
  min-width: 3rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  border-inline: 1px solid var(--rule);
}
[data-area="music"] .smp-download {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.25rem;
  padding: 0 0.85rem;
  font: 600 0.85rem/1 var(--sans);
  color: var(--ink-2);
  background: transparent;
  border: 1px solid var(--rule-2);
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}
[data-area="music"] .smp-download:hover { color: var(--ink); background: var(--surface-2); border-color: var(--ink-3); }
[data-area="music"] .smp-download:disabled { opacity: 0.55; cursor: default; }
/* On the narrowest phones the arrow alone says "download"; the word goes first. */
@media (max-width: 24rem) {
  [data-area="music"] .smp-download__label { display: none; }
}

/* The position, and seeking. */
[data-area="music"] .smp-progress { flex-basis: 100%; display: flex; align-items: center; gap: 0.6rem; }
[data-area="music"] .smp-progress__time { flex: none; min-width: 2.6em; font-size: 0.74rem; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--ink-3); }
[data-area="music"] .smp-progress__time--tot { text-align: right; }
[data-area="music"] .smp-progress__track {
  position: relative;
  flex: 1 1 auto;
  height: 6px;
  border-radius: 999px;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--rule);
  cursor: pointer;
  touch-action: none;
}
[data-area="music"] .smp-progress__fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 999px; background: var(--accent); }
[data-area="music"] .smp-progress__knob {
  position: absolute;
  top: 50%;
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  translate: -50% -50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 0.15s ease;
}
[data-area="music"] .smp-progress__track:hover .smp-progress__knob,
[data-area="music"] .smp-progress.is-playing .smp-progress__knob,
[data-area="music"] .smp-progress.is-seeking .smp-progress__knob { opacity: 1; }
[data-area="music"] .smp-progress.is-seeking .smp-progress__track { cursor: grabbing; }

/* The beat: a small metronome that pulses while playing. */
[data-area="music"] .smp-beat { display: none; align-items: center; gap: 5px; }
[data-area="music"] .smp-beat.is-active { display: inline-flex; }
[data-area="music"] .smp-beat__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rule-2); transition: background-color 0.12s ease; }
[data-area="music"] .smp-beat__dot.is-down { width: 10px; height: 10px; }
[data-area="music"] .smp-beat__dot.is-on { background: var(--accent); }
[data-area="music"] .smp-beat__dot.pulse { animation: mu-beat 0.3s ease-out; }
@keyframes mu-beat { 0% { scale: 1.75; } 100% { scale: 1; } }
@media (prefers-reduced-motion: reduce) {
  [data-area="music"] .smp-beat__dot.pulse { animation: none; }
}

/* The desk and its pages. White in both schemes: a score is a printed page. */
[data-area="music"] .smp-desk { display: flex; justify-content: center; }
[data-area="music"] .smp-stage { position: relative; width: 100%; min-height: 60vh; }
[data-area="music"] .smp-pages { display: flex; flex-direction: column; align-items: center; gap: 1.6rem; transition: opacity 0.25s ease; }
[data-area="music"] .smp-pages.loading { opacity: 0.25; }
[data-area="music"] .smp-page {
  width: 100%;
  max-width: 820px;
  background: #ffffff;
  border: 1px solid var(--rule);
  border-radius: 3px;
  box-shadow: var(--shadow-3);
  overflow: hidden;
}
[data-area="music"] .smp-page svg { display: block; width: 100%; height: auto; }
[data-area="music"] .smp-page .sm-active * { fill: #c0392b !important; stroke: #c0392b !important; }

@keyframes mu-spin { to { rotate: 360deg; } }
[data-area="music"] .sm-spinner {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 3px solid var(--rule);
  border-top-color: var(--accent);
  animation: mu-spin 0.7s linear infinite;
}
[data-area="music"] .smp-boot {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  font-size: 0.88rem;
  color: var(--ink-3);
  background: var(--paper);
  transition: opacity 0.35s ease;
}
[data-area="music"] .smp-boot.hidden { opacity: 0; pointer-events: none; }
[data-area="music"] .pane-loading {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--paper) 60%, transparent);
  transition: opacity 0.3s ease;
}
[data-area="music"] .pane-loading.hidden { opacity: 0; pointer-events: none; }

[data-area="music"] .smp-attrib {
  max-width: 820px;
  margin: 1.6rem auto 0;
  padding: 0.9rem 1.1rem;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-l);
}
[data-area="music"] .smp-wip-badge {
  display: inline-block;
  margin-right: 0.45rem;
  padding: 0.1rem 0.5rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: var(--accent-wash);
  border-radius: 999px;
}
[data-area="music"] .smp-wip a { font-weight: 600; }
[data-area="music"] .smp-src { margin-top: 0.55rem; font-size: 0.78rem; color: var(--ink-3); }
[data-area="music"] .smp-src:empty { display: none; }

/* Where to go next. */
[data-area="music"] .smv-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; margin-top: 2.2rem; }
[data-area="music"] .smv-foot__step {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.85rem 1rem;
  color: var(--ink);
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-l);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
[data-area="music"] a.smv-foot__step:hover { border-color: var(--brand); box-shadow: var(--shadow-2); }
[data-area="music"] .smv-foot__step.is-empty { background: none; border-color: transparent; }
[data-area="music"] .smv-foot__step--prev { text-align: left; }
[data-area="music"] .smv-foot__step--next { text-align: right; }
[data-area="music"] .smv-foot__dir { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
[data-area="music"] .smv-foot__title { font-family: var(--display); font-size: 1.1rem; font-weight: 600; line-height: 1.2; }
[data-area="music"] .smv-foot__by { font-size: 0.8rem; color: var(--ink-3); }
[data-area="music"] .smv-more {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 1.1rem;
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--rule);
  font-size: 0.88rem;
}
[data-area="music"] .smv-more a { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--rule-2); text-underline-offset: 3px; }
[data-area="music"] .smv-more a:hover { color: var(--brand); text-decoration-color: currentColor; }
[data-area="music"] .smv-more .smv-more__primary { color: var(--ink); font-weight: 600; }
[data-area="music"] .smv-more .smv-more__primary:hover { color: var(--brand); }

@media (max-width: 40rem) {
  [data-area="music"] .smv-foot { grid-template-columns: 1fr; }
  [data-area="music"] .smv-foot__step--next { text-align: left; }
  [data-area="music"] .smv-foot__step.is-empty { display: none; }
}
@media (max-width: 48rem) {
  [data-area="music"] .smp-nav__label { display: none; }
  [data-area="music"] .smp-pages { gap: 1rem; }
  [data-area="music"] .smp-toolbar { justify-content: center; }
}

/* ═══ 9. THE FORUM, FEEDBACK AND ACCOUNT PAGES ════════════════════════════════
   Their markup is SHARED with the library (ForumPages, FeedbackPages — one forum,
   two sites; see CommunityArea), so the class names are the ones those templates
   were written with. This section is how the music site draws them; library.css and
   community.css are not loaded here. */

[data-area="music"] .masthead { padding-block: 2rem 1.5rem; border-bottom: 1px solid var(--rule); }
/* The forum's pages are all "slim" heads in the library's terms; here that is the head. */
[data-area="music"] .masthead--slim { background: var(--paper); }
@media (min-width: 48rem) {
  [data-area="music"] .masthead { padding-block: 2.75rem 2rem; }
}
[data-area="music"] .masthead__eyebrow {
  margin-bottom: 0.5rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
[data-area="music"] .masthead__title {
  font-family: var(--display);
  font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.9rem);
  font-weight: 600;
  line-height: 1.08;
  overflow-wrap: anywhere;
}
[data-area="music"] .masthead__lede { margin-top: 0.75rem; max-width: 40rem; font-size: 1.02rem; line-height: 1.6; color: var(--ink-2); }
[data-area="music"] .masthead__lede .tag { margin-right: 0.35rem; }
[data-area="music"] .cm-crumb { color: inherit; text-decoration: none; }
[data-area="music"] .cm-crumb:hover { text-decoration: underline; }

[data-area="music"] .lib-section { padding-block: 2rem; }
[data-area="music"] .lib-section--tight { padding-block: 1.5rem 2rem; }
[data-area="music"] .lib-section--band { background: var(--paper-2); border-block: 1px solid var(--rule); }
[data-area="music"] .section-head { margin: 0 0 1rem; }
[data-area="music"] .section-head--row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 0.75rem 1rem; }
[data-area="music"] .section-head__title { font-family: var(--display); font-size: 1.45rem; font-weight: 600; }
[data-area="music"] .section-head__note { margin-top: 0.3rem; color: var(--ink-2); font-size: 0.92rem; }

[data-area="music"] .cm-status { margin: 1.25rem 0 0; }
[data-area="music"] .cm-staff { font-size: 0.9rem; }
[data-area="music"] .cm-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0.75rem 0 0; }

/* The sections: four cards, each a door. */
[data-area="music"] .cm-sections { display: grid; gap: 0.85rem; }
@media (min-width: 48rem) {
  [data-area="music"] .cm-sections { grid-template-columns: 1fr 1fr; }
}
[data-area="music"] .cm-section { display: flex; }
[data-area="music"] .cm-section__link {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.1rem 1.2rem;
  color: var(--ink);
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--brand);
  border-radius: var(--r-l);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
[data-area="music"] .cm-section__link:hover { box-shadow: var(--shadow-2); border-color: var(--rule-2); border-top-color: var(--accent); }
[data-area="music"] .cm-section__title { font-family: var(--display); font-size: 1.3rem; font-weight: 600; }
[data-area="music"] .cm-section__title .tag { margin-left: 0.35rem; }
[data-area="music"] .cm-section__about { color: var(--ink-2); font-size: 0.93rem; line-height: 1.55; }
[data-area="music"] .cm-section__counts { margin-top: auto; padding-top: 0.35rem; font-size: 0.8rem; color: var(--ink-3); }
[data-area="music"] .cm-section__latest { font-size: 0.86rem; color: var(--ink-2); }

/* Topics: a list of rows on one sheet. */
[data-area="music"] .cm-topics { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-l); overflow: hidden; }
[data-area="music"] .cm-topic + .cm-topic { border-top: 1px solid var(--rule); }
[data-area="music"] .cm-topic__link {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.9rem 1.1rem;
  color: var(--ink);
  text-decoration: none;
  background: transparent;
  transition: background-color 0.15s ease;
}
[data-area="music"] .cm-topic__link:hover { background: var(--surface-2); }
[data-area="music"] .cm-topic__title { font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
[data-area="music"] .cm-topic__title .tag { margin-right: 0.3rem; }
[data-area="music"] .cm-topic__meta { font-size: 0.82rem; color: var(--ink-3); }
[data-area="music"] .cm-topic--hidden .cm-topic__title { color: var(--ink-3); }
[data-area="music"] .cm-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.75rem; margin-top: 1.25rem; }
[data-area="music"] .cm-pager__where { font-size: 0.86rem; color: var(--ink-3); }

/* One topic: its posts as sheets in a column. */
[data-area="music"] .cm-topic-title { overflow-wrap: anywhere; }
[data-area="music"] .cm-posts { display: grid; gap: 0.85rem; }
[data-area="music"] .cm-post {
  padding: 1rem 1.15rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-l);
  scroll-margin-top: 1rem;
}
[data-area="music"] .cm-post:target { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-wash); }
[data-area="music"] .cm-post--hidden { opacity: 0.7; border-style: dashed; }
[data-area="music"] .cm-post__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.25rem 1rem; margin-bottom: 0.5rem; }
[data-area="music"] .cm-post__who { font-weight: 600; }
[data-area="music"] .cm-post__who .tag { margin-left: 0.3rem; }
[data-area="music"] .cm-post__when { display: inline-block; min-height: 24px; line-height: 24px; font-size: 0.8rem; color: var(--ink-3); text-decoration: none; }
[data-area="music"] .cm-post__when:hover { color: var(--brand); text-decoration: underline; }
[data-area="music"] .cm-post__flag { margin-bottom: 0.4rem; font-size: 0.8rem; font-weight: 600; color: var(--bad); }
[data-area="music"] .cm-post__body { line-height: 1.65; overflow-wrap: anywhere; }
[data-area="music"] .cm-post__body p + p { margin-top: 0.75rem; }
[data-area="music"] .cm-post__body a { text-decoration: underline; }
[data-area="music"] .cm-post__foot { margin-top: 0.6rem; text-align: right; }
[data-area="music"] .cm-post__report { font-size: 0.8rem; color: var(--ink-3); text-decoration: none; }
[data-area="music"] .cm-post__report:hover { color: var(--bad); text-decoration: underline; }
[data-area="music"] .cm-reply { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); }
[data-area="music"] .cm-reply .section-head__title { margin-bottom: 0.75rem; }
[data-area="music"] .cm-quote { margin: 0 0 1.25rem; padding: 0.9rem 1.1rem; background: var(--surface); border-left: 3px solid var(--rule-2); border-radius: 0 var(--r) var(--r) 0; }
[data-area="music"] .cm-quote .cm-post__who { margin-bottom: 0.35rem; }

/* The form beside what to know before sending it. */
[data-area="music"] .cm-split { display: grid; gap: 1.5rem; }
@media (min-width: 56rem) {
  [data-area="music"] .cm-split { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
}
[data-area="music"] .cm-aside { padding: 1.1rem 1.2rem; background: var(--paper-2); border-radius: var(--r-l); }
[data-area="music"] .cm-aside .section-head__title { font-size: 1.2rem; margin-bottom: 0.75rem; }

/* Silverstripe's form markup, drawn as this site's. */
/* A form keeps a readable measure beside its aside; the wide one fills a text column. */
[data-area="music"] .cm-form { max-width: 40rem; }
[data-area="music"] .cm-form--wide { max-width: none; }
[data-area="music"] .cm-form form { display: grid; gap: 1rem; padding: 1.2rem; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-l); }
[data-area="music"] .cm-form fieldset { display: grid; gap: 1rem; margin: 0; padding: 0; border: 0; min-width: 0; }
[data-area="music"] .cm-form .field { display: grid; gap: 0.35rem; margin: 0; min-width: 0; }
[data-area="music"] .cm-form .field > label,
[data-area="music"] .cm-form .field legend,
[data-area="music"] .cm-form .field .left { font-size: 0.9rem; font-weight: 600; color: var(--ink); padding: 0; }
[data-area="music"] .cm-form .middleColumn { min-width: 0; }
[data-area="music"] .cm-form .field input[type=text],
[data-area="music"] .cm-form .field input[type=email],
[data-area="music"] .cm-form .field input[type=password],
[data-area="music"] .cm-form .field textarea {
  display: block;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.6rem 0.8rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule-2);
  border-radius: var(--r);
  box-shadow: none;
}
[data-area="music"] .cm-form textarea { min-height: 8rem; resize: vertical; }
/* Written with `.field` so they outrank the theme's `form fieldset .field input:hover`
   (0,3,3), which would otherwise paint its own grey border and focus ring. */
[data-area="music"] .cm-form .field input:hover,
[data-area="music"] .cm-form .field textarea:hover { border-color: var(--ink-3); }
[data-area="music"] .cm-form .field input:focus,
[data-area="music"] .cm-form .field textarea:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: var(--brand); box-shadow: none; }
[data-area="music"] .cm-form .description { font-size: 0.82rem; color: var(--ink-3); line-height: 1.5; }
[data-area="music"] .cm-form .checkbox { display: flex; align-items: center; gap: 0.5rem; }
[data-area="music"] .cm-form .checkbox label { font-weight: 500; font-size: 0.9rem; }
[data-area="music"] .cm-form .optionset ul { display: grid; gap: 0.4rem; margin: 0; padding: 0; list-style: none; }
[data-area="music"] .cm-form .optionset li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--rule);
  border-radius: var(--r);
  background: var(--paper);
}
[data-area="music"] .cm-form .optionset li:has(input:checked) { border-color: var(--brand); background: var(--brand-wash); }
[data-area="music"] .cm-form .optionset li label { font-weight: 500; font-size: 0.93rem; cursor: pointer; }
[data-area="music"] .cm-form .optionset input[type=radio] { accent-color: var(--brand); }
[data-area="music"] .cm-form form .message { margin: 0; border: 0; padding: 0.7rem 0.9rem; border-radius: var(--r); background: var(--bad-wash); color: var(--bad); font-size: 0.92rem; }
[data-area="music"] .cm-form form .message.good { background: var(--ok-wash); color: var(--ok); }
[data-area="music"] .cm-form .btn-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin: 0; padding: 0; background: none; border: 0; }
/*
 * Every submit button in a form here. The theme's is a full-width uppercase pill that
 * RISES 2px and grows a shadow on hover (`form .btn-toolbar button[type=submit]:hover:not(:disabled)`,
 * specificity 0,4,2) — a moving hover, which is what this file's hover rule forbids.
 * These are written to outrank it in both states, and the hover changes colour only.
 */
[data-area="music"] .cm-form form .btn-toolbar :is(button, input)[type=submit],
[data-area="music"] .cm-form form .btn-toolbar :is(button, input)[type=submit]:hover:not(:disabled),
[data-area="music"] .cm-form form .btn-toolbar :is(button, input)[type=submit]:active:not(:disabled) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  min-height: 2.5rem;
  padding: 0.5rem 1.2rem;
  font: 600 0.95rem/1.2 var(--sans);
  letter-spacing: 0;
  text-transform: none;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 999px;
  box-shadow: none;
  transform: none;
  cursor: pointer;
}
[data-area="music"] .cm-form form .btn-toolbar :is(button, input)[type=submit]:hover:not(:disabled) { background: var(--brand); border-color: var(--brand); }
[data-area="music"] .cm-form #ForgotPassword,
[data-area="music"] .cm-form .forgot-password { font-size: 0.86rem; }

[data-area="music"] .mu-account__row { padding-block: 1.1rem; border-bottom: 1px solid var(--rule); }
[data-area="music"] .mu-account__row .section-head__title { font-size: 1.25rem; margin-bottom: 0.4rem; }
[data-area="music"] .mu-account__row p { line-height: 1.6; color: var(--ink-2); }
[data-area="music"] .mu-account__notice { margin-top: 0.5rem; }
[data-area="music"] .mu-account__state { margin-bottom: 0.25rem; }
[data-area="music"] .mu-account__state--ok { color: var(--ok); }
[data-area="music"] .lib-section .cm-actions:last-child { margin-top: 1.25rem; }

/* WIDE ONLY — the forum's templates are shared with the library, and on a phone they
   leave a section's description and counts, and the note under "Lately", to a wider
   screen (LibraryForumController.ss, 2026-10-26). library.css defines the same rule
   for the library. */
@media (max-width: 40rem) {
  [data-area="music"] .wide-only { display: none !important; }
}

/* ═══ 10. `hidden` MEANS HIDDEN ════════════════════════════════════════════════ */

[data-area="music"] [hidden] { display: none !important; }

[data-area="music"] .mu-season {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.75rem;
  margin-block: 1rem;
  padding: 0.75rem 1rem;
  color: var(--ink);
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r);
}
[data-area="music"] .mu-season:hover { border-color: var(--ink-3); }
[data-area="music"] .mu-season__title { font-weight: 600; }
[data-area="music"] .mu-season__about { flex: 1 1 16rem; color: var(--ink-2); }
[data-area="music"] .mu-season__go { font-weight: 600; white-space: nowrap; }

/* A thumb needs 24px each way (WCAG 2.2 AA; npm run check:site-basics). The padding is taken back
   by the margin, so a link grows and nothing around it moves. */
[data-area="music"] .sm-crumbs__link,
[data-area="music"] .mu-piece__composer,
[data-area="music"] .mu-piece__sources a,
[data-area="music"] .mu-chips__clear,
[data-area="music"] .mu-filters__clear,
[data-area="music"] .cm-crumb,
[data-area="music"] .th-pager__link,
[data-area="music"] .mu-eyebrow a,
[data-area="music"] .mu-piecehead__by a,
[data-area="music"] .hb-table td a {
  display: inline-block;
  min-height: 24px;   /* the padding alone left 21px where a card's small print sets a tight line */
  padding-block: 4px;
  margin-block: -4px;
}
[data-area="music"] .smp-zoom__btn { min-height: 24px; }
[data-area="music"] .mu-search__input,
[data-area="music"] .mu-sort__select { min-height: 2.25rem; }
[data-area="music"] .field.checkbox label,
[data-area="music"] .optionset label,
[data-area="music"] .th-toggle {
  display: inline-block;
  padding-block: 4px;
}
[data-area="music"] .smv-more a,
[data-area="music"] p:not([class]) > a {
  display: inline-block;
  padding-block: 2px;
}

/* The Keyboard button is added by script once the score is drawn, and on a phone it wraps the row:
   everything under it jumped 44px (layout shift 0.135, check:site-vitals). Hold the second row. */
@media (max-width: 27rem) {
  [data-area="music"] .smp-actions { flex-wrap: wrap; align-content: flex-start; min-height: 5.25rem; }
}

/* ── THE VIDEO (Includes/MusicVideo.ss) ───────────────────────────────────────────────────
   A poster and a button until it is pressed (music.js), then YouTube's player in the same
   16:9 box, so nothing below moves when it starts. */
.mu-video { margin: 2.5rem 0 0; }
.mu-video__title { margin: 0 0 0.75rem; font-family: var(--display); font-size: 1.5rem; color: var(--ink); }
.mu-video__frame { position: relative; aspect-ratio: 16 / 9; max-width: 56rem; overflow: hidden; border-radius: var(--r); background: var(--cover); box-shadow: var(--shadow-2); }
/* The play link's own text colour sat on the dark frame at 1.5:1 (check:music-hover, 2026-11-13). */
.mu-video__play, .mu-video__play:hover, .mu-video__play:focus-visible { color: var(--on-cover, #fff); }
.mu-video__play,
.mu-video__player { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; }
.mu-video__poster { width: 100%; height: 100%; object-fit: cover; display: block; }
.mu-video__button {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; padding: 0.6rem 1.2rem;
  border-radius: 999px; background: var(--accent); color: var(--on-accent);
  font-weight: 600; white-space: nowrap; box-shadow: var(--shadow-2);
}
.mu-video__play:hover .mu-video__button,
.mu-video__play:focus-visible .mu-video__button { background: var(--accent-ink); }
.mu-video__note { margin: 0.6rem 0 0; color: var(--ink-2); font-size: 0.95rem; }

/* ── A PIECE, SAID IN WORDS, AND ITS PAID EDITIONS (2026-11-13) ────────────────────────────
   The summary under a piece's heading (MusicPieceFacts::summary): the score is drawn by script,
   so this is what a reader with no script, or an assistant, learns the piece is. */
[data-area="music"] .mu-summary { margin: 0.85rem 0 0; max-width: 46rem; font-size: 0.98rem; line-height: 1.55; color: var(--ink-2); }
/* How to practise it (2026-11-15): what is hard, bar by bar, and one checked line of background. */
[data-area="music"] .mu-practice { margin: 1rem 0 0; max-width: 46rem; padding: 0.75rem 1rem; background: var(--surface); border: 1px solid var(--rule); border-left: 3px solid var(--brand); border-radius: var(--r); }
[data-area="music"] .mu-practice__title { margin: 0 0 0.35rem; font-family: var(--display); font-size: 1.1rem; font-weight: 600; color: var(--ink); }
[data-area="music"] .mu-practice__text { margin: 0; font-size: 0.98rem; line-height: 1.55; color: var(--ink); }
[data-area="music"] .mu-practice__bg { margin: 0.5rem 0 0; font-size: 0.9rem; line-height: 1.5; color: var(--ink-2); }
[data-area="music"] .mu-practice__bg a { display: inline-flex; align-items: center; min-height: 24px; color: var(--brand); font-weight: 600; }
/* The list of every piece at this level on this instrument (2026-11-14). */
[data-area="music"] .mu-piecehead__more { margin: 0.5rem 0 0; font-size: 0.92rem; color: var(--ink-3); }
[data-area="music"] .mu-piecehead__more a { color: var(--brand); font-weight: 600; }
/* Where the lists are (by level, composer, occasion), under the pieces. */
[data-area="music"] .hb-ways { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin: 1.5rem 0 0; padding: 0; list-style: none; font-size: 0.95rem; }
/* At least 24px tall to a thumb (WCAG 2.2 target size; site-basics found 19px, 2026-11-14). */
[data-area="music"] .hb-ways a { display: inline-flex; align-items: center; min-height: 24px; color: var(--brand); font-weight: 600; }
/* Under the level filter: where the levels are explained. */
[data-area="music"] .mu-facet__note { margin: 0.35rem 0 0; padding-inline: 0.6rem; font-size: 0.85rem; }
[data-area="music"] .mu-facet__note a { display: inline-flex; align-items: center; min-height: 24px; color: var(--brand); }

/* The same work, arranged and on sale: at the top, outlined in the red pencil. */
[data-area="music"] .mu-editions--same {
  margin: 1rem 0 0;
  padding: 0.7rem 1rem;
  max-width: 46rem;
  background: var(--accent-wash);
  border: 1px solid var(--accent);
  border-radius: var(--r);
}
[data-area="music"] .mu-editions__lead { margin: 0 0 0.35rem; color: var(--ink); }
[data-area="music"] .mu-editions__list { display: flex; flex-wrap: wrap; gap: 0.35rem 1.25rem; margin: 0; padding: 0; list-style: none; }
[data-area="music"] .mu-editions__link { display: inline-block; padding-block: 4px; font-weight: 600; color: var(--accent-ink); }
[data-area="music"] .mu-editions__link:hover { color: var(--ink); }
[data-area="music"] .mu-editions__what { margin-left: 0.35rem; font-weight: 400; color: var(--ink-2); }

/* The composer's other works on sale, under the score. */
[data-area="music"] .mu-editions--composer {
  margin: 2rem 0 0;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-l);
}
[data-area="music"] .mu-editions__title { margin: 0 0 0.5rem; font-family: var(--display); font-size: 1.25rem; font-weight: 600; color: var(--ink); }
[data-area="music"] .mu-editions--composer .mu-editions__list { flex-direction: column; }

/* The carols, in season: the red pencil's edge, so the strip reads as the thing to look at now. */
[data-area="music"] .mu-season { border-color: var(--accent); border-left-width: 4px; }
[data-area="music"] .mu-season__go { color: var(--accent-ink); }

/* ── ON A PHONE, THE MUSIC BEFORE THE PICTURE ────────────────────────────────────────────────
   At 390px the front page's playing hero picture and the stats put the carols at 757px and the
   search and filters at 939px, under the first screen (844px). The picture is decoration there:
   it goes, the stats tighten, and the carols and the filters come up into the first screen. */
@media (max-width: 40rem) {
  [data-area="music"] .mu-hero { padding-block: 1.25rem 0.5rem; }
  [data-area="music"] .mu-hero__art { display: none; }
  [data-area="music"] .mu-hero__lede { margin-top: 0.6rem; font-size: 1rem; line-height: 1.5; }
  [data-area="music"] .mu-stats { margin-top: 0.9rem; gap: 0.5rem 1.75rem; }
  [data-area="music"] .mu-stats dd { font-size: 1.6rem; }
  [data-area="music"] .mu-season { margin-block: 0.5rem 0.75rem; }
  /* A piece's summary is reference, not the reason for the page: smaller, so Play stays high. */
  [data-area="music"] .mu-summary { margin-top: 0.6rem; font-size: 0.9rem; line-height: 1.45; }
}

/* ── SEARCH: WHAT ELSE THE SITE HAS (2026-11-15) ─────────────────────────────────────────────
   A search reads the editions on sale, the carols in letter notes and the lists as well as the
   free scores (MusicSearch). They come first, one row per tune, its editions as small links. */
[data-area="music"] .mu-correction { margin: 0.5rem 0 0; color: var(--ink-2); }
[data-area="music"] .mu-shelf { margin: 1rem 0 1.5rem; }
[data-area="music"] .mu-shelf__title { margin: 1.25rem 0 0.6rem; font-family: var(--display); font-size: 1.15rem; font-weight: 600; }
[data-area="music"] .mu-shelf__list { display: grid; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
[data-area="music"] .mu-shelf__item {
  display: grid;
  gap: 0.15rem 0.75rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--rule);
  border-radius: var(--r);
  background: var(--surface);
}
[data-area="music"] .mu-shelf__kind { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); }
[data-area="music"] .mu-shelf__name { font-family: var(--display); font-size: 1.1rem; font-weight: 600; color: var(--ink); text-decoration: none; }
[data-area="music"] .mu-shelf__name:hover { color: var(--brand); text-decoration: underline; }
[data-area="music"] .mu-shelf__links { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; font-size: 0.9rem; }
[data-area="music"] .mu-shelf__links a { display: inline-flex; align-items: center; min-height: 24px; color: var(--brand); }
[data-area="music"] .mu-shelf__more { margin: 0.6rem 0 0; font-size: 0.9rem; color: var(--ink-2); }
[data-area="music"] .mu-shelf__more a { color: var(--brand); }
[data-area="music"] .mu-empty__lead--quiet { font-size: 1.05rem; color: var(--ink-2); margin: 0.5rem 0 1rem; }
[data-area="music"] .mu-empty__ways { display: grid; gap: 0.5rem; margin: 0.25rem 0; padding: 0; list-style: none; }
[data-area="music"] .mu-empty__ways a {
  display: grid;
  gap: 0.1rem;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--rule);
  border-radius: var(--r);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
}
[data-area="music"] .mu-empty__ways a strong { color: var(--brand); }
[data-area="music"] .mu-empty__ways a span { font-size: 0.9rem; color: var(--ink-2); }
[data-area="music"] .mu-empty__ways a:hover strong { text-decoration: underline; }

/* ═══ THE REDESIGN, PHASE B (2026-11-16) ═══════════════════════════════════════════════════
   One buy route per product (Includes/BuyBox.ss), the piece page with the instrument first, and
   compact lists: easiest first, 24 shown and the rest one link away, level chips and the season's
   row at the top. See research_notes/Website redesign 2026-11 in reader-scripts. */

/* ── The buy box (Includes/BuyBox.ss) is the family's since phase C: .buybox in static/family/family.css. */

/* ── The piece page: the score first. What the piece is follows the score and its buy line. */
[data-area="music"] .mu-pieceabout { max-width: 46rem; }
[data-area="music"] .mu-pieceabout .mu-practice { margin-top: 0; }
[data-area="music"] .mu-pieceabout .mu-summary { margin-top: 1rem; }
@media (max-width: 40rem) {
  [data-area="music"] .mu-player { padding-top: 0.5rem; }
  [data-area="music"] .mu-piecehead { margin: 0.25rem 0 0.75rem; }
  [data-area="music"] .mu-piecehead__title { font-size: 1.75rem; }
  [data-area="music"] .mu-piecehead .mu-tags { margin-top: 0.5rem; }
  [data-area="music"] .smp-toolbar { margin-bottom: 0.9rem; }
  [data-area="music"] .buybox { margin: 1rem 0; }
}

/* ── Level chips: the four levels as one row of links near the top of a list. */
[data-area="music"] .mu-levelchips { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin: 0.75rem 0 0; padding: 0; list-style: none; }
[data-area="music"] .mu-levelchips__label { margin-right: 0.25rem; font-size: 0.85rem; font-weight: 600; color: var(--ink-2); }
[data-area="music"] .mu-levelchips a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2rem;
  padding: 0 0.8rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--rule-2);
  border-radius: 999px;
}
[data-area="music"] .mu-levelchips a:hover { border-color: var(--ink-3); background: var(--surface-2); }
[data-area="music"] .mu-levelchips a[aria-current] { color: var(--surface); background: var(--brand); border-color: var(--brand); }
[data-area="music"] .mu-levelchips__n { font-weight: 500; color: var(--ink-3); font-variant-numeric: tabular-nums; }
[data-area="music"] .mu-levelchips a[aria-current] .mu-levelchips__n { color: inherit; }

/* ── The season's row: the carols (or Easter's hymns) as a row of names, by date like the strip. */
[data-area="music"] .mu-seasonrow { margin: 1rem 0 0.5rem; }
[data-area="music"] .mu-seasonrow__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.25rem 1rem; }
[data-area="music"] .mu-seasonrow__title { margin: 0; font-family: var(--display); font-size: 1.2rem; font-weight: 600; color: var(--ink); }
[data-area="music"] .mu-seasonrow__all { display: inline-block; padding-block: 4px; font-size: 0.9rem; font-weight: 600; color: var(--accent-ink); }
[data-area="music"] .mu-seasonrow__list {
  display: flex;
  gap: 0.5rem;
  margin: 0.5rem 0 0;
  padding: 0 0 0.4rem;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  overscroll-behavior-x: contain;
}
[data-area="music"] .mu-seasonrow__list li { flex: none; scroll-snap-align: start; }
[data-area="music"] .mu-seasonrow__list a {
  display: grid;
  gap: 0.1rem;
  width: 11rem;
  min-height: 3.5rem;
  padding: 0.5rem 0.75rem;
  color: var(--ink);
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  border-radius: var(--r);
}
[data-area="music"] .mu-seasonrow__list a:hover { border-color: var(--ink-3); border-left-color: var(--accent); }
[data-area="music"] .mu-seasonrow__name { font-weight: 600; line-height: 1.25; }
[data-area="music"] .mu-seasonrow__what { font-size: 0.8rem; color: var(--ink-2); }

/* ── 24 pieces, then the rest one link away. The rest is in the HTML (an assistant reads every
   piece link there) and folded until "Show all" is followed: ?show=all draws it open, and
   music.js opens it in place without a reload. */
[data-area="music"] .mu-rest.is-folded { display: none; }
[data-area="music"] .mu-rest .mu-pieces { margin-top: 1.1rem; }
[data-area="music"] .mu-showall {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  margin: 1.25rem 0 0;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--rule-2);
  border-radius: var(--r);
}
[data-area="music"] .mu-showall:hover { border-color: var(--ink-3); background: var(--surface-2); }

/* ── A phone's card: the opening bars beside the name rather than above it, so a card is about
   120px tall rather than 260 and a screen shows five or six of them. */
@media (max-width: 40rem) {
  [data-area="music"] .mu-pieces { gap: 0.6rem; }
  [data-area="music"] .mu-piece__link { flex-direction: row; align-items: stretch; contain-intrinsic-block-size: auto 6.5rem; }
  [data-area="music"] .mu-piece__staff { flex: 0 0 7.5rem; display: flex; align-items: center; padding: 0.4rem 0.5rem; border-bottom: 0; border-right: 1px solid var(--rule); }
  [data-area="music"] .mu-piece__staff .sm-incipit { height: 3.4rem; }
  [data-area="music"] .mu-piece__play { right: 0.35rem; bottom: 0.3rem; width: 1.6rem; height: 1.6rem; }
  [data-area="music"] .mu-piece__text { min-width: 0; gap: 0.1rem; padding: 0.45rem 0.7rem 0.5rem; }
  [data-area="music"] .mu-piece__inst { font-size: 0.62rem; }
  [data-area="music"] .mu-piece__title { font-size: 1.02rem; }
  [data-area="music"] .mu-piece__by { margin-bottom: 0.2rem; font-size: 0.8rem; }
  [data-area="music"] .mu-piece__text .mu-tags { flex-wrap: nowrap; overflow: hidden; }
  [data-area="music"] .mu-piece__text .mu-tags .mu-tag { flex: none; font-size: 0.7rem; }
  [data-area="music"] .mu-piece__inst { line-height: 1.1; }
  [data-area="music"] .mu-piece__title { line-height: 1.15; }
  [data-area="music"] .mu-piece__more { padding-top: 0.15rem; font-size: 0.76rem; }
}

/* The email list's offer after "Free PDF" (SheetMusicPageController_player.ss, music.js). It sits
   between the sticky toolbar and the score, in the page's own surface, and never covers the score. */
[data-area="music"] .smp-afterpdf { position: relative; margin: 0.75rem 0 1rem; padding: 1rem 1rem 0.85rem; background: var(--surface-2); border: 1px solid var(--line); border-radius: 0.75rem; }
[data-area="music"] .smp-afterpdf[hidden] { display: none; }
[data-area="music"] .smp-afterpdf__lede { margin: 0 5.5rem 0.6rem 0; font: 400 0.95rem/1.45 var(--sans); color: var(--ink); }
[data-area="music"] .smp-afterpdf .email-signup { margin: 0; padding: 0; border: 0; max-width: 36rem; background: none; }
[data-area="music"] .smp-afterpdf__close { position: absolute; top: 0.6rem; right: 0.6rem; min-height: 2rem; padding: 0 0.7rem; font: 600 0.8rem/1 var(--sans); color: var(--ink-2); background: transparent; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; }
[data-area="music"] .smp-afterpdf__close:hover { color: var(--ink); border-color: var(--ink-3); }
@media (max-width: 30rem) {
  [data-area="music"] .smp-afterpdf__lede { margin-right: 0; padding-top: 2rem; }
}
