/* ─────────────── Blog post — Pulse-aligned reading template ─────────────── */

@keyframes bp-dot {
    0%, 100% { box-shadow: 0 0 0 3px rgba(15, 110, 86, 0.18); }
    50%      { box-shadow: 0 0 0 6px rgba(15, 110, 86, 0.06); }
}

.bp-page {
    --bp-bg: #fafaf7;
    --bp-bg-alt: #ffffff;
    --bp-text: #0a0a0a;
    --bp-text-soft: #4b5563;
    --bp-text-muted: #9ca3af;
    --bp-text-tertiary: #6b7280;
    --bp-border: rgba(10, 10, 10, 0.08);
    --bp-border-strong: rgba(10, 10, 10, 0.14);
    --bp-divider: rgba(10, 10, 10, 0.06);
    --bp-card: #ffffff;
    --bp-card-soft: #fafaf7;
    --bp-card-shadow: 0 1px 2px rgba(10,10,10,0.04), 0 24px 48px -16px rgba(10,10,10,0.10);
    --bp-card-shadow-pop: 0 1px 2px rgba(10,10,10,0.04), 0 30px 60px -20px rgba(10,10,10,0.18);
    --bp-accent: #0f6e56;
    --bp-accent-strong: #0a4a3a;
    --bp-accent-soft: rgba(15, 110, 86, 0.10);
    --bp-accent-border: rgba(15, 110, 86, 0.18);
    --bp-warn: #b45309;
    --bp-warn-soft: rgba(180, 83, 9, 0.10);

    background: var(--bp-bg);
    color: var(--bp-text);
}

/* ── Reading progress bar (fixed top) ── */
.bp-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--bp-accent) 0%, #34d399 100%);
    z-index: 200;
    width: 0;
    transition: width 0.08s linear;
    pointer-events: none;
}

/* ── Hero ── */
.bp-hero {
    padding: 72px 0 48px;
    background: var(--bp-bg);
}
@media (max-width: 880px) { .bp-hero { padding: 48px 0 32px; } }
.bp-hero__container {
    max-width: 800px; margin: 0 auto;
    padding: 0 32px;
}
@media (max-width: 880px) { .bp-hero__container { padding: 0 20px; } }
.bp-hero__back { margin-bottom: 28px; }
.bp-hero__back a {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 0.8125rem; font-weight: 600;
    color: var(--bp-text-soft);
    text-decoration: none;
    transition: color .2s ease, gap .2s ease;
}
.bp-hero__back a:hover {
    color: var(--bp-text);
    gap: 9px;
}
.bp-hero__meta {
    display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
    font-size: 0.6875rem; font-weight: 700;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--bp-text-muted);
    margin-bottom: 24px;
}
.bp-hero__cat {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 10px;
    background: var(--bp-accent-soft);
    color: var(--bp-accent);
    border: 1px solid var(--bp-accent-border);
    border-radius: 999px;
    letter-spacing: 0.10em;
}
.bp-hero__cat--guide {
    background: var(--bp-warn-soft);
    color: var(--bp-warn);
    border-color: rgba(180, 83, 9, 0.22);
}
.bp-hero__cat-dot {
    width: 5px; height: 5px; border-radius: 50%;
    background: currentColor;
}
.bp-hero__title {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 500;
    font-size: clamp(2rem, 4.6vw, 3.5rem);
    line-height: 1.12;
    letter-spacing: -0.022em;
    color: var(--bp-text);
    margin: 0 0 22px;
}
.bp-hero__sub {
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--bp-text-soft);
    margin: 0;
    max-width: 640px;
}
.bp-hero__byline {
    display: flex; align-items: center; gap: 16px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--bp-divider);
    font-size: 0.875rem;
    color: var(--bp-text-soft);
}
.bp-hero__byline-by {
    font-size: 0.6875rem; font-weight: 700;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--bp-text-muted);
}
.bp-hero__byline-actions {
    margin-left: auto;
    display: flex; gap: 8px;
}
.bp-hero__share {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid var(--bp-border);
    background: var(--bp-card);
    color: var(--bp-text-soft);
    cursor: pointer;
    font-size: 0.75rem; font-weight: 600;
    font-family: inherit;
    text-decoration: none;
    transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.bp-hero__share:hover {
    border-color: var(--bp-accent);
    color: var(--bp-accent);
    background: var(--bp-accent-soft);
}
.bp-hero__share--copied {
    border-color: var(--bp-accent);
    color: var(--bp-accent);
    background: var(--bp-accent-soft);
}

/* ── Article body (reading column) ── */
.bp-article {
    background: var(--bp-bg-alt);
    padding: 56px 0 80px;
}
@media (max-width: 880px) { .bp-article { padding: 36px 0 56px; } }
.bp-article__container {
    max-width: 760px; margin: 0 auto;
    padding: 0 32px;
}
@media (max-width: 880px) { .bp-article__container { padding: 0 20px; } }

/* Refined typography for content elements */
.bp-article__content {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--bp-text);
}
.bp-article__content > *:first-child { margin-top: 0; }

.bp-article__content h2,
.bp-article__content h3,
.bp-article__content h4,
.bp-article__content h5 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 500;
    color: var(--bp-text);
    letter-spacing: -0.018em;
    line-height: 1.2;
}
.bp-article__content h2 {
    font-size: 2.125rem;
    margin: 56px 0 18px;
}
.bp-article__content h3 {
    font-size: 1.625rem;
    margin: 48px 0 14px;
}
.bp-article__content h4,
.bp-article__content .heading-4 {
    font-size: 1.625rem;
    font-weight: 500;
    font-family: 'Playfair Display', Georgia, serif;
    margin: 56px 0 16px;
    letter-spacing: -0.018em;
    line-height: 1.2;
}
.bp-article__content h5,
.bp-article__content h5.heading-4 {
    font-size: 1.25rem;
    font-weight: 600;
    font-family: 'Playfair Display', Georgia, serif;
    margin: 32px 0 12px;
    letter-spacing: -0.012em;
    line-height: 1.3;
}

.bp-article__content p {
    margin: 18px 0;
    color: var(--bp-text);
}
.bp-article__content p strong { font-weight: 600; }
.bp-article__content p em { font-style: italic; color: var(--bp-text-soft); }
.bp-article__content a {
    color: var(--bp-accent);
    text-decoration: underline;
    text-decoration-color: rgba(15, 110, 86, 0.30);
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    transition: text-decoration-color .2s ease;
}
.bp-article__content a:hover {
    text-decoration-color: var(--bp-accent);
}

/* Lists — refined bullets */
.bp-article__content ul,
.bp-article__content ol {
    margin: 18px 0;
    padding-left: 0;
    list-style: none;
}
.bp-article__content ul li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
    line-height: 1.65;
}
.bp-article__content ul li::before {
    content: '';
    position: absolute;
    left: 6px; top: 14px;
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--bp-accent);
}
.bp-article__content ol {
    counter-reset: bp-counter;
}
.bp-article__content ol li {
    counter-increment: bp-counter;
    position: relative;
    padding-left: 32px;
    margin-bottom: 10px;
    line-height: 1.65;
}
.bp-article__content ol li::before {
    content: counter(bp-counter) '.';
    position: absolute;
    left: 0; top: 0;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1rem;
    color: var(--bp-accent);
    font-weight: 500;
    width: 26px;
    text-align: right;
}

/* Footnotes ol — different styling */
.bp-article__content ol[start],
.bp-article__content ol#footnotes,
.bp-article__content .footnotes ol,
.bp-article__content ol li[id^="fn-"] {
    font-size: 0.8125rem;
    line-height: 1.55;
    color: var(--bp-text-soft);
}
.bp-article__content li[id^="fn-"] { padding-left: 38px; }
.bp-article__content li[id^="fn-"]::before {
    font-size: 0.8125rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    color: var(--bp-text-muted);
    font-weight: 500;
    width: 30px;
}

/* Footnote superscript link */
.bp-article__content sup .footnote-link,
.bp-article__content sup a {
    display: inline-block;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    margin: 0 1px;
    border-radius: 4px;
    background: var(--bp-accent-soft);
    color: var(--bp-accent);
    font-size: 0.625rem;
    font-weight: 700;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    text-align: center;
    text-decoration: none;
    line-height: 16px;
    vertical-align: super;
    transition: background .2s ease;
}
.bp-article__content sup .footnote-link:hover,
.bp-article__content sup a:hover {
    background: var(--bp-accent);
    color: #ffffff;
    text-decoration: none;
}

/* Tables — clean editorial style */
.bp-article__content table,
.bp-article__content .table-bordered {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 28px 0;
    font-size: 0.9375rem;
    border: 1px solid var(--bp-border);
    border-radius: 12px;
    overflow: hidden;
    background: var(--bp-card);
}
.bp-article__content thead th {
    font-size: 0.6875rem; font-weight: 700;
    letter-spacing: 0.10em; text-transform: uppercase;
    color: var(--bp-text-muted);
    text-align: left;
    padding: 14px 16px;
    background: var(--bp-card-soft);
    border-bottom: 1px solid var(--bp-border);
}
.bp-article__content tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--bp-divider);
    vertical-align: top;
    line-height: 1.55;
    color: var(--bp-text);
}
.bp-article__content tbody tr:last-child td { border-bottom: 0; }
.bp-article__content tbody tr:hover { background: rgba(10,10,10,0.015); }
.bp-article__content tbody td strong { font-weight: 600; color: var(--bp-text); }

/* Blockquote */
.bp-article__content blockquote {
    margin: 32px 0;
    padding: 8px 0 8px 22px;
    border-left: 3px solid var(--bp-accent);
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.25rem;
    line-height: 1.5;
    font-style: italic;
    color: var(--bp-text);
}

/* Code (if used) */
.bp-article__content code {
    padding: 2px 6px;
    background: var(--bp-card-soft);
    border: 1px solid var(--bp-border);
    border-radius: 4px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.875rem;
    color: var(--bp-text);
}

/* Drop-cap on first paragraph (subtle premium touch) */
.bp-article__content > p:first-of-type::first-letter,
.bp-article__content > h4:first-of-type + p::first-letter {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 500;
    float: left;
    font-size: 3.5rem;
    line-height: 0.92;
    padding-right: 10px;
    padding-top: 6px;
    color: var(--bp-text);
}

/* Override Tailwind-ish utility classes the article uses */
.bp-article__content .mt-40 { margin-top: 32px; }
.bp-article__content .text-center { text-align: center; }
.bp-article__content .font-bold { font-weight: 700; }
.bp-article__content .link-default {
    color: var(--bp-accent);
    text-decoration: underline;
    text-decoration-color: rgba(15, 110, 86, 0.30);
    text-underline-offset: 3px;
}
.bp-article__content .link-default:hover { text-decoration-color: var(--bp-accent); }

/* Hide the original H1 inside the body since it's already in the hero */
.bp-article__content h1.title-main { display: none; }
.bp-article__content .info-section__title { display: none; }

/* Hide existing inline-style helpers inside articles */
.bp-article__content .info-section__block,
.bp-article__content .info-section__inner {
    display: contents;
}

/* Footnotes section divider */
.bp-article__content h4:has(+ ol li[id^="fn-"]),
.bp-article__content > h4:last-of-type {
    padding-top: 40px;
    border-top: 1px solid var(--bp-divider);
    font-size: 0.875rem;
    font-family: inherit;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--bp-text-muted);
    margin: 56px 0 18px;
}

/* ── Read next (related articles) ── */
.bp-related {
    background: var(--bp-bg);
    padding: 80px 0;
    border-top: 1px solid var(--bp-divider);
}
@media (max-width: 880px) { .bp-related { padding: 56px 0; } }
.bp-related__container {
    max-width: 1240px; margin: 0 auto;
    padding: 0 32px;
}
@media (max-width: 880px) { .bp-related__container { padding: 0 20px; } }
.bp-related__head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}
.bp-related__title {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 500;
    font-size: clamp(1.625rem, 2.6vw, 2.125rem);
    line-height: 1.15;
    letter-spacing: -0.018em;
    color: var(--bp-text);
    margin: 0;
}
.bp-related__back {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 0.875rem; font-weight: 600;
    color: var(--bp-text-soft);
    text-decoration: none;
    transition: color .2s ease, gap .2s ease;
}
.bp-related__back:hover { color: var(--bp-text); gap: 9px; }
.bp-related__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
@media (max-width: 1024px) { .bp-related__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px)  { .bp-related__grid { grid-template-columns: 1fr; } }
.bp-related__card {
    display: flex; flex-direction: column;
    background: var(--bp-card);
    border: 1px solid var(--bp-border);
    border-radius: 16px;
    padding: 22px 24px 22px;
    text-decoration: none;
    color: inherit;
    transition: transform .35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow .35s ease, border-color .25s ease;
}
.bp-related__card:hover {
    transform: translateY(-3px);
    box-shadow: var(--bp-card-shadow-pop);
    border-color: var(--bp-border-strong);
}
.bp-related__card-meta {
    display: inline-flex; align-items: center; gap: 6px;
    margin-bottom: 12px;
    font-size: 0.625rem; font-weight: 700;
    letter-spacing: 0.10em; text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 999px;
    border: 1px solid;
    align-self: flex-start;
}
.bp-related__card-meta--case {
    background: var(--bp-accent-soft);
    color: var(--bp-accent);
    border-color: var(--bp-accent-border);
}
.bp-related__card-meta--research {
    background: var(--bp-accent-soft);
    color: var(--bp-accent);
    border-color: var(--bp-accent-border);
}
.bp-related__card-meta--guide {
    background: var(--bp-warn-soft);
    color: var(--bp-warn);
    border-color: rgba(180, 83, 9, 0.22);
}
.bp-related__card-meta-dot {
    width: 5px; height: 5px; border-radius: 50%;
    background: currentColor;
}
.bp-related__card-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 500;
    font-size: 1.125rem;
    line-height: 1.3;
    letter-spacing: -0.012em;
    color: var(--bp-text);
    margin: 0 0 10px;
}
.bp-related__card-excerpt {
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--bp-text-soft);
    margin: 0 0 16px;
}
.bp-related__card-foot {
    margin-top: auto;
    display: flex; align-items: center; justify-content: space-between;
    font-size: 0.75rem;
    color: var(--bp-text-muted);
    font-weight: 600;
}
.bp-related__card-foot-cta {
    display: inline-flex; align-items: center; gap: 4px;
    color: var(--bp-text);
    transition: gap .25s ease, color .2s ease;
}
.bp-related__card:hover .bp-related__card-foot-cta {
    gap: 7px;
    color: var(--bp-accent);
}

/* ── Bottom CTA ── */
.bp-cta {
    background: var(--bp-bg-alt);
    padding: 72px 0 96px;
}
@media (max-width: 880px) { .bp-cta { padding: 56px 0 72px; } }
.bp-cta__container {
    max-width: 1240px; margin: 0 auto;
    padding: 0 32px;
}
@media (max-width: 880px) { .bp-cta__container { padding: 0 20px; } }
.bp-cta__inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px;
    align-items: center;
    padding: 32px 40px;
    background: var(--bp-card-soft);
    border: 1px solid var(--bp-border);
    border-radius: 20px;
}
@media (max-width: 720px) {
    .bp-cta__inner { grid-template-columns: 1fr; padding: 28px 24px; gap: 18px; }
}
.bp-cta__title {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 500;
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    line-height: 1.2;
    letter-spacing: -0.015em;
    color: var(--bp-text);
    margin: 0 0 8px;
}
.bp-cta__title em { font-style: italic; color: var(--bp-text-soft); font-weight: 500; }
.bp-cta__sub {
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--bp-text-soft);
    margin: 0;
}
.bp-cta__buttons {
    display: flex; flex-wrap: wrap; gap: 10px;
}
.bp-cta__button {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 12px 22px;
    border-radius: 12px;
    font-size: 0.9375rem; font-weight: 700;
    text-decoration: none;
    transition: transform .12s ease, background .2s ease;
    white-space: nowrap;
}
.bp-cta__button--primary {
    background: var(--bp-text);
    color: #ffffff;
    box-shadow: 0 8px 20px -10px rgba(10, 10, 10, 0.45);
}
.bp-cta__button--primary:hover { transform: translateY(-1px); background: #1a1a1a; }
.bp-cta__button--ghost {
    background: var(--bp-card);
    color: var(--bp-text);
    border: 1px solid var(--bp-border-strong);
}
.bp-cta__button--ghost:hover { background: #f0eee8; transform: translateY(-1px); }

/* Article images + media */
.bp-article__content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid var(--bp-border);
    margin: 24px 0;
}
