/* Entertain The Kids - site styles. Bootstrap 5 supplies the grid and reset; everything visual is here. */

:root {
  --ink: #12304a;
  --ink-soft: #33475b;
  --muted: #6b7c8c;
  --line: #dfe9f0;
  --paper: #ffffff;
  --wash: #f4fafd;
  --sky: #1a9bc7;
  --orange: #f7941d;

  /* Section accents: fill, readable text on white, pale tint */
  --coral: #e8554e;  --coral-text: #c23a33;  --coral-tint: #fdeeed;
  --leaf: #3fa55b;   --leaf-text: #2a7f43;   --leaf-tint: #eaf6ee;
  --sky-text: #0f7699;                       --sky-tint: #e6f5fa;
  --sun: #f2b01e;    --sun-text: #8a6100;    --sun-tint: #fdf5dc;
  --berry: #c9337b;  --berry-text: #a82463;  --berry-tint: #fbe9f2;
  --teal: #149a96;   --teal-text: #0d7774;   --teal-tint: #e3f5f4;
  --plum: #7b52ab;   --plum-text: #63408e;   --plum-tint: #f1eaf8;

  --accent: var(--sky);
  --accent-text: var(--sky-text);
  --accent-tint: var(--sky-tint);

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(18, 48, 74, .06), 0 8px 24px rgba(18, 48, 74, .08);
  --font: ui-rounded, "SF Pro Rounded", "Nunito", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

.accent-coral { --accent: var(--coral); --accent-text: var(--coral-text); --accent-tint: var(--coral-tint); }
.accent-leaf  { --accent: var(--leaf);  --accent-text: var(--leaf-text);  --accent-tint: var(--leaf-tint); }
.accent-sky   { --accent: var(--sky);   --accent-text: var(--sky-text);   --accent-tint: var(--sky-tint); }
.accent-sun   { --accent: var(--sun);   --accent-text: var(--sun-text);   --accent-tint: var(--sun-tint); }
.accent-berry { --accent: var(--berry); --accent-text: var(--berry-text); --accent-tint: var(--berry-tint); }
.accent-teal  { --accent: var(--teal);  --accent-text: var(--teal-text);  --accent-tint: var(--teal-tint); }
.accent-plum  { --accent: var(--plum);  --accent-text: var(--plum-text);  --accent-tint: var(--plum-tint); }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink-soft);
  background: var(--paper);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font); color: var(--ink); font-weight: 800; letter-spacing: -.01em; line-height: 1.15; }
a { color: var(--accent-text); text-underline-offset: .18em; }
a:hover { color: var(--ink); }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 4px; }

.container { max-width: 1240px; }
.container--narrow { max-width: 800px; }
.skip-link { position: absolute; top: .5rem; left: .5rem; z-index: 100; background: var(--ink); color: #fff; padding: .5rem 1rem; border-radius: var(--radius-sm); }

/* ---------- header ---------- */

.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header__bar { display: flex; align-items: center; gap: 1.5rem; padding-top: .7rem; padding-bottom: .7rem; }

.site-logo { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; margin-right: auto; }
.site-logo img { height: 46px; width: auto; }
.site-logo__word { font-family: var(--font); font-weight: 800; font-size: 1.45rem; line-height: 1; color: var(--ink); letter-spacing: -.02em; white-space: nowrap; }
.site-logo__word em { font-style: normal; color: var(--orange); }

.site-search { display: flex; align-items: center; background: var(--wash); border: 2px solid var(--line); border-radius: 999px; padding: .15rem .25rem .15rem 1.1rem; min-width: 340px; }
.site-search:focus-within { border-color: var(--sky); background: #fff; }
.site-search input { border: 0; background: transparent; flex: 1; min-width: 0; padding: .45rem 0; font-size: 1rem; color: var(--ink); outline: 0; }
.site-search button { border: 0; background: var(--ink); color: #fff; border-radius: 999px; min-width: 40px; height: 40px; padding: 0 .9rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.site-search button:hover { background: var(--sky-text); }
.site-search--mobile { min-width: 0; margin: .75rem 0 1rem; }
.site-search--page { max-width: 620px; margin-top: 1rem; background: #fff; }

.site-nav-toggle { border: 2px solid var(--line); background: #fff; border-radius: 12px; width: 46px; height: 46px; display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.site-nav-toggle span { display: block; width: 20px; height: 2.5px; background: var(--ink); border-radius: 2px; }

.site-nav { border-top: 1px solid var(--line); }
.site-nav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem; }
.site-nav__item a { display: block; padding: .7rem .95rem; font-family: var(--font); font-weight: 700; color: var(--ink); text-decoration: none; border-bottom: 4px solid transparent; }
.site-nav__item a:hover { color: var(--accent-text); border-bottom-color: var(--accent); }
.site-nav__item.is-active a, .site-nav__item a.is-current { color: var(--accent-text); border-bottom-color: var(--accent); }

@media (max-width: 991.98px) {
  .site-nav__list { flex-direction: column; gap: 0; padding-top: .5rem; }
  .site-nav__item a { border-bottom: 0; border-left: 5px solid var(--accent); margin-bottom: .3rem; background: var(--accent-tint); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
  .site-logo img { height: 38px; }
  .site-logo__word { font-size: 1.2rem; }
}

/* ---------- shared pieces ---------- */

.chip { display: inline-block; font-family: var(--font); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-text); background: var(--accent-tint); padding: .2rem .65rem; border-radius: 999px; text-decoration: none; }
.chip:hover { background: var(--accent); color: #fff; }

.crumbs { font-size: .9rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .75rem; }
.crumbs a { color: var(--muted); }

.button { display: inline-block; background: var(--ink); color: #fff; font-family: var(--font); font-weight: 800; border: 0; border-radius: 999px; padding: .8rem 1.6rem; text-decoration: none; }
.button:hover { background: var(--sky-text); color: #fff; }

.notice { background: var(--wash); border-left: 5px solid var(--sky); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: .8rem 1.1rem; font-size: .95rem; margin-bottom: 1.5rem; }
.notice--affiliate { border-left-color: var(--orange); background: #fff6ea; }
.notice--success { border-left-color: var(--leaf); background: var(--leaf-tint); font-size: 1.05rem; }
.notice--error { border-left-color: var(--coral); background: var(--coral-tint); }
.notice--error:empty, .notice--error.validation-summary-valid { display: none; }
.notice--error ul { margin: 0; padding-left: 1.1rem; }
.empty-note { color: var(--muted); font-size: 1.1rem; padding: 2rem 0; }

/* ---------- cards ---------- */

.card-article { display: flex; flex-direction: column; height: 100%; background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); position: relative; transition: transform .15s ease, box-shadow .15s ease; }
.card-article:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(18, 48, 74, .08), 0 14px 32px rgba(18, 48, 74, .13); }
.card-article__media { display: block; aspect-ratio: 32 / 21; background: var(--accent-tint); overflow: hidden; }
.card-article__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-article__placeholder { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; color: var(--accent); opacity: .55; }
.card-article__body { padding: 1.1rem 1.25rem 1.25rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; border-top: 5px solid var(--accent); }
.card-article__body .chip { align-self: flex-start; position: relative; z-index: 2; }
.card-article__title { font-size: 1.2rem; margin: 0; }
.card-article__title a { color: var(--ink); text-decoration: none; }
.card-article__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-article:hover .card-article__title a { color: var(--accent-text); }
.card-article__standfirst { margin: 0; font-size: .97rem; color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-article__meta { margin: auto 0 0; font-size: .85rem; color: var(--muted); }

.card-article--lead .card-article__media { aspect-ratio: 16 / 9; }
.card-article--lead .card-article__title { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem); }
.card-article--lead .card-article__standfirst { font-size: 1.08rem; -webkit-line-clamp: 4; }

@media (min-width: 992px) {
  .card-article--feature { flex-direction: row; }
  .card-article--feature .card-article__media { flex: 0 0 58%; aspect-ratio: 16 / 9; }
  .card-article--feature .card-article__body { border-top: 0; border-left: 6px solid var(--accent); justify-content: center; padding: 2rem; }
}

.card-article--compact { flex-direction: row; box-shadow: none; border-radius: var(--radius-sm); background: transparent; gap: .9rem; align-items: flex-start; }
.card-article--compact:hover { transform: none; box-shadow: none; }
.card-article--compact .card-article__media { flex: 0 0 104px; aspect-ratio: 1; border-radius: var(--radius-sm); }
.card-article--compact .card-article__body { padding: 0; border-top: 0; gap: .25rem; }
.card-article--compact .card-article__title { font-size: 1.02rem; line-height: 1.25; }

.stack { display: flex; flex-direction: column; gap: 1.1rem; }
.rail-heading { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 1rem; }

/* ---------- home ---------- */

.hero { background: linear-gradient(180deg, var(--sky-tint) 0%, #fff 78%); padding: 2.5rem 0 2rem; }
.hero__intro { max-width: 760px; margin-bottom: 1.75rem; }
.hero__intro h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.2rem); margin-bottom: .6rem; }
.hero__intro p { font-size: 1.2rem; margin: 0; }

.section-tiles { padding: .5rem 0 2rem; }
.section-tiles ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .75rem; }
.section-tiles a { display: flex; flex-direction: column; gap: .15rem; height: 100%; padding: .95rem 1.1rem; border-radius: var(--radius-sm); background: var(--accent-tint); border-bottom: 5px solid var(--accent); text-decoration: none; color: var(--ink); transition: background .15s ease, color .15s ease; }
.section-tiles a strong { font-family: var(--font); font-weight: 800; font-size: 1.08rem; }
.section-tiles a span { font-size: .85rem; color: var(--accent-text); }
.section-tiles a:hover { background: var(--accent); color: #fff; }
.section-tiles a:hover span { color: #fff; }

.band { padding: 2.75rem 0; }
.band--tint { background: var(--wash); }
.band__header { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1.25rem; margin-bottom: 1.5rem; border-bottom: 3px solid var(--accent-tint); padding-bottom: .75rem; }
.band__header h2 { font-size: 1.75rem; margin: 0; position: relative; padding-left: 1rem; }
.band__header h2::before { content: ""; position: absolute; left: 0; top: .15em; bottom: .15em; width: 6px; border-radius: 3px; background: var(--accent); }
.band__header h2 a { color: var(--ink); text-decoration: none; }
.band__header h2 a:hover { color: var(--accent-text); }
.band__header p { margin: 0; color: var(--muted); flex: 1; min-width: 200px; }
.band__more { font-family: var(--font); font-weight: 800; white-space: nowrap; }

.most-read { list-style: none; counter-reset: read; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem 2rem; }
.most-read li { counter-increment: read; display: grid; grid-template-columns: 3rem 1fr; column-gap: .75rem; align-items: start; }
.most-read li::before { content: counter(read); grid-row: span 2; font-family: var(--font); font-weight: 800; font-size: 2.4rem; line-height: 1; color: var(--accent); }
.most-read a { font-family: var(--font); font-weight: 800; color: var(--ink); text-decoration: none; line-height: 1.25; }
.most-read a:hover { color: var(--accent-text); text-decoration: underline; }
.most-read span { font-size: .85rem; color: var(--accent-text); }

/* ---------- listing pages ---------- */

.page-header { background: var(--wash); padding: 2.25rem 0 2rem; border-bottom: 1px solid var(--line); }
.page-header--section { background: var(--accent-tint); border-bottom: 6px solid var(--accent); }
.page-header h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); margin: 0 0 .5rem; }
.page-header__intro { font-size: 1.2rem; max-width: 720px; margin: 0 0 .5rem; }
.page-header__count { color: var(--muted); font-size: .95rem; margin: 0; }

.pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .4rem; margin-top: 2.75rem; }
.pager__link { min-width: 44px; height: 44px; padding: 0 .9rem; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; border: 2px solid var(--line); font-family: var(--font); font-weight: 800; color: var(--ink); text-decoration: none; }
.pager__link:hover { border-color: var(--accent); color: var(--accent-text); }
.pager__link.is-current { background: var(--ink); border-color: var(--ink); color: #fff; }
.pager__gap { color: var(--muted); padding: 0 .2rem; }

.tag-list { list-style: none; margin: 2.25rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.tag-list a { display: inline-block; padding: .3rem .9rem; border-radius: 999px; border: 2px solid var(--line); color: var(--ink-soft); font-size: .92rem; font-weight: 600; text-decoration: none; }
.tag-list a:hover { border-color: var(--accent); color: var(--accent-text); }
.tag-list a span { color: var(--muted); font-weight: 400; margin-left: .25rem; }
.tag-list--cloud { margin-top: 0; }

/* ---------- article ---------- */

/* Split hero: title panel beside the picture; stacked on small screens */
.article-hero { padding-top: 1.75rem; }
.article-hero__inner { display: grid; background: var(--ink); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.article-hero__panel { padding: 1.75rem 1.5rem 2rem; color: #c9d6e2; display: flex; flex-direction: column; justify-content: center; border-top: 8px solid var(--accent); order: 2; }
.article-hero__panel h1 { color: #fff; font-size: clamp(1.7rem, 1.1rem + 1.9vw, 2.6rem); margin: 0 0 1rem; overflow-wrap: anywhere; }
.article-hero__panel .crumbs, .article-hero__panel .crumbs a { color: #9fb2c4; }
.article-hero__panel .article__meta { color: #c9d6e2; margin-bottom: 1.25rem; }
.article-hero__panel .article__meta a { color: #fff; }
.article-hero__panel .chip { align-self: flex-start; }
.article-hero__media { margin: 0; order: 1; background: #0c2236; position: relative; }
.article-hero__media img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 16 / 9; }
.article-hero__caption { font-size: .9rem; color: var(--muted); margin: .6rem 0 0; }
.article-hero--plain .article-hero__panel { padding: 2.25rem 2rem 2.5rem; }
.chip--solid { background: var(--accent); color: #fff; }
.chip--solid:hover { background: #fff; color: var(--ink); }

@media (min-width: 992px) {
  .article-hero__inner { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); min-height: 380px; }
  .article-hero--plain .article-hero__inner { grid-template-columns: 1fr; min-height: 0; }
  .article-hero__panel { order: 1; border-top: 0; border-left: 10px solid var(--accent); padding: 2.5rem 2.25rem; }
  .article-hero__media { order: 2; }
  .article-hero__media img { aspect-ratio: auto; position: absolute; inset: 0; }
}

.article__standfirst { font-size: 1.3rem; line-height: 1.5; color: var(--ink); margin-bottom: 1.5rem; font-weight: 500; }
.article__meta { display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; font-size: .95rem; }
.article__meta a { font-weight: 700; }

/* Body with sidebar */
.article-layout { display: grid; gap: 2.5rem; padding-top: 2.25rem; padding-bottom: 3rem; }
@media (min-width: 992px) {
  .article-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 3.5rem; align-items: start; }
}
.article-layout .article__body { padding: 0; min-width: 0; }
.article-aside { display: grid; gap: 1.5rem; }
.panel { background: var(--wash); border-radius: var(--radius); padding: 1.35rem 1.35rem 1.5rem; border-top: 5px solid var(--accent); }
.panel__heading { font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 1rem; }
.panel__more { display: inline-block; margin-top: 1.1rem; font-family: var(--font); font-weight: 800; }
.panel .share { margin: 0; padding: 0; border: 0; }
.share .share__link--facebook { background: #1877f2; border-color: #1877f2; color: #fff; }
.share .share__link--x { background: #111; border-color: #111; color: #fff; }
.share .share__link--whatsapp { background: #128c4b; border-color: #128c4b; color: #fff; }
.share .share__link--pinterest { background: #bd081c; border-color: #bd081c; color: #fff; }
.share .share__link:hover { filter: brightness(1.12); color: #fff; }
.share .share__link:not([class*="--"]):hover { color: var(--accent-text); filter: none; }
.article-aside .promo { margin: 0; }
.block figcaption { font-size: .9rem; color: var(--muted); margin-top: .5rem; }
.block--quote__share { margin-left: .75rem; font-weight: 700; }

.article__body { padding-top: .5rem; padding-bottom: 3rem; }

.prose { font-size: 1.13rem; line-height: 1.72; }
.prose > *:last-child { margin-bottom: 0; }
.prose p { margin-bottom: 1.25em; }
.prose h2 { font-size: 1.65rem; margin: 2em 0 .6em; }
.prose h3 { font-size: 1.3rem; margin: 1.7em 0 .5em; }
.prose h4 { font-size: 1.1rem; margin: 1.5em 0 .4em; }
.prose ul, .prose ol { margin-bottom: 1.25em; padding-left: 1.4em; }
.prose li { margin-bottom: .4em; }
.prose a { font-weight: 600; overflow-wrap: anywhere; }
.prose blockquote { border-left: 5px solid var(--accent); background: var(--accent-tint); margin: 1.5em 0; padding: 1rem 1.25rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose table { width: 100%; border-collapse: collapse; margin-bottom: 1.5em; font-size: 1rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: .55rem .75rem; vertical-align: top; text-align: left; }
.prose th { background: var(--wash); color: var(--ink); }
.block--html { overflow-x: auto; }

.block { margin-bottom: 1.75rem; }
.block--image img { border-radius: var(--radius-sm); display: block; }
.block--image-narrow { max-width: 420px; }
.block--video iframe { border: 0; border-radius: var(--radius-sm); }
.block--quote { border-left: 6px solid var(--orange); background: #fff6ea; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 1.25rem 1.5rem; margin: 2.25rem 0; }
.block--quote blockquote { margin: 0; }
.block--quote blockquote p { font-family: var(--font); font-size: 1.5rem; font-weight: 700; line-height: 1.35; color: var(--ink); margin: 0; }

.share { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 2rem 0; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.share span { font-family: var(--font); font-weight: 800; color: var(--ink); margin-right: .5rem; }
.share a { padding: .35rem 1rem; border-radius: 999px; background: var(--wash); border: 2px solid var(--line); font-size: .92rem; font-weight: 700; color: var(--ink); text-decoration: none; }
.share a:hover { border-color: var(--accent); color: var(--accent-text); }

/* ---------- forms ---------- */

.contact-form { margin-top: 2rem; display: grid; gap: 1.25rem; }
.field label { display: block; font-family: var(--font); font-weight: 800; color: var(--ink); margin-bottom: .35rem; }
.field input, .field textarea { width: 100%; border: 2px solid var(--line); border-radius: var(--radius-sm); padding: .7rem .9rem; font: inherit; color: var(--ink); background: #fff; }
.field input:focus, .field textarea:focus { border-color: var(--sky); outline: 0; box-shadow: 0 0 0 4px var(--sky-tint); }
.field__error { display: block; color: var(--coral-text); font-size: .92rem; font-weight: 600; margin-top: .3rem; }
.field--trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .button { justify-self: start; }

/* ---------- promos and footer ---------- */

.promo { text-align: center; margin: 2rem auto; }
.promo__label { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: .35rem; }
.promo img { border-radius: 6px; }
.promo--leaderboard { padding: 0 1rem; }

.site-footer { background: var(--ink); color: #c9d6e2; padding: 3rem 0 1.5rem; margin-top: 0; font-size: .98rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--orange); text-decoration: underline; }
.site-footer__brand { display: inline-flex; align-items: center; gap: .6rem; margin-bottom: 1rem; }
.site-footer__brand img { height: 44px; width: auto; }
.site-footer__brand .site-logo__word { color: #fff; }
.site-footer__about { max-width: 420px; }
.site-footer__heading { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .9rem; }
.site-footer__links, .site-footer__social { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.site-footer__social { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: 1rem; font-weight: 700; }
.site-footer__legal { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .15); font-size: .88rem; color: #9fb2c4; }
.site-footer__legal p { margin: 0 0 .35rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card-article, .section-tiles a { transition: none; }
  .card-article:hover { transform: none; }
}
