/* ==========================================================================
   Blog: list, category pages and articles. Everything is scoped under .bl.
   Brand colour follows the site theme (--t-*), the rest matches the home page.
   ========================================================================== */

.bl {
    --bl-brand: var(--t-600, #0f8f7d);
    --bl-brand-dark: var(--t-700, #00705f);
    --bl-ink: #10243a;
    --bl-text: #34495c;
    --bl-muted: #5f7081;
    --bl-bg: #fffaf7;
    --bl-card: #ffffff;
    --bl-line: #ece6df;
    --bl-soft: #e5f7f3;
    --bl-shadow: 0 1px 2px rgba(16, 36, 58, .04), 0 8px 24px rgba(16, 36, 58, .06);
    --bl-shadow-up: 0 6px 14px rgba(16, 36, 58, .07), 0 22px 44px rgba(16, 36, 58, .10);
    --bl-radius: 18px;
    --bl-ease: cubic-bezier(.22, 1, .36, 1);
    --bl-head: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    background: var(--bl-bg);
    color: var(--bl-text);
    padding-bottom: 3.5rem;
    overflow-x: clip;
}
html.dark-theme .bl {
    --bl-brand: var(--t-400, #2dd4bf);
    --bl-brand-dark: var(--t-300, #5eead4);
    --bl-ink: #eef4f8;
    --bl-text: #c6d2dc;
    --bl-muted: #8fa0ae;
    --bl-bg: #0d1418;
    --bl-card: #141e24;
    --bl-line: #233038;
    --bl-soft: #12302a;
    --bl-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    --bl-shadow-up: 0 8px 20px rgba(0, 0, 0, .35), 0 22px 44px rgba(0, 0, 0, .3);
}

.bl h1, .bl h2, .bl h3 { font-family: var(--bl-head); color: var(--bl-ink); letter-spacing: -.02em; }
.bl a { color: inherit; text-decoration: none; }
.bl :focus-visible { outline: 3px solid color-mix(in srgb, var(--bl-brand) 55%, transparent); outline-offset: 3px; border-radius: 8px; }
.bl-wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.bl-wrap-narrow { width: min(860px, 100% - 32px); }

/* ---------- Shared bits ---------- */
.bl-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-size: .82rem; color: var(--bl-muted); margin-bottom: .75rem; }
.bl-crumbs a:hover { color: var(--bl-brand); text-decoration: underline; text-underline-offset: 3px; }
.bl-crumbs i { font-size: .65rem; opacity: .7; }
.bl-crumbs [aria-current] { color: var(--bl-ink); font-weight: 600; }

.bl-chip {
    --c: #0f8f7d;
    position: relative; z-index: 2;
    display: inline-flex; align-items: center; padding: .22rem .65rem; border-radius: 999px;
    font-size: .74rem; font-weight: 700; letter-spacing: .01em;
    color: color-mix(in srgb, var(--c) 80%, #000); background: color-mix(in srgb, var(--c) 12%, transparent);
    transition: background-color .2s;
}
a.bl-chip:hover { background: color-mix(in srgb, var(--c) 22%, transparent); }
html.dark-theme .bl-chip { color: color-mix(in srgb, var(--c) 60%, #fff); background: color-mix(in srgb, var(--c) 22%, transparent); }

.bl-byline { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .45rem; font-size: .8rem; color: var(--bl-muted); }
.bl-by { font-weight: 600; color: var(--bl-ink); }
.bl-dot { opacity: .6; }
.bl-avatar {
    display: inline-grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%;
    background: linear-gradient(135deg, var(--bl-brand), #16b89f); color: #fff; font-size: .7rem; font-weight: 800; letter-spacing: .02em;
}
.bl-avatar-lg { width: 42px; height: 42px; font-size: .9rem; }
.bl-avatar-xl { width: 64px; height: 64px; font-size: 1.25rem; }

.bl-btn {
    display: inline-flex; align-items: center; gap: .45rem; padding: .7rem 1.2rem; border-radius: 10px;
    background: linear-gradient(135deg, #008573, #00665a); color: #fff !important; font-weight: 700; font-size: .9rem;
    transition: transform .25s var(--bl-ease), box-shadow .25s var(--bl-ease);
}
.bl-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0, 133, 115, .3); }
.bl-btn-light { background: #fff; color: #10243a !important; }

.bl-section-title { font-size: clamp(1.15rem, 2vw, 1.35rem); font-weight: 800; margin: 0 0 .9rem; position: relative; padding-left: .8rem; }
.bl-section-title::before { content: ""; position: absolute; left: 0; top: .2em; bottom: .2em; width: 4px; border-radius: 4px; background: linear-gradient(var(--bl-brand), #16b89f); }

/* Covers: fixed 1.91:1 frame (the share-image ratio) so nothing shifts while pictures load */
.bl-cover { display: block; width: 100%; height: 100%; object-fit: cover; }
.bl-cover-ph {
    --c: #0f8f7d;
    display: grid; place-items: center; color: var(--c); font-size: 2rem;
    background:
        radial-gradient(circle at 18% 22%, color-mix(in srgb, var(--c) 16%, transparent) 0 18%, transparent 19%),
        radial-gradient(circle at 86% 80%, color-mix(in srgb, var(--c) 12%, transparent) 0 22%, transparent 23%),
        linear-gradient(135deg, color-mix(in srgb, var(--c) 10%, #fff) 0%, color-mix(in srgb, var(--c) 18%, #fff) 100%);
}
.bl-cover-ph i { display: grid; place-items: center; width: 2.2em; height: 2.2em; border-radius: 30%; background: #fff; box-shadow: 0 6px 18px color-mix(in srgb, var(--c) 25%, transparent); }
html.dark-theme .bl-cover-ph { background: linear-gradient(135deg, color-mix(in srgb, var(--c) 22%, #141e24) 0%, color-mix(in srgb, var(--c) 12%, #141e24) 100%); }
html.dark-theme .bl-cover-ph i { background: #0d1418; }

/* Whole-card link without nesting the other links inside it */
.bl-stretch::after { content: ""; position: absolute; inset: 0; z-index: 1; }

/* ---------- Hero (list / category pages) ---------- */
.bl-hero {
    padding: clamp(1.25rem, 3vw, 2rem) 0 clamp(1.1rem, 2.4vw, 1.5rem);
    background:
        radial-gradient(900px 380px at 90% -20%, #fdeee0 0%, transparent 60%),
        radial-gradient(800px 360px at -10% 0%, #e2f6f1 0%, transparent 60%);
    border-bottom: 1px solid var(--bl-line);
}
html.dark-theme .bl-hero { background: radial-gradient(900px 380px at 90% -20%, rgba(255, 170, 110, .08) 0%, transparent 60%), radial-gradient(800px 360px at -10% 0%, rgba(45, 212, 191, .08) 0%, transparent 60%); }
.bl-eyebrow {
    --c: var(--bl-brand);
    display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .75rem; border-radius: 999px;
    background: color-mix(in srgb, var(--c) 12%, transparent); color: color-mix(in srgb, var(--c) 80%, #000);
    font-size: .78rem; font-weight: 800; letter-spacing: .02em;
}
html.dark-theme .bl-eyebrow { color: color-mix(in srgb, var(--c) 55%, #fff); }
.bl-hero h1 { font-size: clamp(1.6rem, 3.2vw, 2.35rem); font-weight: 800; line-height: 1.15; margin: .65rem 0 .45rem; max-width: 26ch; }
.bl-hero-text { font-size: .98rem; line-height: 1.6; max-width: 40rem; margin: 0 0 1rem; }

.bl-search {
    display: flex; align-items: center; gap: .5rem; max-width: 34rem; padding: .35rem .35rem .35rem 1rem;
    background: var(--bl-card); border: 1px solid var(--bl-line); border-radius: 14px; box-shadow: var(--bl-shadow);
}
.bl-search:focus-within { border-color: var(--bl-brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--bl-brand) 15%, transparent); }
.bl-search > i { color: var(--bl-muted); }
.bl-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--bl-ink); padding: .55rem .2rem; font-size: .95rem; }
.bl-search button { border: 0; border-radius: 10px; padding: .65rem 1.2rem; font-weight: 700; color: #fff; background: linear-gradient(135deg, #008573, #00665a); }

.bl-cats { display: flex; gap: .5rem; margin-top: 1rem; overflow-x: auto; padding-bottom: .35rem; scrollbar-width: thin; }
.bl-cats a {
    --c: var(--bl-brand);
    flex: none; display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .9rem; border-radius: 999px;
    background: var(--bl-card); border: 1px solid var(--bl-line); font-size: .84rem; font-weight: 600; color: var(--bl-ink);
    transition: border-color .2s, background-color .2s, transform .2s var(--bl-ease);
}
.bl-cats a span { font-size: .72rem; font-weight: 700; color: var(--bl-muted); }
.bl-cats a:hover { border-color: var(--c); transform: translateY(-1px); }
.bl-cats a.is-on { background: var(--c); border-color: var(--c); color: #fff; }
.bl-cats a.is-on span { color: rgba(255, 255, 255, .85); }

.bl-filter {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem;
    margin-top: 1.5rem; padding: .75rem 1rem; border-radius: 12px; background: var(--bl-soft); color: var(--bl-ink); font-size: .9rem;
}
.bl-filter a { font-weight: 700; color: var(--bl-brand-dark); }

/* ---------- Featured ---------- */
.bl-featured {
    position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin-top: 1.5rem;
    background: var(--bl-card); border: 1px solid var(--bl-line); border-radius: 22px; overflow: hidden; box-shadow: var(--bl-shadow);
    transition: box-shadow .4s var(--bl-ease), transform .4s var(--bl-ease);
}
.bl-featured:hover { box-shadow: var(--bl-shadow-up); transform: translateY(-3px); }
.bl-featured-media { aspect-ratio: 16 / 9; max-height: 320px; overflow: hidden; }
.bl-featured-media .bl-cover { transition: transform .8s var(--bl-ease); }
.bl-featured:hover .bl-featured-media .bl-cover { transform: scale(1.04); }
.bl-featured-body { display: flex; flex-direction: column; gap: .6rem; padding: clamp(1.1rem, 2.4vw, 1.75rem); align-self: center; }
.bl-featured h2 { font-size: clamp(1.2rem, 2vw, 1.55rem); font-weight: 800; line-height: 1.25; margin: 0; }
.bl-featured h2 a:hover { color: var(--bl-brand); }
.bl-featured p { margin: 0; font-size: .94rem; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bl-read { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; color: var(--bl-brand); font-size: .9rem; }
.bl-read i { transition: transform .3s var(--bl-ease); }
.bl-featured:hover .bl-read i { transform: translateX(4px); }
.bl-flag { display: inline-flex; align-items: center; gap: .3rem; padding: .22rem .6rem; border-radius: 999px; font-size: .72rem; font-weight: 800; background: #fff4d6; color: #92580a; }
.bl-flag-new { background: var(--bl-soft); color: var(--bl-brand-dark); }
html.dark-theme .bl-flag { background: #3a3016; color: #fcd34d; }

/* ---------- List + sidebar ---------- */
.bl-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 1.75rem; margin-top: 1.75rem; align-items: start; }
.bl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.bl-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.bl-card {
    position: relative; display: flex; flex-direction: column; background: var(--bl-card); border: 1px solid var(--bl-line);
    border-radius: var(--bl-radius); overflow: hidden; box-shadow: var(--bl-shadow);
    transition: transform .4s var(--bl-ease), box-shadow .4s var(--bl-ease), border-color .3s;
}
.bl-card:hover, .bl-card:focus-within { transform: translateY(-5px); box-shadow: var(--bl-shadow-up); border-color: color-mix(in srgb, var(--bl-brand) 30%, var(--bl-line)); }
.bl-card-media { aspect-ratio: 16 / 9; overflow: hidden; }
.bl-card-media .bl-cover { transition: transform .8s var(--bl-ease); }
.bl-card:hover .bl-card-media .bl-cover { transform: scale(1.05); }
.bl-card-body { display: flex; flex-direction: column; gap: .45rem; padding: .85rem .95rem .95rem; flex: 1; }
.bl-card-top { display: flex; flex-wrap: wrap; gap: .4rem; }
.bl-card-title { font-size: 1rem; font-weight: 800; line-height: 1.35; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bl-card:hover .bl-card-title a { color: var(--bl-brand); }
.bl-card-text { margin: 0; font-size: .84rem; line-height: 1.5; color: var(--bl-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bl-card .bl-byline { margin-top: auto; padding-top: .2rem; font-size: .74rem; }
.bl-card .bl-avatar { width: 22px; height: 22px; font-size: .58rem; }
.bl-card .bl-chip { font-size: .68rem; padding: .16rem .55rem; }

.bl-pages { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .4rem; margin-top: 2rem; }
.bl-pages a, .bl-pages span {
    display: inline-flex; align-items: center; gap: .35rem; min-width: 40px; height: 40px; justify-content: center; padding: 0 .8rem;
    border-radius: 10px; border: 1px solid var(--bl-line); background: var(--bl-card); font-weight: 700; font-size: .88rem; color: var(--bl-ink);
}
.bl-pages span { border: 0; background: none; }
.bl-pages a:hover { border-color: var(--bl-brand); color: var(--bl-brand); }
.bl-pages a.is-on { background: var(--bl-brand); border-color: var(--bl-brand); color: #fff; }

.bl-empty { text-align: center; padding: 3rem 1.5rem; background: var(--bl-card); border: 1px dashed var(--bl-line); border-radius: var(--bl-radius); }
.bl-empty-ic { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 20px; background: var(--bl-soft); color: var(--bl-brand); font-size: 2rem; margin-bottom: 1rem; }
.bl-empty h2 { font-size: 1.35rem; font-weight: 800; margin: 0 0 .4rem; }
.bl-empty p { margin: 0 auto 1.25rem; max-width: 30rem; }

.bl-aside, .bl-post-aside { display: flex; flex-direction: column; gap: 1.25rem; position: sticky; top: 90px; }
.bl-box { background: var(--bl-card); border: 1px solid var(--bl-line); border-radius: var(--bl-radius); padding: 1.15rem 1.2rem; box-shadow: var(--bl-shadow); }
.bl-box-title { display: flex; align-items: center; gap: .45rem; font-family: var(--bl-head); font-size: 1rem; font-weight: 800; color: var(--bl-ink); margin: 0 0 .85rem; }
.bl-box-title i { color: var(--bl-brand); }
.bl-minis { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; }
.bl-mini { display: flex; gap: .75rem; align-items: flex-start; }
.bl-mini-n { font-family: var(--bl-head); font-weight: 800; font-size: 1.15rem; line-height: 1.2; color: color-mix(in srgb, var(--bl-brand) 45%, transparent); }
.bl-mini a { display: block; font-weight: 700; font-size: .9rem; line-height: 1.35; color: var(--bl-ink); }
.bl-mini a:hover { color: var(--bl-brand); }
.bl-mini small { display: block; margin-top: .2rem; font-size: .75rem; color: var(--bl-muted); }
.bl-catlist { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.bl-catlist a { --c: var(--bl-brand); display: flex; align-items: center; gap: .6rem; padding: .45rem .5rem; border-radius: 10px; font-weight: 600; font-size: .9rem; color: var(--bl-ink); transition: background-color .2s; }
.bl-catlist a:hover { background: color-mix(in srgb, var(--c) 8%, transparent); }
.bl-catlist b { margin-left: auto; font-size: .75rem; color: var(--bl-muted); }
.bl-catlist-ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: color-mix(in srgb, var(--c) 12%, transparent); color: var(--c); }
.bl-box-cta { background: linear-gradient(135deg, #10243a 0%, #123a4a 60%, #0b5a52 100%); border: 0; color: #d6e3ec; }
.bl-box-cta .bl-box-title { color: #fff; }
.bl-box-cta p { font-size: .9rem; line-height: 1.55; margin: 0 0 1rem; }
.bl-rss { display: flex; align-items: center; gap: .4rem; margin-top: .9rem; font-size: .8rem; font-weight: 700; color: #fdba74 !important; }

/* ---------- Article ---------- */
.bl-preview {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem; padding: .7rem 1rem;
    background: #fff7e6; color: #7c4a03; font-size: .9rem; font-weight: 600; border-bottom: 1px solid #fde3b0;
}
.bl-preview a { text-decoration: underline; font-weight: 800; }
html.dark-theme .bl-preview { background: #3a2a10; color: #fcd34d; border-color: #5b4214; }

.bl-post-head {
    padding: clamp(1.75rem, 4vw, 3rem) 0 1.5rem;
    background: radial-gradient(900px 380px at 90% -20%, #fdeee0 0%, transparent 60%), radial-gradient(800px 360px at -10% 0%, #e2f6f1 0%, transparent 60%);
}
html.dark-theme .bl-post-head { background: radial-gradient(900px 380px at 90% -20%, rgba(255, 170, 110, .08) 0%, transparent 60%), radial-gradient(800px 360px at -10% 0%, rgba(45, 212, 191, .08) 0%, transparent 60%); }
.bl-post-top { margin-bottom: .8rem; }
.bl-post-title { font-size: clamp(1.85rem, 4.6vw, 3rem); font-weight: 800; line-height: 1.12; margin: 0 0 .9rem; }
.bl-post-lead { font-size: clamp(1.02rem, 1.8vw, 1.2rem); line-height: 1.6; color: var(--bl-text); margin: 0 0 1.4rem; }
.bl-post-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.1rem; border-top: 1px solid var(--bl-line); }
.bl-author-mini { display: inline-flex; align-items: center; gap: .65rem; }
.bl-author-mini small { display: block; font-size: .74rem; color: var(--bl-muted); }
.bl-author-mini b { display: block; color: var(--bl-ink); font-size: .95rem; }
.bl-facts { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; list-style: none; margin: 0; padding: 0; font-size: .85rem; color: var(--bl-muted); }
.bl-facts i { color: var(--bl-brand); margin-right: .2rem; }

.bl-post-cover { margin: 0 auto; aspect-ratio: 1.91 / 1; max-height: 560px; border-radius: 22px; overflow: hidden; box-shadow: var(--bl-shadow-up); }
.bl-post-cover .bl-cover { border-radius: inherit; }

.bl-post-grid { display: grid; grid-template-columns: 56px minmax(0, 1fr) 300px; gap: 2.25rem; margin-top: 2.25rem; align-items: start; }
.bl-post-grid:not(:has(.bl-share-rail)) { grid-template-columns: minmax(0, 1fr) 300px; }
.bl-share-rail { position: sticky; top: 100px; }
.bl-share-rail .bl-share { flex-direction: column; }
.bl-post { min-width: 0; max-width: 760px; }

.bl-share { display: flex; flex-wrap: wrap; gap: .5rem; }
.bl-share a, .bl-share button {
    display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--bl-line);
    background: var(--bl-card); color: var(--bl-ink); font-size: 1.05rem; cursor: pointer;
    transition: transform .25s var(--bl-ease), background-color .2s, color .2s, border-color .2s;
}
.bl-share a:hover, .bl-share button:hover { transform: translateY(-2px); color: #fff; border-color: transparent; }
.bl-share .sh-wa:hover { background: #25d366; } .bl-share .sh-tg:hover { background: #229ed9; }
.bl-share .sh-fb:hover { background: #1877f2; } .bl-share .sh-x:hover { background: #111; }
.bl-share .sh-in:hover { background: #0a66c2; } .bl-share .sh-copy:hover, .bl-share .sh-copy.is-done { background: var(--bl-brand); color: #fff; }

/* Table of contents */
.bl-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .15rem; counter-reset: toc; }
.bl-toc li.lv-3 { padding-left: 1rem; }
.bl-toc a { display: block; padding: .35rem .6rem; border-radius: 8px; border-left: 2px solid transparent; font-size: .88rem; line-height: 1.4; color: var(--bl-text); }
.bl-toc a:hover { background: var(--bl-soft); color: var(--bl-ink); }
.bl-toc a.is-on { border-left-color: var(--bl-brand); background: var(--bl-soft); color: var(--bl-brand-dark); font-weight: 700; }
html.dark-theme .bl-toc a.is-on { color: var(--bl-brand); }
.bl-toc-side { background: var(--bl-card); border: 1px solid var(--bl-line); border-radius: var(--bl-radius); padding: 1.1rem 1rem; box-shadow: var(--bl-shadow); max-height: calc(100vh - 140px); overflow: auto; }
.bl-toc-inline { display: none; margin-bottom: 1.75rem; background: var(--bl-card); border: 1px solid var(--bl-line); border-radius: 14px; padding: .25rem 1rem; }
.bl-toc-inline summary { cursor: pointer; padding: .75rem 0; font-family: var(--bl-head); font-weight: 800; color: var(--bl-ink); list-style: none; display: flex; align-items: center; gap: .45rem; }
.bl-toc-inline summary::-webkit-details-marker { display: none; }
.bl-toc-inline ol { padding-bottom: .8rem; }

/* Article typography (editor HTML) */
.bl-prose { font-size: 1.07rem; line-height: 1.8; color: var(--bl-text); overflow-wrap: break-word; }
.bl-prose > :first-child { margin-top: 0; }
.bl-prose p { margin: 0 0 1.2em; }
.bl-prose h2, .bl-prose h3, .bl-prose h4 { font-family: var(--bl-head); color: var(--bl-ink); line-height: 1.3; scroll-margin-top: 96px; }
.bl-prose h2 { font-size: clamp(1.35rem, 2.6vw, 1.7rem); font-weight: 800; margin: 2em 0 .7em; }
.bl-prose h3 { font-size: clamp(1.15rem, 2vw, 1.3rem); font-weight: 800; margin: 1.6em 0 .6em; }
.bl-prose h4, .bl-prose h5, .bl-prose h6 { font-size: 1.05rem; font-weight: 700; margin: 1.4em 0 .5em; }
.bl-prose a { color: var(--bl-brand-dark); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
html.dark-theme .bl-prose a { color: var(--bl-brand); }
.bl-prose ul, .bl-prose ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.bl-prose li { margin: .35em 0; }
.bl-prose li::marker { color: var(--bl-brand); font-weight: 700; }
.bl-prose strong, .bl-prose b { color: var(--bl-ink); }
.bl-prose blockquote { margin: 1.6em 0; padding: 1rem 1.25rem; border-left: 4px solid var(--bl-brand); background: var(--bl-soft); border-radius: 0 14px 14px 0; font-size: 1.08rem; color: var(--bl-ink); }
.bl-prose blockquote p:last-child { margin-bottom: 0; }
.bl-prose img { max-width: 100%; height: auto; border-radius: 14px; }
.bl-prose figure { margin: 1.6em 0; }
.bl-prose figcaption { margin-top: .5em; font-size: .85rem; color: var(--bl-muted); text-align: center; }
.bl-prose img.ks-center { display: block; margin-left: auto; margin-right: auto; }
.bl-prose img.ks-left { float: left; margin: 4px 18px 10px 0; }
.bl-prose img.ks-right { float: right; margin: 4px 0 10px 18px; }
.bl-prose img.ks-w-25 { width: 25%; } .bl-prose img.ks-w-50 { width: 50%; } .bl-prose img.ks-w-75 { width: 75%; } .bl-prose img.ks-w-100 { width: 100%; }
.bl-prose::after { content: ""; display: table; clear: both; }
.bl-prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .95rem; }
.bl-prose th, .bl-prose td { border: 1px solid var(--bl-line); padding: .6rem .8rem; text-align: left; vertical-align: top; }
.bl-prose th { background: var(--bl-soft); color: var(--bl-ink); font-weight: 700; }
.bl-prose pre { background: #0f172a; color: #e2e8f0; padding: 1rem 1.2rem; border-radius: 12px; overflow-x: auto; font-size: .9rem; }
.bl-prose code { background: color-mix(in srgb, var(--bl-brand) 10%, transparent); color: var(--bl-brand-dark); padding: .1em .35em; border-radius: 5px; font-size: .9em; }
.bl-prose pre code { background: none; color: inherit; padding: 0; }
.bl-prose hr { border: 0; border-top: 1px solid var(--bl-line); margin: 2em 0; }
.bl-prose .note-box { background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: 14px; padding: 1rem 1.2rem; margin: 1.4em 0; }
html.dark-theme .bl-prose .note-box { background: #0f2a22; border-color: #1f5a46; }

/* FAQ */
.bl-faq { margin-top: 2.5rem; }
.bl-faq > h2 { font-size: 1.5rem; font-weight: 800; margin: 0 0 1rem; }
.bl-qa { background: var(--bl-card); border: 1px solid var(--bl-line); border-radius: 14px; margin-bottom: .6rem; transition: border-color .2s, background-color .2s; }
.bl-qa[open] { border-color: color-mix(in srgb, var(--bl-brand) 35%, var(--bl-line)); background: color-mix(in srgb, var(--bl-brand) 4%, var(--bl-card)); }
.bl-qa summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .95rem 1.15rem; cursor: pointer; list-style: none; }
.bl-qa summary::-webkit-details-marker { display: none; }
.bl-qa summary h3 { font-size: 1rem; font-weight: 700; margin: 0; }
.bl-qa summary i { color: var(--bl-muted); transition: transform .3s var(--bl-ease); }
.bl-qa[open] summary i { transform: rotate(180deg); color: var(--bl-brand); }
.bl-qa p { margin: 0; padding: 0 1.15rem 1rem; line-height: 1.7; }

.bl-tags { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin-top: 2rem; font-size: .88rem; }
.bl-tags span { font-weight: 700; color: var(--bl-ink); margin-right: .2rem; }
.bl-tags a { padding: .3rem .75rem; border-radius: 999px; background: var(--bl-card); border: 1px solid var(--bl-line); color: var(--bl-text); font-weight: 600; transition: border-color .2s, color .2s; }
.bl-tags a:hover { border-color: var(--bl-brand); color: var(--bl-brand); }

.bl-share-row { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: 1.75rem; padding: 1rem 0; border-top: 1px solid var(--bl-line); border-bottom: 1px solid var(--bl-line); }
.bl-share-row > span { font-weight: 700; color: var(--bl-ink); font-size: .92rem; }

.bl-author { display: flex; gap: 1.1rem; align-items: flex-start; margin-top: 2rem; padding: 1.4rem; border-radius: var(--bl-radius); background: var(--bl-card); border: 1px solid var(--bl-line); box-shadow: var(--bl-shadow); }
.bl-author small { font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--bl-brand); }
.bl-author h2 { font-size: 1.2rem; font-weight: 800; margin: .15rem 0 .4rem; }
.bl-author p { margin: 0; line-height: 1.6; font-size: .95rem; }

.bl-pn { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; }
.bl-pn a { display: flex; flex-direction: column; gap: .35rem; padding: 1rem 1.15rem; border-radius: 14px; background: var(--bl-card); border: 1px solid var(--bl-line); transition: border-color .2s, transform .25s var(--bl-ease); }
.bl-pn a:hover { border-color: var(--bl-brand); transform: translateY(-2px); }
.bl-pn small { font-size: .76rem; font-weight: 700; color: var(--bl-brand); text-transform: uppercase; letter-spacing: .04em; }
.bl-pn span { font-family: var(--bl-head); font-weight: 700; color: var(--bl-ink); line-height: 1.35; }
.bl-pn-next { text-align: right; grid-column: 2; }

.bl-related { margin-top: 3.5rem; padding: 3rem 0 .5rem; border-top: 1px solid var(--bl-line); }

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
    .bl-post-grid { grid-template-columns: 56px minmax(0, 1fr); }
    .bl-post-grid:not(:has(.bl-share-rail)) { grid-template-columns: minmax(0, 1fr); }
    .bl-post-aside { display: none; }
    .bl-toc-inline { display: block; }
    .bl-post { max-width: none; }
}
@media (max-width: 1199.98px) and (min-width: 992px) {
    .bl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991.98px) {
    .bl-layout { grid-template-columns: minmax(0, 1fr); }
    .bl-aside { position: static; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
    .bl-featured { grid-template-columns: minmax(0, 1fr); }
    .bl-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bl-post-grid, .bl-post-grid:not(:has(.bl-share-rail)) { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
    .bl-share-rail { display: none; }
}
@media (max-width: 639.98px) {
    .bl-grid, .bl-grid-3 { grid-template-columns: minmax(0, 1fr); gap: .75rem; }
    /* Phones: compact rows, picture on the left */
    .bl-card { flex-direction: row; border-radius: 14px; }
    .bl-card-media { flex: none; width: 108px; aspect-ratio: auto; min-height: 100%; }
    .bl-card-body { padding: .7rem .8rem; gap: .3rem; }
    .bl-card-title { font-size: .95rem; -webkit-line-clamp: 3; }
    .bl-card-text { display: none; }
    .bl-card .bl-avatar { display: none; }
    .bl-card:hover, .bl-card:focus-within { transform: none; }
    .bl-cover-ph { font-size: 1.3rem; }
    .bl-featured-media { max-height: 220px; }
    .bl-post-cover { width: 100%; border-radius: 0; }
    .bl-prose { font-size: 1.02rem; }
    .bl-prose table { display: block; overflow-x: auto; }   /* wide tables scroll sideways on phones */
    .bl-prose img.ks-left, .bl-prose img.ks-right { float: none; display: block; margin: 1em auto; }
    .bl-prose img.ks-w-25, .bl-prose img.ks-w-50 { width: 100%; }
    .bl-pn { grid-template-columns: 1fr; }
    .bl-pn-next { grid-column: 1; }
    .bl-author { flex-direction: column; }
    .bl-search button { padding: .6rem .9rem; }
}

@media (prefers-reduced-motion: reduce) {
    .bl *, .bl *::before, .bl *::after { transition: none !important; animation: none !important; }
    .bl-card:hover, .bl-featured:hover { transform: none; }
    .bl-card:hover .bl-cover, .bl-featured:hover .bl-cover { transform: none; }
}
