/* Shared phone typography and spacing, loaded after page-specific styles. */
@media (max-width: 760px) {
  :root {
    --phone-title: clamp(36px, 10.8vw, 44px);
    --phone-section: clamp(32px, 9.4vw, 38px);
    --phone-card: 28px;
    --phone-gutter: 7%;
    --phone-section-space: 56px;
  }

  body { padding-bottom: 0; }
  body.has-mobile-book { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .section-pad { padding: var(--phone-section-space) var(--phone-gutter); }
  .page-hero, .article-title { padding-block: 48px; }
  .story-list { padding-block: 16px 48px; }
  .article-body { padding: 48px var(--phone-gutter) 56px; }

  /* Page titles, section titles, and reading subheads retain a clear hierarchy. */
  main .page-hero h1,
  .supporting-page .page-hero h1,
  main .article-title h1,
  main.recovery h1 {
    font-family: var(--serif);
    font-size: var(--phone-title);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -.035em;
    margin-block: 24px;
    overflow-wrap: break-word;
    text-wrap: balance;
  }
  .hero h1 > span, .hero h1 > em { white-space: normal; }
  main .section-pad h2,
  .home-page .section-pad h2,
  .supporting-page .section-pad h2,
  .supporting-page .supporting-intro h2 {
    font-size: var(--phone-section);
    line-height: 1.17;
    letter-spacing: -.03em;
  }
  main .article-body h2,
  main .story-card h2 {
    font-size: 30px;
    line-height: 1.22;
    letter-spacing: -.025em;
    margin-bottom: 20px;
  }
  main .article-sources h2 { font-size: 26px; }
  main .resource-card h3,
  main .approach-steps h3,
  main .round-takeaways h3,
  main .calendar-links h3,
  main .video-card h3,
  main .news-list h3,
  main .guide-links h3 {
    font: 400 var(--phone-card)/1.25 var(--serif);
    letter-spacing: -.025em;
    margin-bottom: 18px;
  }
  main .home-choice h3 { font-size: 32px; line-height: 1.2; margin-block: 20px; }
  main .section-pad h2 + p { margin-top: 22px; }
  main .home-about h2 { margin-bottom: 0; }
  main .home-reassurance { padding-top: 32px; }
  main .home-reassurance h2 { margin-bottom: 22px; }
  main .home-reassurance h2 + p { margin-top: 0; }
  .home-page .connect-compact h2 { margin-bottom: 22px; }
  main .training h2 { margin-bottom: 28px; }
  .article-title .dek { margin-block: 24px; font-size: 15px; line-height: 1.85; }
  .page-hero > p:last-of-type,
  .supporting-page .page-hero > p:last-of-type { font-size: 15px; line-height: 1.85; }
  .article-title > .eyebrow { margin: 28px 0 20px; }
  .article-title > .eyebrow:first-child { margin-top: 0; }
  .article-body section { margin-bottom: 40px; }
  .article-body section p { line-height: 1.85; }
  .resource-card > p, .approach-steps p, .round-takeaways p { line-height: 1.85; }
  .supporting-content > .resource-grid { margin-top: 32px; }
  .resource-grid { gap: 32px; }
  .approach-steps, .round-takeaways { gap: 32px; }
  .private-lesson-offer { margin-top: 32px; }

  /* Give primary actions and the softer question links their own space. */
  main .hero-actions { gap: 16px; margin-top: 28px; }
  main .hero-actions > .button { max-width: 100%; white-space: normal; }
  main .choice-details { margin-top: 16px; }
  main .page-cta > .button + p { margin-top: 20px; }
  main .page-cta > .fine-print { margin-top: 24px; line-height: 1.8; font-size: 13px; }
  main .page-cta .cta-pair { gap: 20px; }
  main .page-cta .inline-link { min-height: 44px; }
  main .button { max-width: 100%; white-space: normal; }
  main .button .link-arrow { flex-shrink: 0; }
  main .inline-link { line-height: 1.6; }
  main .private-lesson-offer p + p { margin-top: 18px; }
  main .connect-compact { padding-block: 48px; }
  main .connect-compact .email-link { overflow-wrap: anywhere; }
  footer { gap: 24px; padding-block: 32px; }

  /* Keep navigation reachable in landscape and above the persistent action. */
  .site-header { height: 68px; }
  .site-header nav {
    top: 68px;
    max-height: calc(100vh - 68px);
    max-height: calc(100dvh - 68px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
  }
  .site-header nav a { flex-shrink: 0; }
  .site-header:has(.menu-toggle[aria-expanded="true"]) ~ .mobile-book { display: none; }
  .mobile-book { min-height: calc(64px + env(safe-area-inset-bottom)); }
  .recovery-header { min-height: 68px; padding: 16px 6%; }
  .recovery { padding: 48px var(--phone-gutter); }
  .recovery-links { gap: 20px; }

  /* The dialog remains a single scrollable form, with readable phone controls. */
  #lesson-dialog .booking h2 { font-size: var(--phone-section); line-height: 1.17; margin: 20px 0 24px; }
  #lesson-dialog .booking { gap: 36px; }
  #lesson-dialog .booking input,
  #lesson-dialog .booking select,
  #lesson-dialog .booking textarea { font-size: 16px; }
  #lesson-dialog .form-actions { gap: 16px; }
  #lesson-dialog .booking .button { white-space: normal; line-height: 1.45; }
}

@media (max-width: 360px) {
  .mobile-book > span { max-width: 90px; }
  .mobile-book .button { padding-inline: 14px; gap: 12px; }
  .private-lesson-offer, .round-price-card { padding-inline: 20px; }
}
