/* Additions for the after-school and camp page (page.css and cs.css are the partners page's files, unchanged). */
/* Hero and rotating headline: copied from the library page (library-landing-2026-10-26/package/templates/page.css, lines 317 to 341). */

/* Rotating hero (2026-10-30, Matt), modeled on the community schools page: video on the right half on desktop, fading to white under the words;
   headline 48px on phones up to 88px on wide screens; the rolling phrase reserves the height of the longest phrase so nothing jumps. */
.hero-video { object-fit: cover; }
.rot-h1 { font-size: clamp(48px, 5.5vw, 88px); line-height: 1.04; letter-spacing: -.01em; margin: 0; }
.rot-slot { display: grid; align-items: center; justify-items: center; overflow: hidden; padding: .2em 0; margin: -.2em 0; color: var(--fm-orange); }
.rot, .rot-size { grid-area: 1 / 1; }
/* Program phrases run up to 14em wide: two centered lines on phones, one line on desktop (2026-10-30). */
.rot-slot { font-size: .86em; }
.rot-size { visibility: hidden; pointer-events: none; }
.rot { transform: translateY(0); transition: transform .6s cubic-bezier(.3, .7, .2, 1); }
.rot--below { transform: translateY(2.6em); transition: none; }
.rot--above { transform: translateY(-2.6em); }
@media (prefers-reduced-motion: reduce) { .rot { transition: none; } }
@media (min-width: 900px) {
  .rot-h1, .lp-hero-copy .lp-hero-sub, .lp-hero-copy .lp-hero-note, .lp-hero-copy .lp-hero-themes { text-align: left; }
  .rot-slot { justify-items: start; font-size: 1.3em; white-space: nowrap; width: max-content; max-width: none; }
  .lp-hero { display: block; position: relative; min-height: min(78vh, 680px); }
  .lp-hero-media { position: absolute; top: 0; right: 0; bottom: 0; width: 50%; aspect-ratio: auto; }
  .lp-hero-media::after { width: 45%; background: linear-gradient(to right, var(--fm-white) 0%, var(--fm-white) 12%, rgba(255, 255, 255, 0) 100%); }
  .lp-hero-copy { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; min-height: min(78vh, 680px); max-width: 66%; padding: 48px 2vw 48px 8vw; }
  .lp-hero-copy p { margin-left: 0; margin-right: 0; }
  .lp-hero-copy .btn-stack { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 10px; margin-top: 20px; }
  .lp-hero-copy .lp-hero-sub { font-size: clamp(20px, 1.9vw, 26px); }
}
.hero-video { object-position: center 35%; }
.lp-hero-copy .lp-hero-note { font-size: 14px; color: var(--fm-soft-ink); }
.rot-slot { color: var(--fm-orange); }

/* Section 2, what kids get: video in the library's "Made for library programs" slot */
.aud-photo video { display: block; width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; border-radius: 14px; box-shadow: var(--shadow-raised-card); background: var(--fm-ink); }
#learners .reasons { margin-bottom: 18px; }

/* Section 3, simple for leaders: timeline beside three notes */
.simple-grid { display: grid; gap: 28px; margin-top: 28px; align-items: start; }
@media (min-width: 900px) { .simple-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; } }
.simple-notes { display: grid; gap: 16px; }
.simple-notes .panel { margin: 0; padding: 20px 24px; }
.simple-notes .panel h3 { margin-bottom: 6px; }
.simple-notes .panel p:last-child { margin-bottom: 0; }
#simple .timeline { background: var(--fm-paper); border: 1px solid var(--fm-line); border-radius: 14px; padding: 24px 22px; }

/* Quote band (yellow, as on the library page) */
#proof.band--gold .quote-card { background: var(--fm-white); }
#proof.band--gold .proof-lead { color: var(--fm-ink); }

/* session timeline */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; text-align: left; }
.timeline li { display: flex; gap: 14px; align-items: flex-start; }
.tl-time { flex: 0 0 58px; padding: 4px 0; border-radius: 8px; background: var(--fm-pink); color: var(--fm-ink); font-weight: 700; font-size: 15px; text-align: center; line-height: 1.4; }
.timeline h3 { font-size: 18px; margin: 0 0 2px; }
.timeline p { margin: 0; font-size: 16px; color: var(--fm-soft-ink); }
.run-note { margin: 18px 0 28px; }

/* where Sparks fit */
.fit-cards { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); margin-top: 28px; }
@media (min-width: 720px) { .fit-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .fit-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.fit-card { background: var(--fm-white); border-radius: 12px; padding: 24px 22px 26px; border: 1px solid var(--fm-line); box-shadow: var(--shadow-soft); }
.fit-card h3 { font-size: 18px; margin: 0 0 8px; }
.fit-card p { margin: 0; color: var(--fm-soft-ink); font-size: 16px; }

/* all 17 Sparks: name, grades and minutes under the photo */
.spark-grid--all { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.spark-grid--all .spark-card { flex: 0 0 calc(50% - 6px); background: var(--fm-white); border: 1px solid var(--fm-line); line-height: 1.3; }
@media (min-width: 800px) { .spark-grid--all { gap: 16px; } .spark-grid--all .spark-card { flex-basis: calc(25% - 12px); } }
@media (min-width: 1100px) { .spark-grid--all .spark-card { flex-basis: calc(20% - 13px); } }
.spark-grid--all .spark-card figcaption { position: static; padding: 12px 14px 14px; background: var(--fm-white); color: var(--fm-ink); }
.spark-grid--all .spark-card strong { font-size: 17px; margin-bottom: 4px; }
.spark-grid--all .spark-card small { font-size: 14px; opacity: 1; color: var(--fm-soft-ink); font-weight: 500; }
@media (max-width: 719px) { .spark-grid--all .spark-card strong { font-size: 15px; } .spark-grid--all .spark-card small { font-size: 14px; } .spark-grid--all .spark-card figcaption { padding: 10px 10px 12px; } }

/* packs: per-kid line */
.pack-kid { display: block; font-size: 15px; color: var(--fm-soft-ink); margin-top: 2px; }
#packs .pack-panels { max-width: 1100px; margin: 28px auto 0; }

/* proof */
.proof-lead { max-width: 760px; margin: 32px auto 0; font-size: 17px; }
.also-head { font-size: 18px; margin: 28px 0 12px; }
.chips { list-style: none; margin: 0 auto; padding: 0; max-width: 980px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chips li { padding: 8px 16px; border-radius: 999px; background: var(--fm-paper); border: 1px solid var(--fm-line); font-size: 15px; }
.chips li.chip-main { background: var(--fm-ink); color: var(--fm-white); border-color: var(--fm-ink); font-weight: 600; }
#proof .quote-row { margin-top: 28px; margin-left: auto; margin-right: auto; }

.pack-ship { margin-top: 20px; }

/* faq */
.faq-shell { max-width: 820px; }
.faq-more { margin-top: 20px; }
.faq-body a { color: var(--fm-ink); }

/* large buttons: fit the label on one line */
.talk-btn { padding: 13px 18px; min-width: 0; text-align: center; }

/* Trusted by youth programs (logo wall adapted from the homepage "Trusted by" wall; classes scoped yt-). */
.yt { position: relative; height: 200vh; text-align: center; background: var(--fm-white); }
.yt__stick { position: sticky; top: 0; height: 100vh; overflow: hidden; display: grid; place-items: center; }
.yt__field { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3vw; padding: 0 3vw;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 50%, transparent 96%); mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 50%, transparent 96%); }
.yt__col { display: flex; flex-direction: column; align-items: center; gap: 9vh; will-change: transform; }
.yt__col img { width: min(190px, 100%); height: 84px; object-fit: contain; max-width: none; }
.yt__head { position: relative; z-index: 2; padding: 7vh 9vw; background: radial-gradient(closest-side, #fff 62%, rgba(255, 255, 255, 0.85) 78%, rgba(255, 255, 255, 0)); }
.yt__head h2 { font-size: clamp(28px, 2.6vw, 30px); line-height: 1.27; }
.yt__head p { margin: 14px auto 0; max-width: 520px; font-size: 17px; color: var(--fm-soft-ink); }
.yt__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 767px) {
  .yt { height: 180vh; }
  .yt__field { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5vw; }
  .yt__col { gap: 7vh; }
  .yt__col img { height: 52px; }
  .yt__head { padding: 6vh 5vw; background: radial-gradient(closest-side, #fff 80%, rgba(255, 255, 255, 0.92) 90%, rgba(255, 255, 255, 0)); }
  .yt__head p { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .yt { height: auto; }
  .yt__stick { position: relative; height: auto; padding: 64px 16px; display: flex; flex-direction: column; align-items: stretch; }
  .yt__field { position: relative; inset: auto; mask-image: none; -webkit-mask-image: none; margin-top: 32px; max-width: 1100px; margin-left: auto; margin-right: auto; row-gap: 0; }
  .yt__col { gap: 28px; }
  .yt__col img { transform: none; }
  .yt__head { padding: 0; background: none; order: -1; }
}

/* Round 2 (2026-11-02) */
.aud-photo--tall video { aspect-ratio: 3 / 4; max-width: 420px; margin: 0 auto; }
@media (min-width: 900px) { .lp-hero-copy { max-width: 70%; } .lp-hero-copy .rot-h1 { position: relative; z-index: 3; } }
/* three steps */
.steps3 { list-style: none; margin: 32px auto 0; padding: 0; display: grid; gap: 16px; max-width: 1000px; }
@media (min-width: 800px) { .steps3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.steps3 li { background: var(--fm-paper); border: 1px solid var(--fm-line); border-radius: 14px; padding: 24px 22px 26px; text-align: left; }
.step-n { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 50%; background: var(--fm-orange); color: var(--fm-ink); font-weight: 700; margin-bottom: 12px; }
.steps3 h3 { margin: 0 0 6px; }
.steps3 p { margin: 0; color: var(--fm-soft-ink); }
/* small group packs grid (photo, title, live price) */
.pack-link { display: block; text-decoration: none; color: var(--fm-ink); }
.pack-link img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.pk-cap { display: block; padding: 12px 14px 14px; line-height: 1.3; }
.pk-cap strong { display: block; font-size: 16px; margin-bottom: 2px; }
.pk-cap small { font-size: 15px; color: var(--fm-soft-ink); font-weight: 500; }
.pack-link:hover .pk-cap strong, .pack-link:focus-visible .pk-cap strong { text-decoration: underline; }
.pack-link:focus-visible { outline: 3px solid var(--fm-blue); outline-offset: 3px; }
.spark-grid--all .pack-link .pk-cap { background: var(--fm-white); }
#trust { padding-bottom: 8px; }
#trust .coach-sub { margin-bottom: 0; }
@media (min-width: 900px) { .lp-hero-copy p.lp-hero-sub { max-width: none; white-space: nowrap; } }
.nowrap{white-space:nowrap}

/* Round 4 (2026-11-04, Matt: "look at the About page"). Sparks fit year-round = the live About page "Our story" timeline,
   rules copied from it: a photo card on one side, an animated Spark cutout on the other, the Drawbot (story.js) drawing between. */
.fm-story__line{list-style:none;margin:0;padding:150px 0 24px;position:relative}
.fm-story__ink{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:0;overflow:visible}
.fm-story__bot{position:absolute;left:0;top:0;width:78px;height:auto;z-index:3;pointer-events:none;transform-origin:50% 100%;will-change:transform;filter:drop-shadow(0 6px 6px rgba(45,41,38,.18))}
.fm-story__stop{position:relative;display:grid;grid-template-columns:1fr 120px 1fr;align-items:start;margin:0 0 40px;z-index:1}
.fm-story__stop:last-child{margin-bottom:0}
.fm-story__card{position:relative;z-index:1;overflow:hidden;background:#fff;border:1px solid #e5e1d8;border-radius:12px;padding:24px 26px;box-shadow:0 10px 24px rgba(45,41,38,.06);border-top:5px solid var(--c)}
.fm-story__stop:nth-child(odd) .fm-story__card{grid-column:1;grid-row:1}
.fm-story__stop:nth-child(even) .fm-story__card{grid-column:3;grid-row:1}
.fm-story__when{display:inline-block;margin:0 0 10px;padding:3px 12px;border-radius:999px;background:var(--c);color:#2d2926;font-size:14px;font-weight:700;line-height:1.4}
.fm-story__card h3{margin:0 0 10px;font-size:22px;font-weight:700;line-height:1.25;color:#2d2926}
.fm-story__card p{margin:0 0 10px;font-size:16px;line-height:1.5;color:#2d2926}
.fm-story__card p:last-child{margin-bottom:0}
.fm-story__photo{margin:-24px -26px 18px;padding:0;background:#fff}
.fm-story__photo img{display:block;width:100%;height:auto;aspect-ratio:16/10;object-fit:cover}
.fm-story__spark{grid-row:1;align-self:center;justify-self:center;width:var(--w,220px);max-width:100%;height:auto;pointer-events:none;filter:drop-shadow(0 10px 10px rgba(45,41,38,.14))}
.fm-story__stop:nth-child(odd) .fm-story__spark{grid-column:3}
.fm-story__stop:nth-child(even) .fm-story__spark{grid-column:1}
.fm-story__spark--spin{animation:fm-spin 2.4s linear infinite}
.fm-story__spark--chomp{transform-origin:60% 90%;animation:fm-chomp 1.1s ease-in-out infinite}
.fm-story__spark--sway{transform-origin:85% 70%;animation:fm-sway 2.6s ease-in-out infinite}
.fm-story__spark--bob{animation:fm-bob 2.2s ease-in-out infinite}
@keyframes fm-spin{to{transform:rotate(360deg)}}
@keyframes fm-chomp{0%,100%{transform:rotate(-4deg) translateY(0)}50%{transform:rotate(5deg) translateY(-14px)}}
@keyframes fm-sway{0%,100%{transform:rotate(-7deg) translateX(-10px)}50%{transform:rotate(6deg) translateX(10px)}}
@keyframes fm-bob{0%,100%{transform:translateY(0) rotate(-2deg)}50%{transform:translateY(-18px) rotate(2deg)}}
@media (prefers-reduced-motion:reduce){.fm-story__spark{animation:none}}
@media (max-width:767px){
 .fm-story__spark{display:none}
 .fm-story__line{padding-top:110px}
 .fm-story__stop{grid-template-columns:44px 1fr;column-gap:4px;margin-bottom:28px}
 .fm-story__stop:nth-child(odd) .fm-story__card,.fm-story__stop:nth-child(even) .fm-story__card{grid-column:2;grid-row:1}
 .fm-story__card{padding:20px}
 .fm-story__photo{margin:-20px -20px 16px}
 .fm-story__card h3{font-size:20px}
}

/* Pack rails (round 4): one sideways row per collection. Cards about 230px wide, the row fades out on the right,
   and arrow buttons scroll it a card-set at a time (touch and trackpad scroll it too). */
.pk-wrap { position: relative; margin-top: 24px; }
.pk-rail { display: flex; flex-wrap: nowrap; gap: 16px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 4px 4px 16px;
  -webkit-mask-image: linear-gradient(to right, #000 0, #000 85%, transparent 100%); mask-image: linear-gradient(to right, #000 0, #000 85%, transparent 100%);
  scrollbar-width: thin; scrollbar-color: var(--fm-line) transparent; }
.pk-rail.is-end { -webkit-mask-image: none; mask-image: none; }
.pk-rail:focus-visible { outline: 3px solid var(--fm-blue); outline-offset: 4px; }
.pk-rail .pack-link { flex: 0 0 230px; width: 230px; scroll-snap-align: start; background: var(--fm-white); border: 1px solid var(--fm-line); border-radius: 12px; overflow: hidden; }
.pk-rail .pk-cap { padding: 10px 12px 12px; }
.pk-rail .pk-cap strong { font-size: 15px; }
.pk-rail .pk-cap small { font-size: 14px; }
.pk-btn { position: absolute; top: 96px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--fm-line); background: var(--fm-white); color: var(--fm-ink); box-shadow: 0 6px 16px rgba(45,41,38,.12); font: 700 22px/1 Poppins, Arial, sans-serif; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.pk-btn--prev { left: -8px; } .pk-btn--next { right: -8px; }
.pk-btn[disabled] { opacity: 0; pointer-events: none; }
.pk-btn:focus-visible { outline: 3px solid var(--fm-blue); outline-offset: 3px; }
@media (max-width: 767px) { .pk-rail { gap: 12px; } .pk-rail .pack-link { flex-basis: 158px; width: 158px; } .pk-btn { display: none; } }
.pk-rail-h { margin-top: 56px; }
/* Logo wall line (round 4: "much larger") */
.yt__head p { max-width: 760px; font-size: clamp(26px, 2.8vw, 36px); line-height: 1.3; font-weight: 700; color: var(--fm-ink); }
@media (max-width: 767px) { .yt__head p { font-size: 24px; } }
.yt__head { padding: 9vh 8vw; background: radial-gradient(closest-side, #fff 78%, rgba(255,255,255,.9) 88%, rgba(255,255,255,0)); }
@media (min-width: 768px) { .fm-story__stop { grid-template-columns: 1fr 170px 1fr; } }
.quote-row--solo { display: block; }
.quote-row--solo .quote-photo { height: 460px; max-height: 460px; width: auto; max-width: 100%; aspect-ratio: 3 / 4; margin: 0 auto; }
@media (max-width: 799px) { .quote-row--solo .quote-photo { height: 420px; max-height: 420px; } }
/* FAQ groups (moved from /answers/after-school-summer, 2026-11-04) */
.faq-group { margin: 36px 0 14px; font-size: 20px; line-height: 1.3; }
.faq-shell h2 + .faq-group { margin-top: 24px; }
