:root {
  --black: #0a0a0a;
  --charcoal: #171717;
  --paper: #f4f3ef;
  --paper-deep: #e6e4dd;
  --white: #ffffff;
  --ink: #17181b;
  --text: #575b62;
  --muted: #777c84;
  --blue: #b9d7ff;
  --blue-strong: #73a9ef;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body.scorecard-page { margin: 0; color: var(--ink); background: var(--paper); font-family: Arial, Helvetica, sans-serif; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button, label { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; }

.skip-link { position: fixed; top: 12px; left: 12px; z-index: 1000; padding: 10px 14px; color: var(--black); background: var(--blue); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.site-header { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 92px; padding: 18px clamp(24px, 5vw, 72px); color: var(--white); background: var(--black); border-bottom: 1px solid #333; }
.brand { font-family: Georgia, "Times New Roman", serif; font-size: 1.32rem; text-decoration: none; }
.brand i { font-weight: 500; }
.header-label { color: #929292; font-size: 0.68rem; letter-spacing: 0.15em; text-transform: uppercase; }
.outline-button { justify-self: end; padding: 11px 17px; color: var(--white); background: transparent; border: 1px solid #6b6b6b; cursor: pointer; }
.outline-button:hover { border-color: var(--blue); }

.hero { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.75fr); gap: clamp(40px, 7vw, 110px); align-items: center; padding: clamp(76px, 10vw, 136px) clamp(24px, 7vw, 110px); color: var(--white); background: radial-gradient(circle at 80% 12%, rgba(115, 169, 239, 0.12), transparent 30%), var(--black); }
.hero-copy { max-width: 850px; }
.eyebrow { margin-bottom: 16px; color: var(--blue); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.17em; text-transform: uppercase; }
.eyebrow.dark { color: #497cb9; }
h1 { margin-bottom: 25px; font-size: clamp(2.8rem, 6vw, 5.7rem); line-height: 0.98; letter-spacing: -0.028em; }
h1 i { color: var(--blue); }
.hero-lead { max-width: 760px; margin-bottom: 28px; color: #c2c2c2; font-size: clamp(1rem, 1.7vw, 1.22rem); font-weight: 300; line-height: 1.7; }
.privacy-note { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; color: #a7a7a7; font-size: 0.82rem; }
.privacy-note span { display: grid; place-items: center; width: 19px; height: 19px; color: var(--black); background: var(--blue); border-radius: 50%; font-size: 0.7rem; }
.partner-note { margin-bottom: 0; color: #737373; font-size: 0.74rem; }

.scoring-key { padding: 32px; background: #111; border: 1px solid #3b3b3b; box-shadow: var(--shadow); }
.key-kicker { margin-bottom: 8px; color: var(--blue); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.scoring-key h2 { margin-bottom: 20px; font-size: 1.55rem; line-height: 1.2; }
.scoring-key dl { margin: 0 0 18px; }
.scoring-key dl div { display: grid; grid-template-columns: 38px 1fr; gap: 10px; align-items: center; padding: 11px 0; border-top: 1px solid #303030; }
.scoring-key dt { color: var(--blue); font-family: Georgia, "Times New Roman", serif; font-size: 1.5rem; }
.scoring-key dd { margin: 0; color: #bdbdbd; font-size: 0.84rem; line-height: 1.45; }
.scoring-key > p:last-child { margin-bottom: 0; color: #747474; font-size: 0.77rem; line-height: 1.5; }

.scorecard-shell, .interpretation { width: min(1180px, calc(100% - 48px)); margin-right: auto; margin-left: auto; }
.scorecard-shell { width: min(920px, calc(100% - 48px)); min-height: 620px; margin-top: 72px; padding: clamp(30px, 6vw, 64px); background: var(--white); box-shadow: var(--shadow); }
.scorecard-heading { display: flex; gap: 40px; align-items: flex-end; justify-content: space-between; margin-bottom: 30px; }
.scorecard-heading h2, .interpretation h2, .next-step h2 { margin-bottom: 0; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; }
.progress-block { width: min(260px, 100%); color: var(--muted); font-size: 0.76rem; text-align: right; }
.progress-track { height: 6px; margin-top: 10px; overflow: hidden; background: var(--paper-deep); }
.progress-track span { display: block; width: 0; height: 100%; background: var(--blue-strong); transition: width 0.25s ease; }

fieldset { min-height: 350px; margin: 0; padding: 38px 0 24px; border: 0; border-top: 1px solid var(--paper-deep); }
fieldset[hidden] { display: none; }
fieldset:not([hidden]) { animation: question-in 0.24s ease-out; }
legend { width: 100%; padding: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.55rem, 3vw, 2rem); line-height: 1.2; }
legend span { display: inline-block; width: 42px; color: #497cb9; font-family: Arial, Helvetica, sans-serif; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; }
.question { max-width: 760px; margin: 16px 0 10px 42px; color: var(--text); font-size: 1.05rem; line-height: 1.6; }
.evidence-hint { max-width: 760px; margin: 0 0 24px 42px; color: var(--muted); font-size: 0.78rem; line-height: 1.5; }
.evidence-hint strong { color: #497cb9; }
.options { display: grid; grid-template-columns: 1fr; gap: 12px; max-width: 760px; margin-left: 42px; }
.options label { position: relative; display: grid; grid-template-columns: 34px 1fr; gap: 14px; min-height: 100%; padding: 18px 20px; color: var(--text); background: var(--paper); border: 1px solid transparent; cursor: pointer; line-height: 1.5; transition: border-color 0.15s, background 0.15s, transform 0.15s; }
.options label:hover { border-color: var(--blue-strong); transform: translateY(-1px); }
.options input { position: absolute; opacity: 0; pointer-events: none; }
.options label:has(input:focus-visible) { outline: 3px solid rgba(115, 169, 239, 0.45); outline-offset: 2px; }
.options label:has(input:checked) { color: var(--black); background: #eef6ff; border-color: var(--blue-strong); box-shadow: inset 0 0 0 1px var(--blue-strong); }
.option-score { display: inline-grid; place-items: center; width: 28px; height: 28px; color: var(--black); background: var(--white); border: 1px solid var(--paper-deep); border-radius: 50%; font-weight: 700; }
.options label:has(input:checked) .option-score { background: var(--blue); border-color: var(--blue-strong); }
.form-actions { display: flex; gap: 22px; align-items: center; justify-content: space-between; padding-top: 28px; border-top: 1px solid var(--paper-deep); }
.step-actions { display: flex; gap: 22px; align-items: center; margin-left: auto; }
.primary-button { display: inline-flex; align-items: center; justify-content: center; padding: 15px 24px; color: var(--white); background: var(--black); border: 1px solid var(--black); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.08em; text-decoration: none; text-transform: uppercase; cursor: pointer; }
.primary-button:hover { color: var(--black); background: var(--blue); border-color: var(--blue); }
.primary-button:disabled { color: var(--muted); background: var(--paper-deep); border-color: var(--paper-deep); cursor: not-allowed; }
.text-button { padding: 10px 0; color: var(--muted); background: transparent; border: 0; border-bottom: 1px solid currentColor; cursor: pointer; }
.primary-button:focus-visible, .text-button:focus-visible, .outline-button:focus-visible { outline: 3px solid rgba(115, 169, 239, 0.55); outline-offset: 3px; }

.result-panel { display: grid; grid-template-columns: 150px minmax(0, 1fr) minmax(230px, 0.5fr); gap: 36px; align-items: center; width: min(1180px, calc(100% - 48px)); margin: 34px auto 0; padding: clamp(28px, 5vw, 50px); color: var(--white); background: var(--black); box-shadow: var(--shadow); }
.result-panel[hidden] { display: none; }
.score-disc { display: grid; place-items: center; width: 130px; height: 130px; border: 1px solid var(--blue-strong); border-radius: 50%; }
.score-disc strong { align-self: end; color: var(--blue); font-family: Georgia, "Times New Roman", serif; font-size: 3.2rem; line-height: 1; }
.score-disc span { align-self: start; color: #777; font-size: 0.74rem; }
.result-copy h2 { margin-bottom: 12px; color: var(--white); font-size: clamp(2rem, 4vw, 3rem); }
.result-copy > p:not(.eyebrow) { margin-bottom: 20px; color: #bdbdbd; line-height: 1.65; }
.result-actions { display: grid; gap: 16px; }
.result-actions p { margin: 0; color: #8c8c8c; font-size: 0.8rem; line-height: 1.55; }
.result-actions .primary-button { width: 100%; }
.priority-result { grid-column: 1 / -1; padding-top: 30px; border-top: 1px solid #343434; }
.priority-label { margin-bottom: 8px; color: var(--blue); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.priority-result h3 { margin-bottom: 10px; color: var(--white); font-size: clamp(1.5rem, 3vw, 2.1rem); }
.selected-answer { margin-bottom: 24px; color: #9d9d9d; font-size: 0.86rem; line-height: 1.55; }
.selected-answer strong { color: #d6d6d6; }
.guidance-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: #343434; border: 1px solid #343434; }
.guidance-grid article { padding: 20px; background: #151515; }
.guidance-grid strong { display: block; margin-bottom: 10px; color: var(--blue); font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase; }
.guidance-grid p { margin: 0; color: #bcbcbc; font-size: 0.84rem; line-height: 1.55; }

.interpretation { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(45px, 8vw, 100px); padding: 92px 0; }
.interpretation-heading > p:last-child { margin-top: 20px; color: var(--text); line-height: 1.7; }
.bands { border-top: 1px solid var(--paper-deep); }
.bands article { display: grid; grid-template-columns: 62px 220px 1fr; gap: 20px; align-items: baseline; padding: 24px 0; border-bottom: 1px solid var(--paper-deep); }
.bands span { color: #497cb9; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; }
.bands h3 { margin: 0; font-size: 1.15rem; }
.bands p { margin: 0; color: var(--text); font-size: 0.86rem; line-height: 1.5; }
.override-note { grid-column: 2; margin: -70px 0 0; padding: 16px 18px; color: var(--text); background: #eaf3ff; border-left: 3px solid var(--blue-strong); font-size: 0.82rem; line-height: 1.55; }
.override-note strong { color: var(--ink); }

.next-step { display: flex; gap: 50px; align-items: center; justify-content: space-between; padding: 72px clamp(24px, 7vw, 110px); color: var(--white); background: var(--charcoal); }
.next-step > div { max-width: 760px; }
.next-step h2 { margin-bottom: 14px; }
.next-step > div > p:last-child { margin-bottom: 0; color: #b2b2b2; line-height: 1.65; }
.primary-button.inverse { color: var(--black); background: var(--blue); border-color: var(--blue); }
.primary-button.inverse:hover { color: var(--white); background: transparent; }

footer { display: grid; grid-template-columns: 1fr auto auto; gap: 50px; align-items: center; padding: 38px clamp(24px, 5vw, 72px); color: #7c7c7c; background: var(--black); border-top: 1px solid #303030; font-size: 0.78rem; }
footer > div { display: grid; gap: 5px; }
footer strong { color: var(--white); font-family: Georgia, "Times New Roman", serif; font-size: 1rem; }
footer a { color: var(--blue); }
footer p { margin: 0; }

@keyframes question-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  fieldset:not([hidden]) { animation: none; }
}

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; }
  .header-label { display: none; }
  .hero { grid-template-columns: 1fr; }
  .scoring-key { max-width: 620px; }
  .result-panel { grid-template-columns: 110px 1fr; }
  .score-disc { width: 100px; height: 100px; }
  .result-actions { grid-column: 1 / -1; }
  .interpretation { grid-template-columns: 1fr; }
  .override-note { grid-column: auto; margin: -58px 0 0; }
  .next-step { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 620px) {
  .site-header { min-height: 72px; padding: 14px 18px; }
  .brand { font-size: 1.05rem; }
  .outline-button { padding: 9px 11px; font-size: 0.7rem; }
  .hero { padding: 64px 22px; }
  h1 { font-size: 2.65rem; }
  .scorecard-shell, .interpretation, .result-panel { width: calc(100% - 24px); }
  .scorecard-shell { min-height: 0; margin-top: 32px; padding: 24px 18px; }
  .scorecard-heading { align-items: flex-start; flex-direction: column; gap: 20px; }
  .progress-block { text-align: left; }
  fieldset { min-height: 0; padding: 26px 0; }
  legend { font-size: 1.22rem; }
  .question, .evidence-hint, .options { margin-left: 0; }
  .options label { padding: 14px 12px; }
  .form-actions { align-items: stretch; flex-direction: column; }
  .step-actions { display: grid; grid-template-columns: 1fr; width: 100%; margin-left: 0; }
  .result-panel { grid-template-columns: 1fr; }
  .score-disc { margin: 0 auto; }
  .guidance-grid { grid-template-columns: 1fr; }
  .override-note { margin-top: -52px; }
  .bands article { grid-template-columns: 45px 1fr; }
  .bands p { grid-column: 2; }
  footer { grid-template-columns: 1fr; gap: 18px; }
}

@page { size: letter; margin: 0.38in; }

@media print {
  body.scorecard-page { color: #111; background: #fff; font-size: 8.5pt; }
  .skip-link, .outline-button, .privacy-note, .partner-note, .progress-block, .form-actions, footer { display: none !important; }
  .site-header { grid-template-columns: 1fr auto; min-height: 0; padding: 0 0 0.12in; color: #111; background: #fff; border-bottom: 2px solid #111; }
  .header-label { display: block; color: #555; }
  .hero { grid-template-columns: 1.45fr 0.75fr; gap: 0.22in; padding: 0.18in 0 0.12in; color: #111; background: #fff; }
  .hero h1 { margin-bottom: 0.08in; font-size: 21pt; line-height: 1.02; }
  .hero h1 i { color: #376aab; }
  .hero-lead { margin-bottom: 0; color: #333; font-size: 8.6pt; line-height: 1.3; }
  .eyebrow, .key-kicker { margin-bottom: 4px; color: #376aab; font-size: 6.2pt; }
  .scoring-key { padding: 0.11in; color: #111; background: #f5f7fa; border: 1px solid #777; box-shadow: none; }
  .scoring-key h2 { margin-bottom: 5px; font-size: 10.5pt; }
  .scoring-key dl { margin-bottom: 3px; }
  .scoring-key dl div { grid-template-columns: 18px 1fr; padding: 3px 0; border-color: #ddd; }
  .scoring-key dt { color: #376aab; font-size: 10pt; }
  .scoring-key dd, .scoring-key > p:last-child { color: #333; font-size: 6.2pt; line-height: 1.15; }
  .scorecard-shell { width: 100%; margin: 0; padding: 0; box-shadow: none; }
  .scorecard-heading { margin: 0.03in 0 0; }
  .scorecard-heading h2 { font-size: 13.5pt; }
  fieldset, fieldset[hidden] { display: block !important; min-height: 0; break-inside: avoid; padding: 0.07in 0; border-color: #ccc; animation: none; }
  legend { font-size: 9.5pt; }
  legend span { width: 24px; font-size: 5.8pt; }
  .question { margin: 3px 0 2px 24px; font-size: 7pt; line-height: 1.15; }
  .evidence-hint { margin: 0 0 4px 24px; color: #555; font-size: 5.8pt; line-height: 1.15; }
  .options { grid-template-columns: repeat(3, 1fr); gap: 4px; margin-left: 24px; }
  .options label { grid-template-columns: 18px 1fr; gap: 4px; min-height: 0; padding: 5px; font-size: 6.2pt; line-height: 1.12; background: #fff; border: 1px solid #ccc; }
  .options label:has(input:checked) { background: #edf5ff; border-color: #376aab; box-shadow: inset 0 0 0 1px #376aab; }
  .option-score { width: 16px; height: 16px; font-size: 7pt; }
  .result-panel { grid-template-columns: 0.65in 1fr 1.2in; gap: 0.14in; width: 100%; margin: 0.09in 0 0; padding: 0.11in; color: #111; background: #f5f7fa; border: 1px solid #777; box-shadow: none; break-inside: avoid; }
  .score-disc { width: 0.58in; height: 0.58in; }
  .score-disc strong { color: #111; font-size: 18pt; }
  .score-disc span { color: #555; font-size: 6pt; }
  .result-copy h2 { margin-bottom: 3px; color: #111; font-size: 12pt; }
  .result-copy > p:not(.eyebrow) { margin-bottom: 4px; color: #333; font-size: 6.5pt; line-height: 1.15; }
  .result-actions { gap: 2px; }
  .result-actions p { color: #333; font-size: 6pt; line-height: 1.15; }
  .result-actions .primary-button { display: none; }
  .priority-result { padding-top: 0.06in; border-color: #bbb; }
  .priority-label { margin-bottom: 2px; color: #376aab; font-size: 5.5pt; }
  .priority-result h3 { margin-bottom: 2px; color: #111; font-size: 9pt; }
  .selected-answer { margin-bottom: 4px; color: #444; font-size: 5.8pt; line-height: 1.15; }
  .guidance-grid { grid-template-columns: repeat(3, 1fr); gap: 0.04in; background: transparent; border: 0; }
  .guidance-grid article { padding: 0.05in; background: #fff; border: 1px solid #bbb; }
  .guidance-grid strong { margin-bottom: 2px; color: #376aab; font-size: 5.2pt; }
  .guidance-grid p { color: #333; font-size: 5.7pt; line-height: 1.15; }
  .interpretation { display: block; width: 100%; padding: 0.11in 0 0; }
  .interpretation-heading { display: grid; grid-template-columns: 2.1in 1fr; gap: 0.16in; align-items: end; }
  .interpretation-heading .eyebrow { display: none; }
  .interpretation-heading h2 { margin: 0; font-size: 10.5pt; }
  .interpretation-heading > p:last-child { margin: 0; color: #444; font-size: 6.2pt; line-height: 1.2; }
  .bands { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.06in; margin-top: 0.07in; border: 0; }
  .bands article { display: block; padding: 0.07in; border: 1px solid #bbb; }
  .bands span { display: block; margin-bottom: 2px; color: #376aab; font-size: 6pt; }
  .bands h3 { margin-bottom: 2px; font-size: 8pt; }
  .bands p { color: #444; font-size: 5.8pt; line-height: 1.15; }
  .override-note { display: none; }
  .next-step { display: grid; grid-template-columns: 1fr auto; gap: 0.12in; align-items: center; margin-top: 0.07in; padding: 0.07in 0.1in; color: #111; background: #edf5ff; border: 1px solid #9abce5; }
  .next-step .eyebrow { display: none; }
  .next-step h2 { margin: 0 0 2px; font-size: 9pt; }
  .next-step > div > p:last-child { margin: 0; color: #333; font-size: 5.8pt; line-height: 1.15; }
  .next-step .primary-button { display: none; }
}
