/* Responsive corrections only. Original text, imagery and logo are unchanged. */
html { scroll-padding-top: 110px; }
body { overflow-wrap: break-word; }
h1, h2, h3 { hyphens: auto; overflow-wrap: anywhere; }
img { max-width: 100%; }
a, button, summary { -webkit-tap-highlight-color: #a034f233; }

/* Legal/contact pages: the original logo and home link must share narrow space. */
.content-page .nav { gap: 12px; }
.content-page .nav > :is(.brand, .logo) { flex: 0 1 320px; min-width: 0; }
.content-page .nav :is(.brand-logo, .brand-lockup) {
  width: 100%; max-width: 100%; height: auto; object-fit: contain;
}
.content-page .nav-links { flex: 0 0 auto; }
.content-page .home-button { display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; }
.content-page :is(.legal-section, .content-card, .rule-card) h2 { align-items: flex-start; }
.content-page :is(.contact-button, .final-card a, .quick-links a) { max-width: 100%; text-align: center; overflow-wrap: anywhere; }
.content-page .footer-inner > * { min-width: 0; }

/* Homepage: min-content sizing and unbreakable CTA labels caused overflow. */
.home-page .header-inner > .brand { min-width: 0; flex-shrink: 1; }
.home-page .menu-toggle { flex: 0 0 44px; width: 44px; height: 44px; }
.home-page .button { max-width: 100%; white-space: normal; text-align: center; }
.home-page .button .arrow { flex-shrink: 0; }
.home-page :is(.split, .organizer-grid, .map-panel, .trust-inner, .faq-layout, .footer-grid) > * { min-width: 0; }
.home-page .eyebrow { max-width: 100%; }
.home-page .eyebrow::before { flex: 0 0 8px; }
.home-page .benefit-icon { flex-shrink: 0; }
.home-page .benefit :is(strong, small) { display: block; }
.home-page .feature-visual { overflow: visible; }
.home-page .feature-visual img { border-radius: 15px 15px 0 0; }
.home-page .feature-body h3 { padding-right: 20px; }
.home-page .photo-note { max-width: calc(100% - 38px); line-height: 1.5; }
.home-page .activity-photos .photo-note { top: 16px; bottom: auto; }
.home-page .phone { display: flex; flex-direction: column; flex-shrink: 0; }
.home-page .phone-map { height: auto; flex: 1; min-height: 0; }
.home-page :is(.phone-top, .phone-nav, .phone-bottom) { flex-shrink: 0; }
.home-page .phone-top { height: 74px; }
.home-page .map-float { bottom: 75px; }
.home-page .skip { z-index: 110; }
.home-page :is(.hero h1, .section-heading) { hyphens: none; }
/* Keep the long legal title whole at tablet/desktop widths as well. */
.terms-page .hero h1 { hyphens: none; overflow-wrap: normal; }

@media (min-width: 931px) and (max-width: 1000px) {
  .home-page .feature-body h3 { font-size: 20px; }
}
@media (max-width: 1240px) {
  .home-page .site-header .navigation {
    top: 100%; max-height: calc(100vh - 96px); max-height: calc(100dvh - 96px);
    max-height: var(--menu-available-height, calc(100vh - 96px));
    overflow-y: auto; overscroll-behavior: contain; gap: 4px;
  }
  .home-page .navigation a { display: flex; align-items: center; min-height: 44px; width: 100%; }
}
@media (max-width: 620px) {
  html { scroll-padding-top: 94px; }
  .terms-page .hero h1 { font-size: clamp(20px, 6vw, 26px); hyphens: none; }
  .home-page .header-inner { gap: 12px; }
  .home-page .brand-lockup { width: 238px; }
  /* The same Android/iOS availability remains fully visible in hero and launch. */
  .home-page .header-release { display: none; }
  .home-page .site-header .navigation {
    max-height: calc(100vh - 78px); max-height: calc(100dvh - 78px);
    max-height: var(--menu-available-height, calc(100vh - 78px));
  }
  .home-page .intro-images .float-thumb { right: 0; }
  .home-page .hero-inner { padding-bottom: 40px; }
  .home-page .handwrite {
    position: relative; right: auto; bottom: auto; width: max-content;
    max-width: calc(100% - 48px); margin: 0 24px 155px auto;
    transform: rotate(-6deg);
  }
  .home-page .footer-grid > div:last-child { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
