/* Digital Greenhouse — hanon.css
   /music/hanon (the hub) and /music/hanon/exercise-N. Builds on kids-piano.css
   (the player's controls, the paper, the fact list and the page nav). */
.hn h1 .hn-sub { display: block; margin-top: 0.35em; font-size: 0.5em; font-weight: 600; line-height: 1.25; color: var(--text-muted); letter-spacing: 0; }
.hn-actions { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-3); margin-top: var(--space-4); scroll-margin-top: 110px; }
.hn-note { margin-top: var(--space-2); font-size: var(--fs-sm); color: var(--text-muted); }

/* Hanon's own printed words: set apart from ours */
.hn-hanon { margin: 0 0 var(--space-5); padding: var(--space-4) var(--space-5); border-left: 4px solid var(--color-emerald); border-radius: 0 14px 14px 0; background: var(--bg-card); font-family: Georgia, "Times New Roman", serif; }
.hn-hanon p { margin: 0 0 var(--space-2); max-width: 78ch; }
.hn-hanon p:last-child { margin-bottom: 0; }
.hn-hanon__lab { font: 700 var(--fs-xs)/1.4 var(--font-body, system-ui); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.hn-hanon__head { font-weight: 700; font-size: 1.08em; }
.hn-hanon__mark { font-style: italic; }
.hn-hanon--foot { margin-top: var(--space-5); font-size: var(--fs-sm); }
.hn-hanon .hn-em { font-style: italic; }
.hn-ed { margin: calc(-1 * var(--space-3)) 0 var(--space-5); font-size: var(--fs-sm); color: var(--text-muted); max-width: 80ch; }
.hn-sectext { margin: 0; padding: 0 var(--space-5) var(--space-3); font-family: Georgia, "Times New Roman", serif; max-width: 80ch; }
.hn-preface summary { cursor: pointer; font-weight: 600; margin-bottom: var(--space-3); }
.hn-preface .hn-hanon { margin-top: var(--space-3); }

/* the page's speed / hands / metronome bar, and each section's play row */
.hn-bar { border-radius: 14px; margin-bottom: var(--space-4); }
.hn-speed { display: inline-flex; align-items: center; gap: 10px; flex: 1 1 300px; min-width: 0; font: 600 0.82rem/1 var(--font-body, system-ui); }
.hn-speed input[type="range"] { flex: 1 1 140px; min-width: 90px; max-width: 320px; accent-color: #58b98b; }
.hn-speed__val { min-width: 7.2em; font: 600 0.82rem/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #c9d4cc; }
.hn-marks .kp-ctl { min-width: 44px; }
.hn-ctl__name { font: 600 0.85rem/1.2 var(--font-body, system-ui); color: #c9d4cc; margin-left: auto; text-align: right; }
.hn-list .kp-song:first-child { margin-top: 0; }
.hn-tune { scroll-margin-top: 90px; }
.hn-tune .kp-song__head { padding-bottom: var(--space-3); }
/* a system of five or six bars needs width: a phone scrolls it sideways rather than shrinking it */
.hn-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.hn-score { min-width: 700px; min-height: 120px; }
.hn-score .abcjs-triplet { display: none; }   /* Schirmer prints No. 44's groups of three without the numeral, and it would sit on the fingering */
.hn-hint { padding: 8px 2px 0; color: var(--text-muted); }

.hn-jump { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 var(--space-4); }
.hn-jump a, .hn-partlinks a { display: inline-block; padding: 4px 11px; border: 1px solid var(--color-line); border-radius: 999px; background: var(--bg-card); font-size: var(--fs-sm); font-weight: 600; text-decoration: none; }
.hn-jump a:hover, .hn-partlinks a:hover { border-color: var(--color-emerald); }
.hn-partlinks { display: flex; flex-wrap: wrap; gap: 0.4rem; }

/* the hub's list of exercises */
.hn-intro { max-width: var(--container-narrow); }
.hn-part { scroll-margin-top: 90px; }
.hn-part > p { max-width: 80ch; }
.hn-rows { counter-reset: none; }
.hn-row { display: grid; grid-template-columns: 2.2rem minmax(0, 1fr) auto; align-items: center; gap: var(--space-2) var(--space-3); padding: 10px 14px; border-top: 1px solid var(--color-line); }
.hn-row:first-child { border-top: 0; }
.hn-row__num { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text-muted); text-align: right; }
.hn-row__main { min-width: 0; }
.hn-row__main a { font-weight: 600; }
.hn-row__meta { display: block; color: var(--text-muted); font-size: var(--fs-sm); }
.hn-row__pdf { padding: 4px 10px; border: 1px solid var(--color-line); border-radius: 8px; font-size: var(--fs-sm); font-weight: 700; text-decoration: none; }
.hn-row__pdf:hover { border-color: var(--color-emerald); }
.hn .kp-page h2 { scroll-margin-top: 90px; }

@media (max-width: 720px) {
  .hn-hanon { padding: var(--space-3) var(--space-4); }
  .hn-speed { flex-basis: 100%; }
  .hn-row { padding: 8px 10px; }
}
@media print {
  /* the PDF is the print copy; if someone prints the page anyway, give them the music */
  .hn-bar, .hn-ctl, .hn-jump, .hn-hint, .hn-actions { display: none !important; }
  .hn-score { min-width: 0; }
  .hn-scroll { overflow: visible; }
  /* kids-piano.css prints one piece a page with its heading hidden: here the sections follow on, titled */
  .hn-tune.kp-song { break-inside: auto; break-after: auto; page-break-after: auto; margin-top: 4mm; }
  .hn-tune .kp-song__head { display: block; padding: 0 0 1mm; }
  .hn-tune .kp-song__meta { display: none; }
  .hn .kp-level, .hn .kp-page { display: block !important; }
  .hn .tool-related, .hn .hn-partlinks { display: none !important; }
}
