/* Parent topic pages. Built for a busy parent on a phone: the video and the words to say come first,
   big tap targets, short lines, and the details folded away until someone asks for them. */
:root {
  color-scheme: light;
  --sky: #CFE8FA;
  --paper: #FFFDF8;
  --cream: #FFF4E6;
  --ink: #1F2A37;
  --ink-2: #4B5563;
  --blue: #1E5A8A;
  --orange: #E2700F;
  --orange-deep: #C2410C;
  --grass: #8BD17C;
  --line: #E6DCCB;
  --display: 'Baloo 2', 'Nunito', 'Trebuchet MS', sans-serif;
  --body: 'Nunito', 'Segoe UI', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 18px; line-height: 1.55; }
a { color: var(--blue); }
h1, h2 { font-family: var(--display); line-height: 1.1; margin: 0; text-wrap: balance; }
.band { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.col { max-width: 720px; margin: 0 auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #F2A65A; outline-offset: 3px; }

/* top bar: brand, language, help */
.top { background: var(--sky); padding-block: 10px; }
.bar { max-width: 720px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 800; font-size: 21px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand img { width: 36px; height: 36px; border-radius: 50%; }
.brand span { color: var(--orange); }
.toplinks { display: flex; gap: 14px; }
.toplinks a { font-weight: 800; font-size: 15px; color: var(--ink); text-decoration: none; padding: 8px 0; }
.toplinks a:last-child { color: var(--orange-deep); }

/* head: the question and a two-sentence answer */
.head { background: var(--sky); padding-block: 14px 22px; }
.head h1 { font-size: clamp(30px, 6.4vw, 48px); font-weight: 800; }
.answer { margin: 10px 0 0; font-size: 18px; font-weight: 700; color: #374151; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chips span { background: #FFFFFF; color: var(--blue); border-radius: 999px; padding: 3px 12px; font-size: 14px; font-weight: 800; }

/* blocks */
main { padding-block: 0 40px; }
.blk { margin-top: 32px; }
.blk.first { margin-top: 0; padding-top: 16px; }
.blk h2 { font-size: clamp(24px, 4.6vw, 32px); font-weight: 800; }
.blk p { margin: 8px 0 0; }
.hint { color: var(--ink-2); font-size: 16px; }

/* video */
.yt { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: 18px; overflow: hidden; background: var(--sky); cursor: pointer; box-shadow: 0 6px 18px rgba(31,42,55,.12); }
.yt img { width: 100%; height: 100%; object-fit: cover; display: block; }
.yt .play { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; background: var(--orange-deep); box-shadow: 0 6px 0 #8F2F09; display: flex; align-items: center; justify-content: center; }
.yt .play svg { width: 34px; height: 34px; margin-left: 4px; }
.yt-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #000000; }
.yt-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cap { font-size: 16px; color: var(--ink-2); }
.cap strong { color: var(--ink); }

/* say this tonight */
.say { background: var(--cream); border-left: 6px solid var(--orange); border-radius: 18px; padding: 16px 18px 18px; }
.say ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; }
.say li { font-weight: 800; font-size: 19px; line-height: 1.4; }
.say li::before { content: '\201C'; color: var(--orange); }
.say li::after { content: '\201D'; color: var(--orange); }

/* rules */
.rules { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; counter-reset: r; }
.rules li { background: #FFFFFF; border: 2px solid var(--line); border-radius: 16px; padding: 12px 14px 12px 54px; position: relative; counter-increment: r; }
.rules li::before { content: counter(r); position: absolute; left: 14px; top: 12px; width: 28px; height: 28px; border-radius: 50%; background: var(--orange-deep); color: #FFFFFF; font-weight: 800; font-size: 15px; display: flex; align-items: center; justify-content: center; }
.rules strong { display: block; }

/* always-visible callout for families who are stretched thin */
.callout { background: #F2F7FC; border: 2px solid var(--sky); border-radius: 18px; padding: 16px 18px 18px; }
.callout ul { margin: 10px 0 0; padding-left: 1.2em; }
.callout li { margin-top: 6px; font-weight: 700; }

/* book strip: swipe through the pages right on the page */
.strip { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin-top: 12px; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
.strip img { flex: 0 0 88%; max-width: 560px; height: auto; scroll-snap-align: center; border-radius: 14px; border: 2px solid var(--line); background: var(--sky); }
.dl { font-size: 16px; font-weight: 700; }

/* tap to call */
.callbar { display: flex; align-items: center; gap: 14px; margin-top: 32px; background: var(--orange-deep); color: #FFFFFF; border-radius: 18px; padding: 14px 18px; text-decoration: none; box-shadow: 0 4px 0 #8F2F09; }
.callbar svg { width: 30px; height: 30px; flex: none; }
.callbar strong { display: block; font-size: 17px; }
.callbar small { display: block; font-size: 14px; opacity: .92; }

/* folded details */
details { background: #FFFFFF; border: 2px solid var(--line); border-radius: 16px; margin-top: 10px; }
summary { cursor: pointer; font-weight: 800; font-size: 17px; padding: 14px 16px; list-style-position: inside; }
.more-body { padding: 0 16px 14px; }
.more-body p, .more-body ul, .more-body ol { margin: 6px 0 0; }
.more-body ul, .more-body ol { padding-left: 1.2em; }
.more-body li { margin-top: 4px; }
.quiz em { font-style: normal; font-weight: 800; color: var(--orange-deep); }

/* related */
.related { display: grid; gap: 10px; margin-top: 12px; }
.related a { display: block; background: var(--sky); border-radius: 14px; padding: 14px 16px; font-weight: 800; text-decoration: none; color: var(--ink); }
.small { margin-top: 28px; font-size: 14px; color: var(--ink-2); }

/* help */
.help-band { background: #F2F7FC; padding-block: 36px; }
.help-band h2 { font-size: clamp(24px, 4.6vw, 32px); }
.urgent { margin-top: 12px; background: var(--orange-deep); color: #FFFFFF; border-radius: 16px; padding: 12px 16px; font-weight: 800; }
.help-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; margin-top: 14px; }
.line { background: #FFFFFF; border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: var(--ink); }
.line strong { font-size: 15px; }
.line span { font-size: 14px; color: #374151; }
.line .num { font-family: var(--display); font-size: 22px; font-weight: 800; color: var(--orange-deep); }

footer { background: var(--ink); color: #E5E7EB; padding-block: 28px 32px; }
footer .col { display: flex; flex-direction: column; gap: 8px; }
footer strong { color: #FFFFFF; font-size: 16px; }
footer p { margin: 0; font-size: 13px; line-height: 1.6; color: #CBD5E1; }
footer a { color: #FFFFFF; }

@media (min-width: 760px) {
  .head { padding-block: 24px 32px; }
  .answer { font-size: 20px; }
  .related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strip img { flex-basis: 70%; }
}
@media (max-width: 420px) {
  .brand { font-size: 18px; gap: 6px; }
  .brand img { width: 30px; height: 30px; }
  .toplinks { gap: 12px; }
  .toplinks a { font-size: 14px; }
}
