/* Stories & Activities library (v2.2). Storybook Day & Night system. */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-weight: 800; font-size: 0.85rem; color: var(--ink-muted); margin: 0 0 12px; }
.crumbs a { color: inherit; }
.lib .wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }

/* ------------------------------------------------ layered hero */
.lhero__stage { overflow: clip; background: #FCEFD6; --mx: 0; --my: 0; }
.lhero__scene { position: absolute; bottom: 0; right: 0; width: max(100%, calc(100svh * 1.7778)); aspect-ratio: 16 / 9; }
.lhero__scene > img { position: absolute; max-width: none; }
.lh-plate { inset: 0; width: 100%; height: 100%; object-fit: cover; transform: translate3d(calc(var(--mx) * -6px), calc(var(--my) * -4px), 0) scale(calc(1.03 + var(--sc-p, 0) * 0.04)); transform-origin: 70% 60%; }
.lh-fore { inset: 0; width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 100%; transform: translate3d(calc(var(--mx) * -26px), calc(var(--sc-p, 0) * 14% + var(--my) * -8px), 0) scale(calc(1.02 + var(--sc-p, 0) * 0.16)); }
.lh-mascot { height: auto; transform: translate3d(calc(var(--mx) * -14px), calc(var(--sc-p, 0) * -6% + var(--my) * -6px), 0); animation: lh-bob 3.4s ease-in-out infinite; }
@keyframes lh-bob { 50% { translate: 0 -8px; } }
.lhero--nook .lh-mascot { left: 61%; bottom: 17%; width: 14%; }
.lhero--play .lh-mascot { left: 47%; bottom: 27%; width: 12%; }
.lhero__scrim { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: radial-gradient(58% 70% at 18% 40%, rgba(252,239,214,0.96) 0%, rgba(252,239,214,0.85) 50%, rgba(252,239,214,0) 76%); }
.lhero__copy { position: absolute; z-index: 3; left: max(16px, calc((100% - 1200px) / 2)); top: calc(var(--hdr-h) + clamp(20px, 8vh, 96px)); width: min(34rem, 46%); transform: translateY(calc(var(--sc-p, 0) * -6vh)); }
.lhero__copy h1 { font-size: clamp(2.4rem, 1.3rem + 4vw, 5rem); font-weight: 700; line-height: 0.98; letter-spacing: -0.02em; }
.lhero__copy > p { margin: 16px 0 24px; font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.3rem); font-weight: 600; line-height: 1.5; max-width: 34ch; }
.lhero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.lhero__ctas .btn--ghost { background: color-mix(in oklab, var(--paper-raised) 70%, transparent); }
@media (max-width: 760px) {
  .lhero__scene { width: max(100%, calc(52svh * 1.7778)); right: auto; left: 50%; transform: translateX(-62%); }
  .lhero__scrim { background: linear-gradient(to bottom, rgba(252,239,214,0.97) 0%, rgba(252,239,214,0.9) 46%, rgba(252,239,214,0) 64%); }
  .lhero__copy { width: auto; right: 16px; left: 16px; top: calc(var(--hdr-h) + 14px); }
  .lhero__copy h1 { font-size: clamp(2.2rem, 10vw, 2.9rem); }
  .lhero__copy > p { margin: 10px 0 16px; font-size: 1rem; }
}
@media (max-width: 760px) and (max-height: 720px) { .lhero__copy > p { display: none; } }

/* ------------------------------------------------ signature: open the book */
.openbook { background: var(--night); }
.ob__stage { display: grid; place-items: center; align-content: center; gap: 18px; padding: calc(var(--hdr-h) + 8px) 16px 24px; overflow: hidden; --open: clamp(0, (var(--sc-p, 0) - 0.1) / 0.5, 1); background: radial-gradient(70% 60% at 50% 55%, #3A2D50 0%, var(--night) 70%); }
.ob__label { margin: 0; font-family: var(--sc-font-display); font-weight: 600; font-size: clamp(1.3rem, 1rem + 1vw, 1.8rem); color: var(--star); }
.ob { --w: min(400px, 40vw, 40svh); position: relative; width: calc(var(--w) * 2); height: calc(var(--w) * 1.32); perspective: 2200px; transform: translateX(calc((1 - var(--open)) * -25%)); }
.ob__page, .ob__cover { position: absolute; top: 0; left: 50%; width: 50%; height: 100%; border-radius: 4px 16px 16px 4px; }
.ob__page { background: #FFFDF8; box-shadow: 0 24px 50px -16px rgba(0,0,0,0.6); overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.ob__art { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; height: auto; }
.ob__text { margin: 0; padding: 7% 8%; font-family: var(--sc-font-display); font-weight: 500; font-size: calc(var(--w) * 0.05); line-height: 1.45; color: var(--ink); opacity: clamp(0, (var(--open) - 0.45) * 3, 1); }
.ob__cover { transform-origin: left center; transform-style: preserve-3d; transform: rotateY(calc(var(--open) * -178deg)); z-index: 2; }
.ob__front, .ob__back { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: inherit; overflow: hidden; }
.ob__front { background: var(--honey); box-shadow: inset 10px 0 0 rgba(53,42,70,0.22), 0 24px 50px -16px rgba(0,0,0,0.6); display: grid; grid-template-rows: 1fr auto auto; padding: 8% 8% 10%; gap: 6px; }
.ob__front img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; border: 4px solid #FFFBF2; min-height: 0; }
.ob__kind { font-weight: 800; font-size: calc(var(--w) * 0.032); color: #FFF2DF; text-transform: uppercase; letter-spacing: 0.06em; margin-top: 6px; }
.ob__title { font-family: var(--sc-font-display); font-weight: 700; font-size: calc(var(--w) * 0.075); line-height: 1.02; color: #FFFBF2; text-shadow: 0 2px 0 rgba(53,42,70,0.3); }
.ob__back { transform: rotateY(180deg); background: #F7E5C6; background-image: radial-gradient(#E5CFAA 1.5px, transparent 1.6px); background-size: 16px 16px; display: grid; place-items: center; align-content: center; gap: 10px; }
.ob__back img { width: 46%; height: auto; }
.ob__back span { font-family: var(--sc-font-display); font-weight: 600; font-size: calc(var(--w) * 0.06); color: var(--ink); }
.ob__go { margin: 0; color: var(--on-plum); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; }
.ob__meta { font-weight: 800; color: var(--night-ink-muted); }
@media (max-width: 760px) {
  .ob { --w: min(84vw, 52svh); width: var(--w); transform: none; }
  .ob__page, .ob__cover { left: 0; width: 100%; }
  .ob__cover { opacity: calc(1 - clamp(0, (var(--open) - 0.5) * 4, 1)); }
  .ob__text { font-size: calc(var(--w) * 0.05); }
  .ob__kind { font-size: calc(var(--w) * 0.04); }
  .ob__title { font-size: calc(var(--w) * 0.09); }
}
@media (prefers-reduced-motion: reduce) { .ob__stage { --open: 1; } .lh-mascot { animation: none; } }

/* ------------------------------------------------ shelf + cards */
.lshelf, .lboard { padding: clamp(64px, 9vw, 120px) 0 clamp(40px, 6vw, 80px); background: var(--paper); }
.lshelf__head h2, .lbrowse h2, .lparents h2, .festrow h2, .makerband h2, .jarsec h2 { font-size: clamp(2rem, 1.2rem + 2.6vw, 3.4rem); }
.lshelf__head p { margin: 8px 0 22px; font-size: 1.1rem; }
.lfilters { display: grid; gap: 10px; margin-bottom: 22px; }
.lfilters__label { align-self: center; font-weight: 800; margin-right: 4px; }
.sgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 26px); }
.scard { display: grid; grid-template-rows: auto 1fr; border-radius: var(--r-lg); background: var(--paper-raised); border: 2px solid var(--ink); overflow: hidden; color: var(--ink); text-decoration: none; box-shadow: var(--sticker); transition: transform 180ms var(--sc-ease-out); }
.scard[hidden] { display: none; }
@media (hover: hover) and (pointer: fine) { .scard:hover { transform: translateY(-4px) rotate(-0.4deg); } .scard:hover .scard__cover img { transform: scale(1.04); } }
.scard__cover { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; border-bottom: 2px solid var(--ink); }
.scard__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms var(--sc-ease-out); }
.scard__cover .age { position: absolute; left: 12px; top: 12px; }
.scard__body { display: grid; align-content: start; gap: 6px; padding: 16px 18px 18px; }
.scard__kind { font-weight: 800; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--tangerine); }
.scard__title { font-family: var(--sc-font-display); font-weight: 600; font-size: clamp(1.3rem, 1.1rem + 0.6vw, 1.6rem); line-height: 1.1; }
.scard__blurb { color: var(--ink-muted); line-height: 1.45; }
.scard__meta { margin-top: 4px; font-weight: 800; font-size: 0.85rem; }
@media (max-width: 960px) { .sgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .sgrid { grid-template-columns: 1fr; } }
.lempty { margin: 18px 0 0; font-weight: 700; }

/* ------------------------------------------------ maker band */
.makerband { padding: clamp(56px, 8vw, 110px) 0; background: var(--paper-sunk); }
.makerband__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.makerband__art { position: relative; }
.makerband__art > img:first-child { width: 100%; height: auto; border-radius: 22px; box-shadow: var(--sc-e3), 0 0 0 10px #FFFBF2, 0 0 0 11px var(--line); }
.makerband__pal { position: absolute; left: -4%; bottom: -10%; width: 32%; height: auto; filter: drop-shadow(0 8px 10px rgba(53,42,70,0.25)); }
.makerband p { font-size: 1.1rem; max-width: 42ch; }
@media (max-width: 760px) { .makerband__grid { grid-template-columns: 1fr; } .makerband__pal { width: 26%; } }

/* ------------------------------------------------ browse: book spines */
.lbrowse { padding: clamp(56px, 8vw, 110px) 0; background: var(--paper); }
.lbrowse h3 { margin: 30px 0 12px; font-size: 1.4rem; }
.spines { display: flex; align-items: flex-end; gap: 8px; padding: 18px 12px 0; border-bottom: 14px solid #B9773A; border-radius: 4px; box-shadow: 0 10px 0 -4px rgba(53,42,70,0.12); overflow-x: auto; scrollbar-width: none; margin-top: 18px; }
.spine { flex: 0 0 auto; width: clamp(64px, 8vw, 92px); height: clamp(150px, 18vw, 210px); display: grid; align-content: space-between; justify-items: center; padding: 14px 6px 12px; border-radius: 8px 8px 2px 2px; border: 2px solid var(--ink); color: var(--ink); text-decoration: none; box-shadow: inset -8px 0 0 rgba(53,42,70,0.1); transition: transform 180ms cubic-bezier(0.34, 1.56, 0.64, 1); }
.spine span { font-weight: 800; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; writing-mode: vertical-rl; transform: rotate(180deg); }
.spine b { font-family: var(--sc-font-display); font-weight: 700; font-size: clamp(2rem, 1.4rem + 1.6vw, 2.8rem); line-height: 1; }
.spine:hover, .spine:focus-visible { transform: translateY(-12px) rotate(-2deg); }
.spine--1 { background: #FCCC30; height: clamp(140px, 16vw, 190px); } .spine--2 { background: #FCAA8A; } .spine--3 { background: #DDEFD8; height: clamp(160px, 19vw, 220px); }
.spine--4 { background: #CFE6F5; } .spine--5 { background: #E7DDF3; height: clamp(144px, 17vw, 200px); } .spine--6 { background: #FCCC30; } .spine--7 { background: #FCAA8A; height: clamp(156px, 18.5vw, 214px); }
.spines--sm .spine { height: 120px; width: 60px; } .spines--sm .spine b { font-size: 1.8rem; }
.chiplinks { display: flex; flex-wrap: wrap; gap: 8px; }
.chiplink { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: var(--r-pill); border: 2px solid var(--line-strong); background: var(--paper-raised); color: var(--ink); font-weight: 800; text-decoration: none; }
.chiplink:hover { background: var(--star); border-color: var(--ink); }

/* ------------------------------------------------ parents + faq */
.lparents { padding: clamp(56px, 8vw, 110px) 0; background: var(--paper-sunk); }
.lparents__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.lparents p { font-size: 1.08rem; }
.lfaq details { border-bottom: 2px solid var(--line); padding: 14px 0; }
.lfaq details:first-child { border-top: 2px solid var(--line); }
.lfaq summary { cursor: pointer; font-weight: 800; font-size: 1.08rem; }
.lfaq p { margin: 8px 0 0; color: var(--ink-muted); }
@media (max-width: 760px) { .lparents__grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------ close */
.lend { padding: clamp(72px, 10vw, 140px) 0 clamp(56px, 8vw, 110px); background: var(--night); color: var(--on-plum); text-align: center; }
.lend__inner { display: grid; justify-items: center; }
.lend__inner > img { width: 140px; height: auto; margin-bottom: 10px; }
.lend__title { margin: 0; font-family: var(--sc-font-display); font-weight: 700; font-size: clamp(3rem, 1.8rem + 5vw, 6.4rem); line-height: 0.95; color: var(--star); }
.lend__line { margin: 12px 0 30px; font-size: 1.2rem; font-weight: 600; color: var(--night-ink-muted); }
.lend--day { background: var(--star); color: var(--ink); }
.lend--day .lend__title { color: var(--ink); }
.lend--day .lend__line { color: var(--ink); }
.lshop { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; width: min(900px, 100%); text-align: left; }
.lshop__item { display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: center; padding: 10px; border-radius: var(--r-md); background: var(--paper-raised); color: var(--ink); text-decoration: none; border: 2px solid var(--ink); box-shadow: var(--sticker); }
.lshop__item img { width: 72px; height: 90px; object-fit: cover; border-radius: 10px; }
.lshop__item span { display: grid; font-size: 0.9rem; font-weight: 700; color: var(--ink-muted); }
.lshop__item strong { color: var(--ink); font-size: 1rem; }
@media (max-width: 760px) { .lshop { grid-template-columns: 1fr; } }

/* ------------------------------------------------ activities: play jar (signature) */
.jarsec { background: var(--paper-sunk); }
.jarsec__stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); align-items: center; gap: clamp(20px, 5vw, 80px); padding: calc(var(--hdr-h) + 16px) max(16px, calc((100% - 1200px) / 2)) 24px; }
.jarsec__copy p { font-size: 1.12rem; max-width: 38ch; }
.jarsec__copy .picks .pick { min-width: 52px; min-height: 52px; font-size: 1.1rem; }
.jarsec__hint { font-size: 0.95rem !important; color: var(--ink-muted); }
.jar { position: relative; justify-self: center; width: min(360px, 70vw, 52svh); padding: 0; border: 0; background: none; cursor: pointer; transform: translateY(calc((1 - clamp(0, var(--sc-p, 0) * 3, 1)) * 60px)) rotate(calc((1 - clamp(0, var(--sc-p, 0) * 3, 1)) * -6deg)); }
.jar__svg { width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 18px 16px rgba(53,42,70,0.18)); }
.slip { transform-box: fill-box; transform-origin: center; animation: slip-float 3.6s ease-in-out infinite; animation-delay: calc(var(--i) * -0.45s); }
@keyframes slip-float { 50% { translate: 0 -5px; } }
.jar__label { position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); white-space: nowrap; padding: 10px 20px; border-radius: var(--r-pill); background: var(--star); border: 2px solid var(--ink); font-family: var(--sc-font-display); font-weight: 600; font-size: 1.15rem; box-shadow: var(--sticker); }
.jar.is-shaking .jar__svg { animation: jar-shake 650ms cubic-bezier(0.36, 0.07, 0.19, 0.97) both; }
.jar.is-shaking .slip { animation: slip-jumble 650ms ease-in-out both; }
.jar.is-popping .jar__svg { transform: translateY(-6px) scale(1.04); transition: transform 300ms var(--sc-ease-out); }
@keyframes jar-shake { 10%, 90% { transform: rotate(-4deg); } 20%, 80% { transform: rotate(6deg); } 30%, 50%, 70% { transform: rotate(-9deg) translateY(-6px); } 40%, 60% { transform: rotate(9deg) translateY(-6px); } }
@keyframes slip-jumble { 25% { translate: 6px -20px; rotate: 20deg; } 50% { translate: -8px -8px; rotate: -16deg; } 75% { translate: 4px -16px; rotate: 10deg; } }
@media (max-width: 760px) {
  .jarsec__stage { grid-template-columns: 1fr; align-content: center; gap: 10px; text-align: center; }
  .jarsec__copy .picks { justify-content: center; }
  .jarsec__copy p { margin-inline: auto; font-size: 1rem; }
  .jarsec__copy h2 { font-size: 2rem; }
  .jar { width: min(240px, 60vw, 34svh); }
}
@media (prefers-reduced-motion: reduce) { .slip, .jar.is-shaking .jar__svg, .jar.is-shaking .slip { animation: none; } .jar { transform: none; } }

/* activity sheet (dialog) */
.asheet { position: fixed; inset: 0; z-index: 165; display: none; place-items: center; padding: 16px; background: rgba(30,23,41,0.55); }
.asheet.is-on { display: grid; }
.asheet__panel { position: relative; width: min(680px, 100%); max-height: calc(100svh - 32px); overflow: auto; padding: clamp(20px, 4vw, 36px); border-radius: var(--r-lg); background: var(--paper-raised); color: var(--ink); box-shadow: var(--sc-e3); animation: sheet-in 320ms var(--sc-ease-out) both; }
.asheet__panel.is-fromjar { animation: sheet-unfold 560ms cubic-bezier(0.34, 1.4, 0.64, 1) both; background-image: linear-gradient(to bottom, transparent 49.6%, rgba(53,42,70,0.06) 50%, transparent 50.4%); }
@keyframes sheet-in { from { transform: translateY(24px); opacity: 0; } }
@keyframes sheet-unfold { from { transform: scale(0.22) rotate(-10deg) translateY(30vh); opacity: 0.4; } }
.asheet__x { position: absolute; right: 14px; top: 14px; background: var(--paper-raised); }
.asheet__head { display: grid; grid-template-columns: 72px 1fr; gap: 14px; align-items: center; padding-right: 44px; }
.asheet__head img { width: 72px; height: 72px; }
.asheet__head h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); }
.asheet__head .eyebrow { margin: 0 0 4px; }
.asheet__again { margin: 14px 0 0; text-align: center; }
@media (max-width: 640px) { .asheet { place-items: end stretch; padding: 0; } .asheet__panel { border-radius: 24px 24px 0 0; max-height: 92svh; } }
@media (prefers-reduced-motion: reduce) { .asheet__panel, .asheet__panel.is-fromjar { animation: none; } }

/* category tiles */
.cats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-bottom: 22px; }
.catbtn { display: grid; justify-items: center; gap: 4px; padding: 12px 6px; border-radius: var(--r-md); border: 2px solid var(--line); background: var(--paper-raised); color: var(--ink); font-weight: 800; font-size: 0.85rem; line-height: 1.15; text-align: center; cursor: pointer; transition: transform 160ms cubic-bezier(0.34, 1.56, 0.64, 1); }
.catbtn img { width: 56px; height: 56px; }
.catbtn:hover img { transform: rotate(-8deg) scale(1.08); transition: transform 240ms cubic-bezier(0.34, 1.56, 0.64, 1); }
.catbtn[aria-pressed="true"] { border-color: var(--ink); background: var(--star); box-shadow: var(--sticker); transform: translateY(-2px); }
@media (max-width: 900px) { .cats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 480px) { .cats { grid-template-columns: repeat(3, minmax(0, 1fr)); } .catbtn img { width: 44px; height: 44px; } }
.lcount { margin: 0 0 12px; font-weight: 800; color: var(--ink-muted); }

/* activity cards */
.agrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.acard { position: relative; display: grid; grid-template-rows: auto auto 1fr auto; align-content: start; gap: 4px; padding: 16px; min-height: 200px; border-radius: var(--r-lg); border: 2px solid var(--ink); background: var(--paper-raised); color: var(--ink); text-align: left; cursor: pointer; box-shadow: var(--sticker); font: inherit; transition: transform 180ms var(--sc-ease-out); }
.acard[hidden] { display: none; }
.acard img { width: 64px; height: 64px; margin-bottom: 6px; transition: transform 240ms cubic-bezier(0.34, 1.56, 0.64, 1); }
@media (hover: hover) and (pointer: fine) { .acard:hover { transform: translateY(-4px); } .acard:hover img { transform: rotate(-10deg) scale(1.1); } }
.acard__cat { font-weight: 800; font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--tangerine); }
.acard__title { font-family: var(--sc-font-display); font-weight: 600; font-size: 1.25rem; line-height: 1.1; }
.acard__meta { margin-top: 8px; font-weight: 700; font-size: 0.85rem; color: var(--ink-muted); }
.acard--art, .acard--holi { background: #FFF1E8; } .acard--sensory, .acard--kitchen { background: #FFF8E1; } .acard--move, .acard--music { background: #EEF6FB; }
.acard--pretend, .acard--letters { background: #F4EFFA; } .acard--nature, .acard--christmas { background: #EEF7EC; } .acard--numbers, .acard--diwali { background: #FFF6DA; }
@media (max-width: 1100px) { .agrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .agrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .acard { min-height: 180px; padding: 12px; } .acard__title { font-size: 1.05rem; } .acard img { width: 48px; height: 48px; } }

/* festival row: sideways */
.festrow { padding: clamp(56px, 8vw, 100px) 0; background: var(--night-raised); color: var(--on-plum); }
.festrow h2 { color: var(--on-plum); }
.festrow p { color: var(--night-ink-muted); margin: 6px 0 20px; }
.festrow__track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 280px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px max(16px, calc((100% - 1200px) / 2)) 18px; scrollbar-width: thin; }
.festrow__track .acard { scroll-snap-align: start; }

/* ------------------------------------------------ guide pages */
.ghead { padding: clamp(24px, 4vw, 48px) 0 clamp(16px, 3vw, 28px); max-width: 820px; }
.ghead h1 { font-size: clamp(2.2rem, 1.3rem + 3vw, 3.8rem); font-weight: 700; }
.ghead p { margin: 10px 0 0; font-size: 1.15rem; max-width: 56ch; }
.gsub { font-size: clamp(1.5rem, 1.1rem + 1vw, 2rem); margin: 8px 0 16px; }
.gguide { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: clamp(32px, 5vw, 56px) 0; }
.gguide__card { padding: clamp(18px, 3vw, 28px); border-radius: var(--r-lg); background: var(--paper-raised); border: 1px solid var(--line); box-shadow: var(--sc-e1); }
.gguide__card h2 { font-size: 1.5rem; margin-bottom: 8px; }
.gguide__card ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.gguide__extra { margin: 14px 0 0; padding-top: 12px; border-top: 2px dashed var(--line); }
@media (max-width: 760px) { .gguide { grid-template-columns: 1fr; } }
.gband { display: grid; grid-template-columns: 70px 1fr auto; gap: 14px; align-items: center; margin-top: 22px; padding: 14px 18px; border-radius: var(--r-lg); background: var(--star); border: 2px solid var(--ink); box-shadow: var(--sticker); }
.gband img { width: 70px; height: auto; }
.gband p { margin: 0; }
@media (max-width: 560px) { .gband { grid-template-columns: 56px 1fr; } .gband img { width: 56px; } .gband .btn { grid-column: 1 / -1; } }
.lbrowse--compact { padding: clamp(32px, 5vw, 56px) 0 0; background: none; }
.lbrowse--compact h2 { font-size: 1.8rem; }
.lbrowse--compact .chiplinks { margin-top: 16px; }
.lshopwrap { padding: clamp(40px, 6vw, 72px) 0 96px; }
.lshopwrap h2 { font-size: 1.8rem; margin-bottom: 14px; }

/* ------------------------------------------------ reader page */
.rhead { padding: clamp(20px, 3vw, 40px) 0 18px; }
.rhead h1 { font-size: clamp(2rem, 1.2rem + 3vw, 3.4rem); font-weight: 700; }
.rhead .eyebrow { margin: 0 0 6px; }
.book__end { margin: 12px 0 0 !important; font-family: var(--sc-font-display); font-weight: 700 !important; font-size: 1.6rem !important; color: var(--tangerine); }
.book__dots { display: flex; gap: 6px; margin-top: 12px; }
.book__dots i { flex: 1; height: 5px; border-radius: 3px; background: var(--line); }
.book__dots i.is-on { background: var(--star); box-shadow: inset 0 0 0 1px var(--honey); }
.afterstory { margin: 28px 0 0; }
.afterstory__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.afterstory__card { padding: clamp(18px, 3vw, 28px); border-radius: var(--r-lg); background: var(--paper-raised); border: 2px solid var(--ink); box-shadow: var(--sticker); }
.afterstory__card h2 { font-size: 1.6rem; margin-bottom: 8px; }
.afterstory__card ol { margin: 0; padding-left: 1.3em; display: grid; gap: 6px; font-size: 1.05rem; }
.afterstory__card--play { background: var(--meadow-soft); }
.afterstory__lesson { margin: 14px 0 0; padding-top: 12px; border-top: 2px dashed var(--line); }
@media (max-width: 760px) { .afterstory__grid { grid-template-columns: 1fr; } }
.more { padding: clamp(40px, 6vw, 72px) 0 96px; }
.more h2 { font-size: clamp(1.8rem, 1.2rem + 1.6vw, 2.4rem); margin-bottom: 16px; }
.more__make { margin-top: 18px; font-weight: 700; }
.bedtime-page .rhead h1, .bedtime-page .rhead .eyebrow, .bedtime-page .crumbs, .bedtime-page .more h2, .bedtime-page .more__make { color: #FFF2DF; }

/* ------------------------------------------------ v2.3: crawlable story text (shown until the reader takes over) */
.sstatic { display: grid; gap: 22px; max-width: 760px; }
.sstatic__page { margin: 0; display: grid; gap: 10px; }
.sstatic__page img { width: 100%; height: auto; border-radius: 18px; }
.sstatic__page figcaption { font-family: var(--sc-font-display); font-weight: 500; font-size: 1.2rem; line-height: 1.5; }
.sstatic__end { font-family: var(--sc-font-display); font-weight: 700; font-size: 1.6rem; color: var(--tangerine); }
.rhead__sum { margin: 10px 0 0; max-width: 62ch; font-size: 1.08rem; color: var(--ink-muted); }
.rhead__sum span { display: block; margin-top: 4px; font-weight: 700; color: var(--ink); }
.afterstory__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1000px) { .afterstory__grid { grid-template-columns: 1fr 1fr; } .afterstory__card--about { grid-column: 1 / -1; } }
@media (max-width: 640px) { .afterstory__grid { grid-template-columns: 1fr; } }
.facts { margin: 0; display: grid; gap: 10px; }
.facts div { display: grid; gap: 2px; }
.facts dt { font-weight: 800; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); }
.facts dd { margin: 0; font-weight: 700; }
.facts dd a { margin-right: 10px; }
.facts--row { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 16px 18px; border-radius: var(--r-lg); background: var(--paper-raised); border: 2px solid var(--ink); box-shadow: var(--sticker); margin: 18px 0 26px; }
@media (max-width: 760px) { .facts--row { grid-template-columns: 1fr 1fr; } }
.gfaq { margin: clamp(28px, 4vw, 48px) 0 0; max-width: 820px; }
.gfaq h2 { font-size: clamp(1.6rem, 1.2rem + 1vw, 2.1rem); margin-bottom: 10px; }
.gguide--one { grid-template-columns: 1fr; }

/* activity page */
.apage__head { padding: clamp(20px, 3vw, 40px) 0 0; }
.apage__title { display: grid; grid-template-columns: 92px 1fr; gap: 16px; align-items: center; }
.apage__title img { width: 92px; height: 92px; }
.apage__title h1 { font-size: clamp(2rem, 1.2rem + 3vw, 3.4rem); font-weight: 700; }
.apage__title .eyebrow { margin: 0 0 6px; }
.apage__sum { margin: 16px 0 0; max-width: 64ch; font-size: 1.15rem; line-height: 1.55; }
.apage__grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(20px, 4vw, 48px); align-items: start; }
.apage__main { border-top: 0; padding-top: 0; }
.apage__main h2 { font-size: 1.5rem; margin: 22px 0 8px; }
.apage__main h2:first-child { margin-top: 0; }
.apage__steps { counter-reset: s; list-style: none; padding: 0 !important; display: grid; gap: 10px !important; }
.apage__steps li { counter-increment: s; position: relative; padding: 12px 14px 12px 56px; border-radius: var(--r-md); background: var(--paper-raised); border: 1px solid var(--line); font-size: 1.08rem; }
.apage__steps li::before { content: counter(s); position: absolute; left: 12px; top: 10px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--star); border: 2px solid var(--ink); font-family: var(--sc-font-display); font-weight: 700; }
.apage__side { display: grid; gap: 18px; position: sticky; top: calc(var(--hdr-h) + 16px); }
.apage__story a { display: grid; gap: 8px; color: var(--ink); text-decoration: none; padding: 10px; border-radius: var(--r-lg); background: var(--paper-raised); border: 2px solid var(--ink); box-shadow: var(--sticker); }
.apage__story img { width: 100%; height: auto; border-radius: 12px; }
.apage__story strong { font-family: var(--sc-font-display); font-weight: 600; font-size: 1.2rem; }
@media (max-width: 860px) { .apage__grid { grid-template-columns: 1fr; } .apage__side { position: static; } .apage__title { grid-template-columns: 64px 1fr; } .apage__title img { width: 64px; height: 64px; } }
.agrid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .agrid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
a.acard { text-decoration: none; }
.act__pair { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; margin-top: 16px; padding: 12px; border-radius: var(--r-md); background: var(--paper-sunk); }
.act__pair img { width: 64px; height: 80px; object-fit: cover; border-radius: 8px; }
.act__pair p { margin: 0; font-size: 0.95rem; line-height: 1.4; }
@media (max-width: 560px) { .act__pair { grid-template-columns: 56px 1fr; } .act__pair .btn { grid-column: 1 / -1; } }
.apage .act__need, .apage .act__safe { font-size: 1.05rem; }

/* ---------- v2.5 programmatic pages: counts, collections, related, company pages ---------- */
.ghead__count { margin: 10px 0 0; font-weight: 800; font-size: 0.92rem; color: var(--ink-muted); }
.lbrowse--dir h3, .lbrowse--compact h3 { margin: 26px 0 10px; font-size: 1.05rem; color: var(--ink); }
.lbrowse--dir h3:first-of-type { margin-top: 14px; }
.gmirror, .gparents { margin: 22px 0 0; font-weight: 700; color: var(--ink); }
.gparents { margin: 6px 0 28px; }
.incoll { margin: 36px 0 0; }
.incoll h2 { font-size: clamp(1.3rem, 1rem + 0.8vw, 1.7rem); margin-bottom: 12px; }
.cpage { max-width: 820px; }
.cpage__sec { margin: 28px 0; padding: 22px 24px; border-radius: var(--r-lg); background: var(--paper-raised); box-shadow: var(--sc-e1), inset 0 0 0 1px var(--line); }
.cpage__sec h2 { font-size: 1.35rem; margin-bottom: 10px; }
.cpage__sec p, .cpage__sec li { line-height: 1.65; color: var(--ink); }
.cpage__sec ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.cpage__sec .btn { margin-top: 4px; }
.tbc { background: var(--tangerine-soft); color: var(--tangerine); font-weight: 800; padding: 0 6px; border-radius: 6px; }
.pideas { margin-top: clamp(40px, 6vw, 72px); }
.pideas > p { margin: 8px 0 18px; color: var(--ink); font-weight: 600; }
