/* Kids' zone (pages built by scripts/build-kids.mjs): friendly type, painted pictures and print-ready sheets. */
.kids .k-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 18px; }
.kids .k-nav a { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--paper); text-decoration: none; font-size: .95rem; }
.kids .k-nav a[aria-current="page"] { background: #c2410c; border-color: #c2410c; color: #fff; }
.kids .k-text p, .kids .k-story .lead { font-size: 1.16rem; line-height: 1.7; }
.kids .k-figure { margin: 18px 0 22px; }
.k-art { display: block; width: 100%; height: auto; }
.kids .k-figure .k-art { border-radius: 18px; border: 1px solid var(--line); background: #fffaf3; }
.k-thumb { display: block; margin: -6px -6px 8px; }
.k-thumb .k-art { border-radius: 14px; border: 1px solid var(--line); background: #fff; aspect-ratio: 4 / 3; }
/* Painted pictures (kids/art/*.svg): a fixed 4:3 box, filled with a soft dusk colour until the picture arrives. */
.k-art.k-paint { aspect-ratio: 4 / 3; height: auto; }
.kids .k-figure .k-paint, .k-thumb .k-paint { background: #3b3d78; }
.k-card h3 { margin: 4px 0 0; font-size: 1.05rem; }
.k-dyk, .k-try { margin: 18px 0; }
.k-links { padding-left: 20px; line-height: 1.8; }
.k-hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; align-items: center; }
.k-hero h1 { margin-top: 6px; }
@media (max-width: 760px) { .k-hero { grid-template-columns: minmax(0, 1fr); } }
.k-qas { display: grid; gap: 10px; }
.k-qa summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; padding: 2px 0; }
.k-qa p { margin: 10px 0 2px; font-size: 1.05rem; line-height: 1.6; }
.k-letters { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 8px; }
.k-letters a { min-width: 38px; text-align: center; padding: 6px 0; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--paper); text-decoration: none; font-weight: 600; }
.k-letter { font-size: 1.6rem; color: var(--rock); margin: 22px 0 6px; }
.k-words { margin: 0; display: grid; gap: 10px; }
.k-words > div { padding: 12px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.k-words dt { font-weight: 600; font-size: 1.08rem; }
.k-words dd { margin: 4px 0 0; line-height: 1.6; }
.k-more { font-size: .9rem; white-space: nowrap; }
/* "How to tell if a rock might be a meteorite" (kids/how-to-tell.html): safety box, the three checks and the museum line. */
.k-tell .k-safe { margin: 20px 0; border: 2px solid #c2410c; }
.k-tell .k-safe h2, .k-tell .k-check h2, .k-tell .k-sure h2 { margin-top: 2px; }
.k-tell .k-safe ul, .k-tell .k-means { padding-left: 22px; margin: 8px 0; display: grid; gap: 6px; line-height: 1.6; font-size: 1.05rem; }
.k-tell-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 4px; }
.k-tell-jump a { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--paper); text-decoration: none; font-weight: 600; }
.k-tell .k-check { margin: 22px 0; }
.k-tell .k-check h3 { margin: 16px 0 4px; font-size: 1.1rem; }
.k-tell .k-check .k-figure { max-width: 460px; }
.k-tell .k-check .k-steps { font-size: 1.05rem; }
.k-tell .k-remember { margin: 12px 0 0; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); line-height: 1.6; }
.k-tell .k-clues { margin-top: 10px; }
.k-tell .k-sure { margin: 22px 0; border: 2px solid var(--good); }
.k-tell .k-sure-line { font-size: 1.15rem; line-height: 1.5; }

/* Short "New here? Start with these 3 stories" block at the top of the Kids' zone hub. */
.kids .k-start { margin: 8px 0 28px; }
.kids .k-start h2 { margin-top: 0.2rem; }
.kids .k-start-list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.kids .k-start-list a {
  display: block;
  box-sizing: border-box;
  padding: 0 0 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--paper);
  text-decoration: none;
  min-height: 44px;
  overflow: hidden;
}
.kids .k-start-list a:hover {
  border-color: var(--rock);
  box-shadow: inset 0 0 0 1px var(--rock);
}
.kids .k-start-list a:focus-visible {
  border-color: var(--rock);
  outline: 3px solid var(--rock);
  outline-offset: 2px;
}
/* Starter previews use k-start-thumb (not k-thumb) so they may reuse a story's existing picture
   without counting as a second tile in repeatedPictures / the unique-picture test. */
.kids .k-start-thumb { display: block; }
.kids .k-start-thumb .k-art {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 0;
  border-radius: 0;
  background: #3b3d78;
}
.kids .k-start-list a .eyebrow,
.kids .k-start-title,
.kids .k-start-intro { padding-left: 16px; padding-right: 16px; }
.kids .k-start-list a .eyebrow { padding-top: 12px; margin-bottom: 0.35rem; }
.kids .k-start-title { display: block; font-weight: 600; font-size: 1.08rem; color: var(--paper); }
.kids .k-start-intro { display: block; margin-top: 4px; font-weight: 400; font-size: 1rem; line-height: 1.5; color: var(--mist); }
@media (min-width: 761px) {
  .kids .k-start-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
}

/* Colour for the pictures on story pages; sheets (k-blank) stay white for colouring in. */
.k-colour .k-star { fill: #fde68a; } .k-colour .k-moon { fill: #f5f0e6; } .k-colour .k-tail { fill: #fed7aa; } .k-colour .k-fire { fill: #fb923c; }
.k-colour .k-wood, .k-colour .k-handle { fill: #b4835a; } .k-colour .k-wood2 { fill: #93653f; } .k-colour .k-leaf { fill: #86c27a; } .k-colour .k-grass { fill: #a7d79b; } .k-colour .k-grass2 { fill: #8cc47e; }
.k-colour .k-wall { fill: #f7e3c6; } .k-colour .k-roof { fill: #d9705a; } .k-colour .k-door { fill: #9a6a46; } .k-colour .k-window { fill: #fff3b0; }
.k-colour .k-earth { fill: #b8d8c6; } .k-colour .k-land { fill: #7fb069; } .k-colour .k-ground { fill: #d6cfc4; } .k-colour .k-rim { fill: #c9c0b3; } .k-colour .k-bowl { fill: #b0a597; }
.k-colour .k-rock { fill: #8d8378; } .k-colour .k-rock2 { fill: #a59b8f; } .k-colour .k-dent { fill: #6f665c; }
.k-colour .k-planet { fill: #f2c48d; } .k-colour .k-ring { fill: #e8d9b5; } .k-colour .k-flame { fill: #fb923c; } .k-colour .k-flame2 { fill: #fde047; }
.k-colour .k-fin { fill: #e85d3c; } .k-colour .k-nose { fill: #e85d3c; } .k-colour .k-body { fill: #f3f1ec; } .k-colour .k-metal { fill: #b8bec7; } .k-colour .k-glass { fill: #eef6ee; }
.k-colour .k-sun { fill: #fcd34d; } .k-colour .k-mercury { fill: #b9b2a8; } .k-colour .k-venus { fill: #f1d9a3; } .k-colour .k-earth, .k-colour .k-planet-earth { fill: #b8d8c6; } .k-colour .k-mars { fill: #e0764f; }
.k-colour .k-jupiter { fill: #e8c39e; } .k-colour .k-spot { fill: #d47c55; } .k-colour .k-saturn { fill: #ecd59a; } .k-colour .k-uranus { fill: #b7e0d4; } .k-colour .k-neptune { fill: #9fc9c0; }
.k-colour .k-dust { fill: #fde7c2; } .k-colour .k-ion { fill: #e7ecef; } .k-colour .k-coma { fill: #fff6dc; } .k-colour .k-sea { fill: #cfc6b8; } .k-colour .k-crater { fill: #e2dacd; }
.k-colour .k-panel { fill: #5b6472; } .k-colour .k-dish { fill: #e5e7eb; } .k-colour .k-card { fill: #fffdf7; } .k-colour .k-blanket { fill: #e8a77f; } .k-colour .k-flask { fill: #7aa874; } .k-colour .k-book { fill: #f4d58d; }

/* Age-band quizzes (kids/quiz-ages-<band>.html, js/kids-quiz.js) */
.kq-bands { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 22px; }
.kq-bands a.chip { display: inline-flex; align-items: center; text-decoration: none; }
.kq-bands a.chip[aria-current="page"] { background: #c2410c; border-color: #c2410c; color: #fff; font-weight: 600; }
.kq { margin: 0; }
.kq-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.kq-list h2 { margin: 0 0 .4em; }
.kq-opts { margin: 0 0 10px; padding-left: 22px; line-height: 1.6; }
.kq-list summary { cursor: pointer; font-weight: 600; color: var(--ember); }
.kq .qz-explain a { white-space: normal; }

/* Printable sheets */
.k-sheet { border: 2px dashed var(--line); border-radius: 16px; padding: 18px; background: #fff; margin: 14px 0; color: #111; }
.k-sheet-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 10px; }
.k-sheet-head h2 { margin: 0; font-size: 1.4rem; }
.k-fields { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 10px 0; }
.k-steps { margin: 10px 0; padding-left: 22px; line-height: 1.6; }
.k-sheet-art { margin: 10px 0; }
.k-wordlist { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 6px 14px; font-weight: 600; letter-spacing: .06em; }
.k-table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.k-table th, .k-table td { border: 1.5px solid #111; padding: 8px 10px; text-align: left; vertical-align: top; }
.k-table td { height: 38px; }
/* Phone screens: the record tables on the printable sheets fit the width (tighter cells, long headings may wrap). Print is unchanged. */
@media screen and (max-width: 480px) { .k-table th, .k-table td { padding: 6px 4px; } .k-table th { font-size: .8rem; hyphens: auto; } }
.k-fact { margin: 10px 0 4px; }
.k-foot { margin: 8px 0 0; font-size: .8rem; color: #555; text-align: right; }
@media print {
  @page { size: A4; margin: 12mm; }
  body:has(.k-sheet) * { visibility: hidden; }
  body:has(.k-sheet) .k-sheet, body:has(.k-sheet) .k-sheet * { visibility: visible; }
  body:has(.k-sheet) .k-sheet { position: absolute; left: 0; right: 0; top: 0; margin: 0; border: 0; padding: 0; }
  .k-sheet-art .k-art { max-height: 150mm; width: auto; max-width: 100%; margin: 0 auto; }
}

/* Shooting-star countdown (scripts/build-kids.mjs, site/js/kids-countdown.js). Room is kept for the number, so the
   page does not jump when it is filled in. The dots twinkle gently, and keep still for reduced motion. */
.kids .k-count { margin: 8px 0 28px; border: 2px solid var(--rock); }
.kids .k-count-title { margin: 0 0 6px; font-size: .8rem; }
.kids .k-count-main { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; min-height: 92px; }
.kids .k-count-big { margin: 0; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.kids .k-count-num { font-family: var(--display); font-size: clamp(3rem, 14vw, 4.6rem); line-height: 1; color: var(--rock); }
.kids .k-count-unit { font-size: 1.3rem; font-weight: 600; }
.kids .k-count-say { margin: 0; font-size: 1.35rem; font-weight: 600; line-height: 1.35; color: var(--paper); }
.kids .k-count-when { margin: 4px 0 0; }
.kids .k-count-when:empty { display: none; }
.kids .k-count-dots { display: flex; flex-wrap: wrap; gap: 7px; margin: 14px 0 4px; }
.kids .k-count-dots:empty { display: none; }
.kids .k-count-dot { width: 16px; height: 16px; border-radius: 50%; background: var(--rock); animation: k-twinkle 2.6s ease-in-out infinite; animation-delay: calc(var(--i, 0) * 90ms); }
@keyframes k-twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .kids .k-count-dot { animation: none; } }
.kids .k-count-more { margin: 14px 0 0; padding-top: 10px; border-top: 1px solid var(--line); }
.kids .k-count-more summary { cursor: pointer; font-weight: 600; color: var(--paper); }
.kids .k-count-more p { margin: 8px 0; }
.kids .k-count-links { margin: 12px 0 0; }
/* Colouring pack picker (kids/sheets/index.html, site/js/sheet-picker.js): tabs, tick boxes, a running count and Make my PDF. */
.k-pack { margin: 18px 0 24px; border: 1px solid var(--line); background: var(--panel); }
.k-pack h2 { margin-top: 0; }
.k-pack-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 10px; }
.k-pack-tabs [role="tab"] { min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--paper); font: inherit; font-size: .95rem; cursor: pointer; text-align: left; }
.k-pack-tabs [role="tab"][aria-selected="true"] { background: #c2410c; border-color: #c2410c; color: #fff; font-weight: 600; }
.k-pack-tabs [role="tab"]:focus-visible, .k-pack-item input:focus-visible, .k-pack-switch input:focus-visible { outline: 3px solid #c2410c; outline-offset: 2px; }
.k-pack-n { display: inline-block; min-width: 1.6em; margin-left: 4px; padding: 0 6px; border-radius: 999px; background: var(--raised); color: var(--paper); font-size: .82rem; font-weight: 600; text-align: center; }
.k-pack-tabs [aria-selected="true"] .k-pack-n { background: #fff; color: #c2410c; }
.k-pack-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 6px 0 12px; }
.k-pack-switch { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; }
.k-pack-switch input { width: 22px; height: 22px; accent-color: #c2410c; }
.k-pack-group h3 { margin: 14px 0 8px; font-size: 1.05rem; }
.k-pack-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.k-pack [hidden] { display: none !important; }
.k-pack-item { position: relative; display: flex; flex-direction: column; border: 2px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden; }
.k-pack-item:has(input:checked) { border-color: #c2410c; box-shadow: 0 0 0 2px #c2410c inset; }
.k-pack-item label { display: flex; flex-direction: column; gap: 6px; padding: 8px; cursor: pointer; flex: 1; }
.k-pack-item img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 8px; border: 1px solid var(--line); background: #fff; }
.k-pack-tick { display: flex; align-items: flex-start; gap: 8px; font-size: .92rem; line-height: 1.35; }
.k-pack-tick input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: #c2410c; }
.k-pack-kind { display: inline-block; margin-top: 2px; font-size: .76rem; font-weight: 600; color: var(--mist); text-transform: uppercase; letter-spacing: .04em; }
.k-pack-open { display: block; padding: 0 8px 8px 38px; font-size: .88rem; }
.k-pack-empty { margin: 10px 0; padding: 14px 16px; border: 1px dashed var(--line); border-radius: 14px; background: #fff; }
.k-pack-go { position: sticky; bottom: 0; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; margin: 14px -22px -22px; padding: 12px 22px; border-top: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); background: var(--panel); box-shadow: 0 -6px 16px -10px rgba(0, 0, 0, .3); }
.k-pack-count { margin: 0; font-weight: 600; }
.k-pack-status { flex-basis: 100%; margin: 0; font-size: .92rem; color: var(--mist); }
.k-pack-status:empty { display: none; }
@media (max-width: 600px) {
  .k-pack { padding: 16px; }
  .k-pack-go { margin: 14px -16px -16px; padding: 10px 16px; }
  .k-pack-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .k-pack-go .btn { flex: 1 1 100%; }
}

/* Space rock myths busted (kids/myths.html): tap a myth to see what is really true. The small pop when an answer
   opens runs only when the visitor has not asked for reduced motion. */
.k-myth summary { cursor: pointer; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; list-style: none; min-height: 44px; }
.k-myth summary::-webkit-details-marker { display: none; }
.k-myth-q { flex: 1 1 14rem; font-weight: 600; font-size: 1.1rem; line-height: 1.45; }
.k-myth-tap { font-size: .9rem; color: var(--rock); font-weight: 600; white-space: nowrap; }
.k-myth[open] .k-myth-tap { display: none; }
.k-tag { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .82rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.k-tag-myth { background: #fde2e2; color: #9b1c1c; }
.k-tag-true { background: #dcf3e2; color: #166534; }
.k-myth-a { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.k-myth-a p { margin: 8px 0 2px; font-size: 1.08rem; line-height: 1.6; }
.k-myth-a .k-myth-more { font-size: .98rem; }
@media (prefers-reduced-motion: no-preference) {
  .k-myth[open] .k-myth-a { animation: k-myth-pop .25s ease-out; }
  @keyframes k-myth-pop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
}
