/* One document scroll; no nested scrolling teaching panels. */
.sidebar{height:auto;overflow:visible;align-self:start;position:relative;top:0}
.tuner-mode{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0}.tuner-mode button[aria-pressed=true]{background:#244d3d;color:#fff}
.panel-image>.annotated-image{overflow:hidden}.panel-image>.annotated-image>img{max-width:none!important;max-height:none!important;height:auto!important}.panel-1-of-3>.annotated-image>img,.panel-2-of-3>.annotated-image>img,.panel-3-of-3>.annotated-image>img{width:300%!important}.panel-2-of-3>.annotated-image>img{margin-left:-100%!important}.panel-3-of-3>.annotated-image>img{margin-left:-200%!important}.panel-2-of-2>.annotated-image>img{width:200%!important;margin-left:-100%!important}
.chromatic-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:24px 0}.chromatic-card{padding:16px;background:#f3f3e9;border:1px solid #bdcdbb;border-radius:5px}.chromatic-card svg{display:block;width:100%;height:auto}.chromatic-card h3{font-size:19px}
#search-dialog{overflow:visible;max-height:calc(100dvh - 20px);padding:20px}.search-pagination{display:flex;gap:10px;align-items:center;justify-content:space-between;margin-top:16px}.search-pagination[hidden]{display:none}.search-pagination button{font-size:12px;padding:8px 12px}.search-result{padding:12px 0}.search-result strong{font-size:16px}.search-result span{font-size:13px}.search-pagination span{white-space:nowrap;font-size:11px}
.v8-figure .rotation-cue{position:relative}.v8-figure .annotated-image:has(>.rotation-cue){display:flex;flex-direction:column}.v8-figure .annotated-image>.rotation-cue{order:1}
@media(max-width:480px){.chromatic-grid{grid-template-columns:1fr}.chromatic-card{max-width:340px}.image-stage{height:36dvh;max-height:36dvh}#image-dialog{padding:14px}.dialog-header{gap:8px}.dialog-header h2{font-size:19px}#search-dialog .dialog-header{margin-bottom:10px}#search-dialog input{padding:10px}.search-result strong{font-size:14px}}
@media print{.chromatic-card{break-inside:avoid}.chromatic-grid{grid-template-columns:1fr 1fr}.chromatic-card svg{max-height:110mm}.bridge-install-steps .panel-image{max-width:90mm}.panel-image>.annotated-image{max-width:90mm!important}.panel-image>.annotated-image>img{max-height:none!important}.panel-1-of-3>.annotated-image>img,.panel-2-of-3>.annotated-image>img,.panel-3-of-3>.annotated-image>img{width:300%!important}.panel-2-of-3>.annotated-image>img{margin-left:-100%!important}.panel-3-of-3>.annotated-image>img{margin-left:-200%!important}.panel-2-of-2>.annotated-image>img{width:200%!important;margin-left:-100%!important}}
.bow-explorer .part-visual{min-width:0;width:100%;padding-block:20px}
.bow-explorer .part-visual .part-overlay{top:20px;height:calc(100% - 40px)}
.bow-explorer .map-pin{width:34px;height:34px;min-height:34px;font-size:13px;padding:0}
.part-detail{display:block;max-width:480px;margin:15px auto}.bow-explorer .part-detail-window{aspect-ratio:2/1}
.on-string-labels{position:absolute;inset:0;pointer-events:none}.on-string-labels b{position:absolute;top:49%;transform:translate(-50%,-50%);display:grid;place-items:center;width:30px;height:32px;border:2px solid #fff;border-radius:50%;background:#183f36;color:white;font-size:18px;box-shadow:0 1px 5px #0005}
.octave-help{padding:20px;background:#f2ecdd;border-left:3px solid #af8643}
.bridge-alignment-pictures{display:grid;grid-template-columns:1fr 1fr;gap:16px}.bridge-alignment-pictures figure{margin:14px 0}
.v8-figure{position:relative}.v8-figure img{height:auto;max-height:none;object-fit:contain}.compare-labels{display:flex;justify-content:space-between;gap:10px;padding:8px 12px;background:#f8f7ed;border-bottom:1px solid #c9d4c3;color:#244c37;font-size:13px;font-weight:bold}.compare-labels span:last-child{color:#8f3629}
.rotation-cue{display:flex;align-items:center;gap:16px;padding:12px 16px;background:#f3ecd9;border:1px solid #b7a06e;color:#413422}.rotation-cue>span{font-size:45px;line-height:1}.rotation-cue p{font-size:14px;line-height:1.5;margin:0}
.contact-step-guide{display:grid;grid-template-columns:1fr 1fr;gap:16px}.contact-diagram{background:#f4f3eb;border:1px solid #cbd4c5;padding:18px;margin:30px 0}.contact-diagram h3{font-size:16px}.contact-diagram svg{display:block;width:100%;max-height:320px}.contact-diagram p{font-size:13px}
.note-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:24px 0}.note-card{border:1px solid #bdcdbb;background:#f6f4eb;border-radius:6px;padding:12px;max-width:280px}.note-card h3{font-size:17px;margin:0 0 8px}.note-card p{font-size:13px;margin:8px 0 0}.finger-map{width:100%;max-height:235px;display:block}.steps .note-card{margin:18px 0}.pattern-compare{border:1px solid var(--line);padding:20px}.pattern-compare h3{font-size:19px;letter-spacing:1px}.reading-example{margin:18px 0;padding:24px;border:1px solid #a5bea5;background:#edf3ec}.example-meter{font-size:20px;letter-spacing:2px;color:#315f3b}
.tuner-widget{padding:26px;border:1px solid #a3baa0;border-radius:9px;background:#eef2e8;scroll-margin-top:calc(var(--header) + 20px);margin:30px 0}.tuner-widget h2{margin-top:0}.tuner-strings,.tuner-actions{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}.tuner-strings button{flex:1;min-width:60px;background:#fff}.tuner-strings button[aria-pressed=true]{background:#244d3d;color:#fff}.tuner-readings{display:flex;align-items:center;gap:16px;flex-wrap:wrap;min-height:90px}.tuner-readings [data-tuner-note]{font-size:48px;color:#214631;font-variant-numeric:tabular-nums}.tuner-readings [data-tuner-frequency],.tuner-readings [data-tuner-cents]{font-size:18px;font-variant-numeric:tabular-nums}.tuner-meter{--needle:50%;height:44px;margin:12px 6px;position:relative;background:linear-gradient(90deg,#e1c49d 0 43%,#9ebf98 47% 53%,#e1c49d 57%);border-radius:8px}.tuner-meter i{position:absolute;width:3px;top:0;bottom:0;left:50%;background:#376244}.tuner-meter>span{position:absolute;left:var(--needle);top:-6px;bottom:-6px;width:4px;background:#3f3c32;transform:translateX(-50%);transition:left .12s}.tuner-meter[data-in-tune=true]>span{background:#17612d}.tuner-scale{display:flex;justify-content:space-between;font-size:11px;color:#3c523c}.tuner-widget [role=status]{padding:14px;background:#fff;border-radius:5px;min-height:64px;font-weight:600;font-size:15px}.tuner-privacy{font-size:13px!important;color:#4f6050}.tuner-widget button:disabled{opacity:.5;cursor:default}
.image-stage{height:54dvh;max-height:54dvh;display:flex;align-items:center;justify-content:center;overflow:hidden;touch-action:none;cursor:default}.image-stage.is-original{cursor:grab}.image-stage #zoom-image,.image-stage.is-original #zoom-image{width:auto;max-width:100%;height:auto;max-height:100%;object-fit:contain;flex-shrink:0;user-select:none;transform-origin:center}.image-stage.is-original:active{cursor:grabbing}#image-dialog{max-height:94dvh;overflow:hidden}#zoom-caption{max-height:none;font-size:12px;line-height:1.45}.dialog-header{margin-bottom:12px}
@media(max-width:760px){.sidebar{position:absolute;height:auto;overflow:visible;max-height:none;top:var(--header)}.bow-explorer .map-pin{width:26px;height:26px;min-height:26px;font-size:11px}.bow-explorer .map-pin:nth-of-type(2){--y:88%!important}.bow-explorer .map-pin:nth-of-type(3){--y:10%!important}.bridge-alignment-pictures,.contact-step-guide{grid-template-columns:1fr}.note-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.tuner-widget{padding:18px}.tuner-widget h2{font-size:25px}.tuner-actions button{padding:9px 12px;font-size:13px}.on-string-labels b{width:23px;height:26px;font-size:14px}.image-stage{height:43dvh;max-height:43dvh}#zoom-caption{font-size:10px}.part-detail-window{max-height:280px}.comparison-image .compare-labels{font-size:11px}}
@media print{.part-detail{display:none!important}.note-grid{grid-template-columns:repeat(4,1fr)}.note-card{break-inside:avoid}.finger-map{max-height:42mm}.tuner-widget{break-inside:avoid}.tuner-actions,.tuner-meter,.tuner-scale,.tuner-readings{display:none}.bridge-install-steps>li{break-inside:avoid}.bridge-alignment-pictures{display:block}.v8-figure{max-width:155mm}.v8-figure img{max-height:130mm}.rotation-cue p{font-size:9pt}.tuner-widget [role=status]{display:none}.comparison-image .compare-labels{font-size:8pt}}
/* Reserve room for controls and the complete source caption on short screens. */
@media screen{#image-dialog[open]{display:flex;flex-direction:column;height:94dvh}#image-dialog>.dialog-header,#image-dialog>.image-controls,#zoom-caption{flex-shrink:0}#image-dialog>.image-stage{flex:1 1 auto;min-height:0}#zoom-caption{margin-bottom:0}}
