/* =========================================================
   Blog listing (/blog) and single post (/blog/{slug})
   Scoped under .bp-* so the main theme is untouched.
   ========================================================= */
:root {
    --bp-primary: #FB2D16;
    --bp-primary-dark: #d81f0a;
    --bp-primary-soft: #fff1ee;
    --bp-accent: #007EA3;
    --bp-accent-soft: #e8f5f9;
    --bp-ink: #1a1d23;
    --bp-body: #3d4450;
    --bp-muted: #6b7380;
    --bp-line: #e8eaee;
    --bp-surface: #f7f8fa;
    --bp-radius: 14px;
    --bp-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 4px 16px rgba(16, 24, 40, .06);
    --bp-shadow-lg: 0 12px 32px rgba(16, 24, 40, .12);
    --bp-header-offset: 104px; /* theme's fixed-on-scroll navbar is 83px tall */
}

html { scroll-behavior: smooth; }
.bp-page { color: var(--bp-body); }
.bp-page *, .bp-page *::before, .bp-page *::after { box-sizing: border-box; }

/* ---------- Hero ---------- */
.bp-hero {
    padding: 52px 0 48px;
    background:
        radial-gradient(1200px 400px at 85% -10%, rgba(0, 126, 163, .10), transparent 60%),
        radial-gradient(900px 380px at 0% 0%, rgba(251, 45, 22, .08), transparent 60%),
        #fbfbfc;
    border-bottom: 1px solid var(--bp-line);
}
.bp-hero.bp-hero--post { padding-bottom: 36px; }
.bp-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 18px; padding: 0; font-size: 13px; color: var(--bp-muted); }
.bp-crumbs li { list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.bp-crumbs li + li::before { content: "\203A"; color: #b3b8c2; font-size: 15px; }
.bp-crumbs a { color: var(--bp-muted); }
.bp-crumbs a:hover { color: var(--bp-primary); }
.bp-crumbs li[aria-current] { color: var(--bp-ink); max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.bp-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: var(--bp-primary); background: var(--bp-primary-soft);
    padding: 6px 12px; border-radius: 999px; margin-bottom: 16px;
}
.bp-hero h1 {
    text-transform: none; color: var(--bp-ink); font-weight: 700;
    font-size: clamp(28px, 4.2vw, 44px); line-height: 1.18; letter-spacing: -.015em;
    margin: 0 0 14px; max-width: 22ch;
}
.bp-hero--post h1 { max-width: 30ch; }
.bp-hero .bp-lead { font-size: 17px; line-height: 1.65; color: var(--bp-muted); max-width: 62ch; margin: 0; }

.bp-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; font-size: 14px; color: var(--bp-muted); margin-top: 18px; }
.bp-meta span { display: inline-flex; align-items: center; gap: 7px; }
.bp-meta i { color: var(--bp-accent); }
.bp-author { display: inline-flex; align-items: center; gap: 10px; color: var(--bp-ink); font-weight: 600; }
.bp-author-avatar {
    width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center;
    background: linear-gradient(135deg, var(--bp-primary), #ff7a45); color: #fff; font-size: 13px; font-weight: 700;
}

/* ---------- Listing ---------- */
.bp-listing { padding: 48px 0 72px; background: #fff; }
.bp-section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0 0 22px; }
.bp-section-title h2 { text-transform: none; font-size: 22px; font-weight: 700; color: var(--bp-ink); margin: 0; }
.bp-section-title span { color: var(--bp-muted); font-size: 14px; }

.bp-featured {
    display: grid; grid-template-columns: 1.15fr 1fr; gap: 0;
    background: #fff; border: 1px solid var(--bp-line); border-radius: calc(var(--bp-radius) + 4px);
    overflow: hidden; box-shadow: var(--bp-shadow); margin-bottom: 48px;
    transition: box-shadow .25s ease, transform .25s ease;
}
.bp-featured:hover { box-shadow: var(--bp-shadow-lg); transform: translateY(-2px); }
.bp-featured-media { position: relative; display: block; min-height: 320px; background: var(--bp-surface); overflow: hidden; }
.bp-featured-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.bp-featured:hover .bp-featured-media img { transform: scale(1.03); }
.bp-featured-body { padding: 36px 40px; display: flex; flex-direction: column; justify-content: center; }
.bp-featured-body h2 { text-transform: none; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.25; font-weight: 700; margin: 10px 0 12px; }
.bp-featured-body h2 a { color: var(--bp-ink); }
.bp-featured-body h2 a:hover { color: var(--bp-primary); }
.bp-featured-body p { color: var(--bp-muted); font-size: 15.5px; line-height: 1.7; margin: 0 0 22px; }

.bp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.bp-card {
    display: flex; flex-direction: column; background: #fff; border: 1px solid var(--bp-line);
    border-radius: var(--bp-radius); overflow: hidden; box-shadow: var(--bp-shadow);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.bp-card:hover { transform: translateY(-4px); box-shadow: var(--bp-shadow-lg); border-color: transparent; }
.bp-card-media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bp-surface); }
.bp-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.bp-card:hover .bp-card-media img { transform: scale(1.05); }
.bp-card-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.bp-card-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--bp-muted); margin-bottom: 10px; }
.bp-card-meta span { display: inline-flex; align-items: center; gap: 6px; }
.bp-card h3 { text-transform: none; font-size: 18px; line-height: 1.4; font-weight: 700; margin: 0 0 10px; }
.bp-card h3 a { color: var(--bp-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bp-card h3 a:hover { color: var(--bp-primary); }
.bp-card p { color: var(--bp-muted); font-size: 14.5px; line-height: 1.65; margin: 0 0 18px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bp-readmore { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; color: var(--bp-primary); }
.bp-readmore i { transition: transform .2s ease; }
.bp-readmore:hover { color: var(--bp-primary-dark); }
.bp-readmore:hover i, .bp-card:hover .bp-readmore i { transform: translateX(4px); }

.bp-empty { text-align: center; padding: 64px 20px; border: 1px dashed var(--bp-line); border-radius: var(--bp-radius); background: var(--bp-surface); }
.bp-empty i { font-size: 34px; color: var(--bp-accent); margin-bottom: 12px; }
.bp-empty h2 { text-transform: none; font-size: 20px; color: var(--bp-ink); }
.bp-empty p { color: var(--bp-muted); }

.bp-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 48px; padding: 0; }
.bp-pagination li { list-style: none; }
.bp-pagination a, .bp-pagination span {
    min-width: 42px; height: 42px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    border-radius: 999px; border: 1px solid var(--bp-line); color: var(--bp-ink); font-weight: 600; font-size: 14px; background: #fff;
}
.bp-pagination a:hover { border-color: var(--bp-primary); color: var(--bp-primary); }
.bp-pagination .is-active span { background: var(--bp-primary); border-color: var(--bp-primary); color: #fff; }
.bp-pagination .is-disabled span { color: #b3b8c2; }

/* ---------- Buttons / CTA ---------- */
.bp-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 15px; line-height: 1;
    border: 1px solid transparent; cursor: pointer; transition: all .2s ease; text-decoration: none;
}
.bp-btn--primary { background: var(--bp-primary); color: #fff; box-shadow: 0 6px 16px rgba(251, 45, 22, .25); }
.bp-btn--primary:hover, .bp-btn--primary:focus { background: var(--bp-primary-dark); color: #fff; transform: translateY(-1px); }
.bp-btn--ghost { background: #fff; color: var(--bp-ink); border-color: var(--bp-line); }
.bp-btn--ghost:hover, .bp-btn--ghost:focus { border-color: var(--bp-ink); color: var(--bp-ink); }
.bp-btn--light { background: #fff; color: var(--bp-primary); }
.bp-btn--light:hover, .bp-btn--light:focus { background: #fff; color: var(--bp-primary-dark); transform: translateY(-1px); }
.bp-btn--outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.bp-btn--outline-light:hover, .bp-btn--outline-light:focus { border-color: #fff; color: #fff; }

.bp-cta-band {
    position: relative; overflow: hidden; border-radius: calc(var(--bp-radius) + 6px); padding: 40px 44px; margin-top: 64px;
    background: linear-gradient(120deg, #0b6f8f 0%, var(--bp-accent) 45%, #0a93bd 100%); color: #fff;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
}
.bp-cta-band::after {
    content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%;
    background: rgba(255, 255, 255, .08); pointer-events: none;
}
.bp-cta-band h2 { text-transform: none; color: #fff; font-size: clamp(20px, 2.4vw, 26px); font-weight: 700; margin: 0 0 6px; }
.bp-cta-band p { color: rgba(255, 255, 255, .85); margin: 0; font-size: 15px; }
.bp-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; position: relative; z-index: 1; }

/* ---------- Single post ---------- */
.bp-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 100001; background: linear-gradient(90deg, var(--bp-primary), #ff8a3d); transition: width .1s linear; }

.bp-cover { margin: 32px 0 0; border-radius: calc(var(--bp-radius) + 4px); overflow: hidden; box-shadow: var(--bp-shadow); background: var(--bp-surface); }
.bp-cover img { width: 100%; max-height: 520px; object-fit: cover; display: block; }

.bp-post-wrap { padding: 44px 0 72px; background: #fff; }
.bp-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: start; }
.bp-layout.bp-layout--no-toc { grid-template-columns: minmax(0, 1fr) 300px; }
.bp-article { min-width: 0; }

.bp-aside { position: sticky; top: var(--bp-header-offset); display: flex; flex-direction: column; gap: 20px; max-height: calc(100vh - var(--bp-header-offset) - 20px); }

/* TOC */
.bp-toc { background: #fff; border: 1px solid var(--bp-line); border-radius: var(--bp-radius); box-shadow: var(--bp-shadow); display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.bp-toc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px 12px; border-bottom: 1px solid var(--bp-line); }
.bp-toc-title { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--bp-ink); margin: 0; }
.bp-toc-title i { color: var(--bp-primary); }
.bp-toc-pct { font-size: 12px; font-weight: 600; color: var(--bp-muted); font-variant-numeric: tabular-nums; }
.bp-toc-bar { height: 3px; background: var(--bp-line); }
.bp-toc-bar span { display: block; height: 100%; width: 0; background: var(--bp-primary); transition: width .15s linear; }
.bp-toc-nav { overflow-y: auto; padding: 10px 8px 12px; overscroll-behavior: contain; scrollbar-width: thin; }
.bp-toc-list, .bp-toc-list ol { margin: 0; padding: 0; counter-reset: bptoc; }
.bp-toc-list li { list-style: none; margin: 0; padding: 0; }
.bp-toc-list ol { padding-left: 14px; margin: 2px 0 4px; }
.bp-toc-list a {
    position: relative; display: flex; gap: 10px; padding: 8px 12px 8px 14px; border-radius: 8px;
    color: var(--bp-body); font-size: 14px; line-height: 1.45; border-left: 2px solid transparent;
}
.bp-toc-list > li > a { font-weight: 600; }
.bp-toc-list > li > a::before { counter-increment: bptoc; content: counter(bptoc, decimal-leading-zero); color: #a3a9b4; font-size: 12px; font-weight: 700; padding-top: 2px; font-variant-numeric: tabular-nums; }
.bp-toc-list ol a { font-size: 13.5px; color: var(--bp-muted); padding-top: 6px; padding-bottom: 6px; }
.bp-toc-list a:hover { background: var(--bp-surface); color: var(--bp-ink); }
.bp-toc-list a.is-active { background: var(--bp-primary-soft); color: var(--bp-primary); border-left-color: var(--bp-primary); }
.bp-toc-list a.is-active::before { color: var(--bp-primary); }

/* Sidebar CTA */
.bp-side-cta { flex-shrink: 0; border-radius: var(--bp-radius); padding: 22px; color: #fff; background: linear-gradient(140deg, var(--bp-primary) 0%, #ff6a3d 100%); box-shadow: 0 10px 24px rgba(251, 45, 22, .22); }
.bp-side-cta h3 { text-transform: none; color: #fff; font-size: 18px; font-weight: 700; margin: 0 0 6px; }
.bp-side-cta p { color: rgba(255, 255, 255, .9); font-size: 14px; line-height: 1.55; margin: 0 0 16px; }
.bp-side-cta .bp-btn { width: 100%; }
.bp-side-cta .bp-side-phone { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; color: #fff; font-weight: 600; font-size: 14px; }

/* Mobile inline TOC (hidden on desktop) */
.bp-toc-inline { display: none; }

/* Floating TOC button + bottom sheet (mobile) */
.bp-toc-fab {
    display: none; position: fixed; left: 16px; bottom: 20px; z-index: 9990;
    align-items: center; gap: 8px; padding: 12px 18px; border-radius: 999px; border: 0;
    background: var(--bp-ink); color: #fff; font-weight: 600; font-size: 14px; box-shadow: 0 10px 24px rgba(0, 0, 0, .25);
    transform: translateY(120px); transition: transform .3s ease;
}
.bp-toc-fab.is-visible { transform: translateY(0); }
.bp-sheet { position: fixed; inset: 0; z-index: 100002; visibility: hidden; }
.bp-sheet.is-open { visibility: visible; }
.bp-sheet-backdrop { position: absolute; inset: 0; background: rgba(15, 18, 24, .5); opacity: 0; transition: opacity .25s ease; }
.bp-sheet.is-open .bp-sheet-backdrop { opacity: 1; }
.bp-sheet-panel {
    position: absolute; left: 0; right: 0; bottom: 0; max-height: 75vh; display: flex; flex-direction: column;
    background: #fff; border-radius: 20px 20px 0 0; box-shadow: 0 -10px 30px rgba(0, 0, 0, .15);
    transform: translateY(100%); transition: transform .3s cubic-bezier(.2, .8, .2, 1); padding-bottom: env(safe-area-inset-bottom);
}
.bp-sheet.is-open .bp-sheet-panel { transform: translateY(0); }
.bp-sheet-grip { width: 40px; height: 4px; border-radius: 4px; background: #d6d9df; margin: 10px auto 0; }
.bp-sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; border-bottom: 1px solid var(--bp-line); }
.bp-sheet-close { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--bp-surface); color: var(--bp-ink); font-size: 16px; }
.bp-sheet .bp-toc-nav { padding: 10px 10px 18px; }

/* Share */
.bp-share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.bp-share-label { font-size: 13px; font-weight: 700; color: var(--bp-ink); text-transform: uppercase; letter-spacing: .06em; margin-right: 4px; }
.bp-share a, .bp-share button {
    width: 38px; height: 38px; border-radius: 50%; display: inline-grid; place-items: center;
    border: 1px solid var(--bp-line); background: #fff; color: var(--bp-body); font-size: 15px; cursor: pointer; transition: all .2s ease;
}
.bp-share a:hover, .bp-share button:hover { background: var(--bp-ink); color: #fff; border-color: var(--bp-ink); }
.bp-share button.is-copied { background: #1f9d55; border-color: #1f9d55; color: #fff; }

.bp-article-foot { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--bp-line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }

/* Related */
.bp-related { padding: 56px 0 72px; background: var(--bp-surface); border-top: 1px solid var(--bp-line); }

/* ---------- Article typography (content from editor) ---------- */
.bp-content { font-size: 17px; line-height: 1.8; color: var(--bp-body); word-wrap: break-word; overflow-wrap: anywhere; }
.bp-content > *:first-child { margin-top: 0 !important; }
.bp-content p { margin: 0 0 1.25em; }
.bp-content h2, .bp-content h3, .bp-content h4, .bp-content h5, .bp-content h6 {
    text-transform: none; color: var(--bp-ink); font-weight: 700; letter-spacing: -.01em; scroll-margin-top: calc(var(--bp-header-offset) + 10px);
}
.bp-content h2 { font-size: clamp(23px, 2.6vw, 29px); line-height: 1.3; margin: 2em 0 .7em; padding-bottom: .45em; border-bottom: 1px solid var(--bp-line); position: relative; }
.bp-content h2::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 56px; height: 3px; border-radius: 3px; background: var(--bp-primary); }
.bp-content h3 { font-size: clamp(19px, 2vw, 22px); line-height: 1.35; margin: 1.7em 0 .6em; }
.bp-content h4 { font-size: 18px; margin: 1.5em 0 .5em; }
.bp-content h5, .bp-content h6 { font-size: 16px; margin: 1.4em 0 .5em; }
.bp-content strong, .bp-content b { color: var(--bp-ink); font-weight: 700; }
.bp-content a { color: var(--bp-accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.bp-content a:hover { color: var(--bp-primary); }

.bp-content ul, .bp-content ol { margin: 0 0 1.4em; padding-left: 1.6em; }
.bp-content li { margin: 0 0 .55em; padding-left: .3em; line-height: 1.75; }
.bp-content ul > li { list-style: none; position: relative; }
.bp-content ul > li::before { content: ""; position: absolute; left: -1.05em; top: .72em; width: 7px; height: 7px; border-radius: 50%; background: var(--bp-primary); }
.bp-content ul ul > li::before { background: transparent; border: 1.5px solid var(--bp-primary); }
.bp-content ol > li { list-style: decimal; }
.bp-content ol > li::marker { color: var(--bp-primary); font-weight: 700; }
.bp-content ol ol > li { list-style: lower-alpha; }
.bp-content li > ul, .bp-content li > ol { margin: .5em 0 0; }

.bp-content blockquote {
    margin: 1.8em 0; padding: 20px 24px; border-left: 4px solid var(--bp-primary); border-radius: 0 12px 12px 0;
    background: var(--bp-primary-soft); color: var(--bp-ink); font-size: 1.04em; font-style: italic;
}
.bp-content blockquote p:last-child { margin-bottom: 0; }

.bp-content img { max-width: 100%; height: auto; border-radius: 12px; margin: 1em 0; }
.bp-content figure { margin: 1.8em 0; }
.bp-content figcaption { font-size: 14px; color: var(--bp-muted); text-align: center; margin-top: 8px; }
.bp-content hr { border: 0; height: 1px; background: var(--bp-line); margin: 2.4em 0; }

.bp-table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.6em 0; border: 1px solid var(--bp-line); border-radius: 12px; }
.bp-content table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.55; margin: 0; min-width: 480px; }
.bp-content > table { margin: 1.6em 0; }
.bp-content th, .bp-content td { padding: 12px 16px; border-bottom: 1px solid var(--bp-line); text-align: left; vertical-align: top; }
.bp-content td + td, .bp-content th + th, .bp-content th + td, .bp-content td + th { border-left: 1px solid var(--bp-line); }
.bp-content thead th, .bp-content thead td, .bp-content tbody tr:first-child th { background: var(--bp-ink); color: #fff; font-weight: 600; }
.bp-content thead th strong, .bp-content thead td strong { color: #fff; }
.bp-content tbody tr:nth-child(even) td { background: var(--bp-surface); }
.bp-content tr:last-child td { border-bottom: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
    .bp-layout { gap: 40px; grid-template-columns: minmax(0, 1fr) 290px; }
    .bp-grid { gap: 22px; }
}

@media (max-width: 991px) {
    .bp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bp-featured { grid-template-columns: 1fr; }
    .bp-featured-media { min-height: 0; aspect-ratio: 16 / 9; }
    .bp-featured-body { padding: 26px 26px 30px; }

    .bp-layout, .bp-layout.bp-layout--no-toc { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .bp-aside { position: static; max-height: none; margin-top: 40px; }
    .bp-aside .bp-toc { display: none; }

    .bp-toc-inline { display: block; margin: 0 0 32px; border: 1px solid var(--bp-line); border-radius: var(--bp-radius); background: var(--bp-surface); overflow: hidden; }
    .bp-toc-inline summary {
        list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px;
        padding: 15px 18px; font-weight: 700; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; color: var(--bp-ink);
    }
    .bp-toc-inline summary::-webkit-details-marker { display: none; }
    .bp-toc-inline summary .bp-toc-title { font-size: 13px; }
    .bp-toc-inline summary .bp-chev { transition: transform .25s ease; color: var(--bp-muted); }
    .bp-toc-inline[open] summary .bp-chev { transform: rotate(180deg); }
    .bp-toc-inline[open] summary { border-bottom: 1px solid var(--bp-line); }
    .bp-toc-inline .bp-toc-nav { background: #fff; max-height: 55vh; }

    .bp-toc-fab { display: inline-flex; }
}

@media (max-width: 767px) {
    .bp-hero { padding: 36px 0 32px; }
    .bp-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .bp-listing { padding: 32px 0 56px; }
    .bp-cta-band { padding: 28px 24px; margin-top: 44px; }
    .bp-cta-actions, .bp-cta-actions .bp-btn { width: 100%; }
    .bp-cover { margin-top: 24px; border-radius: var(--bp-radius); }
    .bp-post-wrap { padding: 28px 0 56px; }
    .bp-content { font-size: 16.5px; line-height: 1.78; }
    .bp-content blockquote { padding: 16px 18px; }
    .bp-content th, .bp-content td { padding: 10px 12px; }
    .bp-article-foot { flex-direction: column; align-items: flex-start; }
}

/* On phones the theme never fixes the navbar, so sticky elements can sit near the top */
@media (max-width: 600px) {
    :root { --bp-header-offset: 16px; }
    .bp-hero { padding-top: 28px; }
    .bp-hero .bp-lead { font-size: 15.5px; }
    .bp-crumbs li[aria-current] { max-width: 28ch; }
    .bp-meta { font-size: 13px; gap: 8px 14px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .bp-page *, .bp-toc-fab, .bp-sheet-panel { transition: none !important; }
}
