/*
 * Blog: public pages. Everything is scoped to .pb so it never touches the host site's styles.
 * The product layout sets --pb-accent (brand colour), --pb-font and --pb-heading on .pb; the tints follow the accent.
 */
.pb {
    --pb-accent: #7c3aed;
    --pb-accent-soft: color-mix(in srgb, var(--pb-accent) 10%, #fff);
    --pb-ink: #0f172a;
    --pb-text: #334155;
    --pb-muted: #64748b;
    --pb-faint: #94a3b8;
    --pb-line: #e2e8f0;
    --pb-surface: #ffffff;
    --pb-tint: #f8fafc;
    --pb-radius: 20px;
    --pb-shadow: 0 1px 2px rgb(15 23 42 / .04), 0 8px 24px -12px rgb(15 23 42 / .12);
    --pb-shadow-hover: 0 2px 4px rgb(15 23 42 / .05), 0 24px 48px -20px rgb(15 23 42 / .25);
    --pb-font: inherit;
    --pb-heading: inherit;
    font-family: var(--pb-font);
    color: var(--pb-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
.pb *, .pb *::before, .pb *::after { box-sizing: border-box; }
.pb :where(a) { color: inherit; text-decoration: none; }
.pb :where(img) { max-width: 100%; height: auto; display: block; }
.pb svg { flex: none; }
.pb :is(.pb-title, .pb-featured-title, .pb-card-title, .pb-article-title, .pb-section-title, .pb-empty h2, .pb-prose h2, .pb-prose h3, .pb-prose h4) { font-family: var(--pb-heading); }
.pb :focus-visible { outline: 2px solid var(--pb-accent); outline-offset: 2px; border-radius: 6px; }

.pb-wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.pb-narrow { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 24px; }
.pb-section { padding-bottom: 72px; }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.pb-hero { padding: 56px 0 36px; text-align: center; }
.pb-eyebrow {
    display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px;
    font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--pb-accent);
}
.pb-eyebrow::before, .pb-eyebrow::after { content: ""; width: 18px; height: 1.5px; background: currentColor; opacity: .5; border-radius: 2px; }
.pb-title {
    margin: 0 auto; max-width: 820px; color: var(--pb-ink);
    font-size: clamp(2.25rem, 5vw, 3.5rem); line-height: 1.08; font-weight: 800; letter-spacing: -.035em;
}
.pb-lead { margin: 16px auto 0; max-width: 620px; font-size: 1.125rem; color: var(--pb-muted); }
.pb-crumbs { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-bottom: 14px; font-size: 13px; color: var(--pb-faint); }
.pb-crumbs a { color: var(--pb-muted); font-weight: 500; transition: color .15s; }
.pb-crumbs a:hover { color: var(--pb-accent); }

.pb-search {
    position: relative; display: flex; align-items: center; max-width: 480px; margin: 28px auto 0;
    background: var(--pb-surface); border: 1px solid var(--pb-line); border-radius: 999px;
    box-shadow: var(--pb-shadow); transition: border-color .15s, box-shadow .15s;
}
.pb-search:focus-within { border-color: var(--pb-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--pb-accent) 14%, transparent), var(--pb-shadow); }
.pb-search svg { position: absolute; left: 18px; width: 18px; height: 18px; color: var(--pb-faint); pointer-events: none; }
.pb-search input {
    flex: 1; min-width: 0; height: 50px; padding: 0 44px 0 46px; border: 0; background: transparent; border-radius: 999px;
    font: inherit; font-size: 15px; color: var(--pb-ink); outline: none; box-shadow: none;
}
.pb-search input::-webkit-search-cancel-button { display: none; }
.pb-search input::placeholder { color: var(--pb-faint); }
.pb-search-clear {
    position: absolute; right: 10px; width: 30px; height: 30px; display: grid; place-items: center;
    border-radius: 999px; font-size: 20px; line-height: 1; color: var(--pb-muted); background: var(--pb-tint);
}
.pb-search-clear:hover { color: var(--pb-ink); background: var(--pb-line); }

/* ── Category chips ───────────────────────────────────────────────────── */
.pb-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 40px; }
.pb-chip {
    --pb-c: var(--pb-accent);
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
    background: var(--pb-surface); border: 1px solid var(--pb-line); color: var(--pb-text);
    font-size: 14px; font-weight: 600; transition: all .15s;
}
.pb-chip:hover { border-color: color-mix(in srgb, var(--pb-c) 45%, var(--pb-line)); color: var(--pb-ink); transform: translateY(-1px); }
.pb-chip.is-on { background: var(--pb-ink); border-color: var(--pb-ink); color: #fff; }
.pb-chip-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--pb-c); }
.pb-chip-count { font-size: 12px; font-weight: 600; color: var(--pb-faint); }
.pb-chip.is-on .pb-chip-count { color: rgb(255 255 255 / .6); }

.pb-results { margin: -12px 0 32px; text-align: center; color: var(--pb-muted); }
.pb-results a { margin-left: 8px; font-weight: 600; color: var(--pb-accent); }

/* ── Category label ───────────────────────────────────────────────────── */
.pb-cat {
    --pb-c: var(--pb-accent);
    position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 6px;
    font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--pb-c);
}
.pb-cat::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: currentColor; }
.pb-cat:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ── Meta (author · date · reading time) ──────────────────────────────── */
.pb-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--pb-muted); }
.pb-meta-lg { font-size: 14px; gap: 10px; }
.pb-author { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--pb-text); }
.pb-avatar {
    width: 26px; height: 26px; border-radius: 999px; object-fit: cover; display: inline-grid; place-items: center;
    background: color-mix(in srgb, var(--pb-accent) 14%, #fff); color: var(--pb-accent); font-size: 11px; font-weight: 700; letter-spacing: .02em;
}
.pb-meta-lg .pb-avatar { width: 36px; height: 36px; font-size: 13px; }
.pb-dot { width: 3px; height: 3px; border-radius: 999px; background: var(--pb-faint); }

/* ── Featured post ────────────────────────────────────────────────────── */
.pb-featured {
    position: relative; display: grid; grid-template-columns: 1.25fr 1fr; overflow: hidden; margin-bottom: 56px;
    background: var(--pb-surface); border: 1px solid var(--pb-line); border-radius: calc(var(--pb-radius) + 6px);
    box-shadow: var(--pb-shadow); transition: box-shadow .25s, transform .25s;
}
.pb-featured:hover { box-shadow: var(--pb-shadow-hover); transform: translateY(-2px); }
.pb-featured-media { position: relative; min-height: 340px; overflow: hidden; background: color-mix(in srgb, var(--pb-c, var(--pb-accent)) 12%, #fff); }
.pb-featured-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.pb-featured:hover .pb-featured-media img { transform: scale(1.04); }
.pb-featured-body { display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: 44px; }
.pb-featured-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.pb-badge {
    display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px;
    background: var(--pb-accent-soft); color: var(--pb-accent); font-size: 12px; font-weight: 700;
}
.pb-featured-title { margin: 0; color: var(--pb-ink); font-size: clamp(1.5rem, 2.6vw, 2.125rem); line-height: 1.18; font-weight: 800; letter-spacing: -.025em; }
.pb-featured-title a:hover { color: var(--pb-accent); }
.pb-featured-excerpt { margin: 0; font-size: 1.0625rem; color: var(--pb-muted); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.pb-readmore { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 14px; font-weight: 700; color: var(--pb-accent); }
.pb-readmore svg { width: 16px; height: 16px; transition: transform .2s; }
.pb-featured:hover .pb-readmore svg { transform: translateX(4px); }

/* The title link covers the whole card; category links sit above it. */
.pb-stretch::after { content: ""; position: absolute; inset: 0; z-index: 1; }

/* ── Cards ────────────────────────────────────────────────────────────── */
.pb-section-title { margin: 0 0 24px; color: var(--pb-ink); font-size: 1.375rem; font-weight: 800; letter-spacing: -.02em; }
.pb-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.pb-card {
    position: relative; display: flex; flex-direction: column; overflow: hidden;
    background: var(--pb-surface); border: 1px solid var(--pb-line); border-radius: var(--pb-radius);
    box-shadow: var(--pb-shadow); transition: box-shadow .25s, transform .25s, border-color .25s;
}
.pb-card:hover { box-shadow: var(--pb-shadow-hover); transform: translateY(-4px); border-color: color-mix(in srgb, var(--pb-accent) 20%, var(--pb-line)); }
.pb-card-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: color-mix(in srgb, var(--pb-c, var(--pb-accent)) 12%, #fff); }
.pb-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.pb-card:hover .pb-card-media img { transform: scale(1.05); }
.pb-card-placeholder {
    position: absolute; inset: 0; display: grid; place-items: center;
    background:
        radial-gradient(circle at 20% 20%, color-mix(in srgb, var(--pb-c, var(--pb-accent)) 28%, transparent), transparent 55%),
        radial-gradient(circle at 85% 85%, color-mix(in srgb, var(--pb-c, var(--pb-accent)) 22%, transparent), transparent 50%),
        color-mix(in srgb, var(--pb-c, var(--pb-accent)) 8%, #fff);
    color: color-mix(in srgb, var(--pb-c, var(--pb-accent)) 70%, #000);
    font-size: 64px; font-weight: 800; letter-spacing: -.04em; opacity: .9;
}
.pb-card-body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 22px 22px 20px; }
.pb-card-title { margin: 0; color: var(--pb-ink); font-size: 1.1875rem; line-height: 1.3; font-weight: 700; letter-spacing: -.015em; }
.pb-card-title a { transition: color .15s; }
.pb-card:hover .pb-card-title a { color: var(--pb-accent); }
.pb-card-excerpt { margin: 0 0 6px; flex: 1; font-size: 15px; color: var(--pb-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pb-card .pb-meta { padding-top: 14px; border-top: 1px solid var(--pb-line); }

/* ── Pagination, empty state, RSS ─────────────────────────────────────── */
.pb-pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin-top: 52px; }
.pb-pager-btn {
    min-width: 42px; height: 42px; padding: 0 12px; display: inline-grid; place-items: center; border-radius: 12px;
    border: 1px solid var(--pb-line); background: var(--pb-surface); font-size: 14px; font-weight: 600; color: var(--pb-text); transition: all .15s;
}
a.pb-pager-btn:hover { border-color: var(--pb-accent); color: var(--pb-accent); }
.pb-pager-btn.is-on { background: var(--pb-ink); border-color: var(--pb-ink); color: #fff; }
.pb-pager-btn.is-off { opacity: .4; }
.pb-pager-gap { padding: 0 4px; color: var(--pb-faint); }

.pb-empty { max-width: 460px; margin: 24px auto; padding: 56px 32px; text-align: center; background: var(--pb-surface); border: 1px dashed var(--pb-line); border-radius: var(--pb-radius); }
.pb-empty-icon { width: 60px; height: 60px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 18px; background: var(--pb-accent-soft); color: var(--pb-accent); }
.pb-empty-icon svg { width: 30px; height: 30px; }
.pb-empty h2 { margin: 0 0 8px; color: var(--pb-ink); font-size: 1.25rem; font-weight: 700; }
.pb-empty p { margin: 0; color: var(--pb-muted); }
.pb-button {
    display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; padding: 11px 20px; border-radius: 12px;
    background: var(--pb-ink); color: #fff !important; font-size: 14px; font-weight: 600; transition: background .15s, transform .15s;
}
.pb-button:hover { background: var(--pb-accent); transform: translateY(-1px); }
.pb-rss { margin: 48px 0 0; text-align: center; font-size: 13px; }
.pb-rss a { display: inline-flex; align-items: center; gap: 6px; color: var(--pb-muted); font-weight: 500; }
.pb-rss a:hover { color: #f97316; }
.pb-rss svg { width: 15px; height: 15px; color: #f97316; }
.pb-link { font-size: 14px; font-weight: 600; color: var(--pb-accent); }
.pb-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ── Article ──────────────────────────────────────────────────────────── */
.pb-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 1000; pointer-events: none; }
.pb-progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--pb-progress, 0)); background: linear-gradient(90deg, var(--pb-accent), color-mix(in srgb, var(--pb-accent) 60%, #ec4899)); }
[dir="rtl"] .pb-progress span { transform-origin: 100% 50%; }

.pb-preview-bar {
    display: flex; align-items: center; justify-content: center; gap: 10px; padding: 11px 24px;
    background: #fffbeb; border-bottom: 1px solid #fde68a; color: #92400e; font-size: 14px; font-weight: 600;
}
.pb-preview-bar svg { width: 18px; height: 18px; }

.pb-article { padding: 48px 0 24px; }
.pb-article-head { text-align: center; }
.pb-article-head .pb-crumbs { margin-bottom: 22px; }
.pb-article-title { margin: 0; color: var(--pb-ink); font-size: clamp(2rem, 4.6vw, 3.25rem); line-height: 1.1; font-weight: 800; letter-spacing: -.035em; text-wrap: balance; }
.pb-article-lead { margin: 20px 0 0; font-size: 1.25rem; line-height: 1.55; color: var(--pb-muted); text-wrap: pretty; }
.pb-article-head .pb-meta { justify-content: center; margin-top: 28px; }

.pb-cover { max-width: 1080px; margin: 44px auto 0; padding: 0 24px; }
.pb-cover img { width: 100%; max-height: 620px; object-fit: cover; border-radius: calc(var(--pb-radius) + 6px); box-shadow: 0 30px 60px -30px rgb(15 23 42 / .35); }

.pb-article-grid { max-width: 760px; margin: 52px auto 0; padding: 0 24px; }
.pb-article-grid.has-toc { max-width: 1120px; display: grid; grid-template-columns: 220px minmax(0, 712px); justify-content: center; gap: 56px; }
.pb-toc { position: sticky; top: 88px; align-self: start; max-height: calc(100vh - 120px); overflow: auto; padding-right: 4px; }
.pb-toc-title { margin: 0 0 12px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--pb-faint); }
.pb-toc ol, .pb-toc-mobile ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--pb-line); }
.pb-toc li a, .pb-toc-mobile li a {
    display: block; margin-left: -2px; padding: 6px 0 6px 14px; border-left: 2px solid transparent;
    font-size: 14px; line-height: 1.4; color: var(--pb-muted); transition: color .15s, border-color .15s;
}
.pb-toc li.pb-toc-l3 a, .pb-toc-mobile li.pb-toc-l3 a { padding-left: 28px; font-size: 13px; }
.pb-toc li a:hover { color: var(--pb-ink); }
.pb-toc li a.is-active { color: var(--pb-accent); border-left-color: var(--pb-accent); font-weight: 600; }
.pb-toc-mobile { display: none; margin-bottom: 32px; padding: 14px 18px; border: 1px solid var(--pb-line); border-radius: 14px; background: var(--pb-surface); }
.pb-toc-mobile summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; font-weight: 700; color: var(--pb-ink); }
.pb-toc-mobile summary::-webkit-details-marker { display: none; }
.pb-toc-mobile summary::after { content: ""; width: 8px; height: 8px; margin-right: 4px; border-right: 2px solid var(--pb-muted); border-bottom: 2px solid var(--pb-muted); transform: rotate(45deg) translateY(-3px); transition: transform .2s; }
.pb-toc-mobile[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.pb-toc-mobile ol { margin-top: 12px; }

/* ── Typography of the post body ──────────────────────────────────────── */
.pb-prose { --pb-c: var(--pb-accent); font-size: 1.125rem; line-height: 1.8; color: var(--pb-text); overflow-wrap: break-word; }
.pb-prose > :first-child { margin-top: 0; }
.pb-prose p { margin: 0 0 1.4em; }
.pb-prose h2, .pb-prose h3, .pb-prose h4 { color: var(--pb-ink); font-weight: 800; letter-spacing: -.02em; scroll-margin-top: 90px; }
.pb-prose h2 { margin: 2.2em 0 .7em; font-size: 1.75rem; line-height: 1.25; }
.pb-prose h3 { margin: 1.9em 0 .6em; font-size: 1.375rem; line-height: 1.3; }
.pb-prose h4 { margin: 1.6em 0 .5em; font-size: 1.125rem; }
.pb-prose a { color: var(--pb-accent); font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--pb-accent) 40%, transparent); transition: text-decoration-color .15s; }
.pb-prose a:hover { text-decoration-color: currentColor; }
.pb-prose strong, .pb-prose b { color: var(--pb-ink); font-weight: 700; }
.pb-prose ul, .pb-prose ol { margin: 0 0 1.4em; padding-left: 1.5em; }
.pb-prose ul { list-style: disc; }
.pb-prose ol { list-style: decimal; }
.pb-prose li { margin: .4em 0; padding-left: .25em; }
.pb-prose li::marker { color: var(--pb-accent); font-weight: 600; }
.pb-prose li > p { margin: 0; }
.pb-prose blockquote {
    margin: 2em 0; padding: 4px 0 4px 26px; border-left: 4px solid var(--pb-accent);
    font-size: 1.25rem; line-height: 1.6; font-style: italic; color: var(--pb-ink);
}
.pb-prose blockquote p:last-child { margin-bottom: 0; }
.pb-prose hr { margin: 3em auto; width: 120px; border: 0; border-top: 2px dotted var(--pb-faint); }
.pb-prose img { margin: 2em auto; border-radius: 14px; }
.pb-prose figure { margin: 2em 0; }
.pb-prose figure img { margin: 0 auto; }
.pb-prose figcaption { margin-top: 10px; text-align: center; font-size: 14px; color: var(--pb-muted); }
.pb-prose code { padding: .15em .4em; border-radius: 6px; background: var(--pb-tint); border: 1px solid var(--pb-line); font-size: .875em; color: var(--pb-ink); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.pb-prose pre { margin: 2em 0; padding: 20px 22px; overflow-x: auto; border-radius: 14px; background: #0f172a; color: #e2e8f0; font-size: 14.5px; line-height: 1.7; }
.pb-prose pre code { padding: 0; border: 0; background: none; color: inherit; font-size: inherit; }
.pb-prose table { width: 100%; margin: 2em 0; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.pb-prose th, .pb-prose td { padding: 10px 14px; border: 1px solid var(--pb-line); text-align: left; vertical-align: top; }
.pb-prose th { background: var(--pb-tint); color: var(--pb-ink); font-weight: 700; }
.pb-prose th p, .pb-prose td p { margin: 0; }
.pb-prose mark { padding: 0 .2em; border-radius: 4px; background: #fef08a; color: inherit; }
.pb-prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; margin: 2em 0; border: 0; border-radius: 14px; }

/* ── After the post ───────────────────────────────────────────────────── */
.pb-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 44px; }
.pb-tag { padding: 6px 12px; border-radius: 999px; background: var(--pb-tint); border: 1px solid var(--pb-line); font-size: 13px; font-weight: 600; color: var(--pb-muted); transition: all .15s; }
.pb-tag:hover { background: var(--pb-accent-soft); border-color: transparent; color: var(--pb-accent); }

.pb-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 32px; padding: 20px 0; border-top: 1px solid var(--pb-line); border-bottom: 1px solid var(--pb-line); }
.pb-share-label { margin-right: 6px; font-size: 14px; font-weight: 700; color: var(--pb-ink); }
.pb-share-btn {
    position: relative; width: 40px; height: 40px; display: inline-grid; place-items: center; padding: 0; cursor: pointer;
    border-radius: 12px; border: 1px solid var(--pb-line); background: var(--pb-surface); color: var(--pb-muted); transition: all .15s;
}
.pb-share-btn svg { width: 17px; height: 17px; }
.pb-share-btn:hover { color: #fff; background: var(--pb-ink); border-color: var(--pb-ink); transform: translateY(-2px); }
.pb-copy-done { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); padding: 4px 8px; border-radius: 6px; background: var(--pb-ink); color: #fff; font-size: 12px; font-weight: 600; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s; }
.pb-copy-done:not(:empty) { opacity: 1; }

.pb-adjacent { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 36px; }
.pb-adjacent-link { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border-radius: 16px; border: 1px solid var(--pb-line); background: var(--pb-surface); transition: all .2s; }
.pb-adjacent-link:hover { border-color: var(--pb-accent); box-shadow: var(--pb-shadow); }
.pb-adjacent-link.is-next { grid-column: 2; text-align: right; }
.pb-adjacent-label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--pb-faint); }
.pb-adjacent-title { font-weight: 700; color: var(--pb-ink); line-height: 1.35; }

.pb-related { margin-top: 64px; padding: 64px 0 80px; background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--pb-accent) 5%, transparent)); border-top: 1px solid var(--pb-line); }
.pb-related-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
    .pb-article-grid.has-toc { display: block; max-width: 760px; }
    .pb-toc { display: none; }
    .pb-toc-mobile { display: block; }
}
@media (max-width: 960px) {
    .pb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
    .pb-featured { grid-template-columns: 1fr; }
    .pb-featured-media { min-height: 0; aspect-ratio: 16 / 9; }
    .pb-featured-body { padding: 28px; }
}
@media (max-width: 640px) {
    .pb-wrap, .pb-narrow, .pb-cover, .pb-article-grid { padding-left: 18px; padding-right: 18px; }
    .pb-hero { padding: 36px 0 28px; }
    .pb-grid { grid-template-columns: 1fr; }
    .pb-chips { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; margin: 0 -18px 32px; padding: 2px 18px 6px; scrollbar-width: none; }
    .pb-chips::-webkit-scrollbar { display: none; }
    .pb-chip { flex: none; }
    .pb-article { padding-top: 32px; }
    .pb-article-lead { font-size: 1.125rem; }
    .pb-cover { margin-top: 28px; }
    .pb-cover img { border-radius: 16px; }
    .pb-article-grid { margin-top: 32px; }
    .pb-prose { font-size: 1.0625rem; }
    .pb-prose h2 { font-size: 1.5rem; }
    .pb-adjacent { grid-template-columns: 1fr; }
    .pb-adjacent-link.is-next { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
    .pb *, .pb *::before, .pb *::after { transition: none !important; }
}
@media print {
    .pb-progress, .pb-share, .pb-related, .pb-toc, .pb-toc-mobile, .pb-adjacent, .pb-preview-bar { display: none !important; }
    .pb-article-grid.has-toc { display: block; }
}
