:root {
  --ink: #111111;
  --paper: #f3f0e8;
  --blue: #1746d1;
  --orange: #ff5738;
  --mint: #b9e6d3;
  --pink: #e8a6d5;
  --line: rgba(17, 17, 17, 0.24);
  --max: 1440px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 400;
}

button, select, textarea, input { font: inherit; }

a { color: inherit; }

a:focus-visible,
button:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -80px;
  left: 16px;
  z-index: 20;
  padding: 12px 16px;
  color: var(--paper);
  background: var(--ink);
}

.skip-link:focus { top: 12px; }

.site-shell {
  width: min(100%, var(--max));
  min-height: 100vh;
  margin: 0 auto;
  border-inline: 1px solid var(--ink);
}

.site-header {
  min-height: 78px;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto max-content;
  align-items: center;
  gap: 34px;
  padding: 0 30px;
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  width: fit-content;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}

.brand-mark {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
}

.site-nav a {
  padding: 8px 0;
  text-decoration: none;
  font-size: 14px;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] { border-bottom-color: var(--blue); }

.download-link,
.action-link,
.action-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 0 16px;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  text-decoration: none;
  cursor: pointer;
}

.download-link:hover,
.action-link:hover,
.action-button:hover { color: var(--paper); background: var(--ink); }

.eyebrow {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.home-hero {
  min-height: calc(100vh - 79px);
  display: grid;
  grid-template-columns: 1.55fr 0.85fr;
  border-bottom: 1px solid var(--ink);
}

.home-copy {
  display: flex;
  flex-direction: column;
  padding: 38px 42px 42px;
}

.home-meta {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.home-title {
  max-width: 900px;
  margin: auto 0 0;
  font-size: clamp(4rem, 8.4vw, 8.9rem);
  line-height: 0.86;
  letter-spacing: -0.072em;
  font-weight: 400;
}

.home-title strong { color: var(--blue); font-weight: 400; }

.home-bottom {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(230px, 0.72fr);
  align-items: end;
  gap: 44px;
  margin-top: 74px;
}

.home-intro {
  max-width: 560px;
  margin: 0;
  font-size: clamp(1rem, 1.45vw, 1.35rem);
  line-height: 1.38;
}

.home-bottom .action-link {
  min-height: 70px;
  padding: 0 22px;
  border: 0;
  background: var(--orange);
  font-size: 19px;
  font-weight: 500;
}

.home-bottom .action-link:hover { color: var(--paper); background: var(--ink); }

.home-art {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: var(--blue);
  border-left: 1px solid var(--ink);
}

.urban-grid {
  position: absolute;
  inset: 0;
  opacity: 0.55;
  background-image:
    linear-gradient(rgba(243, 240, 232, 0.28) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243, 240, 232, 0.28) 1px, transparent 1px);
  background-size: 56px 56px;
}

.space-shape {
  position: absolute;
  border: 1px solid var(--ink);
}

.shape-one { top: 14%; left: 11%; width: 43%; height: 21%; background: var(--mint); }
.shape-two { top: 27%; right: 8%; width: 31%; height: 34%; background: var(--orange); }
.shape-three { bottom: 12%; left: 20%; width: 54%; height: 25%; background: var(--paper); }

.urban-circle {
  position: absolute;
  left: 21%;
  top: 23%;
  width: min(58%, 390px);
  aspect-ratio: 1;
  border: 3px solid var(--paper);
  border-radius: 50%;
}

.art-caption {
  position: absolute;
  left: 24px;
  bottom: 24px;
  color: var(--paper);
  font-size: 12px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.route-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--ink);
}

.route-card {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px;
  border-right: 1px solid var(--ink);
  text-decoration: none;
}

.route-card:last-child { border-right: 0; }
.route-card:hover { background: var(--mint); }
.route-card:nth-child(3):hover { background: var(--orange); }
.route-card-number { color: var(--blue); font-size: 13px; }
.route-card h2 { margin: 0; font-size: clamp(1.5rem, 2.4vw, 2.35rem); line-height: 1; letter-spacing: -0.045em; font-weight: 500; }
.route-card span:last-child { align-self: flex-end; font-size: 26px; }

.page-intro {
  min-height: 350px;
  display: grid;
  grid-template-columns: 0.72fr 1.7fr;
  gap: 54px;
  padding: 54px 38px;
  border-bottom: 1px solid var(--ink);
}

.page-intro h1 {
  max-width: 940px;
  margin: 0;
  font-size: clamp(3.4rem, 7vw, 7.8rem);
  line-height: 0.88;
  letter-spacing: -0.065em;
  font-weight: 400;
}

.page-intro h1 em { color: var(--blue); font-style: normal; }

.page-summary {
  align-self: end;
  max-width: 620px;
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
}

.section-heading {
  display: grid;
  grid-template-columns: 0.72fr 1.7fr;
  gap: 54px;
  padding: 34px 38px;
  border-bottom: 1px solid var(--ink);
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2.3rem, 5vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: -0.052em;
  font-weight: 400;
}

.method-note {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-bottom: 1px solid var(--ink);
}

.method-note > div { padding: 40px 38px; }
.method-note > div + div { border-left: 1px solid var(--ink); }
.method-note p { max-width: 560px; margin: 0; font-size: 18px; line-height: 1.55; }
.method-note .large-note { font-size: clamp(2rem, 4vw, 4rem); line-height: 1; letter-spacing: -0.045em; }

.audit-list { border-bottom: 1px solid var(--ink); }
.audit-item { border-bottom: 1px solid var(--ink); }
.audit-item:last-child { border-bottom: 0; }
.audit-item summary {
  min-height: 86px;
  display: grid;
  grid-template-columns: 78px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 0 38px;
  list-style: none;
  cursor: pointer;
}
.audit-item summary::-webkit-details-marker { display: none; }
.audit-item[open] summary { background: var(--mint); }
.audit-name { font-size: clamp(1.6rem, 3vw, 3rem); letter-spacing: -0.04em; font-weight: 500; }
.audit-toggle { font-size: 30px; transition: transform 180ms ease; }
.audit-item[open] .audit-toggle { transform: rotate(45deg); }
.audit-content {
  display: grid;
  grid-template-columns: 0.8fr 1.5fr;
  gap: 48px;
  padding: 32px 38px 38px 136px;
  background: var(--mint);
  border-top: 1px solid var(--ink);
}
.audit-content p { margin: 0; font-size: 18px; line-height: 1.45; }
.audit-content ul { margin: 0; padding-left: 18px; columns: 2; column-gap: 44px; }
.audit-content li { margin-bottom: 12px; break-inside: avoid; line-height: 1.42; }

.pathway-list { border-bottom: 1px solid var(--ink); }
.pathway-button {
  width: 100%;
  min-height: 92px;
  display: grid;
  grid-template-columns: 78px 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 0 38px;
  border: 0;
  border-bottom: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.pathway-button[aria-pressed="true"] { color: var(--paper); background: var(--blue); }
.pathway-button-name { font-size: clamp(1.7rem, 3.4vw, 3.6rem); letter-spacing: -0.045em; font-weight: 500; }
.pathway-arrow { font-size: 28px; }
.pathway-detail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--mint);
  border-bottom: 1px solid var(--ink);
}
.pathway-detail > div { min-height: 210px; padding: 30px 38px; }
.pathway-detail > div + div { border-left: 1px solid var(--ink); }
.pathway-detail .pathway-overview { grid-column: 1 / -1; min-height: 170px; border-bottom: 1px solid var(--ink); }
.pathway-detail .pathway-overview + div { border-left: 0; }
.pathway-detail h2 { margin: 12px 0 0; font-size: 28px; line-height: 1.08; letter-spacing: -0.035em; font-weight: 500; }
.pathway-detail p { margin: 12px 0 0; line-height: 1.5; }
.pathway-models { margin: 16px 0 0; padding-left: 18px; }
.pathway-models li { margin-bottom: 8px; line-height: 1.35; }

.builder-layout {
  min-height: calc(100vh - 79px);
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
}
.builder-lead {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 46px 38px;
  background: var(--orange);
  border-right: 1px solid var(--ink);
}
.builder-lead h1 { margin: 28px 0; font-size: clamp(3.6rem, 6vw, 7rem); line-height: 0.88; letter-spacing: -0.065em; font-weight: 400; }
.builder-lead p { max-width: 460px; margin: 0; font-size: 18px; line-height: 1.5; }
.builder-form { padding: 34px 38px; }
.builder-step { padding: 22px 0 26px; border-bottom: 1px solid var(--line); }
.builder-step label { display: grid; grid-template-columns: 52px 1fr; gap: 15px; }
.step-number { color: var(--blue); font-size: 14px; font-weight: 500; }
.step-field { display: grid; gap: 14px; }
.step-field > span { font-size: 17px; font-weight: 500; }
.step-field select {
  width: 100%;
  min-height: 48px;
  padding: 0 34px 0 0;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  color: var(--ink);
  background: transparent;
}
.builder-result {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
  margin-top: 34px;
  padding: 28px;
  color: var(--paper);
  background: var(--blue);
}
.builder-result strong { display: block; margin-top: 10px; font-size: clamp(1.8rem, 3vw, 3rem); line-height: 1; font-weight: 500; }
.builder-result > p { max-width: 250px; margin: 0; text-align: right; font-size: 13px; line-height: 1.4; }
.builder-support { margin: 16px 0 0; font-size: 14px; line-height: 1.4; }

.notes-layout {
  display: grid;
  grid-template-columns: 0.62fr 1.38fr;
  min-height: calc(100vh - 79px);
}
.notes-aside {
  padding: 44px 38px;
  color: var(--paper);
  background: var(--blue);
  border-right: 1px solid var(--ink);
}
.notes-aside h1 { margin: 30px 0; font-size: clamp(3rem, 5vw, 6rem); line-height: 0.9; letter-spacing: -0.06em; font-weight: 400; }
.notes-aside p { max-width: 420px; font-size: 18px; line-height: 1.5; }
.notes-form { padding: 30px 38px 48px; }
.note-field { display: grid; grid-template-columns: 46px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.note-field label { display: grid; gap: 10px; font-weight: 500; }
.note-field textarea {
  width: 100%;
  min-height: 72px;
  resize: vertical;
  padding: 12px;
  border: 1px solid var(--ink);
  border-radius: 0;
  color: var(--ink);
  background: rgba(255,255,255,0.25);
  font-weight: 400;
}
.notes-actions { display: flex; justify-content: flex-end; margin-top: 26px; }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding: 24px 30px;
  color: var(--paper);
  background: var(--ink);
  font-size: 13px;
}

@media (max-width: 980px) {
  .site-header { grid-template-columns: 1fr auto; gap: 20px; padding: 14px 22px; }
  .site-nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; overflow-x: auto; }
  .home-hero { grid-template-columns: 1fr; }
  .home-copy { min-height: 680px; }
  .home-art { min-height: 520px; border-left: 0; border-top: 1px solid var(--ink); }
  .route-grid { grid-template-columns: 1fr 1fr; }
  .route-card:nth-child(2) { border-right: 0; }
  .route-card:nth-child(-n+2) { border-bottom: 1px solid var(--ink); }
  .builder-layout, .notes-layout { grid-template-columns: 1fr; }
  .builder-lead, .notes-aside { min-height: 480px; border-right: 0; border-bottom: 1px solid var(--ink); }
}

@media (max-width: 680px) {
  .site-shell { border-inline: 0; }
  .site-header { grid-template-columns: 1fr auto; padding: 15px 18px; }
  .download-link { position: static; min-height: 40px; padding-inline: 12px; font-size: 13px; }
  .site-nav { grid-column: 1 / -1; gap: 18px; padding-top: 5px; }
  .site-nav a { white-space: nowrap; }
  .home-copy { min-height: 610px; padding: 28px 18px 30px; }
  .home-meta { flex-direction: column; }
  .home-title { font-size: clamp(3.8rem, 18vw, 6rem); }
  .home-bottom { grid-template-columns: 1fr; gap: 30px; margin-top: 54px; }
  .home-art { min-height: 390px; }
  .route-grid { grid-template-columns: 1fr; }
  .route-card { min-height: 170px; border-right: 0; border-bottom: 1px solid var(--ink); }
  .route-card:last-child { border-bottom: 0; }
  .page-intro, .section-heading { grid-template-columns: 1fr; gap: 28px; padding: 36px 18px; }
  .page-intro { min-height: 420px; }
  .method-note { grid-template-columns: 1fr; }
  .method-note > div { padding: 30px 18px; }
  .method-note > div + div { border-left: 0; border-top: 1px solid var(--ink); }
  .audit-item summary, .pathway-button { grid-template-columns: 42px 1fr auto; padding: 0 18px; }
  .audit-content { grid-template-columns: 1fr; gap: 24px; padding: 26px 18px; }
  .audit-content ul { columns: 1; }
  .pathway-detail { grid-template-columns: 1fr; }
  .pathway-detail > div { min-height: 0; padding: 24px 18px; }
  .pathway-detail > div + div { border-left: 0; border-top: 1px solid var(--ink); }
  .builder-lead, .notes-aside { min-height: 420px; padding: 34px 18px; }
  .builder-form, .notes-form { padding: 26px 18px 40px; }
  .builder-result { grid-template-columns: 1fr; }
  .builder-result > p { text-align: left; }
  .notes-actions { justify-content: stretch; }
  .notes-actions .action-button { width: 100%; }
  .site-footer { flex-direction: column; padding: 22px 18px; }
}

.diagnostic-layout {
  min-height: calc(100vh - 79px);
  display: grid;
  grid-template-columns: minmax(310px, 0.72fr) minmax(0, 1.78fr);
}

.diagnostic-rail {
  min-height: calc(100vh - 79px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 70px;
  padding: 42px 34px;
  background: var(--orange);
  border-right: 1px solid var(--ink);
}

.diagnostic-rail h1 {
  max-width: 420px;
  margin: 30px 0;
  font-size: clamp(3.5rem, 5.5vw, 6.8rem);
  line-height: 0.86;
  letter-spacing: -0.068em;
  font-weight: 400;
}

.diagnostic-rail-copy {
  max-width: 390px;
  margin: 0;
  font-size: 17px;
  line-height: 1.48;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 500;
}

.progress-track { height: 3px; background: rgba(17,17,17,.22); }
.progress-track span { display: block; width: 11%; height: 100%; background: var(--ink); transition: width 220ms ease; }

.diagnostic-progress ol {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px 16px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
}

.diagnostic-progress li { opacity: .42; }
.diagnostic-progress li.is-current { opacity: 1; font-weight: 500; }
.diagnostic-progress li.is-complete { opacity: .78; }

.diagnostic-workspace {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 30px 38px 38px;
}

.diagnostic-toolbar {
  min-height: 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.text-button {
  padding: 5px 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
}

.text-button:disabled { cursor: default; opacity: .35; }

.form-alert {
  margin: 18px 0 0;
  padding: 13px 15px;
  border: 1px solid var(--ink);
  background: var(--pink);
  font-size: 14px;
}

.diagnostic-screen { flex: 1; padding: 38px 0 30px; }
.diagnostic-screen[hidden] { display: none; }

.screen-heading {
  display: grid;
  grid-template-columns: 1fr minmax(260px, .72fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 38px;
}

.screen-heading .eyebrow { grid-column: 1 / -1; }
.screen-heading h2 {
  margin: 0;
  font-size: clamp(2.4rem, 4.6vw, 5.4rem);
  line-height: .93;
  letter-spacing: -.055em;
  font-weight: 400;
}
.screen-heading > p:last-child { max-width: 470px; margin: 0; font-size: 16px; line-height: 1.5; }

.mode-grid { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--ink); }
.mode-card {
  min-height: 310px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px;
  border: 0;
  color: var(--ink);
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.mode-card + .mode-card { border-left: 1px solid var(--ink); }
.mode-card:hover { background: var(--mint); }
.mode-card-primary { background: var(--blue); color: var(--paper); }
.mode-card-primary:hover { background: var(--ink); }
.mode-number { margin-bottom: auto; font-size: 13px; }
.mode-card strong { display: block; margin: 30px 0 13px; font-size: 32px; line-height: 1; letter-spacing: -.04em; font-weight: 500; }
.mode-card > span:not(.mode-number) { max-width: 380px; line-height: 1.45; }
.mode-card small { margin-top: 20px; font-size: 13px; }

.field-stack { max-width: 840px; display: grid; gap: 28px; }
.text-field { display: grid; gap: 10px; font-weight: 500; }
.text-field input, .text-field select {
  width: 100%;
  min-height: 54px;
  padding: 0 4px;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  color: var(--ink);
  background: transparent;
  font-size: 20px;
  font-weight: 400;
}

.option-grid, .check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}

.option-card, .check-card {
  position: relative;
  min-height: 104px;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  cursor: pointer;
  line-height: 1.35;
}
.option-card input, .check-card input { position: absolute; opacity: 0; }
.option-indicator {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border: 1px solid var(--ink);
  border-radius: 50%;
}
.check-card .option-indicator { border-radius: 0; }
.option-card:has(input:checked), .check-card:has(input:checked) { background: var(--mint); }
.option-card:has(input:checked) .option-indicator { border: 5px solid var(--blue); }
.check-card:has(input:checked) .option-indicator { background: var(--blue); box-shadow: inset 0 0 0 4px var(--mint); }
.option-card:focus-within, .check-card:focus-within { outline: 3px solid var(--orange); outline-offset: -4px; }
.option-grid-compact .option-card { min-height: 82px; }

.audit-heading { grid-template-columns: 1.25fr .75fr; }
.audit-heading .eyebrow { grid-column: auto; }
.audit-diagnostic-list { border-top: 1px solid var(--ink); }
.audit-question {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 86px;
  padding: 14px 0;
  border-bottom: 1px solid var(--ink);
}
.audit-question-index { color: var(--blue); font-size: 13px; }
.audit-question p { margin: 0; line-height: 1.4; }
.answer-switch { display: inline-flex; border: 1px solid var(--ink); }
.answer-switch label { position: relative; min-width: 70px; cursor: pointer; text-align: center; }
.answer-switch input { position: absolute; opacity: 0; }
.answer-switch span { display: block; padding: 10px 12px; border-right: 1px solid var(--ink); font-size: 13px; }
.answer-switch label:last-child span { border-right: 0; }
.answer-switch input:checked + span { color: var(--paper); background: var(--blue); }
.answer-switch label:focus-within { outline: 3px solid var(--orange); outline-offset: 2px; }
.audit-group-nav { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 24px; }

.diagnostic-controls {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.diagnostic-controls[hidden] { display: none; }
.action-button-primary { color: var(--paper); background: var(--blue); border-color: var(--blue); }
.action-button-primary:hover { color: var(--paper); background: var(--ink); border-color: var(--ink); }

.result-screen { padding-bottom: 0; }
.result-hero {
  display: grid;
  grid-template-columns: 1fr 150px;
  gap: 30px;
  align-items: start;
  padding: 34px;
  color: var(--paper);
  background: var(--blue);
}
.result-hero h2 { max-width: 850px; margin: 18px 0; font-size: clamp(3rem, 6vw, 6.8rem); line-height: .88; letter-spacing: -.062em; font-weight: 400; }
.result-hero p:last-child { max-width: 650px; margin: 0; font-size: 18px; line-height: 1.45; }
.result-mark { width: 100%; background: var(--paper); }
.result-grid { display: grid; grid-template-columns: 1fr 1fr; border-left: 1px solid var(--ink); }
.result-section {
  min-height: 230px;
  padding: 28px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.result-section h3 { margin: 15px 0; font-size: 30px; line-height: 1.05; letter-spacing: -.035em; font-weight: 500; }
.score-section { grid-row: span 2; }
.risk-section { background: var(--pink); }
.action-section { background: var(--orange); }
.score-list { display: grid; gap: 22px; margin-top: 28px; }
.score-row { display: grid; grid-template-columns: minmax(160px, 1fr) 2fr 46px; gap: 14px; align-items: center; font-size: 13px; }
.score-bar { height: 5px; background: rgba(17,17,17,.14); }
.score-bar span { display: block; height: 100%; background: var(--blue); }
.score-row:first-child { font-weight: 500; }
.score-row:first-child .score-bar span { background: var(--orange); }
.result-list { margin: 20px 0 0; padding-left: 18px; }
.result-list li { margin-bottom: 12px; line-height: 1.43; }
.methodology-section { grid-column: 1 / -1; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.methodology-section summary { display: flex; justify-content: space-between; gap: 20px; padding: 22px 28px; cursor: pointer; font-weight: 500; list-style: none; }
.methodology-section summary::-webkit-details-marker { display: none; }
.methodology-section > div { max-width: 900px; padding: 0 28px 28px; line-height: 1.5; }
.result-actions { display: flex; justify-content: flex-end; gap: 14px; padding: 26px 0 0; }

@media (max-width: 1050px) {
  .diagnostic-layout { grid-template-columns: 280px minmax(0, 1fr); }
  .diagnostic-rail { padding: 34px 24px; }
  .diagnostic-progress ol { grid-template-columns: 1fr 1fr; }
  .screen-heading { grid-template-columns: 1fr; gap: 18px; }
  .screen-heading .eyebrow { grid-column: auto; }
  .result-grid { grid-template-columns: 1fr; }
  .score-section { grid-row: auto; }
  .methodology-section { grid-column: auto; }
}

@media (max-width: 760px) {
  .diagnostic-layout { grid-template-columns: 1fr; }
  .diagnostic-rail { min-height: 0; gap: 34px; border-right: 0; border-bottom: 1px solid var(--ink); }
  .diagnostic-rail h1 { font-size: 4.1rem; }
  .diagnostic-progress ol { display: none; }
  .diagnostic-workspace { padding: 24px 18px 30px; }
  .diagnostic-screen { padding-top: 28px; }
  .mode-grid, .option-grid, .check-grid { grid-template-columns: 1fr; }
  .mode-card { min-height: 250px; }
  .mode-card + .mode-card { border-left: 0; border-top: 1px solid var(--ink); }
  .audit-question { grid-template-columns: 32px 1fr; }
  .answer-switch { grid-column: 2; width: fit-content; }
  .answer-switch label { min-width: 62px; }
  .result-hero { grid-template-columns: 1fr; padding: 26px 20px; }
  .result-mark { width: 86px; grid-row: 1; }
  .result-section { min-height: 0; padding: 24px 20px; }
  .score-row { grid-template-columns: 1fr 1.4fr 42px; }
  .result-actions { flex-direction: column; }
  .result-actions .action-button { width: 100%; }
}

@media print {
  .site-header, .notes-aside, .notes-actions, .site-footer, .skip-link { display: none !important; }
  .site-shell { border: 0; }
  .notes-layout { display: block; }
  .notes-form { padding: 0; }
  .note-field { break-inside: avoid; }
  .note-field textarea { min-height: 90px; background: white; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
.rotating-word {
  display: inline-flex;
  align-items: center;
  width: auto;
  margin-left: 0.04em;
  padding: 0.02em 0.1em 0.08em;
  overflow: hidden;
  background: #111111;
  color: #f3f0e8;
  line-height: 0.88;
  vertical-align: 0.06em;
}

.rotating-word > span {
  display: block;
  width: max-content;
  white-space: nowrap;
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.rotating-word > span.is-changing {
  opacity: 0;
  transform: translateY(-0.12em);
}

@media (prefers-reduced-motion: reduce) {
  .rotating-word > span {
    transition: none;
  }
}
