/* ═══════════════════════════════════════════════════════════════════
   Blog — /blog listing (page-blog.tpl.php) + story post pages
   (page-story.tpl.php). v6 design language: same tokens, Playfair
   .title via the scoped rule below, cards as Bulma .box. Mobile-first,
   same tiers as the front page (<769 phone column, 769–1023 widened,
   ≥1024 desktop). Loads BEFORE the Bulma bundle ($head vs $styles) —
   beating helpers needs specificity, not !important.
   ═══════════════════════════════════════════════════════════════════ */
:root {
  --cream: #faf7f0;
  --cream-2: #f3eee2;
  --navy: #14213d;
  --ink: #232a35;
  --muted: #5b6472;
  --orange: #ff9c01;
  --orange-d: #e08a00;
  --orange-soft: rgba(255, 156, 1, .12);
  --line: rgba(20, 33, 61, .1);
  --serif: 'Playfair Display', Georgia, serif;
  --shadow-sm: 0 8px 22px rgba(20, 33, 61, .08);
  --shadow-md: 0 16px 34px rgba(20, 33, 61, .16);
}

.blg-canvas { background: var(--cream); color: var(--ink); min-height: 60vh; }
.blg-canvas .title { font-family: var(--serif); font-weight: 700; letter-spacing: -.02em; }
.blg-canvas .box {
  --bulma-box-background-color: #fff;
  --bulma-box-radius: 16px;
  --bulma-box-shadow: var(--shadow-sm);
  --bulma-box-padding: 16px;
  --bulma-box-link-hover-shadow: var(--shadow-md);
  border: 1px solid var(--line);
}
.blg-canvas a.box:hover { border-color: var(--orange); color: var(--ink); }

/* Scroll fade-in — page-front.js toggles .visible (shared pattern). */
.ln-fade { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.ln-fade.visible { opacity: 1; transform: none; }

/* ── Listing ────────────────────────────────────────────────────── */
.blg-head { padding: 44px 20px 8px; }
.blg-label { font-size: .6rem; font-weight: 700; letter-spacing: .08em; color: var(--orange-d); background: var(--orange-soft); }
.blg-lead { font-size: .9rem; color: var(--muted); max-width: 560px; margin-inline: auto; }
.blg-main { max-width: 430px; margin: 0 auto; padding: 24px 20px 56px; }
.blg-grid { display: grid; gap: 18px; }
.blg-card { display: block; color: inherit; text-decoration: none; }
.blg-card-img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; margin-bottom: 10px; background: var(--cream-2); }
.blg-date { display: block; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 6px; }
.blg-title { line-height: 1.3; }
.blg-excerpt { font-size: .85rem; color: var(--muted); line-height: 1.5; }
.blg-read { font-size: .85rem; font-weight: 600; color: var(--orange-d); }
.blg-empty { padding: 44px 24px; }
/* Bulma-less D6 pager: center it, space the links. */
.blg-main .pager { display: flex; justify-content: center; gap: 10px; list-style: none; margin-top: 28px; font-size: .9rem; }

/* ── Post page ──────────────────────────────────────────────────── */
.blg-article { max-width: 430px; margin: 0 auto; padding: 36px 20px 56px; }
.blg-crumb { font-size: .8rem; color: var(--muted); margin-bottom: 18px; }
.blg-crumb a { color: var(--muted); text-decoration: none; }
.blg-crumb a:hover { color: var(--orange-d); }
.blg-article-img { display: block; width: 100%; border-radius: 14px; }
.blg-article-lede { font-size: 1.05rem; line-height: 1.55; color: var(--ink); font-weight: 500; margin-bottom: 18px; }
.blg-article-body { font-size: .95rem; line-height: 1.7; color: var(--ink); }
.blg-article-body p { margin-bottom: 1em; }
.blg-article-body h2, .blg-article-body h3 { font-family: var(--serif); font-weight: 700; margin: 1.4em 0 .5em; }
.blg-article-cta { display: flex; flex-direction: column; gap: 10px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }

/* Footer: styled once as Bulma .footer in bulma-limudnaim-en.sass. */

/* ── Tablet ─────────────────────────────────────────────────────── */
@media (min-width: 769px) {
  .blg-main { max-width: 704px; }
  .blg-grid { grid-template-columns: repeat(2, 1fr); }
  .blg-article { max-width: 704px; }
  .blg-article-cta { flex-direction: row; justify-content: center; }
}

/* ── Desktop ────────────────────────────────────────────────────── */
@media (min-width: 1024px) {
  .blg-head { padding: 64px 40px 8px; }
  .blg-head .title.is-3 { font-size: 2.3rem; }
  .blg-lead { font-size: 1.05rem; }
  .blg-main { max-width: 1000px; padding: 32px 40px 72px; }
  .blg-grid { grid-template-columns: repeat(3, 1fr); }
  .blg-article { max-width: 720px; padding: 48px 40px 72px; }
  .blg-article .title.is-3 { font-size: 2.1rem; }
}
