
:root {
  --bp-red: #d5232b;
  --bp-ink: #101214;
  --bp-ink-soft: #17191c;
  --bp-paper: #f4f2ed;
  --bp-white: #ffffff;
  --bp-surface: #ffffff;
  --bp-muted: #625f59;
  --bp-faint: #85817a;
  --bp-line: #d5d0c7;
  --bp-card: #151719;
  --bp-card-text: #f7f5f0;
  --bp-card-muted: #b8b5ae;
  --bp-wide: 1500px;
  --bp-content: 820px;
  --bp-radius: 14px;
}


* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; }
body.bp-theme { margin: 0; background: var(--bp-paper); color: var(--bp-ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; transition: background-color .18s ease, color .18s ease; }
html[data-bp-theme="dark"] {
  color-scheme: dark;
  --bp-paper: #111315;
  --bp-white: #181b1f;
  --bp-surface: #191b1e;
  --bp-muted: #aaa7a0;
  --bp-faint: #92908b;
  --bp-line: #34373b;
  --bp-card: #1a1c20;
  --bp-card-text: #f5f3ee;
  --bp-card-muted: #aaa7a0;
}
html[data-bp-theme="light"] { color-scheme: light; }
html[data-bp-theme="dark"] body.bp-theme { color: #f2f0ea; }
body.bp-menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--bp-red); }
img { max-width: 100%; height: auto; }
button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
.bp-wrap { width: min(calc(100% - 40px), var(--bp-wide)); margin-inline: auto; }
.bp-wrap-narrow { width: min(calc(100% - 40px), var(--bp-content)); margin-inline: auto; }
.bp-main { min-height: 50vh; }
.bp-skip-link { position: absolute; left: 12px; top: -80px; z-index: 100000; background: #fff; color: #111; padding: 10px 14px; border-radius: 5px; }
.bp-skip-link:focus { top: 12px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Header */
.bp-site-header { position: sticky; top: 0; z-index: 9990; background: var(--bp-ink); color: #fff; border-top: 4px solid var(--bp-red); box-shadow: 0 1px 0 rgba(255,255,255,.08); }
.admin-bar .bp-site-header { top: 32px; }
.bp-header-inner { width: min(calc(100% - 40px), var(--bp-wide)); min-height: 76px; margin-inline: auto; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; }
.bp-brand { display: inline-flex; align-items: center; gap: 11px; min-width: 0; color: #fff; }
.bp-brand:hover { color: #fff; }
.bp-brand-mark { position: relative; display: block; flex: 0 0 34px; width: 34px; height: 24px; }
.bp-brand-mark i { position: absolute; display: block; height: 5px; background: currentColor; transform: skewX(-32deg); border-radius: 1px; }
.bp-brand-mark i:first-child { width: 30px; top: 4px; left: 0; }
.bp-brand-mark i:last-child { width: 22px; top: 14px; left: 7px; }
.bp-brand-name { color: #fff; font-size: 1.46rem; line-height: 1; font-weight: 950; letter-spacing: -.055em; white-space: nowrap; }
.bp-brand-dot { color: var(--bp-red); }
.bp-custom-logo { display: block; width: auto; max-width: min(260px, 42vw); max-height: 42px; object-fit: contain; }
.bp-primary-nav { min-width: 0; }
.bp-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; justify-content: flex-end; gap: clamp(15px, 1.8vw, 28px); }
.bp-menu > li { position: relative; margin: 0; padding: 0; }
.bp-menu a { display: flex; min-height: 44px; align-items: center; color: rgba(255,255,255,.9); font-size: .82rem; font-weight: 800; letter-spacing: -.01em; }
.bp-menu a:hover, .bp-menu .current-menu-item > a, .bp-menu .current-menu-ancestor > a { color: #fff; }
.bp-menu a:hover::after, .bp-menu .current-menu-item > a::after { transform: scaleX(1); }
.bp-menu > li > a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; background: var(--bp-red); transform: scaleX(0); transform-origin: left; transition: transform .18s ease; }
.bp-menu .sub-menu { display: none; position: absolute; top: 100%; left: -16px; min-width: 230px; background: var(--bp-ink-soft); border: 1px solid rgba(255,255,255,.1); padding: 10px 14px; list-style: none; margin: 0; box-shadow: 0 18px 40px rgba(0,0,0,.25); }
.bp-menu li:hover > .sub-menu, .bp-menu li:focus-within > .sub-menu { display: block; }
.bp-menu .sub-menu a { min-height: 38px; }
.bp-header-actions { display: flex; align-items: center; gap: 8px; }
.bp-header-social { display: flex; align-items: center; gap: 4px; margin-right: 2px; }
.bp-header-social a { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 999px; color: rgba(255,255,255,.82); border: 1px solid transparent; transition: color .18s ease, border-color .18s ease, background-color .18s ease; }
.bp-header-social a:hover, .bp-header-social a:focus-visible { color: #fff; border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.07); }
.bp-header-social svg { width: 18px; height: 18px; display: block; color: currentColor; }
.bp-mobile-social { display: none; }
.bp-search-toggle, .bp-theme-toggle { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; background: transparent; color: #fff; cursor: pointer; }
.bp-search-toggle:hover, .bp-theme-toggle:hover { border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.06); color: #fff; }
.bp-search-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.bp-theme-icon { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bp-theme-icon-moon { fill: currentColor; stroke: none; }
.bp-theme-icon-sun { display: none; }
html[data-bp-theme="dark"] .bp-theme-icon-moon { display: none; }
html[data-bp-theme="dark"] .bp-theme-icon-sun { display: block; }
.bp-menu-toggle { display: none; min-height: 44px; border: 0; background: none; color: #fff; cursor: pointer; align-items: center; gap: 9px; }
.bp-menu-toggle-label { font-size: .78rem; font-weight: 800; }
.bp-menu-icon { width: 25px; display: grid; gap: 5px; }
.bp-menu-icon i { display: block; height: 2px; background: currentColor; border-radius: 2px; transition: transform .18s ease, opacity .18s ease; }
.bp-menu-toggle[aria-expanded="true"] .bp-menu-icon i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.bp-menu-toggle[aria-expanded="true"] .bp-menu-icon i:nth-child(2) { opacity: 0; }
.bp-menu-toggle[aria-expanded="true"] .bp-menu-icon i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.bp-search-panel { background: var(--bp-ink-soft); border-top: 1px solid rgba(255,255,255,.08); }
.bp-search-panel-inner { width: min(calc(100% - 40px), var(--bp-wide)); margin-inline: auto; padding: 18px 0; }
.bp-search-form { display: flex; gap: 10px; width: min(100%, 800px); margin-left: auto; }
.bp-search-form label { flex: 1; }
.bp-search-form input { width: 100%; min-height: 48px; border: 1px solid rgba(255,255,255,.18); background: #fff; color: #111; border-radius: 7px; padding: 0 14px; font-size: 16px; }
.bp-search-form button { min-height: 48px; border: 0; border-radius: 7px; background: var(--bp-red); color: #fff; padding: 0 20px; font-weight: 800; cursor: pointer; }

/* Typography / common */
.bp-eyebrow, .bp-card-meta { color: var(--bp-red); font-weight: 900; text-transform: uppercase; letter-spacing: .07em; }
.bp-eyebrow { margin: 0; font-size: .72rem; }
.bp-home-main .bp-eyebrow { font-size: var(--bp-home-eyebrow-size, 12px); }
.bp-card-meta { font-size: .67rem; line-height: 1.4; }
.bp-card-meta a { color: inherit; }
.bp-text-link { font-size: .9rem; font-weight: 900; }
.bp-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--bp-ink); padding-bottom: 8px; margin-bottom: 16px; }
.bp-section-head h2 { margin: 0; font-size: clamp(1.7rem, 2.3vw, 2.4rem); letter-spacing: -.05em; }

/* Homepage */
.bp-home-feed { padding: clamp(34px, 5vw, 72px) 0 clamp(56px, 7vw, 90px); }
.bp-home-feed .bp-intro-line { min-height: 92px; margin-bottom: 28px; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.bp-home-title { margin: 7px 0 0; max-width: 790px; font-size: var(--bp-home-intro-title-size, 64px); line-height: .94; letter-spacing: -.055em; color: var(--bp-ink); }
.bp-intro-note { margin: 0 0 4px; max-width: 360px; color: var(--bp-muted); font-size: .88rem; line-height: 1.6; font-weight: 500; white-space: normal; }
.bp-home-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 42px 22px; align-items: stretch; }
.bp-home-card { min-width: 0; display: flex; flex-direction: column; }
.bp-home-card-image { display: block; aspect-ratio: 16/10; overflow: hidden; border-radius: 12px 12px 0 0; background: #dedbd4; }
.bp-home-card-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.bp-home-card:hover .bp-home-card-image img { transform: scale(1.02); }
.bp-image-placeholder { width: 100%; height: 100%; display: grid; place-items: center; background: var(--bp-ink); color: rgba(255,255,255,.78); font-weight: 900; letter-spacing: -.04em; }
.bp-home-card-body { flex: 1; min-height: 222px; display: flex; flex-direction: column; padding: 17px 18px 16px; border-radius: 0 0 12px 12px; background: var(--bp-card); color: var(--bp-card-text); }
.bp-home-card .bp-card-meta { color: #ff5b62; }
.bp-home-card h3 { margin: 7px 0 9px; color: var(--bp-card-text); font-size: var(--bp-home-card-title-size, 23px); line-height: 1.08; letter-spacing: -.033em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bp-home-card h3 {
  padding-bottom: 7px;
  border-bottom: 2px solid transparent;
  transition: border-color .18s ease;
}
.bp-home-card h3 a {
  color: var(--bp-card-text);
  text-decoration: none;
}
.bp-home-card h3:hover,
.bp-home-card h3:focus-within {
  border-bottom-color: var(--bp-red);
}
.bp-home-card h3 a:hover,
.bp-home-card h3 a:focus-visible {
  color: #fff;
}
.bp-home-card-excerpt { margin: 0; color: var(--bp-card-muted); font-size: .86rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bp-home-card-footer { margin-top: auto; padding-top: 17px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--bp-card-muted); font-size: .74rem; }
.bp-card-read { color: var(--bp-card-text); font-weight: 900; font-size: .78rem; }
.bp-card-read:hover { color: #ff5b62; }
.bp-home-all-posts { margin-top: clamp(30px, 4vw, 46px); padding-bottom: 0; display: flex; justify-content: center; }
.bp-home-all-link { display: inline-flex; align-items: center; gap: 11px; padding: 8px 0 6px; border-bottom: 2px solid var(--bp-red); color: var(--bp-ink); font-size: .84rem; font-weight: 900; letter-spacing: .015em; }
.bp-home-all-link span { color: var(--bp-red); transition: transform .2s ease; }
.bp-home-all-link:hover { color: var(--bp-red); }
.bp-home-all-link:hover span { transform: translateX(4px); }
.bp-topics-section { padding: var(--bp-topics-padding, 64px) 0; border-top: 1px solid var(--bp-line); display: grid; grid-template-columns: minmax(0,.72fr) minmax(300px,1fr); gap: clamp(42px, 8vw, 120px); align-items: start; }
.bp-topics-copy .bp-eyebrow { font-size: var(--bp-home-topics-eyebrow-size, 12px); }
.bp-topics-copy h2 { color: var(--bp-ink); margin: 5px 0 12px; font-size: var(--bp-home-topics-title-size, 64px); line-height: .98; letter-spacing: -.055em; }
.bp-topics-copy > p:last-child { color: var(--bp-muted); line-height: 1.6; font-size: var(--bp-home-topics-intro-size, 15px); }
.bp-topic-list { display: block; border-top: 1px solid var(--bp-line); }
.bp-topic-list a { min-height: 43px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--bp-line); padding: 10px 2px; color: var(--bp-ink); font-size: var(--bp-home-topics-link-size, 14px); font-weight: 850; transition: color .2s ease, padding .2s ease; }
.bp-topic-list a span:last-child { color: var(--bp-red); font-size: 1rem; transition: transform .2s ease; }
.bp-topic-list a:hover { color: var(--bp-red); padding-left: 7px; }
.bp-topic-list a:hover span:last-child { transform: translateX(4px); }

/* Lists */
.bp-list-page { padding: clamp(52px, 7vw, 100px) 0; }
.bp-page-header { margin-bottom: 42px; }
.bp-page-header h1 { max-width: 1050px; margin: 4px 0 0; font-size: clamp(2.5rem, 5vw, 5rem); line-height: .98; letter-spacing: -.055em; }
.bp-archive-description { max-width: 800px; color: var(--bp-muted); line-height: 1.65; }
.bp-archive-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 45px 22px; }
.bp-archive-image { display: block; aspect-ratio: 16/10; overflow: hidden; border-radius: 10px; background: #ddd; margin-bottom: 14px; }
.bp-archive-image img { width: 100%; height: 100%; object-fit: cover; }
.bp-archive-card h2 { margin: 7px 0 9px; font-size: 1.45rem; line-height: 1.08; letter-spacing: -.035em; }
.bp-archive-card p { color: var(--bp-muted); line-height: 1.55; }
.bp-archive-card time { color: var(--bp-muted); font-size: .75rem; }
.bp-pagination { margin-top: 55px; }
.bp-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 7px; }
.bp-pagination .page-numbers { min-width: 42px; min-height: 42px; border: 1px solid var(--bp-line); border-radius: 999px; display: grid; place-items: center; padding: 0 12px; font-weight: 750; }
.bp-pagination .current { background: var(--bp-ink); color: #fff; }

/* Single */
.bp-single-title-wrap { width: min(calc(100% - 40px), var(--bp-single-title-width, 980px)); margin-inline: auto; }
.bp-single-feature-wrap { width: min(calc(100% - 40px), var(--bp-single-feature-width, 1040px)); margin-inline: auto; }
.bp-single-head { padding: clamp(55px, 7vw, 110px) 0 34px; }
.bp-single-head h1 { margin: 9px 0 16px; font-size: clamp(2.1rem, 3.1vw, 3.35rem); line-height: 1.02; letter-spacing: -.045em; text-wrap: balance; }
.bp-single-excerpt { margin: 0; max-width: 760px; color: var(--bp-muted); font-size: clamp(1.08rem, 1.4vw, 1.28rem); line-height: 1.55; }
.bp-single-meta { margin-top: 19px; display: flex; flex-wrap: wrap; gap: 7px; color: var(--bp-muted); font-size: .82rem; font-weight: 650; }
.bp-single-feature { margin-top: 0; margin-bottom: clamp(42px, 6vw, 75px); }
.bp-single-feature img { width: 100%; height: auto; max-height: var(--bp-single-feature-height, 520px); object-fit: cover; display: block; border-radius: var(--bp-radius); cursor: zoom-in; }
@media (min-width: 1100px) { .bp-single-head h1 { font-size: var(--bp-single-title-size, 48px); } }
.bp-article-layout { position: relative; }
.bp-toc { margin: 0 0 34px; border: 1px solid var(--bp-line); border-radius: 10px; background: #fff; overflow: hidden; }
.bp-toc-toggle { width: 100%; min-height: 52px; display: flex; align-items: center; justify-content: space-between; border: 0; background: none; color: var(--bp-ink); padding: 0 16px; font-weight: 850; cursor: pointer; text-align: left; }
.bp-toc-list { margin: 0; padding: 0 18px 17px 36px; }
.bp-toc-list li { margin: 7px 0; font-size: .9rem; line-height: 1.4; }
.bp-toc-level-3 { margin-left: 18px !important; color: var(--bp-muted); }
.bp-article-content { font-size: clamp(1.04rem, 1.1vw, 1.12rem); line-height: 1.78; }
.bp-article-content > * { margin-top: 0; margin-bottom: 1.5rem; }
.bp-article-content h2 { margin-top: 3.25rem; font-size: clamp(1.6rem, 2.25vw, 2.15rem); line-height: 1.12; letter-spacing: -.035em; }
.bp-article-content h3 { margin-top: 2.4rem; font-size: clamp(1.3rem, 1.55vw, 1.65rem); line-height: 1.18; letter-spacing: -.025em; }
.bp-article-content a { text-decoration: underline; text-decoration-thickness: .08em; text-underline-offset: .17em; }
.bp-article-content figure { margin: 2.4rem 0; }
.bp-article-content figure img { width: 100%; border-radius: 10px; cursor: zoom-in; }
.bp-article-content figcaption { margin-top: 7px; color: var(--bp-muted); font-size: .78rem; line-height: 1.4; }
.bp-article-content blockquote { margin-left: 0; border-left: 4px solid var(--bp-red); padding-left: 20px; font-size: 1.13em; }
.bp-article-content .wp-block-table { overflow-x: auto; }
.bp-article-content table { width: 100%; border-collapse: collapse; }
.bp-article-content th, .bp-article-content td { border-bottom: 1px solid var(--bp-line); padding: 10px 8px; text-align: left; }
.bp-post-footer { padding: 40px 0 0; margin-top: 55px; border-top: 1px solid var(--bp-line); color: var(--bp-muted); font-size: .82rem; }
.bp-related { padding: clamp(60px, 8vw, 105px) 0; }
.bp-related-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.bp-related-image { display: block; aspect-ratio: 16/10; overflow: hidden; border-radius: 10px; margin-bottom: 12px; }
.bp-related-image img { width: 100%; height: 100%; object-fit: cover; }
.bp-related-card h3 { margin: 7px 0 0; font-size: 1.2rem; line-height: 1.1; letter-spacing: -.03em; }
.bp-comments { padding: 0 0 80px; }
.comment-list { list-style: none; padding: 0; }
.comment-list .comment { padding: 22px 0; border-bottom: 1px solid var(--bp-line); }
.comment-author img { border-radius: 999px; vertical-align: middle; margin-right: 10px; }
.comment-form input:not([type="submit"]), .comment-form textarea { width: 100%; border: 1px solid var(--bp-line); border-radius: 7px; padding: 11px 12px; background: #fff; font-size: 16px; }
.comment-form .submit { border: 0; border-radius: 7px; background: var(--bp-ink); color: #fff; min-height: 46px; padding: 0 18px; font-weight: 800; }

/* Page / error */
.bp-page-main, .bp-error-page { padding: clamp(55px, 8vw, 110px) 0; }
.bp-page-content { font-size: 1.05rem; line-height: 1.75; }
.bp-error-page h1 { font-size: clamp(2.5rem, 5vw, 5rem); line-height: .98; letter-spacing: -.055em; }
.bp-button { display: inline-flex; min-height: 46px; align-items: center; background: var(--bp-ink); color: #fff; padding: 0 18px; border-radius: 7px; font-weight: 800; }
.bp-error-actions { margin: 25px 0; }
.bp-error-page .bp-search-form { margin: 25px 0 0; }
.bp-error-page .bp-search-form input { border-color: var(--bp-line); }

/* Dark mode */
html[data-bp-theme="dark"] .bp-section-head { border-bottom-color: #e7e4dd; }
html[data-bp-theme="dark"] .bp-toc-toggle { color: #f2f0ea; }
html[data-bp-theme="dark"] .bp-home-all-link { color: #f2f0ea; }
html[data-bp-theme="dark"] .bp-home-all-link:hover { color: #ff5b62; }
html[data-bp-theme="dark"] .bp-topic-list a { color: #f4f2ed; border-color: #555a61; }
html[data-bp-theme="dark"] .bp-topic-list a:hover { color: #ff5b62; background: transparent; }
html[data-bp-theme="dark"] .bp-pagination .current,
html[data-bp-theme="dark"] .comment-form .submit,
html[data-bp-theme="dark"] .bp-button { background: #f2f0ea; color: #111214; }
html[data-bp-theme="dark"] .bp-toc,
html[data-bp-theme="dark"] .comment-form input:not([type="submit"]),
html[data-bp-theme="dark"] .comment-form textarea { background: #181b1f; color: #f2f0ea; border-color: var(--bp-line); }
html[data-bp-theme="dark"] .bp-article-content a { color: #ff6269; }
html[data-bp-theme="dark"] .bp-article-content code { background: #20242a; }
html[data-bp-theme="dark"] .bp-image-placeholder { background: #20242a; }

/* Footer */
.bp-site-footer { background: var(--bp-ink); color: rgba(255,255,255,.65); padding: 55px 0 0; }
.bp-footer-inner { width: min(calc(100% - 40px), var(--bp-wide)); margin-inline: auto; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px 40px; padding-bottom: 38px; }
.bp-footer-logo { display: inline-flex; align-items: center; gap: 11px; color: #fff; }
.bp-footer-logo:hover { color: #fff; }
.bp-footer-logo .bp-brand-name { font-size: 1.46rem; }
.bp-footer-brand p { margin: 12px 0 0; font-size: .84rem; }
.bp-footer-legal { text-align: right; }
.bp-footer-legal h2 { margin: 0 0 12px; color: rgba(255,255,255,.45); font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; }
.bp-footer-legal ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 20px; margin: 0; padding: 0; }
.bp-footer-legal a { color: #fff; font-size: .86rem; font-weight: 800; }
.bp-footer-bottom { border-top: 1px solid rgba(255,255,255,.12); width: min(calc(100% - 40px), var(--bp-wide)); margin-inline: auto; min-height: 58px; display: flex; align-items: center; }
.bp-footer-bottom p { margin: 0; color: rgba(255,255,255,.38); font-size: .75rem; }

/* Lightbox */
html.bp-lightbox-open, body.bp-lightbox-open { overflow: hidden !important; overscroll-behavior: none; }
.bp-lightbox { position: fixed; inset: 0; z-index: 100000; display: none; height: 100%; height: 100dvh; background: rgba(5,6,7,.97); color: #fff; overscroll-behavior: none; isolation: isolate; }
.bp-lightbox.is-open { display: grid; grid-template-rows: auto minmax(0,1fr) auto; }
.bp-lightbox-toolbar { position: relative; z-index: 20; min-height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 8px 14px; pointer-events: auto; }
.bp-lightbox-tools { position: relative; z-index: 21; display: flex; gap: 7px; }
.bp-lightbox button { width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; background: rgba(255,255,255,.08); color: #fff; font-size: 1.4rem; cursor: pointer; }
.bp-lightbox button:disabled { opacity: .35; }
.bp-lightbox-stage { position: relative; z-index: 1; min-height: 0; display: grid; grid-template-columns: 58px minmax(0,1fr) 58px; align-items: center; gap: 7px; padding: 0 10px; overflow: hidden; }
.bp-lightbox-media { min-width: 0; height: 100%; display: grid; place-items: center; overflow: hidden; touch-action: none; }
.bp-lightbox-media img { max-width: 100%; max-height: calc(100vh - 155px); object-fit: contain; transform-origin: center; user-select: none; -webkit-user-drag: none; transition: transform .08s linear; }
.bp-lightbox-caption { position: relative; z-index: 10; min-height: 52px; padding: 8px 15px 14px; text-align: center; color: rgba(255,255,255,.7); font-size: .8rem; }
.bp-lightbox-counter { font-size: .78rem; font-weight: 800; }

@media (max-width: 1180px) {
  .bp-header-social { gap: 2px; }
  .bp-header-social a { width: 32px; height: 32px; }
  .bp-header-social svg { width: 16px; height: 16px; }
}

@media (max-width: 1050px) {
  .bp-header-inner { gap: 14px; }
  .bp-brand-name { font-size: 1.35rem; }
  .bp-menu { gap: 13px; }
  .bp-menu a { font-size: .75rem; }
}

@media (max-width: 860px) {
  .bp-header-social { display: none; }
  .bp-mobile-social { display: flex; flex-wrap: wrap; gap: 10px; padding: 24px 0 8px; border-top: 1px solid rgba(255,255,255,.12); margin-top: 12px; }
  .bp-primary-nav-without-menu .bp-mobile-social { border-top: 0; margin-top: 0; padding-top: 0; }
  .bp-mobile-social a { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; color: rgba(255,255,255,.9); }
  .bp-mobile-social a:hover, .bp-mobile-social a:focus-visible { color: #fff; border-color: var(--bp-red); background: rgba(213,35,43,.16); }
  .bp-mobile-social svg { width: 20px; height: 20px; display: block; color: currentColor; }
  .admin-bar .bp-site-header { top: 46px; }
  .bp-header-inner { grid-template-columns: 1fr auto auto; min-height: 70px; }
  .bp-menu-toggle { display: inline-flex; order: 2; }
  .bp-search-toggle { order: 3; }
  .bp-primary-nav { position: fixed; top: 74px; left: 0; right: 0; bottom: 0; background: var(--bp-ink); overflow-y: auto; padding: 30px 20px 60px; transform: translateX(100%); visibility: hidden; transition: transform .22s ease, visibility .22s ease; }
  .admin-bar .bp-primary-nav { top: 120px; }
  .bp-primary-nav.is-open { transform: translateX(0); visibility: visible; }
  .bp-menu { display: block; }
  .bp-menu > li { border-bottom: 1px solid rgba(255,255,255,.12); }
  .bp-menu a { min-height: 58px; font-size: 1.15rem; }
  .bp-menu > li > a::after { display: none; }
  .bp-menu .sub-menu { position: static; display: block; min-width: 0; border: 0; box-shadow: none; background: transparent; padding: 0 0 10px 18px; }
  .bp-menu .sub-menu a { min-height: 45px; font-size: .9rem; color: rgba(255,255,255,.65); }
  .bp-lead-grid { grid-template-columns: 1fr; }
  .bp-current { border-left: 0; padding-left: 0; margin-top: 8px; }
  .bp-current-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
  .bp-current-card { border: 1px solid var(--bp-line); border-radius: 11px; padding: 10px; margin: 0; }
  .bp-archive-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .bp-topics-section { grid-template-columns: 1fr; }
  .bp-related-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 600px) {
  .bp-wrap, .bp-wrap-narrow, .bp-header-inner, .bp-search-panel-inner, .bp-footer-inner, .bp-footer-bottom { width: min(calc(100% - 24px), var(--bp-wide)); }
  .bp-site-header { border-top-width: 3px; }
  .bp-header-inner { min-height: 64px; gap: 8px; }
  .bp-brand-name { font-size: 1.23rem; }
  .bp-brand-mark { flex-basis: 30px; width: 30px; }
  .bp-header-inner { gap: 4px; }
  .bp-header-actions { gap: 4px; }
  .bp-menu-toggle-label { display: none; }
  .bp-menu-toggle { width: 44px; justify-content: center; padding: 0; }
  .bp-primary-nav { top: 67px; padding-inline: 12px; }
  .admin-bar .bp-primary-nav { top: 113px; }
  .bp-search-panel-inner { padding: 12px 0; }
  .bp-search-form { display: grid; grid-template-columns: 1fr; }
  .bp-search-form button { width: 100%; }
  .bp-home-lead { padding: 20px 0 44px; }
  .bp-intro-line { display: block; min-height: 0; margin-bottom: 14px; }
  .bp-intro-note { margin-top: 5px; }
  .bp-hero-card { min-height: 490px; }
  .bp-hero-card::after { inset: 12% 0 0; }
  .bp-hero-copy { padding: 18px; }
  .bp-hero-copy h1 { font-size: clamp(2rem, 9.5vw, 3.2rem); }
  .bp-hero-excerpt { display: none; }
  .bp-current-list { grid-template-columns: 1fr; }
  .bp-news-heading { align-items: flex-start; flex-direction: column; }
  .bp-home-grid, .bp-archive-grid, .bp-related-grid { grid-template-columns: 1fr; }
  .bp-topics-section { padding-block: min(var(--bp-topics-padding, 58px), 58px); }
  .bp-single-head { padding-top: 44px; }
  .bp-single-title-wrap { width: min(calc(100% - 30px), var(--bp-single-title-width, 980px)); }
  .bp-single-head h1 { font-size: var(--bp-single-title-mobile-size, 38px); line-height: 1.05; }
  .bp-single-feature { width: 100%; }
  .bp-single-feature img { border-radius: 0; }
  .bp-footer-inner { align-items: flex-start; flex-direction: column; }
  .bp-footer-legal { text-align: left; }
  .bp-footer-legal ul { justify-content: flex-start; flex-direction: column; gap: 10px; }
  .bp-custom-logo { max-height: 36px; max-width: min(230px, 58vw); }
  .bp-lightbox-stage { grid-template-columns: 1fr; padding: 0; }
  .bp-lightbox-prev, .bp-lightbox-next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; }
  .bp-lightbox-prev { left: 8px; }
  .bp-lightbox-next { right: 8px; }
  .bp-lightbox-media img { max-height: calc(100vh - 145px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Explicit contrast safeguards for the approved light/dark design. */
html[data-bp-theme="dark"] .bp-home-title,
html[data-bp-theme="dark"] .bp-topics-copy h2 {
  color: #f4f2ed;
}

/* Homepage 0.8: six newest + editorial popular picks */
.bp-intro-heading { min-width: 0; }
.bp-home-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 0 0 20px; padding-top: 4px; }
.bp-home-section-heading h2 { margin: 5px 0 0; font-size: var(--bp-home-latest-title-size, 38px); line-height: 1; letter-spacing: -.045em; color: var(--bp-ink); }
html[data-bp-theme="dark"] .bp-home-section-heading h2 { color: #f4f2ed; }

.bp-popular-section { border-top: 1px solid var(--bp-line); border-bottom: 1px solid var(--bp-line); background: var(--bp-surface); padding: clamp(48px, 6vw, 78px) 0; }
.bp-popular-heading { display: grid; grid-template-columns: 1fr minmax(240px, 360px); align-items: end; gap: 32px; margin-bottom: 28px; }
.bp-popular-heading h2 { margin: 6px 0 0; font-size: var(--bp-home-popular-title-size, 52px); line-height: .98; letter-spacing: -.052em; color: var(--bp-ink); }
.bp-popular-heading > p { margin: 0; color: var(--bp-muted); font-size: .88rem; line-height: 1.6; }
html[data-bp-theme="dark"] .bp-popular-heading h2 { color: #f4f2ed; }

.bp-popular-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; }
.bp-popular-card { min-width: 0; display: grid; grid-template-columns: minmax(105px, 38%) minmax(0,1fr); gap: 16px; padding-top: 15px; border-top: 1px solid var(--bp-line); align-items: start; }
.bp-popular-image { display: block; aspect-ratio: 4/3; border-radius: 10px; overflow: hidden; background: #dedbd4; }
.bp-popular-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.bp-popular-card:hover .bp-popular-image img { transform: scale(1.025); }
.bp-popular-copy { min-width: 0; position: relative; padding-top: 2px; }
.bp-popular-number { display: block; margin: 0 0 7px; color: var(--bp-faint); opacity: .48; font-size: 1.55rem; line-height: 1; font-weight: 950; letter-spacing: -.06em; }
.bp-popular-card h3 { margin: 6px 0 12px; color: var(--bp-ink); font-size: clamp(1.06rem, 1.25vw, 1.3rem); line-height: 1.08; letter-spacing: -.03em; }
.bp-popular-card h3 {
  padding-bottom: 7px;
  border-bottom: 2px solid transparent;
  transition: border-color .18s ease;
}
.bp-popular-card h3 a {
  color: inherit;
  text-decoration: none;
}
.bp-popular-card h3:hover,
.bp-popular-card h3:focus-within {
  border-bottom-color: var(--bp-red);
}
.bp-popular-card h3 a:hover,
.bp-popular-card h3 a:focus-visible {
  color: var(--bp-red);
}
.bp-popular-read { color: var(--bp-muted); font-size: .77rem; font-weight: 900; }
.bp-popular-read:hover { color: var(--bp-red); }
html[data-bp-theme="dark"] .bp-popular-card h3 { color: #f4f2ed; }


@media (max-width: 980px) {
  .bp-popular-grid { grid-template-columns: 1fr; gap: 22px; }
  .bp-popular-card { grid-template-columns: minmax(150px, 220px) minmax(0,1fr); }
  .bp-popular-heading { grid-template-columns: 1fr; gap: 10px; }
  .bp-popular-heading > p { max-width: 680px; }
}

@media (max-width: 600px) {
  .bp-home-feed .bp-intro-line { margin-bottom: 28px; }
  .bp-home-section-heading { margin-bottom: 16px; }
  .bp-popular-section { padding-block: 42px; }
  .bp-popular-card { grid-template-columns: 112px minmax(0,1fr); gap: 13px; }
  .bp-popular-number { font-size: 1.25rem; margin-bottom: 5px; }
  .bp-popular-card h3 { font-size: 1.05rem; }
  .bp-popular-read { font-size: .73rem; }
}

/* 0.8.3: complete archive and intentional line breaks in editable homepage copy */
.bp-intro-note,
.bp-popular-heading > p {
	white-space: normal;
}

.bp-all-posts-header {
	padding-top: clamp(42px, 6vw, 78px);
	padding-bottom: 28px;
}
.bp-all-posts-header h1 {
	margin: 7px 0 12px;
	font-size: clamp(2.3rem, 5vw, 4.5rem);
	line-height: .94;
	letter-spacing: -.055em;
	color: var(--bp-ink);
}
.bp-all-posts-header > p:last-child {
	max-width: 650px;
	margin: 0;
	color: var(--bp-muted);
}
.bp-all-posts-content {
	padding-bottom: clamp(60px, 8vw, 110px);
}
.bp-infinite-loader {
	min-height: 92px;
	display: grid;
	place-items: center;
	padding-top: 36px;
	text-align: center;
}
.bp-infinite-status {
	margin: 0;
	color: var(--bp-muted);
	font-size: .82rem;
}
.bp-infinite-loader[data-state="loading"] .bp-infinite-status::before {
	content: "";
	display: inline-block;
	width: 9px;
	height: 9px;
	margin-right: 9px;
	border: 2px solid var(--bp-line);
	border-top-color: var(--bp-red);
	border-radius: 50%;
	vertical-align: -1px;
	animation: bp-archive-spin .75s linear infinite;
}
.bp-infinite-loader[data-state="error"] .bp-infinite-status { color: var(--bp-red); }
.bp-infinite-fallback {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 12px;
	padding-bottom: 4px;
	border-bottom: 2px solid var(--bp-red);
	font-size: .82rem;
	font-weight: 900;
}
@keyframes bp-archive-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
	.bp-infinite-loader[data-state="loading"] .bp-infinite-status::before { animation: none; }
}
.bp-all-posts-grid .bp-home-card h2 {
	margin: 7px 0 9px;
	color: var(--bp-card-text);
	font-size: clamp(1.2rem, 1.35vw, 1.46rem);
	line-height: 1.08;
	letter-spacing: -.033em;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.bp-all-posts-grid .bp-home-card h2 {
	padding-bottom: 7px;
	border-bottom: 2px solid transparent;
	transition: border-color .18s ease;
}
.bp-all-posts-grid .bp-home-card h2 a {
	color: inherit;
	text-decoration: none;
}
.bp-all-posts-grid .bp-home-card h2:hover,
.bp-all-posts-grid .bp-home-card h2:focus-within {
	border-bottom-color: var(--bp-red);
}
.bp-all-posts-grid .bp-home-card h2 a:hover,
.bp-all-posts-grid .bp-home-card h2 a:focus-visible {
	color: #fff;
}
html[data-bp-theme="dark"] .bp-all-posts-header h1 {
	color: #f4f2ed;
}

/* 0.8.10: robust narrow-screen homepage intro and compact mobile header. */
@media (max-width: 600px) {
  .bp-home-feed {
    padding-top: 30px;
  }
  .bp-home-feed .bp-intro-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 18px;
    min-height: 0;
    margin-bottom: 30px;
  }
  .bp-intro-heading,
  .bp-intro-note {
    width: 100%;
    max-width: none;
    min-width: 0;
  }
  .bp-home-title {
    max-width: none;
    font-size: var(--bp-home-intro-title-mobile-size, 44px);
    line-height: .98;
    letter-spacing: -.045em;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: auto;
  }
  .bp-home-main .bp-eyebrow { font-size: var(--bp-home-eyebrow-mobile-size, 11px); }
  .bp-home-section-heading h2 { font-size: var(--bp-home-latest-title-mobile-size, 32px); }
  .bp-popular-heading h2 { font-size: var(--bp-home-popular-title-mobile-size, 38px); }
  .bp-topics-copy .bp-eyebrow { font-size: var(--bp-home-topics-eyebrow-mobile-size, 11px); }
  .bp-topics-copy h2 { font-size: var(--bp-home-topics-title-mobile-size, 40px); }
  .bp-topics-copy > p:last-child { font-size: var(--bp-home-topics-intro-mobile-size, 15px); }
  .bp-topic-list a { font-size: var(--bp-home-topics-link-mobile-size, 15px); }
  .bp-home-card h3 { font-size: var(--bp-home-card-title-mobile-size, 21px); }
  .bp-intro-note {
    margin: 0;
    font-size: .9rem;
    line-height: 1.65;
  }
}

@media (max-width: 380px) {
  .bp-header-inner {
    width: min(calc(100% - 20px), var(--bp-wide));
    min-height: 62px;
    gap: 3px;
  }
  .bp-brand {
    gap: 7px;
  }
  .bp-brand-mark {
    flex-basis: 25px;
    width: 25px;
    height: 20px;
  }
  .bp-brand-mark i {
    height: 4px;
  }
  .bp-brand-mark i:first-child {
    width: 23px;
    top: 3px;
  }
  .bp-brand-mark i:last-child {
    width: 17px;
    top: 12px;
    left: 5px;
  }
  .bp-brand-name {
    font-size: 1.02rem;
    letter-spacing: -.045em;
  }
  .bp-search-toggle,
  .bp-theme-toggle,
  .bp-menu-toggle {
    width: 38px;
    height: 38px;
    min-height: 38px;
  }
  .bp-header-actions {
    gap: 2px;
  }
  .bp-menu-icon {
    width: 22px;
  }
}


/* 0.9.0: refined article reading experience */
.bp-breadcrumbs { display: flex; flex-wrap: wrap; gap: 6px 9px; align-items: center; margin: 0 0 24px; color: var(--bp-muted); font-size: .76rem; line-height: 1.4; }
.bp-breadcrumbs a { color: var(--bp-muted); }
.bp-breadcrumbs a:hover { color: var(--bp-red); }
.bp-breadcrumbs [aria-current="page"] { min-width: 0; max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bp-single-content-wrap { width: min(calc(100% - 40px), var(--bp-single-content-width, 820px)); margin-inline: auto; }
.bp-article-layout { width: min(calc(100% - 40px), var(--bp-single-content-width, 820px)); margin-inline: auto; }
.bp-article-layout.bp-toc-ready { width: min(calc(100% - 40px), 1160px); display: grid; grid-template-columns: minmax(190px, 250px) minmax(0, var(--bp-single-content-width, 820px)); justify-content: center; gap: clamp(28px, 4vw, 58px); align-items: start; }
.bp-article-content { min-width: 0; font-size: var(--bp-single-body-size, 18px); line-height: 1.78; }
.bp-article-content > :first-child { margin-top: 0; }
.bp-article-content p, .bp-article-content li { line-height: 1.78; }
.bp-article-content h2, .bp-article-content h3 { scroll-margin-top: 110px; }
.bp-article-content h2 { margin-top: 2.35em; margin-bottom: .72em; font-size: clamp(1.65rem, 2.4vw, 2.25rem); line-height: 1.08; letter-spacing: -.035em; }
.bp-article-content h3 { margin-top: 1.9em; margin-bottom: .65em; font-size: clamp(1.3rem, 1.8vw, 1.65rem); line-height: 1.16; letter-spacing: -.025em; }
.bp-article-content figure { margin-top: 2.1em; margin-bottom: 2.1em; }
.bp-toc { position: sticky; top: 104px; margin: 0; border: 1px solid var(--bp-line); border-radius: 10px; background: var(--bp-surface); overflow: hidden; max-height: calc(100vh - 130px); overflow-y: auto; }
.admin-bar .bp-toc { top: 136px; max-height: calc(100vh - 162px); }
.bp-toc-list a { color: var(--bp-muted); }
.bp-toc-list a:hover { color: var(--bp-red); }
.bp-related { border-top: 1px solid var(--bp-line); }
.bp-related-card { min-width: 0; }
.bp-related-image { background: var(--bp-surface); }
.bp-related-image img { transition: transform .3s ease; }
.bp-related-card:hover .bp-related-image img { transform: scale(1.02); }

/* Search and 404 */
.bp-search-page-header > p:not(.bp-eyebrow) { max-width: 720px; color: var(--bp-muted); font-size: 1rem; line-height: 1.65; }
.bp-search-page-form { margin-top: 24px; }
.bp-search-page-form .bp-search-form { margin-left: 0; }
.bp-search-page-form .bp-search-form input, .bp-error-search .bp-search-form input { border-color: var(--bp-line); background: var(--bp-surface); color: inherit; }
.bp-error-page { padding: clamp(52px, 7vw, 100px) 0; }
.bp-error-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(360px, 1.2fr); gap: clamp(34px, 6vw, 90px); align-items: center; }
.bp-error-copy .bp-eyebrow { font-size: var(--bp-404-eyebrow-size, 12px); }
.bp-error-copy h1 { margin: 8px 0 18px; max-width: 720px; font-size: var(--bp-404-title-size, 72px); line-height: .94; letter-spacing: -.055em; }
.bp-error-copy > p:not(.bp-eyebrow) { max-width: 620px; color: var(--bp-muted); font-size: var(--bp-404-intro-size, 16px); line-height: 1.7; }
.bp-editorial-link { display: inline-flex; align-items: center; gap: 18px; margin-top: 14px; border-bottom: 2px solid var(--bp-red); padding: 9px 0 7px; font-size: var(--bp-404-link-size, 15px); font-weight: 900; }
.bp-error-search { margin-top: 30px; }
.bp-error-search .bp-search-form { margin-left: 0; }
.bp-error-visual { min-width: 0; }
.bp-error-visual img { display: block; width: 100%; max-height: 610px; object-fit: cover; border-radius: var(--bp-radius); }
.bp-error-fallback { aspect-ratio: 16/10; display: grid; place-items: center; align-content: center; gap: 8px; border-radius: var(--bp-radius); background: var(--bp-card); color: var(--bp-card-text); overflow: hidden; }
.bp-error-fallback strong { font-size: var(--bp-404-number-size, 128px); line-height: .8; letter-spacing: -.08em; color: var(--bp-red); }
.bp-error-fallback span { font-size: var(--bp-404-fallback-size, 17px); font-weight: 850; }
.bp-utility-topics { margin-top: clamp(45px, 7vw, 90px); border-top: 1px solid var(--bp-line); }
.bp-utility-topics a { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--bp-line); font-weight: 800; }
.bp-utility-topics a span:last-child { color: var(--bp-red); }
.bp-no-results { max-width: 900px; padding: 10px 0 60px; }
.bp-no-results h2 { font-size: clamp(1.8rem, 3vw, 2.7rem); letter-spacing: -.04em; margin-bottom: 12px; }
.bp-no-results > p { color: var(--bp-muted); line-height: 1.65; }
.bp-no-results .bp-utility-topics { width: 100%; margin-top: 35px; }

@media (max-width: 899px) {
  .bp-article-layout.bp-toc-ready { width: min(calc(100% - 40px), var(--bp-single-content-width, 820px)); display: block; }
  .bp-toc { position: static; max-height: none; margin: 0 0 32px; overflow: hidden; }
  .admin-bar .bp-toc { top: auto; max-height: none; }
  .bp-toc-list { max-height: 60vh; overflow-y: auto; }
  .bp-error-layout { grid-template-columns: 1fr; }
  .bp-error-visual { order: -1; }
  .bp-error-visual img, .bp-error-fallback { max-height: 480px; }
}

@media (max-width: 600px) {
  .bp-single-content-wrap, .bp-article-layout, .bp-article-layout.bp-toc-ready { width: min(calc(100% - 30px), var(--bp-single-content-width, 820px)); }
  .bp-article-content { font-size: var(--bp-single-body-mobile-size, 17px); line-height: 1.72; }
  .bp-article-content p, .bp-article-content li { line-height: 1.72; }
  .bp-breadcrumbs { margin-bottom: 18px; font-size: .72rem; }
  .bp-breadcrumbs [aria-current="page"] { display: none; }
  .bp-error-page { padding-top: 34px; }
  .bp-error-layout { gap: 30px; }
  .bp-error-copy .bp-eyebrow { font-size: var(--bp-404-eyebrow-mobile-size, 11px); }
  .bp-error-copy h1 { font-size: var(--bp-404-title-mobile-size, 48px); }
  .bp-error-copy > p:not(.bp-eyebrow) { font-size: var(--bp-404-intro-mobile-size, 16px); }
  .bp-error-copy .bp-editorial-link { font-size: var(--bp-404-link-mobile-size, 15px); }
  .bp-error-fallback strong { font-size: var(--bp-404-number-mobile-size, 88px); }
  .bp-error-fallback span { font-size: var(--bp-404-fallback-mobile-size, 16px); }
  .bp-error-fallback { aspect-ratio: 4/3; }
  .bp-utility-topics { margin-top: 48px; }
}

/* 0.99.0 release-candidate hardening: accessibility, content resilience and plugin compatibility. */
:where(a, button, input, textarea, select, summary):focus-visible {
  outline: 3px solid var(--bp-red);
  outline-offset: 3px;
}
.bp-site-header :where(a, button):focus-visible,
.bp-lightbox :where(button):focus-visible {
  outline-color: #ff5960;
}
.bp-article-content,
.bp-article-content p,
.bp-article-content li,
.bp-article-content figcaption,
.bp-comments-inner {
  overflow-wrap: break-word;
}
.bp-article-content iframe,
.bp-article-content video,
.bp-article-content embed,
.bp-article-content object {
  max-width: 100%;
}
.bp-article-content table,
.tablepress {
  width: 100%;
  max-width: 100%;
}
.bp-article-content table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.wp-block-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.wp-block-table table { min-width: 100%; }

/* Contact Form 7 should inherit the theme without overflowing narrow articles. */
.wpcf7 form { max-width: 100%; }
.wpcf7 input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.wpcf7 select,
.wpcf7 textarea {
  width: 100%;
  max-width: 100%;
}
.wpcf7 textarea { min-height: 140px; resize: vertical; }

/* TablePress and legacy tables remain usable on phones. */
.dataTables_wrapper,
.tablepress-scroll-wrapper { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* WP-PageNavi fallback styling when that plugin is used on an archive. */
.wp-pagenavi { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; margin: 34px 0; }
.wp-pagenavi a,
.wp-pagenavi span { min-width: 40px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--bp-line); border-radius: 7px; padding: 6px 10px; }
.wp-pagenavi .current { border-color: var(--bp-red); color: var(--bp-red); font-weight: 900; }

@media (pointer: coarse) {
  .bp-header-social a { min-width: 44px; min-height: 44px; }
  .bp-topic-list a,
  .bp-editorial-link,
  .bp-home-all-link,
  .bp-popular-read,
  .bp-card-read { min-height: 44px; }
}

@media (max-width: 600px) {
  .bp-article-content input,
  .bp-article-content select,
  .bp-article-content textarea,
  .wpcf7 input,
  .wpcf7 select,
  .wpcf7 textarea { font-size: 16px; }
  .bp-article-content pre { max-width: 100%; overflow-x: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}


/* 0.99.1: the archive fallback link must never remain visible after the final page. */
.bp-infinite-loader[data-state="done"] .bp-infinite-fallback,
.bp-infinite-fallback[aria-hidden="true"] {
  display: none !important;
}
