/* ═══════════════════════════════════════════════════════════════════════
   Blog (/blog/ and /blog/{slug}/): loaded after fibre.css.
   ═══════════════════════════════════════════════════════════════════════ */

.bl-hero { position: relative; padding-bottom: 64px; }
.bl-hero-head { max-width: 820px; }
.bl-eyebrow { display: inline-flex; align-items: center; gap: 8px; }
.bl-eyebrow svg { width: 15px; height: 15px; }
.bl-post-title { font-size: clamp(32px, 4.6vw, 58px); }
.bl-post-hero .bl-meta { margin-bottom: 16px; color: rgba(255,255,255,0.75); }

/* Meta line: category pill, date, read time */
.bl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; color: #6b7280; font-size: 13px; font-weight: 600; }
.bl-meta > span + span::before { content: '\00B7'; margin-right: 14px; opacity: .6; }
.bl-meta > .bl-cat + span::before { display: none; }
.bl-cat { display: inline-block; padding: 4px 10px; border-radius: 999px; background: rgba(216,38,51,0.12); color: #d82633; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.bl-post-hero .bl-cat { background: #d82633; color: #fff; }

/* Cards */
.bl-card { display: flex; flex-direction: column; border-radius: 24px; overflow: hidden; background: #fff; border: 1px solid #ececec; box-shadow: 0 10px 30px rgba(0,0,0,0.05); transition: transform .25s ease, box-shadow .25s ease; }
.bl-card:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(0,0,0,0.10); }
.bl-card[hidden] { display: none; }
.bl-card-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #111; }
.bl-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.bl-card:hover .bl-card-img img { transform: scale(1.04); }
.bl-card-body { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 24px; flex: 1; }
.bl-card-title { color: #111; font-size: 20px; font-weight: 900; line-height: 1.25; letter-spacing: -0.01em; }
.bl-card-title a:hover { color: #d82633; }
.bl-card-excerpt { color: #4b5563; font-size: 15px; line-height: 1.6; }
.bl-more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; color: #d82633; font-size: 14.5px; font-weight: 700; }
.bl-more svg { width: 16px; height: 16px; transition: transform .2s; }
.bl-more:hover svg { transform: translateX(3px); }

/* Featured: image beside the text on wide screens */
.bl-card.is-featured { margin-bottom: 56px; }
@media (min-width: 900px) {
    .bl-card.is-featured { display: grid; grid-template-columns: 1.15fr 1fr; }
    .bl-card.is-featured .bl-card-img { aspect-ratio: auto; min-height: 340px; }
    .bl-card.is-featured .bl-card-body { padding: 40px 44px; justify-content: center; gap: 14px; }
}
.bl-card.is-featured .bl-card-title { font-size: clamp(24px, 2.6vw, 34px); }
.bl-card.is-featured .bl-card-excerpt { font-size: 16.5px; }
.bl-card.is-featured .bl-more { margin-top: 8px; }

.bl-list-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 24px; }
.bl-list-title { color: #111; font-size: clamp(24px, 3vw, 34px); font-weight: 900; }
.bl-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.bl-filter button { font: inherit; cursor: pointer; padding: 8px 16px; border-radius: 999px; border: 1px solid #e5e7eb; background: #fff; color: #374151; font-size: 13.5px; font-weight: 700; transition: all .2s; }
.bl-filter button:hover { border-color: #d82633; color: #d82633; }
.bl-filter button[aria-pressed="true"] { background: #d82633; border-color: #d82633; color: #fff; }
.bl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 1023px) { .bl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px)  { .bl-grid { grid-template-columns: minmax(0, 1fr); } .bl-card-body { padding: 18px 18px 20px; } }
.bl-empty { max-width: 640px; color: #4b5563; font-size: 17px; line-height: 1.6; }
.bl-empty a { color: #d82633; font-weight: 700; }

/* Article */
.bl-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; }
@media (max-width: 1023px) { .bl-layout { grid-template-columns: minmax(0, 1fr); gap: 36px; } }
.bl-article { max-width: 720px; color: #374151; font-size: 17.5px; line-height: 1.75; }
.bl-article > * + * { margin-top: 20px; }
.bl-article h2 { margin-top: 40px; color: #111; font-size: clamp(22px, 2.4vw, 28px); font-weight: 900; line-height: 1.25; letter-spacing: -0.01em; }
.bl-article a { color: #d82633; font-weight: 700; text-decoration: underline; text-decoration-color: rgba(216,38,51,0.35); text-underline-offset: 3px; }
.bl-article a:hover { text-decoration-color: #d82633; }
.bl-article ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.bl-article ul li { position: relative; padding-left: 30px; }
.bl-article ul li::before { content: ''; position: absolute; left: 4px; top: 11px; width: 10px; height: 10px; border-radius: 50%; background: #d82633; box-shadow: 0 0 0 4px rgba(216,38,51,0.15); }
.bl-tip { display: flex; gap: 14px; padding: 20px 22px; border-radius: 18px; background: rgba(216,38,51,0.07); border-left: 4px solid #d82633; }
.bl-tip svg { width: 22px; height: 22px; flex-shrink: 0; color: #d82633; margin-top: 3px; }
.bl-tip p { color: #1f2937; font-size: 16px; font-weight: 600; }
.bl-article .bl-cta { margin-top: 32px; }
.bl-article .bl-cta a { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; }

.bl-side { position: sticky; top: 120px; display: grid; gap: 16px; }
@media (max-width: 1023px) { .bl-side { position: static; } }
.bl-side-card { display: grid; gap: 12px; padding: 26px; border-radius: 22px; background: #111; color: rgba(255,255,255,0.75); font-size: 14.5px; line-height: 1.55; background-image: radial-gradient(circle, rgba(255,255,255,0.08) 1px, transparent 1px); background-size: 18px 18px; }
.bl-side-title { color: #fff; font-size: 19px; font-weight: 900; }
.bl-side-card .btn-red { display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-top: 4px; }
.bl-side-link { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; font-size: 14px; }
.bl-side-link svg { width: 16px; height: 16px; color: #d82633; }
.bl-back { display: inline-flex; align-items: center; gap: 8px; color: #4b5563; font-weight: 700; font-size: 14px; }
.bl-back:hover { color: #d82633; }
.bl-back svg { width: 16px; height: 16px; }

/* Dark mode */
[data-theme="dark"] .bl-card { background: #16171d; border-color: rgba(255,255,255,0.08); box-shadow: none; }
[data-theme="dark"] .bl-card-title, [data-theme="dark"] .bl-list-title, [data-theme="dark"] .bl-article h2 { color: #fff; }
[data-theme="dark"] .bl-card-excerpt, [data-theme="dark"] .bl-article, [data-theme="dark"] .bl-empty { color: rgba(255,255,255,0.75); }
[data-theme="dark"] .bl-meta, [data-theme="dark"] .bl-back { color: rgba(255,255,255,0.6); }
[data-theme="dark"] .bl-filter button { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.14); color: rgba(255,255,255,0.8); }
[data-theme="dark"] .bl-filter button[aria-pressed="true"] { background: #d82633; border-color: #d82633; color: #fff; }
[data-theme="dark"] .bl-tip { background: rgba(216,38,51,0.12); }
[data-theme="dark"] .bl-tip p { color: #fff; }
[data-theme="dark"] .bl-side-card { background-color: #1c1d23; }
@media (max-width: 767px) { .bl-hero { padding-bottom: 40px; } .bl-article { font-size: 16.5px; } }
