:root {
  color-scheme: light;
  --hosting-clearance: 0px;
  --bg: #fff;
  --surface: #fff;
  --soft: #fafaf9;
  --soft-2: #f5f5f5;
  --ink: #171717;
  --sub: #606060;
  --muted: #696966;
  --line: #ececea;
  --border: #e7e6e2;
  --brand: #a7461d;
  --orange: #ed753d;
  --action: #155ac4;
  --button: #1c1c1e;
  --button-text: #fff;
  --peach-bg: #fff0e6;
  --peach-fg: #b54c23;
  --lavender-bg: #efedff;
  --lavender-fg: #654ac8;
  --mint-bg: #e7f5ef;
  --mint-fg: #277957;
  --blue-bg: #eaf2ff;
  --blue-fg: #255fb7;
  --shadow: 0 6px 22px #24231c08;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  font-synthesis: none;
  accent-color: var(--action);
}

html[data-hosting="pagey"] { --hosting-clearance: 48px; }

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0b0c;
  --surface: #1c1c1e;
  --soft: #151517;
  --soft-2: #2c2c2e;
  --ink: #f2f2f7;
  --sub: #b5b5bd;
  --muted: #a3a3ab;
  --line: #ffffff16;
  --border: #ffffff22;
  --brand: #ffa277;
  --action: #85b7ff;
  --button: #f2f2f7;
  --button-text: #111;
  --peach-bg: #43291e;
  --peach-fg: #ffaa84;
  --lavender-bg: #312847;
  --lavender-fg: #c4afff;
  --mint-bg: #18382d;
  --mint-fg: #8bd9b2;
  --blue-bg: #1d304d;
  --blue-fg: #9ec7ff;
  --shadow: 0 6px 22px #0003;
}

@media (prefers-color-scheme: dark) {
  html[data-theme="system"] {
    color-scheme: dark;
    --bg: #0b0b0c;
    --surface: #1c1c1e;
    --soft: #151517;
    --soft-2: #2c2c2e;
    --ink: #f2f2f7;
    --sub: #b5b5bd;
    --muted: #a3a3ab;
    --line: #ffffff16;
    --border: #ffffff22;
    --brand: #ffa277;
    --action: #85b7ff;
    --button: #f2f2f7;
    --button-text: #111;
    --peach-bg: #43291e;
    --peach-fg: #ffaa84;
    --lavender-bg: #312847;
    --lavender-fg: #c4afff;
    --mint-bg: #18382d;
    --mint-fg: #8bd9b2;
    --blue-bg: #1d304d;
    --blue-fg: #9ec7ff;
    --shadow: 0 6px 22px #0003;
  }
}

* { box-sizing: border-box; }
html { scrollbar-gutter: stable; }
body { margin: 0; padding-bottom: var(--hosting-clearance); background: var(--bg); color: var(--ink); line-height: 1.6; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, ul, ol, dl, dd, figure { margin: 0; }
img { max-width: 100%; display: block; }
::selection { background: var(--peach-bg); color: var(--ink); }
:focus-visible { outline: 3px solid var(--action); outline-offset: 4px; }
/* 切换页面后程序会把焦点放到 main（tabindex=-1）上，不需要给整页画焦点框。 */
main:focus, main:focus-visible { outline: none; }
[hidden] { display: none !important; }
.skip { position: fixed; z-index: 30; padding: 12px; top: 8px; left: 8px; border-radius: 8px; background: var(--button); color: var(--button-text); transform: translateY(-150%); }
.skip:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.wrap { width: min(1160px, calc(100% - 72px)); margin-inline: auto; }
.icon { width: 20px; height: 20px; flex: none; vertical-align: middle; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 24px; height: 24px; }

.header { border-bottom: 1px solid var(--line); background: var(--bg); }
.header-inner { min-height: 70px; display: flex; justify-content: center; align-items: center; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 11px; width: fit-content; font-size: 21px; font-weight: 750; letter-spacing: -.04em; white-space: nowrap; }
.brand img { width: 37px; height: 37px; }
.brand-note { font-size: 12px; color: var(--muted); padding-left: 11px; border-left: 1px solid var(--border); font-weight: 500; letter-spacing: 0; }
.top-nav { display: flex; align-items: stretch; gap: 29px; font-size: 14px; color: var(--sub); white-space: nowrap; }
.top-nav > * { min-height: 70px; display: flex; align-items: center; position: relative; }
.top-nav [aria-current] { color: var(--ink); font-weight: 700; }
.top-nav [aria-current]::after { position: absolute; bottom: -1px; height: 2px; background: var(--ink); border-radius: 2px; width: 20px; left: calc(50% - 10px); content: ""; }
body.child .top-nav { display: none; }
body.child .header { display: none; }
.tool-button, .button { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 9px 14px; font-weight: 650; font-size: 14px; line-height: 1.35; }
.icon-button { width: 44px; min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; background: transparent; border: 1px solid transparent; border-radius: 12px; padding: 0; }
.icon-button:hover, .tool-button:hover, .button:hover { background: var(--soft-2); }
.button.primary { background: var(--button); color: var(--button-text); border-color: var(--button); }
.button.primary:hover { opacity: .89; }
.button.big { min-height: 50px; padding-inline: 20px; }
.button.ghost { border-color: transparent; background: transparent; }
.button.ghost:hover { background: var(--soft-2); }
.button.blue { background: var(--blue-bg); color: var(--blue-fg); border-color: transparent; }
.button:disabled { opacity: .5; }
.theme-toggle { grid-column: 3; justify-self: end; white-space: nowrap; }
.button-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.link { display: inline-flex; align-items: center; gap: 6px; color: var(--action); font-weight: 650; text-underline-offset: 3px; }
.link:hover { text-decoration: underline; }
.link-button { border: 0; background: none; padding: 0; cursor: pointer; font-weight: 650; text-align: left; }
.mobile-nav { display: none; }

#main { min-height: calc(100dvh - 205px); }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.section-heading h2 { font-size: clamp(22px, 2.25vw, 29px); line-height: 1.35; letter-spacing: -.035em; }
.section-heading .link { flex-shrink: 0; min-height: 44px; font-size: 14px; }
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.card { border: 1px solid var(--border); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.card:hover { border-color: var(--muted); }
.path-card, .direction-card { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 19px 20px 17px; min-height: 150px; position: relative; }
.path-card .card-arrow, .direction-card .card-arrow { position: absolute; top: 25px; right: 21px; color: var(--muted); }
.path-card h3, .direction-card h3 { font-size: 17px; letter-spacing: -.02em; line-height: 1.5; }
.path-card p, .direction-card p { color: var(--sub); font-size: 13px; margin-top: -5px; }
.symbol { width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 12px; flex: none; }
.symbol.peach { background: var(--peach-bg); color: var(--peach-fg); }
.symbol.lavender { background: var(--lavender-bg); color: var(--lavender-fg); }
.symbol.mint { background: var(--mint-bg); color: var(--mint-fg); }
.symbol.blue { background: var(--blue-bg); color: var(--blue-fg); }
.page { padding: 37px 0 55px; }
.page.narrow { max-width: 760px; margin: auto; }
.page.mid { max-width: 925px; margin: auto; }
.page-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 23px; }
.page-title h1 { font-size: clamp(30px, 4vw, 47px); line-height: 1.25; letter-spacing: -.05em; }
.page-title p { color: var(--sub); margin-top: 9px; font-size: 15px; max-width: 620px; }
.back-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); margin-bottom: 29px; min-height: 50px; }
.back-bar .button { justify-self: start; margin-left: -8px; }
.back-bar .back-title { font-size: 14px; }
.page.subpage { padding-top: 11px; }
.route-enter { animation: slide-in 180ms ease-out both; }
@keyframes slide-in { from { opacity: .6; transform: translateX(11px); } to { opacity: 1; transform: none; } }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 19px; padding: 22px; margin-bottom: 16px; }
.panel.soft { background: var(--soft); border-color: var(--line); }
.panel h2, .reading h2 { font-size: 20px; line-height: 1.45; letter-spacing: -.025em; margin-bottom: 8px; }
.panel p { color: var(--sub); }
.panel .button-row { margin-top: 15px; }
.reading { font-size: 16px; line-height: 1.85; }
.reading h2 { margin-top: 23px; }
.reading p { color: var(--sub); }
.reading section { border-bottom: 1px solid var(--line); padding-bottom: 20px; }
.reading section:last-child { margin-bottom: 22px; }
.reading .intro { padding: 17px 19px; background: var(--soft); border-radius: 14px; }
.reading-terms { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 6px 0; font-size: 14px; color: var(--sub); }
.reading-terms button { min-height: 44px; }
.row-list { list-style: none; padding: 0; }
.row-list li + li { border-top: 1px solid var(--line); }
.row-link, .settings-row { padding: 13px 0; display: flex; align-items: center; gap: 14px; min-height: 61px; }
.row-link .row-text, .settings-row .row-text { flex: 1; min-width: 0; }
.row-text b { display: block; color: var(--ink); }
.row-text small { display: block; color: var(--sub); margin-top: 2px; }
.row-link:hover b { color: var(--action); }
.row-end { color: var(--muted); font-size: 13px; }
.settings-row { width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: transparent; }
.settings-row:last-child { border-bottom: 0; }
.settings-row:hover { color: var(--action); }
.chip { display: inline-flex; align-items: center; gap: 5px; background: var(--soft-2); color: var(--sub); border-radius: 7px; padding: 3px 8px; font-size: 12px; font-weight: 650; }
.chip.blue { color: var(--blue-fg); background: var(--blue-bg); }
.chip.peach { color: var(--peach-fg); background: var(--peach-bg); }
.chip.mint { color: var(--mint-fg); background: var(--mint-bg); }
.hint { margin: 13px 0 17px; padding: 12px 14px; border-radius: 12px; display: flex; gap: 9px; align-items: flex-start; color: var(--sub); background: var(--soft); font-size: 14px; }
.hint .icon { margin-top: 2px; }
.empty { text-align: center; padding: 30px 16px; background: var(--soft); border-radius: 15px; color: var(--sub); }
.empty b { display: block; color: var(--ink); font-size: 17px; margin-bottom: 6px; }
.empty .button-row { justify-content: center; margin: 13px 0 0; }
.status { font-size: 13px; color: var(--muted); }
.section-space { margin-top: 29px; }
.guide-sections { margin-bottom: 27px; }
.guide-intro { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.guide-intro > .button { flex-shrink: 0; }
.guide-content .section-heading p { color: var(--sub); font-size: 14px; margin-top: 7px; }
.guide-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.practice-list { list-style: none; padding: 0; }
.practice-list > li { display: flex; gap: 17px; padding: 23px 0; border-bottom: 1px solid var(--line); }
.practice-number { font-size: 14px; font-weight: 750; color: var(--brand); padding-top: 3px; }
.practice-list h3 { font-size: 18px; margin-bottom: 7px; }
.practice-list p { color: var(--sub); font-size: 14px; }
.practice-list .practice-result { margin: 10px 0 7px; color: var(--ink); }
.practice-list .button { margin-left: -14px; }
.stage-materials { padding: 0 0 14px 22px; color: var(--sub); font-size: 14px; }
.stage-materials li { padding-block: 5px; }
.stage-materials .button { margin-left: -14px; text-align: left; justify-content: flex-start; }
.segment { display: inline-flex; gap: 3px; padding: 4px; border-radius: 13px; background: var(--soft-2); flex-wrap: wrap; }
.segment a, .segment button, .segment > span { border: 1px solid transparent; border-radius: 9px; min-height: 42px; padding: 6px 13px; background: transparent; color: var(--sub); font-size: 14px; font-weight: 650; display: inline-flex; align-items: center; }
.segment [aria-current], .segment [aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); border-color: var(--line); }
.option-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 16px; }
.option { padding: 12px 15px; min-height: 50px; text-align: left; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); display: flex; align-items: center; gap: 8px; }
.option input { width: 17px; height: 17px; flex: none; }
.option:hover, .option:has(:checked) { border-color: var(--action); }
.option:has(:checked) { background: var(--blue-bg); }
.form-field { display: grid; gap: 5px; font-size: 14px; font-weight: 650; }
.form-field input, .form-field select, .form-field textarea,
.search-field input { min-height: 44px; min-width: 0; padding: 9px 12px; border-radius: 10px; border: 1px solid transparent; background: var(--soft-2); width: 100%; font-weight: 400; }
.form-field textarea { min-height: 94px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus, .search-field:focus-within { border-color: var(--action); outline: 1px solid var(--action); outline-offset: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.form-grid .span { grid-column: 1 / -1; }
.fields-inline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.search-field { display: flex; border: 1px solid transparent; border-radius: 13px; background: var(--soft-2); padding-left: 12px; align-items: center; color: var(--sub); }
.search-field input { color: var(--ink); outline: none; padding-left: 8px; background: transparent; }
.search-field input:focus-visible { outline: none; }
.search-field input::-webkit-search-cancel-button { display: none; }
.school-search-box { position: relative; z-index: 3; }
.school-suggestions, .school-filter-panel { position: absolute; top: calc(100% + 6px); left: 0; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow); border-radius: 12px; }
.school-suggestions { right: 0; max-height: min(330px, 45vh); overflow-y: auto; padding: 5px; }
.school-suggestion { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 42px; padding: 7px 10px; border-radius: 8px; cursor: pointer; }
.school-suggestion:hover, .school-suggestion[aria-selected="true"] { background: var(--soft-2); }
.school-suggestion span { overflow-wrap: anywhere; }
.school-suggestion small, .school-filter summary span, .province-grid small { color: var(--sub); font-size: 12px; }
.school-suggestion small { flex: none; }
.school-search-picks:not(:empty) { margin-top: 9px; }
.school-filter { position: relative; }
.school-filter[open] { z-index: 2; }
.school-filter summary { display: flex; align-items: center; min-height: 44px; gap: 4px; padding: 7px 12px; background: var(--soft-2); border-radius: 10px; font-size: 14px; cursor: pointer; }
.school-filter summary::-webkit-details-marker { display: none; }
.school-filter summary::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 1px 1px 0; transform: rotate(45deg); margin: -4px 2px 0 auto; flex: none; }
.school-filter[open] summary::after { transform: rotate(225deg); margin-top: 4px; }
.school-filter-panel { width: max(100%, 280px); padding: 13px; }
.school-filter:first-child .school-filter-panel { width: max(100%, 370px); }
.school-filter-panel .form-field + .form-field { margin-top: 9px; }
.school-filter-panel [hidden] { display: none; }
.province-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px 8px; border: 0; margin: 0 0 10px; padding: 0; min-width: 0; }
.province-grid legend { padding: 0; font-size: 14px; font-weight: 650; margin-bottom: 6px; }
.province-grid label { display: flex; align-items: center; gap: 4px; min-height: 32px; font-size: 13px; cursor: pointer; }
.province-grid input { flex: none; margin: 0; accent-color: var(--action); }
.results-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 11px 0; flex-wrap: wrap; }
.results-top:has(> .sr-only:only-child) { margin: 0; }
.results-top .button { min-height: 44px; }
.cutoff-filter { padding: 11px 14px; margin-bottom: 12px; }
.cutoff-filter summary { font-size: 14px; font-weight: 650; cursor: pointer; }
.cutoff-filter summary .status { margin-left: 5px; font-weight: 400; }
#cutoff-filter { margin-top: 12px; }
.cutoff-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 340px; }
#cutoff-filter p { margin: 8px 0; }
.cutoff-error { color: var(--ink); font-size: 13px; font-weight: 650; }
.cutoff-group + .cutoff-group { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; }
.cutoff-group > h2 { font-size: 14px; margin: 0; }
.national-directory { display: flex; align-items: flex-start; gap: 13px; }
.national-directory-body { min-width: 0; }
.national-directory ol { padding-left: 1.4em; margin-top: 9px; color: var(--sub); font-size: 14px; }
.national-directory .keyword-note { margin-top: 9px; overflow-wrap: anywhere; }
.active-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-chip { padding: 3px 8px; min-height: 34px; border: 0; background: var(--soft-2); color: var(--sub); border-radius: 8px; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; }
.project-row { padding: 16px 0; display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.project-row h2, .project-row h3 { font-size: 17px; margin: 1px 0 4px; line-height: 1.45; }
.project-row .school { color: var(--sub); font-size: 13px; }
.project-row .tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.project-row .actions { display: flex; align-items: center; gap: 5px; flex: none; }
.project-link:hover h2, .project-link:hover h3 { color: var(--action); }
.toggled { color: var(--action); background: var(--blue-bg); border-color: transparent; }
.filled { fill: currentColor; }
.project-location { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); }
.field-list > div { display: grid; grid-template-columns: minmax(104px, .38fr) 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.field-list dt { color: var(--sub); }
.field-list dd { overflow-wrap: anywhere; }
.field-list small { display: block; color: var(--muted); margin-top: 3px; }

/* Source-backed program pilot. All colors follow the existing light/dark theme. */
.insight-section-head, .insight-missing-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.insight-section-head h2 { margin: 0; }
.insight-status { display: inline-flex; align-items: center; width: fit-content; padding: 4px 9px; border-radius: 7px; background: var(--soft-2); color: var(--sub); font-size: 12px; font-weight: 600; line-height: 1.6; flex-shrink: 0; }
.insight-status.verified { color: var(--mint-fg); background: var(--mint-bg); }
.insight-meta, .panel p.insight-meta { color: var(--muted); font-size: 12px; line-height: 1.75; margin-top: 10px; }
.insight-section { scroll-margin-top: 20px; }
.insight-section-head > div { display: flex; align-items: center; gap: 10px; }
.insight-kicker { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; color: var(--blue-fg); background: var(--blue-bg); font-size: 12px; font-weight: 750; }
.insight-intro { font-size: 13px; margin-top: 9px; line-height: 1.8; }
.quota-main { display: grid; grid-template-columns: 170px 1fr; gap: 24px; align-items: center; padding: 23px 0 20px; }
.insight-label { color: var(--sub); font-size: 13px; }
.quota-number, .panel p.quota-number { color: var(--ink); font-size: 58px; font-weight: 750; line-height: 1.3; font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
.quota-number span { color: var(--sub); font-size: 16px; font-weight: 500; margin-left: 8px; }
.quota-explanation h3 { font-size: 17px; margin-bottom: 8px; }
.quota-explanation p { font-size: 14px; line-height: 1.85; }
.insight-source { border-top: 1px solid var(--line); padding-top: 12px; font-size: 13px; display: flex; flex-direction: column; gap: 4px; overflow-wrap: anywhere; }
.insight-source .link { width: fit-content; min-height: 30px; }
.insight-source > span { color: var(--muted); font-size: 12px; line-height: 1.7; }
.insight-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.insight-facts > div { background: var(--soft); border-radius: 12px; padding: 16px; }
.insight-facts b { display: block; margin: 6px 0; font-size: 25px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.insight-facts small { color: var(--sub); font-size: 12px; font-weight: 500; }
.insight-facts p, .insight-facts .link { font-size: 13px; line-height: 1.8; }
.insight-facts .link { margin-top: 8px; }
.insight-facts .insight-unknown { font-size: 20px; color: var(--sub); }
.insight-note { margin-top: 16px; padding-left: 12px; border-left: 2px solid var(--border); font-size: 13px; line-height: 1.8; }
.cutoff-chart { margin: 20px 0 16px; padding: 16px 16px 5px; border-radius: 12px; background: var(--soft); }
.cutoff-chart figcaption { font-size: 14px; font-weight: 650; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cutoff-chart figcaption span { color: var(--muted); font-size: 12px; font-weight: 400; }
.cutoff-chart svg { display: block; width: 100%; max-height: 200px; margin-top: 10px; overflow: visible; }
.chart-grid { stroke: var(--border); stroke-dasharray: 3 4; }
.chart-axis { fill: var(--muted); font-size: 11px; }
.chart-trend { fill: none; stroke: var(--blue-fg); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.chart-point { fill: var(--surface); stroke: var(--blue-fg); stroke-width: 2.5; }
.chart-score { fill: var(--blue-fg); font-size: 14px; font-weight: 750; }
.insight-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; }
.insight-table { width: 100%; border-collapse: collapse; font-size: 14px; text-align: left; font-variant-numeric: tabular-nums; }
.insight-table th, .insight-table td { padding: 13px 12px; white-space: nowrap; }
.insight-table thead { background: var(--soft); color: var(--sub); }
.insight-table thead th { font-size: 12px; font-weight: 600; }
.insight-table thead small { display: block; font-size: 11px; font-weight: 400; }
.insight-table tbody tr + tr { border-top: 1px solid var(--line); }
.insight-table tbody th { font-size: 13px; }
.history-count-note { display: block; color: var(--muted); font-size: 11px; }
.insight-table .icon { width: 13px; height: 13px; }
.insight-callout { padding: 14px 16px; border-radius: 11px; background: var(--soft); margin-top: 18px; font-size: 13px; line-height: 1.85; }
.insight-callout > b { font-size: 14px; }
.insight-callout > p { margin-top: 4px; }
.insight-callout .insight-source { margin-top: 8px; }
.insight-details { margin-top: 14px; border-top: 1px solid var(--line); font-size: 13px; }
.insight-details summary { padding: 12px 0; cursor: pointer; font-weight: 650; min-height: 44px; }
.insight-details > p { line-height: 1.9; padding-bottom: 12px; }
.insight-missing { border: 1px dashed var(--border); padding: 16px; margin-top: 12px; border-radius: 12px; }
.insight-missing-head h3 { font-size: 15px; }
.missing-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0 10px; }
.missing-metrics span { display: block; color: var(--sub); font-size: 12px; }
.missing-metrics b { display: block; font-size: 22px; color: var(--muted); margin-top: 6px; }
.insight-missing p { font-size: 13px; line-height: 1.85; margin-top: 8px; }
.retest-current { padding: 16px; margin-top: 18px; border-radius: 12px; background: var(--soft); }
.retest-current h3 { margin: 10px 0 6px; font-size: 17px; }
.retest-current p { font-size: 13px; line-height: 1.85; margin-bottom: 10px; }
.insight-subtitle { margin-top: 24px; font-size: 16px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.retest-modules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: 12px; margin: 16px 0 12px; }
.retest-modules > div { padding: 14px 12px; }
.retest-modules > div + div { border-left: 1px solid var(--border); }
.retest-modules span { display: block; font-size: 12px; color: var(--sub); }
.retest-modules b { display: block; margin-top: 5px; font-size: 25px; font-variant-numeric: tabular-nums; }
.retest-modules small { color: var(--sub); font-size: 12px; font-weight: 500; }
.retest-equation { font-size: 13px; line-height: 1.8; }
.insight-rule-list { margin-top: 16px; font-size: 14px; }
.insight-rule-list > div { display: grid; grid-template-columns: 100px 1fr; gap: 16px; padding: 13px 0; border-top: 1px solid var(--line); }
.insight-rule-list dt { color: var(--sub); }
.insight-rule-list dd { line-height: 1.85; }
.insight-rule-list small { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
.insight-source-directory ul { list-style: none; }
.insight-source-directory li { padding: 13px 0; border-top: 1px solid var(--line); }
.insight-source-directory p { margin-top: 4px; line-height: 1.8; }
.insight-source-directory small { color: var(--muted); }
.insight-crosscheck { display: flex; align-items: flex-start; gap: 10px; margin-top: 14px; padding: 13px 14px; background: var(--mint-bg); border-radius: 11px; }
.insight-crosscheck p { font-size: 13px; line-height: 1.85; }
.insight-crosscheck .insight-status { padding-left: 0; }
.insight-gap-links { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 10px; }
.insight-gap-links .link { min-height: 32px; font-size: 12px; }
.insight-followup > ul, .insight-policy-checks { list-style: none; padding: 0; }
.insight-followup > ul > li { padding: 14px 0; border-top: 1px solid var(--line); }
.insight-followup li p { margin-top: 8px; line-height: 1.9; }
.insight-followup h3 { margin-top: 16px; font-size: 14px; }
.insight-followup .insight-evidence-list { list-style: disc; padding-left: 20px; margin-block: 10px; }
.insight-followup .insight-evidence-list > li { padding-block: 4px; border: none; line-height: 1.85; }
.insight-contact { font-size: 13px; margin-block: 12px 6px; }
.insight-policy-checks li { display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--line); }
.insight-source-directory li > .insight-status { display: flex; margin-top: 8px; }
.cost-facts { display: grid; grid-template-columns: .7fr 1.3fr 1fr; gap: 12px; margin-top: 20px; }
.cost-facts > div { padding: 15px; background: var(--soft); border-radius: 12px; }
.cost-facts b { display: block; margin-block: 8px; font-size: 28px; line-height: 1.5; }
.cost-facts b small { color: var(--sub); font-size: 13px; font-weight: 500; }
.cost-facts b.cost-state { font-size: 19px; }
.cost-facts p { font-size: 12px; line-height: 1.9; }
.cost-section .insight-table-wrap { margin-top: 14px; }
.cost-table th, .cost-table td { font-size: 13px; }
.cost-table th small { display: block; margin-top: 4px; font-size: 11px; color: var(--muted); font-weight: 400; }
.cost-table .cost-current { background: var(--blue-bg); }
.cost-section > .insight-source { margin-top: 18px; }
.cost-pdf-link, .cost-related { margin-top: 12px; font-size: 13px; }
.cost-gaps { margin: 8px 0 12px 18px; line-height: 2; }
.cost-housing-details { margin-top: 14px; }
.cost-housing-details > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 13px; line-height: 1.9; }
.cost-housing-details dt { font-weight: 650; }
.cost-housing-details dd { margin: 0; }
.cost-housing-details p { margin-top: 6px; }
.funding-item { padding: 20px 0; border-bottom: 1px solid var(--line); }
.funding-item-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.funding-item-head h3 { margin: 0; font-size: 16px; }
.funding-payment { margin-top: 10px; font-size: 13px; line-height: 1.9; }
.funding-conditions { margin: 10px 0 10px 18px; font-size: 13px; line-height: 1.9; }
.funding-table { min-width: 420px; }
.funding-table small { display: block; margin-top: 4px; color: var(--sub); font-size: 11px; font-weight: 400; }
.funding-posts { margin-top: 20px; }
.funding-posts p { margin-top: 10px; }

@media (max-width: 700px) {
  .insight-section-head { align-items: flex-start; flex-wrap: wrap; gap: 8px; }
  .quota-main { grid-template-columns: 1fr; gap: 16px; padding-block: 20px; }
  .quota-number, .panel p.quota-number { font-size: 52px; }
  .quota-explanation { border-top: 1px solid var(--line); padding-top: 16px; }
  .insight-facts { grid-template-columns: 1fr; }
  .insight-facts > div { padding: 14px; }
  .insight-rule-list > div { grid-template-columns: 1fr; gap: 4px; }
  .insight-rule-list dt { font-size: 13px; }
  .insight-table th, .insight-table td { padding-inline: 10px; }
  .insight-missing { padding: 13px; }
  .insight-crosscheck { flex-direction: column; gap: 3px; }
  .insight-missing-head { flex-wrap: wrap; gap: 7px; }
  .cost-facts { grid-template-columns: 1fr; }
  .cost-facts > div { padding: 14px; }
  .cost-housing-details > div { grid-template-columns: 1fr; gap: 5px; }
  .chart-axis { font-size: 19px; }
  .chart-score { font-size: 24px; }
  .missing-metrics { gap: 8px; }
  .missing-metrics span { font-size: 11px; }
  .retest-modules > div { padding: 12px 9px; }
  .retest-modules span { font-size: 11px; }
}
.subject-list { list-style: none; padding: 0; display: grid; gap: 9px; }
.subject-list li { display: flex; align-items: baseline; gap: 8px; }
.subject-code { color: var(--blue-fg); font-weight: 700; font-variant-numeric: tabular-nums; min-width: 39px; }
.compare-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; margin-bottom: 19px; }
.compare-table { border-collapse: separate; border-spacing: 0; width: 100%; table-layout: fixed; }
.compare-table.cols-2 { min-width: 460px; }
.compare-table.cols-3 { min-width: 575px; }
.compare-table th, .compare-table td { padding: 11px 13px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); text-align: left; vertical-align: top; min-width: 170px; overflow-wrap: anywhere; }
.compare-table tr > :first-child { position: sticky; left: 0; min-width: 94px; width: 130px; background: var(--soft); color: var(--sub); z-index: 1; }
.compare-table tr > :last-child { border-right: 0; }
.compare-table tbody tr:last-child > * { border-bottom: 0; }
.compare-table thead th { background: var(--soft); }
.compare-table td { font-size: 14px; }
.compare-table .icon-button { min-height: 34px; min-width: 34px; width: 34px; }
.compare-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 4px; }
.compare-head small { color: var(--sub); display: block; font-weight: 400; }
#compare-dock { position: fixed; z-index: 8; right: max(24px, calc((100vw - 1160px)/2)); bottom: calc(21px + var(--hosting-clearance)); }
.schools-page #main { padding-bottom: 56px; }
.schools-page:has(.national-directory.no-results) .compare-dock[data-empty] { display: none; }
.compare-dock { border-radius: 16px; padding: 6px 8px 6px 13px; display: flex; gap: 9px; align-items: center; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 8px 30px #0002; font-size: 13px; }
.compare-dock .button { min-height: 40px; }
.stage { border: 1px solid var(--border); border-radius: 13px; margin-bottom: 9px; padding: 0 14px; background: var(--surface); }
.stage summary { min-height: 52px; display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; font-weight: 700; }
.stage summary::-webkit-details-marker { display: none; }
.stage summary .icon:last-child { margin-left: auto; color: var(--muted); }
.stage[open] summary .icon:last-child { transform: rotate(180deg); }
.stage p { color: var(--sub); font-size: 14px; margin-bottom: 9px; }
.stage .button-row { padding-bottom: 12px; }
.local-note { overflow-wrap: anywhere; white-space: pre-wrap; color: var(--sub); }
dialog { padding: 0; border: 1px solid var(--border); border-radius: 21px; background: var(--surface); color: var(--ink); width: min(490px, calc(100% - 28px)); max-height: min(82dvh, 680px); box-shadow: 0 15px 80px #0002; }
dialog::backdrop { background: #0006; }
.sheet-content { padding: 17px 22px 22px; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.sheet-head h2 { font-size: 20px; }
.sheet-content p { color: var(--sub); margin-bottom: 13px; }
.sheet-content .button-row { margin-top: 16px; }
#toast { position: fixed; left: 50%; bottom: calc(22px + var(--hosting-clearance)); transform: translateX(-50%); z-index: 20; max-width: calc(100% - 40px); width: max-content; pointer-events: none; }
#toast:not(:empty) { background: var(--button); color: var(--button-text); border-radius: 11px; padding: 9px 15px; font-size: 14px; box-shadow: var(--shadow); }

@media (max-width: 980px) {
  .wrap { width: calc(100% - 48px); }
  .header-inner { gap: 13px; }
  .top-nav { gap: 17px; }
  .brand-note { display: none; }
}

@media (max-width: 700px) {
  html { scrollbar-gutter: auto; }
  .wrap { width: calc(100% - 34px); }
  .header-inner { display: flex; justify-content: space-between; min-height: 58px; }
  .brand { gap: 8px; font-size: 19px; }
  .brand img { width: 32px; height: 32px; }
  .top-nav { display: none; }
  .header { display: none; }
  body { padding-bottom: calc(62px + env(safe-area-inset-bottom) + var(--hosting-clearance)); }
  .section-heading { margin-bottom: 10px; }
  .section-heading h2 { font-size: 21px; }
  .card-grid { grid-template-columns: 1fr; gap: 7px; }
  .path-card, .direction-card { padding: 12px 32px 12px 11px; min-height: 68px; display: grid; grid-template-columns: 40px 1fr; align-items: center; column-gap: 10px; row-gap: 0; border-radius: 13px; }
  .path-card .symbol, .direction-card .symbol { grid-row: span 2; width: 38px; height: 38px; border-radius: 10px; }
  .path-card h3, .direction-card h3 { font-size: 15px; }
  .path-card p, .direction-card p { margin-top: 0; font-size: 12px; }
  .path-card .card-arrow, .direction-card .card-arrow { right: 10px; top: calc(50% - 8px); }
  .page { padding-top: 24px; padding-bottom: 28px; }
  .page-title { align-items: flex-start; flex-wrap: wrap; margin-bottom: 17px; }
  .page-title p { font-size: 14px; }
  .page-title .button-row { gap: 7px; }
  .guide-intro { align-items: flex-start; flex-direction: column; gap: 14px; }
  .guide-sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-sections > * { justify-content: center; }
  .guide-content .row-end { white-space: nowrap; font-size: 12px; }
  .practice-list > li { gap: 12px; padding-block: 18px; }
  .panel { padding: 14px; border-radius: 15px; }
  .panel h2, .reading h2 { font-size: 18px; }
  .reading { font-size: 15px; }
  .back-bar { margin-bottom: 19px; }
  .fields-inline { position: relative; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fields-inline > .form-field { grid-column: 1 / -1; }
  .school-filter { position: static; }
  .school-filter .school-filter-panel, .school-filter:first-child .school-filter-panel { width: 100%; top: 50px; max-height: 55dvh; overflow-y: auto; }
  .national-directory > .symbol { display: none; }
  .form-field input, .form-field textarea, .form-field select, .search-field input { font-size: 16px; }
  .project-row { align-items: flex-start; gap: 6px; }
  .project-row .actions { align-items: flex-end; flex-direction: column; gap: 0; }
  .project-row h2, .project-row h3 { font-size: 16px; }
  .project-row .tool-button { padding-inline: 8px; }
  .project-row .actions .icon-button { min-height: 40px; }
  /* 手机列表精简：次要信息收进详情页，方向单行省略，对比按钮带文字 */
  .project-row { padding: 13px 0; }
  .project-row .project-link { min-width: 0; flex: 1; }
  .project-row .project-extra, .project-row .chip-extra { display: none; }
  .project-row .project-direction { margin-block: 2px 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .project-row .tags { margin-top: 7px; }
  .project-row .actions .icon-button[data-action="compare-toggle"] { display: inline-flex; align-items: center; justify-content: center; width: auto; min-width: 44px; min-height: 44px; flex-direction: column; gap: 1px; font-size: 11px; color: var(--sub); }
  .project-row .actions .icon-button[data-action="compare-toggle"]::after { content: "对比"; }
  .project-row .actions .icon-button[data-action="compare-toggle"][aria-pressed="true"] { color: var(--action); }
  .project-row .actions .icon-button[data-action="compare-toggle"][aria-pressed="true"]::after { content: "已加入"; }
  .field-list > div { grid-template-columns: 91px 1fr; }
  .compare-table tr > :first-child { min-width: 76px; }
  .compare-table th, .compare-table td { min-width: 150px; padding-inline: 9px; }
  .mobile-nav { position: fixed; z-index: 9; display: flex; bottom: var(--hosting-clearance); left: 0; right: 0; padding: 4px 9px calc(4px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); background: var(--bg); justify-content: space-around; }
  .mobile-nav > * { display: flex; flex: 1; gap: 2px; flex-direction: column; align-items: center; justify-content: center; min-height: 49px; border-radius: 8px; font-size: 10.5px; color: var(--sub); white-space: nowrap; }
  .mobile-nav [aria-current] { color: var(--ink); font-weight: 750; }
  .mobile-nav .icon { width: 21px; height: 21px; }
  .mobile-nav [aria-current] .icon { stroke-width: 2.6; }
  body.child .mobile-nav { display: none; }
  body.child { padding-bottom: calc(14px + env(safe-area-inset-bottom) + var(--hosting-clearance)); }
  body.child #toast { bottom: calc(12px + env(safe-area-inset-bottom) + var(--hosting-clearance)); }
  #compare-dock { bottom: calc(64px + env(safe-area-inset-bottom) + var(--hosting-clearance)); right: 16px; }
  #toast { bottom: calc(66px + env(safe-area-inset-bottom) + var(--hosting-clearance)); }
  dialog { inset: auto 0 0; margin: 0; width: 100%; max-width: none; border-radius: 20px 20px 0 0; }
  .sheet-content { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
  .sheet-content::before { content: ""; display: block; width: 34px; height: 4px; border-radius: 8px; background: var(--border); margin: -5px auto 6px; }
}

.results-pagination { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-block: 20px; }
.project-direction { margin-block: 4px 8px; }

/* The exam guide is a continuous document with a synchronized directory. */
body:is(.reading-guide, .reading-program) #site-header { position: sticky; top: 0; z-index: 12; }
.exam-guide { display: grid; grid-template-columns: 224px minmax(0, 1fr); gap: 64px; align-items: start; padding: 44px 0 72px; }
.program-directory-layout .program-content { min-width: 0; max-width: 760px; padding: 0; }
.program-content .program-identity { margin: 0 0 18px; }
.program-content .insight-meta a { overflow-wrap: anywhere; }
.exam-sidebar { align-self: stretch; }
.exam-sidebar-inner { position: sticky; top: 99px; max-height: calc(100dvh - 122px - var(--hosting-clearance)); overflow-y: auto; padding: 0 16px 10px 0; scrollbar-width: thin; overscroll-behavior: contain; }
.exam-toc-label { font-size: 13px; color: var(--muted); margin: 0 0 16px 12px; }
.exam-toc { font-size: 14px; line-height: 1.55; }
.exam-toc a { display: block; padding: 9px 12px; border-left: 2px solid transparent; border-radius: 0 6px 6px 0; color: var(--sub); }
.exam-toc a:hover { color: var(--ink); background: var(--soft-2); }
.exam-toc .exam-toc-chapter { padding-block: 10px; }
.exam-toc-topics { display: none; margin-bottom: 8px; }
.exam-toc .exam-toc-topics a { padding: 7px 10px 7px 24px; font-size: 14px; }
.exam-toc-group.is-current > .exam-toc-chapter { color: var(--ink); font-weight: 650; }
.exam-toc-group.is-current > .exam-toc-topics { display: block; }
.exam-toc a[aria-current="location"] { border-left-color: var(--brand); background: var(--peach-bg); color: var(--brand); font-weight: 650; }
.exam-school-link { display: block; border-top: 1px solid var(--line); margin-top: 22px; padding: 19px 12px 0; font-size: 14px; color: var(--action); }
.exam-school-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.exam-article { min-width: 0; max-width: 800px; font-size: 17px; line-height: 1.9; overflow-wrap: break-word; }
.exam-intro { padding-bottom: 33px; border-bottom: 1px solid var(--border); }
.exam-eyebrow { color: var(--muted); font-size: 13px; letter-spacing: .04em; margin-bottom: 9px; }
.exam-intro h1 { font-size: 40px; line-height: 1.3; letter-spacing: -.04em; margin-bottom: 14px; }
.exam-description { color: var(--sub); font-size: 17px; }
.exam-version { display: flex; flex-wrap: wrap; gap: 4px 10px; color: var(--muted); font-size: 13px; margin-top: 19px; }
.exam-scope { color: var(--muted); font-size: 14px; margin-top: 7px; }
.exam-chapter { margin-top: 40px; padding-bottom: 36px; border-bottom: 1px solid var(--border); }
.exam-chapter:last-of-type { padding-bottom: 25px; }
.exam-chapter h2 { font-size: 27px; letter-spacing: -.025em; line-height: 1.45; margin-bottom: 22px; }
.exam-topic { margin-top: 29px; }
.exam-chapter > .exam-topic:first-of-type { margin-top: 0; }
.exam-topic h3 { font-size: 20px; line-height: 1.5; margin-bottom: 12px; }
.exam-chapter h2, .exam-topic h3 { scroll-margin-top: 102px; }
.exam-chapter h2 a:hover, .exam-topic h3 a:hover { text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 7px; }
.exam-chapter p + p, .exam-chapter .exam-table-wrap + p { margin-top: 13px; }
.exam-chapter p a, .exam-table a, .exam-entry-links a, .exam-references a, .exam-end a { color: var(--action); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--action) 35%, transparent); text-underline-offset: 4px; }
.exam-chapter a:hover, .exam-end a:hover { text-decoration-color: currentColor; }
.exam-table-wrap { margin-block: 19px; max-width: 100%; overflow-x: auto; border: 1px solid var(--border); border-radius: 9px; scrollbar-width: thin; }
.exam-table { border-collapse: collapse; text-align: left; width: 100%; font-size: 16px; line-height: 1.75; }
.exam-table th { background: var(--soft-2); color: var(--ink); font-weight: 650; }
.exam-table th, .exam-table td { border-bottom: 1px solid var(--line); padding: 12px 15px; vertical-align: top; min-width: 116px; }
.exam-table tbody tr:last-child td { border-bottom: 0; }
.exam-table th:first-child, .exam-table td:first-child { min-width: 125px; }
.exam-entry-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 17px; font-size: 15px; }
.exam-entry-links a { display: inline-flex; align-items: center; gap: 5px; }
.exam-references { display: flex; flex-wrap: wrap; gap: 4px 15px; font-size: 14px; line-height: 1.7; margin-top: 14px; }
.exam-references > span { color: var(--muted); }
.exam-references a { display: inline; }
.exam-references .icon { width: 13px; height: 13px; margin-left: 4px; }
.exam-end { display: flex; justify-content: space-between; gap: 20px; font-size: 15px; padding-top: 26px; }
.exam-mobile-directory { display: none; }
@media (max-width: 1100px) {
  .exam-guide { gap: 38px; grid-template-columns: 210px minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .exam-guide { display: block; padding-top: 0; }
  .program-directory-layout .program-content { margin-inline: auto; }
  .exam-sidebar { display: none; }
  .exam-article { max-width: none; }
  .exam-mobile-directory { display: block; position: sticky; top: 71px; z-index: 11; background: var(--bg); border-bottom: 1px solid var(--border); margin-bottom: 26px; }
  .exam-mobile-directory summary { display: flex; gap: 14px; align-items: center; padding-block: 14px; font-size: 14px; cursor: pointer; list-style: none; }
  .exam-mobile-directory summary::-webkit-details-marker { display: none; }
  .exam-mobile-directory summary > span:first-child { color: var(--muted); }
  .exam-mobile-directory summary strong { font-weight: 550; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .exam-directory-chevron { width: 8px; height: 8px; border-right: 1.5px solid var(--sub); border-bottom: 1.5px solid var(--sub); transform: rotate(45deg); margin-right: 5px; margin-top: -4px; }
  .exam-mobile-directory[open] .exam-directory-chevron { transform: rotate(225deg); margin-top: 4px; }
  .exam-mobile-directory-list { position: absolute; top: 100%; left: 0; right: 0; max-height: min(65dvh, 620px); overflow-y: auto; overscroll-behavior: contain; background: var(--bg); border: 1px solid var(--border); border-top: 0; box-shadow: 0 12px 20px #0000000c; padding: 10px; border-radius: 0 0 10px 10px; }
  .exam-mobile-directory .exam-toc a { padding-block: 12px; }
  .exam-mobile-directory .exam-toc-topics a { padding-block: 10px; }
  .exam-chapter h2, .exam-topic h3 { scroll-margin-top: 132px; }
}
@media (max-width: 700px) {
  /* 手机宽度下不显示网页顶栏，目录条直接贴在 App 顶部导航栏下面。 */
  .exam-mobile-directory { top: 0; margin-bottom: 24px; }
  .exam-chapter h2, .exam-topic h3, .insight-section { scroll-margin-top: 68px; }
  .exam-intro h1 { font-size: 32px; }
  .exam-intro { padding-bottom: 25px; }
  .exam-description { font-size: 16px; }
  .exam-article { font-size: 16px; line-height: 1.9; }
  .exam-chapter { margin-top: 29px; padding-bottom: 29px; }
  .exam-chapter h2 { font-size: 24px; margin-bottom: 20px; }
  .exam-topic h3 { font-size: 19px; }
  .exam-table th, .exam-table td { padding: 10px 12px; }
  .exam-table { min-width: 0; }
  .exam-table:has(th:nth-child(3)) { min-width: 530px; }
  .exam-table th:first-child, .exam-table td:first-child { min-width: 96px; }
  .exam-table:not(:has(th:nth-child(3))) th:first-child { width: 30%; }
  .exam-version { display: block; line-height: 1.9; }
  .exam-version span { margin-inline: 8px; }
  body.reading-guide .mobile-nav > * { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* 学校档案页 */
.school-profile-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; text-decoration: none; color: inherit; margin-bottom: 14px; }
.school-profile-card b { display: block; }
.school-profile-card svg { transform: rotate(180deg); flex: none; }
.school-levels { margin: 6px 0 14px; }
.school-department > summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.school-department .row-list { margin-top: 10px; }
.school-department .row-text .tags { margin-top: 6px; }
.subject-book-list { margin: 6px 0 0; padding-left: 18px; }
.subject-book-list li { margin: 2px 0; }
.subject-book-list small { color: var(--muted, inherit); }
.subject-ref { padding: 10px 0; border-top: 1px solid var(--line); }
.subject-ref:first-of-type { border-top: 0; }
.subject-references { margin-top: 14px; }
