/* 選擇中文 · ATELIER EDITION
   Editorial visual layer. Original question bank, rendering and storage untouched.
   Design system: paper / deep pine / warm saffron / chapter-colour folios. */
:root{
  --ink:#182f2b;--muted:#63736d;--primary:#15594b;--primary-dark:#124e43;
  --light-green:#eef4ee;--pale:#f8f6f0;--surface:#fffefa;--line:#e6e4db;
  --gold:#e6b65c;--brand-forest:#133e36;--brand-teal:#125b4d;
  --brand-gold:#f2cb76;--brand-cream:#faf7ed;
  --shadow:0 18px 50px rgba(23,49,42,.07);
  --soft-shadow:0 5px 20px rgba(27,47,39,.04);
  --atelier-serif:"Noto Serif TC","Source Han Serif TC","Songti TC","PMingLiU",serif;
}
html{scroll-padding-top:110px}
body{background:var(--pale);color:var(--ink);letter-spacing:.004em}
body::before{content:"";position:fixed;inset:0;z-index:-2;pointer-events:none;background-image:radial-gradient(#46564c 0.35px,transparent .35px);background-size:7px 7px;opacity:.065}
p{color:var(--muted)}
::selection{background:#e6c777;color:#173d34}
.shell{width:min(1320px,calc(100% - 96px))}
.decor-top{width:580px;height:580px;top:-360px;left:-400px;background:#e5e4d7;opacity:.6}
:focus-visible{outline:3px solid #c78d25;outline-offset:4px}
.site-header{position:sticky;top:0;z-index:50;background:rgba(248,246,240,.93);border-bottom:1px solid rgba(40,68,55,.13);backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px)}
.header-inner{min-height:84px;gap:24px}
.brand{gap:13px}
.brand .brand-mark{width:43px;height:43px;min-width:43px}
.brand-mark svg{filter:none}
.brand .brand-name{font-size:26px;letter-spacing:-.07em}
.brand-word{color:#1e3831}
.brand-word-em{color:#af6736}
.brand .brand-sub{color:#767f74;font-size:10px;letter-spacing:.09em;font-weight:600}
.nav{gap:7px;padding:5px;border:1px solid #e5e3d9;background:#eeece4;border-radius:999px}
.nav-link{border-radius:99px;min-height:43px;padding:10px 19px;color:#586861;font-size:13px;font-weight:750;transition:background .2s,color .2s,box-shadow .2s}
.nav-link .nav-icon{font-size:16px;opacity:.8}
.nav-link.is-active{background:#fffefa;color:#194d42;box-shadow:0 2px 8px rgba(27,42,36,.075)}
.nav-link:hover{background:#fffdfa;color:#194d42}
.nav-count{background:#c0694e;color:white}
.view{padding-bottom:4px}
.hero{
  isolation:isolate;
  grid-template-columns:minmax(0,1.16fr) minmax(0,.84fr);
  min-height:594px;margin-top:27px;padding:68px clamp(48px,6.3vw,98px);
  background:#143e36;
  border:1px solid #143e36;border-radius:6px 86px 6px 6px;
  gap:28px;overflow:hidden;box-shadow:0 22px 70px rgba(11,45,36,.17);
}
.hero::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:radial-gradient(circle at 85% 18%,rgba(111,164,135,.18),transparent 37%),
    repeating-linear-gradient(90deg,transparent 0,transparent 89px,rgba(255,255,255,.035) 90px),
    linear-gradient(115deg,#153e36 0%,#10342f 100%);
}
.hero:after{width:380px;height:380px;top:-220px;right:-140px;background:transparent;border:1px solid rgba(255,255,255,.14);border-radius:50%;opacity:1;filter:none}
.hero-copy{min-width:0}
.hero .eyebrow{color:#e6d8b4;letter-spacing:.17em;font-size:11px;font-weight:650;margin-bottom:29px}
.hero .sun-dot{background:#eac475;width:7px;height:7px;box-shadow:0 0 0 5px rgba(234,196,117,.13)}
.hero .hero-title{
  display:flex;flex-direction:column;align-items:flex-start;gap:0;white-space:normal;
  font-family:var(--atelier-serif);font-weight:800;letter-spacing:-.068em;
  font-size:clamp(51px,5.35vw,79px);line-height:1.32;margin:0 0 20px;
}
.hero .hero-title .hero-title-first{color:#fbf6e9;white-space:nowrap}
.hero .hero-title .hero-title-second{color:#f2cb76;white-space:nowrap;position:relative}
.hero .hero-title .hero-title-check{
  right:-1.55em;top:-.18em;background:none;border:0;box-shadow:none;
  color:#deab68!important;font-size:.24em;transform:none;width:1.3em;height:1.3em;
}
.hero .hero-tagline{font-size:19px;font-weight:750;letter-spacing:.075em;color:#f5f0de;margin-bottom:14px}
.hero .hero-description{max-width:470px;color:#bfd0c6;line-height:2.0;font-size:14px;font-weight:450}
.hero-actions{margin-top:30px;gap:10px}
.btn{border-radius:10px;min-height:48px;padding:12px 20px;font-size:13px;font-weight:750;box-shadow:none;transition:background .18s ease,transform .18s ease,border-color .18s ease,box-shadow .18s ease}
.btn:not(:disabled):hover{transform:translateY(-2px)}
.btn-primary{background:#1b5b4d;color:white;border-color:#1b5b4d;box-shadow:none}
.btn-primary:hover{background:#0e4237;border-color:#0e4237}
.btn-light{background:#fffefa;color:#224d40;border-color:#e0e2d8}
.btn-light:hover{background:#fff;border-color:#a8b9ac}
.hero-actions .btn-primary{background:#edc877;color:#173b32;border-color:#edc877}
.hero-actions .btn-primary:hover{background:#f9da98;color:#15372e;border-color:#f9da98}
.hero-actions .btn-light{background:transparent;color:#f4f0dd;border-color:rgba(251,247,231,.4)}
.hero-actions .btn-light:hover{background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.75)}
.hero .hero-mini{color:#b7c7bc;font-size:11px;font-weight:500;gap:10px;margin-top:29px}
.hero .hero-mini strong{color:#f4d48a}
.hero .hero-mini i{background:#829c88}
.hero-art{height:370px;perspective:1000px}
.choice-art-ring-one{width:384px;height:384px;right:-25px;top:0;border-color:rgba(237,216,166,.28);border-style:solid}
.choice-art-ring-two{width:302px;height:302px;right:19px;top:41px;border:1px dashed rgba(237,216,166,.26)}
.choice-board{width:min(330px,100%);padding:27px 26px 25px;background:#fcf9ed;border:1px solid #f8f5e7;border-radius:4px;box-shadow:17px 19px 0 rgba(221,184,113,.23),0 28px 55px rgba(0,0,0,.2);transform:rotate(5deg);transition:transform .5s cubic-bezier(.2,.8,.2,1)}
.hero:hover .choice-board{transform:rotate(1deg) translateY(-6px)}
.choice-board-top{color:#718477;letter-spacing:.13em}
.choice-board-top span:last-child{background:#e8eee2;color:#245c4b;border-radius:4px}
.choice-board-title{font-family:var(--atelier-serif);font-weight:800;font-size:22px;color:#24493e;line-height:1.65;margin:15px 0}
.choice-board-title span{color:#a46d40}
.choice-board-option{border:1px solid #e1e7da;background:#fffdf5;min-height:39px;border-radius:4px;font-size:12px;color:#557164;margin-top:8px}
.choice-board-option b{border-radius:3px;background:#eaece2;color:#648075}
.choice-board-option.is-picked{background:#e7efe4;border-color:#a4c7af;color:#235949}
.choice-board-option.is-picked b{background:#2b6552;color:#fff}
.choice-picked-icon{color:#235949}
.choice-art-spark{color:#edc877}
.choice-art-spark-one{font-size:28px;top:14px;right:-8px}
.choice-art-spark-two{color:#c4d5b9;bottom:14px;left:20px}
.choice-art-sticker{background:#edc877;color:#214c3c;border-radius:2px;right:-24px;bottom:30px;padding:10px 17px;box-shadow:6px 7px 0 rgba(10,38,30,.28);font-size:12px}
.learning-path{display:grid;grid-template-columns:1.35fr repeat(3,minmax(0,1fr));gap:0;border-bottom:1px solid #d9dad0;min-height:149px;align-items:center;margin-bottom:58px}
.path-intro{display:flex;flex-direction:column;gap:11px;padding:26px 23px 26px 0}
.path-intro .section-kicker{font-size:10px}
.path-intro strong{font-family:var(--atelier-serif);font-size:21px;letter-spacing:-.02em;color:#283d32}
.path-step{border-left:1px solid #d9dad0;display:flex;flex-direction:column;gap:5px;min-height:92px;justify-content:center;padding:12px 25px}
.path-step .path-index{font-size:10px;color:#926d41;letter-spacing:.12em;font-weight:750}
.path-step strong{font-size:17px;color:#264637;letter-spacing:.02em}
.path-step>span:last-child{font-size:12px;color:#7b8379}
.section-heading{margin:0 0 28px;align-items:end}
.section-heading .section-kicker,.section-kicker{font-size:11px;color:#9b7044;letter-spacing:.14em;font-weight:800}
.section-heading h2{font-family:var(--atelier-serif);font-weight:800;color:#263c34;font-size:clamp(26px,3.1vw,41px);letter-spacing:-.045em;line-height:1.4;margin:10px 0 12px}
.section-heading p{font-size:13px;color:#7c8378}
.tiny-pill{background:#ece9dd;color:#6c756a;font-size:11px;padding:9px 16px;font-weight:650}
.chapter-discover{display:flex;align-items:end;gap:20px;flex-wrap:wrap;margin-bottom:23px;padding:0 0 22px;border-bottom:1px solid #e1e1d8}
.chapter-search-field{position:relative;display:flex;flex-direction:column;gap:7px;min-width:min(350px,100%);flex:1 1 345px}
.chapter-search-field label{font-size:11px;font-weight:800;color:#647668;letter-spacing:.06em}
.chapter-search-field .search-symbol{position:absolute;left:15px;bottom:10px;font-size:27px;line-height:1;color:#607c6b;pointer-events:none}
.chapter-search-field input{height:47px;border:1px solid #d8dbd0;background:#fffefa;border-radius:8px;padding:11px 15px 11px 45px;font-size:13px;color:#1e4537;width:100%;transition:border-color .2s,box-shadow .2s}
.chapter-search-field input::placeholder{color:#89958a}
.chapter-search-field input:focus{border-color:#517b62;box-shadow:0 0 0 3px rgba(58,115,82,.13);outline:none}
.chapter-filter-group{display:inline-flex;gap:4px;padding:4px;background:#ecebe1;border-radius:8px;align-items:center}
.chapter-filter{border:0;background:none;color:#6a786d;min-height:39px;min-width:70px;padding:8px 13px;border-radius:6px;font-weight:750;font-size:12px;transition:background .16s ease,color .16s ease}
.chapter-filter:hover{color:#245748;background:rgba(255,255,255,.5)}
.chapter-filter.is-active{background:#fffefa;color:#1b5749;box-shadow:0 1px 5px rgba(34,48,32,.09)}
.chapter-result-count{font-size:12px;color:#748277;font-weight:650;margin-left:auto;white-space:nowrap;padding-bottom:11px}
.chapter-empty{margin-bottom:20px;padding:38px 20px;text-align:center;border:1px dashed #b7bfb3;background:#fffefa;border-radius:10px}
.chapter-empty strong{font-size:16px;color:#25453b}
.chapter-empty p{font-size:13px;margin:9px 0 18px}
.group-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:17px;align-items:stretch}
.group-card{
  min-height:271px;padding:20px 20px 17px;border-radius:6px 32px 6px 6px;
  background:var(--art-surface,#eef3ea);border:1px solid var(--art-border,#dfe4d9);
  box-shadow:0 4px 14px rgba(27,52,41,.025);
  transition:transform .25s ease,border-color .25s ease,box-shadow .25s ease;
}
.group-card:hover,.group-card:focus-within{transform:translateY(-5px);border-color:rgba(27,77,57,.33);box-shadow:0 16px 32px rgba(32,62,47,.095)}
.group-card:focus-within{outline:3px solid #ab8042;outline-offset:3px}
.group-card .group-number,.group-card:nth-child(3n+2) .group-number,.group-card:nth-child(3n) .group-number{color:#426956;font-size:11px;font-weight:800;letter-spacing:.15em}
.group-card .group-tag{font-size:10px;color:#5b7067;font-weight:650}
.group-card-main{grid-template-columns:minmax(0,1fr) minmax(0,43%);gap:1px;min-height:160px;align-items:center;margin:11px 0 8px}
.group-card .group-card-copy h3{font-family:var(--atelier-serif);font-size:clamp(18px,1.58vw,23px);font-weight:800;line-height:1.48;letter-spacing:-.045em;color:#223b32;word-break:keep-all;overflow-wrap:anywhere}
.group-card .group-card-copy p{margin-top:10px;font-size:11px;font-weight:600;color:#5f786a}
.group-card .group-art{aspect-ratio:220 / 150}
.group-card .group-art .classics-art{transform:scale(1.13);transform-origin:right bottom;filter:saturate(.9);transition:transform .4s cubic-bezier(.2,.75,.2,1)}
.group-card:hover .group-art .classics-art{transform:scale(1.2) translateY(-3px)}
.group-card .group-card-footer{min-height:44px;border-top:1px solid rgba(40,80,61,.17);padding-top:9px}
.group-card .question-total{color:#526f60;font-size:10.5px;font-weight:650}
.group-card .card-start{color:#265c48;font-size:11px;min-height:35px;font-weight:800}
.group-card .cta-arrow{background:#215747;color:#fcf9ed;border-radius:50%;width:33px;height:33px;flex-basis:33px;font-size:17px}
.group-card:hover .cta-arrow{background:#103f34;transform:rotate(45deg)}
.home-footer-note{margin-top:30px;background:#ecece1;border:1px solid #e1e1d5;border-radius:5px 25px 5px 5px;padding:24px 28px;font-size:13px;color:#536e5b;line-height:1.85}
.home-footer-note strong{color:#235444}
.home-footer-note>span{color:#bc8551}
.site-footer{margin-top:64px;padding:35px 0 48px;border-top:1px solid #d9dcd2;color:#77867a;font-size:12px}
.site-footer .footer-brand{font-family:var(--atelier-serif);color:#274d40;font-size:20px}
.site-footer .footer-brand>span{color:#af6736}
.site-footer .footer-brand small{font-family:'Noto Sans TC',sans-serif;font-size:9px;font-weight:600}
.page-top{padding-top:60px;margin-bottom:35px}
.page-top h1{font-family:var(--atelier-serif);color:#233c32;font-size:clamp(35px,4vw,56px);font-weight:800;letter-spacing:-.07em;margin:10px 0 14px}
.page-top p{font-size:14px;max-width:790px;line-height:1.95}
.title-icon{color:#b78349}
.practice-head{margin:39px 0 27px}
.btn-back{font-size:12px;color:#476a59}
.practice-mode{color:#456c58}
.practice-mode>span:first-child{background:#ba8352}
.practice-heading h2{font-family:var(--atelier-serif);font-size:clamp(28px,3vw,39px);letter-spacing:-.04em;color:#243e33}
.practice-heading p{line-height:1.85;color:#6a7a6c}
.practice-summary{margin-bottom:25px}
.session-stats{gap:10px;margin-bottom:23px}
.session-pill{background:#fffefa;border:1px solid #e2e3d9;border-radius:6px;padding:12px 17px;color:#60786a;box-shadow:none}
.session-pill strong{color:#215b47}
.quiz-card{max-width:990px;background:#fffefa;border:1px solid #e2e4d8;border-radius:7px 34px 7px 7px;padding:clamp(28px,5vw,64px);box-shadow:0 14px 46px rgba(26,58,41,.055)}
.quiz-topline{padding-bottom:24px;border-bottom:1px solid #e7e8dc;margin-bottom:26px;gap:10px}
.tag{padding:7px 12px;border-radius:4px;font-size:11px;line-height:1.4}
.tag-soft{background:#ebeee3;color:#275b47}
.tag-outline{background:#f4ede0;color:#7b603a}
.question-index{font-variant-numeric:tabular-nums;color:#6d7a6a}
.question-text{font-family:var(--atelier-serif);font-size:clamp(20px,2.2vw,27px);font-weight:750;line-height:1.95;letter-spacing:.005em;color:#24392f;max-width:100%;text-wrap:pretty}
.question-helper{color:#748379;font-size:12px;margin:13px 0 24px}
.answers{gap:11px}
.answer-button{min-height:75px;padding:16px 19px;gap:16px;border:1px solid #dedfd4;background:#fffefa;border-radius:6px;color:#2b473b;font-size:15px;font-weight:550;line-height:1.8;transition:background .18s,border-color .18s,transform .18s}
.answer-button:not(:disabled):hover{transform:translateX(4px);background:#f3f5ee;border-color:#98b5a0}
.answer-letter{width:37px;height:37px;border-radius:4px;background:#eeefe6;color:#385d4b}
.answer-button.is-correct{background:#e8f4ea;color:#185840;border-color:#79b28c}
.answer-button.is-correct .answer-letter{background:#206449;color:#fff}
.answer-button.is-wrong{background:#fff2ed;color:#983f38;border-color:#d69b8b}
.answer-button.is-wrong .answer-letter{background:#a75343;color:#fff}
.answer-feedback{background:#f0f6ec;border:1px solid #cbdcce;border-left:4px solid #5d9876;border-radius:4px;padding:23px 26px;margin-top:28px}
.answer-feedback.is-error{background:#fff6f0;border-color:#ead1c3;border-left-color:#bc765e}
.feedback-title{font-family:var(--atelier-serif);font-size:18px;color:#246247}
.feedback-explain{color:#345f48;font-size:14px;line-height:2}
.evidence{border-left:3px solid #a5bda9;background:rgba(255,255,255,.65);color:#57705c;padding:15px 17px;font-size:13px;line-height:2}
.quiz-footer{margin-top:28px}
.practice-tail{margin-top:25px;color:#74887b}
.metric-grid{gap:15px}
.metric-card{border-radius:6px 25px 6px 6px;background:#fffefa;border-color:#e2e4d8;padding:28px 24px;box-shadow:none}
.metric-card .metric-label{color:#677a69;font-size:12px;font-weight:650}
.metric-card .metric-number{font-family:var(--atelier-serif);font-size:38px;color:#275f47}
.metric-card .metric-desc{color:#808c7e;font-size:11px}
.list-head{margin:37px 0 22px}
.list-head h2{font-family:var(--atelier-serif);color:#263d32;font-size:26px}
.list-head p{line-height:1.8}
.list-controls select{min-height:45px;border-color:#d8dfd3;border-radius:6px;color:#45604f;background:#fffefa}
.mistake-list,.per-work-stats{gap:10px}
.mistake-item,.stat-row{background:#fffefa;border:1px solid #e3e4db;border-radius:6px;padding:23px 25px}
.stat-row-main strong{color:#2a4b39}
.stat-track{background:#e9e9df;height:9px}
.stat-fill{background:linear-gradient(90deg,#83a88a,#215f48)}
.stat-percent{color:#2b674e}
.status{border-radius:4px;background:#fff0de;color:#8f673e}
.status.done{background:#e7f0e6;color:#22684b}
.empty-state{background:#fffefa;border-radius:7px;border:1px dashed #bbc9b8}
.stats-note{background:#eceee4;border-radius:6px;padding:22px 25px;color:#4e6c56}
.stats-note strong{color:#224d3c}
.manage-card{background:#fffefa;border-radius:7px;padding:30px;border-color:#e2e4d8}
.manage-card h2{font-family:var(--atelier-serif);font-size:22px}
.selection-dialog,.exam-submit-dialog{background:#fffefa;border:1px solid #e6e5da;border-radius:7px 31px 7px 7px;box-shadow:0 28px 78px rgba(18,47,34,.28)}
.selection-dialog::backdrop,.exam-submit-dialog::backdrop{background:rgba(12,35,26,.65);backdrop-filter:blur(5px)}
.dialog-head{padding:30px 32px 21px}
.dialog-head h2,.exam-submit-dialog h2{font-family:var(--atelier-serif);font-size:25px;color:#244737}
.dialog-head p{color:#6c8170;line-height:1.8}
.icon-button{background:#ebede5;color:#476757;border-radius:5px;min-width:42px;min-height:42px}
.dialog-tools{border-color:#e7e7db;padding-inline:32px}
.text-button{color:#1d644c}
.work-options{padding:20px 32px;gap:10px}
.work-choice{border-radius:6px 17px 6px 6px;min-height:88px}
.work-choice[data-art-tone]:has(input:checked){border-color:#2f7055;box-shadow:inset 0 0 0 1px #2f7055}
.work-choice-art{overflow:visible}
.dialog-actions{border-color:#e7e7db;padding:20px 32px 28px}
.toast{background:#173f31;color:#fff9e5;border-radius:6px 18px 6px 6px;font-size:13px}
.exam-setup-card,.exam-map-card,.exam-identity,.exam-breakdown,.exam-image-card{background:#fffefa;border:1px solid #e2e4d8;border-radius:7px 28px 7px 7px;padding:32px;box-shadow:0 5px 28px rgba(30,62,43,.035)}
.exam-section-head h2,.exam-run-top h2{font-family:var(--atelier-serif);color:#283f33;font-size:27px}
.exam-chapter-fieldset legend,.exam-field label{color:#355741}
.exam-work-choice{background:#fffefa;border-radius:5px;min-height:88px}
.exam-work-choice:has(input:checked){background:#ecf1e6;border-color:#357455}
.exam-work-choice input,.work-choice input{accent-color:#245f46}
.exam-field input{border-color:#bdcaba;border-radius:5px;background:#fffefa;color:#284231}
.exam-resume{border-radius:6px;background:#e9f0e3;border-color:#b2ccb7}
.exam-progress{background:#e3e9dc}
.exam-progress>span{background:#2d7351}
.exam-map-card{position:sticky;top:110px}
.exam-question-map button{background:#f7f8f1;color:#2d4d3d;border-color:#d3d9cf;border-radius:4px;min-height:42px}
.exam-question-map button.is-answered{background:#275d46;border-color:#275d46;color:#fff}
.exam-answer-button.is-selected{background:#ecf3e9;border-color:#407f5a;box-shadow:inset 0 0 0 1px #407f5a}
.exam-answer-button.is-selected .answer-letter{background:#266448}
.exam-score-box{background:#fffefa;border-radius:6px;border-color:#e2e4d8}
.exam-score-box:first-child{background:#e8f0e5;border-color:#b9d0bb}
.exam-score-box:first-child>strong{color:#276449}
.exam-score-box>strong{font-family:var(--atelier-serif);color:#2c4637}
.exam-breakdown th{color:#556e5d}
.exam-image-preview{background:#e8e9e0;border-radius:5px}
.exam-mistake{background:#fffefa;border-color:#e2e4d8;border-radius:6px}
.exam-mistake>summary:after,.exam-review-marker{color:#226347}
.exam-mistake-body blockquote{background:#f1f3e9;border-left-color:#8dae92}
.exam-empty{background:#e9f2e7;border-color:#bad0bb;border-radius:6px;color:#286249}
@media(max-width:1130px){
  .shell{width:calc(100% - 60px)}
  .hero{padding:58px 55px;min-height:540px;grid-template-columns:1.15fr .85fr}
  .hero .hero-title{font-size:clamp(44px,5.2vw,64px)}
  .choice-board{width:280px;padding:22px}
  .choice-art-ring-one{width:310px;height:310px}
  .choice-art-ring-two{width:244px;height:244px}
  .group-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .group-card{min-height:250px}
  .group-card .group-card-copy h3{font-size:20px}
  .learning-path{grid-template-columns:1.3fr repeat(3,1fr)}
  .path-step{padding-inline:16px}
}
@media(max-width:900px){
  .shell{width:calc(100% - 44px)}
  .hero{padding:48px 42px;grid-template-columns:minmax(0,1fr) minmax(0,.75fr);min-height:495px;gap:12px;border-top-right-radius:65px}
  .hero .hero-title{font-size:clamp(42px,5.7vw,58px)}
  .hero .hero-description{font-size:13px}
  .hero-art{height:300px}
  .choice-board{width:230px;padding:19px}
  .choice-board-title{font-size:18px}
  .choice-art-ring-one{width:255px;height:255px;right:0;top:18px}
  .choice-art-ring-two{width:203px;height:203px;right:24px;top:44px}
  .choice-art-sticker{right:-8px;bottom:5px}
  .learning-path{grid-template-columns:repeat(3,1fr);padding-top:20px;padding-bottom:23px}
  .path-intro{grid-column:1/-1;padding:4px 0 15px}
  .path-step:first-of-type{border-left:0}
  .group-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .group-card{min-height:263px}
  .group-card .group-card-copy h3{font-size:22px}
  .metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:650px){
  html{scroll-padding-top:128px}
  .shell{width:calc(100% - 30px)}
  .header-inner{min-height:0;padding:11px 0 12px;flex-wrap:wrap;gap:10px;justify-content:center}
  .brand{margin:0 auto}
  .brand .brand-mark{width:35px;height:35px;min-width:35px}
  .brand .brand-name{font-size:21px}
  .brand .brand-sub{font-size:8px;margin-top:3px}
  .nav{width:100%;justify-content:space-between;padding:3px;gap:2px}
  .nav-link{flex:1;justify-content:center;min-width:0;min-height:40px;font-size:11px;padding:7px 5px;gap:5px}
  .nav-link .nav-icon{font-size:14px}
  .nav-link > span:not(.nav-icon):not(.nav-count){display:inline}
  .hero{margin-top:17px;display:block;min-height:0;padding:41px 28px 35px;border-radius:5px 48px 5px 5px}
  .hero .eyebrow{font-size:9px;letter-spacing:.09em;margin-bottom:20px}
  .hero .hero-title{font-size:clamp(40px,10vw,61px);line-height:1.36;letter-spacing:-.08em;margin-bottom:15px}
  .hero .hero-title .hero-title-check{right:-1.35em}
  .hero .hero-tagline{font-size:17px}
  .hero .hero-description{font-size:13px;line-height:1.95}
  .hero-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:26px}
  .hero-actions .btn{min-height:45px;padding:9px 10px;font-size:12px}
  .hero-actions .btn:first-child{grid-column:1/-1;font-size:13px}
  .hero .hero-mini{gap:8px;margin-top:21px;line-height:1.65}
  .hero .hero-art{display:none}
  .learning-path{display:grid;grid-template-columns:1fr 1fr;gap:0;margin-bottom:39px;padding:14px 0 20px}
  .path-intro{grid-column:1/-1;gap:6px}
  .path-intro strong{font-size:19px}
  .path-step{padding:11px 9px 11px 16px;min-height:81px}
  .path-step:first-of-type{border-left:0;padding-left:0}
  .path-step:nth-child(4){grid-column:1/-1;border-left:0;border-top:1px solid #d9dad0;min-height:72px;padding-left:0}
  .path-index{font-size:9px}
  .path-step strong{font-size:14px}
  .path-step>span:last-child{font-size:11px}
  .section-heading{display:block;margin-bottom:22px}
  .section-heading h2{font-size:29px;line-height:1.5;margin-top:7px;margin-bottom:10px}
  .section-heading p{font-size:12px;line-height:1.8}
  .tiny-pill{display:none}
  .chapter-discover{gap:12px;margin-bottom:17px;padding-bottom:16px}
  .chapter-search-field{flex:1 1 100%;min-width:0}
  .chapter-search-field input{font-size:12px;min-height:45px}
  .chapter-filter-group{flex:0 1 auto}
  .chapter-filter{font-size:11px;min-width:62px;min-height:37px;padding:7px 9px}
  .chapter-result-count{font-size:11px;padding-bottom:0;margin-left:auto}
  .group-grid{grid-template-columns:1fr;gap:13px}
  .group-card{min-height:227px;padding:19px 19px 15px;border-radius:5px 28px 5px 5px}
  .group-card-main{min-height:122px;grid-template-columns:minmax(0,1fr) minmax(0,42%);margin:9px 0 7px}
  .group-card .group-card-copy h3{font-size:clamp(22px,6vw,27px);line-height:1.37}
  .group-card .group-card-copy p{font-size:12px}
  .group-card .group-art{aspect-ratio:220/138}
  .group-card .group-art .classics-art{transform:scale(1.18)}
  .group-card .group-card-footer{min-height:43px}
  .group-card .question-total{font-size:11px}
  .group-card .card-start{font-size:12px}
  .group-card .cta-arrow{width:34px;height:34px;flex-basis:34px}
  .home-footer-note{padding:19px;align-items:flex-start;border-radius:5px 20px 5px 5px;margin-top:22px}
  .site-footer{margin-top:46px;padding:26px 0 30px;align-items:start;flex-wrap:wrap}
  .page-top{padding-top:37px;margin-bottom:25px}
  .page-top h1{font-size:38px}
  .page-top p{font-size:13px}
  .practice-head{margin:23px 0 22px}
  .practice-heading h2{font-size:29px}
  .practice-summary{flex-wrap:wrap;align-items:start}
  .practice-summary .btn{margin-left:auto}
  .session-pill{padding:9px 11px;font-size:11px}
  .session-pill strong{font-size:14px}
  .quiz-card{padding:22px 19px 25px;border-radius:5px 24px 5px 5px}
  .question-text{font-size:20px;line-height:1.95}
  .answer-button{min-height:69px;padding:13px 12px;gap:11px;font-size:14px}
  .answer-letter{width:33px;height:33px;flex:0 0 33px}
  .answer-feedback{padding:17px 15px}
  .quiz-footer{flex-wrap:wrap}
  .quiz-footer .btn{margin-left:auto}
  .metric-grid{gap:10px}
  .metric-card{padding:20px 16px}
  .metric-card .metric-number{font-size:29px}
  .list-head{flex-wrap:wrap;align-items:start}
  .list-head h2{font-size:24px}
  .mistake-item,.stat-row{padding:18px 16px;flex-wrap:wrap}
  .stat-row-main{width:100%;min-width:0}
  .stat-row-progress{min-width:150px}
  .manage-card{padding:22px 17px}
  .selection-dialog{width:calc(100vw - 20px);border-radius:5px 24px 5px 5px}
  .dialog-head{padding:23px 19px 15px}
  .dialog-head h2{font-size:21px}
  .dialog-tools{padding:12px 19px;gap:12px}
  .work-options{padding:15px;grid-template-columns:1fr 1fr;gap:8px}
  .work-choice{padding:10px;min-height:95px}
  .work-choice-art{flex-basis:50px;width:50px;height:48px}
  .work-choice-copy b{font-size:11px}
  .work-choice-copy small{font-size:9px}
  .dialog-actions{padding:15px 19px 20px}
  .exam-setup-card,.exam-map-card,.exam-identity,.exam-breakdown,.exam-image-card{padding:20px 16px;border-radius:5px 21px 5px 5px}
  .exam-map-card{position:static}
  .exam-section-head h2,.exam-run-top h2{font-size:23px}
  .exam-work-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .exam-work-choice{padding:13px 10px}
  .exam-run-layout{grid-template-columns:1fr}
  .exam-quiz-card{padding:22px 17px}
  .exam-question-map{grid-template-columns:repeat(6,minmax(0,1fr))}
  .exam-submit-dialog{border-radius:5px 22px 5px 5px}
}
@media(max-width:375px){
  .nav-link{font-size:10px;gap:3px;padding-inline:4px}
  .nav-link .nav-icon{font-size:12px}
  .hero{padding:34px 20px 31px}
  .hero .hero-title{font-size:38px}
  .hero .hero-title .hero-title-check{display:none}
  .hero-actions .btn{font-size:11px}
  .group-card .group-card-copy h3{font-size:21px}
  .path-step{padding-left:10px}
  .chapter-result-count{width:100%;margin-left:0}
  .work-options{grid-template-columns:1fr}
  .work-choice-art{flex-basis:72px;width:72px;height:55px}
}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}
  .hero:hover .choice-board{transform:rotate(5deg)}
  .group-card:hover{transform:none}
  .group-card:hover .group-art .classics-art{transform:scale(1.13)}
}


/* QA pass 2: icon sizing, AA text contrast, comfortable dialog choices and focus. */
.nav-icon{display:inline-grid;place-items:center;flex:0 0 auto}
.nav-icon svg{display:block;width:18px;height:18px}
.brand .brand-sub{color:#4e6659}
.section-heading .section-kicker,.section-kicker{color:#78512b}
.chapter-filter{color:#4e6255}
.chapter-result-count{color:#4c6353}
.chapter-search-field label{color:#465d4c}
.path-step .path-index{color:#795529}
.path-step>span:last-child{color:#4f6151}
.group-card .group-tag{color:#3f6051}
.group-card .question-total{color:#3e6150}
.page-top .section-kicker{color:#78512b}
@media(max-width:650px){
  .nav-icon svg{width:16px;height:16px}
  .work-options{grid-template-columns:1fr}
  .work-choice{min-height:76px;padding:11px 13px}
  .work-choice-art{flex-basis:82px;width:82px;height:58px}
  .work-choice-copy b{font-size:13px}
  .work-choice-copy small{font-size:11px}
}
@media(max-width:375px){
  .nav-icon svg{width:15px;height:15px}
  .work-choice-art{flex-basis:72px;width:72px;height:55px}
}

/* Practice history and gesture navigation — share the examination navigation language. */
#practice-view .quiz-card,#exam-running .exam-quiz-card{touch-action:pan-y}
.practice-pagination{display:flex;gap:11px;align-items:center;justify-content:flex-end;flex-wrap:nowrap}
.practice-pagination .btn{min-width:125px}
.quiz-footer .quiz-footnote{flex:1 1 210px}
.practice-swipe-note,.exam-swipe-note{
  text-align:center;font-size:11px;line-height:1.7;color:#50685a;
  margin-top:17px;letter-spacing:.01em
}
.exam-swipe-note{margin-top:15px}
@media(max-width:650px){
  .quiz-footer{gap:12px;align-items:center}
  .quiz-footer .quiz-footnote{flex:1 1 100%;font-size:11px}
  .practice-pagination{width:100%;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}
  .practice-pagination .btn{min-width:0;width:100%;min-height:46px;padding:10px 13px;font-size:13px}
  .practice-swipe-note,.exam-swipe-note{margin-top:13px;font-size:11px;padding-inline:5px}
}


/* October learning refinements */
.learning-path{display:none!important}
.exam-run-actions,.exam-resume-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:10px}
.exam-run-actions .btn,.exam-resume-actions .btn{min-height:44px}
#exam-abandon,#exam-discard-resume{color:#825046;border-color:#decfc4}
#exam-abandon:hover,#exam-discard-resume:hover{background:#fff4ef;border-color:#cba696}
.question-text .statement-line{
  font-size:.81em;
  line-height:1.62;
  font-family:var(--atelier-serif);
  font-weight:650;
  color:inherit;
  overflow-wrap:anywhere;
}
#practice-view .question-text,#exam-running .question-text{scroll-margin-top:110px}
#practice-view #answer-feedback{scroll-margin-top:110px}
#practice-view .answer-feedback:not([hidden]){overflow-wrap:anywhere}
@media(max-width:650px){
  /* Scroll direction controls compact sticky header without hiding its native navigation. */
  .site-header{will-change:transform;transition:transform .28s ease;transform:translateY(0)}
  .site-header.is-collapsed{transform:translateY(calc(-100% - 2px));pointer-events:none}
  .site-header:focus-within{transform:translateY(0);pointer-events:auto}
  #practice-view .question-text,#exam-running .question-text{scroll-margin-top:145px}
  #practice-view #answer-feedback{scroll-margin-top:145px}
  .question-text .statement-line{font-size:.78em;line-height:1.65}
  .exam-run-top{align-items:stretch}
  .exam-run-actions{width:100%;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .exam-run-actions .btn{font-size:12px;min-width:0;padding:10px 7px}
  .exam-resume-actions{width:100%;display:flex}
  .exam-resume-actions .btn{flex:1 1 auto}
}
@media(prefers-reduced-motion:reduce){
  .site-header{transition:none!important}
}


/* Exam archive: permanent local history and per-report blank policy */
.exam-blank-setting{margin:8px 0 23px;background:#f0f4ed;border:1px solid #d3e0d3;border-radius:13px;padding:17px 19px}
.exam-blank-checkbox{display:flex;align-items:flex-start;gap:13px;cursor:pointer;line-height:1.7}
.exam-blank-checkbox input{accent-color:#266954;flex:0 0 auto;width:21px;height:21px;margin:3px 0 0}
.exam-blank-copy{display:flex;flex-direction:column;gap:4px;min-width:0}
.exam-blank-copy strong{color:#234a3d;font-weight:760;font-size:14px}
.exam-blank-copy small,.exam-blank-setting p{color:#4d6259;font-size:12px;line-height:1.8}
.exam-blank-setting p{margin:8px 0 0 34px}
.exam-archive{margin-top:38px;padding:27px;background:#fbfaf4;border:1px solid #deded4;border-radius:9px 30px 9px 9px}
.exam-archive .exam-section-head{margin-bottom:22px}
.exam-history-list{display:grid;gap:8px;max-height:620px;overflow-y:auto}
.exam-history-entry{display:flex;align-items:center;gap:15px;padding:14px 17px;border:1px solid #d7dfd7;border-radius:11px;background:#fffefa;color:#28483a;text-align:left;width:100%;cursor:pointer;transition:background .15s,border-color .15s}
.exam-history-entry:hover,.exam-history-entry:focus-visible{border-color:#35816a;background:#f0f8ef}
.exam-history-entry.is-selected{background:#eaf3e8;border-color:#548775}
.exam-history-ordinal{color:#718177;font-size:13px;font-weight:800;min-width:28px;font-variant-numeric:tabular-nums}
.exam-history-detail{display:grid;gap:5px;min-width:0;flex:1}
.exam-history-detail strong{font-size:14px;font-weight:770}
.exam-history-detail small{font-size:11px;line-height:1.6;color:#576a60;overflow-wrap:anywhere}
.exam-history-score{font-family:var(--atelier-serif);font-size:19px;white-space:nowrap;font-weight:800;text-align:right}
.exam-history-score small{display:block;font-family:var(--atelier-sans);font-size:11px;color:#4e6a56}
@media(max-width:650px){
 .exam-blank-setting{padding:15px 13px}
 .exam-blank-copy strong{font-size:13px}
 .exam-blank-setting p{margin-left:34px}
 .exam-archive{padding:18px 12px;margin-top:28px}
 .exam-history-entry{padding:12px 10px;gap:9px}
 .exam-history-detail strong{font-size:12px}
 .exam-history-score{font-size:15px}
 .exam-history-ordinal{min-width:22px;font-size:11px}
}
@media(prefers-reduced-motion:reduce){.exam-history-entry{transition:none}}


/* Reader display controls — changing type never changes navigation targets or score data. */
:root{--reading-scale:1;--reading-leading:1.75}
.header-inner{position:relative}
.reader-settings-trigger{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  flex-shrink:0;min-height:44px;padding:10px 13px;
  color:#234f42;background:#fffefa;border:1px solid #cdd9cf;
  border-radius:999px;cursor:pointer;font-size:12px;font-weight:800;
  transition:background .15s,border-color .15s;
}
.reader-settings-trigger:hover{background:#e7f1e8;border-color:#82ae98}
.reader-settings-trigger svg{display:block;width:22px;height:22px;flex:none}
.reading-settings-dialog{
  position:fixed;max-width:520px;width:calc(100% - 28px);
  max-height:calc(100dvh - 32px);padding:27px;
  overflow-y:auto;border:1px solid #d8e3d9;border-radius:10px 30px 10px 10px;
  background:#fffefa;color:#233e34;box-shadow:0 25px 80px rgba(14,47,35,.27);
}
.reading-settings-dialog::backdrop{background:rgba(12,36,28,.62);backdrop-filter:blur(5px)}
.reading-settings-head{display:flex;gap:16px;align-items:flex-start;justify-content:space-between}
.reading-settings-head h2{font-size:25px;font-weight:850;line-height:1.5;margin:5px 0}
.reading-settings-head p,.reading-settings-note{font-size:12px;line-height:1.8;color:#566b5c}
.reader-settings-close{border:1px solid #d2ded4;border-radius:50%;background:#f8faf6;color:#295545;min-width:40px;min-height:40px;cursor:pointer;font-size:17px}
.reader-settings-close:hover{background:#ebf3ec}
.reading-settings-fields{display:grid;gap:24px;margin-top:27px}
.reading-settings-label,.reading-settings-ends{display:flex;justify-content:space-between;gap:12px;align-items:baseline}
.reading-settings-label label{font-size:15px;font-weight:800;color:#284938}
.reading-settings-label output{font-size:16px;font-weight:850;color:#1b6b52;font-variant-numeric:tabular-nums}
.reading-settings-field input[type=range]{
  appearance:auto;accent-color:#246e54;display:block;width:100%;height:30px;
  margin:11px 0 3px;cursor:pointer;touch-action:pan-x;
}
.reading-settings-ends{font-size:11px;color:#66766b}
.reading-settings-preview{
  margin-top:25px;padding:19px;background:#f1f6ef;border:1px solid #d8e5d8;border-radius:13px;
}
.reading-settings-preview>span{font-size:11px;font-weight:800;color:#567966}
#reading-settings-sample{font-family:var(--atelier-serif);font-size:calc(19px * var(--reading-scale,1));line-height:var(--reading-leading,1.75);color:#233f31;margin:9px 0 0;overflow-wrap:anywhere}
.reading-settings-note{margin:17px 0 0}
.reading-settings-actions{display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px;margin-top:24px}
.reading-settings-actions .btn{min-width:120px}

/* The scale applies to study copy, never to compact navigation/answer-letter badges. */
#main .question-text{font-size:calc(clamp(20px,2.2vw,27px) * var(--reading-scale,1));line-height:var(--reading-leading,1.75);overflow-wrap:anywhere}
#main .question-text .statement-line{line-height:var(--reading-leading,1.75)}
#main .answer-button{font-size:calc(15px * var(--reading-scale,1));line-height:var(--reading-leading,1.75);overflow-wrap:anywhere}
#main .answer-button>span:nth-child(2){min-width:0;overflow-wrap:anywhere}
#main .feedback-explain,#main .exam-mistake-explanation{
  font-size:calc(14px * var(--reading-scale,1));line-height:var(--reading-leading,1.75);overflow-wrap:anywhere;
}
#main .evidence,#main .exam-mistake-body blockquote{
  font-size:calc(13px * var(--reading-scale,1));line-height:var(--reading-leading,1.75);overflow-wrap:anywhere;
}
#main .exam-review-choices li,#main .exam-mistake-stem,#main .exam-review-marker{
  font-size:calc(14px * var(--reading-scale,1));line-height:var(--reading-leading,1.75);overflow-wrap:anywhere;
}
#main .mistake-item h3{font-size:calc(15px * var(--reading-scale,1));line-height:var(--reading-leading,1.75)}
#main .mistake-item p,#main .stat-row-main p{font-size:calc(12px * var(--reading-scale,1));line-height:var(--reading-leading,1.75)}
#main .group-card .group-card-copy h3{font-size:calc(19px * var(--reading-scale,1));line-height:var(--reading-leading,1.75);overflow-wrap:anywhere}
#main .group-card .group-card-copy p{font-size:calc(12px * var(--reading-scale,1));line-height:var(--reading-leading,1.75)}
#main .exam-review-choices,#main .exam-mistake-body,#main .exam-mistake-stem{max-width:100%}
@media(max-width:900px){
  .reader-settings-trigger{padding-inline:10px}
  .reader-settings-trigger span{display:none}
}
@media(max-width:650px){
  .header-inner .reader-settings-trigger{
    position:absolute;right:0;top:9px;z-index:1;
    width:43px;min-height:43px;padding:8px;border-radius:50%;
  }
  .header-inner .reader-settings-trigger svg{width:21px;height:21px}
  .reading-settings-dialog{padding:19px 16px}
  .reading-settings-head h2{font-size:22px}
  #main .question-text{font-size:calc(20px * var(--reading-scale,1))}
  #main .group-card .group-card-copy h3{font-size:calc(19px * var(--reading-scale,1))}
  .reading-settings-actions .btn{flex:1 1 120px}
}
@media(prefers-reduced-motion:reduce){.reader-settings-trigger{transition:none}}
