/* Repo-side fixes layered on the Claude Design export (repo-owned; kept across imports).
   Each rule is temporary: once design adopts it in the source, delete it here.
   Linked from every page by scripts/post_import.py. The pages use inline styles, hence !important.
   Selectors on [style*=...] must match the style text as the BROWSER serializes it after the design runtime
   renders (spaces after commas and colons; Safari also expands the `font` shorthand), e.g.
   "clamp(44px, 7.5vw, 84px)" and "width: 318px; height: 638px", not the export's compact source text. */

/* Rules 1-3 (header nav strip, two-row phone header, Foundation footer heading) were removed on 2026-11-14:
   design adopted them (safe center in the source, the burger menu in moms-nav.js, no fixed heading size). */

/* 4. Features: the interactive phone mock-ups are 318x638px with a 16px offset shadow and are built in px
      inside, so on small phones they ran off the right edge. Scale the whole phone proportionally
      (zoom keeps taps aligned). Full size from 400px up. */
@media (max-width: 399px) {
  div[style*="width: 318px; height: 638px"], div[style*="width: 318px; min-height: 638px"], div[style*="width:318px;height:638px"], div[style*="width:318px;min-height:638px"] { zoom: 0.86; }
}
@media (max-width: 359px) {
  div[style*="width: 318px; height: 638px"], div[style*="width: 318px; min-height: 638px"], div[style*="width:318px;height:638px"], div[style*="width:318px;min-height:638px"] { zoom: 0.74; }
}

/* 5. Two-column heroes (Impact Partners, About): the headline scales with the window (7-7.5vw) but sits in
      a column ~42% wide, so between ~900 and 1279px "NONPROFIT?" outgrew its column. Slightly smaller
      there only; unchanged below 900px and from 1280px up. */
@media (min-width: 900px) and (max-width: 1279px) {
  h1[style*="clamp(44px, 7.5vw, 84px)"], h1[style*="clamp(44px, 7vw, 88px)"], h1[style*="clamp(44px,7.5vw,84px)"], h1[style*="clamp(44px,7vw,88px)"] { font-size: clamp(44px, 6.6vw, 84px) !important; }
}

/* 6. Press: the hashtag pills never go below 28px type, too wide for small phones. */
@media (max-width: 399px) {
  span[style*="border-radius: 9999px"][style*="clamp(28px, 4.5vw, 48px)"], span[style*="border-radius:9999px"][style*="clamp(28px,4.5vw,48px)"] { font-size: 22px !important; padding: 12px 18px !important; max-width: 100%; }
}

/* 7. Small phones: a single long word (a surname, a hashtag) may break instead of running off the edge.
      Only affects words wider than their box; normal text is unchanged. */
@media (max-width: 399px) {
  body { overflow-wrap: break-word; }
}

/* 8. Footer menus on phones: links were 27px tall; make them comfortable thumb targets (~41px). */
@media (max-width: 767px) {
  footer nav[aria-label="Explore"] a, footer nav[aria-label="Get involved"] a { padding: 10px 0 !important; }
}

/* 9. Home "Except a village": the Get Busy screenshot is a fixed 277x566px inside a card with 30px side padding,
      so on small phones its frame ran ~15px off the right edge. Shrink it to fit, same proportions. */
@media (max-width: 399px) {
  img[style*="width: 277px"][style*="height: 566px"], img[style*="width:277px"][style*="height:566px"] { width: 100% !important; max-width: 277px !important; height: auto !important; aspect-ratio: 277 / 566; }
}

/* 10. About founders on small phones: a long surname ("Chaturantabut") ran past the screen edge; let it break. */
@media (max-width: 399px) {
  a[href*="linkedin.com/in/"] { overflow-wrap: anywhere; }
}

/* 11. (MomBassador hero cap) removed on 2026-11-14: design capped the headline at 80px in the source. */
