/* The blog (bud 2026-11-18): cartoon heroes in the cover-art look, a card grid, and designed banners for the free things only
   (templates/blog.html, blog-page.html, partials/free_banner.html). Loaded after style.css, so these rules win over its old blog rules. */
.blog-top { background: linear-gradient(160deg, #2b1a33 0%, #3d2550 60%, #4f3bcc 140%); color: #f6ead6; padding: 48px 0 40px; }
.blog-top h1 { color: #fff; margin: 0 0 12px; max-width: 18em; }
.blog-k { color: var(--gold); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; margin: 0 0 10px; }
.blog-intro p { color: #e9dcc6; max-width: 40em; margin: 0; line-height: 1.6; }
.blog-list { padding-top: 0; padding-bottom: 40px; }

/* The free test banner: dark, a nine-step scale that grows, a gold kicker. */
.free-banner { display: grid; grid-template-columns: 200px 1fr; gap: 28px; align-items: center; margin: 34px 0 34px; padding: 26px 30px;
  background: #2b1a33; border-radius: 18px; color: #f6ead6; text-decoration: none; box-shadow: 0 18px 40px -18px rgba(43, 26, 51, .6);
  position: relative; overflow: hidden; transition: transform .15s ease; }
.free-banner::after { content: ""; position: absolute; inset: auto -60px -80px auto; width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(184, 137, 59, .28), transparent 70%); pointer-events: none; }
.free-banner:hover, .free-banner:focus-visible { transform: translateY(-2px); color: #f6ead6; }
.fb-scale { display: flex; align-items: flex-end; gap: 6px; height: 90px; }
.fb-scale i { flex: 1; height: calc(18% + var(--i) * 10%); border-radius: 5px 5px 2px 2px; background: rgba(246, 234, 214, .18); }
.fb-scale i:nth-child(7) { background: var(--gold); }
.fb-b { display: flex; flex-direction: column; align-items: flex-start; gap: .35em; position: relative; z-index: 1; }
.fb-k { color: var(--gold); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .74rem; }
.fb-t { font-family: "Fraunces", Georgia, serif; font-size: 1.55rem; font-weight: 600; line-height: 1.2; color: #fff; }
.fb-d { color: #e9dcc6; font-size: .95rem; line-height: 1.5; max-width: 34em; }
.free-banner .btn { margin-top: .5em; pointer-events: none; background: var(--gold); color: #2b1a33; }
.free-banner.fb-sm { grid-template-columns: 1fr; gap: 14px; margin: 0; padding: 20px 18px; }
.fb-sm .fb-scale { height: 46px; }
.fb-sm .fb-t { font-size: 1.12rem; }
.fb-sm .btn { font-size: .88rem; padding: 10px 16px; }

/* The cards: picture on top, then the title. */
.post-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; margin-top: 0; }
.post-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; border-radius: 16px; }
.post-card-img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: #2b1a33; }
.post-card-b { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 22px; }
.post-card-title { font-size: 1.18rem; line-height: 1.3; margin: 0; }
.post-card-desc { display: block; margin: 0; font-size: .93rem; }
.post-card-meta { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; }
.blog-free { grid-column: 1 / -1; }
.blog-free .rec { max-width: 720px; }
.blog-pager { display: flex; justify-content: center; align-items: center; gap: 18px; margin: 34px 0 10px; color: var(--muted); font-size: .9rem; }

/* One article: the hero under the title, the free things at the end and in the side column. */
.blog-hero { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 16px; margin: 0 0 30px; background: #2b1a33;
  box-shadow: 0 18px 40px -22px rgba(43, 26, 51, .55); }
.blog-end { margin-top: 44px; }
.blog-end .free-banner { margin: 0 0 8px; }
.blog-end .rec { max-width: none; margin: 18px 0 0; }
.side-free { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 18px 16px; background: var(--card);
  border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); color: var(--ink); text-decoration: none; transition: border-color .15s ease; }
.side-free:hover, .side-free:focus-visible { border-color: var(--accent); color: var(--ink); }
.side-free img { width: 100%; height: auto; border-radius: 8px; margin-bottom: 6px; }
.side-free-t { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 1.02rem; line-height: 1.3; }
.side-free .btn { pointer-events: none; margin-top: 4px; }

/* Narrow screens: one column; the side column goes, the same free things wait at the end of the article. */
@media (max-width: 860px) {
  .article-with-sidebar { grid-template-columns: 1fr; }
  .article-sidebar { display: none; }
}
@media (max-width: 560px) {
  .blog-top { padding: 34px 0 34px; }
  .free-banner { grid-template-columns: 1fr; gap: 16px; padding: 22px 20px; margin-top: 24px; }
  .fb-scale { height: 52px; }
  .fb-t { font-size: 1.3rem; }
  .free-banner .btn { width: 100%; text-align: center; }
  .post-cards { grid-template-columns: 1fr; gap: 18px; }
  .blog-hero { border-radius: 12px; margin-bottom: 22px; }
}
