/* Dona8 responsive and cross-device consistency patch — 16 Nov 2026.
   Add after styles.css and dona8-brand.css. No API/database changes. */
:root { color-scheme: light; }
html { scroll-padding-top: 104px; }
body { min-width: 0; }
img, video { max-width: 100%; }
button, a, input, select, textarea { touch-action: manipulation; }
button, a { -webkit-tap-highlight-color: transparent; }
.container, .hero-grid, .hero-copy, .hero-art, .form-shell, .form-content,
.form-aside, .ngo-grid, .ngo-left, .ngo-right, .footer-top, .footer-links,
.feature-grid, .feature-card, .step, .step-grid, .steps-grid { min-width: 0; }
h1,h2,h3 { overflow-wrap: break-word; }
:where(.button, .mobile-menu, .button-back, .audience-tab) { min-height: 44px; }
:where(input,select,textarea) { max-width: 100%; }

/* Icons are inline SVG paths (same artwork on iOS, Android and desktop). */
.ui-icon { width: 1em; height: 1em; display: inline-block; vertical-align: -0.15em;
  color: inherit; fill: none; stroke: currentColor; stroke-width: 1.9;
  stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.ui-icon--spark, .ui-icon--diamond { fill: currentColor; stroke: none; }
.button .ui-icon, .button-back .ui-icon { width: 19px; height: 19px; vertical-align: middle; }
.button > span[aria-hidden="true"] { display: inline-flex; align-items:center; line-height: 1; }
.section-kicker .ui-icon, .step-index .ui-icon, .ngo-list .ui-icon,
.footer-links .ui-icon { width: 15px; height: 15px; vertical-align: -2px; }
.trust-icon .ui-icon, .sticker-icon .ui-icon { width: 23px; height: 23px; }
.hero-photo-shape .ui-icon, .final-star .ui-icon,
.form-aside-heart .ui-icon { width: 1em; height: 1em; display: block; }
.strip-inner .ui-icon { height: 21px; width: 21px; }
.step-icon .ui-icon { height: 0.85em; width: 0.85em; }
.feature-icon-circle .ui-icon { width: 0.85em; height: 0.85em; }
.success-symbol .ui-icon { width: 35px; height: 35px; }
.orbit-mini .ui-icon { width: 1em; height: 1em; }

/* Tablet: consistent navigation, stacked intro and more room for forms. */
@media (max-width: 900px) {
  .site-header { z-index: 50; }
  .site-header .nav-container { gap: 12px; }
  .nav-actions { margin-left: auto; }
  .desktop-nav { display: none; }
  .mobile-menu { display: flex; flex: 0 0 44px; width: 44px; height: 44px;
    align-items: center; justify-content: center; padding: 11px; border-radius: 10px; }
  #mobileNav:not([hidden]) { display: flex; background: #fff; padding: 12px max(20px, 5vw) 24px;
    border-bottom: 1px solid #eee8e5; box-shadow: 0 14px 24px rgba(0,0,0,.06); }
  #mobileNav a { display: flex; align-items: center; min-height: 44px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-copy, .hero-description { max-width: 740px; }
  .section-intro, .how-top { display: block; }
  .section-intro > p, .how-top > p { max-width: 640px; margin-top: 20px; }
  .form-shell { grid-template-columns: minmax(0, 1fr); }
  .form-content { min-width: 0; }
  .hero-art.brand-hero-art { max-width: 590px; }
}
@media (max-width: 720px) {
  .feature-grid { grid-template-columns: minmax(0, 1fr); }
  .steps-grid { grid-template-columns: minmax(0, 1fr); }
  .field-row, .rank-grid { grid-template-columns: minmax(0, 1fr); }
  .rank-grid label { display:flex; align-items:center; flex-direction:row; justify-content:space-between; gap:14px; }
  .rank-grid select { width:min(56%,220px); }
}
/* Phones: one-column calls to action, compact hero and easy-to-tap forms. */
@media (max-width: 600px) {
  html { scroll-padding-top: 82px; }
  .container { width: calc(100% - 36px); max-width: 100%; }
  .site-header .nav-container { min-height: 72px; height: 72px; }
  .site-header .brand-image { width: min(45vw, 174px); height: auto; max-height: 55px; }
  .nav-actions .button { display: none; }
  .mobile-menu { display: flex; }
  .hero-section { padding: 35px 0 24px; }
  .hero-grid { gap: 23px; }
  .eyebrow { max-width: 100%; font-size: clamp(8px, 2.45vw, 10px);
    line-height: 1.45; letter-spacing: .04em; padding: 10px 11px; }
  .hero-copy h1 { font-size: clamp(37px, 10.2vw, 56px); line-height: 1.14;
    max-width: 100%; margin: 23px 0 20px; letter-spacing: -.055em; }
  .hero-copy h1 span { overflow-wrap: anywhere; }
  .hero-description { font-size: 14px; line-height: 1.72; }
  .hero-buttons { display: flex; flex-direction: column; gap: 10px; margin: 26px 0 25px; }
  .hero-buttons .button { flex: none; width: 100%; min-height: 52px;
    justify-content: space-between; text-align: left; padding: 16px 19px; white-space: normal; }
  .hero-trust { font-size: 12px; }
  .hero-art.brand-hero-art { width: 100%; max-width: 460px; height: clamp(285px, 91vw, 390px);
    margin: 3px auto 5px; }
  .hero-photo-main { inset: 0; border-radius: 22px; }
  .hero-photo-secondary { display: none; }
  .hero-photo-sticker { right: 8px; top: 8px; max-width: min(76%, 210px);
    padding: 10px 12px; transform: rotate(1deg); gap: 8px; }
  .hero-photo-sticker strong { font-size: 10px; }
  .hero-photo-sticker small { font-size: 9px; }
  .hero-photo-label { left: 19px; right: 14px; bottom: 21px; max-width: 75%; }
  .hero-photo-label strong { font-size: clamp(24px, 7vw, 31px); }
  .hero-photo-shape { right: 5px; bottom: -13px; font-size: 38px; }
  .hero-bottom { font-size: 8px; }
  .value-strip .strip-inner { display: grid; grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 14px 10px; padding: 20px 0; overflow: visible; white-space: normal; }
  .strip-inner > i { display: none; }
  .strip-inner > span { display: flex; justify-content: center; align-items: center;
    min-height: 45px; text-align: center; font-size: 9px; line-height: 1.55;
    border: 1px solid #f2e6e2; background: #fff; padding: 7px; border-radius: 10px; }
  .section { padding: 70px 0; }
  .section-intro h2, .how-top h2, .waitlist-heading h2 { font-size: clamp(35px, 9vw, 48px); }
  .ngo-left h2 { font-size: clamp(37px, 9.5vw, 52px); }
  .feature-card { min-height: 265px; }
  .feature-lime {
    min-height: 0;
    justify-content: flex-start;
    gap: 16px;
  }
  .feature-lime .feature-shape {
    position: static;
    align-self: flex-end;
    max-width: 100%;
  }
  .feature-lime .chart-card {
    width: 146px;
    max-width: 100%;
    height: auto;
    padding: 12px;
    transform: none;
  }
  .feature-lime .bars { height: 38px; }
  .form-shell { border-radius: 19px; overflow: hidden; }
  .form-aside { padding: 20px 18px; }
  .form-content { padding: 22px 15px; }
  .audience-selector { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
  .audience-tab { min-width: 0; min-height: 48px; font-size: 12px; line-height: 1.35;
    padding: 10px 7px; white-space: normal; }
  .form-head { display: flex; flex-wrap: wrap; gap: 8px; }
  .form-head h3 { font-size: 23px; line-height: 1.2; }
  .form-head p, .field-help { font-size: 12px; }
  .form-field { font-size: 13px; }
  .form-field input, .form-field select, .form-field textarea, .rank-grid select,
  .other-input { font-size: 16px; line-height: 1.3; min-height: 46px; }
  .field-row, .rank-grid, .radio-grid { grid-template-columns: minmax(0,1fr); }
  .rank-grid label { min-width:0; padding: 11px; font-size: 12px; }
  .rank-grid select { width: 54%; }
  .chip-grid { gap: 8px; }
  .chip-grid span, .radio-grid label span { display: inline-flex; align-items: center;
    min-height: 44px; font-size: 12px; line-height: 1.35; }
  .radio-grid label span { width: 100%; font-size: 13px; }
  .interest-options label > span { min-height: 53px; }
  .form-navigation { flex-wrap: wrap; gap: 8px; }
  .form-navigation .form-nav-spacer { display: none; }
  .form-navigation #nextStep:not([hidden]),
  .form-navigation #submitNGO:not([hidden]),
  .form-navigation .button-submit:not([hidden]) { flex: 1 1 100%; width: 100%; }
  .form-navigation #backStep:not([hidden]) { min-height: 44px; }
  .form-navigation .button { min-height: 50px; }
  .footer-top { gap: 25px; }
  .site-footer .footer-brand .brand-image { width: min(65vw,230px); max-height:76px; }
  .footer-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr));
    column-gap: 18px; row-gap: 26px; }
  .footer-links > div { min-width:0; }
  .footer-bottom { overflow-wrap: anywhere; font-size: 10px; line-height: 1.7; }
}
@media (max-width: 350px) {
  .container { width: calc(100% - 28px); }
  .hero-copy h1 { font-size: 36px; }
  .hero-art.brand-hero-art { height: 280px; }
  .hero-photo-label { max-width: 80%; }
  .hero-photo-label strong { font-size: 22px; }
  .form-content { padding-inline: 12px; }
  .interest-options label > span { padding-right: 8px; }
  .footer-links { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
