/* V62 — flute-inspired reading hierarchy. Screen only: printed manual and
   QSG, source diagrams, measurement readouts and touch targets stay intact. */
@media screen {
  body { font-size: 16px; line-height: 1.65; }

  #main > .manual-page {
    padding: 28px clamp(24px, 4vw, 64px) 32px;
  }
  #main .page-head { margin-bottom: 20px; max-width: 82ch; }
  #main .manual-page h1:not(:where(.workspace-app *)),
  #main .manual-page h2:not(:where(.workspace-app *)) {
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.25;
    letter-spacing: -.02em;
    margin-bottom: 10px;
  }
  html[lang="zh-CN"] #main .manual-page h1:not(:where(.workspace-app *)),
  html[lang="zh-CN"] #main .manual-page h2:not(:where(.workspace-app *)) { line-height: 1.35; letter-spacing: 0; }
  #main .manual-page .eyebrow:not(:where(.workspace-app *)),
  #main .manual-page .mini-label:not(:where(.workspace-app *)) { font-size: 12px; line-height: 1.5; letter-spacing: .08em; }
  #main .page-head > p:last-child,
  #main .hero-copy .lede { font-size: 16px; line-height: 1.65; max-width: 78ch; }
  #main .hero-copy .lede { margin-block: 16px; }
  #main .hero-page { min-height: 0; gap: 24px 32px; }
  #main .hero-page::after { font-size: 64px; }
  #main .chapter-check-jump { min-height: 36px; margin: 6px 0; padding-block: 5px; font-size: 13px; }

  /* Regular prose has one predictable scale; compact labels remain secondary.
     The interactive studio has its own hierarchy and is intentionally excluded. */
  #main .manual-page :is(p, li):not(:where(.workspace-app *, .eyebrow, .mini-label, .source-page, .reference-credit, .source-note, .manual-help-hint)) {
    font-size: 16px;
    line-height: 1.65;
  }
  #main .manual-page figcaption:not(:where(.workspace-app *)),
  #main .manual-page figcaption :is(p, li, span):not(:where(.workspace-app *, .manual-term-question)) {
    font-size: 15px;
    line-height: 1.6;
  }
  #main .manual-page :is(h3, .lesson-head h3):not(:where(.workspace-app *)) {
    font-size: 22px;
    line-height: 1.35;
  }
  #main .manual-page h4:not(:where(.workspace-app *)) { font-size: 17px; line-height: 1.4; }
  #main .manual-page :is(.toc-group > h3, .trouble-grid h3, .numbered-heading h4) { font-size: 16px; }
  #main .manual-page figcaption > :is(b, strong),
  #main .manual-page .beginner-notes b { font-size: 15px; line-height: 1.5; }
  #main .manual-page .beginner-notes { font-size: 15px; line-height: 1.6; gap: 10px; }
  #main .manual-page .beginner-notes li { margin-bottom: 0; }

  #main :is(.learning-roadmap, .manual-toc, .care-overview) > header h2,
  #main .learning-roadmap h2 { font-size: 26px; line-height: 1.3; }
  #main .learning-roadmap a { padding: 14px; }
  #main .learning-roadmap :is(b, strong),
  #main .chapter-check b { font-size: 16px; line-height: 1.5; }
  #main .learning-roadmap :is(small, a > em),
  #main .chapter-check .check-prompt { font-size: 15px; line-height: 1.6; }
  #main .chapter-check small { font-size: 13px; }
  #main .chapter-check { margin-top: 24px; padding: 16px; }
  #main .tuning-beginner-flow { padding: 22px; margin-block: 24px; }
  #main .tuning-beginner-flow h3 { font-size: 26px; }
  #main .tuning-flow-steps b { font-size: 16px; }
  #main .tuning-flow-steps span { font-size: 15px; line-height: 1.6; }
  #main .tuning-flow-steps li { min-height: 0; }
  #main .tuning-flow-note { font-size: 15px; }

  #main .hold-instructions { font-size: 16px; line-height: 1.65; }
  #main .hold-instructions li { margin-bottom: 12px; }
  #main :is(.hold-check, .hold-reset, .hold-fit-note, .hold-motion-list span, .hold-final-check ul) { font-size: 15px; line-height: 1.65; }
  #main .care-intervals strong { font-size: 17px; }
  #main #care-after .care-overview > header > p:last-child { font-size: 16px; line-height: 1.65; }
  #main .care-intervals :is(small, .care-parts) { font-size: 15px; line-height: 1.6; }
  #main .receiver-key { font-size: 15px; }
  #main .cream-amount-note strong { font-size: 16px; }
  #main .lubricant-card small { font-size: 14px; }
  #main #lubricant-guide > header > p:last-child { font-size: 16px; line-height: 1.65; }
  #main .pitch-actions { font-size: 15px; }
  #main .part-detail-copy h3 { font-size: 24px; }

  /* Lessons retain large teaching pictures; text no longer competes with them. */
  #main .lesson { padding: 26px; margin-block: 20px; }
  #main .lesson-head { gap: 12px; padding-bottom: 12px; }
  #main .lesson-head > span { font-size: 14px; padding: 10px 12px; }
  #main .lesson-head p { font-size: 12px; margin-bottom: 4px; }
  #main .lesson-lede { font-size: 16px; }
  #main .lesson .detailed-process > section > ul { font-size: 16px; line-height: 1.65; font-weight: 500; padding: 14px 16px 14px 32px; gap: 8px; }
  #main #trombone-sound-lips .detail-grid figcaption :is(strong, span) { font-size: 15px; line-height: 1.6; }
  #main .lesson .demo-status-pair { font-size: 15px; }
  #main .lesson .demo-status-pair :is(.correct-label, .incorrect-label)::before { font-size: 18px; }
  #main .manual-term-note { font-size: 15px; line-height: 1.65; padding: 12px 14px; }
  #main .manual-term-note > strong { font-size: 16px; }
  #main .manual-help-hint { font-size: 14px; }

  /* Keep the tool readouts/position markers and 44px controls unchanged. */
  #main .manual-studio .workspace-head h1 { font-size: 28px; line-height: 1.3; }
  #main .workspace-app #teaching-simulator > header h2,
  #main .workspace-app .simulator-quiz h2 { font-size: 19px; line-height: 1.4; }
  #main .workspace-app .simulator-quiz p { font-size: 16px; }
}

@media screen and (max-width: 760px) {
  #main > .manual-page { padding: 22px 18px 32px; }
  #main .manual-page h1:not(:where(.workspace-app *)), #main .manual-page h2:not(:where(.workspace-app *)) { font-size: 28px; }
  #main .manual-page h3:not(:where(.workspace-app *)) { font-size: 20px; }
  #main .manual-page .page-head { margin-bottom: 18px; }
  #main .hero-copy .lede { margin-block: 12px; }
  #main .lesson { padding: 22px 18px 32px; }
  #main .lesson-head { align-items: flex-start; }
  #main .learning-roadmap h2,
  #main .tuning-beginner-flow h3 { font-size: 22px; }
  #main .manual-studio .workspace-head h1 { font-size: 25px; }
  #main .tuning-beginner-flow { padding: 16px; }
}

/* V67 — persistent chapter title and contextual return, with compact V62 type. */
@media screen {
  .topbar {
    display: grid; grid-template-columns: minmax(185px,1fr) minmax(0,2.8fr) minmax(165px,1fr);
    height: auto; min-height: 86px; padding: 12px 24px; gap: 18px;
  }
  .topbar .edition.topline {
    display: block; width: 100%; margin: 0; overflow: visible; white-space: normal;
    text-overflow: clip; color: var(--ink) !important; font: 600 21px/1.3 Georgia, serif !important;
    text-wrap: balance;
  }
  html[lang="zh-CN"] .topbar .edition.topline { font-family: "Noto Serif CJK SC", "Songti SC", serif !important; }
  .topbar .tools { justify-self: end; margin-left: auto; }
  .js-ready #main .chapter-body-title {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
  }
  .sidebar { top: var(--reader-header,86px); height: calc(100dvh - var(--reader-header,86px)); min-height: 0; }
  .reading-back-bar {
    position: sticky; top: var(--reader-chrome,86px); z-index: 30;
    padding: 5px clamp(24px,4vw,64px); background: var(--paper); border-bottom: 1px solid var(--line);
  }
  .reading-back-bar[hidden] { display: none; }
  .reading-back {
    display: inline-flex; align-items: center; min-height: 44px; padding: 8px 13px;
    border: 1px solid var(--action-line); border-radius: 6px; background: var(--action-soft);
    color: var(--action); font-size: 14px; line-height: 1.4; cursor: pointer;
  }
  .reading-back:hover { background: #dceaf3; }

  /* Simple, consistent marks rather than unrelated or missing font glyphs. */
  #safety .safe-card li::before { background: none; box-shadow: none; border-radius: 0; font: 700 22px/1 Arial, sans-serif; }
  #safety .safe-card.positive li::before { content: '✓'; color: var(--correct); }
  #safety .safe-card.negative li::before { content: '×'; color: var(--incorrect); }

  #lubricant-guide .lubricant-cards { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
  #lubricant-guide .lubricant-card { padding: 16px; }
  #lubricant-guide .lubricant-card > img { height: clamp(160px,20vw,260px); }

  #trombone-sound-tongue .practice-demo { grid-template-columns: minmax(0,1fr); }
  #trombone-sound-tongue .practice-demo .try-panel { display: block; padding: 16px 20px; }
  #trombone-sound-tongue .practice-demo .try-panel > img { display: none; }
  #trombone-sound-tongue .practice-demo .sequence-figure { overflow: visible; }
  #trombone-sound-tongue .sequence-rail { min-width: 0; width: 100%; }
  #trombone-sound-tongue .sequence-rail > img { width: 100%; height: auto; max-height: none; object-fit: contain; }

  #trombone-sound-buzz .buzz-state-grid { grid-template-columns: repeat(3,minmax(0,1fr)); grid-auto-flow: row; gap: 10px; }
  #trombone-sound-buzz .buzz-state-grid figure { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; }
  #trombone-sound-buzz .buzz-state-grid img { align-self: center; }
  #trombone-sound-buzz .buzz-state-grid .state { display: flex; align-items: center; padding: 8px; }
  #trombone-sound-buzz .buzz-state-grid figcaption { padding: 10px; }
  .mouthpiece-section .placement-visual-grid { grid-template-columns: repeat(3,minmax(0,1fr)); row-gap: 0; }
  .mouthpiece-section .placement-visual-grid > .state-card { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; }
  .mouthpiece-section .placement-visual-grid > .state-card > header { display: grid; place-items: center; min-height: 48px; }
  .mouthpiece-section .placement-visual-grid .sign-visual img { height: clamp(140px,16vw,240px); object-fit: contain; }
}
@media screen and (min-width:761px) and (max-width:1100px) {
  #lubricant-guide { padding: 20px; }
  #lubricant-guide .lubricant-card { padding: 12px; }
}
@media screen and (min-width:761px) and (max-width:819px) {
  /* Keep inline definitions readable beside the persistent chapter sidebar. */
  #lubricant-guide .lubricant-cards { grid-template-columns: minmax(0,1fr); }
}
@media screen and (max-width:760px) {
  .topbar { grid-template-columns: minmax(0,1fr) auto; padding: 9px 12px; gap: 8px; }
  .topbar .brand { grid-column: 1; grid-row: 1; }
  .topbar .tools { grid-column: 2; grid-row: 1; gap: 4px; }
  .topbar .tools button { min-height: 44px; padding: 7px 9px; }
  .topbar .tools .search-open { display: inline-flex; align-items: center; }
  .topbar .edition.topline { grid-column: 1 / -1; grid-row: 2; font-size: 18px !important; }
  .mobile-pager { top: var(--reader-header,120px); }
  .workspace > #main { margin-top: var(--reader-chrome,182px); }
  body.mobile-nav-open .sidebar, .sidebar { top: var(--reader-header,120px); height: calc(100dvh - var(--reader-header,120px)); }
  .reading-back-bar { padding-inline: 18px; }
  #lubricant-guide .lubricant-cards { grid-template-columns: minmax(0,1fr); }
  #trombone-sound-tongue .sequence-rail .sequence-steps { grid-template-columns: minmax(0,1fr); }
  #trombone-sound-tongue .sequence-rail .sequence-steps li { border-right: 0; border-bottom: 1px solid var(--line); min-height: 0; padding: 12px; }
  #trombone-sound-buzz .buzz-case-grid { padding: 10px; }
  /* Three full comparisons stay side-by-side on tablet. Phone columns would
     make the lip/arrows too small to teach from, so retain readable cards. */
  #trombone-sound-buzz .buzz-state-grid { grid-template-columns: minmax(0,1fr); gap: 14px; }
  #trombone-sound-buzz .buzz-state-grid figure { grid-row: auto; grid-template-rows: auto auto 1fr; }
  .mouthpiece-section .placement-visual-grid { grid-template-columns: minmax(0,1fr); row-gap: 16px; }
  .mouthpiece-section .placement-visual-grid > .state-card { grid-row: auto; grid-template-rows: auto; }
  .mouthpiece-section .placement-visual-grid .sign-visual img { height: auto; }
}
@media screen and (max-width:480px) {
  .topbar .brand-mark { display: none; }
  .topbar .brand-copy strong { font-size: 18px; }
  .topbar .brand-copy small { font-size: 7px; letter-spacing: .6px; }
}
@media print { .reading-back-bar { display: none !important; } }
