/* Editorial foundations. Engraved music retains its notation fonts. */
:root,html:lang(en),html:lang(zh){
 --font-ui:"Helvetica Neue",Helvetica,Arial,"PingFang SC","Microsoft YaHei",sans-serif;--sans:var(--font-ui);--serif:var(--font-ui);
 --bg:#f8f3e8;--paper:var(--bg);--surface:#fffcf5;--panel:var(--surface);--ink:#302521;--muted:#6d6055;--line:#d8c9b3;--control-border:#9c8972;
 --brand:#692831;--wine:#692831;--wine-dark:#4e1c25;--brass:#a48755;--interaction-hover:#eee4d6;--learning:var(--action-learn);--wood:var(--brand);--green:var(--success);--success:#40645b;--tint-success:#e9eeea;--warning:#795710;--error:#9e3434;--focus:#96533f;
 --action-learn:#4b3934;--action-learn-strong:#352622;--tint-learn:#eee4dd;--action-practice:#96533f;--action-practice-strong:#783e30;--tint-practice:#f2e7e1;--attention:#95651f;--tint-attention:#f4e5c5;--performance-low:#a25745;--tint-low:#f7e5de;
 --radius-control:0px;--radius-card:0px;--content-max:75rem;--reading-max:45rem;--ease-out:cubic-bezier(.2,.8,.2,1);color:var(--ink);background:var(--bg);font:16px/1.6 var(--font-ui)
}
*,*::before,*::after{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--font-ui);line-height:1.6}body button,body input,body select,body textarea{font-family:var(--font-ui)}
body h1,body h2,body h3,body h4,html:lang(en) h1,html:lang(en) h2,html:lang(en) h3,html:lang(en) h4{font-family:var(--font-ui);font-weight:400;color:var(--ink);line-height:1.2}
h1{font-size:clamp(34px,4.5vw,56px)}body h2{font-size:30px}body h3{font-size:22px}
html:lang(en) h1,html:lang(en) h2,html:lang(en) h3{letter-spacing:-.025em}html:lang(zh) h1,html:lang(zh) h2,html:lang(zh) h3{letter-spacing:0}
p{overflow-wrap:break-word}a{text-underline-offset:5px}a,button,input,select,summary{touch-action:manipulation}button,input,select{font-size:16px;min-height:44px}button{cursor:pointer}button:disabled{cursor:default}
input,select,textarea{border:1px solid var(--control-border);border-radius:0;color:var(--ink);background:transparent}input,select{padding:10px 12px}button,a,input,select,summary{scroll-margin-top:24px}
body :focus-visible{outline:2px solid var(--focus);outline-offset:5px}html{scroll-padding-top:24px}body .small{font-size:14px;color:var(--muted);line-height:1.6}body .eyebrow{font:400 12px/1.5 var(--font-ui);letter-spacing:.07em;color:var(--muted)}
.site-shell{width:calc(100% - 96px);max-width:var(--content-max);margin:auto}.masthead{background:var(--bg);border:0;border-bottom:1px solid var(--line)}
.desk-header,.masthead .desk-header{display:flex;align-items:center;gap:40px;min-height:94px;height:auto;padding:16px 0;border:0;max-width:var(--content-max);margin:auto;font:15px/1.4 var(--font-ui)}
body>.desk-header{width:calc(100% - 96px);border-bottom:1px solid var(--line)}
.desk-header .desk-brand{display:inline-flex;align-items:center;gap:12px;color:var(--ink);font:500 25px/1 var(--font-ui);letter-spacing:.055em;text-decoration:none;flex-shrink:0;min-height:44px}
.desk-brand img{width:26px;height:26px;flex:none}.desk-brand-dot{display:none}
.desk-header .desk-nav{display:flex;align-items:center;gap:16px;justify-content:flex-start;margin-left:auto;font:400 14px/1.4 var(--font-ui)}
.desk-header .desk-nav-link{min-height:44px;display:inline-flex;align-items:center;padding:10px 8px;text-decoration:none;color:var(--muted);border-bottom:2px solid transparent;transition:color .16s,border-color .16s,background .16s}
.desk-header .desk-primary-nav{font-weight:500;color:var(--wine)}.desk-header .desk-nav-link:hover,.desk-header .desk-nav-link[aria-current=page]{color:var(--wine-dark);border-color:var(--wine);background:var(--interaction-hover);text-decoration:none}
body:not(.atelier-home) .desk-header #course-link{color:var(--action-learn)}body:not(.atelier-home) .desk-header #course-link:hover,body:not(.atelier-home) .desk-header #course-link[aria-current=page]{color:var(--action-learn-strong);background:var(--tint-learn);border-color:var(--action-learn)}
.desk-header .desk-header-tools{display:flex;align-items:center;flex:none}.desk-header .desk-language{font:400 13px/1.4 var(--font-ui);text-decoration:none;min-height:44px;min-width:44px;display:inline-flex;align-items:center;justify-content:center;padding:8px 0;border:0;border-radius:0;color:var(--muted);background:transparent}.desk-header .desk-language:hover{color:var(--ink);text-decoration:underline}
.desk-header .desk-nav .desk-donate{padding:10px 16px;border:1px solid var(--action-practice);background:var(--action-practice);color:var(--surface);font-weight:500;white-space:nowrap}
.desk-header .desk-nav .desk-donate:hover,.desk-header .desk-nav .desk-donate:active{background:var(--action-practice-strong);border-color:var(--action-practice-strong);color:var(--surface)}
.atelier-home .desk-header .desk-nav .desk-donate{background:#e4c99f;border-color:#e4c99f;color:#4e1c25}
.atelier-home .desk-header .desk-nav .desk-donate:hover,.atelier-home .desk-header .desk-nav .desk-donate:active{background:#f3ddba;border-color:#f3ddba;color:#4e1c25}
@media(max-width:520px){.desk-header .desk-nav{flex-wrap:wrap}.desk-header .desk-nav .desk-nav-link{padding-inline:4px}.desk-header .desk-nav .desk-donate{padding-inline:10px}}
.sr-only:not(:focus):not(:active){position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
body .primary,body .secondary,body .primary-btn,body .secondary-btn{font:400 15px/1.4 var(--font-ui);min-height:46px;padding:12px 20px;border-radius:0;display:inline-flex;gap:12px;align-items:center;justify-content:center;text-decoration:none;transition:background-color .16s,border-color .16s,color .16s;cursor:pointer;box-shadow:none}
body .primary,body .primary-btn{background:var(--wine);border:1px solid var(--wine);color:var(--surface)}body .primary:hover,body .primary-btn:hover{background:var(--wine-dark);border-color:var(--wine-dark)}
body .secondary,body .secondary-btn{background:var(--surface);color:var(--wine);border:1px solid var(--control-border)}body .secondary:hover,body .secondary-btn:hover{background:var(--interaction-hover);border-color:var(--wine)}body .primary:active,body .primary-btn:active{filter:brightness(.94)}
body .primary:disabled,body .secondary:disabled,body .primary-btn:disabled,body .secondary-btn:disabled{background:#e4dcd0;border-color:#c9bdac;color:#756a5d;opacity:1;cursor:not-allowed;filter:none}
.practice-app main{max-width:var(--content-max);width:calc(100% - 96px);padding:36px 0 80px;min-height:70vh}
.practice-app footer{width:calc(100% - 96px);max-width:var(--content-max);padding:28px 0 36px;font-size:13px;line-height:1.7;align-items:center;flex-wrap:wrap;border-top:1px solid var(--line)}.practice-app footer button{min-height:44px;text-decoration:underline;text-underline-offset:4px}
.practice-app footer a{display:inline-flex;align-items:center;min-height:44px;color:var(--wine);text-decoration:none}.practice-app footer a:hover{text-decoration:underline}
.practice-app .grade-nav{display:flex;margin-bottom:40px;background:transparent;padding:0;border-radius:0;width:fit-content;max-width:100%;gap:24px;flex-wrap:wrap;border:0;border-bottom:1px solid var(--line)}
.practice-app .grade-nav a{font-size:14px;min-height:44px;display:inline-flex;align-items:center;padding:8px 0;color:var(--muted);border-radius:0;border-bottom:1px solid transparent}.practice-app .grade-nav a[aria-current=page]{background:transparent;color:var(--ink);border-color:var(--ink);font-weight:500;box-shadow:none}
.practice-app .hero{grid-template-columns:1fr 1fr;gap:80px;padding:4px 0 48px;align-items:center}.practice-app .hero h1{font-size:clamp(34px,4vw,50px);font-weight:400;line-height:1.12;margin:16px 0 24px;max-width:520px}
.practice-app .hero .intro{font-size:17px;line-height:1.7;max-width:450px;color:var(--muted)}
.practice-app .hero .paper{background:transparent;box-shadow:none;border:0;border-left:1px solid var(--line);border-radius:0;padding:12px 0 12px 48px;min-width:0}
.practice-app .hero .paper h3{font-size:18px;font-weight:400;margin-top:0}.practice-app .hero .paper-caption{font-size:13px;border:0;padding:12px 0 0;color:var(--muted)}.practice-app .hero .score{min-height:150px;background:transparent}.practice-app .hero .small{font-size:13px;margin:16px 0 0}
.practice-app .course-overview{grid-template-columns:1.2fr 1fr;gap:64px;padding:22px 0;margin:0 0 42px;border-block:1px solid var(--line)}.practice-app .course-overview>p{font-size:14px;line-height:1.65;max-width:620px;color:var(--muted)}
.practice-app .course-facts{font-size:13px;gap:30px}.practice-app .course-facts strong{font-size:23px;font-weight:400}.practice-app .course-facts a{font-size:13px;color:var(--ink)}
.practice-app .course-resume{display:flex;align-items:center;justify-content:space-between;gap:28px;padding:22px 0;background:transparent;border:0;border-bottom:1px solid var(--line);border-radius:0;margin-bottom:36px}.practice-app .course-resume p{margin:0}.practice-app .course-resume strong{font-weight:500}
.practice-app .section-head{gap:20px;flex-wrap:wrap}.practice-app .section-head h2{font-size:30px;font-weight:400}.practice-app .exam-entry{padding:36px 0;border-radius:0;background:transparent;box-shadow:none;margin-top:64px;border:0;border-block:1px solid var(--line)}
.practice-app .exam-entry h2{font-size:30px;font-weight:400}.practice-app .exam-entry>p:not(.eyebrow){font-size:17px;max-width:640px;line-height:1.7;color:var(--muted)}
.practice-app .exercise{max-width:800px}.practice-app .exercise h1{font:400 28px/1.45 var(--font-ui);letter-spacing:0}.practice-app .exercise-top a{font-size:14px}.practice-app .score-box{background:var(--surface);border:0;border-block:1px solid var(--line);border-radius:0}
.practice-app .choices button,.practice-app .feedback{border-radius:0;box-shadow:none}.practice-app .exam-score-number,.practice-app .result-stat{font-family:var(--font-ui);font-variant-numeric:tabular-nums}.practice-app .exam-nav button{min-width:44px;min-height:44px;border-radius:0}
.practice-app dialog{border-radius:0;border:1px solid var(--control-border);padding:32px;background:var(--surface)}.practice-app .exam-summary,.practice-app .exam-recommendation,.practice-app .result-card,.practice-app .exam-domain{border-radius:0;box-shadow:none}
.practice-app .exam-domain{padding:24px 0;background:transparent;border:0;border-top:1px solid var(--line);border-radius:0}
.practice-app .exam-domain-grid{gap:16px 32px}.practice-app .exam-domain h3{font-size:20px;font-weight:400}
.practice-app .exam-domain .small,.practice-app .exam-evidence{font-size:14px;line-height:1.7}
.practice-app .exam-band-label{font-size:13px;font-weight:500}.practice-app .exam-domain-score>span{font-size:13px}
.practice-app .exam-navigator{border:0;border-left:1px solid var(--line);background:transparent;border-radius:0}
.practice-app .exam-score-frame,.practice-app .exam-review-question{border-radius:0;box-shadow:none}
@media(max-width:800px){.practice-app .exam-navigator{border:0;border-top:1px solid var(--line);padding:24px 0}}
@media(max-width:1024px){.desk-header,.masthead .desk-header{gap:24px}.desk-header .desk-nav{gap:20px}.desk-header .desk-brand{font-size:22px}.practice-app .hero{gap:36px}.practice-app .hero .paper{padding-left:28px}.practice-app .course-overview{gap:32px}}
@media(max-width:800px){.site-shell,.practice-app main,.practice-app footer,body>.desk-header{width:calc(100% - 48px)}.desk-header,.masthead .desk-header{flex-wrap:wrap;gap:4px 20px;padding:12px 0;min-height:0}.desk-header .desk-brand{min-height:44px}.desk-header .desk-header-tools{margin-left:auto;order:1}.desk-header .desk-nav{order:2;flex:0 0 100%;margin:0;justify-content:space-between;gap:12px}.desk-header .desk-nav-link{font-size:14px;min-height:40px}.practice-app .hero{grid-template-columns:1fr;gap:32px}.practice-app .hero h1{font-size:40px;max-width:600px}.practice-app .hero .paper{max-width:100%;padding:24px 0 0;border:0;border-top:1px solid var(--line)}.practice-app .course-overview{grid-template-columns:1fr;gap:16px;margin-bottom:32px}.practice-app .course-facts{justify-content:flex-start}.practice-app .course-resume{align-items:flex-start;flex-direction:column;gap:16px}.practice-app footer{flex-direction:column;align-items:flex-start;gap:8px}}
@media(max-width:520px){.site-shell,.practice-app main,.practice-app footer,body>.desk-header{width:calc(100% - 40px)}.desk-header .desk-brand{font-size:21px;letter-spacing:.045em}.desk-brand img{width:23px;height:23px}.desk-header .desk-nav{gap:6px}.desk-header .desk-nav-link{font-size:13px}.desk-header .desk-language{padding:8px 0}.practice-app main{padding-top:24px}.practice-app .grade-nav{margin-bottom:28px;gap:24px}.practice-app .hero{padding-bottom:32px}.practice-app .hero h1{font-size:34px}.practice-app .hero .intro{font-size:16px}.practice-app .course-facts{flex-wrap:wrap;gap:24px}.practice-app .exercise h1{font-size:24px}.practice-app .exercise-top{align-items:flex-start}.practice-app .exercise-tools{align-items:flex-start;flex-wrap:wrap}.practice-app .choices{grid-template-columns:1fr}.practice-app .section-head h2,.practice-app .exam-entry h2{font-size:26px}.practice-app .exam-entry{margin-top:40px;padding:28px 0}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.001ms!important;animation-iteration-count:1!important;transition:none!important}}

