:root {
  --navy: #142b3a;
  --navy-soft: #234353;
  --teal: #236f73;
  --teal-dark: #19585c;
  --terracotta: #d56f4a;
  --terracotta-dark: #a9482d;
  --ochre: #c99027;
  --paper: #f7f1e6;
  --paper-light: #fffaf1;
  --surface: #fffdf8;
  --muted: #58646a;
  --line: #d4c8b6;
  --line-dark: #a99c89;
  --shadow: 0 18px 46px rgba(44, 51, 50, .1);
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--navy);
  background:
    radial-gradient(circle at 92% 8%, rgba(35, 111, 115, .12), transparent 25rem),
    linear-gradient(135deg, rgba(255, 250, 241, .92), rgba(247, 241, 230, .96));
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
}

button, a { font: inherit; }

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header { min-height: 92px; border-bottom: 1px solid var(--line-dark); }
.header-actions { display: flex; align-items: center; gap: 12px; }

.brand { display: flex; align-items: center; gap: 14px; color: var(--navy); text-decoration: none; }
.brand-name { font-family: var(--serif); font-size: 1.03rem; font-weight: 700; line-height: 1.02; }
.brand-mark { position: relative; width: 60px; height: 54px; flex: 0 0 auto; }
.brand-mark::before,
.brand-mark::after {
  position: absolute;
  width: 34px;
  height: 40px;
  border: 2px solid var(--navy);
  content: "";
}
.brand-mark::before { z-index: 2; left: 2px; top: 1px; }
.brand-mark::after { z-index: 1; right: 2px; bottom: 1px; border-color: var(--teal); }
.brand-mark span { position: absolute; z-index: 3; top: 21px; left: 25px; width: 12px; height: 12px; border: 2px solid var(--paper-light); border-radius: 50%; background: var(--terracotta); }

.prototype-label {
  padding: 7px 11px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  color: var(--terracotta-dark);
  background: rgba(255, 253, 248, .7);
  font-size: .77rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.home-button {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid var(--teal);
  border-radius: 2px;
  color: var(--teal-dark);
  background: rgba(255, 253, 248, .78);
  font-size: .8rem;
  font-weight: 800;
  text-decoration: none;
}
.home-button:hover { color: #fff; background: var(--teal); }

.shell {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(520px, 1.35fr);
  gap: clamp(42px, 7vw, 90px);
  align-items: center;
  width: min(1100px, calc(100% - 40px));
  min-height: calc(100vh - 200px);
  margin: 0 auto;
  padding: 56px 0;
}

.shell.results-layout {
  grid-template-areas:
    "intro results"
    "next results";
  grid-template-rows: auto 1fr;
  align-items: start;
}
.results-layout .intro { grid-area: intro; }
.results-layout .snapshot-card { grid-area: results; align-self: start; }
.results-layout .next-steps-panel { grid-area: next; align-self: end; }

.eyebrow,
.kicker {
  margin: 0 0 12px;
  color: var(--terracotta-dark);
  font-size: .84rem;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.intro h1,
.snapshot-card h2 { margin: 0; font-family: var(--serif); font-weight: 650; letter-spacing: -.02em; }
.intro h1 { max-width: 580px; font-size: clamp(2.55rem, 5.2vw, 4.8rem); line-height: .98; }
.intro > p:last-child { max-width: 560px; margin: 26px 0 0; color: #40545d; font-size: 1.05rem; }

/* Keep the active question and its navigation visible on a typical laptop screen. */
.shell.question-layout {
  align-items: start;
  min-height: 0;
  padding-top: 30px;
  padding-bottom: 30px;
}
.question-layout .question-intro h1 {
  max-width: 500px;
  font-size: clamp(2.05rem, 3.4vw, 3.35rem);
  line-height: 1.02;
}
.question-layout .question-intro > p:last-child { margin-top: 16px; font-size: .96rem; }
.question-layout .mini-map { gap: 5px 12px; margin-top: 18px; padding-top: 14px; }
.question-layout .mini-map li { min-height: 34px; gap: 7px; padding: 5px 7px; font-size: .71rem; }

.snapshot-card {
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-top: 7px solid var(--teal);
  border-radius: 3px;
  background: rgba(255, 253, 248, .96);
  box-shadow: var(--shadow);
}
.snapshot-card:focus { outline: none; }
.snapshot-card:focus-visible { outline: 3px solid rgba(35, 111, 115, .35); outline-offset: 4px; }

.step-heading { display: flex; gap: 18px; align-items: flex-start; padding: 32px 34px 24px; }
.step-number {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #fff;
  background: var(--teal);
  font-family: var(--serif);
  font-size: .95rem;
  font-weight: 700;
}
.step-heading .kicker { margin-bottom: 3px; }
.snapshot-card h2 { font-size: clamp(1.65rem, 2.7vw, 2.25rem); line-height: 1.08; }

.route-options { display: grid; gap: 12px; padding: 0 34px 34px; }
.route-option {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  width: 100%;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--navy);
  background: var(--surface);
  text-align: left;
  cursor: pointer;
}
.route-option:hover { border-color: var(--teal); transform: translateY(-1px); }
.route-option.selected { border-color: var(--teal); outline: 2px solid rgba(35, 111, 115, .17); }
.route-option strong, .route-option small { display: block; }
.route-option strong { font-family: var(--serif); font-size: 1.08rem; }
.route-option small { margin-top: 2px; color: var(--muted); font-size: .86rem; }
.route-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  background: var(--terracotta);
  font-family: var(--serif);
  font-size: .78rem;
  font-weight: 800;
}
.route-icon.organisation { background: var(--teal); }
.choice-mark { display: grid; place-items: center; width: 25px; height: 25px; border: 1px solid var(--line); border-radius: 50%; color: transparent; }
.selected .choice-mark { border-color: var(--teal); color: #fff; background: var(--teal); }

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 22px 34px;
  border-top: 1px solid var(--line);
  background: var(--paper-light);
}
.card-footer p { margin: 0; }
.card-footer strong, .card-footer span { display: block; }
.card-footer span { color: var(--muted); font-size: .8rem; }
.primary-button {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 18px;
  border: 1px solid var(--navy);
  border-radius: 2px;
  color: #fff;
  background: var(--navy);
  font-weight: 800;
  cursor: pointer;
}
.primary-button span { color: var(--ochre); font-size: 1.25rem; }
.primary-button:hover { background: var(--teal-dark); }
.primary-button:disabled { border-color: #8c989c; background: #8c989c; cursor: not-allowed; transform: none; }

.mini-map { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 18px; margin: 27px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); list-style: none; }
.mini-map li {
  display: flex;
  min-height: 42px;
  gap: 9px;
  align-items: center;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--dot);
  border-radius: 2px;
  color: var(--muted);
  background: rgba(255,253,248,.72);
  background: color-mix(in srgb, var(--dot) 8%, var(--surface));
  font-size: .78rem;
  line-height: 1.25;
}
.mini-map span { width: 10px; height: 10px; flex: 0 0 auto; border: 2px solid var(--dot); border-radius: 50%; background: var(--surface); }
.mini-map li.complete span, .mini-map li.current span { background: var(--dot); }
.mini-map li.complete { color: #405159; }
.mini-map li.current { color: var(--navy); font-weight: 850; box-shadow: 0 0 0 2px color-mix(in srgb, var(--dot) 28%, transparent); }

.progress-region { padding: 25px 34px 18px; border-bottom: 1px solid var(--line); background: var(--paper-light); }
.progress-copy { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 9px; }
.progress-copy span { color: var(--terracotta-dark); font-size: .77rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.progress-copy strong { font-family: var(--serif); }
.progress-track { overflow: hidden; height: 7px; border-radius: 99px; background: #e2d9ca; }
.progress-track div { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--teal), var(--terracotta)); transition: width .25s ease; }

.question-body { padding: 34px; }
.question-body h2 { max-width: 780px; font-size: clamp(1.55rem, 2.6vw, 2.18rem); line-height: 1.18; }
.scenario-title { display: inline-block; margin: 0 0 10px; padding: 5px 9px; color: #fff; background: var(--teal); font-size: .76rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.answer-options { display: grid; gap: 10px; margin: 27px 0 0; padding: 0; border: 0; }
.answer-option { display: grid; grid-template-columns: auto 1fr; gap: 13px; align-items: center; padding: 15px 16px; border: 1px solid var(--line); border-left: 4px solid transparent; border-radius: 2px; background: var(--surface); cursor: pointer; }
.answer-option:hover { border-color: var(--line-dark); border-left-color: var(--terracotta); }
.answer-option.selected { border-color: var(--teal); border-left-color: var(--teal); background: #f2f8f6; }
.answer-option input { position: absolute; opacity: 0; pointer-events: none; }
.radio-mark { width: 21px; height: 21px; border: 2px solid var(--line-dark); border-radius: 50%; box-shadow: inset 0 0 0 4px var(--surface); }
.selected .radio-mark { border-color: var(--teal); background: var(--teal); }
.answer-option strong, .answer-option small { display: block; }
.answer-option strong { font-size: .95rem; }
.answer-option small { margin-top: 2px; color: var(--muted); font-size: .82rem; }
.scenario-options .answer-option { align-items: flex-start; }
.scenario-options .radio-mark { margin-top: 2px; }
.scenario-options .answer-option strong { font-weight: 400; }
.question-footer { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 20px 34px; border-top: 1px solid var(--line); background: var(--paper-light); }
.text-button { padding: 10px 0; border: 0; color: var(--teal-dark); background: transparent; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.text-button:hover { color: var(--terracotta-dark); }

.question-layout .progress-region { padding: 17px 28px 13px; }
.question-layout .progress-copy { margin-bottom: 7px; }
.question-layout .question-body { padding: 23px 28px 21px; }
.question-layout .question-body h2 { font-size: clamp(1.3rem, 1.85vw, 1.75rem); line-height: 1.16; }
.question-layout .answer-options { gap: 7px; margin-top: 17px; }
.question-layout .answer-option { gap: 11px; padding: 10px 13px; }
.question-layout .answer-option strong { font-size: .9rem; }
.question-layout .answer-option small { margin-top: 1px; font-size: .77rem; line-height: 1.35; }
.question-layout .question-footer { padding: 13px 28px; }
.question-layout .question-footer .primary-button { min-height: 43px; padding: 8px 15px; }

.result-indicator {
  position: relative;
  overflow: hidden;
  margin: 8px 0 30px;
  padding: 24px 26px 21px;
  border: 1px solid var(--line-dark);
  border-top: 7px solid var(--terracotta);
  background: rgba(255, 253, 248, .88);
  box-shadow: 0 12px 30px rgba(44, 51, 50, .07);
}
.result-indicator::after {
  position: absolute;
  top: -52px;
  right: -34px;
  width: 155px;
  height: 155px;
  border: 24px solid rgba(35, 111, 115, .08);
  border-radius: 50%;
  content: "";
}
.indicator-label {
  position: relative;
  z-index: 1;
  display: block;
  color: var(--terracotta-dark);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.result-indicator > strong {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 4px;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.02;
}
.indicator-scale {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-top: 23px;
}
.indicator-scale span {
  position: relative;
  padding-top: 11px;
  border-top: 6px solid #ded6c9;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.indicator-scale span:nth-child(1) { border-top-color: rgba(213, 111, 74, .35); }
.indicator-scale span:nth-child(2) { border-top-color: rgba(201, 144, 39, .4); }
.indicator-scale span:nth-child(3) { border-top-color: rgba(35, 111, 115, .35); }
.indicator-scale span.active { color: var(--navy); }
.indicator-scale span:nth-child(1).active { border-top-color: var(--terracotta); }
.indicator-scale span:nth-child(2).active { border-top-color: var(--ochre); }
.indicator-scale span:nth-child(3).active { border-top-color: var(--teal); }
.indicator-scale i {
  position: absolute;
  top: -10px;
  left: 50%;
  display: none;
  width: 14px;
  height: 14px;
  border: 3px solid var(--surface);
  border-radius: 50%;
  background: currentColor;
  transform: translateX(-50%);
  box-shadow: 0 0 0 1px currentColor;
}
.indicator-scale .active i { display: block; }
.result-heading { font-size: clamp(1.55rem, 2.6vw, 2.25rem) !important; line-height: 1.14 !important; }
.guidance-summary { margin-top: 24px; padding: 16px 17px; border: 1px solid #d7b778; border-left: 5px solid var(--ochre); background: rgba(255,250,241,.82); }
.guidance-summary strong { display: block; font-family: var(--serif); font-size: 1.04rem; }
.guidance-summary p { margin: 5px 0 0 !important; color: #495a61 !important; font-size: .84rem !important; }
.results-card { border-top-color: var(--terracotta); }
.result-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; padding: 30px 34px 23px; }
.result-header .kicker { margin-bottom: 3px; }
.result-header h2 { font-size: 2rem; }
.perspective-chip { padding: 7px 10px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); font-size: .75rem; font-weight: 800; white-space: nowrap; }
.dimension-results { display: grid; gap: 13px; padding: 0 34px 32px; }
.dimension-row { display: grid; grid-template-columns: minmax(175px, 1.1fr) minmax(120px, 1fr) 75px; gap: 13px; align-items: center; font-size: .8rem; }
.dimension-row > span { font-weight: 750; }
.dimension-row > strong { color: var(--muted); font-size: .72rem; }
.score-track { overflow: hidden; height: 11px; border-radius: 99px; background: #e5ddd0; }
.score-track div { height: 100%; border-radius: inherit; background: var(--bar); }
.care-note { margin: 0 34px 30px; padding: 17px 18px; border: 1px solid #d9a18c; border-left: 5px solid var(--terracotta); background: #fff6ef; }
.care-note strong { font-family: var(--serif); font-size: 1.06rem; }
.care-note p { margin: 4px 0 0; color: #5a4941; font-size: .85rem; }
.insight-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.insight { min-height: 205px; padding: 27px 30px; }
.insight + .insight { border-left: 1px solid var(--line); }
.insight.strength { background: #edf4ef; }
.insight.priority { background: #f9eddf; }
.insight-label { margin: 0 0 13px; color: var(--muted); font-size: .72rem; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.insight h3 { margin: 0; font-family: var(--serif); font-size: 1.35rem; }
.insight p:last-child { margin: 9px 0 0; color: #43545b; font-size: .86rem; }
.next-steps-panel { padding: 28px 30px 30px; border: 1px solid #b8cbc7; border-top: 6px solid var(--terracotta); color: var(--navy); background: #e4efec; box-shadow: 0 14px 36px rgba(44, 51, 50, .08); }
.next-steps-panel[hidden] { display: none; }
.next-steps-panel .kicker { color: var(--terracotta-dark); }
.next-steps-panel h2 { margin: 0; font-family: var(--serif); font-size: clamp(1.65rem, 2.7vw, 2.2rem); line-height: 1.05; }
.next-steps-panel p:not(.kicker) { margin: 13px 0 0; color: #40545d; font-size: .87rem; }
.next-steps-panel ul { margin: 19px 0 23px; padding-left: 20px; color: #344b54; font-size: .83rem; }
.next-steps-panel li + li { margin-top: 7px; }
.next-steps-panel .link-button { width: 100%; border-color: var(--teal-dark); background: var(--teal-dark); text-decoration: none; }
.next-steps-panel .link-button:hover { color: #fff; background: var(--navy-soft); }
.result-footer { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 18px 34px; background: var(--paper-light); }
.result-footer p { max-width: 620px; margin: 0; color: var(--muted); font-size: .75rem; }

.site-footer { display: grid; gap: 10px; min-height: 108px; padding: 14px 0 22px; color: var(--muted); font-size: .83rem; }
.footer-main { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 14px; border-top: 1px solid var(--line-dark); color: #40545d; font-weight: 700; }
.footer-reference { max-width: 1000px; margin: 0; font-size: .68rem; line-height: 1.45; }
.footer-reference strong { color: #40545d; }
.footer-reference cite { font-style: italic; }
.footer-reference a { color: var(--teal-dark); overflow-wrap: anywhere; }

@media (max-width: 850px) {
  .shell { grid-template-columns: 1fr; gap: 38px; padding: 42px 0 52px; }
  .shell.question-layout { gap: 28px; padding-top: 32px; padding-bottom: 40px; }
  .shell.results-layout {
    grid-template-areas:
      "intro"
      "results"
      "next";
    grid-template-rows: auto;
  }
  .intro h1 { max-width: 690px; }
  .question-layout .question-intro h1 { max-width: 690px; }
  .mini-map { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .site-header, .site-footer, .shell { width: min(100% - 24px, 1100px); }
  .site-header { min-height: 82px; }
  .prototype-label { display: none; }
  .step-heading, .route-options, .card-footer { padding-right: 21px; padding-left: 21px; }
  .step-heading { gap: 13px; }
  .step-number { width: 44px; height: 44px; }
  .card-footer { align-items: stretch; flex-direction: column; }
  .primary-button { width: 100%; }
  .mini-map { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .progress-region, .question-body, .question-footer, .result-header, .dimension-results, .next-steps-panel, .result-footer { padding-right: 21px; padding-left: 21px; }
  .progress-copy { align-items: flex-start; flex-direction: column; gap: 2px; }
  .question-footer, .result-header, .result-footer { align-items: stretch; flex-direction: column; }
  .question-footer .primary-button { width: auto; }
  .perspective-chip { width: max-content; }
  .dimension-row { grid-template-columns: minmax(135px, .9fr) minmax(90px, 1fr); }
  .dimension-row > strong { display: none; }
  .care-note { margin-right: 21px; margin-left: 21px; }
  .insight-grid { grid-template-columns: 1fr; }
  .insight + .insight { border-top: 1px solid var(--line); border-left: 0; }
  .next-steps-panel .link-button { width: 100%; }
  .header-actions { gap: 7px; }
  .home-button { padding-right: 9px; padding-left: 9px; font-size: .74rem; }
  .footer-main { align-items: flex-start; flex-direction: column; gap: 3px; }
}

@media (prefers-reduced-motion: no-preference) {
  .route-option, .primary-button { transition: border-color .16s ease, background .16s ease, transform .16s ease; }
}
