/* jp-blog-theme v1 (2026-11-22). Dark-theme repair for /blog and /blog/* only.
   Additive overrides: every rule is scoped to html[data-theme=dark] plus a blog-only class,
   so light mode and all non-blog pages are unaffected. Remove the <link> to roll back. */
html[data-theme=dark] .bah__mesh{background:radial-gradient(ellipse 55% 50% at 12% 18%,rgba(165,171,255,.12),transparent 58%),radial-gradient(ellipse 45% 45% at 88% 12%,rgba(74,222,128,.10),transparent 60%)}
html[data-theme=dark] .bah__grid{background-image:linear-gradient(rgba(200,196,255,.05) 1px,transparent 1px),linear-gradient(90deg,rgba(200,196,255,.05) 1px,transparent 1px)}
html[data-theme=dark] .bah__shell{background:linear-gradient(155deg,rgba(28,31,51,.86),rgba(21,23,37,.80) 45%,rgba(24,27,45,.86));border-color:rgba(200,196,255,.16);box-shadow:inset 0 1px 0 rgba(255,255,255,.05),0 24px 60px rgba(0,0,0,.45)}
html[data-theme=dark] .bah__trust-card,
html[data-theme=dark] .bah__author,
html[data-theme=dark] .bah__metrics li,
html[data-theme=dark] .bah-share a{background:rgba(21,23,37,.88);border-color:rgba(200,196,255,.16);color:#e8eaf8;box-shadow:none}
html[data-theme=dark] .bah__trust-card span,
html[data-theme=dark] .bah__trust-card svg{color:#4ade80}
html[data-theme=dark] .bah__cta{background:linear-gradient(120deg,rgba(165,171,255,.08),rgba(74,222,128,.08)),rgba(21,23,37,.88);border-color:rgba(200,196,255,.16)}
html[data-theme=dark] .bah__cta-title{color:#e8eaf8}
html[data-theme=dark] .bah__cta-text{color:#c8cad8}
html[data-theme=dark] .bah__crumbs ol{color:rgba(200,202,216,.85)}
html[data-theme=dark] .blog-toc,
html[data-theme=dark] .blog-info{background:rgba(21,23,37,.92);border-color:rgba(200,196,255,.14)}
html[data-theme=dark] .blog-toc a{color:rgba(200,202,216,.88)}
html[data-theme=dark] .blog-toc a:hover,
html[data-theme=dark] .blog-toc a[aria-current],
html[data-theme=dark] .blog-toc a.is-active{color:#e8eaf8}
html[data-theme=dark] .blog-share__actions a,
html[data-theme=dark] .blog-share__actions button{background:#151725;border-color:rgba(200,196,255,.18);color:#e8eaf8}
html[data-theme=dark] .blog-share__actions a:hover,
html[data-theme=dark] .blog-share__actions button:hover,
html[data-theme=dark] .blog-share__actions a:focus-visible,
html[data-theme=dark] .blog-share__actions button:focus-visible{background:rgba(74,222,128,.10);border-color:rgba(74,222,128,.45)}
html[data-theme=dark] .blog-toc-drawer__panel,
html[data-theme=dark] .blog-toc-drawer__head button{background:#151725;color:#e8eaf8;border-color:rgba(200,196,255,.16)}
html[data-theme=dark] .blog-author{background:radial-gradient(circle at 0% 0%,rgba(165,171,255,.08),transparent 45%),rgba(21,23,37,.94);border-color:rgba(200,196,255,.14);box-shadow:0 16px 40px rgba(0,0,0,.35)}
html[data-theme=dark] .blog-author__name{color:#e8eaf8}
html[data-theme=dark] .blog-author__eyebrow{color:rgba(200,202,216,.85)}
html[data-theme=dark] .blog-article__final-inner{background:radial-gradient(circle at 12% 20%,rgba(165,171,255,.08),transparent 42%),radial-gradient(circle at 90% 10%,rgba(74,222,128,.08),transparent 40%),#151725;border-color:rgba(200,196,255,.14)}
html[data-theme=dark] .blog-article__final-inner p{color:#c8cad8}
html[data-theme=dark] .blog-quote{background:linear-gradient(135deg,rgba(74,222,128,.08),rgba(165,171,255,.06)),#151725;border-color:rgba(200,196,255,.14);color:#e8eaf8}
html[data-theme=dark] .blog-insight{background:linear-gradient(145deg,rgba(28,31,51,.95),rgba(21,23,37,.95));border-color:rgba(200,196,255,.14);box-shadow:none}
html[data-theme=dark] .blog-callout{background:#151725;border-color:rgba(200,196,255,.14);box-shadow:none}
html[data-theme=dark] .blog-tip{background:rgba(74,222,128,.08);border-color:rgba(74,222,128,.30);box-shadow:none}
html[data-theme=dark] .blog-warning{background:rgba(251,191,36,.08);border-color:rgba(251,191,36,.30);box-shadow:none}
html[data-theme=dark] .blog-stat{background:radial-gradient(circle at 10% 20%,rgba(74,222,128,.10),transparent 45%),#151725;border-color:rgba(200,196,255,.14)}
html[data-theme=dark] .blog-cover__panel{background:linear-gradient(160deg,rgba(28,31,51,.6),rgba(21,23,37,.3))}
html[data-theme=dark] .blog-cover__badge{background:rgba(21,23,37,.92);color:#e8eaf8}
html[data-theme=dark] .blog-article,
html[data-theme=dark] .blog-page{--color-text-accent:#4ade80}
/* Links and accents: #0b6b12 / #137f15 are under 3:1 on #0b0c14. */
html[data-theme=dark] .blog-article__content a,
html[data-theme=dark] .blog-article__html a,
html[data-theme=dark] .blog-inline-link{color:#4ade80;text-decoration-color:rgba(74,222,128,.55)}
html[data-theme=dark] .blog-article__content a:hover,
html[data-theme=dark] .blog-article__html a:hover,
html[data-theme=dark] .blog-inline-link:hover{color:#86efac}
html[data-theme=dark] .blog-article .article-card__read,
html[data-theme=dark] .blog-page .article-card__read,
html[data-theme=dark] .blog-featured__read{color:#4ade80!important}
html[data-theme=dark] .article-card__avatar,
html[data-theme=dark] .blog-featured__avatar{background:#2a2f6b;color:#fff}
html[data-theme=dark] .blog-featured__pill{color:#86efac}
html[data-theme=dark] .blog-hero__search-btn,
html[data-theme=dark] .blog-categories__pill.is-active{background:#137f15;border-color:#137f15;color:#fff}
/* Article body: tables, code, quotes, rules. */
html[data-theme=dark] .blog-article__html table,
html[data-theme=dark] .blog-article__content table{background:#151725;border-color:rgba(200,196,255,.16)}
html[data-theme=dark] .blog-article__html th,
html[data-theme=dark] .blog-article__html td,
html[data-theme=dark] .blog-article__content th,
html[data-theme=dark] .blog-article__content td{border-color:rgba(200,196,255,.16)}
html[data-theme=dark] .blog-article__html th,
html[data-theme=dark] .blog-article__content th,
html[data-theme=dark] .blog-article__html tr:first-child td,
html[data-theme=dark] .blog-article__html thead td{background:#1c1f33;color:#e8eaf8}
html[data-theme=dark] .blog-article__html code,
html[data-theme=dark] .blog-article__content code{background:#1c1f33;color:#e8eaf8;border-color:rgba(200,196,255,.16)}
html[data-theme=dark] .blog-article__html pre,
html[data-theme=dark] .blog-article__content pre{background:#10121c;color:#e8eaf8;border:1px solid rgba(200,196,255,.16)}
html[data-theme=dark] .blog-article__html pre code,
html[data-theme=dark] .blog-article__content pre code{background:transparent;border:0}
html[data-theme=dark] .blog-article__html blockquote,
html[data-theme=dark] .blog-article__content blockquote{background:#151725;color:#c8cad8;border-left-color:#4ade80}
html[data-theme=dark] .blog-article__html hr,
html[data-theme=dark] .blog-article__content hr{border-color:rgba(200,196,255,.16)}
html[data-theme=dark] .blog-article__html mark{background:rgba(74,222,128,.2);color:#e8eaf8}
/* Tables on small screens: scroll instead of overflowing the column (light and dark). */
@media (max-width:760px){.blog-article__html table{display:block;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}}
