/* ==========================================================================
   blog-2026.css — KMVLN Blog Template (rich prose + Chart.js + callouts + TOC)
   --------------------------------------------------------------------------
   Owned by: Specialist C
   Loaded by: includes/header.php (only when $pageContext IN ('blog','blog-post'))
   Prefix: bp-*  (no h26-*, no kmv-*)
   Tokens: depends on theme-2026.css being loaded first.

   Sections:
     1.  Reset / scroll-behavior
     2.  Prose typography (.bp-prose)
     3.  Prose elements (h2, h3, p, lists, blockquote, img, code, pre, table)
     4.  Callouts (.bp-callout + variants)
     5.  TL;DR + Key Takeaways
     6.  Chart card (.bp-chart)
     7.  Table of Contents (.bp-toc)
     8.  Blog listing (.bp-blog-listing) — used by blog.php
     9.  Responsive
   ========================================================================== */


/* --- 0. Local fallbacks (in case theme tokens missed) --- */
:root {
    --bp-cat-tax:        var(--accent-2, #2e7d32);
    --bp-cat-gst:        var(--accent,   #1a2b5f);
    --bp-cat-audit:      var(--accent-3, #d97706);
    --bp-cat-advisory:   #2563eb;
    --bp-cat-compliance: var(--accent-danger, #b91c1c);
    --bp-cat-news:       var(--text-muted, #64748b);
    --bp-cat-tech:       #7c3aed;
}


/* --- 1. Smooth scroll for in-page anchor jumps --- */
html {
    scroll-behavior: smooth;
}


/* ==========================================================================
   2. PROSE TYPOGRAPHY  — .bp-prose container
   ========================================================================== */

.bp-prose {
    color: var(--text-soft, #334155);
    font-family: var(--font-sans, 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif);
    font-size: 1.05rem;
    line-height: 1.85;
    max-width: 72ch;
    margin: 0 auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.bp-prose > * + * {
    margin-top: 1.1em;
}


/* ==========================================================================
   3. PROSE ELEMENTS
   ========================================================================== */

/* --- Headings --- */
.bp-prose h2 {
    color: var(--text, #0f172a);
    font-size: 2rem;          /* 32px */
    line-height: 1.25;
    margin-top: 2.4em;
    margin-bottom: 0.6em;
    padding-bottom: 0.4em;
    font-weight: 700;
    letter-spacing: -0.01em;
    position: relative;
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg,
        var(--accent, #1a2b5f) 0%,
        var(--accent-2, #2e7d32) 50%,
        var(--accent-3, #d97706) 100%) 1;
    /* Emoji-prefix friendly: keep emoji inline, give it a touch of breathing room. */
    scroll-margin-top: 100px;  /* offset for sticky-ish anchor jumps */
}

/* If author starts an H2 with an emoji, give the emoji a chunkier visual weight. */
.bp-prose h2 > :first-child:is(span, em, i) {
    margin-right: 0.35em;
}

.bp-prose h3 {
    color: var(--accent, #1a2b5f);
    font-size: 1.5rem;        /* 24px */
    line-height: 1.3;
    margin-top: 1.8em;
    margin-bottom: 0.5em;
    font-weight: 700;
    scroll-margin-top: 100px;
}

.bp-prose h4 {
    color: var(--text, #0f172a);
    font-size: 1.15rem;
    line-height: 1.3;
    margin-top: 1.6em;
    margin-bottom: 0.5em;
    font-weight: 600;
}

/* --- Paragraphs / lead --- */
.bp-prose p {
    color: var(--text-soft, #334155);
    margin: 0 0 1.1em;
}

.bp-prose p > strong {
    color: var(--text, #0f172a);
}

/* First paragraph after the article body opens — bigger lead. */
.bp-prose > p:first-of-type {
    font-size: 1.15rem;
    color: var(--text, #0f172a);
    line-height: 1.75;
}

/* --- Lists --- */
.bp-prose ul,
.bp-prose ol {
    margin: 0 0 1.2em;
    padding-left: 1.5em;
    color: var(--text-soft, #334155);
}

.bp-prose ul li,
.bp-prose ol li {
    margin-bottom: 0.5em;
    line-height: 1.75;
}

.bp-prose ul li::marker {
    color: var(--accent-2, #2e7d32);
}

.bp-prose ol li::marker {
    color: var(--accent, #1a2b5f);
    font-weight: 700;
}

/* --- Inline elements --- */
.bp-prose a {
    color: var(--accent-2, #2e7d32);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1.5px;
    transition: color 0.18s ease;
}

.bp-prose a:hover {
    color: var(--accent, #1a2b5f);
}

.bp-prose strong { color: var(--text, #0f172a); font-weight: 700; }
.bp-prose em     { font-style: italic; }

/* --- Blockquote --- */
.bp-prose blockquote {
    border-left: 4px solid var(--accent, #1a2b5f);
    background: var(--bg-subtle, #eef2f8);
    padding: 18px 26px;
    margin: 1.6em 0;
    border-radius: 0 var(--radius-md, 14px) var(--radius-md, 14px) 0;
    font-style: italic;
    color: var(--text-soft, #334155);
    position: relative;
}

.bp-prose blockquote::before {
    content: '"';
    position: absolute;
    top: -8px;
    left: 12px;
    font-family: Georgia, serif;
    font-size: 3rem;
    color: var(--accent, #1a2b5f);
    opacity: 0.18;
    line-height: 1;
    pointer-events: none;
}

.bp-prose blockquote p:last-child { margin-bottom: 0; }

/* --- Images --- */
.bp-prose img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md, 14px);
    box-shadow: var(--shadow-2, 0 4px 14px rgba(15, 23, 42, 0.06));
    margin: 1.4em 0;
    display: block;
}

.bp-prose figure {
    margin: 1.6em 0;
}

.bp-prose figure img { margin: 0; }

.bp-prose figcaption {
    font-size: 0.9rem;
    color: var(--text-muted, #64748b);
    text-align: center;
    margin-top: 0.6em;
    font-style: italic;
}

/* --- Code / pre --- */
.bp-prose code {
    font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
    font-size: 0.92em;
    background: var(--bg-subtle, #eef2f8);
    color: var(--accent, #1a2b5f);
    padding: 2px 6px;
    border-radius: 6px;
    border: 1px solid var(--border, #e2e8f0);
}

.bp-prose pre {
    background: var(--bg-elevated, #ffffff);
    color: var(--text, #0f172a);
    padding: 18px 22px;
    border-radius: var(--radius-md, 14px);
    border: 1px solid var(--border, #e2e8f0);
    overflow-x: auto;
    font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
    font-size: 0.9rem;
    line-height: 1.65;
    box-shadow: var(--shadow-1, 0 1px 2px rgba(15, 23, 42, 0.05));
    margin: 1.4em 0;
}

.bp-prose pre code {
    background: transparent;
    border: 0;
    padding: 0;
    color: inherit;
    font-size: inherit;
    border-radius: 0;
}

/* --- Tables --- */
.bp-prose table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 1.6em 0;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: var(--radius-md, 14px);
    overflow: hidden;
    font-size: 0.95rem;
    box-shadow: var(--shadow-1, 0 1px 2px rgba(15, 23, 42, 0.05));
}

.bp-prose thead th,
.bp-prose table th {
    background: var(--accent, #1a2b5f);
    color: var(--text-on-accent, #fff);
    font-weight: 600;
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid var(--accent, #1a2b5f);
}

.bp-prose tbody td,
.bp-prose table td {
    padding: 11px 16px;
    border-bottom: 1px solid var(--border, #e2e8f0);
    color: var(--text-soft, #334155);
    vertical-align: top;
}

.bp-prose tbody tr:nth-child(odd) td {
    background: var(--bg-subtle, #eef2f8);
}

.bp-prose tbody tr:last-child td {
    border-bottom: 0;
}

/* Horizontal rule */
.bp-prose hr {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-strong, #cbd5e1), transparent);
    margin: 2.4em 0;
}


/* ==========================================================================
   4. CALLOUTS — .bp-callout (info / success / warn / danger)
   ========================================================================== */

.bp-callout {
    margin: 1.6em 0;
    padding: 18px 22px 18px 22px;
    border-left: 4px solid var(--accent, #1a2b5f);
    border-radius: 0 var(--radius-md, 14px) var(--radius-md, 14px) 0;
    background: var(--bg-subtle, #eef2f8);
    color: var(--text-soft, #334155);
    box-shadow: var(--shadow-1, 0 1px 2px rgba(15, 23, 42, 0.05));
    position: relative;
    line-height: 1.7;
}

.bp-callout > :first-child { margin-top: 0; }
.bp-callout > :last-child  { margin-bottom: 0; }

.bp-callout strong {
    display: block;
    margin-bottom: 4px;
    color: var(--text, #0f172a);
}

/* Variants */
.bp-callout--info {
    border-left-color: #2563eb;
    background: rgba(37, 99, 235, 0.06);
}

.bp-callout--info strong { color: #1e40af; }

.bp-callout--success {
    border-left-color: var(--accent-2, #2e7d32);
    background: rgba(46, 125, 50, 0.07);
}

.bp-callout--success strong { color: #1b5e20; }

.bp-callout--warn {
    border-left-color: var(--accent-3, #d97706);
    background: rgba(217, 119, 6, 0.08);
}

.bp-callout--warn strong { color: var(--accent-warn, #b45309); }

.bp-callout--danger {
    border-left-color: var(--accent-danger, #b91c1c);
    background: rgba(185, 28, 28, 0.06);
}

.bp-callout--danger strong { color: var(--accent-danger, #b91c1c); }


/* ==========================================================================
   5. TL;DR + KEY TAKEAWAYS  (special prose blocks)
   ========================================================================== */

.bp-tldr {
    margin: 0 0 2em;
    padding: 22px 26px 22px 60px;
    background: linear-gradient(135deg,
        rgba(217, 119, 6, 0.10) 0%,
        rgba(217, 119, 6, 0.04) 100%);
    border: 1px solid rgba(217, 119, 6, 0.22);
    border-left: 5px solid var(--accent-3, #d97706);
    border-radius: var(--radius-md, 14px);
    position: relative;
    color: var(--text-soft, #334155);
    box-shadow: var(--shadow-1, 0 1px 2px rgba(15, 23, 42, 0.05));
}

.bp-tldr::before {
    content: "📌";
    position: absolute;
    top: 18px;
    left: 20px;
    font-size: 1.45rem;
    line-height: 1;
}

.bp-tldr strong:first-child,
.bp-tldr > h4:first-child,
.bp-tldr > h3:first-child {
    display: block;
    color: var(--accent-warn, #b45309);
    font-weight: 700;
    margin: 0 0 8px;
    font-size: 1rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.bp-tldr ul,
.bp-tldr ol {
    margin: 0;
    padding-left: 20px;
}

.bp-tldr li {
    margin-bottom: 6px;
    line-height: 1.65;
}

/* --- Key takeaways: numbered list with accent circles --- */
.bp-key-takeaways {
    margin: 2.2em 0;
    padding: 28px 30px;
    background: linear-gradient(135deg,
        rgba(26, 43, 95, 0.06) 0%,
        rgba(46, 125, 50, 0.05) 100%);
    border: 1px solid var(--border, #e2e8f0);
    border-radius: var(--radius-lg, 20px);
    box-shadow: var(--shadow-2, 0 4px 14px rgba(15, 23, 42, 0.06));
}

.bp-key-takeaways > h3:first-child,
.bp-key-takeaways > h4:first-child,
.bp-key-takeaways > strong:first-child {
    display: block;
    color: var(--accent, #1a2b5f);
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 16px;
}

.bp-key-takeaways ol {
    counter-reset: bp-takeaway;
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.bp-key-takeaways ol li {
    counter-increment: bp-takeaway;
    position: relative;
    padding-left: 44px;
    margin-bottom: 14px;
    line-height: 1.7;
    color: var(--text-soft, #334155);
}

.bp-key-takeaways ol li::before {
    content: counter(bp-takeaway);
    position: absolute;
    left: 0;
    top: 1px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--accent, #1a2b5f);
    color: var(--text-on-accent, #fff);
    font-weight: 700;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(26, 43, 95, 0.25);
}

/* Plain UL inside .bp-key-takeaways still gets accent dots */
.bp-key-takeaways ul {
    list-style: none;
    padding-left: 0;
}

.bp-key-takeaways ul li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 10px;
    line-height: 1.7;
}

.bp-key-takeaways ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent-2, #2e7d32);
    font-weight: 700;
    font-size: 1.1rem;
}


/* ==========================================================================
   6. CHART CARD — .bp-chart  (Chart.js host)
   ========================================================================== */

.bp-chart {
    margin: 2em 0;
    padding: 24px;
    background: var(--bg-card, #fff);
    border: 1px solid var(--border, #e2e8f0);
    border-radius: var(--radius-md, 14px);
    box-shadow: var(--shadow-2, 0 4px 14px rgba(15, 23, 42, 0.06));
    position: relative;
}

.bp-chart[data-chart-title]::before {
    content: attr(data-chart-title);
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text, #0f172a);
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border, #e2e8f0);
    line-height: 1.35;
}

.bp-chart canvas {
    width: 100% !important;
    height: auto !important;
    max-height: 480px;
    display: block;
}

/* Aspect-ratio sleeve so Chart.js gets a real box (it works with maintainAspectRatio:false). */
.bp-chart > .bp-chart__canvas-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 480px;
}

.bp-chart > .bp-chart__canvas-wrap > canvas {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
}

/* When the author embeds <canvas> directly (no wrap div) — give the .bp-chart card a sane aspect ratio. */
.bp-chart > canvas {
    aspect-ratio: 16 / 9;
    max-height: 480px;
}

/* Hide the JSON config script if any UA decides to render it. */
.bp-chart > script.bp-chart-config {
    display: none;
}


/* ==========================================================================
   7. TABLE OF CONTENTS — .bp-toc
   ========================================================================== */

.bp-toc {
    background: var(--bg-card, #fff);
    border: 1px solid var(--border, #e2e8f0);
    border-radius: var(--radius-md, 14px);
    padding: 20px 22px;
    box-shadow: var(--shadow-1, 0 1px 2px rgba(15, 23, 42, 0.05));
    margin: 0 0 36px;
    font-size: 0.95rem;
}

.bp-toc__title {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent, #1a2b5f);
    margin: 0 0 12px;
}

.bp-toc ol,
.bp-toc ul {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: bp-toc-counter;
}

.bp-toc li {
    counter-increment: bp-toc-counter;
    margin: 0 0 4px;
    padding: 0;
    line-height: 1.45;
}

.bp-toc li a {
    display: block;
    padding: 6px 8px 6px 32px;
    color: var(--text-soft, #334155);
    text-decoration: none;
    border-radius: 6px;
    position: relative;
    transition: background 0.15s ease, color 0.15s ease;
}

.bp-toc li a::before {
    content: counter(bp-toc-counter, decimal-leading-zero);
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted, #64748b);
    font-size: 0.75rem;
    font-weight: 700;
    font-feature-settings: "tnum";
}

.bp-toc li a:hover {
    background: var(--bg-subtle, #eef2f8);
    color: var(--accent, #1a2b5f);
}

.bp-toc li a:hover::before {
    color: var(--accent, #1a2b5f);
}

/* Sticky on desktop */
@media (min-width: 1024px) {
    .bp-toc {
        position: sticky;
        top: 100px;
        max-height: calc(100vh - 140px);
        overflow-y: auto;
    }
}


/* ==========================================================================
   8. BLOG LISTING — .bp-blog-listing  (used by blog.php)
   ========================================================================== */

.bp-blog-listing {
    /* Container hook — keeps blog.php inline styles working as a baseline. */
}

.bp-blog-listing .bp-card {
    background: var(--bg-card, #fff);
    border: 1px solid var(--border, #e2e8f0);
    border-radius: var(--radius-lg, 20px);
    overflow: hidden;
    box-shadow: var(--shadow-2, 0 4px 14px rgba(15, 23, 42, 0.06));
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.bp-blog-listing .bp-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-3, 0 12px 32px rgba(15, 23, 42, 0.12));
    border-color: var(--border-strong, #cbd5e1);
}

/* Image area + gradient overlay on hover. */
.bp-blog-listing .bp-card__media {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-subtle, #eef2f8);
}

.bp-blog-listing .bp-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.bp-blog-listing .bp-card:hover .bp-card__media img {
    transform: scale(1.06);
}

/* No hover overlay on the media area — keep the SVG/image cover image clean. */
.bp-blog-listing .bp-card__media::after {
    display: none;
}

/* Placeholder emoji only shown if no thumbnail at all — kept subdued, no white-on-color shimmer. */
.bp-blog-listing .bp-card__placeholder-emoji {
    font-size: 3.2rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1;
    z-index: 1;
    opacity: 0.85;
}

/* Body */
.bp-blog-listing .bp-card__body {
    padding: 22px 22px 24px;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.bp-blog-listing .bp-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.82rem;
    color: var(--text-muted, #64748b);
}

.bp-blog-listing .bp-card__meta > * {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Reading-time badge */
.bp-blog-listing .bp-readtime {
    background: var(--bg-subtle, #eef2f8);
    color: var(--text-soft, #334155);
    padding: 3px 9px;
    border-radius: var(--radius-pill, 999px);
    font-weight: 600;
    font-size: 0.78rem;
}

/* Color-coded category pill */
.bp-cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 11px;
    border-radius: var(--radius-pill, 999px);
    background: rgba(26, 43, 95, 0.08);
    color: var(--accent, #1a2b5f);
    font-weight: 600;
    font-size: 0.78rem;
    line-height: 1.4;
    letter-spacing: 0.01em;
    border: 1px solid transparent;
}

/* category-specific colors (data attribute on the pill) */
.bp-cat-pill[data-cat="Tax Updates"],
.bp-cat-pill[data-cat="Taxation"] {
    background: rgba(46, 125, 50, 0.10);
    color: var(--bp-cat-tax);
}

.bp-cat-pill[data-cat="GST"] {
    background: rgba(26, 43, 95, 0.08);
    color: var(--bp-cat-gst);
}

.bp-cat-pill[data-cat="Audit"] {
    background: rgba(217, 119, 6, 0.12);
    color: var(--bp-cat-audit);
}

.bp-cat-pill[data-cat="Business Advisory"],
.bp-cat-pill[data-cat="Advisory"] {
    background: rgba(37, 99, 235, 0.10);
    color: var(--bp-cat-advisory);
}

.bp-cat-pill[data-cat="Compliance"] {
    background: rgba(185, 28, 28, 0.08);
    color: var(--bp-cat-compliance);
}

.bp-cat-pill[data-cat="News"] {
    background: rgba(100, 116, 139, 0.12);
    color: var(--bp-cat-news);
}

.bp-cat-pill[data-cat="Technology"] {
    background: rgba(124, 58, 237, 0.10);
    color: var(--bp-cat-tech);
}

/* Title + excerpt */
.bp-blog-listing .bp-card__title {
    font-size: 1.18rem;
    line-height: 1.4;
    margin: 0 0 10px;
    color: var(--text, #0f172a);
    font-weight: 700;
}

.bp-blog-listing .bp-card__title a {
    color: inherit;
    text-decoration: none;
    background-image: linear-gradient(var(--accent, #1a2b5f), var(--accent, #1a2b5f));
    background-size: 0% 2px;
    background-repeat: no-repeat;
    background-position: 0 100%;
    transition: background-size 0.3s ease;
}

.bp-blog-listing .bp-card:hover .bp-card__title a {
    background-size: 100% 2px;
}

.bp-blog-listing .bp-card__excerpt {
    color: var(--text-soft, #334155);
    font-size: 0.95rem;
    line-height: 1.65;
    flex: 1 1 auto;
    margin: 0 0 16px;
}

.bp-blog-listing .bp-card__cta {
    color: var(--accent, #1a2b5f);
    font-weight: 600;
    text-decoration: none;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.18s ease, color 0.18s ease;
}

.bp-blog-listing .bp-card__cta:hover {
    color: var(--accent-2, #2e7d32);
    gap: 10px;
}

/* Stripe colour on top edge keyed off category. */
.bp-blog-listing .bp-card[data-cat="Tax Updates"]::before,
.bp-blog-listing .bp-card[data-cat="Taxation"]::before {
    background: var(--bp-cat-tax);
}

.bp-blog-listing .bp-card[data-cat="GST"]::before {
    background: var(--bp-cat-gst);
}

.bp-blog-listing .bp-card[data-cat="Audit"]::before {
    background: var(--bp-cat-audit);
}

.bp-blog-listing .bp-card[data-cat="Business Advisory"]::before,
.bp-blog-listing .bp-card[data-cat="Advisory"]::before {
    background: var(--bp-cat-advisory);
}

.bp-blog-listing .bp-card[data-cat="Compliance"]::before {
    background: var(--bp-cat-compliance);
}

.bp-blog-listing .bp-card[data-cat="News"]::before {
    background: var(--bp-cat-news);
}

.bp-blog-listing .bp-card[data-cat="Technology"]::before {
    background: var(--bp-cat-tech);
}

.bp-blog-listing .bp-card[data-cat]::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent, #1a2b5f);
    z-index: 2;
    pointer-events: none;
}


/* ==========================================================================
   9. RESPONSIVE
   ========================================================================== */

/* Mobile — collapse TOC into <details> if author wraps it; for our
   auto-TOC (no <details>), simply allow it to be inline (not sticky). */
@media (max-width: 1023px) {
    .bp-toc {
        position: static;
        max-height: none;
    }
}

@media (max-width: 767px) {
    .bp-prose {
        font-size: 1rem;
        line-height: 1.78;
    }
    .bp-prose > p:first-of-type { font-size: 1.06rem; }
    .bp-prose h2 { font-size: 1.5rem; margin-top: 1.8em; }
    .bp-prose h3 { font-size: 1.2rem; margin-top: 1.4em; }
    .bp-prose blockquote { padding: 14px 18px; }

    .bp-callout { padding: 14px 16px; }

    .bp-tldr { padding: 18px 18px 18px 50px; }
    .bp-tldr::before { left: 16px; top: 16px; font-size: 1.2rem; }

    .bp-key-takeaways { padding: 22px 20px; }
    .bp-key-takeaways ol li { padding-left: 38px; }
    .bp-key-takeaways ol li::before { width: 26px; height: 26px; font-size: 0.78rem; }

    .bp-chart { padding: 16px; }

    /* Tables: scroll horizontally if needed */
    .bp-prose table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .bp-toc { padding: 16px 18px; }
    .bp-blog-listing .bp-card__body { padding: 18px 18px 20px; }
    .bp-blog-listing .bp-card__title { font-size: 1.08rem; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .bp-blog-listing .bp-card,
    .bp-blog-listing .bp-card__media img,
    .bp-blog-listing .bp-card__title a,
    .bp-blog-listing .bp-card__cta {
        transition: none;
    }
}

/* Dark-mode blog body context (when blog page has bg-dark or similar) */
.bg-dark .bp-prose {
    /* Body remains a white card — keep prose dark-on-light. No-op hook. */
}

/* End of blog-2026.css */
