:root { color: #102b43; background: #f4f8f7; font: 16px/1.5 Aptos, Arial, sans-serif; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
.banner { background: linear-gradient(115deg, #102b43, #0b4051); color: white; display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: 1.4rem max(1rem, calc((100vw - 58rem) / 2)); }
.banner img { object-fit: contain; }
.banner p, .banner h1 { margin: 0; }
.eyebrow { font-weight: bold; letter-spacing: .07em; color: #a5e3df; font-size: .9rem; }
h1 { font-size: clamp(1.85rem, 5vw, 2.65rem); line-height: 1.2; }
main { width: min(58rem, calc(100% - 2rem)); margin: 1.25rem auto; }
.panel { background: white; border: 1px solid #c4d9dc; border-radius: .4rem; padding: clamp(1rem, 4vw, 1.75rem); margin: 1rem 0; }
.panel h2:first-child { margin-top: 0; }
button, input { font: inherit; }
button { min-height: 44px; border: 1px solid #14616a; border-radius: .25rem; background: #14616a; color: white; cursor: pointer; padding: .5rem .8rem; }
:focus-visible { outline: 3px solid #a56a11; outline-offset: 3px; }
a { color: #125966; text-decoration: underline; }
.fields, .actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-block: 1rem; }
.fields label { flex: 1 1 12rem; }
.fields input { display: block; width: 100%; min-height: 44px; padding: .45rem; border: 1px solid #64848a; border-radius: .25rem; }
fieldset { margin: 0; padding: 0; border: 0; min-inline-size: 0; }
legend { font-size: 1.25rem; font-weight: bold; padding: 0; margin-bottom: .5rem; }
.choice { display: flex; align-items: baseline; gap: .6rem; border: 1px solid #bccfd1; border-radius: .3rem; padding: .65rem; margin: .55rem 0; cursor: pointer; min-height: 44px; }
.choice:has(input:checked) { background: #e4f3f1; border-color: #14616a; }
.jump, .results-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(2.65rem, 1fr)); gap: .35rem; }
.jump button { padding-inline: .2rem; background: white; color: #102b43; }
.jump button[aria-current] { border: 2px solid #102b43; }
.jump button.answered { background: #e4f3f1; }
.results-grid { grid-template-columns: repeat(10, 1fr); }
.results-grid > * { padding: .15rem; border: 1px solid #bccfd1; text-align: center; }
.results-grid del { text-decoration-thickness: 2px; color: #8a2633; }
table { width: 100%; border-collapse: collapse; }
td, th { text-align: left; padding: .35rem .5rem; border-bottom: 1px solid #ccd9da; }
td:last-child, th:last-child { white-space: nowrap; }
#save-status, #quiz-message { color: #8a2633; font-weight: bold; }
footer { text-align: center; padding: 1rem; color: #315660; }
@page { size: letter; margin: .5in; }
@media print {
  :root { font-size: 12pt; line-height: 1.28; background: white; color: black; }
  body:not(.report-ready) .banner, body:not(.report-ready) footer,
  nav, #setup, #quiz, #review, #save-status, .actions, .banner img { display: none !important; }
  .banner { display: block; color: black; background: white; padding: 0 0 .15in; border-bottom: 1px solid black; }
  .eyebrow, .results-grid del, footer { color: black; }
  h1 { font-size: 21pt; }
  h2 { font-size: 16pt; }
  h3 { font-size: 13pt; margin-block: .7em .25em; }
  h2, h3, thead { break-after: avoid; }
  p, ul, dl { margin-block: .35em; }
  main { width: auto; margin: .15in 0 0; }
  .panel { margin: 0; padding: 0; border: 0; }
  td, th { padding: .16em .35em; }
  tr, .results-grid { break-inside: avoid; }
  a { color: black; }
  footer { padding: .15in 0 0; }
}
