/* Thanksgiving with Gubo — page styles.
   Only page-owned classes and the page's own footer ornament. The shared menu
   and footer keep the values from assets/portal-chrome.css. */

/* Headings use the portal's local Poppins Black; body copy uses Fredoka. */
@font-face{font-family:"Poppins Black";src:url(poppins-black-latin.woff2) format("woff2");font-weight:900;font-style:normal;font-display:swap}

:root{
  --wm-navy:#174A7E;
  --wm-ink:#17324D;
  --wm-turq:#D2F9F6;
  --wm-soft:#EDFCFA;
  --wm-gold:#E9B44C;
  --wm-teal:#1E8C86;
  --wm-purple:#6B57C0;
  --wm-pad:clamp(16px,4vw,60px);
  --wm-wrap:1240px;
}

html{scroll-behavior:smooth}

body.thanks-page{
  margin:0;
  background:#fff;
  color:var(--wm-ink);
  font-family:Fredoka,system-ui,"Segoe UI",sans-serif;
  font-size:18px;
  line-height:1.55;
  -webkit-text-size-adjust:100%;
}
body.thanks-page *,body.thanks-page *::before,body.thanks-page *::after{box-sizing:border-box}
/* :where() keeps this reset at zero specificity so the layout rules below win. */
body.thanks-page :where(h1,h2,h3,p,ul,ol,li,figure){margin:0}
body.thanks-page img{display:block;max-width:100%;height:auto}
body.thanks-page :focus-visible{outline:3px solid var(--wm-navy);outline-offset:3px;border-radius:8px}
body.thanks-page main :is(h1,h2,h3){
  font-family:"Poppins Black",Poppins,system-ui,"Segoe UI",sans-serif;
  font-weight:900;
  color:var(--wm-navy);
  line-height:1.05;
  letter-spacing:-.02em;
}
body.thanks-page main :is(h1,h2,h3) br{display:inline}

.wrap{width:100%;max-width:var(--wm-wrap);margin:0 auto;padding-inline:var(--wm-pad)}

/* Skip link (the page owns the element, the chrome keeps it invisible). */
:root body>.skip-link{
  position:absolute;left:var(--wm-pad);top:10px;z-index:70;
  transform:translateY(-180%);
  padding:12px 22px;border-radius:999px;background:var(--wm-navy);color:#fff;
  font-family:Fredoka,system-ui,sans-serif;font-size:17px;font-weight:600;text-decoration:none;
}
:root body>.skip-link:focus{transform:none}
@media (prefers-reduced-motion:no-preference){
  :root body>.skip-link{transition:transform .18s ease}
}

.eyebrow{
  font-family:"Poppins Black",Poppins,system-ui,sans-serif;
  font-size:clamp(14px,1.1vw,17px);
  font-weight:900;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--wm-navy);
}
.tag{
  font-size:16px;font-weight:600;letter-spacing:.04em;color:#4A6D93;
}
.lead{font-size:clamp(18px,1.65vw,24px);line-height:1.5;color:var(--wm-ink)}

/* Buttons and the "in preparation" disclosures that replaced Play/Download. */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:.5em;
  min-height:56px;padding:0 clamp(22px,2.4vw,34px);
  border:2px solid transparent;border-radius:999px;
  background:var(--wm-navy);color:#fff;
  font-family:Fredoka,system-ui,sans-serif;font-size:clamp(18px,1.5vw,21px);font-weight:600;
  text-decoration:none;cursor:pointer;
}
.btn:hover{background:#123A63}

/* Full width so the revealed note is not squeezed by the flex card column. */
.prep{width:100%}
.prep>summary{
  display:inline-flex;align-items:center;gap:12px;
  min-height:48px;padding:0 26px;
  border:2px solid transparent;border-radius:999px;background:var(--wm-navy);color:#fff;
  font-family:Fredoka,system-ui,sans-serif;font-size:18px;font-weight:600;
  cursor:pointer;list-style:none;
}
.prep>summary::-webkit-details-marker{display:none}
.prep>summary::marker{content:""}
.prep>summary::after{
  content:"";width:9px;height:9px;margin-top:-4px;
  border-right:2.5px solid currentColor;border-bottom:2.5px solid currentColor;
  transform:rotate(45deg);
}
.prep[open]>summary::after{transform:rotate(225deg);margin-top:4px}
.prep>summary:hover{background:#123A63}
.prep-body{
  margin-top:12px;padding:14px 18px;max-width:44ch;
  border:1px solid rgba(23,74,126,.16);border-radius:16px;background:var(--wm-soft);
  font-size:17px;line-height:1.5;
}

/* ---------- 1. hero ---------- */
.hero{position:relative;isolation:isolate;overflow:hidden;background:#E7F4FC;scroll-margin-top:16px}
.hero-art{position:absolute;inset:0;z-index:0}
.hero-art picture{display:block;width:100%;height:100%}
/* body.thanks-page img{height:auto} carries more weight than .hero-art img, so
   the fill rule repeats the page class - otherwise the art stops short of its
   container and leaves a blank band under the hero. */
body.thanks-page .hero-art img{width:100%;height:100%;object-fit:cover;object-position:left top}
.hero-art::after{content:"";display:none}
.hero-scrim{display:none}
.hero-inner{
  position:relative;z-index:1;
  display:grid;grid-template-columns:minmax(0,1fr) minmax(0,min(560px,44%));
  align-items:center;gap:24px;
  /* 48vw keeps the whole face and the near edge of the table inside the crop of
     the 3:2 art (691 px at 1440); capped so a very wide window stays sane. */
  min-height:clamp(420px,48vw,860px);
  max-width:1600px;margin:0 auto;
  padding:clamp(34px,5vw,72px) var(--wm-pad);
}
.hero-copy{grid-column:2;max-width:560px}
.hero-copy h1{font-size:clamp(34px,4.6vw,62px);margin:14px 0 0}
.hero-copy h1 .line{display:block}
.hero-copy .lead{margin-top:16px;max-width:34ch}
.hero-cta{margin-top:26px}
.hero-anchors{
  display:flex;flex-wrap:wrap;align-items:center;gap:4px 14px;
  margin-top:18px;font-size:18px;
}
.hero-anchors a{display:inline-flex;align-items:center;min-height:44px;font-weight:600;color:var(--wm-navy);text-decoration:none}
.hero-anchors a:hover{text-decoration:underline;text-underline-offset:5px}
.hero-anchors span{color:#7FA0BE}
/* Local-preview status: full-width ribbon above the hero, so all hero copy fits
   inside the quiet sky of the illustrated hero. */
.prehero{
  margin:0;padding:8px var(--wm-pad);text-align:center;
  background:var(--wm-soft);border-bottom:1px solid rgba(23,74,126,.12);
  font-size:16px;line-height:1.35;color:var(--wm-navy);
}

/* ---------- shared section frame ---------- */
.section{padding:clamp(56px,7vw,110px) 0;scroll-margin-top:16px}
.section-head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:12px 32px;margin-bottom:clamp(28px,3.4vw,52px)}
.section-head h2{font-size:clamp(30px,4.3vw,56px);max-width:22ch}
.section-head .sub{font-size:clamp(18px,1.7vw,25px);line-height:1.4;margin-top:12px;max-width:44ch}
.cols{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(20px,2.6vw,40px);
  margin:0;padding:0;list-style:none;
}

/* ---------- 2. adventures ---------- */
.card-art{border-radius:16px;overflow:hidden;background:var(--wm-soft)}
.card-art img{width:100%;aspect-ratio:3/2;object-fit:cover}
.card-body{display:flex;flex-direction:column;align-items:flex-start;gap:10px;margin-top:20px}
.cat{
  display:inline-flex;align-items:center;min-height:38px;padding:0 20px;
  border-radius:999px;font-size:18px;font-weight:600;color:#fff;
}
.cat-counting{background:var(--wm-gold);color:var(--wm-navy)}
.cat-sharing{background:var(--wm-teal)}
.cat-patterns{background:var(--wm-purple)}
.card-body h3{font-size:clamp(22px,2.3vw,30px)}
.card-body .cap{font-size:18px;color:var(--wm-ink)}
.card-note{margin:16px 0 0;font-size:16px;color:#4A6D93}

/* ---------- 3. activity pages ---------- */
.split{display:grid;grid-template-columns:minmax(0,56fr) minmax(0,44fr);gap:clamp(28px,4.4vw,68px);align-items:center}
.split-art{border-radius:20px;overflow:hidden;background:#fff}
.split-copy h2{font-size:clamp(30px,4.1vw,54px)}
.split-copy .lead{margin-top:16px;max-width:34ch}
.chips{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:22px}
.chips .chip{
  display:inline-flex;align-items:center;min-height:44px;padding:0 20px;
  border-radius:999px;background:var(--wm-turq);color:var(--wm-navy);font-size:18px;font-weight:600;
}
.chips .chip-label{font-size:17px;font-weight:600;color:#4A6D93}
.split-copy .note{margin-top:18px;font-size:17px;color:var(--wm-ink)}
.split-copy .tag{margin-top:14px}

/* Completed Find 5 Differences worksheets sit inside the activity section. */
.differences{padding-top:clamp(46px,6vw,86px);scroll-margin-top:16px}
.differences-head h2{font-size:clamp(30px,4.1vw,54px)}
.differences-head .lead{margin-top:14px;max-width:48ch}
.difference-actions{display:flex;flex-wrap:wrap;gap:14px;margin-top:26px}
.difference-actions .btn-secondary{background:#fff;color:var(--wm-navy);border-color:var(--wm-navy)}
.difference-actions .btn-secondary:hover{background:var(--wm-soft)}
.difference-meta{margin-top:14px;font-size:17px;color:var(--wm-ink)}
.differences-grid{margin-top:clamp(30px,3.6vw,48px)}
.differences-grid li{display:flex;flex-direction:column;align-items:flex-start}
.difference-preview{display:block;width:100%;color:inherit;text-decoration:none;border-radius:16px}
.differences-grid .sheet{display:block;background:#fff}
.differences-grid .sheet img{aspect-ratio:1275/1650;object-fit:contain;padding:0}
.differences-grid h3{margin-top:18px;font-size:clamp(21px,2.1vw,28px);line-height:1.15}
.difference-link{
  display:inline-flex;align-items:center;min-height:44px;margin-top:4px;
  color:var(--wm-navy);font-weight:600;text-underline-offset:5px;
}
.difference-link:hover{text-decoration-thickness:2px}

/* ---------- 4. coloring ---------- */
.section.centered .section-head{display:block;text-align:center}
.section.centered .section-head h2{margin:10px auto 0;max-width:26ch}
.section.centered .section-head .sub{margin:14px auto 0}
.sheet{
  border:2px solid rgba(23,74,126,.35);border-radius:16px;background:#fff;overflow:hidden;
  box-shadow:0 14px 30px rgba(23,74,126,.10);
}
.sheet img{width:100%;aspect-ratio:5/6;object-fit:contain;background:#fff;padding:5%}
.sheet-label{display:block;margin:12px 0 0;font-size:16px;font-weight:600;letter-spacing:.04em;color:#4A6D93}
.color-body{display:flex;flex-direction:column;align-items:flex-start;gap:8px;margin-top:6px}
.color-body h3{font-size:clamp(20px,2.1vw,28px)}

/* ---------- completed tablet materials ---------- */
.choose-today{
  padding-block:clamp(40px,5vw,72px);
  background:var(--wm-soft);
  border-block:1px solid rgba(23,74,126,.12);
}
.choose-today .section-head{margin-bottom:24px}
.today-links{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;
  margin:0;padding:0;list-style:none;
}
.today-links a{
  display:flex;min-height:116px;flex-direction:column;justify-content:center;gap:4px;
  padding:20px 24px;border:2px solid var(--wm-navy);border-radius:20px;
  background:#fff;color:var(--wm-navy);text-decoration:none;
}
.today-links a:hover{background:var(--wm-turq)}
.today-links span{font-family:"Poppins Black",Poppins,system-ui,sans-serif;font-size:24px;line-height:1.1}
.today-links small{font-size:17px;color:var(--wm-ink)}
.material-set{margin-top:clamp(42px,5vw,72px)}
.material-set-head{
  display:flex;align-items:center;justify-content:space-between;gap:20px 32px;
  margin-bottom:22px;text-align:left;
}
.material-set-head h3{font-family:"Poppins Black",Poppins,system-ui,sans-serif;font-size:clamp(25px,2.8vw,36px);margin-top:4px}
.material-set-head p{max-width:46ch}
.material-pdf{flex:0 0 auto}
.material-grid{
  display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:clamp(12px,1.5vw,22px);
  margin:0;padding:0;list-style:none;
}
.material-grid a{
  display:block;padding:8px 8px 10px;border:2px solid rgba(23,74,126,.28);
  border-radius:16px;background:#fff;color:var(--wm-navy);
  text-decoration:none;box-shadow:0 10px 24px rgba(23,74,126,.08);
}
.material-grid a:hover{border-color:var(--wm-navy);transform:translateY(-2px)}
.material-grid img{width:100%;aspect-ratio:4/5;object-fit:contain;background:#fff}
.material-grid span{display:block;padding:8px 4px 0;text-align:center;font-size:18px;font-weight:600}
.wash{background:var(--wm-soft)}
.addition-head{margin-top:0;text-align:left}
.addition-head p{font-size:17px;color:var(--wm-ink)}
.bookmarks{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,380px);gap:clamp(30px,6vw,90px);align-items:center}
.bookmarks-copy{text-align:left}
.bookmarks-copy h2{font-size:clamp(30px,4.3vw,56px);margin-top:10px;max-width:18ch}
.bookmarks-copy .sub{margin-top:16px;max-width:42ch}
.bookmarks-copy .btn{margin-top:26px}
.bookmark-preview{display:block;border:2px solid rgba(23,74,126,.3);border-radius:18px;overflow:hidden;background:#fff;box-shadow:0 18px 34px rgba(23,74,126,.13)}
.bookmark-preview img{width:100%;height:auto}
.together-list{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;
  margin:0;padding:0;list-style:none;
}
.together-list li{padding:24px;border-radius:18px;background:#fff;border:1px solid rgba(23,74,126,.15)}
.together-list h3{font-size:clamp(21px,2.2vw,28px)}
.together-list p{margin-top:8px}

/* ---------- 5. story ---------- */
.story{display:grid;grid-template-columns:minmax(0,45fr) minmax(0,55fr);gap:clamp(28px,4vw,56px);align-items:center}
.story-copy h2{font-size:clamp(30px,4.2vw,56px);margin-top:14px}
.story-copy .lead{margin-top:18px;max-width:32ch}
.story-art img{width:100%;aspect-ratio:3/2;object-fit:cover;object-position:center;border-radius:24px}
.story-actions{margin-top:26px}
.story-actions p{margin-top:14px;font-size:17px;color:#4A6D93}

/* ---------- readable story page ---------- */
.story-page .story-masthead{padding:clamp(30px,5vw,64px) 0 clamp(46px,7vw,88px);background:var(--wm-soft)}
.story-back a{display:inline-flex;align-items:center;min-height:44px;color:var(--wm-navy);font-weight:600;text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:5px}
.story-masthead .eyebrow{margin-top:24px}
.story-masthead h1{max-width:20ch;margin-top:10px;font-size:clamp(34px,5.5vw,68px)}
.story-cover{max-width:960px;margin:clamp(28px,4vw,48px) auto 0}
.story-cover img{width:100%;aspect-ratio:3/2;object-fit:cover;object-position:center;border-radius:24px}
.story-reading{
  max-width:65ch;margin:0 auto;padding:clamp(42px,6vw,76px) 0;
  font-size:clamp(18px,1.4vw,22px);line-height:1.75;color:var(--wm-ink);
}
.story-reading p+p{margin-top:1em}
.story-back-end{margin:0 auto clamp(46px,6vw,76px);max-width:65ch;font-size:18px}

/* ---------- footer ornament (page-owned, above the shared footer) ---------- */
.site-footer .footer-wave{display:block;width:100%;height:clamp(52px,6.4vw,104px);background:#fff}
.site-footer .footer-wave .wave-soft{fill:var(--wm-turq)}
.site-footer .footer-wave .wave-navy{fill:var(--wm-navy)}

/* Gubo peeks above the wave on wide screens only, always out of the way of
   links and never a click target. */
@media (min-width:1100px){
  :root body.thanks-page .site-footer::after{
    content:"";position:absolute;right:clamp(16px,4vw,60px);bottom:calc(100% - 26px);
    width:clamp(88px,8.4vw,124px);aspect-ratio:635/820;z-index:5;pointer-events:none;
    background:url(gubo.webp) center bottom/contain no-repeat;
  }
  /* Room for the peeking Gubo above the wave. */
  #read-and-listen{padding-bottom:172px}
}

/* ---------- responsive ---------- */
@media (max-width:1099px){
  .cols{grid-template-columns:repeat(2,minmax(0,1fr))}
  .material-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .section{padding:clamp(48px,7vw,88px) 0}
}

@media (max-width:899px){
  .hero-cta .btn{width:100%}
  .section-head{align-items:flex-start}
  .split,.story{grid-template-columns:minmax(0,1fr);gap:clamp(24px,5vw,40px)}
  .story-art{order:2}
  .today-links,.together-list{grid-template-columns:minmax(0,1fr)}
  .material-set-head{display:block}
  .material-pdf{margin-top:18px;width:100%}
  .bookmarks{grid-template-columns:minmax(0,1fr)}
  .bookmark-preview{max-width:420px}
}

/* Phones in portrait: ONE illustrated hero. The portrait art is the hero
   background itself (absolute, full height, fills the box) and the live HTML
   copy sits on the quiet sky the art reserves in its top 60%. Gubo's hat starts
   at 56%, below the copy, so no text ever crosses his head. */
@media (max-width:639px) and (orientation:portrait){
  .hero{display:block;background:#CFE8F9}
  body.thanks-page .hero-art{position:absolute;inset:0;z-index:0;width:auto;height:auto}
  body.thanks-page .hero-art picture{display:block;width:100%;height:100%}
  body.thanks-page .hero-art img{width:100%;height:100%;object-fit:cover;object-position:center bottom}
  .hero-art::after{display:none}
  .hero-inner{
    display:block;position:relative;z-index:1;
    min-height:clamp(800px,220vw,900px);
    padding:clamp(22px,6vw,34px) var(--wm-pad) clamp(28px,8vw,48px);
  }
  .hero-copy{max-width:none}
  .hero-copy h1{font-size:clamp(30px,7.8vw,44px)}
  .hero-copy .lead{font-size:clamp(18px,4.4vw,21px);max-width:30ch}
  .hero-cta .btn{min-height:48px;font-size:18px}
  .hero-anchors{
    display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px 12px;
    align-items:center;font-size:16px;margin-top:14px;
  }
  .hero-anchors span{display:none}
  .hero-anchors a{min-height:44px}
}

/* Phones on their side: copy in the right half over the sky, desktop crop. */
@media (max-width:899px) and (orientation:landscape){
  .hero-inner{
    grid-template-columns:minmax(0,1fr) minmax(0,min(520px,46%));
    min-height:clamp(300px,40vw,520px);
    padding:clamp(20px,3.4vw,40px) var(--wm-pad);
  }
  .hero-copy h1{font-size:clamp(24px,3.4vw,36px)}
  .hero-copy .lead{font-size:17px;margin-top:10px;max-width:30ch}
  .hero-cta{margin-top:14px}
  .hero-cta .btn{min-height:48px;font-size:17px}
  .hero-anchors{font-size:16px;margin-top:10px}
}

@media (max-width:679px){
  .cols{grid-template-columns:minmax(0,1fr)}
  .material-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .section-head h2{max-width:none}
  .difference-actions .btn{width:100%}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  body.thanks-page *,body.thanks-page *::before,body.thanks-page *::after{
    animation-duration:0s!important;transition-duration:0s!important;
  }
}
