/* ==========================================================
   KiddiesTV blog (blog/, blog/<post>/, blog/category/<name>/).
   Loaded after assets/style.css. Written for tools/build-blog.mjs.
   ========================================================== */

/* the post's picture beside its title, in place of an app icon */
.blog-hero-img {
  margin: 0; width: clamp(260px, 38vw, 500px);
  border: 6px solid #fff; border-radius: 28px; overflow: hidden; background: #fff; rotate: -1.5deg;
  box-shadow: 0 10px 0 rgba(6,58,84,.18), 0 18px 32px rgba(6,58,84,.18);
}
.blog-hero-img img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
@media (max-width: 640px) { .blog-hero-img { width: min(100%, 440px); } }
.blog-meta { margin: .7rem 0 0; font-size: .9rem; font-weight: 700; color: #0C4A63; }

/* the article: one readable column on a white card */
.blog-article .prose {
  max-width: 760px; margin: 0 auto; padding: clamp(1.4rem, 4vw, 2.8rem) clamp(1.1rem, 4vw, 3rem);
  background: #fff; border-radius: 34px; border: 4px solid var(--c1, var(--blue-1));
  box-shadow: 0 8px 0 rgba(42,46,67,.08), 0 16px 32px rgba(42,46,67,.08);
  font-size: 1.06rem; line-height: 1.75;
}
.blog-article .prose > :first-child { margin-top: 0; }
.blog-article .prose p { margin: 0 0 1.1em; }
.blog-article .prose h2 { color: var(--c3, var(--blue-3)); line-height: 1.25; margin: 1.8em 0 .6em; }
.blog-article .prose h3 { font-size: 1.12rem; line-height: 1.3; margin: 1.5em 0 .4em; color: var(--ink); }
.blog-article .prose ul, .blog-article .prose ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.blog-article .prose a { color: var(--c3, var(--blue-3)); }
.blog-article .prose figure { margin: 1.6em 0; text-align: center; }
.blog-article .prose figure img { max-width: 100%; height: auto; border-radius: 18px; }
.blog-article .prose figcaption { margin-top: .5em; font-size: .88rem; line-height: 1.5; color: var(--ink-soft); font-weight: 700; }
.blog-article .prose .ad-slot { margin: 1.6em -.5rem; padding: 0; }

/* the two comments the old blog had */
.blog-comments { max-width: 760px; margin: 0 auto; }
.blog-comments h2 { font-size: 1.2rem; }
.blog-comment { margin: 0 0 .8rem; padding: .9rem 1.1rem; background: #fff; border-radius: 18px; border: 3px solid var(--c2, #E3F1FF); }
.blog-comment b { display: block; font-size: .9rem; }
.blog-comment p { margin: .2rem 0 0; }

/* blog home and category pages */
.blog-cats { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin: 1rem 0 0; }
.blog-grid .ad-slot { grid-column: 1 / -1; padding: 0; }
.game-card-body small { color: var(--ink-soft); font-weight: 700; }
