/* Compact pathway strip — above search, collapsed by default */
.pathway-strip {
  width: min(100%, 36rem);
  margin: 0 auto 0.35rem;
  padding: 0 0.25rem;
}
.pathway-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.82rem;
  opacity: 0.75;
  cursor: pointer;
  padding: 0.15rem 0;
}
.pathway-toggle:hover { opacity: 1; }
.pathway-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.35rem;
  max-height: 5.5rem;
  overflow: auto;
}
.pathway-card {
  border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
  background: color-mix(in srgb, currentColor 4%, transparent);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  font-size: 0.78rem;
  cursor: pointer;
  max-width: 100%;
}
.pathway-card-title {
  display: inline-block;
  max-width: 14rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Full-screen pathway / démarche — L’Affiche paper, same as themes/refine */
.pathway-overlay[hidden] { display: none !important; }
.pathway-overlay {
  position: fixed;
  inset: 0;
  /* Below canopy chrome (menu/flag 162, about-veil 150) so logo + menu stay usable */
  z-index: 140;
  background: var(--ground, #fdf0e8);
  color: var(--espresso, #542916);
  display: flex;
  align-items: stretch;
  justify-content: center;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  height: 100%;
  height: 100dvh;
  animation: softSettle var(--t-med, 0.45s) var(--ease, ease) both;
}
.demarche-overlay {
  background: var(--ground, #fdf0e8);
  color: var(--espresso, #542916);
}
body.has-demarche-overlay,
body.has-pathway-overlay,
body.has-form-fill-overlay {
  overflow: hidden;
}
/* SOS only — canopy wordmark + menu (+ flag) stay on every demarche/form surface */
body.has-demarche-overlay .sos,
body.has-pathway-overlay .sos,
body.has-form-fill-overlay .sos {
  visibility: hidden !important;
  pointer-events: none !important;
}
body.has-demarche-overlay .menu-toggle-fixed,
body.has-pathway-overlay .menu-toggle-fixed,
body.has-form-fill-overlay .menu-toggle-fixed,
body.has-demarche-overlay .flag-fab,
body.has-pathway-overlay .flag-fab,
body.has-form-fill-overlay .flag-fab {
  visibility: visible !important;
  pointer-events: auto !important;
  z-index: 162;
}
.pathway-overlay-inner {
  width: min(100%, 34rem);
  max-width: 100%;
  margin: 0 auto;
  min-height: 100%;
  min-height: 100dvh;
  box-sizing: border-box;
  padding:
    calc(var(--chrome-top, max(env(safe-area-inset-top, 0px), 0.65rem)) + var(--chrome-btn, 2.5rem) + 0.35rem)
    max(env(safe-area-inset-right, 0px), clamp(1.1rem, 4vw, 1.75rem))
    max(env(safe-area-inset-bottom, 0px), 2.5rem)
    max(env(safe-area-inset-left, 0px), clamp(1.1rem, 4vw, 1.75rem));
}
.pathway-overlay-bar {
  display: flex;
  align-items: center;
  margin-bottom: clamp(1.4rem, 4vw, 2.2rem);
  padding-left: 0;
}
.pathway-overlay-bar .pill-btn {
  min-height: 2.5rem;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* Live pathway questions — same ask chrome as forms/demarches */
.pathway-live.form-wizard--chat {
  margin-top: 0;
}
.pathway-live .demarche-ask {
  margin-top: 1.15rem;
}
.pathway-live .demarche-ask-opt {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}
.pathway-live .demarche-ask-opt em {
  font-style: normal;
  font-weight: 500;
  font-size: var(--fs-small, 0.9rem);
  color: var(--espresso-60, rgba(84, 41, 22, 0.65));
  line-height: 1.4;
}
.pathway-live .pathway-acts {
  padding-left: 1.1rem;
  margin: 0.75rem 0 0;
}
.pathway-live .pathway-res {
  border: 0;
  background: none;
  color: var(--terre, #a13a1e);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  padding: 0.2rem 0;
}
.pathway-kicker,
.demarche-focus-head .pathway-kicker {
  font-family: 'Outfit', 'Familjen Grotesk', sans-serif;
  font-size: var(--fs-tiny, 0.72rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--espresso-60, rgba(84, 41, 22, 0.55));
  margin: 0 0 0.55rem;
}
.pathway-title {
  font-family: 'Familjen Grotesk', system-ui, sans-serif;
  font-size: var(--fs-h2, clamp(1.4rem, 2vw + .8rem, 2rem));
  line-height: 1.12;
  margin: 0 0 0.65rem;
  font-weight: 600;
}
.pathway-why {
  color: var(--espresso-60, rgba(84, 41, 22, 0.72));
  margin: 0 0 0.85rem;
  line-height: 1.45;
  max-width: 36ch;
}
.pathway-step { margin: 1rem 0; }
.pathway-step h3 {
  font-size: 0.95rem;
  margin: 0 0 0.35rem;
}
.pathway-step ul { padding-left: 1.1rem; margin: 0.35rem 0 0; }
.pathway-step-res {
  border: 0;
  background: none;
  color: var(--terre, #a13a1e);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.12em;
  cursor: pointer;
  padding: 0;
  text-align: left;
}
@media (max-width: 760px) {
  .pathway-cards { max-height: 4.2rem; }
  .pathway-card-title { max-width: 11rem; }
}

/* Phones: roomier type, full-width actions, no iOS input zoom */
@media (max-width: 720px) {
  .pathway-overlay-inner {
    padding:
      calc(var(--chrome-top, max(env(safe-area-inset-top, 0px), 0.65rem)) + var(--chrome-btn, 2.5rem) + 0.2rem)
      max(env(safe-area-inset-right, 0px), 0.9rem)
      max(env(safe-area-inset-bottom, 0px), 1.6rem)
      max(env(safe-area-inset-left, 0px), 0.9rem);
  }
  .pathway-overlay-bar { margin-bottom: 1.05rem; }
  .pathway-title,
  .demarche-step.is-focus h3,
  .form-wizard-q {
    font-size: clamp(1.35rem, 6.4vw, 1.85rem);
    max-width: none;
  }
  .pathway-why,
  .demarche-step-body,
  .demarche-eligibility,
  .form-dl-points {
    max-width: none;
  }
  .demarche-focus-head { margin-bottom: 1rem; }
  .demarche-ask { gap: 0.55rem; margin-top: 1rem; }
  .demarche-ask-opt,
  .demarche-route {
    min-height: 3rem;
    font-size: 1rem;
    padding: 0.85rem 1rem;
    gap: 0.65rem;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
  .demarche-ask-opt:hover,
  .demarche-route:hover {
    transform: none;
  }
  .form-wizard-field--solo {
    margin: 0.85rem 0 1rem;
  }
  .form-wizard-field--solo input,
  .form-wizard-field--solo textarea {
    /* 16px prevents Safari from zooming the page on focus */
    font-size: 16px;
    padding: 0.85rem 1rem;
    min-height: 3rem;
    border-radius: 0.85rem;
  }
  .form-wizard-field--solo textarea {
    min-height: 8.5rem;
    resize: vertical;
  }
  .form-wizard-field--solo input[type="date"] {
    min-height: 3.15rem;
    /* Native date control needs a little air on iOS */
    padding-right: 0.65rem;
  }
  .form-wizard-actions,
  .form-wizard-actions--sticky,
  .form-wizard-nav,
  .demarche-step.is-focus > .form-wizard-nav {
    max-width: none;
    width: 100%;
  }
  .form-wizard-actions--sticky,
  .form-wizard-nav {
    position: sticky;
    bottom: 0;
    z-index: 2;
    margin-top: 1.25rem;
    padding: 0.75rem 0 max(0.4rem, env(safe-area-inset-bottom, 0px));
    background: linear-gradient(
      to top,
      var(--ground, #fdf0e8) 62%,
      color-mix(in srgb, var(--ground, #fdf0e8) 88%, transparent) 88%,
      transparent
    );
  }
  .form-wizard-actions .form-wizard-primary,
  .form-wizard-actions .guided-btn,
  .form-wizard-nav .guided-btn,
  .demarche-step.is-focus .form-wizard-nav .guided-btn,
  .demarche-step.is-focus > .form-wizard-nav .guided-btn {
    margin-left: 0;
    width: 100%;
    max-width: none;
    min-height: 3rem;
  }
  .form-wizard-actions-meta {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem 1.1rem;
  }
  .demarche-blocked .pathway-step-res,
  .demarche-step.is-focus > .demarche-services .pathway-step-res,
  .demarche-actions a.demarche-action,
  .demarche-blocked .pill-btn,
  .demarche-reset-row .pill-btn {
    width: 100%;
    justify-content: center;
    min-height: 2.9rem;
    box-sizing: border-box;
  }
  .demarche-services,
  .demarche-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
  }
  .topic-cover img,
  .topic-figure img {
    max-height: 11rem;
  }
  .form-dl-stage { height: 8.5rem; }
  .form-g-scene { height: 10.5rem; }
  .form-g-scene--static { height: 8.25rem; }
  .form-wizard-actions,
  .form-wizard-nav { max-width: none; }
  .form-dl--google .form-g-copy .form-wizard-q,
  .form-dl--google .form-g-copy .pathway-why {
    max-width: 28ch;
  }
  .form-wizard-actions-meta {
    justify-content: center;
  }
}

@media (max-width: 380px) {
  .pathway-title,
  .demarche-step.is-focus h3,
  .form-wizard-q {
    font-size: clamp(1.25rem, 7vw, 1.55rem);
  }
  .demarche-ask-opt,
  .demarche-route {
    font-size: 0.95rem;
    padding: 0.8rem 0.9rem;
  }
}

/* Démarche / topic overlays share pathway-overlay chrome */
.demarche-routes, .topic-children {
  display: grid;
  gap: 0.7rem;
  margin: 0.85rem 0 1.25rem;
}
.demarche-route {
  display: grid;
  gap: 0.25rem;
  text-align: left;
  border: var(--line-soft, 1.5px solid var(--espresso, #542916));
  background: var(--surface, var(--milk, #fefaf0));
  color: inherit;
  font: inherit;
  padding: 0.9rem 1.15rem;
  cursor: pointer;
  border-radius: var(--radius-card, 0.9rem);
  box-shadow: var(--shadow-soft, none);
  transition: transform var(--t-fast, 0.18s) var(--ease, ease),
    background var(--t-fast, 0.18s) var(--ease, ease),
    box-shadow var(--t-fast, 0.18s) var(--ease, ease);
  animation: softSettle var(--t-med, 0.45s) var(--ease, ease) backwards;
}
.demarche-route:hover {
  transform: translateY(-2px);
  background: var(--surface-deep, #fbf2dd);
  box-shadow: 0 4px 14px rgba(84, 41, 22, 0.08);
}
.demarche-route.is-selected {
  border-color: var(--terre, #a13a1e);
  background: color-mix(in srgb, var(--miel, #f1c166) 28%, var(--surface, #fff8f2));
  font-weight: 600;
}
.demarche-route em {
  color: var(--espresso-60, rgba(84, 41, 22, 0.55));
  font-style: normal;
  font-size: var(--fs-tiny, 0.72rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.demarche-check {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  cursor: pointer;
}
.demarche-check input { margin-top: 0.35rem; accent-color: var(--terre, #a13a1e); }
.demarche-step.is-done { opacity: 0.72; }
.demarche-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.35rem 0; }
.demarche-chip {
  font-family: 'Outfit', sans-serif;
  font-size: var(--fs-tiny, 0.72rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.28rem 0.65rem;
  border: none;
  border-radius: var(--radius-ui, 0.75rem);
  background: color-mix(in srgb, var(--miel, #f1c166) 40%, var(--surface, #fff8f2));
  color: var(--espresso, #542916);
}
.demarche-services,
.demarche-actions { display: flex; flex-wrap: wrap; gap: 0.5rem 0.85rem; margin-top: 0.55rem; }
.demarche-actions a.demarche-action { text-decoration: none; }
.demarche-progress {
  margin: 0.2rem 0 0.85rem;
  font-family: 'Outfit', sans-serif;
  font-size: var(--fs-small, 0.88rem);
  font-weight: 600;
  color: var(--espresso-60, rgba(84, 41, 22, 0.65));
}
.demarche-progress strong { color: var(--espresso, #542916); }
.demarche-reset-row { margin-top: 2rem; }
.demarche-focus-head { margin: 0 0 1.25rem; }
.demarche-step-body {
  margin: 0 0 1rem;
  max-width: 38ch;
  line-height: 1.5;
  color: var(--espresso-60, rgba(84, 41, 22, 0.78));
}
.demarche-step-body p { margin: 0 0 0.75rem; }
.demarche-step-body p:last-child { margin-bottom: 0; }
.demarche-step.is-focus .demarche-step-body {
  color: var(--espresso, #542916);
  opacity: 0.88;
}
.demarche-docs {
  margin: 0.5rem 0 1rem;
  padding-left: 1.15rem;
  line-height: 1.45;
}
.demarche-step-link a {
  color: var(--terre, #a13a1e);
  font-weight: 600;
  text-underline-offset: 0.12em;
}
.demarche-blocked .form-wizard-actions { margin-top: 1.25rem; }
.demarche-blocked .demarche-services { margin-bottom: 0.35rem; }
.demarche-blocked .pathway-step-res,
.demarche-step.is-focus > .demarche-services .pathway-step-res {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.52rem 1.15rem;
  border: none;
  border-radius: var(--radius-ui, 0.75rem);
  background: var(--espresso, #542916);
  color: var(--milk, #fefaf0);
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-soft, none);
  transition: background var(--t-fast, 0.18s) var(--ease, ease), transform var(--t-fast, 0.18s) var(--ease, ease);
}
.demarche-blocked .pathway-step-res:hover,
.demarche-step.is-focus > .demarche-services .pathway-step-res:hover {
  background: var(--terre, #a13a1e);
  color: var(--milk, #fefaf0);
  transform: translateY(-1px);
}
.demarche-eligibility {
  font-size: var(--fs-small, 0.88rem);
  color: var(--espresso-60, rgba(84, 41, 22, 0.65));
  margin: 0 0 0.85rem;
  max-width: 40ch;
}
.demarche-step.is-focus {
  animation: softSettle var(--t-med, 0.45s) var(--ease, ease) both;
}
.demarche-step.is-focus h3 {
  font-family: 'Familjen Grotesk', system-ui, sans-serif;
  font-size: var(--fs-h2, clamp(1.4rem, 2vw + .8rem, 2rem));
  line-height: 1.12;
  margin: 0 0 0.75rem;
  font-weight: 600;
  max-width: 22ch;
}
.demarche-ask {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin: 1.25rem 0 0.5rem;
}
.demarche-ask-opt {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  width: 100%;
  text-align: left;
  border: var(--line-soft, 1.5px solid var(--espresso, #542916));
  background: var(--surface, var(--milk, #fefaf0));
  color: inherit;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
  padding: 0.9rem 1.15rem;
  border-radius: var(--radius-card, 0.9rem);
  box-shadow: var(--shadow-soft, none);
  cursor: pointer;
  transition: transform var(--t-fast, 0.18s) var(--ease, ease),
    background var(--t-fast, 0.18s) var(--ease, ease),
    box-shadow var(--t-fast, 0.18s) var(--ease, ease);
  animation: softSettle var(--t-med, 0.45s) var(--ease, ease) backwards;
}
.demarche-ask-opt:nth-child(1) { animation-delay: 40ms; }
.demarche-ask-opt:nth-child(2) { animation-delay: 90ms; }
.demarche-ask-opt:nth-child(3) { animation-delay: 140ms; }
.demarche-ask-opt:nth-child(4) { animation-delay: 190ms; }
.demarche-ask-opt:nth-child(5) { animation-delay: 240ms; }
.demarche-ask-opt:nth-child(6) { animation-delay: 290ms; }
.demarche-ask-opt:hover {
  transform: translateY(-2px);
  background: var(--surface-deep, #fbf2dd);
  box-shadow: 0 4px 14px rgba(84, 41, 22, 0.08);
}
.demarche-ask-opt:active { transform: translateY(0); }
.demarche-ask-opt.is-selected {
  border-color: var(--terre, #a13a1e);
  background: color-mix(in srgb, var(--miel, #f1c166) 32%, var(--surface, #fff8f2));
}
.demarche-ask-opt:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

/* One-question form wizard (same chrome as demarche asks / refine) */
.form-wizard--chat {
  margin: 0.25rem 0 1rem;
  animation: softSettle var(--t-med, 0.45s) var(--ease, ease) both;
}
.form-wizard-q {
  font-family: 'Familjen Grotesk', system-ui, sans-serif;
  font-size: var(--fs-h2, clamp(1.4rem, 2vw + .8rem, 2rem));
  line-height: 1.12;
  margin: 0 0 0.65rem;
  font-weight: 600;
  max-width: 22ch;
}
.form-wizard-field--solo {
  display: block;
  margin: 1rem 0 1.15rem;
}
.form-wizard-field--solo input,
.form-wizard-field--solo textarea {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  font-size: 1.05rem;
  line-height: 1.4;
  padding: 0.9rem 1.15rem;
  border: var(--line-soft, 1.5px solid var(--espresso, #542916));
  border-radius: var(--radius-card, 0.9rem);
  background: var(--surface, var(--milk, #fefaf0));
  color: var(--espresso, #542916);
  box-shadow: var(--shadow-soft, none);
  transition: border-color var(--t-fast, 0.18s) var(--ease, ease),
    background var(--t-fast, 0.18s) var(--ease, ease),
    box-shadow var(--t-fast, 0.18s) var(--ease, ease);
}
.form-wizard-field--solo input:focus,
.form-wizard-field--solo textarea:focus {
  outline: none;
  border-color: var(--terre, #a13a1e);
  background: var(--surface-deep, #fbf2dd);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--miel, #f1c166) 55%, transparent);
}
.form-wizard-field--solo input.is-invalid,
.form-wizard-field--solo textarea.is-invalid {
  border-color: var(--terre, #a13a1e);
}
/* Shared wizard actions: one solid CTA, quiet text links under it. */
.form-wizard-actions,
.form-wizard-nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.7rem;
  margin-top: 1.2rem;
  max-width: 20rem;
}
.form-wizard-actions .form-wizard-primary,
.form-wizard-actions .guided-btn {
  width: 100%;
  max-width: none;
  min-height: 2.75rem;
  justify-content: center;
}
.form-wizard-nav .guided-btn {
  width: 100%;
  justify-content: center;
  margin-left: 0;
}
.form-wizard-actions-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.35rem 1.15rem;
}
.form-wizard-quiet,
a.form-wizard-quiet {
  border: 0;
  background: none;
  box-shadow: none;
  padding: 0.15rem 0;
  margin: 0;
  font: inherit;
  font-size: var(--fs-small, 0.88rem);
  font-weight: 600;
  color: var(--espresso-60, rgba(84, 41, 22, 0.62));
  text-decoration: underline;
  text-underline-offset: 0.14em;
  cursor: pointer;
  border-radius: 0;
}
.form-wizard-quiet:hover,
a.form-wizard-quiet:hover {
  color: var(--terre, #a13a1e);
  background: none;
  transform: none;
}
.form-wizard--chat .guided-btn:disabled,
.form-wizard-actions .guided-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}
.form-wizard-hint {
  font-size: var(--fs-small, 0.88rem);
  color: var(--espresso-60, rgba(84, 41, 22, 0.65));
  margin: 0;
  line-height: 1.4;
}

/* Review: collapsed sections + editable-feeling rows */
.form-review-sections {
  display: grid;
  gap: 0.55rem;
  margin: 1rem 0 0.25rem;
  max-width: 28rem;
}
.form-review-fold {
  border: 1.5px solid color-mix(in srgb, var(--espresso, #542916) 16%, transparent);
  border-radius: 0.85rem;
  background: var(--surface, var(--milk, #fefaf0));
  overflow: hidden;
}
.form-review-fold.has-missing {
  border-color: color-mix(in srgb, var(--terre, #a13a1e) 45%, transparent);
}
.form-review-fold-sum {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.form-review-fold-sum::-webkit-details-marker { display: none; }
.form-review-fold-sum::marker { content: ''; }
.form-review-fold-title {
  font-family: 'Outfit', 'Familjen Grotesk', sans-serif;
  font-weight: 650;
  font-size: 0.98rem;
  color: var(--espresso, #542916);
  flex: 1;
  min-width: 0;
}
.form-review-fold-meta {
  font-size: var(--fs-tiny, 0.72rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--espresso-60, rgba(84, 41, 22, 0.55));
  flex: none;
  margin-left: auto;
}
.form-review-fold-sum::after {
  content: '';
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid var(--espresso-60, rgba(84, 41, 22, 0.45));
  border-bottom: 2px solid var(--espresso-60, rgba(84, 41, 22, 0.45));
  transform: rotate(45deg);
  margin-left: 0.15rem;
  transition: transform 0.18s var(--ease, ease);
  flex: none;
}
.form-review-fold[open] .form-review-fold-sum::after {
  transform: rotate(-135deg);
  margin-top: 0.2rem;
}
.form-review-fold-sum:hover {
  background: color-mix(in srgb, var(--miel, #f1c166) 12%, transparent);
}
.form-review-fold-body {
  display: grid;
  gap: 0.4rem;
  padding: 0 0.65rem 0.7rem;
}
.form-review-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  text-align: left;
  border: 1.5px solid color-mix(in srgb, var(--espresso, #542916) 14%, transparent);
  border-radius: 0.7rem;
  background: var(--ground, #fdf0e8);
  padding: 0.7rem 0.85rem;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.16s var(--ease, ease), background 0.16s var(--ease, ease);
  -webkit-tap-highlight-color: transparent;
}
.form-review-row:hover,
.form-review-row:focus-visible {
  outline: none;
  border-color: var(--terre, #a13a1e);
  background: var(--surface, var(--milk, #fefaf0));
}
.form-review-row.is-missing {
  border-color: color-mix(in srgb, var(--terre, #a13a1e) 55%, transparent);
  background: color-mix(in srgb, var(--miel, #f1c166) 18%, var(--surface, #fff8f2));
}
.form-review-text {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
  flex: 1;
}
.form-review-label {
  font-size: var(--fs-tiny, 0.72rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--espresso-60, rgba(84, 41, 22, 0.55));
}
.form-review-value {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--espresso, #542916);
  line-height: 1.25;
  word-break: break-word;
}
.form-review-row.is-empty .form-review-value {
  font-weight: 500;
  font-style: italic;
  color: var(--espresso-60, rgba(84, 41, 22, 0.5));
}
.form-review-edit {
  flex: none;
  font-size: var(--fs-tiny, 0.72rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--terre, #a13a1e);
  opacity: 0.75;
}
.form-review-row:hover .form-review-edit,
.form-review-row:focus-visible .form-review-edit {
  opacity: 1;
}

.form-dl-points {
  margin: 0.35rem 0 0.25rem;
  padding-left: 1.15rem;
  max-width: 36ch;
  line-height: 1.45;
  color: var(--espresso, #542916);
}
.form-dl-points li { margin: 0.35rem 0; }
.form-dl {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.15rem;
}
.form-dl .pathway-kicker,
.form-dl .form-wizard-q,
.form-dl .pathway-why {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.form-dl .form-wizard-q {
  max-width: 18ch;
}
.form-dl .pathway-why {
  max-width: 32ch;
}
.form-dl .form-wizard-actions {
  width: min(20rem, 100%);
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}
.form-dl .form-wizard-actions-meta {
  justify-content: center;
}
.form-dl .form-dl-stage {
  width: 100%;
}
.form-dl--google {
  gap: 0.35rem;
}
.form-g-scene {
  position: relative;
  width: 100%;
  height: 12rem;
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 1rem;
  background: var(--surface, var(--milk, #fefaf0));
  border: 1.5px solid color-mix(in srgb, var(--espresso, #542916) 14%, transparent);
}
.form-g-scene--static { height: 9rem; }
.form-g-glow {
  display: none;
}
.form-g-orbit {
  position: relative;
  width: min(18rem, 86%);
  height: 10.5rem;
}
.form-g-orbit--confirm {
  height: 7.5rem;
  width: min(15rem, 82%);
}
.form-g-card {
  position: absolute;
  left: 8%;
  bottom: 1.1rem;
  width: 5.1rem;
  height: 6.3rem;
  border-radius: 0.55rem;
  background: var(--milk, #fefaf0);
  border: 1.5px solid var(--espresso, #542916);
  box-shadow: 0 8px 18px rgba(84, 41, 22, 0.1);
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
  padding: 0.7rem 0.65rem 0.6rem;
  z-index: 3;
  will-change: transform, opacity;
}
.form-g-card.is-resting {
  left: 12%;
  bottom: 0.85rem;
  width: 4.4rem;
  height: 5.4rem;
  transform: rotate(-6deg);
}
.form-g-card-bar {
  height: 0.38rem;
  width: 42%;
  border-radius: 999px;
  background: color-mix(in srgb, var(--terre, #a13a1e) 70%, var(--miel, #f1c166));
  margin-bottom: 0.15rem;
}
.form-g-line {
  display: block;
  height: 0.2rem;
  width: 100%;
  border-radius: 999px;
  background: color-mix(in srgb, var(--espresso, #542916) 24%, transparent);
  transform-origin: left center;
}
.form-g-line--mid { width: 72%; }
.form-g-line--short { width: 48%; }
.form-g-sparks {
  position: absolute;
  left: 28%;
  bottom: 38%;
  width: 0;
  height: 0;
  z-index: 4;
  pointer-events: none;
}
.form-g-sparks i {
  position: absolute;
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: var(--terre, #a13a1e);
  opacity: 0;
}
.form-g-dest {
  position: absolute;
  right: 6%;
  top: 18%;
  width: 5.6rem;
  height: 5.6rem;
  z-index: 2;
}
.form-g-orbit--confirm .form-g-dest {
  right: 8%;
  top: 12%;
  width: 4.6rem;
  height: 4.6rem;
}
.form-g-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid color-mix(in srgb, var(--terre, #a13a1e) 35%, var(--miel, #f1c166));
  opacity: 0;
  pointer-events: none;
}
.form-g-ring--late {
  border-color: color-mix(in srgb, var(--miel, #f1c166) 55%, transparent);
}
.form-g-core {
  position: absolute;
  inset: 0.55rem;
  border-radius: 50%;
  border: 2.5px solid var(--espresso, #542916);
  background: var(--milk, #fefaf0);
  box-shadow: 0 6px 16px rgba(84, 41, 22, 0.1);
  display: grid;
  place-items: center;
}
.form-g-core-g {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.55rem;
  color: var(--terre, #a13a1e);
  line-height: 1;
  letter-spacing: 0.02em;
}
.form-g-core-check {
  position: absolute;
  width: 1.55rem;
  height: 1.55rem;
  opacity: 0;
  transform: scale(0.7);
  color: var(--espresso, #542916);
}
.form-g-core-check svg {
  display: block;
  width: 100%;
  height: 100%;
}
.form-g-copy {
  display: grid;
  gap: 0.1rem;
  justify-items: center;
  width: 100%;
  text-align: center;
}
.form-dl--google .form-g-copy .pathway-kicker { margin-bottom: 0.3rem; }
.form-dl--google .form-g-copy .form-wizard-q {
  margin-bottom: 0.4rem;
  max-width: 16ch;
}
.form-dl--google .form-g-copy .pathway-why {
  margin-bottom: 0;
  max-width: 32ch;
}
.form-dl--google .form-wizard-actions {
  margin-top: 1.15rem;
}
.form-g-scene.is-done .form-g-card { opacity: 0; pointer-events: none; }
.form-dl--done.form-dl--google:not(.form-dl--prefill) .form-g-core-g { opacity: 0; }
.form-dl--done.form-dl--google:not(.form-dl--prefill) .form-g-core-check {
  opacity: 1;
  transform: none;
}
.form-dl--done.form-dl--google .form-g-core {
  outline: 2px solid color-mix(in srgb, var(--miel, #f1c166) 65%, transparent);
  outline-offset: 4px;
}
.form-dl--prefill .form-g-core-g {
  font-size: 1.75rem;
  opacity: 1;
}
.form-dl--prefill .form-g-core-check { opacity: 0; }
.form-g-scene.is-css-anim .form-g-card {
  animation: formGCardFly 1.35s cubic-bezier(0.4, 0, 0.2, 1) both;
}
.form-g-scene.is-css-anim .form-g-dest {
  animation: formGDestIn 1.35s cubic-bezier(0.34, 1.2, 0.64, 1) both;
}
@keyframes formGCardFly {
  0%   { opacity: 0; transform: translate(0, 36px) scale(0.88) rotate(-8deg); }
  28%  { opacity: 1; transform: translate(0, 0) scale(1) rotate(-2deg); }
  62%  { opacity: 1; transform: translate(36px, -28px) scale(0.72) rotate(6deg); }
  100% { opacity: 0; transform: translate(78px, -54px) scale(0.4) rotate(14deg); }
}
@keyframes formGDestIn {
  0%   { opacity: 0; transform: scale(0.72); }
  30%  { opacity: 1; transform: scale(1); }
  78%  { transform: scale(1.08); }
  100% { opacity: 1; transform: scale(1); }
}
.form-dl-stage {
  position: relative;
  height: 9.5rem;
  margin: 0.25rem 0 1.1rem;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.form-dl-phone {
  width: 4.4rem;
  height: 7.2rem;
  border-radius: 0.85rem;
  border: 2.5px solid var(--espresso, #542916);
  background: var(--surface, var(--milk, #fefaf0));
  box-shadow: var(--shadow-soft, 0 4px 14px rgba(84, 41, 22, 0.08));
  position: relative;
  z-index: 1;
}
.form-dl-phone-screen {
  position: absolute;
  inset: 0.55rem 0.4rem 0.7rem;
  border-radius: 0.35rem;
  background: color-mix(in srgb, var(--miel, #f1c166) 35%, var(--ground, #fdf0e8));
}
.form-dl-phone::after {
  content: '';
  position: absolute;
  top: 0.28rem;
  left: 50%;
  width: 1.1rem;
  height: 0.18rem;
  border-radius: 999px;
  background: var(--espresso, #542916);
  transform: translateX(-50%);
}
.form-dl-sheet {
  position: absolute;
  top: 0.2rem;
  left: 50%;
  width: 3.2rem;
  height: 4rem;
  margin-left: -1.6rem;
  border-radius: 0.28rem;
  background: var(--milk, #fefaf0);
  border: 1.5px solid var(--espresso, #542916);
  box-shadow: 0 6px 16px rgba(84, 41, 22, 0.12);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0.28rem;
  padding: 0.45rem 0.4rem 0.35rem;
  z-index: 2;
}
.form-dl-sheet strong {
  font-family: 'Outfit', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-align: center;
  color: var(--terre, #a13a1e);
  margin-top: auto;
}
.form-dl-sheet-lines {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--espresso, #542916) 28%, transparent);
}
.form-dl-sheet-lines:nth-child(2) { width: 70%; }
.form-dl-sheet-lines:nth-child(3) { width: 55%; }
.form-dl--done .form-dl-phone-screen {
  background: color-mix(in srgb, var(--miel, #f1c166) 55%, var(--surface, #fff8f2));
}
.form-dl-stage.is-done .form-dl-phone {
  outline: 2px solid color-mix(in srgb, var(--miel, #f1c166) 70%, transparent);
  outline-offset: 3px;
}
.form-dl-stage.is-css-anim .form-dl-sheet {
  animation: formDlSheet 1.1s var(--ease, ease) both;
}
.form-dl-stage.is-css-anim .form-dl-phone {
  animation: formDlPhone 1.1s var(--ease, ease) both;
}
@keyframes formDlSheet {
  0%   { opacity: 0; transform: translateY(-28px) scale(0.9) rotate(-6deg); }
  35%  { opacity: 1; transform: translateY(-6px) scale(1) rotate(-2deg); }
  75%  { opacity: 1; transform: translateY(30px) scale(0.72) rotate(0deg); }
  100% { opacity: 0; transform: translateY(42px) scale(0.4); }
}
@keyframes formDlPhone {
  0%   { opacity: 0.4; transform: translateY(12px) scale(0.96); }
  40%  { opacity: 1; transform: none; }
  85%  { transform: scale(1.04); }
  100% { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .pathway-overlay,
  .demarche-step.is-focus,
  .demarche-ask-opt,
  .demarche-route,
  .form-wizard--chat {
    animation: none !important;
  }
  .demarche-ask-opt:hover,
  .demarche-route:hover {
    transform: none;
  }
  .form-dl-stage.is-css-anim .form-dl-sheet,
  .form-dl-stage.is-css-anim .form-dl-phone,
  .form-g-scene.is-css-anim .form-g-card,
  .form-g-scene.is-css-anim .form-g-dest {
    animation: none !important;
  }
}
.topic-trail { margin: 0 0 0.75rem; font-size: 0.9rem; opacity: 0.85; }
.topic-crumb {
  border: 0; background: none; color: inherit; font: inherit;
  text-decoration: underline; cursor: pointer; padding: 0;
}
.topic-cover,
.topic-figure {
  margin: 0.85rem 0 1rem;
  border-radius: 0.55rem;
  overflow: hidden;
  background: color-mix(in srgb, currentColor 6%, transparent);
}
.topic-cover img,
.topic-figure img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 16rem;
  object-fit: cover;
}
.topic-body { margin: 0.75rem 0 1rem; line-height: 1.55; }
.topic-body p { margin: 0 0 0.85rem; }
.topic-body p:last-child { margin-bottom: 0; }
.topic-body--lead { font-size: 1.02rem; }
.topic-list {
  margin: 0 0 0.85rem;
  padding-left: 1.25rem;
  line-height: 1.5;
}
.topic-list li { margin: 0.2rem 0; }
.topic-body strong { font-weight: 700; }
.topic-body em { font-style: italic; }
.topic-inline-link,
.topic-ext-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.12em;
  word-break: break-word;
}

/* Glossary abbreviations — tap / hover for a short tip */
.gloss-term {
  display: inline;
  margin: 0;
  padding: 0 0.12em;
  border: 0;
  border-radius: 0.2em;
  background: color-mix(in srgb, var(--miel, #f1c166) 42%, transparent);
  color: var(--terre, #a13a1e);
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: underline;
  text-decoration-style: solid;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.16em;
  cursor: help;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.gloss-term:hover,
.gloss-term:focus-visible,
.gloss-term[aria-expanded="true"] {
  background: color-mix(in srgb, var(--miel, #f1c166) 70%, var(--surface, #fff8f2));
  color: var(--espresso, #542916);
}
.gloss-pop {
  position: fixed;
  z-index: 400;
  max-width: min(20rem, calc(100vw - 1.5rem));
  padding: 0.8rem 0.95rem 0.9rem;
  border: var(--line-soft, 1.5px solid var(--espresso, #542916));
  border-radius: var(--radius-card, 0.9rem);
  background: var(--surface, var(--milk, #fefaf0));
  color: var(--espresso, #542916);
  box-shadow: 0 10px 28px rgba(84, 41, 22, 0.18);
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity var(--t-fast, 0.18s) var(--ease, ease),
    transform var(--t-fast, 0.18s) var(--ease, ease);
}
.gloss-pop.on {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.gloss-pop-term {
  margin: 0 0 0.2rem;
  font-family: 'Outfit', 'Familjen Grotesk', sans-serif;
  font-size: var(--fs-tiny, 0.72rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terre, #a13a1e);
}
.gloss-pop-expand {
  margin: 0 0 0.35rem;
  font-family: 'Familjen Grotesk', system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.25;
}
.gloss-pop-def {
  margin: 0;
  font-size: var(--fs-small, 0.88rem);
  line-height: 1.4;
  color: var(--espresso-60, rgba(84, 41, 22, 0.78));
}
@media (prefers-reduced-motion: reduce) {
  .gloss-pop { transition: none; }
}
.topic-ext-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  margin: 0.65rem 0 0.85rem;
}
.topic-ext-link {
  display: inline-block;
  padding: 0.2rem 0;
  font-weight: 600;
}
.topic-section {
  margin: 1.35rem 0 1.1rem;
  padding-top: 0.85rem;
  border-top: 1px solid color-mix(in srgb, currentColor 14%, transparent);
}
.topic-section h3 {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
  line-height: 1.25;
}
.topic-section-services { margin-top: 0.55rem; }
.topic-links { margin: 1rem 0; }
.topic-links h3 { font-size: 0.95rem; margin: 0 0 0.4rem; }
.topic-see-also { margin-top: 1rem; font-size: 0.9rem; }
