/* Small layout repairs for the static copy.
   The Framer original collapses its nav behind a hamburger below ~810 px — that was
   JavaScript, and it died with the capture, so on a phone the five nav links pushed the
   theme toggle off the right edge of the screen. This keeps one honest row instead:
   tighter gaps, smaller type, and the "Now" link dropped under 600 px so everything
   (logo, four sections, theme toggle) fits a 360 px screen. */

@media (max-width: 600px) {
  /* nav spacing: 36/24 px gaps are desktop values */
  .framer-10tixi9 { gap: 10px !important; }
  .framer-1id1fsj { gap: 12px !important; }

  /* type down one notch so the row fits without wrapping */
  .framer-1id1fsj a,
  .framer-1id1fsj p { font-size: 13px !important; line-height: 1.3 !important; }

  /* "Now" is the first link in the template's nav — dropped on phones to make room.
     Delete this rule if you want it back and can live with a scrollable nav. */
  .framer-1id1fsj > div:first-child { display: none !important; }

  /* keep the toggle on screen even if a longer wordmark arrives later */
  .framer-1id1fsj { min-width: 0 !important; }

  /* four links + toggle do not fit 390px at 13px: let the row wrap instead of
     clipping 'Resources' and 'Contact' past the right edge */
  .framer-1id1fsj { flex-wrap: wrap !important; justify-content: flex-end !important;
    row-gap: 6px !important; }
  .framer-1id1fsj > * { flex: 0 0 auto !important; }
}

@media (max-width: 380px) {
  .framer-1id1fsj { gap: 8px !important; }
  .framer-1id1fsj a, .framer-1id1fsj p { font-size: 12px !important; }
}

/* ---- 640px: boxes that kept their desktop width -------------------------------
   The Framer build hard-codes column widths (640px titles, 368px text next to a
   148px cover) and only swaps them via JS variants. Without the runtime the text
   runs past the viewport and its `overflow: clip` parent hides the end of the line
   instead of scrolling — invisible to a scrollWidth check. Cap the boxes instead. */
@media (max-width: 640px) {
  .framer-text,
  [data-framer-component-type="RichTextContainer"] {
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
  }

  /* footer: one column, socials wrap under the newsletter */
  .framer-vd8ktf,
  .framer-1pv1y8i,
  .framer-EeEgs { width: 100% !important; max-width: 100% !important; }
  .framer-EeEgs { flex-direction: column !important; gap: 28px !important; }
  .framer-EeEgs * { min-width: 0 !important; }
  /* the social row is a nowrap flex row of three links: 24px gaps push
     "Youtube" past the right edge instead of wrapping */
  .framer-152mlx1,
  .framer-1jq5a0i { flex-wrap: wrap !important; }
  .framer-152mlx1 { gap: 16px 24px !important; }

  /* resources rows: cover column + text column no longer fit side by side */
  .framer-3v1x28,
  .framer-u5fc5w,
  .framer-t0ypam,
  .framer-15sy5bi { width: auto !important; max-width: 100% !important; min-width: 0 !important; }

  /* archive chips: 36px is under the 44px touch target */
  [data-cg-chip] { min-height: 44px; display: flex; align-items: center; }
}
