/* Kids section — loaded after style.css only on /kids and /kids/<slug>.
   Masthead and nav keep their normal styling (still reads as Wyckoff News);
   everything else below is scoped under .kids-page so this can't leak onto
   adult pages, and it deliberately does NOT reuse style.css's serif/newspaper
   look — different type family, brighter palette, illustrated banners. */

.kids-page {
  background: #fff9e8;
  color: #1e3a2b;
  font-family: 'Nunito', 'PT Sans', sans-serif;
  font-size: 20px;
  line-height: 1.75;
}

.kids-page .nav-link.active { background: #ff8a3d; }

.kids-page-header {
  max-width: 1080px;
  margin: 0 auto;
  padding: 44px 20px 28px;
  text-align: center;
}
.kids-page-banner {
  width: 100%;
  max-width: 900px;
  border-radius: 24px;
  display: block;
  margin: 0 auto 28px;
}
.kids-page-kicker {
  display: inline-block;
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #fff;
  background: #ff8a3d;
  padding: 5px 16px;
  border-radius: 999px;
  margin: 0 0 16px;
}
.kids-page-title {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800;
  font-size: 54px;
  margin: 0 0 14px;
  color: #1a6b3a;
  text-shadow: 3px 3px 0 #ffe08a;
}
.kids-page-intro {
  font-size: 20px;
  color: #3a4a30;
  max-width: 640px;
  margin: 0 auto;
}

.kids-parents-note {
  max-width: 640px;
  margin: 0 auto 30px;
  padding: 14px 20px;
  background: #fff8e1;
  border: 2px solid #ffe08a;
  border-radius: 14px;
  font-size: 15px;
  line-height: 1.5;
  color: #3a4a30;
}
.kids-parents-note p { margin: 0 0 8px; }
.kids-parents-note p:last-child { margin-bottom: 0; }
.kids-parents-note a { color: #1a6b3a; text-decoration: underline; }

.kids-empty-state {
  text-align: center;
  color: #6a7a5a;
  padding: 30px 0 60px;
  font-size: 20px;
}

.kids-story-grid {
  max-width: 1080px;
  margin: 20px auto 70px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}
.kids-story-card {
  background: #fff;
  border: 4px solid #1a6b3a;
  border-radius: 24px;
  padding: 0 0 22px;
  overflow: hidden;
  box-shadow: 6px 6px 0 rgba(26,107,58,0.18);
}
.kids-story-thumb { display: block; }
.kids-story-thumb img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
}
.kids-story-headline {
  font-family: 'Baloo 2', sans-serif;
  font-size: 26px;
  font-weight: 700;
  margin: 18px 22px 10px;
}
.kids-story-headline a { color: #1a6b3a; }
.kids-story-deck { color: #3a4a30; margin: 0 22px 14px; }
.kids-story-meta {
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  color: #6a7a5a;
  margin: 0 22px;
}
.kids-read-more { color: #ff8a3d; font-weight: 800; }

/* ── Single kid article ── */
.kids-back-link {
  display: inline-block;
  margin: 24px 0 12px;
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: #ff8a3d;
}
.kids-article-header {
  max-width: 720px;
  margin: 0 auto 24px;
}
.kids-article-headline {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800;
  font-size: 44px;
  line-height: 1.15;
  color: #1a6b3a;
  margin: 0 0 16px;
}
.kids-article-deck {
  font-size: 22px;
  color: #3a4a30;
  margin: 0 0 14px;
}
.kids-article-byline {
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  color: #6a7a5a;
}
.kids-article-hero {
  max-width: 900px;
  margin: 0 auto 30px;
  padding: 0 20px;
}
.kids-article-hero img {
  width: 100%;
  border-radius: 24px;
  display: block;
}
.kids-article-body {
  max-width: 720px;
  margin: 0 auto 30px;
  font-size: 21px;
}
.kids-article-body p { margin: 0 0 24px; }
.kids-article-body .body-figure { margin: 0 0 28px; }
.kids-article-body .body-figure img {
  width: 100%;
  border-radius: 24px;
  display: block;
}
.kids-article-body .body-figure figcaption {
  font-size: 17px;
  line-height: 1.5;
  color: #555;
  margin-top: 10px;
  text-align: center;
}
.kids-article-body .cite a { color: #ff8a3d; }

.kids-adult-link {
  max-width: 720px;
  margin: 0 auto 30px;
  padding: 18px 22px;
  background: #eef6e6;
  border: 3px dashed #1a6b3a;
  border-radius: 18px;
  font-family: 'Nunito', sans-serif;
  font-size: 16px;
}
.kids-adult-link a { color: #1a6b3a; font-weight: 800; }

.kids-article-sources {
  max-width: 720px;
  margin: 0 auto 50px;
}
.kids-article-sources .citations-list { font-size: 15px; }

/* Clear, contained tables on phones as well as larger screens. */
.kids-article-body .table-scroll {
  max-width: 100%;
  overflow-x: auto;
  margin: 0 0 24px;
}
.kids-article-body .content-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 18px;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
}
.kids-article-body .content-table th,
.kids-article-body .content-table td {
  padding: 12px 10px;
  border: 1px solid #cbd8cf;
  text-align: center;
}
.kids-article-body .content-table th {
  background: #e8f1e9;
  font-weight: 800;
}
.kids-article-body .content-table tbody tr:nth-child(even) {
  background: #f4f7f3;
}
@media (max-width: 480px) {
  .kids-article-body .content-table { font-size: 16px; }
  .kids-article-body .content-table th,
  .kids-article-body .content-table td { padding: 10px 6px; }
}
