/* A practical music desk: roomy controls, ink-blue structure and legible keys.
   Screen rules deliberately leave the established print references intact. */
@media screen {
 :root{--ink:#1c2743;--muted:#57647b;--green:#344fbb;--light:#edf1ff;--line:#dce2ed}
 body{background:#fff;font-size:16px}
 .site-header{border-top:4px solid #263b80}
 .header-inner{min-height:88px}.brand{letter-spacing:-.035em}
 .nav a{font-size:14px}.nav .nav-tool{background:#edf1ff;border-color:transparent;min-height:46px}
 .mobile-menu summary{min-height:46px;padding-right:8px}.mobile-menu nav a{min-height:46px;display:flex;align-items:center}
 .hero-copy{position:relative}.hero h1{letter-spacing:-.052em;line-height:1.08}
 .hero .eyebrow{font-size:12px}.hero .lead{font-size:18px;line-height:1.7}
 .hero-note{font-size:12px;gap:16px}.hero-note .ui-icon{width:18px;height:18px}
 .hero .actions{gap:20px}.text-link{min-height:44px;font-size:14px}
 .feature-panel,.page-home .feature-panel{background:#243568;color:#fff;padding:22px 22px 0;border:0;border-radius:24px;box-shadow:0 16px 40px -24px #26376366}
 .feature-panel .panel-top{font-size:13px;color:#fff;margin-bottom:18px}
 .feature-panel .panel-top a{color:#fff;display:flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;border:1px solid #7988b7;border-radius:50%}
 .feature-panel .live-dot{background:#f7cc73;width:8px;height:8px}
 .feature-panel .panel-caption,.page-home .feature-panel .panel-caption{border:0;color:#e4eaff;font-size:12px;padding:18px 0}
 .feature-panel .panel-caption span:first-child{color:#f7cc73;font-size:11px}
 .quick-find{background:#f5f7fb;border:0;border-radius:18px;padding:24px 28px;gap:24px}
 .quick-find h2{font-size:19px}.quick-find .eyebrow{font-size:11px;margin-bottom:8px}
 .root-links a{width:47px;height:48px;background:#fff;border-radius:8px;font-size:16px}
 .root-links .all-roots{font-size:13px;background:transparent}
 .section-heading p{font-size:16px;line-height:1.65}.section-heading .eyebrow{font-size:11px}
 .path-card{padding:30px;border-radius:18px;border-color:#dce2ed;border-bottom:4px solid #c5d0f4}
 .path-card:nth-child(2){border-bottom-color:#f0cd84}.path-card:nth-child(3){border-bottom-color:#98cbd0}
 .path-top{gap:20px}.path-top>.ui-icon{width:48px;height:48px;padding:10px;background:#edf1ff;border-radius:14px}
 .path-top>span{font-size:11px}.path-card:nth-child(2) .path-top>.ui-icon{background:#fff5de;color:#87601f}
 .path-card:nth-child(3) .path-top>.ui-icon{background:#eaf6f6;color:#21676c}
 .path-card h3{font-size:27px}.path-card p:not(.path-label){font-size:15px;line-height:1.7}.path-link{font-size:14px;min-height:44px}
 .resource-card{border-radius:16px;padding:27px}.resource-card .tag{font-size:11px}.resource-card p{font-size:15px;line-height:1.7}
 .resource-card .card-bottom{font-size:13px}.card-keyboard{padding:17px 10px 5px;border-radius:9px}
 .learn-section .resource-card{border:1px solid var(--line);border-radius:16px;padding:27px;background:#fafbfe}
 .practice-note{background:#edf1fa;border-radius:20px;padding:38px}.practice-note p:not(.eyebrow){font-size:15px;line-height:1.7}
 .footer{background:#f3f5fa}.footer-group a{font-size:14px;min-height:34px}.footer-group h2{font-size:12px}.footer-intro>span,.footer-bottom p,.footer-links,.footer-links .download{font-size:12px}
 .footer-links a,.footer-links button{min-height:44px;display:inline-flex;align-items:center}
 .page-header .lead{font-size:17px}.sidebar{border-radius:16px;padding:26px}.sidebar h2{font-size:13px}.sidebar li{font-size:14px}.sidebar li a{display:flex;align-items:center;min-height:34px}.sidebar p{font-size:13px}
 .practice-console,.feature-panel .practice-console{padding:26px;background:#fff;color:var(--ink);border:1px solid #dce2ed;border-radius:18px;box-shadow:0 12px 30px -26px #182d65}
 .console-settings{padding:18px 20px;background:#f0f3fb;border-radius:12px;margin-bottom:24px}
 .console-label{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:700;margin:0 0 12px;color:#344576}
 .practice-console .controls,.feature-panel .practice-console .controls,.page-home .feature-panel .controls{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:12px;border:0;padding:0;margin:0}
 .practice-console .control{min-width:0}.practice-console label,.feature-panel .practice-console label{font-size:13px;color:#36415a;letter-spacing:0}
 .practice-console select,.feature-panel .practice-console select{min-height:48px;font-size:16px;padding:10px 12px;background:#fff;border:1px solid #bdc8de;border-radius:8px;width:100%}
 .practice-console .result-heading{display:flex;align-items:center;gap:12px}
 .practice-console .eyebrow{font-size:10px;margin-bottom:7px;letter-spacing:.1em}
 .practice-console .result-title,.feature-panel .practice-console .result-title{font-size:32px;line-height:1.2}
 .console-badge{font-size:11px;color:#5b6781;border:1px solid var(--line);border-radius:20px;padding:5px 10px;white-space:nowrap}
 .practice-console .note-list,.feature-panel .practice-console .note-list{font-size:clamp(22px,3vw,30px);letter-spacing:.045em;line-height:1.65;color:#344fbb;margin:13px 0 3px;overflow-wrap:anywhere}
 .practice-console .formula,.feature-panel .practice-console .formula{font-size:13px;line-height:1.7;color:#57647b}
 .practice-console .play-row{gap:10px;margin-top:19px}
 .button,.button.small,.practice-console .button,.feature-panel .practice-console .button{min-height:48px;font-size:14px;border-radius:9px;padding:11px 16px}
 .practice-console .button.secondary,.feature-panel .practice-console .button.secondary{background:#fff;border-color:#bdc8de;color:#34415c}
 .practice-console .button.secondary:hover,.feature-panel .practice-console .button.secondary:hover{background:#edf1ff;color:#243568}
 .practice-console .audio-status,.feature-panel .practice-console .audio-status,.page-home .feature-panel .audio-status{color:#57647b;font-size:12px;line-height:1.6;min-height:20px;margin:11px 0 15px}
 .keyboard-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid var(--line);padding-top:7px;font-size:12px;color:#57647b}
 .keyboard-zoom{border:0;border-radius:7px;background:#edf1ff;color:#344fbb;font:inherit;font-weight:650;min-height:44px;padding:8px 12px}
 .keyboard-zoom:hover{background:#e0e7ff}.keyboard-zoom[aria-pressed=true]{background:#344fbb;color:#fff}
 .practice-console .keyboard-box,.feature-panel .practice-console .keyboard-box,.page-home .feature-panel .keyboard-box{overflow-x:auto;overscroll-behavior-x:contain;margin:10px 0 12px;padding:18px 10px 10px;background:#f2f4f9;border-radius:10px;scrollbar-color:#a5b1cf #edf1ff}
 .practice-console .keyboard,.feature-panel .practice-console .keyboard,.page-home .feature-panel .keyboard{max-height:230px}
 .practice-console.keys-enlarged .keyboard{min-width:680px;max-height:none}
 .practice-console .fine,.feature-panel .practice-console .fine{font-size:12px;color:#57647b;line-height:1.6;display:block!important;margin-bottom:0}
 .zoom-help{display:none}.keys-enlarged .zoom-help{display:block;margin-top:6px;font-weight:600}
 .practice-console .print-row{margin-top:20px;padding-top:18px;gap:12px}.practice-console .download{min-height:44px;font-size:13px;padding:9px}
 .no-js .console-settings,.no-js .keyboard-toolbar{display:none}
 .table-wrap{max-width:100%}.layout>*{min-width:0}
 .ed-topic-links a,.ed-pagination a,.ed-read{min-height:44px;display:inline-flex;align-items:center}.ed-card{border-radius:16px}.ed-card-copy{padding:25px}.ed-toc summary{min-height:44px}
 a:focus-visible,button:focus-visible,select:focus-visible,summary:focus-visible,[data-keyboard]:focus-visible{outline:3px solid #687cd5;outline-offset:4px}
 @media(min-width:761px){.page-home .hero{gap:44px;padding:52px 0}.page-home .hero-copy{align-self:center}.page-home .hero h1{font-size:clamp(42px,4.2vw,62px)}.compact-console .console-badge{display:none}.compact-console .console-settings{padding:14px}.feature-panel .compact-console{padding:20px}.compact-console .console-label{font-size:12px}.feature-panel .compact-console select{font-size:14px;padding:9px 7px}.feature-panel .compact-console label{font-size:12px}}
 @media(max-width:1000px) and (min-width:761px){.page-home .hero{grid-template-columns:1fr 1.05fr;gap:28px}.feature-panel .compact-console .controls{grid-template-columns:1fr 1.7fr}.feature-panel .compact-console .control:last-child{grid-column:1/-1}.hero-note{gap:10px;line-height:1.9}.hero .actions{gap:8px}}
 @media(max-width:760px){
  .wrap{width:calc(100% - 32px)}.header-inner{min-height:76px}.brand{font-size:18px}.mobile-menu summary{font-size:13px}
  .hero{gap:27px;padding:32px 0}.hero h1{font-size:clamp(38px,8.4vw,54px);margin-bottom:19px}.hero .lead{font-size:16px}.hero .eyebrow{margin-bottom:15px}.hero-note{font-size:11px;gap:10px;margin-top:20px}
  .feature-panel,.page-home .feature-panel{padding:15px 15px 0;border-radius:20px}.feature-panel .panel-top{margin-bottom:12px}
  .practice-console,.feature-panel .practice-console{padding:17px;border-radius:13px}.console-settings{padding:14px;margin-bottom:21px}
  .practice-console .controls,.feature-panel .practice-console .controls{grid-template-columns:minmax(0,1fr) minmax(0,1.55fr);gap:12px}
  .practice-console .control:last-child:nth-child(3),.practice-console .control:only-child{grid-column:1/-1}
  .practice-console .result-title,.feature-panel .practice-console .result-title{font-size:28px}.console-badge{display:none}
  .practice-console .play-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px}.practice-console .play-row [data-play=sequence]:not(:first-child){grid-column:1/-1;grid-row:2}.practice-console [data-stop]{grid-column:2;grid-row:1}
  .practice-console .button,.feature-panel .practice-console .button{font-size:14px;padding:10px 12px;min-height:48px}
  .practice-console .print-row{display:grid;grid-template-columns:1fr}.practice-console .download{justify-self:center}
  .quick-find{padding:21px}.root-links{gap:8px}.root-links a{width:44px;height:46px}.root-links .all-roots{font-size:13px;padding-left:0}
  .section{padding:37px 0}.resource-paths .path-card{border-radius:16px;padding:24px}.path-top>.ui-icon{width:42px;height:42px}.path-card h3{font-size:26px}
  .practice-note{padding:27px}.page-header{padding-bottom:20px}.page-header h1{font-size:clamp(31px,8vw,40px)}.page-header .lead{font-size:16px}.page-header .eyebrow{font-size:11px;margin-bottom:14px}
  .feature-panel .panel-caption{font-size:11px;gap:8px}.feature-panel .panel-caption span:first-child{font-size:10px}
  .ed-card-copy{padding:21px}.table-wrap th,.table-wrap td{padding:12px}
 }
 @media(max-width:360px){.header-inner .brand{font-size:16px;gap:6px}.header-inner .brand img{width:25px}.mobile-menu summary{padding-left:6px}.feature-panel,.page-home .feature-panel{padding:11px 11px 0}.practice-console,.feature-panel .practice-console{padding:13px}.console-settings{padding:12px}.practice-console .controls,.feature-panel .practice-console .controls{grid-template-columns:minmax(0,1fr)}.feature-panel .panel-caption{display:block}.panel-caption span{display:block;margin-bottom:4px}}
}
@media print{.console-settings,.console-badge,.keyboard-toolbar,.zoom-help{display:none!important}.practice-console.keys-enlarged .keyboard{min-width:0!important;max-height:100pt!important}.practice-console .keyboard-box{overflow:visible!important}}

/* The homepage is a short playable introduction; detailed practice lives in the explorer. */
@media screen {
 .page-home .hero{align-items:start;padding:32px 0 40px}
 .page-home .hero-copy{align-self:start;padding-top:28px}
 .page-home .feature-panel{padding:16px;border-radius:20px}
 .page-home .feature-panel .panel-top{margin-bottom:12px}
 .page-home .feature-panel .compact-console{padding:18px}
 .page-home .compact-console .console-settings{padding:0;margin:0 0 16px;background:transparent}
 .page-home .feature-panel .compact-console .controls{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}
 .page-home .compact-console .control:last-child{grid-column:auto}
 .page-home .feature-panel .compact-console .result-title{font-size:28px}
 .page-home .feature-panel .compact-console .note-list{font-size:26px;line-height:1.3;margin:8px 0 3px}
 .page-home .feature-panel .compact-console .play-row{margin-top:12px}
 .page-home .feature-panel .compact-console .audio-status{margin:8px 0 12px}
 .page-home .feature-panel .compact-console .keyboard-box{padding:8px;margin:0;background:#f2f4f9}
 .page-home .feature-panel .compact-console .keyboard{max-height:116px}
 .page-home .feature-panel .panel-caption{padding:12px 2px 0;font-size:12px}
 .page-home .feature-panel .panel-caption a{color:#fff;min-height:44px;display:inline-flex;align-items:center;gap:9px;text-underline-offset:4px}
 @media(max-width:760px){.page-home .hero-copy{padding-top:0}.page-home .hero{padding:28px 0 32px}.page-home .feature-panel{padding:14px}.page-home .feature-panel .compact-console{padding:16px}.page-home .feature-panel .compact-console .result-title{font-size:26px}.page-home .feature-panel .compact-console select{font-size:16px}}
}

/* Warm practice photography and original musical details. No automatic motion. */
@media screen {
 .page-home .hero-copy{padding-top:8px}
 .page-home .hero .lead{max-width:470px}
 .hero-practice{position:relative;isolation:isolate;margin:22px 0 0;border-radius:16px;overflow:hidden;background:#e5dac9}
 .hero-practice img{display:block;width:100%;height:200px;object-fit:cover;object-position:50% 35%}
 .hero-practice:after{content:"";position:absolute;inset:50% 0 0;background:linear-gradient(transparent,#141e34b8);z-index:0;pointer-events:none}
 .hero-practice figcaption{position:absolute;left:20px;bottom:15px;z-index:1;color:#fff;font-size:15px;font-weight:600;letter-spacing:.015em}
 .music-heading{position:relative;isolation:isolate}
 .music-flourish{width:180px;height:auto;pointer-events:none}
 .music-heading>.music-flourish{position:absolute;right:20%;top:-54px;opacity:.7;z-index:-1}
 .music-staff{stroke:#d9bd8a;stroke-width:1.2}
 .music-notes{stroke:#a5742d;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
 .music-notes ellipse{fill:#a5742d;stroke:none}
 .page-home .resources-section{background:linear-gradient(120deg,#fffaf2aa,transparent 75%);border-radius:24px}
 .path-top>.ui-icon{transition:transform .2s ease}
 .path-card:hover .path-top>.ui-icon{transform:rotate(-5deg)}
 .practice-story{display:grid;grid-template-columns:1fr 1fr;overflow:hidden;border-radius:24px;background:#fbf4e8;margin:22px 0 76px;border:1px solid #eee1c9}
 .practice-story-photo{position:relative;min-height:360px;background:#e5dac9}
 .practice-story-photo img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;object-position:55% 50%}
 .photo-label{position:absolute;left:22px;bottom:22px;padding:9px 14px;background:#fff8ebed;border-radius:30px;color:#3b3225;font-size:12px;font-weight:650}
 .practice-story-copy{position:relative;padding:48px 42px;isolation:isolate}
 .practice-story-copy>.music-flourish{position:absolute;right:8px;top:4px;width:120px;opacity:.45;z-index:-1}
 .practice-story-copy .eyebrow{color:#806029;font-size:11px;margin-bottom:16px}
 .practice-story-copy h2{font-size:clamp(30px,3vw,40px);line-height:1.15;margin-bottom:20px;letter-spacing:-.035em}
 .practice-story-copy p:not(.eyebrow){color:#5d594f;font-size:16px;line-height:1.75;margin-bottom:14px}
 .practice-story-copy .button{margin-top:12px}
 .practice-console .keyboard .sounding{fill:#f2c879;stroke:#9b6c17;stroke-width:2;transform:translateY(2px);animation:key-strike .18s ease-out}
 .practice-console .keyboard .black-key.sounding+.black-label{fill:#49320e}
 @keyframes key-strike{from{transform:translateY(0);fill:#ffe5a9}to{transform:translateY(2px);fill:#f2c879}}
 @media(max-width:1000px) and (min-width:761px){.hero-practice img{height:170px}.practice-story-copy{padding:36px 28px}.music-heading>.music-flourish{right:27%;width:140px}}
 @media(max-width:760px){
  .page-home .hero-copy{padding-top:0}.hero-practice{margin-top:22px}.hero-practice img{height:clamp(165px,48vw,230px);object-position:50% 38%}
  .hero-practice figcaption{font-size:13px;left:16px;bottom:14px}
  .music-heading>.music-flourish{right:0;top:-30px;width:110px;opacity:.4}
  .practice-story{grid-template-columns:1fr;margin:12px 0 45px;border-radius:20px}
  .practice-story-photo{min-height:0;aspect-ratio:3/2}.practice-story-copy{padding:30px 25px}
  .practice-story-copy h2{font-size:32px}.practice-story-copy p:not(.eyebrow){font-size:15px}
 }
 @media(prefers-reduced-motion:reduce){.practice-console .keyboard .sounding{animation:none;transform:none}.path-top>.ui-icon{transition:none}.path-card:hover .path-top>.ui-icon{transform:none}}
}
@media print{.hero-practice,.music-flourish,.practice-story{display:none!important}.keyboard .sounding{animation:none!important;transform:none!important}}

.worked-study{margin:28px 0;padding:25px;border:1px solid #d9e0ef;border-radius:15px;background:#fafbfe;max-width:100%}
.worked-study h2{font-size:26px;line-height:1.25;margin-top:0}.worked-study h3{font-size:21px}.worked-study p,.worked-study li{line-height:1.75}.worked-study li+li{margin-top:9px}
.topic-study{margin:28px auto 42px;width:calc(100% - 48px)}.topic-study .table-wrap{margin:20px 0}.topic-study table{width:100%;min-width:560px}
.worked-study .table-wrap:focus-visible{outline:3px solid #687cd5;outline-offset:3px}
@media(max-width:760px){.worked-study{padding:20px}.worked-study h2{font-size:23px}.topic-study{width:calc(100% - 32px)}}
@media print{.worked-study{padding:0;border:0;background:white}.worked-study details>p{display:block}.topic-study{width:100%}}
