:root {
  --ink: #111827;
  --ink-soft: #334155;
  --navy: #0c1424;
  --navy-raised: #162033;
  --paper: #f6f3ed;
  --surface: #ffffff;
  --line: #dce1e8;
  --line-dark: rgba(255, 255, 255, 0.16);
  --accent: #c94037;
  --accent-dark: #a92e28;
  --accent-soft: #f9e7e4;
  --teal: #16847b;
  --teal-soft: #def3ef;
  --amber: #b66a0b;
  --amber-soft: #fff0d9;
  --green: #18794e;
  --green-soft: #e1f3e8;
  --focus: #2563eb;
  --shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 80px rgba(8, 15, 28, 0.18);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --shell: 1160px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

button {
  border: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.12;
  letter-spacing: -0.035em;
}

h1 {
  font-size: clamp(2.65rem, 7vw, 5.9rem);
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.65rem);
}

h3 {
  font-size: 1.15rem;
}

[hidden] {
  display: none !important;
}

.shell {
  width: min(calc(100% - 40px), var(--shell));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: #fff;
  background: var(--focus);
  border-radius: 8px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.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;
}

.site-header {
  position: relative;
  z-index: 5;
  color: #fff;
  background: var(--navy);
  border-bottom: 1px solid var(--line-dark);
}

.header-inner {
  position: relative;
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: #fff;
  line-height: 1.2;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 45px;
  height: 45px;
  place-items: center;
  color: #fff;
  background: var(--accent);
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.brand small {
  margin-top: 3px;
  color: #b9c2d0;
  font-size: 0.71rem;
  font-weight: 650;
}

.header-badge {
  padding: 7px 12px;
  color: #ffd4cf;
  border: 1px solid rgba(243, 166, 158, 0.38);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 750;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-navigation {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-navigation a {
  padding: 9px 11px;
  color: #d7dde7;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 750;
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease;
}

.site-navigation a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 10px;
  cursor: pointer;
  flex-direction: column;
}

.menu-toggle span {
  width: 19px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transition: transform 160ms ease, opacity 160ms ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 9% 18%, rgba(212, 72, 62, 0.25), transparent 30%),
    radial-gradient(circle at 90% 75%, rgba(50, 96, 151, 0.3), transparent 34%),
    var(--navy);
}

.hero::before {
  position: absolute;
  top: -240px;
  right: -170px;
  width: 560px;
  height: 560px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  content: "";
}

.hero::after {
  position: absolute;
  right: 70px;
  bottom: -180px;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  content: "";
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 680px;
  align-items: center;
  gap: clamp(48px, 7vw, 100px);
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
  padding-block: 74px 82px;
}

.hero-copy {
  max-width: 760px;
}

.hero-copy h1 {
  max-width: 840px;
  margin-bottom: 28px;
}

.eyebrow {
  margin-bottom: 16px;
  color: #f3a69e;
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--accent-dark);
}

.hero-lead {
  max-width: 720px;
  margin-bottom: 34px;
  color: #d7dde7;
  font-size: clamp(1.1rem, 2vw, 1.36rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.privacy-note {
  max-width: 280px;
  color: #aeb8c8;
  font-size: 0.83rem;
  line-height: 1.45;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition:
    transform 150ms ease,
    background 150ms ease,
    border-color 150ms ease,
    color 150ms ease,
    box-shadow 150ms ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.button:focus-visible,
.scale-option:has(input:focus-visible) {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.button-primary {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 12px 30px rgba(212, 72, 62, 0.25);
}

.button-primary:hover:not(:disabled) {
  background: var(--accent-dark);
}

.button-dark {
  color: #fff;
  background: var(--navy-raised);
}

.button-dark:hover:not(:disabled) {
  background: #24314a;
}

.button-ghost {
  color: var(--ink);
  background: transparent;
  border-color: #cbd2dc;
}

.button-ghost:hover:not(:disabled) {
  background: #fff;
  border-color: #aeb7c4;
}

.button-text {
  min-height: 44px;
  color: var(--ink-soft);
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.button-light {
  color: var(--navy);
  background: #fff;
}

.button-light:hover:not(:disabled) {
  background: #eef2f7;
}

.button-outline-light {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.34);
}

.button-outline-light:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.58);
}

.button-small {
  min-height: 42px;
  padding: 9px 15px;
  border-radius: 9px;
  font-size: 0.86rem;
}

.hero-panel {
  position: relative;
  padding: 30px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(16px);
}

.panel-kicker {
  margin-bottom: 20px;
  color: #aeb8c8;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.dimension-preview {
  display: grid;
  gap: 0;
  padding: 0;
  margin: 0;
  list-style: none;
}

.dimension-preview li {
  display: grid;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line-dark);
  grid-template-columns: 32px 1fr;
  font-size: 0.92rem;
  font-weight: 700;
}

.dimension-preview span {
  color: #f3a69e;
  font-size: 0.7rem;
  font-variant-numeric: tabular-nums;
}

.intro-content {
  padding-block: 70px 92px;
}

.content-card {
  display: grid;
  gap: 18px 56px;
  padding: clamp(28px, 5vw, 58px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  grid-template-columns: minmax(260px, 0.7fr) minmax(300px, 1.3fr);
}

.content-card .eyebrow {
  grid-column: 1;
}

.content-card h2 {
  margin-bottom: 0;
  grid-column: 1;
  grid-row: 2 / span 2;
}

.content-card p:not(.eyebrow) {
  margin-bottom: 0;
  color: var(--ink-soft);
  grid-column: 2;
}

.instruction-grid {
  display: grid;
  gap: 18px;
  margin-top: 22px;
  grid-template-columns: repeat(3, 1fr);
}

.instruction-grid article {
  min-height: 240px;
  padding: 28px;
  background: transparent;
  border: 1px solid #cfd5dd;
  border-radius: var(--radius-md);
}

.instruction-grid h3 {
  margin: 28px 0 10px;
}

.instruction-grid p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.instruction-number {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border-radius: 10px;
  font-size: 0.74rem;
  font-weight: 850;
}

.faq-section {
  margin-top: 72px;
}

.faq-list {
  display: grid;
  align-items: start;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.faq-list details {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.faq-list summary {
  position: relative;
  padding: 20px 54px 20px 22px;
  cursor: pointer;
  font-weight: 800;
  line-height: 1.35;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  position: absolute;
  top: 50%;
  right: 22px;
  color: var(--accent-dark);
  content: "+";
  font-size: 1.35rem;
  transform: translateY(-53%);
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list p {
  padding: 18px 22px 22px;
  margin: 0;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

.methodology-preview {
  display: grid;
  align-items: center;
  gap: 34px;
  padding: clamp(30px, 5vw, 52px);
  margin-top: 72px;
  color: #fff;
  background:
    radial-gradient(circle at 92% 20%, rgba(201, 64, 55, 0.24), transparent 34%),
    var(--navy-raised);
  border-radius: var(--radius-lg);
  grid-template-columns: minmax(0, 1fr) auto;
}

.methodology-preview h2 {
  max-width: 760px;
  margin-bottom: 16px;
}

.methodology-preview p:not(.eyebrow) {
  max-width: 820px;
  margin-bottom: 0;
  color: #c7d0dd;
}

.related-tests-section {
  margin-top: 72px;
}

.related-tests-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.related-tests-grid a {
  display: grid;
  min-height: 170px;
  align-content: space-between;
  gap: 24px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition:
    transform 150ms ease,
    border-color 150ms ease,
    box-shadow 150ms ease;
}

.related-tests-grid a:hover {
  border-color: #aeb7c4;
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.related-tests-grid a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.related-tests-grid strong {
  font-size: 1.08rem;
}

.related-tests-grid span {
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.question-view {
  min-height: calc(100vh - 74px);
  background:
    radial-gradient(circle at 15% 20%, rgba(212, 72, 62, 0.08), transparent 23%),
    var(--paper);
}

.question-topbar {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.progress-shell {
  padding-block: 18px;
}

.progress-copy {
  display: flex;
  justify-content: space-between;
  margin-bottom: 9px;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.progress-track {
  height: 8px;
  overflow: hidden;
  background: #e7eaf0;
  border-radius: 999px;
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #eb776e);
  border-radius: inherit;
  transition: width 240ms ease;
}

.question-shell {
  padding-block: clamp(34px, 7vh, 74px) 56px;
}

.question-card {
  max-width: 940px;
  padding: clamp(28px, 5vw, 56px);
  margin-inline: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.question-card h2 {
  max-width: 820px;
  min-height: 3.2em;
  margin-bottom: 38px;
  font-size: clamp(1.55rem, 3.7vw, 2.55rem);
}

.question-card h2:focus {
  outline: none;
}

.scale-options {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  border: 0;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.scale-option {
  position: relative;
  display: grid;
  min-height: 132px;
  align-content: center;
  justify-items: center;
  gap: 10px;
  padding: 17px 12px;
  background: #f9fafb;
  border: 1px solid #d8dde5;
  border-radius: 14px;
  cursor: pointer;
  text-align: center;
  transition:
    background 150ms ease,
    border-color 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease;
}

.scale-option:hover {
  border-color: #a8b1be;
  transform: translateY(-1px);
}

.scale-option:has(input:checked) {
  background: var(--accent-soft);
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.scale-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.scale-number {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--ink);
  background: #fff;
  border: 1px solid #d2d8e0;
  border-radius: 50%;
  font-size: 0.93rem;
  font-weight: 850;
}

.scale-option:has(input:checked) .scale-number {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.scale-label {
  color: var(--ink-soft);
  font-size: 0.77rem;
  font-weight: 700;
  line-height: 1.35;
}

.keyboard-hint {
  margin: 18px 0 0;
  color: #687386;
  font-size: 0.78rem;
  text-align: center;
}

.keyboard-hint kbd {
  display: inline-block;
  min-width: 30px;
  padding: 2px 7px;
  color: var(--ink);
  background: #f1f3f6;
  border: 1px solid #cfd5dd;
  border-bottom-width: 2px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 800;
}

.form-alert {
  padding: 12px 14px;
  margin: 18px 0 0;
  color: #8f201c;
  background: #fff0ef;
  border: 1px solid #f0b3ae;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
}

.question-navigation {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-top: 32px;
  margin-top: 32px;
  border-top: 1px solid var(--line);
}

.question-navigation .button {
  min-width: 130px;
}

.question-privacy {
  margin: 18px 0 0;
  color: #6b7280;
  font-size: 0.78rem;
  text-align: center;
}

.review-view {
  min-height: calc(100vh - 74px);
  background:
    radial-gradient(circle at 85% 8%, rgba(22, 132, 123, 0.08), transparent 24%),
    var(--paper);
}

.review-shell {
  padding-block: clamp(48px, 7vw, 82px) 80px;
}

.review-heading {
  max-width: 850px;
  margin-bottom: 38px;
}

.review-heading h1 {
  margin-bottom: 20px;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
}

.review-heading h1:focus {
  outline: none;
}

.review-heading > p:last-of-type {
  max-width: 760px;
  color: var(--ink-soft);
  font-size: 1.03rem;
}

.review-count {
  display: inline-flex;
  padding: 7px 11px;
  color: #0d625b;
  background: var(--teal-soft);
  border: 1px solid #b4ddd7;
  border-radius: 999px;
  font-size: 0.78rem;
}

.review-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.review-list li {
  display: grid;
  align-items: start;
  gap: 18px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  grid-template-columns: 1fr auto;
}

.review-item-copy {
  min-width: 0;
}

.review-item-number {
  display: block;
  margin-bottom: 7px;
  color: var(--accent-dark);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.review-item-copy p {
  margin-bottom: 14px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.45;
}

.review-item-copy strong {
  display: block;
  color: #0d625b;
  font-size: 0.78rem;
}

.review-actions {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-top: 28px;
  margin-top: 30px;
  border-top: 1px solid #cfd5dd;
}

.result-view {
  background: var(--paper);
}

.result-hero {
  color: #fff;
  background:
    radial-gradient(circle at 80% 20%, rgba(212, 72, 62, 0.2), transparent 28%),
    var(--navy);
}

.result-hero-grid {
  display: grid;
  min-height: 500px;
  align-items: center;
  gap: clamp(40px, 7vw, 90px);
  padding-block: 68px;
  grid-template-columns: 260px minmax(0, 1fr);
}

.result-gauge {
  --score: 0;
  --gauge-color: var(--teal);
  position: relative;
  display: grid;
  width: 250px;
  aspect-ratio: 1;
  place-items: center;
  background: conic-gradient(
    var(--gauge-color) calc(var(--score) * 1%),
    rgba(255, 255, 255, 0.12) 0
  );
  border-radius: 50%;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.25);
}

.result-gauge[data-zone="moderate"] {
  --gauge-color: #d49a33;
}

.result-gauge[data-zone="elevated"] {
  --gauge-color: #e16a39;
}

.result-gauge[data-zone="high"] {
  --gauge-color: var(--accent);
}

.result-gauge::before {
  position: absolute;
  width: 76%;
  aspect-ratio: 1;
  background: var(--navy-raised);
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  content: "";
}

.gauge-inner {
  position: relative;
  display: grid;
  justify-items: center;
  line-height: 1;
}

.gauge-inner strong {
  font-size: 4.5rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.07em;
}

.gauge-inner span {
  margin-top: 8px;
  color: #aeb8c8;
  font-size: 0.9rem;
}

.result-zone {
  display: inline-flex;
  padding: 7px 11px;
  margin-bottom: 18px;
  color: #ffe3df;
  background: rgba(212, 72, 62, 0.18);
  border: 1px solid rgba(243, 166, 158, 0.25);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.result-intro h1 {
  margin-bottom: 18px;
  font-size: clamp(2.45rem, 5.4vw, 5rem);
}

.result-intro h1:focus {
  outline: none;
}

.result-summary {
  max-width: 780px;
  margin-bottom: 20px;
  color: #d8dee8;
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
}

.result-explainer {
  max-width: 760px;
  padding-top: 18px;
  margin-bottom: 0;
  color: #aeb8c8;
  border-top: 1px solid var(--line-dark);
  font-size: 0.86rem;
}

.result-content {
  padding-block: 78px 96px;
}

.result-section {
  margin-bottom: 68px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-heading .eyebrow {
  margin-bottom: 9px;
}

.section-heading h2 {
  margin-bottom: 0;
}

.dimension-results {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dimension-card {
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.dimension-card.dimension-resource {
  background: linear-gradient(135deg, #fff 50%, #edf8f6);
  border-color: #bfdfda;
}

.dimension-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 15px;
}

.dimension-heading h3 {
  margin-bottom: 0;
}

.dimension-heading strong {
  color: var(--accent-dark);
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
}

.dimension-meta {
  display: grid;
  flex-shrink: 0;
  justify-items: end;
  line-height: 1.25;
}

.dimension-meta span {
  margin-top: 3px;
  color: #687386;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dimension-resource .dimension-heading strong {
  color: var(--teal);
}

.dimension-bar {
  height: 9px;
  overflow: hidden;
  margin-bottom: 15px;
  background: #e8ebef;
  border-radius: 999px;
}

.dimension-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #dda057, var(--accent));
  border-radius: inherit;
}

.dimension-resource .dimension-bar span {
  background: linear-gradient(90deg, #52b7ad, var(--teal));
}

.dimension-card p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.scale-note {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.score-context {
  padding: clamp(26px, 4vw, 40px);
  margin-bottom: 68px;
  background: var(--teal-soft);
  border: 1px solid #b4ddd7;
  border-left: 6px solid var(--teal);
  border-radius: 6px var(--radius-md) var(--radius-md) 6px;
}

.score-context h2 {
  margin-bottom: 12px;
  font-size: clamp(1.45rem, 2.6vw, 2.05rem);
}

.score-context p:last-child {
  max-width: 900px;
  margin-bottom: 0;
  color: var(--ink-soft);
}

.result-grid {
  display: grid;
  gap: 18px;
  margin-bottom: 68px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.result-card {
  min-height: 290px;
  padding: clamp(28px, 4vw, 44px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.result-card h2 {
  margin-bottom: 16px;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
}

.result-card p:last-child {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.accent-card {
  color: #fff;
  background: var(--navy-raised);
  border-color: transparent;
}

.accent-card p:last-child {
  color: #c7d0dd;
}

.combination-card {
  padding: clamp(28px, 5vw, 48px);
  margin-bottom: 68px;
  background: var(--amber-soft);
  border: 1px solid #e8cca0;
  border-radius: var(--radius-md);
}

.combination-card h2 {
  max-width: 760px;
  margin-bottom: 14px;
}

.combination-card p:last-child {
  max-width: 880px;
  margin-bottom: 0;
  color: var(--ink-soft);
}

.action-section {
  padding: clamp(28px, 5vw, 52px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.section-lead {
  max-width: 760px;
  margin: -8px 0 24px;
  color: var(--ink-soft);
}

.control-selection-count {
  display: inline-flex;
  padding: 6px 10px;
  margin: -8px 0 18px;
  color: #0d625b;
  background: var(--teal-soft);
  border: 1px solid #b4ddd7;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 850;
}

.action-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: actions;
}

.action-list li {
  display: grid;
  min-height: 74px;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: #f7f8fa;
  border: 1px solid #e1e5ea;
  border-radius: 14px;
  counter-increment: actions;
  grid-template-columns: 42px 1fr;
  transition:
    background 150ms ease,
    border-color 150ms ease,
    box-shadow 150ms ease;
}

.action-list li::before {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  background: var(--accent);
  border-radius: 11px;
  content: counter(actions, decimal-leading-zero);
  font-size: 0.75rem;
  font-weight: 850;
}

.action-list li.selected {
  background: var(--teal-soft);
  border-color: var(--teal);
  box-shadow: inset 0 0 0 1px var(--teal);
}

.action-list li.selected::before {
  background: var(--teal);
}

.action-choice {
  display: grid;
  width: 100%;
  align-items: center;
  gap: 18px;
  padding: 4px 0;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  grid-template-columns: 1fr auto;
  text-align: left;
}

.action-choice:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 5px;
  border-radius: 6px;
}

.action-text {
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.action-choice-label {
  padding: 6px 9px;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border-radius: 999px;
  font-size: 0.69rem;
  font-weight: 850;
  white-space: nowrap;
}

.action-list li.selected .action-choice-label {
  color: #fff;
  background: var(--teal);
}

.plan-section {
  padding: clamp(28px, 5vw, 52px);
  color: #fff;
  background:
    radial-gradient(circle at 92% 12%, rgba(201, 64, 55, 0.22), transparent 30%),
    var(--navy-raised);
  border-radius: var(--radius-lg);
}

.plan-section .eyebrow {
  color: #f3a69e;
}

.plan-grid {
  display: grid;
  gap: 18px;
  margin-bottom: 24px;
  grid-template-columns: minmax(0, 1.45fr) minmax(230px, 0.55fr);
}

.plan-grid > div,
.plan-date-field {
  display: block;
  min-height: 138px;
  padding: 22px;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-dark);
  border-radius: 14px;
}

.plan-label {
  display: block;
  margin-bottom: 12px;
  color: #aeb8c8;
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#selected-control-text {
  display: block;
  max-width: 720px;
  font-size: 1.02rem;
  line-height: 1.5;
}

.plan-date-field input {
  width: 100%;
  min-height: 46px;
  padding: 9px 11px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cbd2dc;
  border-radius: 9px;
  font-weight: 700;
}

.plan-date-field input:focus-visible {
  outline: 3px solid #79b8ff;
  outline-offset: 3px;
}

.plan-date-display {
  display: block;
  margin-top: 7px;
  color: #c7d0dd;
  font-size: 0.76rem;
}

.plan-status,
.pilot-status {
  min-height: 1.4em;
  margin: 10px 0 0;
  font-size: 0.82rem;
  font-weight: 750;
}

.plan-status {
  color: #9fe0d8;
}

.plan-privacy {
  max-width: 820px;
  padding-top: 18px;
  margin: 18px 0 0;
  color: #aeb8c8;
  border-top: 1px solid var(--line-dark);
  font-size: 0.78rem;
}

.selected-controls-panel,
.plan-fields > label,
.plan-checkpoint-panel,
.plan-completeness {
  padding: 22px;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-dark);
  border-radius: 14px;
}

.selected-controls-panel {
  margin-bottom: 18px;
}

.selected-control-list {
  display: grid;
  gap: 8px;
  padding-left: 22px;
  margin: 0;
  color: #e5eaf0;
}

.selected-control-list li {
  padding-left: 4px;
}

.plan-fields {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.plan-fields > label {
  display: block;
}

.plan-fields .plan-date-field {
  grid-column: 1 / -1;
}

.plan-fields input {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cbd2dc;
  border-radius: 9px;
}

.plan-fields input:focus-visible {
  outline: 3px solid #79b8ff;
  outline-offset: 3px;
}

.plan-fields input::placeholder {
  color: #7b8798;
  opacity: 1;
}

.plan-checkpoint-panel {
  margin-bottom: 18px;
}

.plan-checkpoints {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.plan-checkpoints li {
  display: grid;
  gap: 4px;
  padding: 13px;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
}

.plan-checkpoints span {
  color: #aeb8c8;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.plan-checkpoints strong {
  font-size: 0.82rem;
  line-height: 1.35;
}

.plan-completeness {
  margin-bottom: 18px;
}

.plan-completeness > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 10px;
  font-size: 0.8rem;
}

.plan-completeness > div:first-child span {
  color: #b9c2d0;
  font-variant-numeric: tabular-nums;
}

.plan-completeness-bar {
  height: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
}

.plan-completeness-bar span {
  display: block;
  width: 0;
  height: 100%;
  background: #63c9bd;
  border-radius: inherit;
  transition: width 180ms ease;
}

.reflection-section {
  padding: clamp(28px, 5vw, 52px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.reflection-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: reflections;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.reflection-list li {
  min-height: 190px;
  padding: 24px;
  color: var(--ink-soft);
  background: #f7f8fa;
  border: 1px solid #e1e5ea;
  border-radius: 14px;
  counter-increment: reflections;
}

.reflection-list li::before {
  display: block;
  margin-bottom: 30px;
  color: var(--accent-dark);
  content: "0" counter(reflections);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.quality-box {
  display: grid;
  align-items: start;
  gap: 34px;
  padding: 30px;
  margin-bottom: 30px;
  background: var(--green-soft);
  border: 1px solid #b7ddc7;
  border-radius: var(--radius-md);
  grid-template-columns: 1fr 1fr;
}

.quality-box[data-quality="notice"] {
  background: var(--amber-soft);
  border-color: #ead0a5;
}

.quality-box[data-quality="caution"] {
  background: var(--accent-soft);
  border-color: #e8b5b0;
}

.quality-box h2 {
  margin-bottom: 10px;
  font-size: 1.45rem;
}

.quality-box p:last-child {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.quality-box ul {
  padding-left: 20px;
  margin: 5px 0 0;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.result-recommendation {
  display: grid;
  align-items: center;
  gap: 34px;
  padding: clamp(28px, 5vw, 46px);
  margin-bottom: 30px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 20%, rgba(22, 132, 123, 0.25), transparent 34%),
    var(--navy-raised);
  border-radius: var(--radius-md);
  grid-template-columns: minmax(0, 1fr) auto;
}

.result-recommendation h2 {
  margin-bottom: 12px;
}

.result-recommendation p:not(.eyebrow) {
  max-width: 760px;
  margin-bottom: 0;
  color: #c7d0dd;
}

.recommendation-actions {
  display: grid;
  justify-items: stretch;
  gap: 12px;
  min-width: 245px;
}

.recommendation-method-link {
  color: #d8dee8;
  font-size: 0.8rem;
  text-align: center;
  text-underline-offset: 4px;
}

.result-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.pilot-export {
  margin-bottom: 30px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.pilot-export summary {
  position: relative;
  padding: 21px 58px 21px 24px;
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

.pilot-export summary::-webkit-details-marker {
  display: none;
}

.pilot-export summary::after {
  position: absolute;
  top: 50%;
  right: 24px;
  color: var(--accent-dark);
  content: "+";
  font-size: 1.45rem;
  transform: translateY(-53%);
}

.pilot-export[open] summary::after {
  content: "−";
}

.pilot-export-content {
  display: grid;
  align-items: start;
  gap: 34px;
  padding: 26px 24px 28px;
  border-top: 1px solid var(--line);
  grid-template-columns: minmax(0, 1fr) auto;
}

.pilot-export-content h2 {
  margin-bottom: 10px;
  font-size: 1.35rem;
}

.pilot-export-content p {
  max-width: 760px;
  margin-bottom: 10px;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.pilot-status {
  max-width: 270px;
  color: var(--green);
}

.action-status {
  width: 100%;
  min-height: 1.4em;
  margin: 2px 0 0;
  color: var(--green);
  font-size: 0.84rem;
  font-weight: 700;
}

.action-help {
  width: 100%;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.compact-report {
  display: none;
}

.disclaimer {
  padding: 26px 30px;
  margin-bottom: 30px;
  background: #ebeef2;
  border-left: 5px solid #778398;
  border-radius: 5px var(--radius-sm) var(--radius-sm) 5px;
}

.disclaimer h2 {
  margin-bottom: 8px;
  font-size: 1.18rem;
}

.disclaimer p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.sources-box {
  margin-bottom: 30px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.sources-box summary {
  position: relative;
  padding: 20px 56px 20px 24px;
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

.sources-box summary::-webkit-details-marker {
  display: none;
}

.sources-box summary::after {
  position: absolute;
  top: 50%;
  right: 24px;
  color: var(--accent-dark);
  content: "+";
  font-size: 1.45rem;
  transform: translateY(-53%);
}

.sources-box[open] summary::after {
  content: "−";
}

.sources-content {
  padding: 0 24px 22px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
}

.sources-content p {
  margin: 20px 0 14px;
}

.sources-content ul {
  padding-left: 20px;
  margin: 0;
}

.sources-content a {
  color: #1f4f89;
  text-underline-offset: 3px;
}

.author-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  padding: clamp(28px, 5vw, 48px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.author-box h2 {
  margin-bottom: 8px;
}

.author-box p:last-child {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.methodology-page {
  background: var(--paper);
}

.methodology-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 9% 16%, rgba(201, 64, 55, 0.26), transparent 30%),
    radial-gradient(circle at 90% 72%, rgba(22, 132, 123, 0.2), transparent 32%),
    var(--navy);
}

.breadcrumb {
  display: flex;
  gap: 9px;
  padding-top: 28px;
  color: #aeb8c8;
  font-size: 0.78rem;
}

.breadcrumb a {
  color: #e1e6ed;
  text-underline-offset: 3px;
}

.methodology-hero-grid {
  display: grid;
  min-height: 610px;
  align-items: center;
  gap: clamp(44px, 7vw, 90px);
  padding-block: 54px 76px;
  grid-template-columns: minmax(0, 1.2fr) minmax(310px, 0.65fr);
}

.methodology-hero h1 {
  max-width: 870px;
  margin-bottom: 24px;
  font-size: clamp(2.65rem, 6.2vw, 5.5rem);
}

.methodology-lead {
  max-width: 780px;
  margin-bottom: 30px;
  color: #d7dde7;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.methodology-summary {
  padding: 28px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.methodology-summary > strong {
  display: block;
  margin-bottom: 16px;
  color: #f3a69e;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.methodology-summary ul {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.methodology-summary li {
  padding: 11px 0;
  color: #e1e6ed;
  border-top: 1px solid var(--line-dark);
  font-size: 0.9rem;
  font-weight: 700;
}

.methodology-content {
  display: grid;
  align-items: start;
  gap: 34px 58px;
  padding-block: 68px 96px;
  grid-template-columns: 240px minmax(0, 1fr);
}

.methodology-toc {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 8px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.methodology-toc strong {
  margin-bottom: 6px;
  color: var(--accent-dark);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.methodology-toc a {
  padding: 6px 0;
  color: var(--ink-soft);
  font-size: 0.83rem;
  font-weight: 700;
  text-decoration: none;
}

.methodology-toc a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.methodology-toc a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.methodology-article {
  min-width: 0;
}

.methodology-article > section {
  padding: clamp(28px, 5vw, 52px);
  margin-bottom: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  scroll-margin-top: 24px;
}

.methodology-article h2 {
  max-width: 820px;
  margin-bottom: 22px;
}

.methodology-article p,
.methodology-article li {
  color: var(--ink-soft);
}

.methodology-article p:last-child {
  margin-bottom: 0;
}

.methodology-dimension-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.methodology-dimension-grid article {
  padding: 22px;
  background: #f7f8fa;
  border: 1px solid #e1e5ea;
  border-radius: 14px;
}

.methodology-dimension-grid span {
  display: block;
  margin-bottom: 9px;
  color: var(--accent-dark);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.methodology-dimension-grid h3 {
  margin-bottom: 10px;
}

.methodology-dimension-grid p {
  margin-bottom: 0;
  font-size: 0.86rem;
}

.methodology-limit {
  background: var(--amber-soft) !important;
  border-color: #e8cca0 !important;
}

.methodology-limit ul {
  padding-left: 22px;
}

.methodology-references ol {
  display: grid;
  gap: 10px;
  padding-left: 24px;
  margin-bottom: 0;
}

.methodology-references a {
  color: #1f4f89;
  overflow-wrap: anywhere;
  text-underline-offset: 3px;
}

.methodology-author {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(28px, 5vw, 46px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  grid-column: 2;
}

.methodology-author h2 {
  margin-bottom: 8px;
}

.methodology-author p:last-child {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.site-footer {
  padding-top: 52px;
  color: #c4ccd8;
  background: var(--navy);
  border-top: 1px solid var(--line-dark);
}

.footer-grid {
  display: grid;
  align-items: start;
  gap: clamp(28px, 4vw, 52px);
  grid-template-columns: minmax(250px, 1.2fr) minmax(130px, 0.65fr) minmax(220px, 1fr) minmax(190px, 0.85fr);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 13px;
}

.footer-brand .brand-mark {
  display: grid;
  max-width: none;
  margin-top: 0;
  place-items: center;
  color: #fff;
  background: #8f201c;
  font-size: 0.82rem;
  line-height: 1;
}

.footer-brand strong,
.footer-brand span {
  display: block;
}

.footer-brand strong {
  color: #fff;
  font-size: 1rem;
}

.footer-brand span {
  max-width: 270px;
  margin-top: 4px;
  color: #aeb8c7;
  font-size: 0.72rem;
  line-height: 1.45;
}

.footer-brand-column > p {
  margin: 18px 0 0;
  color: #8e9aab;
  font-size: 0.78rem;
}

.footer-column h2 {
  margin-bottom: 17px;
  color: #f3a69e;
  font-family: inherit;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-column nav,
.footer-column address {
  display: grid;
  align-items: start;
  gap: 10px;
  font-size: 0.8rem;
  font-style: normal;
  line-height: 1.5;
}

.footer-column address strong,
.footer-column address span {
  display: block;
}

.footer-column address strong {
  color: #e3e7ee;
}

.footer-column address span {
  color: #9ea9b9;
}

.footer-column p {
  margin: 0 0 8px;
  color: #9ea9b9;
  font-size: 0.78rem;
  line-height: 1.5;
}

.footer-grid a {
  color: #c4ccd8;
  text-underline-offset: 3px;
}

.footer-grid a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 20px 24px;
  margin-top: 42px;
  border-top: 1px solid var(--line-dark);
}

.footer-bottom p {
  margin: 0;
  color: #7f8b9e;
  font-size: 0.72rem;
  line-height: 1.55;
}

.footer-bottom p:last-child {
  max-width: 560px;
  text-align: right;
}

.noscript-message {
  position: fixed;
  z-index: 20;
  right: 18px;
  bottom: 18px;
  max-width: 420px;
  padding: 16px 20px;
  color: #fff;
  background: #8f201c;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-grid {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .hero-panel {
    max-width: 620px;
  }

  .content-card {
    display: block;
  }

  .content-card h2 {
    margin-bottom: 24px;
  }

  .content-card p:not(.eyebrow) + p {
    margin-top: 16px;
  }

  .instruction-grid {
    grid-template-columns: 1fr;
  }

  .faq-list {
    grid-template-columns: 1fr;
  }

  .methodology-preview,
  .result-recommendation,
  .methodology-hero-grid,
  .methodology-content {
    grid-template-columns: 1fr;
  }

  .methodology-hero-grid {
    min-height: auto;
  }

  .methodology-toc {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .methodology-toc strong {
    grid-column: 1 / -1;
  }

  .methodology-author {
    grid-column: 1;
  }

  .related-tests-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .recommendation-actions {
    justify-self: start;
  }

  .instruction-grid article {
    min-height: auto;
  }

  .review-list,
  .plan-grid,
  .pilot-export-content {
    grid-template-columns: 1fr;
  }

  .pilot-status {
    max-width: none;
  }

  .scale-options {
    grid-template-columns: 1fr;
  }

  .scale-option {
    min-height: 68px;
    align-items: center;
    justify-items: start;
    grid-template-columns: 42px 1fr;
    text-align: left;
  }

  .scale-label {
    font-size: 0.86rem;
  }

  .result-hero-grid {
    grid-template-columns: 210px minmax(0, 1fr);
  }

  .result-gauge {
    width: 205px;
  }

  .gauge-inner strong {
    font-size: 3.6rem;
  }

  .dimension-results,
  .result-grid,
  .reflection-list {
    grid-template-columns: 1fr;
  }

  .result-card {
    min-height: auto;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 16px;
  }

  .shell {
    width: min(calc(100% - 28px), var(--shell));
  }

  .header-inner {
    min-height: 64px;
    gap: 14px;
  }

  .brand {
    min-width: 0;
  }

  .brand > span:last-child {
    min-width: 0;
  }

  .brand small {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .header-actions {
    gap: 10px;
    margin-left: auto;
  }

  .header-badge {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-navigation {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    z-index: 12;
    display: none;
    align-items: stretch;
    gap: 6px;
    padding: 12px;
    background: var(--navy-raised);
    border: 1px solid var(--line-dark);
    border-radius: 0 0 14px 14px;
    box-shadow: var(--shadow-lg);
    flex-direction: column;
  }

  .site-navigation[data-open="true"] {
    display: flex;
  }

  .site-navigation a {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding-inline: 14px;
  }

  .hero-grid {
    gap: 38px;
    padding-block: 52px 58px;
  }

  .hero-copy h1 {
    margin-bottom: 22px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .privacy-note {
    max-width: none;
    text-align: center;
  }

  .hero-panel {
    padding: 23px;
    border-radius: var(--radius-md);
  }

  .intro-content {
    padding-block: 42px 62px;
  }

  .content-card,
  .question-card {
    padding: 24px 20px;
    border-radius: var(--radius-md);
  }

  .question-card h2 {
    min-height: 0;
    margin-bottom: 28px;
  }

  .question-shell {
    padding-top: 24px;
  }

  .question-navigation {
    position: sticky;
    bottom: 0;
    z-index: 2;
    padding: 15px 0 4px;
    margin-top: 22px;
    background: #fff;
  }

  .question-navigation .button {
    min-width: 0;
    flex: 1;
  }

  .result-hero-grid {
    justify-items: start;
    grid-template-columns: 1fr;
    padding-block: 48px 54px;
  }

  .result-gauge {
    width: 180px;
  }

  .result-content {
    padding-block: 48px 64px;
  }

  .result-section,
  .result-grid,
  .combination-card,
  .score-context {
    margin-bottom: 46px;
  }

  .dimension-card,
  .result-card,
  .combination-card,
  .score-context,
  .action-section,
  .plan-section,
  .reflection-section,
  .quality-box,
  .disclaimer,
  .author-box,
  .methodology-preview,
  .result-recommendation {
    padding: 23px 20px;
  }

  .review-shell {
    padding-block: 42px 62px;
  }

  .review-list li {
    grid-template-columns: 1fr;
  }

  .review-list .button {
    width: 100%;
  }

  .review-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .review-actions .button {
    width: 100%;
  }

  .action-choice {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .action-choice-label {
    justify-self: start;
  }

  .quality-box {
    gap: 16px;
    grid-template-columns: 1fr;
  }

  .related-tests-grid,
  .plan-fields,
  .plan-checkpoints {
    grid-template-columns: 1fr;
  }

  .plan-fields .plan-date-field {
    grid-column: auto;
  }

  .recommendation-actions,
  .recommendation-actions .button {
    width: 100%;
  }

  .author-box {
    align-items: stretch;
    flex-direction: column;
  }

  .methodology-dimension-grid,
  .methodology-toc {
    grid-template-columns: 1fr;
  }

  .methodology-toc strong {
    grid-column: auto;
  }

  .methodology-author {
    align-items: stretch;
    flex-direction: column;
  }

  .methodology-author .button {
    width: 100%;
  }

  .author-box .button {
    width: 100%;
  }

  .result-actions .button {
    width: 100%;
  }

  .pilot-export-content .button {
    width: 100%;
  }

  .footer-grid {
    align-items: flex-start;
    gap: 34px;
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-bottom p:last-child {
    max-width: none;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  @page {
    margin: 16mm;
  }

  body {
    color: #000;
    background: #fff;
    font-size: 11pt;
  }

  .site-header,
  .site-footer,
  .intro-view,
  .question-view,
  .review-view,
  .result-actions,
  .pilot-export,
  .copy-plan-button,
  .plan-status,
  .plan-privacy,
  .author-box .button {
    display: none !important;
  }

  .compact-report {
    display: none !important;
  }

  .result-view {
    display: block !important;
  }

  .result-hero {
    color: #000;
    background: #fff;
    border-bottom: 2px solid #000;
  }

  .result-hero-grid {
    min-height: 0;
    padding: 0 0 12mm;
    grid-template-columns: 38mm 1fr;
  }

  .result-gauge {
    width: 34mm;
    color: #000;
    background: #fff;
    border: 3px solid #000;
    box-shadow: none;
  }

  .result-gauge::before {
    background: #fff;
    border: 0;
  }

  .gauge-inner strong {
    font-size: 28pt;
  }

  .gauge-inner span,
  .result-summary,
  .result-explainer,
  .accent-card p:last-child {
    color: #222;
  }

  .result-zone {
    padding: 0;
    color: #000;
    background: transparent;
    border: 0;
  }

  .result-content {
    width: 100%;
    padding: 10mm 0 0;
  }

  .result-section,
  .result-grid,
  .combination-card,
  .score-context {
    margin-bottom: 8mm;
  }

  .dimension-results {
    gap: 3mm;
  }

  .dimension-card,
  .result-card,
  .combination-card,
  .score-context,
  .action-section,
  .plan-section,
  .reflection-section,
  .quality-box,
  .disclaimer,
  .author-box {
    color: #000;
    background: #fff !important;
    border: 1px solid #888;
    box-shadow: none;
    break-inside: avoid;
  }

  .dimension-card,
  .result-card,
  .combination-card,
  .score-context,
  .plan-section,
  .reflection-section {
    padding: 5mm;
  }

  .dimension-bar span {
    background: #555 !important;
  }

  .accent-card p,
  .accent-card .eyebrow {
    color: #000;
  }

  .plan-section .eyebrow,
  .plan-label,
  .plan-date-display,
  .plan-section strong {
    color: #000;
  }

  .plan-grid > div,
  .plan-date-field {
    min-height: 0;
    color: #000;
    background: #fff;
    border-color: #888;
  }

  .plan-date-field input,
  .action-choice-label {
    display: none;
  }

  .action-choice {
    color: #000;
  }

  body.print-summary-mode {
    font-size: 9.2pt;
    line-height: 1.32;
  }

  body.print-summary-mode > :not(.compact-report) {
    display: none !important;
  }

  body.print-summary-mode .compact-report {
    display: block !important;
    color: #101827;
  }

  .compact-report h1,
  .compact-report h2,
  .compact-report p {
    margin: 0;
  }

  .compact-report-header {
    display: grid;
    align-items: end;
    gap: 12mm;
    padding-bottom: 5mm;
    border-bottom: 2px solid #101827;
    grid-template-columns: 1fr auto;
  }

  .compact-report-brand {
    color: #a92e28;
    font-size: 7.5pt;
    font-weight: 850;
    letter-spacing: 0.09em;
    text-transform: uppercase;
  }

  .compact-report-header h1 {
    margin-top: 2mm;
    font-size: 22pt;
    letter-spacing: -0.04em;
  }

  .compact-report-header p {
    margin-top: 1mm;
    color: #475569;
    font-size: 9pt;
  }

  .compact-report-version {
    display: grid;
    justify-items: end;
    color: #475569;
    font-size: 8pt;
  }

  .compact-report-version strong {
    color: #101827;
    font-size: 10pt;
  }

  .compact-report-summary {
    display: grid;
    align-items: center;
    gap: 7mm;
    padding: 5mm 0;
    border-bottom: 1px solid #aab2bd;
    grid-template-columns: 38mm 1fr;
  }

  .compact-report-score {
    display: grid;
    min-height: 29mm;
    align-content: center;
    justify-content: center;
    padding: 3mm;
    color: #fff;
    background: #111827 !important;
    border-radius: 4mm;
    grid-template-columns: auto auto;
    text-align: center;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .compact-report-score strong {
    font-size: 28pt;
    line-height: 0.9;
  }

  .compact-report-score > span {
    align-self: end;
    margin: 0 0 1mm 1mm;
    color: #ccd3dc;
    font-size: 9pt;
  }

  .compact-report-score small {
    margin-top: 2mm;
    color: #ccd3dc;
    font-size: 6.8pt;
    grid-column: 1 / -1;
  }

  .compact-report-zone {
    color: #a92e28;
    font-size: 7.5pt;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .compact-report-summary h2 {
    margin: 1.5mm 0;
    font-size: 17pt;
  }

  .compact-report-summary p {
    color: #334155;
    font-size: 8.5pt;
  }

  .compact-report-section {
    padding: 4.5mm 0;
    border-bottom: 1px solid #aab2bd;
  }

  .compact-report-section-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8mm;
    margin-bottom: 3mm;
  }

  .compact-report-section-heading h2 {
    font-size: 12pt;
  }

  .compact-report-section-heading span {
    color: #64748b;
    font-size: 7pt;
  }

  .compact-report-dimensions {
    display: grid;
    gap: 3mm 6mm;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .compact-report-dimension > div:first-child {
    display: flex;
    justify-content: space-between;
    gap: 4mm;
    margin-bottom: 1mm;
    font-size: 7.7pt;
  }

  .compact-report-dimension > div:first-child span {
    font-weight: 800;
  }

  .compact-report-bar {
    height: 2mm;
    overflow: hidden;
    background: #dfe3e8 !important;
    border-radius: 2mm;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .compact-report-bar span {
    display: block;
    height: 100%;
    background: #c94037 !important;
    border-radius: inherit;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .compact-report-insights {
    display: grid;
    gap: 4mm;
    padding: 4.5mm 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .compact-report-insights article {
    min-height: 25mm;
    padding: 4mm;
    background: #f1f3f6 !important;
    border: 1px solid #c8ced7;
    border-radius: 3mm;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .compact-report-insights span,
  .compact-report-control span,
  .compact-report-date span {
    display: block;
    margin-bottom: 2mm;
    color: #a92e28;
    font-size: 6.8pt;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .compact-report-insights h2 {
    font-size: 11pt;
  }

  .compact-report-control {
    display: grid;
    align-items: stretch;
    gap: 5mm;
    padding: 4mm;
    color: #fff;
    background: #111827 !important;
    border-radius: 4mm;
    grid-template-columns: 1fr 64mm;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .compact-report-control span {
    color: #f3a69e;
  }

  .compact-report-control h2 {
    margin-bottom: 2mm;
    color: #fff;
    font-size: 10.5pt;
  }

  .compact-report-control ol {
    display: grid;
    gap: 1.2mm;
    padding-left: 5mm;
    margin: 0;
    color: #e1e6ed;
    font-size: 7.2pt;
  }

  .compact-report-control p {
    color: #e1e6ed;
    font-size: 7.2pt;
    line-height: 1.3;
  }

  .compact-report-plan-meta {
    display: grid;
    gap: 1.5mm;
  }

  .compact-report-plan-meta > div {
    padding: 2.4mm;
    background: #253047 !important;
    border-radius: 2.2mm;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .compact-report-date {
    padding: 2.4mm;
  }

  .compact-report-date strong {
    color: #fff;
    font-size: 7pt;
    line-height: 1.3;
  }

  .compact-report-footer {
    display: grid;
    gap: 8mm;
    padding-top: 4mm;
    color: #475569;
    font-size: 7pt;
    grid-template-columns: 1fr 55mm;
  }

  .compact-report-footer strong {
    color: #101827;
    font-size: 8pt;
  }

  .compact-report-footer p {
    margin-top: 1mm;
  }
}
