/* Autism Family page banner - Affirm structure (owner 2026-11-15): header on white, big light title in true black,
   a sharp full-width photo with NOTHING on it (no overlay, no text), and on Marketplace the filter card overlapping the photo.
   Also: one logo standard (same height tile, wide logos fill the width), 3-second card-picture motion, wider card row gaps,
   and the "Autism / special needs experience" label hidden on Basic cards (owner 2026-11-15). Loaded after af-crisp.css. */

/* ---------- banner ---------- */
html body .af-ban{background:#fff;color:#050505;text-align:center;position:relative;z-index:1}
html body .af-ban h1{margin:0;font:300 clamp(44px,5.4vw,104px)/1 Inter,"Open Sans",system-ui,Arial,sans-serif;letter-spacing:-.025em;color:#050505 !important;text-shadow:none;padding:clamp(34px,6.4vw,124px) 16px clamp(30px,5vw,96px)}
html body .af-ban-pic{position:relative;margin:0;background:#fff}
html body .af-ban-pic img{display:block;width:100%;height:clamp(260px,31vw,640px);object-fit:cover;filter:contrast(1.08) saturate(1.04)}
html body .af-ban--title-only h1{padding-bottom:clamp(24px,3vw,56px)}
.af-ban-crumb{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0;white-space:nowrap}
@media (max-width:767px){
  html body .af-ban h1{font-size:clamp(38px,11.5vw,66px);padding-top:clamp(26px,8vw,52px);padding-bottom:clamp(22px,6vw,40px)}
  html body .af-ban-pic img{height:clamp(240px,68vw,400px)}
}

/* Marketplace: the filter card sits half over the photo, wide, tall controls, square corners (Affirm scale) */
html body .af-ban--over + #af-main{padding-top:0}
html body .af-ban--over + #af-main .mkh{position:relative;z-index:3;margin-top:clamp(-130px,-6.5vw,-56px)}
html body .af-ban--over + #af-main .mkh .st-steps{padding:clamp(18px,2vw,38px) clamp(18px,2.6vw,46px);gap:clamp(14px,2vw,36px);border:0;border-radius:4px;background:#fff;box-shadow:0 14px 40px rgba(0,0,0,.2)}
html body .af-ban--over + #af-main .st-lab{font-size:clamp(14px,1.2vw,20px);color:#050505}
html body .af-ban--over + #af-main .st-lab b{width:clamp(24px,2vw,32px);height:clamp(24px,2vw,32px);color:#050505}
html body .af-ban--over + #af-main .st-seg,html body .af-ban--over + #af-main .st-select{border-radius:4px}
html body .af-ban--over + #af-main .st-opt{height:clamp(46px,4.4vw,76px);font-size:clamp(14px,1.25vw,20px);color:#050505;border-radius:3px}
html body .af-ban--over + #af-main .st-select{height:clamp(52px,5vw,88px);font-size:clamp(15px,1.3vw,21px);color:#050505;border:1.5px solid #050505}
@media (max-width:767px){
  html body .af-ban--over + #af-main .mkh{margin-top:-44px}
  html body .af-ban--over + #af-main .mkh .st-steps{padding:16px}
}

/* ---------- one logo standard: same tile height everywhere, wide logos use the width, square corners ---------- */
html body .mk-plogo{left:4%;bottom:8%;width:auto;min-width:21cqw;max-width:64cqw;height:21cqw;aspect-ratio:auto;padding:2.2cqw 2.8cqw;border-radius:4px;flex-direction:row;background:#fff}
html body .mk-plogo.is-dark-logo{background:#14234a}
html body .mk-plogo img{position:static;display:block;width:auto;height:100%;max-width:100%;object-fit:contain}
html body .mk-hero-media .mk-plogo{width:auto;min-width:150px;max-width:min(420px,62%);height:150px;padding:16px 20px;border-radius:4px;container-type:normal}
html body .pp-logo{width:auto;min-width:128px;max-width:min(400px,74%);height:128px;border-radius:4px;padding:14px 18px}
html body .pp-logo img{width:auto;height:100%;max-width:100%;object-fit:contain}
@media (max-width:767px){
  html body .mk-hero-media .mk-plogo{min-width:104px;height:104px;padding:12px 14px}
  html body .pp-logo{min-width:88px;height:88px;padding:10px 12px}
}

/* ---------- Basic card: no experience label (owner 2026-11-15: they link to their own site and sit under the category) ---------- */
html body .mk-bcard .mk-badge{display:none}

/* ---------- card rows: a little more air between rows (owner 2026-11-15) ---------- */
html body .mk-pgrid{gap:40px 32px}
html body .mk-grid{gap:32px}
html body .af-res-grid,html body .af-res-list{gap:32px}
@media (max-width:767px){html body .mk-pgrid{gap:32px}html body .mk-grid{gap:24px}html body .af-res-grid,html body .af-res-list{gap:24px}}

/* ---------- card pictures move slowly: 3 seconds, like the benchmark ---------- */
html body .mk-pcard-media > img,html body .mkh-ph img{transition:transform 3s cubic-bezier(.22,.61,.36,1)}
html body .mk-pcard:hover .mk-pcard-media > img,html body .mk-pcard:focus-visible .mk-pcard-media > img{transform:scale(1.07)}
@media (prefers-reduced-motion:reduce){html body .mk-pcard-media > img,html body .mkh-ph img{transition:none}html body .mk-pcard:hover .mk-pcard-media > img{transform:none}}

/* research photo: keep the girl's face in frame */
html body .af-ban-pic img[src*="research-"]{object-position:50% 8%}
/* ---------- prescreen: consent + Start span the full width under both columns; the three cards are raised and lift on touch (owner 2026-11-15) ---------- */
@media (min-width:901px){
  html body .afc .welcome{row-gap:18px;column-gap:30px;align-items:start}
  html body .afc .welcome > .stack{display:contents}
  html body .afc .welcome > .stack > *{margin-top:0;grid-column:1}
  html body .afc .welcome > div:not(.stack){grid-column:2;grid-row:1 / span 4}
  html body .afc .welcome > .stack > .ack,html body .afc .welcome > .stack > .nav-row{grid-column:1 / -1}
}
html body .afc .af-promo{background:#fff;box-shadow:0 8px 24px rgba(20,42,85,.13);transition:transform .35s cubic-bezier(.22,.61,.36,1),box-shadow .35s cubic-bezier(.22,.61,.36,1)}
html body .afc .af-promo:hover,html body .afc .af-promo:focus-visible,html body .afc .af-promo:active{transform:translateY(-4px);box-shadow:0 16px 36px rgba(20,42,85,.2)}
@media (prefers-reduced-motion:reduce){html body .afc .af-promo{transition:none}html body .afc .af-promo:hover{transform:none}}

/* Marketplace category cards (Evaluation & Diagnosis ...): the picture itself zooms slowly, 3 seconds (owner 2026-11-15) */
html body .st-card .ph{overflow:hidden}
html body .st-card .ph img{transition:transform 3s cubic-bezier(.22,.61,.36,1);will-change:transform}
html body .st-card:hover .ph img,html body .st-card:focus-visible .ph img,html body .st-card:active .ph img{transform:scale(1.08)}
html body .st-card{transition:box-shadow .35s ease,border-color .35s ease,transform .35s ease}
html body .st-card:hover,html body .st-card:focus-visible{transform:translateY(-3px);box-shadow:0 14px 32px rgba(16,48,77,.16)}
@media (prefers-reduced-motion:reduce){html body .st-card .ph img,html body .st-card{transition:none}html body .st-card:hover .ph img{transform:none}html body .st-card:hover{transform:none}}

/* pages with the new banner photo show ONE picture: the page's own intro photo is hidden (owner 2026-11-15) */
html body:has(.af-ban-pic) .af-intro-photo{display:none}

/* AI pop-up video: no controls, no touch target */
.af-nudge-banner video{pointer-events:none}

/* Get Involved keeps the owner's original volunteers photo: natural shape, no filter, so the white tees stay pure white */
html body .af-ban-pic--natural img{height:auto;aspect-ratio:2382 / 587;object-fit:cover;filter:none}
@media (max-width:767px){html body .af-ban-pic--natural img{aspect-ratio:1191 / 1174}}
