/* V59: learning progress and readable beginner tasks. Semantic roles from the
   shared palette remain authoritative; blue selection is not a success mark. */
.learning-roadmap { position: relative; z-index: 1; grid-column: 1 / -1; margin: 12px 0 20px; }
.learning-roadmap h2 { margin: 0 0 12px; font-size: clamp(1.8rem,3vw,2.6rem); }
.learning-roadmap > p { margin: 10px 0; color: var(--body); font-size: 1rem; line-height: 1.6; }
.learning-roadmap ol { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; padding: 0; list-style: none; }
.learning-roadmap li { min-width: 0; }
.learning-roadmap a { display: grid; grid-template-columns: 44px minmax(0,1fr) auto; gap: 6px 12px; align-items: center; height: 100%; padding: 18px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: #fff; text-decoration: none; }
.learning-roadmap .roadmap-number { grid-row: 1 / 3; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #fff; background: var(--action); font-size: 1rem; font-weight: 800; }
.learning-roadmap b { font-size: 1.1rem; }
.learning-roadmap a > div { grid-column: 2; grid-row: 1; }
.learning-roadmap strong { font-size: 1.125rem; }
.learning-roadmap a > div > small { display: block; margin-top: 5px; }
.learning-roadmap a > em { grid-column: 2; color: var(--body); font-size: 1rem; font-style: normal; line-height: 1.6; }
.learning-roadmap small { grid-column: 2; font-size: .95rem; line-height: 1.5; color: var(--body); }
.learning-roadmap .roadmap-status { grid-column: 3; grid-row: 1 / 3; color: var(--muted); font-size: .88rem; }
.learning-roadmap a:hover { border-color: var(--action); background: var(--action-soft); }
.learning-roadmap .is-complete a { border-color: var(--correct); background: var(--correct-soft); }
.learning-roadmap .is-complete .roadmap-status { color: var(--correct); font-weight: 800; }
.learning-progress { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.learning-progress label { display: block; color: var(--ink); font-weight: 800; font-size: .88rem; }
.learning-progress progress { width: 100%; height: 10px; margin-top: 8px; accent-color: var(--correct); }
.learning-progress p { margin: 6px 0 0; color: var(--muted); font-size: .82rem; line-height: 1.5; }
.chapter-check { display: flex; align-items: flex-start; gap: 14px; margin: 30px 0 18px; padding: 20px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; scroll-margin-top: 145px; }
.chapter-check input { flex: 0 0 auto; width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--correct); cursor: pointer; }
.chapter-check b, .chapter-check small, .chapter-check .check-prompt { display: block; }
.chapter-check b { color: var(--ink); font-size: 1.15rem; }
.chapter-check .check-prompt { margin-top: 6px; color: var(--body); font-size: 1rem; line-height: 1.6; }
.chapter-check small { margin-top: 8px; color: var(--muted); font-size: .86rem; line-height: 1.5; }
.chapter-check.is-complete { border-color: var(--correct); background: var(--correct-soft); }
.chapter-check.is-complete b { color: var(--correct); }
.chapter-check-jump { display: inline-block; margin: 12px 0; color: var(--action); font-size: 1rem; }
.chapter-check-indicator { margin-left: auto; color: var(--correct) !important; font-weight: 900; }

/* V60: separate assembly from a guided tuner-first lesson. */
.tuning-beginner-flow { margin: 34px 0 28px; padding: clamp(22px, 3vw, 36px); border: 1px solid #b9d7c4; border-radius: 12px; background: #f2f9f4; }
.tuning-beginner-flow header { max-width: 72ch; }
.tuning-beginner-flow h3 { margin: 4px 0 10px; font-size: clamp(1.8rem, 3vw, 2.7rem); color: var(--ink); }
.tuning-beginner-flow header > p:last-child { font-size: 1.12rem; line-height: 1.65; }
.tuning-beginner-flow a { color: #0f6334; font-weight: 850; }
.tuning-flow-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 22px 0; padding: 0; list-style: none; counter-reset: tune-step; }
.tuning-flow-steps li { position: relative; min-height: 170px; padding: 54px 16px 16px; border: 1px solid #c8dfcf; border-radius: 9px; background: #fff; counter-increment: tune-step; }
.tuning-flow-steps li::before { content: counter(tune-step); position: absolute; top: 14px; left: 16px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: #fff; background: var(--correct); font-weight: 900; }
.tuning-flow-steps b, .tuning-flow-steps span { display: block; }
.tuning-flow-steps b { color: var(--ink); font-size: 1.08rem; line-height: 1.35; }
.tuning-flow-steps span { margin-top: 8px; color: var(--body); font-size: 1rem; line-height: 1.6; }
.tuning-flow-note { margin: 18px 0; padding: 13px 16px; border-left: 4px solid var(--correct); color: #244b33; background: #e6f5ea; font-size: 1.06rem; line-height: 1.6; }

/* V66: warm-up is a taught prerequisite, not a step hidden in the tuner. */
.tuning-prerequisite { padding-left: 16px; border-left: 3px solid var(--action); }
.tuning-warmup { margin-block: 28px; }
.warmup-steps { padding-left: 24px; max-width: 82ch; }
.warmup-steps li { padding-left: 6px; margin-block: 18px; }
.warmup-steps b, .warmup-steps span { display: block; }
.warmup-steps span { margin-top: 5px; }
.tuning-beginner-flow { border-color: var(--line); background: #f6f8fa; }
.tuning-beginner-flow a { color: var(--action); }
.tuning-beginner-flow .tuning-flow-steps { grid-template-columns: repeat(2,minmax(0,1fr)); }
.tuning-flow-steps li { border-color: var(--line); }
.tuning-flow-steps li::before { background: var(--action); }
.tuning-main-guide.tune-card { padding: 0; background: transparent; border: 0; }
.tuning-main-guide .tune-source-figure { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: start; margin: 16px 0; }
.tuning-main-guide .tune-source-figure img { width: 100%; height: auto; object-fit: contain; }
.tuning-main-guide .tune-source-figure figcaption { padding: 18px; border-top: 0; min-width: 0; }
.tuning-valves { margin-block: 24px; border-block: 1px solid var(--line); }
.tuning-valves > summary { min-height: 64px; padding: 16px 8px; cursor: pointer; color: var(--ink); }
.tuning-valves > summary strong { margin-left: 6px; }
.tuning-valves > summary > span { display: block; margin: 6px 0 0 22px; color: var(--muted); font-size: 14px; }
.tuning-valves > summary:focus-visible { outline: 2px solid var(--action); outline-offset: 3px; }
.tuning-valves > .tune-card { margin-block: 16px; }
.tuning-valves > .tune-card .tune-source-figure { max-width: 760px; }
@media (max-width: 1100px) {
  .tuning-main-guide .tune-source-figure { grid-template-columns: minmax(0,1fr); }
  .tuning-main-guide .tune-source-figure img { max-height: 360px; }
}
@media (max-width: 950px) {
  .tuning-beginner-flow .tuning-flow-steps { grid-template-columns: minmax(0,1fr); }
}
@media print {
  .tuning-warmup, .tuning-valves { break-inside: auto; }
  .tuning-valves > summary { list-style: none; }
}

/* The user-facing content under Hold and Care should not read like footnotes. */
#hold .hold-instructions { font-size: 1.15rem; line-height: 1.72; }
#hold .hold-instructions li { margin-bottom: 16px; }
#hold .hold-check, #hold .hold-reset, #hold .hold-fit-note { font-size: 1.08rem; line-height: 1.65; }
#hold .hold-body-checks p, #hold .hold-motion-list span, #hold .hold-correction-list p { font-size: 1.06rem; line-height: 1.65; }
#hold .hold-final-check ul, #hold .hold-final-check p { font-size: 1.06rem; line-height: 1.65; }
#care-after .care-overview > header > p:last-child, #care-after .care-intervals small { font-size: 1.08rem; line-height: 1.65; }
#care-after .care-intervals strong { font-size: 1.22rem; }
#care-after .care-intervals .care-parts { font-size: 1rem; line-height: 1.65; }
#care-after .care-frequency-note, #care-after > .page-head > p { font-size: 1.1rem; line-height: 1.7; }

.valve-layout-pairs { grid-template-columns: repeat(2,minmax(0,1fr)); align-items: stretch; }
.valve-layout-pair { display: grid; grid-template-rows: subgrid; grid-row: span 2; gap: 0; }
.valve-layout-pair figure.diagram-only { display: grid; grid-template-rows: auto 1fr; min-width: 0; }
.valve-layout-pair figure.diagram-only img { height: clamp(230px,25vw,380px); }
.valve-layout-pair figure.diagram-only figcaption { color: var(--body); background: #fff; border-top: 0; line-height: 1.6; }
.valve-shared-guide .lever-symbol-key { grid-template-columns: repeat(2,minmax(0,1fr)); margin: 0; }
.valve-shared-guide { margin: 16px 0; }
.valve-shared-guide .table-reading-note { margin: 12px 0 0; }
.valve-layout-pair .table-scroll, .valve-layout-pair table { margin: 0; }
.valve-layout-pair table { table-layout: fixed; }
.valve-layout-pair caption { height: 68px; box-sizing: border-box; }
.valve-layout-pair thead tr { height: 110px; }
.valve-layout-pair th { vertical-align: middle; padding: 10px 7px; overflow-wrap: anywhere; }
.valve-layout-pair td { height: 50px; box-sizing: border-box; padding: 10px; }
@media (max-width: 1100px) {
  #tuning-reference { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 760px) {
  .valve-layout-pairs, .valve-shared-guide .lever-symbol-key { grid-template-columns: minmax(0,1fr); }
  .valve-layout-pair { display: block; grid-row: auto; }
}

@media (max-width: 1400px) {
  .tuning-flow-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 950px) {
  .tuning-flow-steps { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 760px) {
  .tuning-beginner-flow { margin-inline: -2px; padding: 18px; }
  .tuning-flow-steps { grid-template-columns: 1fr; }
  .tuning-flow-steps li { min-height: 0; }
  #care-after .care-overview > header > p:last-child, #care-after .care-intervals small, #care-after .care-frequency-note, #care-after > .page-head > p { font-size: 1.02rem; }
}

/* Match image and overlay geometry, including large parts and resized screens. */
.part-detail-zoom, .model-part-zoom { height: 300px; min-height: 0; }
.part-detail-zoom img, .model-part-zoom img { position: absolute; max-width: none; min-height: 0; padding: 0; transform: none; transition: none; object-fit: fill; }
.part-detail-zoom > span, .model-part-zoom > span { inset: auto; box-sizing: border-box; border: 3px solid var(--action); border-radius: 8px; }

/* Instruction text is not microcopy. Keep labels above their full-width copy. */
#before-playing figcaption, #assemble-tune figcaption { font-size: 1.125rem; line-height: 1.65; }
#before-playing figcaption > b, #assemble-tune figcaption > b { font-size: 1.15rem; }
#before-playing .beginner-notes, #assemble-tune .beginner-notes { font-size: 1.125rem; line-height: 1.65; gap: 14px; }
#before-playing .beginner-notes li, #assemble-tune .beginner-notes li { grid-template-columns: minmax(0,1fr); gap: 4px; }
#before-playing .beginner-notes b, #assemble-tune .beginner-notes b { font-size: 1rem; line-height: 1.5; letter-spacing: 0; }
#before-playing .handling-visuals { grid-template-columns: repeat(auto-fit,minmax(min(100%,300px),1fr)); }
#before-playing .cream-amount-note { display: block; margin-top: 18px; padding: 14px 16px; border-left: 4px solid var(--action); background: var(--action-soft); color: var(--body); }
.cream-amount-note strong { display: block; font-size: 1.1rem; color: var(--ink); }
.cream-amount-note p { margin: 6px 0 0; font-size: 1.125rem; line-height: 1.6; }
#before-playing .split-callouts { grid-template-columns: minmax(0,1fr); }
#lubricant-guide > header { display: block; }
#lubricant-guide h3 { font-size: clamp(1.8rem,3vw,2.5rem); margin: 8px 0 12px; }
#lubricant-guide > header > p:last-child { max-width: 72ch; font-size: 1.125rem; line-height: 1.65; }
#lubricant-guide .lubricant-cards { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
#lubricant-guide .lubricant-card { min-width: 0; padding: 20px; }
#lubricant-guide .lubricant-card h4 { font-size: 1.3rem; }
#lubricant-guide .lubricant-card p { font-size: 1.125rem; line-height: 1.65; }
#lubricant-guide .lubricant-card > img { width: 100%; height: 260px; max-height: none; object-fit: contain; background: #fff; }
#lubricant-guide .lubricant-card small { font-size: .98rem; line-height: 1.5; }
#tuning-reference .pitch-actions { font-size: 1.125rem; line-height: 1.6; }

/* Source-faithful receiver detail: no invented hardware or bitmap repainting. */
#assemble-tune .interface-marker-stage > img { width: 100%; height: auto; max-height: none; padding: 0; }
.receiver-leaders { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--action); pointer-events: none; }
.receiver-leaders line { stroke: currentColor; stroke-width: 2; vector-effect: non-scaling-stroke; }
.receiver-point { position: absolute; display: grid; place-items: center; width: 25px; height: 25px; transform: translate(-50%,-50%); border: 2px solid #fff; border-radius: 50%; color: #fff; background: var(--action); font-size: 14px; font-weight: 850; }
.receiver-key { display: grid; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); color: var(--ink); background: var(--action-soft); font-size: 1.05rem; line-height: 1.5; }
.receiver-key b { color: var(--action); }

#trombone-sound-lips .detail-grid { grid-template-columns: minmax(0,1fr) !important; max-width: 860px; gap: 24px; }
#trombone-sound-lips .detail-grid .equal-visual { height: auto; min-height: 0; aspect-ratio: auto; }
#trombone-sound-lips .detail-grid .equal-visual img { display: block; width: 100%; height: auto; max-height: none; object-fit: contain; }
#trombone-sound-lips .detail-grid figcaption strong { font-size: 1.25rem; }
#trombone-sound-lips .detail-grid figcaption span { font-size: 1.125rem; line-height: 1.65; }
#trombone-sound-tongue .detailed-process > section > ul { display: grid; gap: 10px; margin: 18px 0 0; padding: 18px 20px 18px 42px; border: 1px solid var(--action-line); border-radius: 8px; color: var(--ink); background: var(--action-soft); font-size: 1.2rem; font-weight: 700; line-height: 1.65; }
#trombone-sound-tongue .detailed-process > section > ul li::marker { color: var(--action); }
/* The two horizontal strokes belong to blank source-page margins. Clip only
   those margins in presentation; retain all hardware, leaders and source bytes. */
#after-care-steps > figure > img[src*="p10-leadpipe"] { width: 100%; height: auto; max-height: none; padding: 0; clip-path: inset(0 0 3.2% 0); }
#care-after-exterior > img { width: 100%; height: auto; max-height: none; padding: 0; clip-path: inset(2% 0 0 0); }
#troubleshooting > .stop-strip { margin: 0 0 28px; }
@media (min-width: 761px) and (max-width: 1100px) {
  /* The persistent sidebar leaves too little space for two readable cards. */
  #lubricant-guide .lubricant-cards { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 760px) {
  .learning-roadmap ol, #lubricant-guide .lubricant-cards { grid-template-columns: minmax(0,1fr); }
  .learning-roadmap a { grid-template-columns: 38px minmax(0,1fr); padding: 14px; }
  .learning-roadmap .roadmap-number { width: 34px; height: 34px; }
  .learning-roadmap .roadmap-status { grid-column: 2; grid-row: auto; }
  #lubricant-guide { padding: 16px; }
  #lubricant-guide .lubricant-card { padding: 16px; }
  .part-detail-zoom, .model-part-zoom { height: 260px; }
  .chapter-check { padding: 16px; gap: 12px; }
}
@media print {
  .chapter-check-jump, .learning-progress { display: none !important; }
  .chapter-check { break-inside: avoid; }
  .chapter-check-indicator { display: none; }
}
