/* ============================================================
   Amir Institute — css/programs.css
   Page stylesheet for programs.html. Loaded AFTER css/site.css,
   so anything here intentionally overrides the shared base.
   ============================================================ */
/* ═══ QUICK LINKS — the row a school site lives on ═══ */
.quick{position:relative;z-index:6;margin-top:-54px}
.quick .inner{display:grid;grid-template-columns:repeat(4,1fr);gap:0;overflow:hidden;
  background:#fff;border:1px solid var(--line);border-radius:var(--r-xl);box-shadow:var(--shadow-lg)}
.qk{display:flex;gap:15px;align-items:center;padding:26px 24px;border-right:1px solid var(--line);
  transition:.22s;background:#fff}
.qk:last-child{border-right:0}
.qk:hover{background:var(--cream)}
.qk:hover .qk-ic{background:var(--green-800);color:var(--gold-light);transform:translateY(-2px)}
.qk-ic{width:48px;height:48px;border-radius:14px;background:var(--green-100);color:var(--green-700);
  display:grid;place-items:center;flex:none;transition:.22s}
.qk-ic svg{width:24px;height:24px}
.qk b{display:block;font-size:1rem;color:var(--ink);line-height:1.25}
.qk span{display:block;font-size:.84rem;color:var(--muted);margin-top:3px;line-height:1.4}
@media (max-width:1040px){.quick{margin-top:-30px}.quick .inner{grid-template-columns:repeat(2,1fr)}
  .qk:nth-child(2){border-right:0}.qk:nth-child(1),.qk:nth-child(2){border-bottom:1px solid var(--line)}}
@media (max-width:620px){.quick .inner{grid-template-columns:1fr}
  .qk{border-right:0;border-bottom:1px solid var(--line)}.qk:last-child{border-bottom:0}}
/* ════════════════ COMMUNITY LIFE — cards, panels, activities ════════════════
   Palette is inherited from :root (forest #07382D, sage #8DAA93, ivory #FAF8F0,
   sand #EADFCB, gold #C9972E, deep green #2E3A2F). Montserrat throughout.
   Progress lives in a JS variable for the page session only — no storage,
   no accounts, no child data.                                               */
.commlife{background:var(--ivory);scroll-margin-top:150px}
@media (max-width:1040px){.commlife{scroll-margin-top:120px}}

/* ── passport ── */
.passport{display:flex;align-items:center;gap:clamp(16px,2.4vw,34px);flex-wrap:wrap;
  background:#fff;border:1px solid var(--line);border-radius:var(--r-xl);
  padding:clamp(20px,2.4vw,28px) clamp(22px,2.6vw,34px);box-shadow:var(--shadow-sm);
  max-width:1000px;margin:0 auto clamp(38px,4.5vw,58px)}
.passport-h{flex:none}
.passport-h b{display:block;font-size:1.02rem;color:var(--ink);line-height:1.25}
.passport-h span{display:block;font-size:.84rem;color:var(--muted);margin-top:3px}
.stamps{display:flex;gap:10px;flex-wrap:wrap;flex:1;min-width:0}
.stamp{display:flex;flex-direction:column;align-items:center;gap:7px;min-width:84px;flex:1}
.stamp-disc{width:50px;height:50px;border-radius:50%;display:grid;place-items:center;
  border:2px dashed var(--sage);color:var(--sage);background:var(--ivory);
  transition:transform .3s cubic-bezier(.3,1.4,.5,1),background .3s,border-color .3s,color .3s}
.stamp-disc svg{width:24px;height:24px}
.stamp.got .stamp-disc{border-style:solid;border-color:var(--gold);
  background:var(--gold);color:#2E3A2F}
.stamp.pop .stamp-disc{transform:scale(1.18)}
.stamp-l{font-size:.74rem;font-weight:700;letter-spacing:.04em;color:var(--muted);text-align:center;line-height:1.3}
.stamp.got .stamp-l{color:var(--ink)}
.passport-reset{flex:none;background:none;border:0;font:inherit;font-size:.84rem;font-weight:700;
  color:var(--green-700);cursor:pointer;padding:12px 10px;border-radius:9px;min-height:44px}
.passport-reset:hover{background:var(--green-100)}
.passport-note{flex-basis:100%;font-size:.8rem;color:var(--muted);margin:0}

/* ── cards ── */
.clgrid{display:grid;grid-template-columns:repeat(2,1fr);gap:clamp(20px,2.4vw,30px);
  max-width:1280px;margin:0 auto}
.clcard{background:#fff;border:1px solid var(--line);border-radius:var(--r-xl);overflow:hidden;
  display:flex;flex-direction:column;
  transition:transform .25s ease,box-shadow .25s ease}
.clcard:hover,.clcard:focus-within{transform:translateY(-3px);box-shadow:var(--shadow)}
.clfig{position:relative;background:var(--sand);aspect-ratio:3/2;overflow:hidden}
.clfig img{width:100%;height:100%;object-fit:cover;display:block}
.clbadge{position:absolute;left:16px;top:16px;background:rgba(250,248,240,.95);
  color:var(--ink);border:1px solid rgba(7,56,45,.14);border-radius:999px;
  padding:7px 15px;font-size:.76rem;font-weight:800;letter-spacing:.04em;
  box-shadow:0 4px 14px rgba(7,56,45,.12)}
.clbody{padding:clamp(22px,2.4vw,30px);display:flex;flex-direction:column;flex:1}
.clbody h3{font-size:1.28rem;margin-bottom:9px}
.clbody p{font-size:.96rem;line-height:1.62;margin-bottom:18px;flex:1}
.act-toggle{align-self:flex-start;min-height:44px}
.act-toggle .chev{width:15px;height:15px;transition:transform .25s}
.act-toggle[aria-expanded="true"] .chev{transform:rotate(180deg)}

/* ── expanding activity panel ── */
.actpanel{border-top:1px solid var(--line);background:var(--ivory);
  padding:clamp(22px,2.4vw,30px)}
.actpanel[hidden]{display:none}
.act-h{font-size:1.02rem;font-weight:800;color:var(--ink);margin:0 0 4px}
.act-sub{font-size:.88rem;color:var(--muted);margin:0 0 18px;line-height:1.5}
.act-step{font-size:.74rem;font-weight:800;letter-spacing:.13em;text-transform:uppercase;
  color:var(--gold-dark);display:block;margin-bottom:9px}
.chips{display:flex;gap:9px;flex-wrap:wrap;margin-bottom:18px}
.chip-btn{font:inherit;font-size:.9rem;font-weight:600;min-height:44px;padding:10px 18px;
  border-radius:999px;border:1.5px solid var(--line);background:#fff;color:var(--ink);
  cursor:pointer;transition:.18s}
.chip-btn:hover{border-color:var(--sage);background:var(--green-100)}
.chip-btn[aria-pressed="true"]{background:var(--green-800);border-color:var(--green-800);color:#fff}
.act-out{background:#fff;border:1px solid var(--line);border-left:4px solid var(--gold);
  border-radius:var(--r);padding:20px 22px;margin-bottom:16px}
.act-out p{margin:0 0 10px}
.act-out p:last-child{margin-bottom:0}
.act-out .big{font-size:1.1rem;line-height:1.5;color:var(--ink);font-weight:600}
.act-out .hint{font-size:.9rem;color:var(--body)}
.act-row{display:flex;gap:10px;flex-wrap:wrap}
.act-row .btn{min-height:44px}
.act-note{font-size:.84rem;color:var(--muted);margin:14px 0 0;line-height:1.55}

/* ── breathing ring (state-driven, never free-running) ── */
.breath{display:flex;flex-direction:column;align-items:center;gap:16px;padding:10px 0 4px}
.ring-wrap{width:188px;height:188px;display:grid;place-items:center;position:relative}
.ring-bg{position:absolute;inset:0;border-radius:50%;border:2px dashed var(--sage);opacity:.5}
.ring{width:84px;height:84px;border-radius:50%;
  background:radial-gradient(circle at 42% 38%,#BBD0BE,var(--sage));
  display:grid;place-items:center;
  transition:transform var(--bt,3s) cubic-bezier(.45,.05,.55,.95)}
.ring svg{width:38px;height:38px;color:#07382D;opacity:.72}
.breath-word{font-size:1.1rem;font-weight:700;color:var(--ink);min-height:1.6em;text-align:center}
.breath-count{font-size:.86rem;color:var(--muted)}
@media (prefers-reduced-motion:reduce){
  .ring{transition:none}
}

/* ── rhythm maker ── */
.beats{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:16px;max-width:420px}
.beat{aspect-ratio:1;border-radius:var(--r);border:2px dashed var(--sage);background:#fff;
  display:grid;place-items:center;font-size:.8rem;font-weight:800;color:var(--muted);
  text-align:center;padding:6px;transition:.2s;line-height:1.2}
.beat.set{border-style:solid;border-color:var(--green-700);background:var(--green-100);color:var(--green-800)}
.beat.on{background:var(--gold);border-color:var(--gold);color:#2E3A2F;transform:scale(1.06)}
@media (prefers-reduced-motion:reduce){.beat{transition:none}.beat.on{transform:none;outline:3px solid var(--gold-dark)}}
.pads{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:18px;max-width:420px}
.pad{font:inherit;font-size:.92rem;font-weight:800;min-height:54px;border-radius:var(--r);
  border:1.5px solid var(--line);background:#fff;color:var(--ink);cursor:pointer;transition:.16s}
.pad:hover{background:var(--sand);border-color:var(--sage)}
.pad:active{transform:scale(.96)}
.sound-row{display:flex;align-items:center;gap:9px;font-size:.86rem;color:var(--body);margin-top:14px}
.sound-row input{width:18px;height:18px;accent-color:var(--green-800)}
.sound-row label{cursor:pointer;min-height:44px;display:flex;align-items:center}

/* ── decorative accents: play once after interaction, then settle ── */
.accent{position:absolute;pointer-events:none;opacity:0;transition:opacity .4s}
.accent.go{opacity:1}
.accent-steam{right:14%;top:8%;width:52px;height:62px;color:#FAF8F0}
.accent-steam path{stroke-dasharray:44;stroke-dashoffset:44}
.accent.go .accent-steam path,.accent-steam.go path{animation:steam 2.6s ease-out forwards}
@keyframes steam{to{stroke-dashoffset:-44}}
.accent-sun{right:9%;top:9%;width:54px;height:54px;color:#C9972E}
.accent.go.accent-sun{animation:sungrow .9s cubic-bezier(.3,1.3,.5,1) forwards}
@keyframes sungrow{from{transform:scale(.6);opacity:0}to{transform:scale(1);opacity:1}}
.accent-ring{right:10%;top:12%;width:62px;height:62px;color:#8DAA93}
.accent.go.accent-ring circle{animation:ringpulse 2.2s ease-out forwards}
@keyframes ringpulse{from{r:6;opacity:.9}to{r:28;opacity:0}}
.accent-spark{right:8%;top:10%;width:66px;height:66px;color:#C9972E}
.accent.go.accent-spark g>*{animation:spark 1.5s ease-out forwards}
.accent.go.accent-spark g>*:nth-child(2){animation-delay:.18s}
.accent.go.accent-spark g>*:nth-child(3){animation-delay:.36s}
@keyframes spark{0%{transform:scale(0);opacity:0}45%{transform:scale(1);opacity:1}100%{transform:scale(.7);opacity:0}}

/* ── one-time entrance ──
   Scoped to .js-anim, which JS adds to <html> on boot. Without JS the cards
   are simply visible — nothing is hidden behind an animation that may never
   run. */
.js-anim .cl-in{opacity:0;transform:translateY(12px)}
.js-anim .cl-in.shown{opacity:1;transform:none;
  transition:opacity .45s ease,transform .45s cubic-bezier(.2,.7,.3,1)}

@media (prefers-reduced-motion:reduce){
  .js-anim .cl-in,.js-anim .cl-in.shown{opacity:1;transform:none;transition:none}
  .clcard:hover,.clcard:focus-within{transform:none}
  .accent,.accent.go{animation:none!important;opacity:1}
  .stamp-disc{transition:none}
}

@media (max-width:900px){
  .clgrid{grid-template-columns:1fr}
  .passport{flex-direction:column;align-items:flex-start}
  .stamps{width:100%}
}
@media (max-width:420px){
  .stamp{min-width:68px}
  .stamp-disc{width:44px;height:44px}
  .stamp-l{font-size:.68rem}
  .pads,.beats{grid-template-columns:repeat(2,1fr)}
}

.sr-live{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}


/* ── inner-page heroes: the background photograph IS the image.
      A second floating photo on top of it just repeated the same scene. ── */
.phero-grid{grid-template-columns:minmax(0,1fr)}
.phero-copy{max-width:min(720px,60%)}
.phero .wrap{padding-top:clamp(70px,7.4vw,108px);padding-bottom:clamp(80px,8.4vw,120px);min-height:clamp(380px,34vw,520px);display:flex;flex-direction:column;justify-content:center}
.phero h1{max-width:17ch}
/* school + garden keep their seal - a brand mark, not a repeated photo */
.phero-grid.has-seal{grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr)}
.phero-grid.has-seal .phero-copy{max-width:none}
@media (min-width:1500px){ .phero-copy{max-width:min(800px,56%)} }
@media (max-width:1040px){
  .phero-copy{max-width:none}
  .phero-grid.has-seal{grid-template-columns:minmax(0,1fr)}
}


/* ── light status band (was a wall of dark green straight after the hero) ── */
.statlight{background:var(--sand)}
.statlight .sec-head{margin-left:0}
.statgrid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);
  gap:clamp(30px,3.6vw,56px);align-items:center}
.statfig{border-radius:var(--r-xl);overflow:hidden;aspect-ratio:4/3;background:var(--green-100);
  box-shadow:var(--shadow)}
.statfig img{width:100%;height:100%;object-fit:cover;display:block}
.factgrid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px;margin-top:28px}
.factcard{background:#fff;border:1px solid var(--line);border-radius:var(--r-lg);
  padding:22px 22px 20px;border-top:4px solid var(--gold);position:relative}
.factcard .k{display:block;font-size:.7rem;font-weight:800;letter-spacing:.14em;
  text-transform:uppercase;color:var(--gold-dark);margin-bottom:9px}
.factcard .v{display:block;font-size:clamp(1.35rem,1.9vw,1.75rem);font-weight:800;
  letter-spacing:-.02em;color:var(--ink);line-height:1.12}
.factcard .n{display:block;font-size:.84rem;line-height:1.5;margin-top:7px;color:var(--muted)}
.factcard.todo{border-top-color:var(--sage);background:#FFFDF8}
.factcard.todo .v{font-size:1.02rem;font-weight:700;color:var(--muted)}
.liveb{display:inline-flex;align-items:center;gap:9px;background:var(--green-100);
  border:1px solid rgba(15,81,50,.22);color:var(--green-700);padding:8px 18px 8px 13px;
  border-radius:999px;font-size:.75rem;font-weight:800;letter-spacing:.13em;
  text-transform:uppercase;margin-bottom:16px}
.liveb i{width:8px;height:8px;border-radius:50%;background:var(--gold);display:block;
  box-shadow:0 0 0 0 rgba(201,151,46,.6);animation:pulse 2.2s infinite}
.reglight{display:grid;grid-template-columns:repeat(2,1fr);gap:16px;margin-top:20px}
.regcard{display:flex;gap:14px;align-items:flex-start;background:#fff;border:1px solid var(--line);
  border-radius:var(--r);padding:18px 20px}
.regcard .i{width:38px;height:38px;border-radius:11px;background:var(--green-100);
  color:var(--green-700);display:grid;place-items:center;flex:none}
.regcard .i svg{width:19px;height:19px}
.regcard b{display:block;color:var(--ink);font-size:.95rem;margin-bottom:2px}
.regcard span{font-size:.87rem;line-height:1.55;color:var(--body);display:block}
.slotlight{border:2px dashed rgba(201,151,46,.5);border-radius:var(--r-lg);background:#FFFDF8;
  display:grid;place-items:center;text-align:center;padding:26px 20px;min-height:190px;color:var(--muted)}
.slotlight svg{width:32px;height:32px;color:var(--gold-dark);opacity:.8;margin-bottom:11px}
.slotlight b{display:block;color:var(--ink);font-size:.93rem;margin-bottom:5px}
.slotlight span{font-size:.82rem;line-height:1.5;display:block;max-width:28ch}
.slotrow{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:30px}

/* ── a program section with a picture beside it ── */
.progfig{border-radius:var(--r-xl);overflow:hidden;box-shadow:var(--shadow);
  background:var(--green-100);aspect-ratio:4/3}
.progfig img{width:100%;height:100%;object-fit:cover;display:block}
.progsplit{display:grid;grid-template-columns:minmax(0,.86fr) minmax(0,1.14fr);
  gap:clamp(28px,3.4vw,56px);align-items:center;margin-bottom:clamp(30px,3.4vw,48px)}
.progsplit.rev{grid-template-columns:minmax(0,1.14fr) minmax(0,.86fr)}
.progsplit.rev .progfig{order:2}
.progsplit>div>p{max-width:62ch}

@media (max-width:1040px){
  .statgrid,.progsplit,.progsplit.rev{grid-template-columns:minmax(0,1fr)}
  .progsplit.rev .progfig{order:0}
  .slotrow,.reglight{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:620px){ .factgrid{grid-template-columns:minmax(0,1fr)} }


/* card titles are <h3> so the heading order never skips a level;
   these keep the compact card look that <h4> used to give them */
.svc h3,.dot-card h3,.give h3,.person h3,.ev-body h3,.pt h3{
  font-weight:700;letter-spacing:-.005em;line-height:1.3}
.svc h3{font-size:1.06rem}.dot-card h3{font-size:1.04rem}
.give h3{font-size:1.02rem}.person h3{font-size:1.04rem}
.ev-body h3{font-size:1.08rem}.pt h3{font-size:1rem}


/* footer column titles and small card titles are <h3> for correct heading
   order; these keep the small-caps label look they had as <h4> */
.ftr h3{color:#fff;font-size:.82rem;letter-spacing:.14em;text-transform:uppercase;
  margin-bottom:18px;font-weight:700}
.hours-card h3{color:#fff;font-size:1.02rem;margin-bottom:16px;font-weight:700;letter-spacing:0}
.tr h3{font-size:1.06rem;margin-bottom:7px;font-weight:700;letter-spacing:-.005em}

/* ════════════════ CRISIS NUMBERS ════════════════
   Deliberately plain and high-contrast: someone reading this is not
   browsing, and the numbers must be tappable at a glance. */
.crisis-nums{margin-top:clamp(26px,3vw,38px);background:rgba(255,255,255,.1);
  border:1px solid rgba(255,255,255,.2);border-left:4px solid var(--gold);
  border-radius:var(--r);padding:clamp(20px,2.4vw,28px) clamp(22px,2.6vw,30px)}
.crisis-nums p{margin:0 0 8px;font-size:1rem;line-height:1.6;color:#fff}
.crisis-nums p:last-child{margin-bottom:0}
.crisis-nums b{color:#fff}
.crisis-nums a{color:var(--gold-light);font-weight:800;text-decoration:underline;
  text-underline-offset:2px;white-space:nowrap}

/* ════════════════ À LA CARTE ════════════════ */
.alc-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(272px,1fr));
  gap:clamp(16px,2vw,24px);max-width:1280px;margin:clamp(34px,4vw,54px) auto 0}
.alc{background:#fff;border:1px solid var(--line);border-radius:var(--r-lg);
  padding:clamp(22px,2.4vw,28px);box-shadow:var(--shadow-sm)}
.alc-when{display:inline-block;font-size:.7rem;font-weight:800;letter-spacing:.11em;
  text-transform:uppercase;color:var(--gold-dark);background:var(--gold-soft);
  border-radius:999px;padding:5px 12px;margin-bottom:12px}
.alc h3{font-size:1.06rem;margin-bottom:9px;line-height:1.3}
.alc p{font-size:.93rem;line-height:1.6;margin:0}
.bundles{max-width:1280px;margin:clamp(26px,3vw,40px) auto 0;background:var(--green-100);
  border-radius:var(--r-xl);padding:clamp(26px,3vw,40px)}
.bundles h3{font-size:1.14rem;margin-bottom:14px}
.bundles ul{list-style:none;margin:0 0 16px;padding:0;display:grid;gap:10px;
  grid-template-columns:repeat(auto-fit,minmax(262px,1fr))}
.bundles li{display:flex;gap:11px;align-items:flex-start;font-size:.95rem;line-height:1.55;
  flex-wrap:wrap}
.bundles li b{flex:1 0 100%;margin-left:19px;margin-top:-1.55em}
.bundles li::before{content:"";flex:none;width:8px;height:8px;border-radius:50%;
  background:var(--green-700);margin-top:.56em}
.bundles b{color:var(--ink)}
.bundles .fineprint{font-size:.86rem;color:var(--muted);margin-bottom:20px;max-width:70ch}

/* ════════════════ AFTERSCHOOL ════════════════ */
.asgrid{display:grid;grid-template-columns:.8fr 1.3fr .9fr;gap:clamp(16px,2vw,26px);
  max-width:1180px;margin:0 auto}
.as-when,.as-week,.as-who{background:#fff;border:1px solid var(--line);
  border-radius:var(--r-lg);padding:clamp(22px,2.4vw,30px);box-shadow:var(--shadow-sm)}
.as-when{background:var(--green-800);color:#fff;display:flex;flex-direction:column;
  justify-content:center;text-align:center}
.as-when b{display:block;font-size:1.22rem;color:#fff;margin:8px 0 4px}
.as-time{font-size:1.6rem;font-weight:800;color:var(--gold-light);letter-spacing:-.02em}
.as-label{display:block;font-size:.7rem;font-weight:800;letter-spacing:.14em;
  text-transform:uppercase;color:var(--gold-dark);margin-bottom:10px}
.as-when .as-label{color:var(--gold-light)}
.as-days{list-style:none;margin:0;padding:0;display:grid;gap:9px}
.as-days li{display:flex;gap:12px;align-items:baseline;font-size:.97rem;
  padding-bottom:9px;border-bottom:1px solid var(--line)}
.as-days li:last-child{border-bottom:0;padding-bottom:0}
.as-days b{flex:none;min-width:38px;font-size:.76rem;font-weight:800;letter-spacing:.08em;
  text-transform:uppercase;color:var(--green-700)}
.as-note{font-size:.88rem;color:var(--muted);margin:14px 0 0}
.as-who p{font-size:.95rem;margin:0}
@media (max-width:980px){.asgrid{grid-template-columns:1fr}}
