/* Programs page only. From the comp's programs.html <style> block (Nov 23), review-only rules cut (source lines, owed
   note, client question). Kept by hand, not by scripts/port_comp_styles.py: the teacher-training photo keeps
   height:auto (the theme's <img> carries width and height attributes), which the comp's rule does not have. */
/* Programs page only */

/* learn the practice: one course, one door to sessions */
.learn .course{border-top:2px solid var(--ink);padding-top:18px}
.learn .hours{font:400 64px/1 var(--serif);color:var(--blue)}
.learn .hours small{font:700 16px var(--sans);color:var(--ink);margin-left:8px}
.learn .course p{color:var(--body);margin-top:10px;max-width:46ch}
.learn .also{margin-top:30px;padding:20px 22px;border-radius:14px;background:var(--sky)}
.learn .also p{color:var(--body);font-size:17px;margin:6px 0 12px}

/* teacher training ladder: a rail draws down once, rungs arrive one by one */
.ladder{padding-left:0}
.ladder .rung{position:relative}
.ladder .rung .n{position:relative;z-index:1}
.ladder .rung h3 small{font:700 15px var(--sans);color:var(--muted);margin-left:8px;letter-spacing:0}
.ladder .rung .pre{font-size:15px;color:var(--muted);margin-top:6px}
.ladder .rail{position:absolute;left:27px;top:46px;bottom:46px;width:2px;background:linear-gradient(180deg,var(--blue),var(--green),var(--purple),var(--ink));pointer-events:none}
.ladder .rail.rv{opacity:1;transform-origin:top;transition:transform 3s var(--ease)}
.js .ladder .rail.rv{transform:scaleY(0)}
.ladder .rail.rv.in{transform:scaleY(1)}
.ladder .rung .slot.text{margin-top:10px;min-height:0;padding:12px 14px}
.cap{font-size:14px;color:var(--muted);margin-top:8px}

/* training: sticky left panel (title, subtitle, source) with a vertical breath-line map of the ladder.
   The three logo lines draw down as the visitor scrolls the rungs; each dot fills when its rung is reached. */
.train .tpanel h2{max-width:none}
.lad-art{display:none}
.lad-art path{fill:none;stroke-width:2.2;stroke-linecap:round}
.lad-art circle{fill:#fff;stroke:var(--c);stroke-width:2.5;transition:fill .5s var(--ease)}
.lad-art text{font:500 18px var(--sans);fill:var(--muted);transition:fill .5s var(--ease)}
.lad-art g.on circle{fill:var(--c)}
.lad-art g.on text{fill:var(--ink);font-weight:700}
.ladder .rung .n{transition:box-shadow .5s var(--ease)}
.ladder .rung.on .n{box-shadow:0 0 0 5px #fff,0 0 0 7px var(--rule)}
.special{margin-top:40px}
.signup{margin-top:26px}
/* teacher-training photo above the ladder: same look as the in-section photos on About (rounded, muted caption) */
.train-photo{margin:0 0 36px}
.train-photo img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;object-position:50% 40%;border-radius:14px}
.train-photo .cap{font-size:14px;color:var(--muted);margin-top:8px}

/* hero: two lines, each phrase on its own */
.phero h1{max-width:none}
.phero h1 span{display:block}

/* section heads run the full content width: title on one line, subtitle beneath */
.head h2{max-width:none}
.head .lead{max-width:none}
.split.body{margin-top:36px}

/* everyday life and performance: three quoted uses on a ruled row */
.uses{list-style:none;display:grid;gap:22px;margin-top:34px}
.uses li{border-top:2px solid var(--blue);padding-top:16px}
.uses li:nth-child(2){border-top-color:var(--teal)}
.uses li:nth-child(3){border-top-color:var(--green)}
.uses q{font:400 21px/1.4 var(--serif);color:var(--ink);quotes:"\201C" "\201D"}

/* organizations: three steps, then where it has worked */
.worked{margin-top:44px;padding-top:24px;border-top:1px solid var(--rule)}
.worked .places{font-size:19px;color:var(--body)}
.worked .places .tlink{white-space:nowrap}
.worked .fact{font:400 22px/1.4 var(--serif);color:var(--ink);margin-top:20px}

/* Ukraine callout band: title on one line, two columns, centered button */
.ukr-band{padding:70px 0}
.ukr-band .cols{display:grid;gap:18px;margin-top:22px}
.ukr-band blockquote{font:400 22px/1.4 var(--serif);color:#fff;padding-left:18px;border-left:3px solid #e8c559}
.ukr-band .acts{margin-top:32px;display:flex;flex-wrap:wrap;gap:12px;justify-content:center}
.bring{margin-top:44px;display:grid;gap:14px;max-width:60ch}

/* schools & families */
.kids .places{margin-top:22px;display:grid;gap:8px;list-style:none}
.kids .places li{padding-left:18px;position:relative;color:var(--body);font-size:17px}
.kids .places li:before{content:"";position:absolute;left:0;top:.6em;width:8px;height:8px;border-radius:50%;background:var(--green)}
.kids p+p{margin-top:14px}
.kids .body p{color:var(--body);max-width:62ch}

/* upcoming courses list */
.upc{margin-top:30px;border-top:1px solid var(--rule)}
.upc li{list-style:none;display:grid;gap:4px;padding:20px 0;border-bottom:1px solid var(--rule)}
.upc .d{font:400 20px var(--serif);color:var(--blue)}
.upc b{font:400 22px/1.25 var(--serif);color:var(--ink)}
.upc span{color:var(--body);font-size:16px}
.upc .st{font-size:15px;color:var(--muted)}
.upc-slots{display:grid;gap:18px;margin-top:30px}
.upc-yr{font-size:26px;color:var(--ink);margin-top:44px}
#courses .lead{max-width:none}
/* quoted lines: semi-bold sans, not the title serif */
.uses q{font:600 19px/1.5 var(--sans)}
.worked .fact{font:600 20px/1.5 var(--sans)}
.ukr-band blockquote{font:600 20px/1.5 var(--sans)}
.final p{max-width:none}

/* breath-line dividers on this page run the full width at once; they still breathe */
.js .thread path{stroke-dasharray:none!important;stroke-dashoffset:0!important}
.bring p{margin-top:0}

@media (min-width:900px){
  .upc li{grid-template-columns:240px 1fr;column-gap:40px}
  .upc li>*:not(.d){grid-column:2}
  .upc .d{grid-row:1/span 3}
  .upc-slots{grid-template-columns:1fr 1fr}
  .train .split{grid-template-columns:.85fr 1.15fr;margin-top:0}
  .train .tpanel{position:sticky;top:96px;align-self:start}
  .train .tpanel h2{font-size:44px;line-height:1.08}
  .lad-art{display:block;width:100%;height:min(440px,calc(100vh - 470px));min-height:220px;margin-top:28px;overflow:visible}
  .ladder .rail{display:none}
  .uses{grid-template-columns:repeat(3,1fr);gap:40px}
  /* the longest title: sized so it still runs on one line at desktop widths */
  .org .head h2{font-size:min(42px,calc((100vw - 96px) / 34))}
  .steps.three{grid-template-columns:repeat(3,1fr);gap:40px}
  .steps.three .bar{right:calc(33.333% - 53px)}
  .steps.three .n{position:relative;z-index:1}
  .steps.three .step{align-content:start}
  .ukr-band .cols{grid-template-columns:1fr 1fr;gap:56px;align-items:start}
}
