/* Accessible page styles (the score diagnostic): high contrast, large targets, visible focus, readable line length. */
.good-root { max-width: 760px; margin: 0 auto; padding: 20px 16px 64px; font-size: 1.125rem; line-height: 1.6; color: var(--ink); }
.good-root h1 { font-size: clamp(1.6rem, 5vw, 2.2rem); line-height: 1.2; margin: 0; }
.good-root h2 { font-size: 1.5rem; margin: 1.2em 0 .4em; }
.good-root h3 { font-size: 1.2rem; margin: 1.2em 0 .3em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 8px; top: -60px; background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 6px; z-index: 50; }
.skip-link:focus { top: 8px; }
.good-root :focus-visible { outline: 3px solid #0b5c8a; outline-offset: 3px; border-radius: 4px; }
.g-header { border-bottom: 2px solid var(--line); padding-bottom: 12px; margin-bottom: 8px; }
.g-title-row { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.badge { display: inline-block; padding: 2px 10px; border: 2px solid #0b6b5e; color: #0b4f45; border-radius: 999px; font-size: .85rem; font-weight: 700; }
.muted { color: #3f485d; }
.small { font-size: .9rem; }
.lede { font-size: 1.2rem; }
.g-nav { margin: 8px 0; }
.g-nav summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.g-contents { list-style: none; padding: 0; margin: 4px 0 8px; display: grid; gap: 2px; }
.g-contents button[aria-current="step"] { font-weight: 700; text-decoration: none; border-left: 4px solid #0b5c8a; padding-left: 8px; }
.g-contents .linklike { min-height: 44px; text-align: left; }
.g-progress-wrap { display: flex; align-items: center; gap: 12px; margin: 8px 0 16px; }
.g-progress { flex: 1; height: 14px; accent-color: #0b5c8a; }
.g-progress-text { margin: 0; font-weight: 600; white-space: nowrap; }
.g-main { min-height: 40vh; }
.g-footer { margin-top: 32px; border-top: 2px solid var(--line); padding-top: 12px; }
.good-root .btn { min-height: 44px; min-width: 44px; padding: 10px 18px; font-size: 1rem; }
.good-root .btn.small { padding: 6px 14px; font-size: .95rem; }
.good-root .btn.secondary { background: #fff; color: #0b4f7a; border-color: #0b4f7a; }
.good-root .btn:disabled { opacity: .55; cursor: not-allowed; }
.good-root .btn.cta { background: #0b5c8a; color: #fff; }
.good-root .linklike { min-height: 32px; font-size: 1rem; }
.btn-row.tight { margin: 8px 0; }
.points { padding-left: 1.2em; }
.points li { margin: .35em 0; }
.reference { margin: 16px 0; border: 1px solid var(--line); border-radius: 8px; padding: 4px 14px; background: #fff; }
.reference summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 600; }
.recall { border: 2px solid #0b5c8a; border-radius: 10px; padding: 8px 16px 16px; margin: 20px 0; background: #fff; }
.recall h3 { margin-top: .6em; }
.recall-q { font-weight: 600; }
.recall-answer { background: #eef6fb; border-left: 4px solid #0b5c8a; padding: 4px 12px; margin: 8px 0; }
.qcard { border: 1px solid #8a93a6; border-radius: 10px; padding: 12px 16px 16px; margin: 20px 0; background: #fff; }
.qcard legend { font-weight: 700; padding: 0 6px; }
.qoptions { display: grid; gap: 8px; margin: 8px 0; }
.qoption { display: flex; align-items: flex-start; gap: 10px; border: 2px solid #8a93a6; border-radius: 8px; padding: 10px 12px; cursor: pointer; min-height: 44px; }
.qoption input { width: 22px; height: 22px; margin-top: 3px; flex: none; }
.qoption:has(input:checked) { border-color: #0b5c8a; background: #eef6fb; }
.qoption.is-correct { border-color: #0b6b5e; border-style: solid; background: #e8f5f1; }
.qoption.is-wrong { border-color: #8c1d2c; border-style: dashed; background: #fbeeee; }
.qbadge { font-weight: 700; white-space: nowrap; margin-left: auto; }
.qfeedback { margin-top: 8px; }
.callout { border-left: 6px solid #0b5c8a; background: #eef6fb; padding: 8px 16px; margin: 16px 0; border-radius: 4px; }
.design-note { margin: 28px 0 0; border: 1px dashed #55607a; border-radius: 8px; padding: 4px 14px; background: transparent; }
.design-note summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 600; }
.note-item { border-top: 1px solid var(--line); padding-top: 4px; }
.pattern-body p { margin: .35em 0; }
.review-list { list-style: none; padding: 0; display: grid; gap: 8px; }
.review-list > li > details { border: 1px solid #8a93a6; border-radius: 8px; padding: 4px 14px; background: #fff; }
.review-list summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; gap: 8px; font-weight: 600; }
.pid { font-size: .8rem; border: 1px solid #55607a; border-radius: 4px; padding: 0 6px; color: #3f485d; }
.listen { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0; }
.listen-speed { display: inline-flex; gap: 6px; align-items: center; }
.listen select { min-height: 36px; font: inherit; }
.listen-status { font-weight: 600; }
.objectives { padding-left: 1.3em; }
.objectives li { margin: .6em 0; }
.obj-meta { color: #3f485d; font-size: .95rem; }
.scn-setup, .scn-situation { margin: .4em 0; }
@media (prefers-reduced-motion: no-preference) {
  .qoption, .btn { transition: border-color .15s, background-color .15s; }
}
@media (max-width: 520px) {
  .good-root { font-size: 1.0625rem; }
  .g-footer .btn-row .btn { flex: 1; }
}


.note-item h3 { font-size: 1.05rem; margin: .8em 0 .2em; }

/* Score page: an official form (owner pick, 2026-10-14). Cream paper, navy rules, gold double line, red stamp. */
.form-root { max-width: 680px; margin: 0 auto; padding: 24px 16px 64px; color: #16233f; }
.form-root :focus-visible { outline: 3px solid #0b5c8a; outline-offset: 3px; }
.sheet { position: relative; background: #fbf6e9; border: 2px solid #16233f; outline: 1px solid #b98a1d; outline-offset: -8px; padding: 32px 32px 26px; margin: 0 0 22px; font-family: Georgia, "Times New Roman", serif; line-height: 1.45; }
.sheet h1, .sheet h2 { font-size: 1.7rem; font-weight: 700; margin: 2px 0 8px; padding-bottom: 8px; border-bottom: 3px double #b98a1d; line-height: 1.2; }
.sheet h3 { font-size: 1.1rem; margin: 1.2em 0 .3em; }
.form-label { margin: 0; font-size: .72rem; letter-spacing: .22em; color: #55607a; }
.sheet .intro { font-size: .95rem; color: #3b4560; margin: .4em 0 0; }
.form-stamp { position: absolute; right: 24px; top: 24px; border: 2px solid #8c1d2c; color: #8c1d2c; font: 700 .72rem Georgia, serif; letter-spacing: .18em; padding: 2px 9px; transform: rotate(-7deg); opacity: .85; pointer-events: none; }
.form-fields { border: 0; margin: 16px 0 0; padding: 0; }
.form-fields legend { font-weight: 700; padding: 0; margin-bottom: 2px; }
.form-row { display: flex; gap: 12px; align-items: flex-start; padding: 11px 6px; border-bottom: 1px solid #d9cfae; cursor: pointer; }
.form-row:hover { background: #f3ebd2; }
.form-check { appearance: none; -webkit-appearance: none; flex: none; width: 22px; height: 22px; margin: 2px 0 0; border: 2px solid #16233f; border-radius: 2px; background: #fffdf5; position: relative; cursor: pointer; }
.form-check:checked::after { content: ""; position: absolute; left: 5px; top: -5px; width: 7px; height: 15px; border: solid #8c1d2c; border-width: 0 3px 3px 0; transform: rotate(40deg); }
.form-row:has(.form-check:checked) .form-q { font-weight: 700; }
.form-no { flex: none; width: 2.2em; color: #55607a; font-size: .9rem; margin-top: 3px; }
.form-q { font-size: 1rem; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 18px; }
.form-count { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .9rem; color: #3b4560; }
.form-rating { font-weight: 700; color: #8c1d2c; letter-spacing: .04em; }
.sheet .btn { font-family: Georgia, serif; }
.form-score { margin: .1em 0 0; color: #8c1d2c; font-weight: 700; line-height: 1; }
.form-score span { font-size: 4.6rem; }
.form-score small { font-size: 1.6rem; color: #55607a; font-weight: 400; }
.form-tier { margin: .1em 0 0; font-size: 1.4rem; font-style: italic; font-weight: 700; }
.sheet .fix-list { padding-left: 1.3em; }
.sheet .pattern-body p { margin: .35em 0; }
.sheet .reference { background: #fffdf5; border-color: #d9cfae; }
@media (max-width: 520px) {
  .sheet { padding: 24px 18px 20px; }
  .form-stamp { position: static; display: inline-block; margin-bottom: 8px; transform: rotate(-3deg); }
}

/* "Send me your results" panel on the score page */
.contrib textarea { width: 100%; box-sizing: border-box; font: inherit; padding: 8px 10px; border: 2px solid #16233f; background: #fff; color: #16233f; }
.contrib label { display: block; font-weight: 700; margin: .8em 0 .3em; }
.contrib .contrib-check { font-weight: 400; display: flex; gap: 8px; align-items: flex-start; }
.contrib .contrib-check input { margin-top: 4px; }
.contrib-preview { white-space: pre-wrap; word-break: break-word; background: #fffdf5; border: 1px dashed #b98a1d; padding: 10px 12px; font: .85rem/1.4 ui-monospace, Consolas, monospace; color: #16233f; max-height: 260px; overflow: auto; }
