.kids-page {
  --kids-ink: #103744;
  --kids-lagoon: #b7eee4;
  --kids-mango: #ffd564;
  --kids-coral: #ffc8ae;
  min-height: calc(100dvh - 76px);
  padding: clamp(20px, 4vw, 52px) var(--pad) 56px;
  color: var(--kids-ink);
  background: #fff8e9;
}

.kids-shell { max-width: 1120px; margin: 0 auto; }
.kids-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.kids-heading h1, .kids-feature h2, .kids-collection h2 {
  font-family: 'Trebuchet MS', system-ui, sans-serif;
  font-weight: 850;
  letter-spacing: -.045em;
  line-height: 1.05;
}
.kids-heading h1 { font-size: clamp(2rem, 6vw, 3.5rem); }
.kids-heading h1 span { color: #08786d; }
.kids-heading p { background: var(--kids-mango); border-radius: 999px; padding: 5px 14px; font-weight: 750; }

.kids-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  background: var(--kids-lagoon);
  border-radius: clamp(22px, 4vw, 36px);
  overflow: hidden;
}
.kids-feature-copy { align-self: center; padding: clamp(22px, 5vw, 64px); }
.kids-feature-label { font-weight: 800; color: #116053; }
.kids-feature h2 { margin: 8px 0 12px; font-size: clamp(2rem, 5.4vw, 4.75rem); overflow-wrap: anywhere; }
.kids-feature-copy > p:not(.kids-feature-label) { max-width: 35ch; font-size: clamp(1rem, 1.7vw, 1.16rem); }
.kids-feature-image { position: relative; min-height: 300px; background: #8ed6cc; }
.kids-feature-image img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.kids-feature-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 11px; margin-top: 19px; font-weight: 750; }
.kids-feature-actions .primary {
  min-height: 50px;
  background: var(--kids-mango);
  border-color: #a16d12;
  border-radius: 999px;
  color: var(--kids-ink);
  font-size: 1rem;
}
.kids-feature-status { display: inline-block; padding: 7px 13px; background: #e6faf2; border-radius: 999px; }

.kids-collection { margin-top: clamp(26px, 4vw, 50px); }
.kids-collection h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
.kids-collection p { margin-top: 5px; }
.kids-reel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 60px) / 4);
  gap: 20px;
  margin: 12px -5px 0;
  padding: 5px 5px 12px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 5px;
  scrollbar-color: #3f8e81 #e6f3e8;
  list-style: none;
}
.kids-reel li { display: flex; min-width: 0; scroll-snap-align: start; }
.kids-story {
  display: block;
  width: 100%;
  padding: 0;
  border-radius: 20px;
  text-align: left;
  color: var(--kids-ink);
  background: #fffdf8;
  border: 1px solid #e2d9c1;
  overflow: hidden;
}
.kids-cover { display: block; position: relative; aspect-ratio: 9 / 16; background: var(--kids-lagoon); overflow: hidden; }
.kids-reel li:nth-child(3n+2) .kids-cover { background: var(--kids-mango); }
.kids-reel li:nth-child(3n) .kids-cover { background: var(--kids-coral); }
.kids-cover img { width: 100%; height: 100%; object-fit: cover; }
.kids-card-play { position: absolute; right: 10px; bottom: 10px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--kids-mango); }
.kids-card-copy { display: grid; gap: 4px; padding: 10px 12px 13px; }
.kids-card-copy strong { font-size: clamp(1rem, 2vw, 1.2rem); line-height: 1.2; overflow-wrap: anywhere; }
.kids-card-copy > span { font-size: .875rem; color: #40565a; }
.kids-page button:focus-visible { outline-color: #056d65; }
.kids-page button.kids-story:hover { border-color: #08786d; }

@media (max-width: 800px) {
  .kids-page { padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
  .kids-reel { grid-auto-columns: max(138px, 30%); gap: 12px; }
}
@media (max-width: 540px) {
  .kids-feature { grid-template-columns: minmax(0, 1fr); }
  .kids-feature-image { grid-row: 1; min-height: 0; aspect-ratio: 17 / 10; }
  .kids-feature-image img { object-position: 50% 42%; }
  .kids-reel { grid-auto-columns: max(126px, 43%); }
}
