/* Science1to5 — site styles. Colors, fonts and sizes are variables below. */
@font-face { font-family: "Andika"; src: url("../fonts/andika-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Andika"; src: url("../fonts/andika-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Fredoka"; src: url("../fonts/fredoka-latin-wght-normal.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }

:root {
  --paper: #F6FAFE;      /* graph-paper background */
  --grid: #DCE8F3;       /* graph-paper lines */
  --ink: #15324B;        /* main text, borders */
  --ink-soft: #4A6378;   /* secondary text */
  --white: #FFFFFF;
  --sun: #FFD43B;        /* buttons, highlights */
  --life: #237A35;  --life-bg: #E3F3E7;   /* Life science */
  --earth: #5541C9; --earth-bg: #ECE9FB;  /* Earth & space science */
  --phys: #C2410C;  --phys-bg: #FFEEE3;   /* Physical science */
  --font-head: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
  --font-kid: "Andika", "Segoe UI", system-ui, sans-serif;
  --radius: 14px;
  --pop: 3px 3px 0 var(--ink);
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); font-family: var(--font-kid); font-size: 1.125rem; line-height: 1.6;
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px;
}
img, svg { max-width: 100%; }
a { color: var(--earth); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--earth); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, .h { font-family: var(--font-head); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; max-width: 68ch; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--sun); color: var(--ink); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 10px; top: 10px; }
.lead { font-size: 1.25rem; color: var(--ink-soft); }
.muted { color: var(--ink-soft); }

/* ---------- Header ---------- */
.site-header { background: var(--white); border-bottom: 2px solid var(--ink); position: sticky; top: 0; z-index: 20; }
.header-row { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo-mark { width: 40px; height: 40px; flex: none; }
.logo-word { font-family: var(--font-head); font-weight: 600; font-size: 1.45rem; letter-spacing: -0.02em; }
.logo-word span { font-weight: 400; color: var(--earth); }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.site-nav > a, .grades-menu summary {
  font-family: var(--font-head); font-weight: 500; font-size: 1.05rem; color: var(--ink); text-decoration: none;
  padding: 8px 14px; border-radius: 10px; cursor: pointer; list-style: none;
}
.grades-menu summary::-webkit-details-marker { display: none; }
.grades-menu summary::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.site-nav > a:hover, .grades-menu summary:hover { background: var(--paper); }
.site-nav > a[aria-current="page"] { background: var(--sun); }
.grades-menu { position: relative; }
.grades-menu ul { position: absolute; top: calc(100% + 8px); left: 0; margin: 0; padding: 8px; list-style: none; background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--pop); min-width: 200px; }
.grades-menu li a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-family: var(--font-head); }
.grades-menu li a:hover { background: var(--sun); }
.menu-btn { display: none; margin-left: auto; font: 600 1rem var(--font-head); color: var(--ink); background: var(--white); border: 2px solid var(--ink); border-radius: 10px; padding: 8px 14px; }
@media (max-width: 760px) {
  .menu-btn { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 2px solid var(--ink); flex-direction: column; align-items: stretch; padding: 10px 20px 18px; }
  .site-nav.open { display: flex; }
  .grades-menu ul { position: static; box-shadow: none; border: 0; padding: 0 0 0 10px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; font: 600 1.1rem var(--font-head); color: var(--ink); text-decoration: none;
  background: var(--sun); border: 2px solid var(--ink); border-radius: 12px; padding: 12px 22px; box-shadow: var(--pop); cursor: pointer;
  transition: transform .08s, box-shadow .08s;
}
.btn:hover { color: var(--ink); transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn-plain { background: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }

/* ---------- Sections ---------- */
main { display: block; }
.section { padding-top: 64px; padding-bottom: 64px; }
.section-head { margin-bottom: 28px; }
.section-head p { color: var(--ink-soft); }
.panel { background: var(--white); border: 2px solid var(--ink); border-radius: 20px; padding: 32px; }

/* ---------- Home hero: annotated specimen board ---------- */
.hero { padding-top: 56px; padding-bottom: 40px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); margin-bottom: 0.35em; }
.hero .lead { max-width: 34ch; }
.specimen { position: relative; aspect-ratio: 1 / 0.92; }
.specimen svg { width: 100%; height: 100%; display: block; }
.tag {
  position: absolute; display: block; width: 46%; padding: 10px 14px; background: var(--white); border: 2px solid currentColor; border-radius: 12px;
  text-decoration: none; font-size: 0.95rem; line-height: 1.35; box-shadow: 3px 3px 0 currentColor;
}
.tag strong { display: block; font: 600 1.1rem var(--font-head); }
.tag span { color: var(--ink); }
.tag:hover { transform: translate(-1px,-1px); }
.tag-life { color: var(--life); left: 0; top: 3%; }
.tag-earth { color: var(--earth); right: 0; top: 41%; }
.tag-phys { color: var(--phys); left: 0; bottom: 3%; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .specimen { max-width: 520px; }
}
@media (max-width: 600px) {
  .specimen { aspect-ratio: auto; display: grid; gap: 10px; }
  .specimen svg { height: auto; max-width: 340px; margin: 0 auto; }
  .specimen .lead-line { display: none; }
  .tag { position: static; width: auto; }
}
.grade-label { line-height: 1.25; }

/* ---------- Grade picker: graph squares ---------- */
.grade-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; list-style: none; padding: 0; margin: 0; }
.grade-strip a {
  display: flex; flex-direction: column; justify-content: space-between; aspect-ratio: 1; padding: 14px 16px; text-decoration: none; color: var(--ink);
  background: var(--white); border: 2px solid var(--ink); border-radius: 16px; transition: transform .1s, box-shadow .1s;
}
.grade-strip a:hover { transform: translate(-2px,-2px); box-shadow: var(--pop); background: var(--sun); }
.grade-num { font: 600 clamp(2.6rem, 6vw, 4rem) var(--font-head); line-height: 1; }
.grade-label { font-size: 0.95rem; color: var(--ink-soft); }
.grade-strip a:hover .grade-label { color: var(--ink); }
@media (max-width: 760px) { .grade-strip { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Game tiles ---------- */
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; list-style: none; padding: 0; margin: 0; }
.game-tile { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--ink); background: var(--white); border: 2px solid var(--ink); border-radius: 18px; overflow: hidden; transition: transform .1s, box-shadow .1s; }
.game-tile:hover { color: var(--ink); transform: translate(-2px,-2px); box-shadow: var(--pop); }
.game-art { display: grid; place-items: center; aspect-ratio: 16 / 9; font-size: 3.4rem; border-bottom: 2px solid var(--ink); letter-spacing: 0.1em; }
.game-body { padding: 14px 18px 18px; }
.game-body h3 { margin-bottom: 0.25em; }
.game-body p { margin: 0; color: var(--ink-soft); font-size: 1rem; }
.game-meta { display: block; font-size: 0.9rem; margin-top: 10px; color: var(--ink); }
.strand-life .game-art { background: var(--life-bg); }
.strand-earth .game-art { background: var(--earth-bg); }
.strand-phys .game-art { background: var(--phys-bg); }
.soon .game-tile { border-style: dashed; }
.soon .game-art { filter: grayscale(.6); opacity: .7; }

/* ---------- Strands ---------- */
.strands { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.strand { background: var(--white); border: 2px solid var(--ink); border-top: 10px solid; border-radius: 16px; padding: 22px 22px 18px; }
.strand.life { border-top-color: var(--life); }
.strand.earth { border-top-color: var(--earth); }
.strand.phys { border-top-color: var(--phys); }
.strand h3 { margin-bottom: 0.4em; }
.strand ul { margin: 0; padding-left: 1.1em; }
.strand li { margin-bottom: 4px; }
@media (max-width: 860px) { .strands { grid-template-columns: 1fr; } }

/* ---------- Two-column info ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 24px; } }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding-left: 36px; margin-bottom: 14px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 22px; height: 22px; border: 2px solid var(--ink); border-radius: 6px; background: var(--sun) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3L15 6.5' fill='none' stroke='%2315324B' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }

/* ---------- Grade & content pages ---------- */
.page-head { padding-top: 44px; padding-bottom: 20px; }
.crumbs { font-size: 0.95rem; margin-bottom: 14px; color: var(--ink-soft); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--ink-soft); }
.crumbs a { color: var(--ink-soft); }
.grade-jump { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 18px 0 0; }
.grade-jump a { display: inline-block; min-width: 46px; text-align: center; padding: 6px 12px; border: 2px solid var(--ink); border-radius: 10px; background: var(--white); text-decoration: none; color: var(--ink); font: 600 1rem var(--font-head); }
.grade-jump a[aria-current="page"] { background: var(--sun); }
.topic-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.topic { background: var(--white); border: 2px solid var(--ink); border-left: 10px solid; border-radius: 14px; padding: 16px 20px; display: grid; grid-template-columns: 1fr auto; gap: 4px 20px; align-items: start; }
.topic.life { border-left-color: var(--life); }
.topic.earth { border-left-color: var(--earth); }
.topic.phys { border-left-color: var(--phys); }
.topic h3 { margin: 0; font-size: 1.2rem; }
.topic p { margin: 0; grid-column: 1; color: var(--ink-soft); font-size: 1rem; }
.code { grid-column: 2; grid-row: 1 / span 2; align-self: center; font: 500 0.9rem var(--font-head); padding: 4px 10px; border-radius: 8px; white-space: nowrap; }
.life .code { background: var(--life-bg); color: var(--life); }
.earth .code { background: var(--earth-bg); color: var(--earth); }
.phys .code { background: var(--phys-bg); color: var(--phys); }
.topic-play { font-size: 1rem; }
.topic-links { grid-column: 1; margin-top: 6px; font-size: 1rem; color: var(--ink-soft); }
.topic > .topic-play { grid-column: 1; margin-top: 6px; }
@media (max-width: 560px) { .topic { grid-template-columns: 1fr; } .code { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 6px; } }
.strand-key { display: flex; flex-wrap: wrap; gap: 18px; list-style: none; padding: 0; margin: 0 0 18px; font-size: 0.95rem; }
.strand-key li::before { content: ""; display: inline-block; width: 14px; height: 14px; border-radius: 4px; margin-right: 8px; vertical-align: -1px; }
.strand-key .life::before { background: var(--life); }
.strand-key .earth::before { background: var(--earth); }
.strand-key .phys::before { background: var(--phys); }
.try-it { background: var(--white); border: 2px dashed var(--ink); border-radius: 20px; padding: 28px 32px; }
.try-it ol { padding-left: 1.3em; margin: 0 0 1em; }
.try-it li { margin-bottom: 6px; }
.callout { background: var(--sun); border: 2px solid var(--ink); border-radius: 20px; padding: 28px 32px; box-shadow: var(--pop); }
.callout p:last-child { margin-bottom: 0; }
.prose { max-width: 720px; }
.prose h2 { margin-top: 1.6em; }
.faq details { background: var(--white); border: 2px solid var(--ink); border-radius: 14px; padding: 14px 20px; margin-bottom: 12px; }
.faq summary { font: 600 1.15rem var(--font-head); cursor: pointer; }
.faq details p { margin: 10px 0 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #DCE8F3; margin-top: 64px; padding: 48px 0 24px; }
.site-footer a { color: var(--white); }
.site-footer .logo { color: var(--white); }
.site-footer .logo-word span { color: var(--sun); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 28px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 6px; }
.footer-h { font-size: 1.05rem; color: var(--sun); margin-bottom: 10px; }
.footer-about p { font-size: 1rem; margin-top: 10px; }
.footer-base { border-top: 1px solid rgba(220,232,243,.25); margin-top: 32px; padding-top: 18px; font-size: 0.9rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ---------- Topic pages ---------- */
.t-head h1 { margin-bottom: 0.3em; }
.t-lead { font-size: 1.3rem; color: var(--ink); max-width: 60ch; }
.t-meta { font-size: 1rem; color: var(--ink-soft); line-height: 1.9; }
.t-meta .t-chip { margin-right: 8px; }
.t-chip { display: inline-block; padding: 3px 10px; border-radius: 8px; font: 600 0.9rem var(--font-head); }
.t-chip.phys { background: var(--phys-bg); color: var(--phys); }
.t-chip.life { background: var(--life-bg); color: var(--life); }
.t-chip.earth { background: var(--earth-bg); color: var(--earth); }
.byline { font-size: 0.95rem; color: var(--ink-soft); margin-top: 6px; }
.t-layout > * { min-width: 0; }
.t-layout { display: grid; grid-template-columns: 220px minmax(0, 780px); gap: 48px; align-items: start; padding-top: 12px; }
.toc { position: sticky; top: 88px; font-size: 0.95rem; }
.toc-h { font-size: 1rem; margin-bottom: 8px; }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 3px solid var(--grid); }
.toc li a { display: block; padding: 4px 0 4px 14px; color: var(--ink-soft); text-decoration: none; }
.toc li a:hover { color: var(--ink); background: var(--white); }
@media (max-width: 960px) {
  .t-layout { grid-template-columns: 1fr; gap: 20px; }
  .toc { position: static; background: var(--white); border: 2px solid var(--ink); border-radius: 14px; padding: 14px 18px; }
  .toc ol { border: 0; columns: 2; }
  .toc li a { padding: 4px 0; }
}
.t-main > * + * { margin-top: 48px; }
.t-sec h2, .facts h2 { scroll-margin-top: 90px; }
.t-sec h3 { margin-top: 1.2em; }
.answer { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.6em; }
.t-sec ul { padding-left: 1.2em; }
.t-sec li { margin-bottom: 6px; }
.facts { background: var(--sun); border: 2px solid var(--ink); border-radius: 18px; padding: 22px 26px; box-shadow: var(--pop); }
.facts h2 { font-size: 1.4rem; margin-bottom: 0.4em; }
.facts ul { margin: 0; padding-left: 1.2em; }
.facts li { margin-bottom: 6px; }
.diagram { margin: 0; background: var(--white); border: 2px solid var(--ink); border-radius: 18px; padding: 18px; }
.diagram-svg { width: 100%; height: auto; display: block; }
.diagram figcaption { font-size: 0.95rem; color: var(--ink-soft); margin-top: 10px; }
.table-wrap { overflow-x: auto; border: 2px solid var(--ink); border-radius: 14px; background: var(--white); }
table.compare { width: 100%; border-collapse: collapse; font-size: 1rem; min-width: 560px; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--grid); }
.compare thead th { background: var(--ink); color: var(--white); font: 600 1rem var(--font-head); }
.compare tbody th { font-family: var(--font-head); font-weight: 600; }
.compare tbody tr:last-child > * { border-bottom: 0; }
.ex-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ex-group { background: var(--white); border: 2px solid var(--ink); border-radius: 14px; padding: 14px 18px; }
.ex-group h3 { margin: 0 0 6px; }
.ex-group ul { margin: 0; }
@media (max-width: 640px) { .ex-grid { grid-template-columns: 1fr; } }

.cta-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; padding: 18px 22px; background: var(--white); border: 2px solid var(--ink); border-radius: 18px; color: var(--ink); text-decoration: none; }
a.cta-card:hover { color: var(--ink); box-shadow: var(--pop); transform: translate(-1px,-1px); }
.cta-card.is-soon { border-style: dashed; }
.card-art { font-size: 2.6rem; line-height: 1; }
.card-body { display: flex; flex-direction: column; gap: 2px; }
.card-kind { font: 600 0.85rem var(--font-head); color: var(--ink-soft); }
.card-title { font: 600 1.25rem var(--font-head); }
.card-line, .card-meta { font-size: 1rem; color: var(--ink-soft); }
.card-meta { color: var(--ink); }
.soon-tag { font: 500 0.9rem var(--font-head); color: var(--ink-soft); }
@media (max-width: 640px) { .card-art { font-size: 1.7rem; } .cta-card { grid-template-columns: auto 1fr; } .cta-card .btn, .soon-tag { grid-column: 1 / -1; justify-self: start; } }
.cta-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 860px) { .cta-pair { grid-template-columns: 1fr; } }

.quiz { list-style: none; counter-reset: q; padding: 0 !important; margin: 0; display: grid; gap: 14px; }
.q { counter-increment: q; background: var(--white); border: 2px solid var(--ink); border-radius: 16px; padding: 16px 20px; margin: 0 !important; }
.q-text { font-weight: 700; margin-bottom: 10px; }
.q-text::before { content: counter(q) ". "; font-family: var(--font-head); color: var(--ink-soft); }
.q-opts { display: flex; flex-wrap: wrap; gap: 10px; }
.q-opt { font: 500 1.05rem var(--font-kid); color: var(--ink); background: var(--paper); border: 2px solid var(--ink); border-radius: 12px; padding: 10px 18px; min-height: 48px; cursor: pointer; }
.q-opt:hover:not(:disabled) { background: var(--sun); }
.q-opt:disabled { cursor: default; opacity: 0.55; }
.q-opt.is-answer { opacity: 1; background: var(--life-bg); border-color: var(--life); }
.q-opt.is-right { opacity: 1; background: #B7E4C2; border-color: var(--life); }
.q-opt.is-wrong { opacity: 1; background: var(--phys-bg); border-color: var(--phys); text-decoration: line-through; }
.q-why { margin: 10px 0 0; font-size: 1rem; }
.quiz-score { margin-top: 18px; font: 600 1.25rem var(--font-head); background: var(--sun); border: 2px solid var(--ink); border-radius: 14px; padding: 14px 18px; max-width: none; }

.ws-card { display: grid; grid-template-columns: 170px 1fr; gap: 22px; align-items: center; padding: 18px; background: var(--white); border: 2px solid var(--ink); border-radius: 18px; color: var(--ink); text-decoration: none; }
.ws-card:hover { color: var(--ink); box-shadow: var(--pop); }
.ws-card img { width: 100%; height: auto; border: 1px solid var(--grid); border-radius: 6px; box-shadow: 0 2px 0 var(--grid); }
.ws-body { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.ws-body .btn { margin-top: 10px; }
@media (max-width: 560px) { .ws-card { grid-template-columns: 110px 1fr; } }

.words { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 22px; margin: 0; }
.words div { background: var(--white); border: 2px solid var(--grid); border-radius: 12px; padding: 10px 14px; }
.words dt { font: 600 1.1rem var(--font-head); }
.words dd { margin: 2px 0 0; color: var(--ink-soft); font-size: 1rem; }
@media (max-width: 560px) { .words { grid-template-columns: 1fr; } }
.parents { background: var(--white); border: 2px solid var(--ink); border-radius: 20px; padding: 26px 28px; }
.parents .table-wrap { border-width: 1px; }
.mixups li strong { display: block; }
.related { list-style: none; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 10px; }
.related li { background: var(--white); border: 2px solid var(--grid); border-radius: 10px; padding: 6px 12px; margin: 0 !important; }
.sources { font-size: 0.95rem; }
.sources h2 { font-size: 1.3rem; }

/* ---------- Worksheet pages ---------- */
.ws-layout { display: grid; grid-template-columns: minmax(0, 420px) 1fr; gap: 44px; align-items: start; }
.ws-preview { margin: 0; }
.ws-preview img { width: 100%; height: auto; background: var(--white); border: 2px solid var(--ink); border-radius: 8px; box-shadow: var(--pop); }
.ws-download { font-size: 1.25rem; padding: 14px 26px; margin-bottom: 10px; }
.ws-info h2 { font-size: 1.4rem; margin-top: 1.2em; }
@media (max-width: 860px) { .ws-layout { grid-template-columns: 1fr; } .ws-preview { max-width: 380px; } }

.more-link { margin-top: 12px; font-size: 1rem; }
.ws-tiles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 18px; }
.ws-tile { display: flex; flex-direction: column; gap: 4px; padding: 12px; background: var(--white); border: 2px solid var(--ink); border-radius: 14px; color: var(--ink); text-decoration: none; font: 600 1rem var(--font-head); height: 100%; }
.ws-tile:hover { color: var(--ink); box-shadow: var(--pop); }
.ws-tile img { width: 100%; height: auto; border: 1px solid var(--grid); border-radius: 4px; margin-bottom: 6px; }
.ws-tile .muted { font: 400 0.9rem var(--font-kid); }

/* games hub: games by grade */
.by-grade { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.by-grade li { background: var(--white); border: 2px solid var(--ink); border-radius: 14px; padding: 12px 18px; line-height: 1.6; }
.game-about p { max-width: 70ch; }

/* vocabulary pages */
.vocab-letter { font-size: 1.6rem; margin: 28px 0 10px; color: var(--earth); }
.vocab { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; margin: 0; }
.vocab > div { background: var(--white); border: 2px solid var(--ink); border-radius: 14px; padding: 12px 16px; }
.vocab dt { font: 600 1.15rem var(--font-head); }
.vocab dd { margin: 4px 0 0; }
.vocab-from { display: inline-block; font-size: 0.9rem; margin-left: 4px; }
.topic h3 a { color: inherit; }

/* experiments, science fair, parents */
.chips { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-block; padding: 6px 14px; border: 2px solid var(--ink); border-radius: 999px; background: var(--white); color: var(--ink); text-decoration: none; font-weight: 600; }
a.chip:hover { box-shadow: var(--pop); color: var(--ink); }
.cards { display: grid; gap: 14px; }
.checklist { list-style: none; padding-left: 0; }
.checklist li { padding-left: 1.7em; position: relative; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .25em; width: 1em; height: 1em; border: 2px solid var(--ink); border-radius: 4px; background: var(--white); }
ol.steps { padding-left: 1.4em; }
ol.steps li { margin-bottom: 10px; padding-left: 4px; }
.predict { background: var(--white); border-left: 6px solid var(--sun); padding: 12px 16px; border-radius: 8px; font-weight: 600; }
.safety { background: #FFF4E6; border: 2px solid #E8590C; border-radius: 14px; padding: 14px 18px 14px 2.2em !important; }
.ideas { list-style: none; padding: 0; display: grid; gap: 14px; }
.idea { background: var(--white); border: 2px solid var(--grid); border-radius: 16px; padding: 16px 20px; }
.idea h3 { margin: 0 0 6px; }
.idea p { margin: 4px 0; }
.more-hands { margin-top: 14px; font-weight: 600; }
.record td { height: 2.2em; min-width: 5em; }
.byline { margin-top: 6px; }

/* question pages */
.q-answer p { max-width: none; margin: 0 0 .7em; font-size: 1.12rem; }
.q-answer .q-little { margin: 0; font-size: 1rem; color: var(--ink-soft); }
.try-box { background: var(--white); border: 2px solid var(--ink); border-radius: 16px; padding: 18px 22px; }
.try-box h3 { margin-top: 0; }
.q-words { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; }
.q-words dt { font: 600 1.05rem var(--font-head); }
.q-words dd { margin: 0; }
@media (max-width: 560px) { .q-words { grid-template-columns: 1fr; gap: 2px; } .q-words dd { margin-bottom: 10px; } }
.cta-list { display: grid; gap: 14px; }
.cta-list + p { margin-top: 16px; }

/* ---------- Blog ---------- */
.cat-chip { --cat: var(--ink); --cat-bg: var(--white); display: inline-block; font: 600 0.9rem var(--font-head); color: var(--cat); background: var(--cat-bg); border: 2px solid var(--cat); border-radius: 999px; padding: 2px 12px; text-decoration: none; }
a.cat-chip:hover { color: var(--cat); box-shadow: 2px 2px 0 var(--cat); }
.cat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; margin: 8px 0 28px; }
.post-card { background: var(--white); border: 2px solid var(--ink); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.post-card:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.post-card-img { display: block; aspect-ratio: 16 / 9; border-bottom: 2px solid var(--ink); background: var(--grid); }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-art { display: grid; place-items: center; height: 100%; font-size: 3.2rem; letter-spacing: 0.1em; background: var(--cat-bg); }
.post-card-body { padding: 16px 20px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card-body .cat-chip { align-self: flex-start; font-size: 0.8rem; }
.post-card h3 { margin: 0; font-size: 1.3rem; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a:hover { text-decoration: underline; }
.post-card p { margin: 0; color: var(--ink-soft); font-size: 1rem; }
.post-card .post-meta { margin-top: auto; font-size: 0.9rem; }
.post-card-big { display: grid; grid-template-columns: 1.25fr 1fr; box-shadow: var(--pop); }
.post-card-big .post-card-img { border-bottom: 0; border-right: 2px solid var(--ink); aspect-ratio: auto; min-height: 100%; }
.post-card-big .post-card-body { padding: 26px 30px; justify-content: center; }
.post-card-big h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.post-card-big p { font-size: 1.1rem; }
@media (max-width: 820px) { .post-card-big { grid-template-columns: 1fr; } .post-card-big .post-card-img { border-right: 0; border-bottom: 2px solid var(--ink); aspect-ratio: 16 / 9; } }
.blog-featured { margin: 6px auto 34px; }
.blog-soon { margin-bottom: 30px; }
.blog-soon h2 { margin-bottom: 0.1em; }
.soon-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.soon-list li { background: var(--white); border: 2px dashed var(--ink); border-radius: 14px; padding: 12px 18px; display: flex; gap: 16px; flex-wrap: wrap; align-items: baseline; }
.soon-date { font: 600 0.95rem var(--font-head); color: var(--ink-soft); min-width: 150px; }
.soon-title { font: 600 1.1rem var(--font-head); }
.blog-more { margin-bottom: 40px; }

.post-head .cat-chip { margin-bottom: 12px; }
.post-head h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); max-width: 22ch; }
.post-head .lead { max-width: 62ch; }
.post-hero { margin: 0 0 24px; border: 2px solid var(--ink); border-radius: 20px; overflow: hidden; box-shadow: var(--pop); background: var(--grid); }
.post-hero img { display: block; width: 100%; height: auto; }
.post-body { font-size: 1.15rem; }
.post-body h2 { margin-top: 1.6em; scroll-margin-top: 90px; }
.post-body h3 { margin-top: 1.3em; }
.post-body li { margin-bottom: 6px; }
.post-body img { border-radius: 14px; border: 2px solid var(--ink); }
.post-body table { border-collapse: collapse; width: 100%; background: var(--white); font-size: 1rem; }
.post-body th, .post-body td { border: 1px solid var(--grid); padding: 8px 10px; text-align: left; }
.callout { background: var(--white); border: 2px solid var(--ink); border-left: 10px solid var(--cat, var(--ink)); border-radius: 14px; padding: 14px 20px; margin: 18px 0; }
.callout > :last-child { margin-bottom: 0; }
.callout-h { font: 600 1.05rem var(--font-head); margin: 0 0 4px; }
.callout-science { border-left-color: var(--earth); background: var(--earth-bg); }
.callout-safety { border-left-color: #B91C1C; background: #FDECEC; }
.callout-tip { border-left-color: var(--sun); background: #FFF9DB; }
.callout-try { border-left-color: var(--life); background: var(--life-bg); }
.faq-list details { background: var(--white); border: 2px solid var(--ink); border-radius: 12px; padding: 10px 16px; margin-bottom: 10px; }
.faq-list summary { font: 600 1.1rem var(--font-head); cursor: pointer; }
.post-explore { margin-top: 2em; }
.explore-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.explore-card { display: flex; flex-direction: column; gap: 2px; background: var(--white); border: 2px solid var(--ink); border-radius: 14px; padding: 12px 16px; text-decoration: none; color: var(--ink); height: 100%; }
.explore-card:hover { color: var(--ink); box-shadow: var(--pop); transform: translate(-1px, -1px); }
.explore-kind { font: 600 0.85rem var(--font-head); color: var(--ink-soft); }
.explore-title { font: 600 1.1rem var(--font-head); }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 28px 0 18px; }
.share-h { font: 600 1rem var(--font-head); }
.share a, .share button { font: 600 0.95rem var(--font-head); color: var(--ink); background: var(--white); border: 2px solid var(--ink); border-radius: 999px; padding: 4px 14px; text-decoration: none; cursor: pointer; }
.share a:hover, .share button:hover { box-shadow: 2px 2px 0 var(--ink); }
.author-box { background: var(--sun); border: 2px solid var(--ink); border-radius: 18px; padding: 18px 22px; box-shadow: var(--pop); }
.author-box p { margin: 0; font-size: 1rem; }
.author-box .author-name { font: 600 1.15rem var(--font-head); margin-bottom: 4px; }
.post-pn { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 26px 0 8px; }
.post-pn a { background: var(--white); border: 2px solid var(--ink); border-radius: 14px; padding: 12px 16px; text-decoration: none; color: var(--ink); font: 600 1.05rem var(--font-head); }
.post-pn a span { display: block; font-size: 0.85rem; color: var(--ink-soft); }
.post-pn .pn-next { text-align: right; grid-column: 2; }
.post-related { margin-top: 40px; }
@media (max-width: 640px) { .post-pn { grid-template-columns: 1fr; } .post-pn .pn-next { grid-column: 1; } }
.post-body p { margin: 0 0 0.85em; }
.post-body ol, .post-body ul { margin: 0.2em 0 1em; }
.post-body .activity-meta { display: inline-block; font: 600 0.95rem var(--font-head); background: var(--white); border: 2px solid var(--ink); border-radius: 999px; padding: 2px 14px; margin: -0.2em 0 0.9em; }
.post-body h2 + .activity-meta { margin-top: -0.1em; }
