:root {
  --blue-50: #f3f9ff;
  --blue-100: #e2f0ff;
  --blue-500: #0f84ff;
  --blue-600: #0d74e0;
  --blue-700: #0b63bf;
  --orange-50: #fff7f2;
  --orange-500: #ff6500;
  --orange-700: #bf4c00;
  --white: #ffffff;
  --page: #f8fafc;
  --panel: #f1f5f9;
  --border: #e2e8f0;
  --text: #0f172a;
  --text-2: #475569;
  --muted: #64748b;
  --placeholder: #94a3b8;
  --success: #16a34a;
  --error: #dc2626;
  --warning: #d97706;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow: 0 10px 35px rgba(15, 23, 42, 0.06);
  --sidebar-width: 286px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--page);
  color: var(--text);
  line-height: 1.5;
}

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

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

button {
  cursor: pointer;
}

.page-shell {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 28px 20px;
  background: var(--white);
  border-right: 1px solid var(--border);
  z-index: 20;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--blue-600);
  color: white;
  font-weight: 800;
  font-size: 1.25rem;
}

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

.brand strong {
  font-size: 1.02rem;
}

.brand small {
  color: var(--muted);
  margin-top: 1px;
}

.progress-card {
  border: 1px solid var(--border);
  background: var(--page);
  border-radius: var(--radius);
  padding: 15px;
}

.progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: .83rem;
  color: var(--text-2);
}

.progress-meta strong {
  color: var(--text);
}

.progress-track {
  height: 8px;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
}

.progress-fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: var(--blue-600);
  transition: width .3s ease;
}

.progress-card small {
  display: block;
  color: var(--muted);
  font-size: .74rem;
  margin-top: 10px;
  line-height: 1.45;
}

.section-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
}

.section-nav a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 500;
  transition: .2s ease;
}

.section-nav a::before {
  content: "";
  width: 6px;
  height: 6px;
  border: 2px solid var(--placeholder);
  border-radius: 50%;
  flex: 0 0 auto;
}

.section-nav a:hover,
.section-nav a.active {
  background: var(--blue-50);
  color: var(--blue-700);
}

.section-nav a.active::before {
  border-color: var(--blue-600);
  background: var(--blue-600);
}

.section-nav a.complete::before {
  border-color: var(--success);
  background: var(--success);
}

.sidebar-footer {
  margin-top: auto;
}

.btn {
  border: 0;
  border-radius: 11px;
  padding: 12px 16px;
  font-weight: 650;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--blue-600);
  color: white;
  box-shadow: 0 8px 20px rgba(13, 116, 224, .18);
}

.btn-primary:hover {
  background: var(--blue-700);
}

.btn-secondary {
  background: var(--white);
  color: var(--blue-700);
  border: 1px solid #bfdbfe;
}

.btn-secondary:hover {
  background: var(--blue-50);
}

.btn-block {
  width: 100%;
}

.text-button {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 10px;
  margin-top: 5px;
  font-size: .83rem;
}

.text-button:hover {
  color: var(--error);
}

.main {
  width: min(980px, calc(100% - var(--sidebar-width)));
  margin-left: var(--sidebar-width);
  padding: 64px 56px 100px;
}

.hero {
  max-width: 790px;
  margin-bottom: 42px;
}

.eyebrow {
  display: inline-block;
  color: var(--blue-700);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  margin-bottom: 10px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 6vw, 4.3rem);
  line-height: 1.02;
  letter-spacing: -.055em;
  max-width: 760px;
}

.hero > p {
  color: var(--text-2);
  font-size: 1.05rem;
  max-width: 680px;
  margin: 22px 0;
}

.hero-note {
  display: flex;
  gap: 12px;
  padding: 15px 17px;
  border: 1px solid var(--blue-100);
  border-radius: var(--radius);
  background: var(--blue-50);
  color: var(--text-2);
}

.hero-note p {
  margin: 0;
  font-size: .88rem;
}

.note-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  flex: 0 0 auto;
  background: var(--blue-600);
  color: white;
  font-size: .75rem;
  font-weight: 700;
}

.form-section {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 34px;
  margin-bottom: 22px;
  scroll-margin-top: 24px;
}

.section-heading {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 28px;
}

.section-number {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 12px;
  background: var(--text);
  color: white;
  font-weight: 800;
  font-size: .82rem;
}

.common-number {
  background: var(--blue-600);
}

.section-heading h2 {
  margin: 0 0 6px;
  font-size: 1.55rem;
  letter-spacing: -.03em;
}

.section-heading p {
  color: var(--muted);
  margin: 0;
  font-size: .92rem;
}

.subheading {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .11em;
  color: var(--muted);
  margin: 30px 0 14px;
}

.field {
  margin-bottom: 20px;
}

.field:last-child {
  margin-bottom: 0;
}

label,
.label {
  display: block;
  color: var(--text);
  font-size: .86rem;
  font-weight: 650;
  margin-bottom: 8px;
}

.optional {
  color: var(--muted);
  font-weight: 400;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="date"],
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--white);
  color: var(--text);
  padding: 12px 13px;
  outline: none;
  transition: border .15s ease, box-shadow .15s ease, background .15s ease;
}

textarea {
  resize: vertical;
  min-height: 110px;
}

input::placeholder,
textarea::placeholder {
  color: var(--placeholder);
}

input:focus,
select:focus,
textarea:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 4px rgba(15, 132, 255, .10);
}

input.invalid,
select.invalid,
textarea.invalid {
  border-color: #fca5a5;
  background: #fffafa;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.three-col {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.top-gap {
  margin-top: 22px;
}

.choice-grid {
  border: 0;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 11px;
}

.choice-card {
  margin: 0;
  cursor: pointer;
}

.choice-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-card-body {
  display: block;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
  transition: .18s ease;
}

.choice-card-body strong,
.choice-card-body small {
  display: block;
}

.choice-card-body strong {
  font-size: .9rem;
  margin-bottom: 3px;
}

.choice-card-body small {
  color: var(--muted);
  font-weight: 400;
  line-height: 1.45;
}

.choice-card:hover .choice-card-body {
  border-color: #bfdbfe;
  background: var(--blue-50);
}

.choice-card input:checked + .choice-card-body {
  border-color: var(--blue-500);
  background: var(--blue-50);
  box-shadow: inset 4px 0 0 var(--blue-600);
}

.conditional-panel {
  margin-top: 20px;
  padding: 20px;
  border-radius: 15px;
  background: var(--page);
  border: 1px solid var(--border);
}

.conditional-panel[hidden],
.path-block[hidden] {
  display: none !important;
}

.path-block {
  margin: 30px 0;
}

.path-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 2px 16px;
  padding: 13px 16px;
  border-radius: 14px;
  border: 1px solid #c7d2fe;
  background: linear-gradient(90deg, #f8fbff, #ffffff);
}

.path-banner > span {
  flex: 0 0 auto;
  background: var(--blue-600);
  color: white;
  border-radius: 8px;
  padding: 6px 8px;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .1em;
}

.path-banner strong,
.path-banner small {
  display: block;
}

.path-banner small {
  margin-top: 2px;
  color: var(--muted);
}

.pill-options,
.inline-options {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.pill-options label,
.inline-options label,
.checkbox-grid label {
  margin: 0;
  cursor: pointer;
}

.pill-options input,
.inline-options input,
.checkbox-grid input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pill-options span,
.inline-options span {
  display: block;
  padding: 10px 13px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: white;
  color: var(--text-2);
  font-size: .8rem;
  font-weight: 600;
}

.pill-options input:checked + span,
.inline-options input:checked + span {
  color: var(--blue-700);
  border-color: #93c5fd;
  background: var(--blue-50);
}

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

.checkbox-grid span {
  display: flex;
  min-height: 46px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: white;
  color: var(--text-2);
  font-size: .8rem;
  font-weight: 600;
  transition: .15s ease;
}

.checkbox-grid label:hover span {
  background: var(--page);
}

.checkbox-grid input:checked + span {
  border-color: #93c5fd;
  background: var(--blue-50);
  color: var(--blue-700);
  box-shadow: inset 3px 0 0 var(--blue-600);
}

.details-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin-top: 10px;
}

.details-card summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 17px;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}

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

.details-card summary span {
  font-size: .72rem;
  color: var(--muted);
  background: var(--page);
  border-radius: 999px;
  padding: 5px 8px;
}

.details-content {
  padding: 18px;
  border-top: 1px solid var(--border);
}

.prompt-box {
  padding: 17px;
  border-radius: 14px;
  background: var(--page);
  border: 1px solid var(--border);
  margin-bottom: 18px;
}

.prompt-box strong {
  font-size: .82rem;
}

.prompt-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.prompt-tags span {
  padding: 6px 9px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: .74rem;
  color: var(--muted);
}

.problem-list,
.role-list {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
}

.repeat-card {
  border: 1px solid var(--border);
  background: #fcfdff;
  border-radius: 15px;
  padding: 18px;
}

.repeat-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.repeat-card-head h3 {
  margin: 2px 0 0;
  font-size: 1rem;
}

.mini-label {
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .11em;
  color: var(--blue-700);
}

.icon-button {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: white;
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1;
}

.icon-button:hover {
  color: var(--error);
  border-color: #fecaca;
  background: #fff7f7;
}

.priority-question {
  margin-top: 25px;
  padding: 20px;
  border-radius: 15px;
  background: var(--orange-50);
  border: 1px solid #fed7aa;
}

.priority-question label {
  font-size: 1rem;
  line-height: 1.5;
}

.priority-label {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--orange-700);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

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

.priority-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  background: var(--page);
}

.priority-card strong,
.priority-card small {
  display: block;
}

.priority-card strong {
  margin-bottom: 3px;
}

.priority-card small {
  color: var(--muted);
  font-size: .75rem;
  min-height: 36px;
}

.priority-card textarea {
  margin-top: 12px;
  background: white;
  min-height: 140px;
}

.priority-card.essential {
  border-top: 3px solid var(--error);
}

.priority-card.important {
  border-top: 3px solid var(--warning);
}

.priority-card.future {
  border-top: 3px solid var(--blue-500);
}

.upload-placeholder {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  border-radius: 14px;
  border: 1px dashed #cbd5e1;
  background: var(--page);
  color: var(--text-2);
}

.upload-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 12px;
  background: white;
  border: 1px solid var(--border);
  color: var(--blue-600);
  font-size: 1.2rem;
  font-weight: 700;
}

.upload-placeholder strong,
.upload-placeholder p,
.upload-placeholder small {
  display: block;
}

.upload-placeholder p {
  margin: 2px 0;
  font-size: .82rem;
}

.upload-placeholder small {
  color: var(--muted);
}

.review-section {
  margin-top: 32px;
  padding: 28px 30px;
  border-radius: var(--radius-lg);
  background: var(--text);
  color: white;
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: center;
}

.review-section h2 {
  margin: 0;
  font-size: 1.45rem;
}

.review-section p {
  margin: 7px 0 0;
  color: #cbd5e1;
  max-width: 600px;
  font-size: .88rem;
}

.review-section .eyebrow {
  color: #8cc4ff;
}

.review-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 180px;
}

.review-section .btn-secondary {
  border-color: #334155;
  color: white;
  background: #1e293b;
}

.review-section .btn-secondary:hover {
  background: #334155;
}

.form-status {
  margin-top: 16px;
  min-height: 24px;
  color: var(--muted);
  font-size: .84rem;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 100;
  max-width: 360px;
  padding: 13px 16px;
  background: var(--text);
  color: white;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(15,23,42,.22);
  font-size: .84rem;
  transform: translateY(120px);
  opacity: 0;
  pointer-events: none;
  transition: .25s ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

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

@media (max-width: 1050px) {
  :root {
    --sidebar-width: 240px;
  }

  .main {
    padding: 48px 34px 80px;
  }

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

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

@media (max-width: 820px) {
  .sidebar {
    position: sticky;
    top: 0;
    width: 100%;
    height: auto;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(12px);
  }

  .brand small,
  .progress-card small,
  .section-nav,
  .sidebar-footer .text-button {
    display: none;
  }

  .progress-card {
    margin-left: auto;
    width: 130px;
    padding: 10px;
  }

  .sidebar-footer {
    margin: 0;
  }

  .sidebar-footer .btn {
    width: auto;
    white-space: nowrap;
    padding: 10px 12px;
  }

  .main {
    width: 100%;
    margin-left: 0;
    padding: 38px 18px 70px;
  }

  .hero {
    margin-bottom: 28px;
  }

  .form-section {
    padding: 24px 20px;
  }

  .two-col,
  .three-col {
    grid-template-columns: 1fr;
    gap: 0;
  }

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

  .review-actions {
    flex-direction: row;
  }

  .review-actions .btn {
    flex: 1;
  }
}

@media (max-width: 560px) {
  .brand strong {
    font-size: .9rem;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .progress-card {
    width: 102px;
  }

  .progress-meta span {
    display: none;
  }

  .sidebar-footer .btn {
    font-size: .78rem;
  }

  .hero h1 {
    font-size: 2.45rem;
  }

  .hero-note {
    align-items: flex-start;
  }

  .section-heading {
    gap: 12px;
  }

  .section-number {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .section-heading h2 {
    font-size: 1.25rem;
  }

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

  .form-section {
    padding: 22px 16px;
    border-radius: 17px;
  }

  .review-actions {
    flex-direction: column;
  }

  .toast {
    left: 14px;
    right: 14px;
    bottom: 14px;
  }
}

/* Questionnaire section illustrations */
.section-heading.has-visual {
  align-items: center;
}

.section-heading.has-visual > div:not([role="img"]) {
  flex: 1 1 auto;
  min-width: 0;
}

.section-illustration,
.section-illustration-crop {
  width: 118px;
  height: 118px;
  flex: 0 0 118px;
  margin-left: auto;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .05);
}

.section-illustration {
  object-fit: contain;
  padding: 5px;
}

.section-illustration-crop {
  background-repeat: no-repeat;
  overflow: hidden;
}

/* Image 11 is a 2x2 contact sheet. Show its top-right questionnaire/submission tile. */
.q11-additional {
  background-image: url("assets/questions/11.png");
  background-size: 200% 200%;
  background-position: 100% 0%;
}

.subsection-visual-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 30px 0 14px;
}

.subsection-visual-row .subheading {
  margin: 0;
}

.subsection-illustration {
  width: 82px;
  height: 82px;
  flex: 0 0 82px;
  object-fit: contain;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
}

.conditional-with-visual {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.conditional-with-visual .field {
  margin-bottom: 0;
}

.conditional-illustration {
  width: 118px;
  height: 118px;
  object-fit: contain;
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
}

@media (max-width: 820px) {
  .section-illustration,
  .section-illustration-crop {
    width: 102px;
    height: 102px;
    flex-basis: 102px;
  }
}

@media (max-width: 560px) {
  .section-heading.has-visual {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    align-items: start;
  }

  .section-heading.has-visual .section-number {
    grid-column: 1;
    grid-row: 1;
  }

  .section-heading.has-visual > div:not([role="img"]) {
    grid-column: 2;
    grid-row: 1;
  }

  .section-heading.has-visual .section-illustration,
  .section-heading.has-visual .section-illustration-crop {
    grid-column: 2;
    grid-row: 2;
    width: min(180px, 100%);
    height: 132px;
    margin: 12px 0 0;
    justify-self: start;
  }

  .subsection-illustration {
    width: 70px;
    height: 70px;
    flex-basis: 70px;
  }

  .conditional-with-visual {
    grid-template-columns: 1fr;
  }

  .conditional-illustration {
    width: 120px;
    height: 120px;
  }
}


/* =========================================================
   OPTIACT SITE-CONSISTENCY LAYER — 2026-09-20
   Mirrors the current site's editorial grid language:
   Manrope typography, warm paper surfaces, fine rules,
   square cards, restrained blue and orange accents.
   ========================================================= */
:root {
  --blue-50: #eaf1f5;
  --blue-100: #d9e7ef;
  --blue-500: #1a6090;
  --blue-600: #1a6090;
  --blue-700: #144d74;
  --orange-50: #f7ecda;
  --orange-500: #d18903;
  --orange-700: #9a6402;
  --white: #ffffff;
  --page: #fbfaf7;
  --panel: #f7f5f0;
  --border: #e4e6e8;
  --border-strong: #cfd5da;
  --text: #101827;
  --text-2: #5f6b7a;
  --muted: #758091;
  --placeholder: #9aa3ad;
  --success: #2f7d4a;
  --error: #b54747;
  --warning: #b7791f;
  --radius-sm: 0px;
  --radius: 2px;
  --radius-lg: 4px;
  --shadow: none;
  --sidebar-width: 286px;
  --editorial-grid: rgba(16, 24, 39, 0.035);
}

body {
  font-family: "Manrope", Arial, sans-serif;
  color: var(--text);
  background-color: var(--page);
  background-image:
    linear-gradient(var(--editorial-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--editorial-grid) 1px, transparent 1px);
  background-size: 56px 56px;
  line-height: 1.6;
}

.page-shell {
  background: transparent;
}

/* Sidebar: adapted from the site's quiet horizontal navigation. */
.sidebar {
  gap: 22px;
  padding: 30px 22px 24px;
  background: rgba(251, 250, 247, 0.97);
  border-right: 1px solid var(--border);
  box-shadow: none;
  backdrop-filter: blur(10px);
}

.brand {
  gap: 11px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 0;
  background: var(--blue-600);
  font-size: 1.05rem;
  font-weight: 800;
}

.brand strong {
  font-size: .96rem;
  font-weight: 750;
  letter-spacing: -.02em;
}

.brand small {
  color: var(--muted);
  font-size: .72rem;
}

.progress-card {
  position: relative;
  padding: 16px 0 14px;
  border: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
}

.progress-meta {
  margin-bottom: 9px;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 600;
}

.progress-meta strong {
  color: var(--text);
  font-weight: 700;
}

.progress-track {
  height: 2px;
  border-radius: 0;
  background: var(--border-strong);
}

.progress-fill {
  border-radius: 0;
  background: var(--orange-500);
}

.progress-card small {
  margin-top: 11px;
  color: var(--muted);
  font-size: .69rem;
  line-height: 1.5;
}

.section-nav {
  gap: 0;
}

.section-nav a {
  min-height: 38px;
  padding: 10px 2px;
  border-bottom: 1px solid rgba(228, 230, 232, .72);
  border-radius: 0;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 600;
}

.section-nav a::before {
  width: 5px;
  height: 5px;
  border: 1px solid var(--border-strong);
  border-radius: 0;
}

.section-nav a:hover,
.section-nav a.active {
  background: transparent;
  color: var(--text);
  box-shadow: inset 2px 0 0 var(--blue-600);
}

.section-nav a.active::before {
  border-color: var(--blue-600);
  background: var(--blue-600);
}

.section-nav a.complete::before {
  border-color: var(--success);
  background: var(--success);
}

/* Buttons match the site's square CTA treatment. */
.btn {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 0;
  font-size: .84rem;
  font-weight: 700;
  box-shadow: none;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.btn:hover {
  transform: none;
}

.btn-primary {
  border: 1px solid var(--blue-600);
  background: var(--blue-600);
  color: #fff;
  box-shadow: none;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  border-color: var(--text);
  background: var(--text);
  color: #fff;
}

.btn-secondary {
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: var(--text);
  background: transparent;
  color: var(--text);
}

.text-button {
  color: var(--muted);
  font-size: .77rem;
}

/* Main editorial rhythm. */
.main {
  width: min(1040px, calc(100% - var(--sidebar-width)));
  padding: 82px 64px 110px;
}

.hero {
  max-width: 900px;
  margin-bottom: 54px;
}

.eyebrow {
  margin-bottom: 16px;
  color: var(--orange-500);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .16em;
}

.hero h1 {
  max-width: 15ch;
  color: var(--text);
  font-size: clamp(3rem, 6vw, 5.6rem);
  font-weight: 700;
  line-height: .98;
  letter-spacing: -.05em;
}

.hero > p {
  max-width: 720px;
  margin: 24px 0;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.72;
}

.hero-note {
  position: relative;
  max-width: 760px;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 0;
  background: rgba(255, 255, 255, .84);
  color: var(--muted);
}

.hero-note::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 20px;
  width: 54px;
  height: 2px;
  background: var(--orange-500);
}

.note-icon {
  width: 22px;
  height: 22px;
  border: 1px solid var(--border-strong);
  border-radius: 0;
  background: var(--panel);
  color: var(--blue-600);
}

/* Questionnaire sections now use the site's flat white-card language. */
.form-section {
  position: relative;
  padding: 36px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
  border-radius: 0;
  background: rgba(255, 255, 255, .92);
  box-shadow: none;
}

.form-section::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 36px;
  width: 54px;
  height: 2px;
  background: var(--blue-600);
}

.section-heading {
  gap: 18px;
  margin-bottom: 30px;
}

.section-number {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 0;
  background: var(--panel);
  color: var(--blue-600);
  font-size: .75rem;
  font-weight: 800;
}

.common-number {
  background: var(--panel);
  color: var(--blue-600);
}

.section-heading h2 {
  margin: 0 0 6px;
  color: var(--text);
  font-size: clamp(1.5rem, 2.2vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -.04em;
}

.section-heading p {
  max-width: 650px;
  color: var(--muted);
  line-height: 1.6;
}

.subheading {
  margin: 34px 0 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  color: var(--orange-500);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .15em;
}

label,
.label {
  color: var(--text);
  font-size: .82rem;
  font-weight: 650;
}

.optional {
  color: var(--muted);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="date"],
select,
textarea {
  min-height: 46px;
  border: 1px solid var(--border-strong);
  border-radius: 0;
  background: rgba(255, 255, 255, .95);
  color: var(--text);
  padding: 12px 14px;
}

textarea {
  min-height: 118px;
  line-height: 1.65;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 2px rgba(26, 96, 144, .10);
}

input.invalid,
select.invalid,
textarea.invalid {
  border-color: var(--error);
  background: #fffafa;
}

/* Option cards / pills use thin rules and flat selection states. */
.choice-grid {
  gap: 0;
  border-top: 1px solid var(--border);
}

.choice-card-body {
  position: relative;
  padding: 17px 18px 17px 22px;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
}

.choice-card-body::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 7px;
  height: 7px;
  border: 1px solid var(--border-strong);
  background: transparent;
}

.choice-card:hover .choice-card-body {
  border-color: var(--border);
  background: var(--panel);
}

.choice-card input:checked + .choice-card-body {
  border-color: var(--border);
  background: var(--blue-50);
  box-shadow: inset 2px 0 0 var(--blue-600);
}

.choice-card input:checked + .choice-card-body::before {
  border-color: var(--blue-600);
  background: var(--blue-600);
}

.choice-card-body strong {
  font-size: .88rem;
  font-weight: 700;
}

.choice-card-body small {
  color: var(--muted);
}

.conditional-panel {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 0;
  background: var(--panel);
}

.path-banner {
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--orange-500);
  border-radius: 0;
  background: rgba(255, 255, 255, .86);
}

.path-banner > span {
  color: var(--orange-500);
  font-size: .68rem;
  letter-spacing: .14em;
}

.pill-options,
.inline-options {
  gap: 8px;
}

.pill-options span,
.inline-options span,
.checkbox-grid span {
  border: 1px solid var(--border-strong);
  border-radius: 0;
  background: #fff;
  color: var(--text-2);
  font-size: .78rem;
  font-weight: 600;
  box-shadow: none;
}

.pill-options label:hover span,
.inline-options label:hover span,
.checkbox-grid label:hover span {
  border-color: var(--blue-600);
  background: var(--blue-50);
}

.pill-options input:checked + span,
.inline-options input:checked + span,
.checkbox-grid input:checked + span {
  border-color: var(--blue-600);
  background: var(--blue-50);
  color: var(--text);
  box-shadow: inset 2px 0 0 var(--blue-600);
}

.details-card,
.repeat-card,
.priority-card,
.upload-placeholder {
  border: 1px solid var(--border);
  border-radius: 0;
  background: rgba(255, 255, 255, .88);
  box-shadow: none;
}

.details-card summary {
  color: var(--text);
}

.prompt-box {
  border: 1px solid var(--border);
  border-radius: 0;
  background: var(--panel);
  color: var(--muted);
}

.prompt-tags span {
  border: 1px solid var(--border);
  border-radius: 0;
  background: #fff;
  color: var(--muted);
}

.repeat-card {
  padding: 20px;
}

.mini-label {
  color: var(--orange-500);
  letter-spacing: .14em;
}

.icon-button {
  border: 1px solid var(--border-strong);
  border-radius: 0;
  background: transparent;
  color: var(--muted);
}

.icon-button:hover,
.icon-button:focus-visible {
  border-color: var(--error);
  background: transparent;
  color: var(--error);
}

.priority-card.essential,
.priority-card.important,
.priority-card.future {
  border-top-width: 1px;
}

.priority-card.essential { box-shadow: inset 0 2px 0 var(--error); }
.priority-card.important { box-shadow: inset 0 2px 0 var(--orange-500); }
.priority-card.future { box-shadow: inset 0 2px 0 var(--blue-600); }

/* Images are treated like editorial assets instead of floating tiles. */
.section-illustration,
.section-illustration-crop,
.subsection-illustration,
.conditional-illustration {
  border: 1px solid var(--border);
  border-radius: 0;
  background: var(--panel);
  image-rendering: pixelated;
  box-shadow: none;
}

.subsection-visual-row {
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

/* Review / submit becomes a light editorial CTA, like the site final CTA. */
.review-section {
  position: relative;
  gap: 28px;
  padding: 38px 36px;
  border: 1px solid var(--border);
  border-radius: 0;
  background: #fff;
  color: var(--text);
  box-shadow: none;
}

.review-section::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 36px;
  width: 54px;
  height: 2px;
  background: var(--orange-500);
}

.review-section h2 {
  color: var(--text);
  font-size: clamp(1.7rem, 2.7vw, 2.35rem);
  letter-spacing: -.04em;
}

.review-section p {
  color: var(--muted);
  line-height: 1.65;
}

.review-section .eyebrow {
  color: var(--orange-500);
}

.review-section .btn-secondary {
  border-color: var(--border-strong);
  background: transparent;
  color: var(--text);
}

.form-status {
  color: var(--muted);
}

.toast {
  border: 1px solid var(--border-strong);
  border-radius: 0;
  background: var(--text);
  color: #fff;
  box-shadow: none;
}

@media (max-width: 1080px) {
  :root {
    --sidebar-width: 244px;
  }

  .main {
    padding: 64px 38px 92px;
  }
}

@media (max-width: 820px) {
  body {
    background-size: 42px 42px;
  }

  .sidebar {
    background: rgba(251, 250, 247, .98);
    border-bottom: 1px solid var(--border);
  }

  .progress-card {
    width: 132px;
    padding: 10px 0;
    border-top: 0;
    border-bottom: 0;
  }

  .sidebar-footer .btn {
    min-height: 40px;
  }

  .main {
    padding: 52px 20px 78px;
  }

  .hero {
    margin-bottom: 38px;
  }

  .hero h1 {
    font-size: clamp(2.75rem, 11vw, 4.2rem);
  }

  .form-section {
    padding: 28px 22px;
  }

  .form-section::before {
    left: 22px;
  }

  .review-section {
    padding: 30px 24px;
  }

  .review-section::before {
    left: 24px;
  }
}

@media (max-width: 560px) {
  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .hero h1 {
    font-size: clamp(2.45rem, 13vw, 3.55rem);
  }

  .hero > p {
    font-size: .96rem;
  }

  .form-section {
    padding: 24px 16px;
    border-radius: 0;
  }

  .form-section::before {
    left: 16px;
  }

  .section-number {
    width: 34px;
    height: 34px;
    border-radius: 0;
  }

  .section-heading h2 {
    font-size: 1.35rem;
  }

  .section-illustration,
  .section-illustration-crop {
    width: 72px;
    height: 72px;
    flex-basis: 72px;
  }

  .review-section {
    padding: 28px 18px;
  }

  .review-section::before {
    left: 18px;
  }
}

/* =========================================================
   MOBILE ADAPTATION PATCH — 2026-09-20
   Keeps the questionnaire usable from small phones upward.
   ========================================================= */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

img,
svg,
video,
canvas {
  max-width: 100%;
}

.form-section,
.review-section,
.conditional-panel,
.repeat-card,
.details-card,
.prompt-box,
.priority-card,
.upload-placeholder,
.section-heading,
.section-heading > div,
.field,
fieldset {
  min-width: 0;
}

@media (max-width: 820px) {
  .sidebar {
    position: sticky;
    inset: auto;
    top: 0;
    width: 100%;
    height: auto;
    display: grid;
    grid-template-columns: auto minmax(96px, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    z-index: 50;
  }

  .brand {
    min-width: 0;
  }

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

  .brand strong {
    white-space: nowrap;
  }

  .progress-card {
    width: auto;
    min-width: 96px;
    max-width: 190px;
    margin: 0;
  }

  .sidebar-footer {
    display: flex;
    align-items: center;
    margin: 0;
  }

  .sidebar-footer .btn {
    width: auto;
    white-space: nowrap;
  }

  .main {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    padding: 42px 18px 72px;
  }

  .hero {
    max-width: 100%;
  }

  .hero h1 {
    max-width: 13ch;
  }

  .two-col,
  .three-col,
  .priority-columns {
    grid-template-columns: 1fr;
  }

  .two-col,
  .three-col {
    gap: 0;
  }

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

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

  .review-actions {
    width: 100%;
    flex-direction: row;
  }

  .review-actions .btn {
    flex: 1 1 auto;
  }
}

@media (max-width: 560px) {
  body {
    background-size: 34px 34px;
  }

  .sidebar {
    grid-template-columns: auto minmax(72px, 1fr) auto;
    gap: 8px;
    padding: 8px 10px;
  }

  .brand {
    gap: 8px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
  }

  .brand strong {
    font-size: .82rem;
  }

  .progress-card {
    min-width: 72px;
    max-width: none;
    padding: 7px 0;
  }

  .progress-meta {
    margin-bottom: 6px;
    font-size: .69rem;
  }

  .progress-card small,
  .progress-meta span {
    display: none;
  }

  .sidebar-footer .btn {
    min-height: 36px;
    padding: 0 10px;
    font-size: .72rem;
  }

  .main {
    padding: 30px 12px 64px;
  }

  .hero {
    margin-bottom: 30px;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(2.15rem, 12vw, 3.2rem);
    line-height: 1.02;
  }

  .hero > p {
    margin: 18px 0;
    font-size: .94rem;
    line-height: 1.65;
  }

  .hero-note {
    padding: 15px 14px;
  }

  .form-section {
    width: 100%;
    padding: 22px 14px;
  }

  .form-section::before {
    left: 14px;
  }

  .section-heading {
    gap: 11px;
    margin-bottom: 24px;
  }

  .section-heading.has-visual {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px 12px;
  }

  .section-heading.has-visual .section-number {
    width: 34px;
    height: 34px;
  }

  .section-heading.has-visual .section-illustration,
  .section-heading.has-visual .section-illustration-crop {
    width: min(132px, 100%);
    height: auto;
    aspect-ratio: 1 / 1;
    margin: 6px 0 0;
  }

  .section-heading h2 {
    font-size: 1.28rem;
    line-height: 1.18;
  }

  .section-heading p {
    font-size: .84rem;
  }

  .subsection-visual-row {
    align-items: flex-start;
    gap: 10px;
  }

  .subsection-illustration {
    width: 62px;
    height: 62px;
    flex-basis: 62px;
  }

  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="url"],
  input[type="number"],
  input[type="date"],
  select,
  textarea {
    width: 100%;
    max-width: 100%;
    font-size: 16px; /* prevents iOS focus zoom */
  }

  .choice-card-body {
    padding: 15px 12px 15px 20px;
  }

  .choice-card-body strong {
    font-size: .84rem;
    line-height: 1.35;
  }

  .choice-card-body small {
    font-size: .76rem;
  }

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

  .pill-options,
  .inline-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .pill-options label,
  .inline-options label {
    min-width: 0;
  }

  .pill-options span,
  .inline-options span {
    height: 100%;
    text-align: center;
  }

  .path-banner {
    align-items: flex-start;
    padding: 14px;
  }

  .prompt-tags {
    gap: 6px;
  }

  .prompt-tags span {
    font-size: .7rem;
  }

  .repeat-card {
    padding: 16px 13px;
  }

  .repeat-card-head {
    align-items: flex-start;
  }

  .conditional-panel {
    padding: 16px 13px;
  }

  .review-section {
    gap: 20px;
    padding: 26px 16px;
  }

  .review-section::before {
    left: 16px;
  }

  .review-section h2 {
    font-size: 1.55rem;
  }

  .review-actions,
  .review-actions .btn {
    width: 100%;
  }

  .toast {
    left: 10px;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    max-width: none;
  }
}

@media (max-width: 390px) {
  .sidebar {
    grid-template-columns: 34px minmax(64px, 1fr) auto;
  }

  .brand > span:last-child {
    display: none;
  }

  .sidebar-footer .btn {
    padding-inline: 8px;
    font-size: .68rem;
  }

  .main {
    padding-inline: 9px;
  }

  .form-section {
    padding-inline: 12px;
  }

  .form-section::before {
    left: 12px;
  }

  .pill-options,
  .inline-options {
    grid-template-columns: 1fr;
  }

  .section-heading.has-visual .section-illustration,
  .section-heading.has-visual .section-illustration-crop {
    width: 112px;
  }
}

/* =========================================================
   SHARED OPTIACT SITE HEADER + QUESTIONNAIRE LOGO
   Mirrors the primary navigation used on index.html.
   ========================================================= */
:root {
  --site-nav-height: 76px;
  --site-brand-blue: #3f97ff;
  --site-brand-blue-dark: #07528d;
  --site-brand-orange: #ff5a1f;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 1100;
  min-height: var(--site-nav-height);
  padding: 0 clamp(24px, 2.2vw, 42px);
  background: #f4f5f7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(22px, 3vw, 52px);
  border-bottom: 4px solid #ffffff;
  box-shadow: 0 1px 0 rgba(7, 82, 141, 0.06);
  color: var(--site-brand-blue-dark);
  font-family: "Manrope", "Inter", Arial, sans-serif;
  overflow: visible;
}

.site-nav a {
  text-decoration: none;
}

.site-nav .nav-primary {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 54px);
}

.site-nav .brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 9px;
}

.site-nav .brand .site-brand-symbol {
  display: block;
  width: 70px;
  max-width: none;
  max-height: none;
  height: auto;
  object-fit: contain;
  border-radius: 0;
  flex: 0 0 auto;
}

.site-nav .site-brand-name {
  color: #0f172a;
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.035em;
  white-space: nowrap;
}

.site-nav .nav-tabs {
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-nav .nav-tab {
  min-width: 96px;
  min-height: 40px;
  padding: 9px 16px;
  border: 1.5px solid var(--site-brand-blue);
  border-radius: 7px;
  background: #ffffff;
  color: #1882e8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .94rem;
  font-weight: 700;
  line-height: 1;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.site-nav .nav-tab:hover,
.site-nav .nav-tab:focus-visible {
  background: #eaf4ff;
  transform: translateY(-1px);
}

.site-nav .nav-utilities {
  margin-left: auto;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
}

.site-nav .nav-utility {
  min-width: 48px;
  padding: 10px 0 8px;
  color: var(--site-brand-blue-dark);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: .88rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: color 160ms ease, transform 160ms ease;
}

.site-nav .nav-utility:hover,
.site-nav .nav-utility:focus-visible {
  color: #1882e8;
  transform: translateY(-1px);
}

.site-nav .nav-icon {
  display: block;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  object-fit: contain;
  border-radius: 0;
  filter: brightness(0) saturate(100%);
}

.site-nav .nav-project-cta {
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--site-brand-orange);
  color: #111111;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .86rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.site-nav .nav-project-cta:hover,
.site-nav .nav-project-cta:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(255, 90, 31, .23);
}

.site-nav .mobile-site-menu {
  display: none;
  position: relative;
  flex: 0 0 auto;
}

.site-nav .mobile-site-menu summary {
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #ffffff;
  display: grid;
  place-items: center;
  cursor: pointer;
  list-style: none;
}

.site-nav .mobile-site-menu summary::-webkit-details-marker {
  display: none;
}

.site-nav .mobile-site-menu summary > span:first-child {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.site-nav .mobile-site-menu__icon,
.site-nav .mobile-site-menu__icon::before,
.site-nav .mobile-site-menu__icon::after {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
  display: block;
  content: "";
  transition: transform 160ms ease;
}

.site-nav .mobile-site-menu__icon {
  position: relative;
}

.site-nav .mobile-site-menu__icon::before {
  position: absolute;
  transform: translateY(-6px);
}

.site-nav .mobile-site-menu__icon::after {
  position: absolute;
  transform: translateY(6px);
}

.site-nav .mobile-site-menu[open] .mobile-site-menu__icon {
  background: transparent;
}

.site-nav .mobile-site-menu[open] .mobile-site-menu__icon::before {
  transform: rotate(45deg);
}

.site-nav .mobile-site-menu[open] .mobile-site-menu__icon::after {
  transform: rotate(-45deg);
}

.site-nav .mobile-site-menu__panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(82vw, 320px);
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 22px 50px rgba(16, 47, 69, .18);
  display: grid;
  gap: 3px;
}

.site-nav .mobile-site-menu__panel a {
  min-height: 44px;
  padding: 11px 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  color: var(--text);
  font-size: .92rem;
  font-weight: 800;
}

.site-nav .mobile-site-menu__panel a:hover,
.site-nav .mobile-site-menu__panel a:focus-visible {
  background: var(--blue-50);
  color: var(--blue-700);
}

.site-nav .scroll-progress {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 4px;
  overflow: hidden;
  background: rgba(7, 82, 141, .14);
  pointer-events: none;
}

.site-nav .scroll-progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--site-brand-orange);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

/* The questionnaire keeps its own section navigation, now below the site header. */
.questionnaire-page .sidebar {
  top: var(--site-nav-height);
  bottom: 0;
  height: calc(100vh - var(--site-nav-height));
}

.questionnaire-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.questionnaire-brand-logo {
  display: block;
  width: 72px;
  max-width: none;
  max-height: none;
  height: auto;
  object-fit: contain;
  object-position: left center;
  border-radius: 0;
  flex: 0 0 auto;
}

.questionnaire-brand-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.questionnaire-brand-copy strong {
  color: var(--text);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.025em;
}

.questionnaire-brand small {
  color: var(--muted);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.15;
  text-transform: uppercase;
}

@media (max-width: 980px) {
  .site-nav {
    min-height: 68px;
    padding: 10px 16px;
    gap: 12px;
  }

  .site-nav .nav-tabs,
  .site-nav .nav-utilities {
    display: none;
  }

  .site-nav .nav-primary {
    flex: 1 1 auto;
    gap: 0;
  }

  .site-nav .brand .site-brand-symbol {
    width: 64px;
  }

  .site-nav .site-brand-name {
    font-size: 1.08rem;
  }

  .site-nav .nav-project-cta {
    min-height: 40px;
    padding: 9px 13px;
    font-size: .8rem;
  }

  .site-nav .mobile-site-menu {
    display: block;
  }

  .questionnaire-page .sidebar {
    top: 68px;
    height: auto;
  }
}

@media (max-width: 820px) {
  .questionnaire-page .sidebar {
    position: sticky;
    top: 68px;
    bottom: auto;
    width: 100%;
    height: auto;
  }

  .questionnaire-brand {
    min-width: 132px;
    gap: 8px;
  }

  .questionnaire-brand-logo {
    width: 58px;
  }

  .questionnaire-brand-copy strong {
    font-size: .88rem;
  }

  .questionnaire-brand small {
    font-size: .55rem;
    letter-spacing: .05em;
  }
}

@media (max-width: 560px) {
  .site-nav {
    min-height: 62px;
    padding: 8px 10px;
  }

  .site-nav .brand {
    gap: 7px;
  }

  .site-nav .brand .site-brand-symbol {
    width: 56px;
  }

  .site-nav .site-brand-name {
    font-size: 1rem;
  }

  .site-nav .nav-project-cta {
    min-height: 38px;
    padding: 8px 10px;
    font-size: .74rem;
  }

  .site-nav .mobile-site-menu summary {
    width: 38px;
    height: 38px;
  }

  .questionnaire-page .sidebar {
    top: 62px;
  }

  .questionnaire-brand-logo {
    width: 52px;
  }

  .questionnaire-brand small {
    display: none;
  }
}

@media (max-width: 390px) {
  .site-nav .nav-project-cta {
    display: none;
  }

  .site-nav .brand .site-brand-symbol {
    width: 52px;
  }

  .site-nav .site-brand-name {
    font-size: .95rem;
  }

  .questionnaire-brand-logo {
    width: 48px;
  }
}

