:root {
  color-scheme: light;
  --ink: #142f32;
  --muted: #506465;
  --green: #006553;
  --dark: #113b37;
  --lime: #d5ef72;
  --line: #dce5e0;
  --paper: #f3f6f4;
  font-family: "Inter", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 1rem; }
body, h1, h2, h3, h4, p, dl, dd { margin: 0; }
h1, h2, h3, h4 { line-height: 1.25; }
a { color: var(--green); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .13em; }
button, select, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .48; }
:focus-visible { outline: 3px solid #007c67; outline-offset: 3px; }
.hero :focus-visible { outline-color: var(--lime); }
.shell { width: min(1184px, calc(100% - 64px)); margin-inline: auto; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip:focus { position: fixed; top: 6px; left: 8px; z-index: 2; background: white; padding: 8px; }
.top { background: #fff; border-bottom: 1px solid var(--line); }
.top-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.top-inner { min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); font-size: 1.13rem; font-weight: 850; white-space: nowrap; text-decoration: none; }
.brand-icon { display: grid; place-items: center; width: 2.15rem; height: 2.15rem; border-radius: .65rem; background: var(--dark); color: var(--lime); font-size: 1.5rem; line-height: 1; }
nav { display: flex; flex-wrap: wrap; gap: clamp(.8rem, 3vw, 2rem); }
nav a { color: var(--muted); text-decoration: none; font-weight: 650; font-size: .94rem; }
nav a:hover, nav a[aria-current] { color: var(--green); text-decoration: underline; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .57rem 1.05rem; border: 1px solid transparent; border-radius: .55rem; font-weight: 750; color: var(--ink); text-decoration: none; line-height: 1.35; }
.button:hover:not(:disabled) { filter: brightness(.94); }
.primary { background: var(--lime); }
.outline { border-color: #b7c9c1; background: white; }
.dark { color: white; background: var(--dark); }
.hero-link { color: white; border-color: #ffffff70; background: #081c2280; }
.actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.hero { position: relative; isolation: isolate; display: grid; align-items: center; min-height: 362px; margin-top: 1.8rem; padding: 3rem clamp(1.5rem, 5.5vw, 4rem); border-radius: 1.2rem; overflow: hidden; color: #fff; background: linear-gradient(90deg, #0a2229 0%, #0a232bd9 27%, #0b283452 59%, #0b283400 83%), #143c45 url(coast.webp) center 49% / cover no-repeat; }
.hero h1 { margin: .55rem 0 1rem; font-size: clamp(2.5rem, 6vw, 4.8rem); font-weight: 850; letter-spacing: .025em; }
.hero-copy > p:not(.hero-kicker) { color: #e5efed; max-width: 29rem; }
.hero .actions { margin-top: 1.65rem; }
.hero-kicker { display: flex; align-items: center; gap: .6rem; font-size: .9rem; font-weight: 750; letter-spacing: .1em; color: #dcf4a0; }
.hero-kicker span { width: 1.25rem; height: 2px; background: var(--lime); }
.hero-note { position: absolute; right: 1rem; bottom: .8rem; font-size: .78rem; color: #fff; background: #152f36bd; border-radius: .3rem; padding: .15rem .45rem; }
.summary { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; margin: 1rem 0 1.65rem; border: 1px solid var(--line); border-radius: .9rem; }
.summary > div { padding: 1rem clamp(.7rem, 2vw, 1.45rem); display: grid; align-content: center; }
.summary > div + div { border-left: 1px solid var(--line); }
.summary strong { color: var(--dark); font-size: 1.75rem; line-height: 1.2; font-variant-numeric: tabular-nums; }
.summary small { font-size: .9rem; }
.summary span { color: var(--muted); font-size: .88rem; }
.summary .freshness strong { font-size: 1.15rem; margin-top: .15rem; }
.workspace { margin-bottom: 2rem; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 1rem; }
.panel-header { padding: 1.38rem 1.5rem .85rem; }
.panel h2 { font-size: 1.65rem; margin-top: .25rem; }
.pane, .schedule-body { padding: 1.25rem 1.5rem 1.5rem; }
.schedule-body { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2rem; padding-top: .5rem; }
.schedule-registration { border-left: 1px solid var(--line); padding-left: 2rem; }
.section-intro { margin-bottom: 1rem; }
.section-intro p, .minor, .path { color: var(--muted); font-size: .9rem; }
.section-intro p { margin-top: .35rem; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.mock-types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin-bottom: 1.15rem; }
.mock-type, .answer-option { display: flex; align-items: start; gap: .6rem; border: 1px solid var(--line); border-radius: .65rem; padding: .72rem; cursor: pointer; }
.mock-type:has(:checked), .answer-option:has(:checked) { border-color: var(--green); background: #edf8f2; box-shadow: inset 0 0 0 1px var(--green); }
.mock-type .variant { white-space: nowrap; }
.mock-type small { display: block; color: var(--muted); font-size: .83rem; margin-top: .18rem; }
input[type=radio] { accent-color: var(--green); margin: .34rem .15rem 0 0; flex: none; }
.release-list { padding: 0; margin: .7rem 0 1rem; list-style: none; }
.release-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .35rem .6rem; padding: .65rem 0; border-bottom: 1px solid var(--line); }
.release-list time { font-weight: 780; font-variant-numeric: tabular-nums; }
.release-list small { font-size: .8rem; color: var(--muted); }
.release-list .next-update { color: var(--green); font-weight: 800; }
.callout { border-left: 3px solid #7fa99a; padding: .65rem .75rem; background: #f1f7f3; color: var(--muted); font-size: .9rem; margin: .9rem 0; }
.callout a { display: inline-block; margin-left: .45rem; }
.schedule .dark { width: 100%; }
.path { margin: .7rem 0; }
.links { display: grid; gap: .25rem .85rem; font-size: .9rem; }
.links.compact { display: flex; flex-wrap: wrap; margin-top: 1rem; }
.contacts { margin-top: .9rem; border-top: 1px solid var(--line); font-size: .88rem; padding-top: .6rem; }
.contacts div { display: flex; justify-content: space-between; gap: .5rem; }
.guide-types { display: grid; gap: .65rem; }
.guide-types article { padding: .75rem; border: 1px solid var(--line); border-radius: .55rem; }
.guide-types p, .steps p, .guide-detail p { margin-top: .25rem; color: var(--muted); }
.steps { padding-left: 1.45rem; }
.steps li { padding: 0 0 .7rem .2rem; }
.fees { margin: .55rem 0 1rem; }
.fees div { display: flex; justify-content: space-between; gap: .5rem; border-bottom: 1px solid var(--line); padding: .45rem 0; }
.fees dd { font-weight: 700; }
.guide-detail, .question-detail { border: 1px solid var(--line); border-radius: .55rem; padding: .7rem .8rem; margin: .55rem 0; }
summary { cursor: pointer; font-weight: 700; }
.filters { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.filters .search { grid-column: 1 / -1; }
.filters label { display: grid; gap: .2rem; color: var(--muted); font-size: .9rem; font-weight: 700; }
.filters select, .filters input { display: block; min-width: 0; width: 100%; min-height: 44px; border: 1px solid #b7c9c1; border-radius: .45rem; padding: .4rem .55rem; color: var(--ink); background: #fff; }
.bank-meta, .pagination, .exam-meta, .exam-controls { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem; margin: .8rem 0; }
.bank-meta { font-size: .9rem; }
.question-detail summary { list-style-position: outside; margin-left: 1.15rem; }
.question-detail summary span { display: block; color: var(--green); font-size: .8rem; font-weight: 750; }
.question-detail ol { padding-left: 1.45rem; margin: .6rem 0; overflow-wrap: anywhere; }
.correct { color: var(--green); font-weight: 780; }
.empty { background: var(--paper); padding: 1rem; margin-top: .65rem; border-radius: .55rem; }
.exam-meta { margin-top: 0; }
.timer { background: var(--dark); color: white; padding: .25rem .65rem; border-radius: .4rem; font-variant-numeric: tabular-nums; font-weight: 780; }
.timer.warning { background: #842b1d; }
progress { display: block; width: 100%; height: .5rem; accent-color: var(--green); }
.exam-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(2.3rem, 1fr)); gap: .33rem; margin: .75rem 0 1rem; }
.exam-grid button { min-height: 2.3rem; border: 1px solid var(--line); background: white; color: var(--ink); border-radius: .35rem; font-size: .88rem; padding: 0; }
.exam-grid button.answered { background: #e1f3e8; }
.exam-grid button[aria-current] { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); font-weight: 800; }
#question { margin: .35rem 0 .75rem; overflow-wrap: anywhere; }
.answer-option { margin: .4rem 0; }
.result-top { background: #eef7f1; border-radius: .7rem; padding: 1rem; margin-bottom: .9rem; }
.result-top strong { font-size: 2rem; color: var(--dark); font-variant-numeric: tabular-nums; }
.result-top p { color: var(--muted); }
.result-filter { font-weight: 700; }
footer { background: #e9efeb; padding: 1.3rem 0; color: var(--muted); font-size: .875rem; }
footer .links.compact { margin: 0; }
@media (max-width: 820px) {
  .shell { width: calc(100% - 36px); }
  .panel-header, .pane, .schedule-body { padding-left: 1rem; padding-right: 1rem; }
}
@media (max-width: 680px) {
  .top-inner { flex-wrap: wrap; gap: .4rem .75rem; padding-block: .55rem; }
  .top nav { order: 1; width: 100%; justify-content: space-between; gap: .4rem; }
  .top nav a { padding: .45rem 0; }
  .hero { min-height: 320px; margin-top: 1rem; background-position: center, 59% center; }
  .summary { grid-template-columns: 1fr 1fr; }
  .summary > div:nth-child(odd) { border-left: 0; }
  .summary > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .schedule-body { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .schedule-registration { border-left: 0; border-top: 1px solid var(--line); padding: 1rem 0 0; }
  .footer-inner { display: grid; gap: .5rem; }
}
@media (max-width: 360px) {
  .shell { width: calc(100% - 24px); }
  .mock-types, .filters { grid-template-columns: 1fr; }
}

#practice-form { display: flex; gap: .7rem; align-items: end; flex-wrap: wrap; }
.practice-select { display: grid; gap: .2rem; color: var(--muted); font-size: .9rem; font-weight: 700; }
.practice-select select { min-height: 44px; max-width: 100%; padding: .4rem .55rem; border: 1px solid #b7c9c1; border-radius: .45rem; color: var(--ink); background: #fff; }
.practice-meta, .practice-controls { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .55rem; }
.practice-meta { margin-bottom: .5rem; }
.practice-meta p { font-size: .9rem; font-weight: 750; font-variant-numeric: tabular-nums; }
.practice-origin { margin-top: .75rem; }
#practice-question { margin: .3rem 0 .8rem; overflow-wrap: anywhere; }
.practice-options { display: grid; gap: .4rem; }
.practice-option { display: flex; gap: .55rem; align-items: baseline; min-height: 44px; width: 100%; padding: .65rem .75rem; border: 1px solid var(--line); border-radius: .6rem; background: white; color: var(--ink); text-align: left; }
.practice-option span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.practice-option small { font-weight: 750; white-space: nowrap; }
.practice-option:disabled { opacity: 1; }
.practice-option:hover:not(:disabled) { background: #edf8f2; border-color: var(--green); }
.practice-option.right, .practice-feedback.right { background: #e9f7ed; border-color: #6e9c80; }
.practice-option.incorrect, .practice-feedback.incorrect { background: #fff1ee; border-color: #c5897b; }
.practice-feedback { background: var(--paper); border: 1px solid var(--line); border-radius: .65rem; padding: .75rem .9rem; margin-top: .85rem; overflow-wrap: anywhere; }
.practice-feedback h5 { margin: .65rem 0 .2rem; font-size: .9rem; color: var(--muted); }
.practice-feedback p + p { margin-top: .45rem; }
.practice-source { font-size: .875rem; color: var(--muted); }
.practice-controls { justify-content: flex-end; margin-top: .9rem; }
.practice-exit { min-height: 44px; margin-right: auto; padding: 0; border: 0; background: transparent; color: var(--muted); text-decoration: underline; text-underline-offset: .2em; }

/* Each tool has a dedicated view beneath the main navigation. */
[data-view="focus"] {
  background: #fff;
  scroll-padding-top: 5.25rem;
}
[data-view="focus"] .top {
  position: sticky;
  top: 0;
  z-index: 1;
}
[data-view="focus"] .top-inner { justify-content: flex-start; gap: clamp(1.5rem, 6vw, 5rem); }
[data-view="focus"] .top-action,
:is([data-view="focus"], [data-view="reference"]) :is(.hero, .summary, .schedule, footer) { display: none; }
:is([data-view="focus"], [data-view="reference"]) .workspace {
  width: min(100%, 940px);
  margin: 0 auto;
}
:is([data-view="focus"], [data-view="reference"]) .pane { padding: clamp(1.5rem, 4vw, 3.25rem) 0 2.5rem; }
:is([data-view="focus"], [data-view="reference"]) .pane:focus { outline: none; }
:is([data-view="focus"], [data-view="reference"]) .section-intro h3 { font-size: clamp(1.6rem, 4vw, 2.25rem); }
:is([data-view="focus"], [data-view="reference"]) .section-intro { margin-bottom: 1.4rem; }
[data-view="focus"] .exam-meta h3,
[data-view="focus"] .practice-meta h3 { font-size: 1.2rem; }
[data-view="focus"] #question,
[data-view="focus"] #practice-question {
  font-size: clamp(1.2rem, 3vw, 1.65rem);
  line-height: 1.5;
  margin-bottom: 1rem;
}
[data-view="focus"] .answer-option,
[data-view="focus"] .practice-option { padding: .8rem 1rem; }
[data-view="focus"] .practice-options { gap: .6rem; }
[data-view="focus"] .practice-feedback { margin-top: 1.15rem; padding: 1rem; }

@media (max-width: 680px) {
  [data-view="focus"] { scroll-padding-top: 6.75rem; }
  [data-view="focus"] .top-inner { gap: .25rem; }
  :is([data-view="focus"], [data-view="reference"]) .pane { padding-top: 1.35rem; }
}
@media (max-width: 360px) {
  [data-view="focus"] .top nav { gap: .2rem; }
  [data-view="focus"] .top nav a { font-size: .85rem; }
}
