
@font-face{font-family:QimingSubjectsSerif;src:url('/design-assets/qiming-subjects-serif.woff2') format('woff2');font-display:swap;font-weight:600 700}
:root{--subject-green:#225c43;--subject-green-wash:#e4ecdd;--subject-chinese:#79452f;--subject-chinese-wash:#f0e5d9;--subject-math:#295269;--subject-math-wash:#e0e9ed;--subject-rule:#d9dfd1;--subject-muted:var(--edition-muted);--subject-gutter:40px}
:root[data-theme=dark]{--subject-green:#c1dbbd;--subject-green-wash:#294834;--subject-chinese:#edc8af;--subject-chinese-wash:#493b30;--subject-math:#b4d5e3;--subject-math-wash:#293f4d;--subject-rule:#3c5746}
*{box-sizing:border-box}body{margin:0}a{color:inherit;text-decoration:none}button{font:inherit;cursor:pointer}svg{display:block;width:24px;height:24px;flex-shrink:0}h1,h2,h3,p{margin:0}.subject-page h1,.subject-page h2{font-family:QimingSubjectsSerif,SimSun,serif;font-weight:650;letter-spacing:-.025em}.subject-main,.subject-footer{max-width:1160px;width:calc(100% - var(--subject-gutter)*2);margin-inline:auto}.subject-main{padding:28px 0 48px}.subject-welcome{margin:12px 0 32px;display:flex;align-items:end;justify-content:space-between;gap:24px}.subject-welcome h1{font-size:clamp(36px,4vw,50px);line-height:1.28}.subject-welcome p{font-size:17px;color:var(--subject-muted);padding-bottom:4px}.subject-doors{display:grid;gap:12px;scroll-margin-top:24px}.subject-door{display:grid;grid-template-columns:64px minmax(0,1fr) auto;align-items:center;gap:24px;min-height:138px;padding:24px 30px;border-radius:12px;transition:filter .2s}.subject-door:hover,.subject-branch:hover{filter:brightness(.97)}.subject-door--english{color:var(--subject-green);background:var(--subject-green-wash)}.subject-door--chinese{color:var(--subject-chinese);background:var(--subject-chinese-wash)}.subject-door--math{color:var(--subject-math);background:var(--subject-math-wash)}.subject-glyph svg{width:42px;height:42px}.subject-door h2{font-size:30px;line-height:1.3}.subject-door-copy>p{margin-top:6px;font-size:16px}.subject-taxonomy{display:block;font-size:13px;margin-top:9px}.subject-door-end{display:flex;align-items:center;gap:20px;font-size:14px;font-weight:600;white-space:nowrap}.subject-door-end svg{width:26px;height:26px}.subject-utilities{margin-top:32px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px}.subject-utilities>a{min-height:100px;padding:18px 0;display:flex;gap:16px;align-items:center;justify-content:space-between;border-top:1px solid var(--subject-rule)}.subject-utilities h2{font-family:var(--font);font-size:18px;font-weight:600;line-height:1.5}.subject-utilities p{font-size:14px;color:var(--subject-muted);margin-top:6px}.subject-utilities svg{width:19px;height:19px}.subject-footer{display:flex;align-items:center;gap:24px;padding:20px 0 32px;font-size:13px;color:var(--subject-muted);border-top:1px solid var(--subject-rule)}.subject-footer>a:first-child{font-size:16px;font-weight:600;color:var(--edition-ink)}.subject-footer>a{min-height:44px;display:flex;gap:8px;align-items:center}.subject-footer>a:last-child{margin-left:auto}.subject-footer svg{width:18px;height:18px}.subject-intro{padding:12px 0 32px}.subject-intro h1{font-size:44px;line-height:1.3}.subject-lead{font-size:22px;margin-top:14px;line-height:1.5}.subject-intro p:not(.subject-lead){margin-top:10px;color:var(--subject-muted);font-size:16px}.subject-branches{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.subject-branch{display:flex;align-items:center;gap:24px;padding:32px 28px;min-height:176px;border-radius:12px}.subject-branch--chinese{background:var(--subject-chinese-wash);color:var(--subject-chinese)}.subject-branch--math{background:var(--subject-math-wash);color:var(--subject-math)}.branch-symbol svg{width:36px;height:36px}.subject-branch>svg{margin-left:auto;width:22px;height:22px}.subject-branch h2{font-size:27px}.subject-branch p{font-size:15px;margin-top:9px}.branch-status{display:block;font-size:13px;margin-top:12px}.subject-availability{margin:26px 0 12px;color:var(--subject-muted);font-size:15px}.subject-text-link{display:inline-flex;gap:10px;align-items:center;min-height:44px;font-size:15px;text-decoration:underline;text-underline-offset:5px}.subject-text-link svg{width:18px;height:18px}.subject-empty{padding:38px 40px 40px;border-radius:12px;background:var(--edition-quiet);max-width:780px}.empty-symbol svg{width:40px;height:40px;color:var(--subject-muted)}.subject-empty h2{font-family:var(--font);font-size:24px;line-height:1.4;margin-top:20px}.subject-empty>p{color:var(--subject-muted);margin-top:12px;font-size:16px;max-width:40em}.subject-empty-actions{display:flex;gap:24px;align-items:center;flex-wrap:wrap;margin-top:28px}.subject-button{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:12px 24px;border-radius:8px;background:var(--edition-action);color:#fffef9;font-weight:600}.subject-skip{position:fixed;top:-100px;left:16px;padding:12px 20px;z-index:200;background:var(--edition-action);color:#fffef9}.subject-skip:focus{top:12px}
@media(max-width:1050px){:root{--subject-gutter:24px}.subject-door{gap:18px;padding:24px}.subject-door-end{gap:14px}.subject-branch{gap:18px;padding:26px 22px}.subject-branch p{max-width:17em}}
@media(max-width:600px){:root{--subject-gutter:20px}.subject-main{padding-top:16px;padding-bottom:28px}.subject-welcome{display:block;margin:4px 0 24px}.subject-welcome h1{font-size:34px;line-height:1.25}.subject-welcome p{font-size:15px;margin-top:14px;padding:0}.subject-door{grid-template-columns:32px minmax(0,1fr) 22px;gap:16px;min-height:130px;padding:20px 18px}.subject-glyph svg{width:30px;height:30px}.subject-door h2{font-size:26px}.subject-door-copy>p{font-size:14px;line-height:1.6;margin-top:5px}.subject-taxonomy{font-size:12px;line-height:1.75;margin-top:7px}.subject-door-end>span{display:none}.subject-door-end svg{width:22px;height:22px}.subject-doors{gap:10px}.subject-utilities{grid-template-columns:1fr;gap:0;margin-top:22px}.subject-utilities>a{min-height:82px;padding:16px 0}.subject-utilities h2{font-size:17px}.subject-utilities p{font-size:13px}.subject-footer{gap:12px;flex-wrap:wrap;padding-top:14px}.subject-footer>span{display:none}.subject-intro{padding-top:4px;padding-bottom:26px}.subject-intro h1{font-size:34px}.subject-lead{font-size:19px;margin-top:12px}.subject-intro p:not(.subject-lead){font-size:15px}.subject-branches{grid-template-columns:1fr;gap:12px}.subject-branch{padding:24px 20px;min-height:148px;gap:18px}.subject-branch h2{font-size:26px}.subject-branch p{max-width:none;font-size:14px}.subject-empty{padding:28px 24px}.subject-empty h2{font-size:22px}.subject-empty>p{font-size:15px}.subject-empty-actions{gap:14px;margin-top:24px}.subject-button{width:100%}.subject-empty-actions .subject-text-link{width:100%;justify-content:center}}
@media(max-width:360px){:root{--subject-gutter:16px}.subject-welcome h1{font-size:31px}.subject-door{gap:12px;padding:18px 14px;grid-template-columns:26px minmax(0,1fr) 18px}.subject-glyph svg{width:26px;height:26px}.subject-door-copy>p{font-size:13px}.subject-taxonomy{font-size:12px}.subject-branch{gap:14px;padding:22px 16px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
