:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  color: #14283b;
  background: #edf3f8;
}

* { box-sizing: border-box; }
body { margin: 0; }
button, select { font: inherit; }
button { cursor: pointer; }
a { color: #075c9c; }
a:hover { color: #003d70; }

.page { width: min(100% - 2rem, 860px); margin: 0 auto; padding: 2.5rem 0 4rem; }
.site-header { display: flex; align-items: center; gap: 1.25rem; margin-bottom: 2rem; }
.brand-mark { flex: none; display: grid; place-items: center; width: 4.5rem; height: 4.5rem; border-radius: 1rem; background: #0b2541; color: #fff; font-size: 1.05rem; font-weight: 800; letter-spacing: .03em; }
.eyebrow { margin: 0 0 .35rem; color: #426c90; font-size: .86rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: .3rem; font-size: clamp(1.7rem, 4vw, 2.5rem); line-height: 1.1; }
.subtitle { margin-bottom: 0; color: #536b7f; }
.notice { display: grid; gap: .35rem; margin-bottom: 1.5rem; padding: 1rem 1.2rem; border: 1px solid #bed7e8; border-left: 4px solid #3388bd; border-radius: .7rem; background: #f5fbff; line-height: 1.5; }
.notice strong { color: #174c70; }
.quiz { padding: clamp(1.2rem, 4vw, 2rem); border: 1px solid #d4e0e9; border-radius: 1rem; background: #fff; box-shadow: 0 12px 35px #15334d0b; }
.toolbar { display: flex; justify-content: space-between; align-items: end; gap: 1rem; }
h2 { margin-bottom: 0; font-size: 1.35rem; }
.jump-label { display: grid; gap: .4rem; color: #536b7f; font-size: .875rem; font-weight: 650; }
select { min-width: 9rem; padding: .65rem .8rem; border: 1px solid #b8cad8; border-radius: .55rem; background: #fff; color: #14283b; }
.progress-track { height: .55rem; margin-top: 1.5rem; overflow: hidden; border-radius: 100px; background: #e2ebf2; }
.progress-fill { width: 0; height: 100%; border-radius: inherit; background: #1477ae; transition: width .2s ease; }
.stats { margin: .7rem 0 1.5rem; color: #536b7f; font-size: .9rem; }
.question-card { padding-top: 1.4rem; border-top: 1px solid #e4ebf0; }
.section-name { margin-bottom: .7rem; color: #09679e; font-size: .9rem; font-weight: 700; }
h3 { margin-bottom: 1.4rem; font-size: clamp(1.2rem, 3vw, 1.55rem); line-height: 1.42; font-weight: 680; }
.choices { display: grid; gap: .75rem; }
.choice { display: flex; align-items: start; gap: .9rem; width: 100%; min-height: 3.5rem; padding: .9rem 1rem; border: 1px solid #cbd9e4; border-radius: .7rem; background: #fff; color: #14283b; text-align: left; line-height: 1.45; transition: border-color .15s, background .15s; }
.choice:hover:not(:disabled) { border-color: #1477ae; background: #f3faff; }
.choice:focus-visible, .nav-button:focus-visible, .reset-button:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid #ffba52; outline-offset: 2px; }
.choice:disabled { cursor: default; opacity: 1; }
.choice-letter { flex: none; display: grid; place-items: center; width: 1.65rem; height: 1.65rem; border-radius: .4rem; background: #e9f0f5; color: #315673; font-weight: 750; }
.choice.correct { border-color: #3caa75; background: #effaf4; }
.choice.correct .choice-letter { background: #278d5a; color: #fff; }
.choice.incorrect { border-color: #d96d70; background: #fff3f3; }
.choice.incorrect .choice-letter { background: #be4248; color: #fff; }
.feedback { min-height: 1.7rem; margin: 1rem 0 .5rem; font-weight: 700; line-height: 1.5; }
.feedback.good { color: #16744a; }
.feedback.bad { color: #af343a; }
.image-note { margin-top: 1.1rem; color: #62798b; font-size: .875rem; }
.image-note summary { cursor: pointer; }
.image-note p { margin: .45rem 0 0; }
.navigation { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.8rem; }
.nav-button { min-width: 9rem; padding: .8rem 1.1rem; border-radius: .6rem; border: 1px solid #b9cbd9; font-weight: 700; }
.nav-button.secondary { background: #fff; color: #244b69; }
.nav-button.primary { border-color: #0d6a9f; background: #0d6a9f; color: #fff; }
.nav-button:hover:not(:disabled) { filter: brightness(.94); }
.nav-button:disabled { cursor: not-allowed; opacity: .42; }
.bottom-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.3rem .2rem 0; }
.bottom-row a { font-weight: 650; }
.reset-button { padding: .4rem 0; border: 0; background: transparent; color: #62798b; text-decoration: underline; }

@media (max-width: 600px) {
  .page { width: min(100% - 1.2rem, 860px); padding-top: 1.2rem; }
  .site-header { gap: .8rem; }
  .brand-mark { width: 3.4rem; height: 3.4rem; font-size: .83rem; }
  .toolbar { align-items: start; }
  .jump-label { font-size: .78rem; }
  select { min-width: 6rem; }
  .navigation .nav-button { min-width: 0; flex: 1; }
  .bottom-row { align-items: start; flex-direction: column; }
}
