/* Owner-requested 2026-12-05: the spacious 90%-zoom reference at normal zoom.
   Public HTML only. Full-bleed surfaces, artwork and private admin stay untouched.
   Existing semantic typography roles consume these inherited desktop tokens. */
#root .approved-home {
  --aa-content-max: 1100px;
  --aa-page-gutter: 24px;
}

#root
  .approved-home
  :is(.container, .shell, .about-container, .problem-detail-shell) {
  width: min(var(--aa-content-max), calc(100% - (2 * var(--aa-page-gutter))));
  max-width: var(--aa-content-max);
  margin-inline: auto;
}

/* A booking flow remains a focused form, not a full-width marketing layout. */
#root .approved-home.booking-page .booking-container {
  width: min(760px, calc(100% - (2 * var(--aa-page-gutter))));
  margin-inline: auto;
}

@media (min-width: 701px) {
  #root .approved-home {
    --aa-page-gutter: 48px;
  }
}

@media (min-width: 701px) and (max-width: 1023px) {
  #root .approved-home.solve-page .solve-final-cta {
    padding-block: 28px;
  }
}

@media (min-width: 701px) and (max-width: 1000px) {
  #root .approved-home.work-page .work-hero-annotation {
    /* Copy uses 68% of the shared frame; reserve 42px travel plus 8px clearance. */
    left: calc(
      var(--aa-page-gutter) + (100% - 2 * var(--aa-page-gutter)) * 0.68 + 50px
    );
  }
}

@media (min-width: 1024px) {
  #root .approved-home {
    --aa-page-gutter: clamp(64px, 6.25vw, 120px);
    --aa-home-h1-size: 43.2px;
    --aa-home-h1-line: 48.6px;
    --aa-home-h1-track: -1.08px;
    --aa-page-h1-size: 32.4px;
    --aa-page-h1-line: 37.8px;
    --aa-page-h1-track: -0.72px;
    --aa-h2-size: 28.8px;
    --aa-h2-line: 36px;
    --aa-h2-track: -0.45px;
    --aa-h3-size: 21.6px;
    --aa-h3-line: 28.8px;
    --aa-h3-track: -0.27px;
    --aa-tile3-title-size: 16.2px;
    --aa-tile3-title-line: 18px;
    --aa-tile4plus-title-size: 13.5px;
    --aa-tile4plus-title-line: 16px;
    --aa-lead-size: 16.2px;
    --aa-lead-line: 23.4px;
    --aa-lead-track: -0.18px;
    --aa-body-size: 14.4px;
    --aa-body-line: 20.7px;
    --aa-tile3-body-size: 12.6px;
    --aa-tile3-body-line: 16.2px;
    /* Small labels, four-plus-card bodies and callouts retain their readable
       existing floor rather than shrinking already-small functional text. */
  }

  /* These existing editorial exceptions do not consume the general roles. */
  #root .approved-home.solve-page .solve-reality-copy h2 {
    font-size: 22.5px;
    line-height: 24.3px;
  }

  #root .approved-home.solve-page .solve-reality-insight h3 {
    font-size: 18px;
    line-height: 20.7px;
  }

  #root .approved-home.solve-page .solve-dialogue :is(div, dd) {
    font-size: var(--aa-body-size);
    line-height: 18.9px;
  }

  #root
    .approved-home
    .about-prototype
    .about-intro-copy
    > .about-precise-line {
    font-size: 18px;
    line-height: 24.3px;
    letter-spacing: -0.18px;
  }
}

@media (max-width: 700px) {
  /* Reserve a narrow right-edge lane only where the draggable flyout exists.
     Desktop gutters remain equal. Unrelated mobile pages keep equal 24px sides. */
  #root
    .consultation-page
    .approved-home
    :is(.container, .shell, .problem-detail-shell) {
    width: calc(100% - 72px);
    margin-left: 24px;
    margin-right: 48px;
  }

  /* Preserve readable form controls and prevent automatic mobile input zoom. */
  #root .approved-home :is(input, select, textarea) {
    font-size: 16px;
  }
}
