/* Full exam — same Hull/Sail palette and native controls as the public quiz. */
.exam-page { max-width: 1000px; }
.exam-page [hidden] { display: none !important; }
.exam-page button { font: inherit; cursor: pointer; }
.exam-page button:disabled { opacity: .55; cursor: default; }
.exam-page input:focus-visible { outline: 3px solid var(--gold-ink); outline-offset: 4px; }
.exam-page h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.15; }
.exam-page > section { scroll-margin-top: 90px; }
.exam-page fieldset { padding: 0; border: 0; margin: 24px 0; min-width: 0; }
.exam-page legend { font-weight: 650; margin-bottom: 12px; }
.exam-categories { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.exam-option, .exam-category { display: flex; align-items: flex-start; gap: 12px; padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper-3); cursor: pointer; overflow-wrap: anywhere; }
.exam-option input, .exam-category input { flex: 0 0 auto; width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--navy); }
.exam-option:has(input:checked), .exam-category:has(input:checked) { border-color: var(--navy); background: var(--paper-2); outline: 1px solid var(--navy); }
.exam-category strong, .exam-category small { display: block; }
.exam-category small { color: var(--ink-soft); font-size: 14px; }
.exam-mix { display: flex; flex-wrap: wrap; gap: 8px 24px; padding-left: 20px; font-size: 14px; color: var(--ink-soft); }
.exam-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; background: var(--navy); color: var(--paper); border-radius: 12px; }
.exam-toolbar p { margin: 0; }
.exam-toolbar .small-note { color: var(--paper); }
.exam-timer { font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; }
.exam-time-low { color: var(--gold-soft); }
.exam-page progress { width: 100%; height: 8px; accent-color: var(--sea); display: block; margin-top: 12px; }
.exam-question-card { margin-top: 28px; }
.exam-question-card h2 { font-size: clamp(22px, 3vw, 28px); line-height: 1.4; }
.exam-options { display: grid; gap: 12px; }
.exam-controls { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin: 24px 0; }
.exam-map { border-top: 1px solid var(--line); margin: 32px 0; padding-top: 20px; }
.exam-map summary { cursor: pointer; min-height: 44px; font-weight: 650; }
.exam-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(48px, 1fr)); gap: 8px; margin: 12px 0; }
.exam-grid button { min-height: 48px; padding: 6px; background: var(--paper-3); border: 1px solid var(--line); border-radius: 6px; color: var(--navy); }
.exam-grid .exam-answered { background: var(--paper-2); border-color: var(--navy); }
.exam-grid button[aria-current] { outline: 2px solid var(--navy); outline-offset: 2px; font-weight: 750; }
.exam-link-button { min-height: 44px; padding: 8px 0; color: var(--ink-soft); border: 0; border-bottom: 1px solid currentColor; background: transparent; }
.exam-notice:empty { display: none; }
.exam-notice { padding: 16px; background: var(--paper-2); border-left: 4px solid var(--gold-ink); }
.exam-dialog { max-width: min(480px, calc(100vw - 32px)); padding: 28px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); }
.exam-dialog::backdrop { background: #0a2540aa; }
.exam-dialog h2 { font-size: 24px; line-height: 1.3; }
.exam-dialog button { font: inherit; cursor: pointer; }
.exam-score { font-size: 56px; font-weight: 750; color: var(--navy); margin: 16px 0; line-height: 1.2; }
.exam-review-item { border-top: 1px solid var(--line); padding: 12px 0; }
.exam-review-item summary { padding: 12px 0; min-height: 44px; cursor: pointer; font-weight: 650; }
.exam-review-item p, .exam-review-item li { overflow-wrap: anywhere; }
.exam-review-options { list-style: none; padding: 0; }
.exam-review-options li { padding: 12px; border-radius: 6px; }
.exam-correct { color: var(--green); background: #2d6a4f0d; font-weight: 650; }
.exam-wrong { color: var(--red); background: #9b2c2c0d; }
.exam-review-filter { display: flex; align-items: center; gap: 12px; min-height: 48px; cursor: pointer; }
.exam-review-filter input { width: 20px; height: 20px; accent-color: var(--navy); }
@media (max-width: 520px) {
  .exam-categories { grid-template-columns: 1fr; }
  .exam-toolbar { padding: 16px; }
  .exam-controls .button-link { flex: 1; }
  .exam-controls > .exam-link-button { flex-basis: 100%; }
  .exam-option { padding: 16px 12px; }
}
