/* Zoom-stable, mobile-first layout
   Side gutters are percentage-based so 80% / 90% / 100% zoom keep similar margins. */

:root {
  --site-max: 120rem; /* 1920px — only caps ultra-wide screens */
  --site-narrow: 56rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  overflow-x: clip;
  min-width: 0;
  max-width: 100%;
}

img,
video,
iframe,
svg {
  max-width: 100%;
  height: auto;
}

/* Main column: 6% gutter each side (88% width), never tighter than 20px.
   Percentage-based so 80% / 90% / 100% zoom keep the same visual margins. */
body .site-container {
  width: min(var(--site-max), 88%, calc(100% - 2.5rem));
  max-width: 100%;
  margin-inline: auto;
  padding-inline: 0;
}

body .site-container--narrow,
body .site-container.site-container--narrow {
  width: min(var(--site-narrow), 88%, calc(100% - 2.5rem));
  max-width: 100%;
  margin-inline: auto;
  padding-inline: 0;
}

.site-container,
.site-container--narrow {
  overflow-wrap: break-word;
}

nav[role="navigation"] .site-container {
  gap: 0.75rem;
}

nav[role="navigation"] img {
  flex-shrink: 0;
}

.brand-mark {
  height: 2.75rem;
  width: auto;
  border-radius: 0.5rem;
  background: #fff;
  object-fit: contain;
}

@media (min-width: 640px) {
  .brand-mark {
    height: 3.5rem;
  }
}

.brand-mark--footer {
  height: 2.5rem;
}

/* Hero: full viewport on desktop; auto height on small screens so CTAs are not clipped */
header.hero-section {
  min-height: 100vh;
  min-height: 100svh;
}

@media (max-width: 640px) {
  header.hero-section {
    height: auto !important;
    min-height: 0 !important;
  }
}

/* Nav drawer always attaches to the bottom of the bar, independent of zoom */
.mobile-menu {
  position: absolute !important;
  top: 100% !important;
  left: 0;
  right: 0;
  z-index: 60;
  max-height: min(70vh, 32rem);
  overflow-y: auto;
}

.mobile-menu.active {
  max-height: min(70vh, 32rem);
}

/* Prevent flex/grid children from forcing horizontal scroll */
.site-container > *,
.site-container--narrow > * {
  min-width: 0;
}

/* Process steps: stack number + text on very small screens */
@media (max-width: 480px) {
  .step-card > .flex {
    flex-direction: column;
    gap: 1rem;
  }
}

/* Tables stay inside the page; scroll horizontally if needed */
.overflow-x-auto {
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

@media (max-width: 640px) {
  .faq-toggle h3,
  .faq-toggle {
    gap: 0.75rem;
  }

  .faq-panel-inner {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
