:root {
  --ink: #132a29;
  --muted: #405b58;
  --paper: #f3f8f6;
  --white: #fff;
  --turquoise: #56e1d3;
  --deep: #075b56;
  --pale: #e0f8f2;
  --line: #b7ccc7;
  --serif: Georgia, "Songti SC", SimSun, serif;
  --sans: "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 1.25rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.65 var(--sans); min-width: 280px; }
button, textarea { font: inherit; }
a { color: inherit; }
button, summary, label:has(input) { cursor: pointer; }
h1, h2, h3, p, figure { margin: 0; }
button:focus-visible, a:focus-visible, summary:focus-visible, textarea:focus-visible { outline: 3px solid #087b77; outline-offset: 4px; }
.skip-link { position: fixed; inset: 0 auto auto 1rem; transform: translateY(-140%); z-index: 10; background: var(--turquoise); padding: .55rem .9rem; }
.skip-link:focus { transform: translateY(0); }
.shell { width: min(calc(100% - 5rem), 73.5rem); margin-inline: auto; }
.masthead { background: var(--paper); border-bottom: 1px solid var(--ink); }
.masthead-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.brand { display: inline-flex; flex: none; align-items: center; gap: .65rem; font: bold 1.5rem/1 var(--serif); text-decoration: none; }
.brand img { display: block; flex: none; }
nav { display: flex; align-items: center; gap: 2rem; }
nav a { font-size: .94rem; font-weight: 650; text-decoration: none; white-space: nowrap; }
nav a:hover { text-decoration: underline; text-underline-offset: .38rem; }
.test-label { color: var(--deep); font-size: .9rem; text-align: right; }
.eyebrow { color: var(--deep); font-size: .88rem; font-weight: 700; letter-spacing: .12em; }
.hero { display: grid; grid-template-columns: .95fr 1.05fr; align-items: stretch; gap: clamp(1.75rem, 5vw, 5rem); padding: clamp(2rem, 5.6vw, 4.9rem) 0 clamp(2rem, 4.4vw, 3.8rem); }
.hero-copy { align-self: center; padding-block: .45rem; }
.hero h1, .result-heading h1 { margin: .48rem 0 1.16rem; font: 750 clamp(3.8rem, 7.2vw, 6.5rem)/1.08 var(--serif); letter-spacing: -.08em; }
.hero h1 span, .result-heading h1 span { color: #0a8d83; margin-left: .16em; }
.hero-description { max-width: 28rem; color: var(--muted); font-size: clamp(1.06rem, 2vw, 1.3rem); margin-bottom: 1.55rem; }
.hero-meta { color: var(--muted); margin-top: .86rem; font-size: .9rem; }
.hero-meta span { padding: 0 .32rem; }
.hero-figure { display: grid; overflow: hidden; min-width: 0; background: #137c74; aspect-ratio: 1.39; }
.hero-figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 2.9rem; padding: .62rem 1.15rem; border: 1px solid transparent; color: var(--ink); background: transparent; font-weight: 700; text-decoration: none; border-radius: .22rem; }
.button.primary { background: var(--turquoise); border-color: var(--ink); }
.button.primary:hover:not(:disabled) { background: #7beddf; }
.button.outline { border-color: var(--deep); color: var(--deep); }
.button.outline:hover, .button.subtle:hover { background: var(--pale); }
.button.subtle { color: var(--deep); }
.button:disabled { cursor: default; opacity: .53; }
.route-section { padding: 1.55rem 0 2.55rem; border-top: 2px solid var(--ink); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .2rem 1.4rem; margin-bottom: 1.2rem; }
.section-head h2, .about h2 { font: 700 clamp(1.45rem, 2.8vw, 1.9rem)/1.3 var(--serif); }
.section-head p, .route-actions p, .about p, .quiz-foot { color: var(--muted); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.route-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.05rem; }
.route-option { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: .85rem; border: 1px solid var(--line); padding: 1.22rem 1.25rem; background: var(--white); border-radius: .22rem; }
.route-option:has(:checked) { background: var(--pale); border-color: var(--deep); box-shadow: inset 0 0 0 1px var(--deep); }
.route-option:has(:focus-visible), .answer-option:has(:focus-visible) { outline: 3px solid #208e83; outline-offset: 3px; }
.route-option input, .answer-option input { accent-color: var(--deep); width: 1.15rem; height: 1.15rem; margin: .23rem 0 0; }
.route-option strong { display: block; font-size: 1.1rem; line-height: 1.4; margin-bottom: .36rem; }
.route-option small { display: block; font-size: .94rem; color: var(--muted); }
.route-actions { display: flex; gap: 1rem 1.3rem; align-items: center; flex-wrap: wrap; margin-top: 1rem; }
.route-actions p { font-size: .9rem; }
.about { display: grid; grid-template-columns: 1fr 2fr; gap: 1rem; border-top: 1px solid var(--ink); padding: 1.6rem 0 2.6rem; }
.about p + p { margin-top: .7rem; }
.exam-sources { margin: .5rem 0 0; padding-left: 1.15rem; font-size: .9rem; color: var(--muted); }
.exam-sources li + li { margin-top: .25rem; }
.exam-sources a { color: var(--deep); text-decoration: underline; text-underline-offset: .15em; }
.footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; padding: 1rem 0; }
.footer .shell { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .2rem 1rem; }
.footer [lang="en"] { font-family: var(--serif); font-weight: 700; }
.quiz, .result { min-height: calc(100vh - 8rem); padding-top: 2rem; padding-bottom: 3rem; }
.quiz-status { display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.quiz-status h1 { font: bold clamp(1.65rem, 3vw, 2rem)/1.3 var(--serif); }
.count { color: var(--muted); font-size: .9rem; white-space: nowrap; }
progress { display: block; width: 100%; height: .36rem; border: 0; border-radius: 1rem; background: #dbe8e4; margin: .85rem 0 1.7rem; overflow: hidden; accent-color: #0b887d; }
progress::-webkit-progress-bar { background: #dbe8e4; }
progress::-webkit-progress-value { background: #0b887d; }
progress::-moz-progress-bar { background: #0b887d; }
.quiz-grid { display: grid; grid-template-columns: 1.06fr .94fr; gap: clamp(1.2rem, 4vw, 3.4rem); align-items: start; }
.passage { background: white; border: 1px solid var(--line); padding: clamp(1rem, 3.5vw, 2.5rem); border-top: 3px solid var(--deep); }
.passage h2 { font: 700 clamp(1.65rem, 3vw, 2.35rem)/1.15 var(--serif); margin: .38rem 0 1rem; letter-spacing: -.023em; }
.passage-text { font: 1.18rem/1.74 var(--serif); overflow-wrap: anywhere; }
.passage-text p + p { margin-top: .85rem; }
.passage-text .reading-table { border: 1px solid var(--line); border-collapse: collapse; width: 100%; margin-top: 1rem; font: 1rem/1.5 var(--sans); }
.reading-table th, .reading-table td { border: 1px solid var(--line); padding: .45rem .6rem; text-align: left; }
.reading-table th { background: var(--pale); }
.reading-table th:last-child { min-width: 7.25rem; }
.reading-jump { display: none; }
.question { padding-top: .8rem; }
.question-number { color: var(--deep); font-size: .9rem; font-weight: 650; margin-bottom: .25rem; }
.question legend { font: bold clamp(1.32rem, 2.4vw, 1.75rem)/1.29 var(--serif); margin-bottom: .95rem; max-width: 100%; }
.answer-choices { display: grid; gap: .58rem; }
.answer-option { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: .75rem; min-height: 3.2rem; border: 1px solid var(--line); border-radius: .22rem; background: var(--white); padding: .8rem .9rem; line-height: 1.4; }
.answer-option:has(:checked) { border-color: var(--deep); box-shadow: inset 0 0 0 1px var(--deep); background: var(--pale); }
.answer-option input { margin-top: .1rem; }
.question-actions { display: flex; gap: .3rem; justify-content: flex-end; flex-wrap: wrap; margin-top: 1.2rem; }
.question-actions #back-button { margin-right: auto; }
.practice-feedback { margin-top: .8rem; padding: .7rem .85rem; border-left: 3px solid #168b7e; background: var(--pale); }
.quiz-foot { font-size: .91rem; margin-top: 1.5rem; }
.result-heading { padding: 1.6rem 0 1.75rem; border-bottom: 2px solid var(--ink); }
.result-heading h1 { margin-bottom: .75rem; font-size: clamp(2.9rem, 6vw, 5.2rem); }
.result-summary { color: var(--muted); font-size: 1.1rem; max-width: 45rem; }
.result-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.25rem; }
.result-card { background: var(--white); border: 1px solid var(--line); padding: 1.22rem; }
.result-card.emphasis { background: var(--pale); border-color: #84bcb1; }
.result-card h2, .teacher h2 { font: bold 1.2rem/1.35 var(--serif); margin-bottom: .5rem; }
.trial-band { display: block; margin-bottom: .35rem; color: var(--deep); }
.teacher { margin-top: 1.35rem; border-block: 1px solid var(--line); }
.teacher summary { padding: .82rem 0; font-weight: 700; color: var(--deep); }
.teacher summary span { margin-left: .35rem; color: var(--muted); font-size: .85rem; font-weight: 400; }
.teacher-body { padding: 0 .25rem 1rem; max-width: 60rem; }
.teacher-body > p:first-child { margin: .2rem 0 1rem; }
.evidence-list { list-style: none; padding: 0; margin: .25rem 0 1.25rem; }
.evidence-list li { display: flex; flex-wrap: wrap; gap: .25rem .9rem; justify-content: space-between; padding: .53rem 0; border-bottom: 1px solid var(--line); }
.evidence-list span, .item-details p, .copy-status { color: var(--muted); }
.item-details ol { margin-top: .1rem; padding-left: 1.5rem; }
.item-details li { padding: .3rem 0 .7rem; }
.item-details p { font-size: .94rem; }
.copy-status { margin-top: .45rem; }
.result-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.35rem; }
.handoff-note { margin-top: .45rem; color: var(--muted); }
textarea { display: block; width: 100%; margin-top: .7rem; padding: .75rem; border: 1px solid var(--line); }

@media (max-width: 800px) {
  .shell { width: min(calc(100% - 2.3rem), 45rem); }
  .hero { grid-template-columns: 1fr; gap: 1.6rem; }
  .hero-figure { max-height: 25rem; aspect-ratio: 1.6; }
  .hero h1 { font-size: clamp(3.35rem, 11vw, 5.5rem); }
  .quiz-grid { grid-template-columns: 1fr; gap: 1rem; }
  .reading-jump { display: inline-block; color: var(--deep); font-size: .94rem; text-underline-offset: .2em; margin-top: .85rem; }
  .reading-jump.back-to-reading { margin: 0 0 .5rem; }
  .question { padding: 0; }
  .result-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .shell { width: calc(100% - 1.75rem); }
  .masthead-inner { min-height: 3.75rem; }
  .brand { font-size: 1.24rem; gap: .3rem; }
  .brand img { width: 1.55rem; height: 1.55rem; }
  nav { gap: .8rem; }
  nav a { font-size: .87rem; }
  .hero { padding-top: 1.8rem; }
  .route-grid, .about { grid-template-columns: 1fr; }
  .route-option { padding: .92rem .9rem; }
  .quiz, .result { padding-top: 1.4rem; }
  .passage-text { font-size: 1.125rem; }
  .question-actions .button { padding-inline: .75rem; }
}
