/* Shared mobile-first refinements for the site's static pages. */
html { -webkit-text-size-adjust: 100%; }
body { overflow-x: hidden; }
img, iframe { max-width: 100%; }
button, input, select, textarea { font: inherit; }

:focus-visible {
  outline: 3px solid #f2a900;
  outline-offset: 3px;
}

@media (max-width: 900px) {
  nav .nav-inner,
  .nav .nav-inner {
    min-height: 64px;
    height: auto;
    padding: 6px 16px;
    flex-wrap: wrap;
  }

  nav .logo img,
  .nav .logo img { width: 44px; height: 44px; }
  nav .logo-text,
  .nav .logo-text { font-size: .9rem; }

  nav .nav-toggle,
  .nav .nav-toggle {
    width: 44px;
    height: 44px;
    padding: 9px 10px;
    display: block;
    touch-action: manipulation;
  }

  nav .nav-links,
  .nav .nav-links {
    max-height: calc(100dvh - 64px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  nav .nav-links a,
  .nav .nav-links a {
    display: flex;
    min-height: 48px;
    align-items: center;
    padding: 12px 20px;
  }

  .hero:not(.hero-band), .page-hero { min-height: 0; height: auto; padding: 64px 0; }
  .hero-content { padding-inline: 20px; }
  .hero-content p { line-height: 1.55; }
  .hero-buttons { width: 100%; gap: 10px; }
  .hero-buttons .btn { width: 100%; min-height: 48px; padding: 12px 16px; }

  .section { padding: 36px 18px; }
  .article-body, .faq-content { padding-inline: 18px; }
  .article-img { height: auto; max-height: 360px; }
  .section-desc { margin-bottom: 20px; }
  .map-container { height: min(62vh, 430px); border-radius: 8px 8px 0 0; }

  .stop-search-bar,
  .stop-search-inner { align-items: stretch; }
  .stop-search-bar input,
  .stop-search-inner input { width: 100%; min-height: 48px; }
  .stop-search-bar button,
  .stop-search-inner button { min-height: 44px; flex: 1; }
  .filter-row { gap: 8px; padding: 10px; }
  .filter-option { min-height: 44px; flex: 1; justify-content: center; }
  .filter-option input[type="checkbox"] { width: 20px; height: 20px; }

  .trolley-stop { padding: 14px 16px; line-height: 1.5; }
  .address-link { display: inline-block; padding-block: 4px; overflow-wrap: anywhere; }
  #back-to-top { right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); }
}

@media (max-width: 420px) {
  nav .logo-text span, .nav .logo-text span { display: none; }
  .footer-bottom { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
