/* Keep the workspace and navigation stable while long choices scroll inside. */
html:has(.website-first-page) { height: 100%; }
body.website-first-page { height: 100dvh; overflow: hidden; }
.website-first-page .workspace { height: 100dvh; min-height: 0; }
.website-first-page .intake-split .top { padding: 18px 32px; }
.website-first-page .form-layout.is-centered .top { min-height: 76px; padding: 16px 32px; flex: none; }
.website-first-page .intake-split .shell { min-height: 0; height: 100%; padding: 100px 32px 24px; display: flex; flex-direction: column; justify-content: center; }
.website-first-page[data-form-step] .form-layout.is-centered .shell { flex: 1; height: auto; min-height: 0; padding: 16px 0 24px; margin: 0 auto; }
.website-first-page #website-first { width: 100%; min-height: 0; max-height: 100%; display: flex; flex-direction: column; }
.website-first-page #website-first > section:not([hidden]) { display: flex; flex-direction: column; min-height: 0; max-height: 100%; padding-bottom: 0; }
.website-first-page .step-content { min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; padding: 2px 5px 4px; }
.website-first-page :is(.identity-stage, .offers-stage, .buyers-stage, .topics-stage, .competitors-stage) .step-content { display: flex; flex-direction: column; overflow: hidden; }
.website-first-page .step-content > * { flex-shrink: 0; }
.website-first-page .identity-stage .type-field { display: flex; flex-direction: column; min-height: 0; flex-shrink: 1; }
.website-first-page .identity-stage #type-choices { min-height: 44px; overflow-y: auto; flex-shrink: 1; grid-auto-rows: max-content; }
.website-first-page .identity-stage .type-field > :not(#type-choices) { flex-shrink: 0; }
.website-first-page #evidence-list { max-height: 80px; overflow-y: auto; }
.website-first-page #evidence { margin-top: 8px; }
.website-first-page .offers-stage .step-content > :is(#generic-offerings, #print-offerings),
.website-first-page .buyers-stage .customer-section,
.website-first-page .buyers-stage #kinds-field,
.website-first-page .competitors-stage .suggestions { display: flex; flex-direction: column; min-height: 0; flex-shrink: 1; }
.website-first-page :is(#offering-chips, #service-chips, #kind-chips, #topic-chips, #suggestion-chips) { min-height: 0; overflow-y: auto; flex-shrink: 1; overscroll-behavior: contain; }
.website-first-page :is(#generic-offerings, #print-offerings, #kinds-field, .suggestions) > :not(#offering-chips, #service-chips, #kind-chips, #suggestion-chips) { flex-shrink: 0; }
.website-first-page .buyers-stage #buyer-cards { flex-shrink: 0; }
.website-first-page .intake-split #competitor-chips { max-height: 140px; overflow-y: auto; flex-shrink: 0; }
.website-first-page .journey-navigation { display: block; position: static; flex: none; padding: 0; border: 0; background: var(--bg); }
.website-first-page .journey-actions { flex-direction: row; align-items: center; margin-top: 16px; gap: 16px; }
.website-first-page .journey-actions > button:not(.text-button) { flex: 1; width: auto; }
.website-first-page .journey-footer { margin-top: 4px; }
.website-first-page .intake-split :is(.choice-button, .buyer-card, .choice-chip) { min-height: 44px; padding: 9px 12px; }
.website-first-page .intake-split #service-chips .choice-chip { padding: 9px 12px; }
.website-first-page .intake-split .lede { flex: none; margin: 8px 0 12px; }
.website-first-page .intake-split :is(.customer-section, .type-field, .identity-fields, .company, fieldset, .offering-list) { margin-top: 12px; }
.website-first-page .intake-split .identity-fields .field { margin-bottom: 8px; }
.website-first-page .intake-split .identity-fields .field + .field { margin-top: 8px; }
.website-first-page .intake-split .charity { margin-top: 10px; }
.website-first-page .intake-split :is(.buyers-stage, .topics-stage) h3 { margin: 12px 0 4px; }
.website-first-page .intake-split #type-choices.show-all-types { max-height: 200px; overflow-y: auto; }
.website-first-page .intake-split .reading-mark { flex: none; width: 80px; margin: 0 auto 8px; }
.website-first-page .intake-split .reading-stage > h2 { font-size: clamp(28px, 3vw, 38px); }
.website-first-page .intake-split .site-line { margin: 8px 0 12px; }
.website-first-page .intake-split .reading-list { gap: 8px; margin: 0; }
.website-first-page .intake-split .reading-list li { min-height: 48px; padding: 6px 12px; border-radius: 8px; }
.website-first-page .intake-split .step-symbol { width: 30px; height: 30px; font-size: 16px; }
.website-first-page .intake-split #reading-review { margin-top: 16px; }
.website-first-page .intake-split #reading-manual { margin-top: 8px; }
.website-first-page .login-content { width: 100%; }
.website-first-page .shell > p:empty { display: none; }
.website-first-page .form-layout.is-centered .done-mark { width: 56px; flex: none; margin: 0 auto 8px; }
.website-first-page .done > h2 { flex: none; }
.website-first-page .intake-split .assessment-steps { flex: none; gap: 8px; margin: 12px 0; font-size: 16px; }
.website-first-page #question-examples { display: flex; flex-direction: column; min-height: 0; margin-top: 8px; }
.website-first-page #question-examples > h3 { flex: none; font-size: 16px; }
.website-first-page .form-layout.is-centered .finish-questions { overflow-y: auto; min-height: 0; margin-top: 8px; grid-auto-rows: max-content; align-content: start; }
.website-first-page .intake-split #receipt-reference { flex: none; margin-top: 12px; }
@media (max-width: 760px) {
  .website-first-page .intake-split .top,
  .website-first-page .form-layout.is-centered .top { position: static; width: 100%; min-height: 68px; padding: 12px 24px; }
  .website-first-page .intake-split.workspace { display: flex; flex-direction: column; }
  .website-first-page .intake-split .shell { height: auto; flex: 1; padding: 16px 24px max(16px, env(safe-area-inset-bottom)); }
  .website-first-page[data-form-step] .form-layout.is-centered .shell { width: calc(100% - 48px); padding: 12px 0 max(12px, env(safe-area-inset-bottom)); }
  .website-first-page .form-layout.is-centered :is(section > h2, .combined-stage > h2) { font-size: 30px; }
  .website-first-page .intake-split #buyer-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .website-first-page .intake-split #buyer-cards .buyer-card { font-size: 14px; padding: 8px; }
  .website-first-page .intake-split .choice-grid { gap: 8px; }
  .website-first-page .intake-split .add-own { flex-wrap: nowrap; }
  .website-first-page .intake-split .add-own input { flex: 1 1 0; }
  .website-first-page .intake-split .add-own button { flex: none; }
  .website-first-page .intake-split .company h3 { font-size: 24px; }
  .website-first-page .intake-split .company p { font-size: 15px; }
  .website-first-page .journey-navigation { padding-top: 6px; }
  .website-first-page #website-first { flex: 1; }
  .website-first-page #website-first > section:not([hidden]) { flex: 1; }
  .website-first-page .step-content { flex: 1; }
  .website-first-page .journey-navigation { margin-top: auto; }
  .website-first-page #website-first > .front:not([hidden]) { justify-content: center; }
  .website-first-page .intake-split .reading-mark { width: 72px; }
}
@media (max-height: 780px) and (min-width: 761px) {
  .website-first-page .intake-split .shell { padding-top: 88px; padding-bottom: 16px; }
  .website-first-page .intake-split :is(h1, section > h2) { font-size: 34px; }
}
