/* Blog post pages (blog/<slug>.php) only. Loaded by includes/header-2.php.
   Same family as the blog index (css/blog-index.css), methodology and the
   homepage: deep navy, rose accent, condensed display type from local fonts,
   no web fonts.
   A post reads like a field report: a plain header (title, then the facts of
   the piece), one comfortable reading column, and a contents rail beside it
   on wide screens when the post is long enough to need one. The shared
   blog/includes partials (contents, author, related, older/newer) are styled
   here too.
   Every post wrapper carries .bp (added by scripts/blog-posts/transform.py);
   the header is .bp-head, the meta line .bp-meta, the article body .bp-body.
   Everything is scoped under .bp so the site theme can't bleed in and nothing
   leaks into nav or footer. Rules that only one post needs stay in that
   post's own <style> block. */

html, body { background: #0a1628; }
body:has(.bp) { background-image: none; overflow-x: clip; overflow-y: visible; }
@media (prefers-reduced-motion: no-preference) {
  html:has(.bp) { scroll-behavior: smooth; }
}

.bp {
  --ink:#0a1628; --deep:#0d1b30; --panel:#111f37; --lift:#132a4d; --line:#25406a; --line-soft:#1b3152;
  --text:#e9eef4; --copy:#c3cedb; --soft:#b4c2d3; --muted:#93a4ba; --quiet:#8296b0;
  --rose:#ba5663; --rose-hover:#a84b58; --rose-hi:#d77382;
  --display:"Bahnschrift","DIN Alternate","DIN Next","Roboto Condensed","Nimbus Sans Narrow","Liberation Sans Narrow","Arial Narrow",system-ui,sans-serif;
  --sans:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",sans-serif;
  --mono:ui-monospace,"SFMono-Regular","SF Mono","Cascadia Mono","JetBrains Mono","DejaVu Sans Mono","Liberation Mono",Menlo,Consolas,monospace;
  --gutter:clamp(16px,5vw,48px);
  --nav:var(--nav-height,70px);
  --measure:46rem;            /* ~70 characters of 18px body copy */
  --rail:15rem;
  --rail-gap:clamp(40px,5vw,80px);

  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin: 0 auto;
  padding: calc(var(--nav) + 20px) var(--gutter) clamp(56px,8vw,112px);
  background: var(--ink);
  color: var(--copy);
  font: 400 1.125rem/1.7 var(--sans);
  letter-spacing: normal;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
.bp *, .bp *::before, .bp *::after { box-sizing: border-box; }
/* The theme sets its own font, tracking and uppercase on many elements. */
.bp :where(h1,h2,h3,h4,h5,h6,p,a,li,dt,dd,span,strong,em,td,th,figcaption,blockquote,label,button,summary) {
  font-family: inherit; letter-spacing: normal; text-transform: none;
}
.bp :where(h1,h2,h3,h4,h5,h6) { color: var(--text); margin: 0; text-wrap: balance; }
.bp :where(p) { margin: 0; }
.bp [hidden] { display: none !important; }
.bp :is(a, button, summary):focus-visible { outline: 3px solid var(--rose-hi); outline-offset: 3px; border-radius: 3px; }
.bp :is(h2, h3, [id]) { scroll-margin-top: calc(var(--nav) + 20px); }

/* ── Breadcrumbs ── */
.bp .blog-breadcrumbs {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px;
  margin: 0 0 clamp(20px,3vw,32px); padding: 0;
  font-size: .9375rem; line-height: 1.4; color: var(--muted);
}
.bp .blog-breadcrumbs a { color: var(--soft); text-decoration: none; }
.bp .blog-breadcrumbs a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.bp .blog-breadcrumbs .bc-sep { color: var(--quiet); }
.bp .blog-breadcrumbs .bc-current { color: var(--rose-hi); font-weight: 600; }
/* The crumbs already lead back to the blog; the old back link is redundant. */
.bp .blog-back-link { display: none; }
/* Posts without breadcrumbs keep it, as a plain text link. */
.bp:not(:has(.blog-breadcrumbs)) .blog-back-link {
  display: inline-block; margin: 0 0 24px; padding: 0; color: var(--soft); font-size: .9375rem;
  text-decoration: underline; text-underline-offset: 3px;
}
.bp .blog-back-link i { display: none; }

/* ── Header ── */
.bp .bp-head { margin: 0 0 clamp(28px,4vw,44px); padding: 0; border: 0; text-align: left; background: none; }
.bp .bp-head :is(.blog-category-tag, .blog-category-badge) {
  display: inline-block; margin: 0 0 14px; padding: 0; background: none; border: 0; border-radius: 0;
  color: var(--rose-hi); font: 600 1rem/1.3 var(--sans);
}
.bp .bp-head h1 {
  max-width: 24ch;
  margin: 0;
  font: 600 clamp(2.25rem, 1.6rem + 2.6vw, 3.75rem)/1.02 var(--display);
  letter-spacing: -.012em;
  color: var(--text);
}
.bp .bp-meta {
  max-width: var(--measure);
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 28px;
  margin: 22px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line);
  color: var(--muted); font-size: .9375rem; line-height: 1.45;
}
.bp .bp-meta > * { display: inline; margin: 0; padding: 0; background: none; border: 0; color: inherit; font-size: inherit; }
.bp .bp-meta > :first-child { color: var(--soft); }
.bp .bp-meta i, .bp .bp-meta .meta-divider, .bp .bp-meta .blog-meta-sep { display: none; }
.bp .bp-meta a { color: var(--soft); }

/* Lede/summary panel some posts open with */
.bp .blog-hero-visual {
  margin: 0 0 32px; padding: 4px 0 4px 20px; text-align: left;
  background: none; border: 0; border-left: 3px solid var(--rose); border-radius: 0; overflow: visible;
}
.bp .blog-hero-visual::before, .bp .blog-hero-visual::after { content: none; }
.bp .blog-hero-visual :is(.hero-icon, > i) { display: none; }
.bp .blog-hero-visual .hero-title i { display: none !important; }
.bp .blog-hero-visual .hero-label {
  display: block; margin: 0 0 6px; padding: 0; background: none; border: 0; border-radius: 0;
  color: var(--rose-hi); font: 600 .9375rem/1.4 var(--sans);
}
.bp .blog-hero-visual :is(.hero-title, h2, h3, p) {
  margin: 0; color: var(--text); font: 600 clamp(1.25rem, 1.05rem + .8vw, 1.5rem)/1.3 var(--display); text-align: left;
}

/* Hero image: the post's share card, framed like a figure */
.bp :is(.blog-hero-image, .blog-hero-image-wrap) {
  max-width: var(--measure); margin: 0 0 clamp(32px,4vw,48px); padding: 0;
  background: none; border: 0; box-shadow: none;
}
.bp :is(.blog-hero-image, .blog-hero-image-wrap) img {
  display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line-soft); margin: 0;
}

/* ── FastNetMon advisory header ── */
.bp .bp-advisory { margin-top: 28px; max-width: var(--measure); }
.bp .bp-advisory .blog-hero-visual { margin: 0 0 22px; }
.bp .bp-advisory .blog-hero-visual .hero-label { display: none; }  /* repeats the CVSS row below */
.bp .cve-facts { margin: 28px 0 32px; padding: 0; background: none; border: 0; border-radius: 0; }
.bp .bp-advisory .cve-facts { margin: 0; }
.bp .cve-facts dl {
  display: grid; grid-template-columns: 9.5rem minmax(0,1fr); gap: 0; margin: 0;
  border-top: 2px solid var(--rose); border-bottom: 1px solid var(--line);
}
.bp .cve-facts :is(dt, dd) { margin: 0; padding: 11px 0; border-bottom: 1px solid var(--line-soft); line-height: 1.45; }
.bp .cve-facts dt { color: var(--muted); font: 600 .9375rem/1.45 var(--sans); padding-right: 16px; }
.bp .cve-facts dd { min-width: 0; overflow-wrap: anywhere; color: var(--text); font: 400 1rem/1.45 var(--sans); }
.bp .cve-facts :is(dt, dd):nth-last-child(-n+2) { border-bottom: 0; }
.bp .cve-facts dd:first-of-type { font: 600 1.5rem/1.2 var(--display); color: var(--text); font-variant-numeric: tabular-nums; }
.bp .cve-facts dd code { font-size: .875em; }
.bp .cve-facts time { white-space: nowrap; }
.bp :is(.sev-critical, .sev-high, .sev-medium, .sev-low) { font-weight: 700; }
.bp .sev-critical { color: #f08a8a; }
.bp .sev-high { color: #f2a36b; }
.bp .sev-medium { color: #e8c468; }
.bp .sev-low { color: var(--soft); }

/* ── Reading column + contents rail ── */
.bp .bp-body { display: block; max-width: var(--measure); margin: 0; padding: 0; background: none; border: 0; }
.bp .bp-body > .blog-content, .bp .bp-body .blog-content { max-width: none; margin: 0; padding: 0; background: none; }

/* Wide screens: the post becomes two columns from the top, copy on the left,
   the contents rail on the right. The article box steps aside (display:
   contents) so the contents list, which the partial prints inside the
   article, can sit in the rail and stay in view while reading. */
@media (min-width: 1180px) {
  .bp.bp--rail {
    max-width: calc(var(--measure) + var(--rail-gap) + var(--rail) + 2 * var(--gutter));
    display: grid; align-items: start;
    grid-template-columns: minmax(0, var(--measure)) var(--rail);
    column-gap: var(--rail-gap); row-gap: 0;
  }
  .bp.bp--rail > *, .bp.bp--rail > .bp-body > * { grid-column: 1; min-width: 0; }
  .bp.bp--rail > .bp-body { display: contents; }
  .bp.bp--rail > .bp-body > .toc-container {
    grid-column: 2; grid-row: 1 / span 900; align-self: start;
    position: sticky; top: calc(var(--nav) + 24px);
    max-height: calc(100vh - var(--nav) - 48px); overflow-y: auto; overscroll-behavior: contain;
    margin: 0; padding: 6px 0 0; background: none; border: 0; border-radius: 0;
  }
  .bp.bp--rail .toc-container .toc-title { pointer-events: none; cursor: default; }
  .bp.bp--rail .toc-container .toc-title i { display: none; }
  .bp.bp--rail .toc-container .toc-list.collapsed { display: block; }
}

/* Contents (blog/includes/toc.php) */
.bp .toc-container { margin: 0 0 36px; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--deep); }
.bp .toc-title {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%;
  margin: 0; padding: 14px 18px; background: none; border: 0; cursor: pointer; text-align: left;
  color: var(--text); font: 600 1.0625rem/1.3 var(--display);
}
.bp .toc-title i { color: var(--muted); font-size: .8rem; transition: transform .2s ease; }
.bp .toc-title[aria-expanded="false"] i { transform: rotate(-90deg); }
.bp .toc-list { list-style: none; margin: 0; padding: 0 0 12px; border-top: 1px solid var(--line-soft); }
.bp .toc-list.collapsed { display: none; }
.bp .toc-list li { margin: 0; padding: 0; }
.bp .toc-list li::before, .bp .toc-list li::marker { content: none; }
.bp .toc-list a {
  display: block; padding: 7px 18px; color: var(--muted); text-decoration: none;
  font-size: .9375rem; line-height: 1.4; border-left: 2px solid transparent;
}
.bp .toc-list a:hover { color: var(--text); }
.bp .toc-list a.active { color: var(--text); border-left-color: var(--rose); }
@media (min-width: 1180px) {
  .bp.bp--rail .toc-title { padding: 0 0 12px; font-size: 1rem; color: var(--muted); font-family: var(--sans); }
  .bp.bp--rail .toc-list { padding: 0; border-top: 0; border-left: 1px solid var(--line); }
  .bp.bp--rail .toc-list a { padding: 6px 0 6px 16px; margin-left: -1px; font-size: .875rem; }
}

/* ── Article copy ── */
.bp .bp-body :where(p) { margin: 0 0 1.15em; color: var(--copy); font-size: 1.125rem; line-height: 1.7; }
.bp .bp-body :where(h2) {
  margin: 1.9em 0 .55em; color: var(--text);
  font: 600 clamp(1.625rem, 1.35rem + 1vw, 2.125rem)/1.1 var(--display); letter-spacing: -.005em;
}
.bp .bp-body :where(h3) { margin: 1.8em 0 .5em; color: var(--text); font: 600 clamp(1.25rem, 1.15rem + .4vw, 1.4375rem)/1.2 var(--display); }
.bp .bp-body :where(h4) { margin: 1.6em 0 .4em; color: var(--text); font: 600 1.0625rem/1.35 var(--sans); }
.bp .bp-body :where(h5, h6) { margin: 1.4em 0 .4em; color: var(--soft); font: 600 1rem/1.4 var(--sans); }
.bp .bp-body :where(h2, h3, h4) i { color: var(--rose-hi); font-size: .8em; margin-right: .35em; }
.bp .bp-body :where(strong, b) { display: inline; color: var(--text); font-weight: 600; }
.bp .bp-body :where(em, i:not([class])) { color: inherit; }
.bp .bp-body :where(a) {
  color: var(--rose-hi); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
  border-bottom: 0;
}
.bp .bp-body :where(a):hover { color: #eaa3ae; }
.bp .bp-body :where(ul, ol) { margin: 0 0 1.3em; padding-left: 1.35em; color: var(--copy); font-size: 1.125rem; line-height: 1.65; }
.bp .bp-body :where(li) { margin: 0 0 .5em; padding-left: .2em; }
.bp .bp-body :where(li > ul, li > ol) { margin: .5em 0 0; font-size: 1em; }
.bp .bp-body :where(ul > li)::marker { color: var(--rose); }
.bp .bp-body :where(ol > li)::marker { color: var(--muted); font-variant-numeric: tabular-nums; font-weight: 600; }
.bp .bp-body :where(hr), .bp .blog-divider {
  display: block; width: 100%; height: 0; margin: 2.25em 0; border: 0; border-top: 1px solid var(--line-soft); background: none;
}
.bp .bp-body :is(hr, .blog-divider) + :is(h2, h3) { margin-top: 0; }
.bp .bp-body :where(img) { max-width: 100%; height: auto; }
.bp .bp-body :where(figure) { margin: 2em 0; }
.bp .bp-body :where(figcaption), .bp :is(.blog-image-caption, .blog-img-caption, .screenshot-caption) {
  margin: 10px 0 0; padding: 0; background: none; border: 0; text-align: left;
  color: var(--muted); font: italic 400 .9375rem/1.5 var(--sans);
}
.bp :is(.blog-image-caption, .blog-img-caption) i { display: none; }
.bp :is(.blog-image-wrap, .blog-img-card) {
  margin: 2em 0; padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none;
}
.bp :is(.blog-image-wrap, .blog-img-card) img, .bp .bp-body p > img {
  display: block; width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--line-soft);
}
.bp .bp-body :where(blockquote) {
  margin: 1.8em 0; padding: 2px 0 2px 22px; border-left: 3px solid var(--rose); background: none;
  color: var(--text); font-size: 1.1875rem; line-height: 1.6;
}
.bp .bp-body :where(blockquote) p { color: inherit; font-size: inherit; }
.bp .bp-body :where(blockquote) p:last-child { margin-bottom: 0; }
.bp .bp-body :where(blockquote) :where(cite, footer) { display: block; margin-top: 8px; color: var(--muted); font: normal .9375rem/1.4 var(--sans); }

/* Code: real commands and source from the posts, set plainly */
.bp :where(code, kbd, samp) {
  font-family: var(--mono); font-size: .875em; color: var(--text);
  background: rgba(37,64,106,.45); border: 0; border-radius: 4px; padding: .1em .35em;
  overflow-wrap: anywhere; word-break: normal; white-space: normal;
}
.bp .bp-body :where(pre), .bp :is(.code-block, .code-block-mock) {
  display: block; max-width: 100%; margin: 1.5em 0 1.8em; padding: 16px 20px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  background: #081322; border: 1px solid var(--line-soft); border-radius: 8px; box-shadow: none;
  color: #d8e0ea; font: 400 .875rem/1.65 var(--mono); white-space: pre; tab-size: 4;
  text-align: left;
}
.bp :is(.code-block, .code-block-mock)::before, .bp :is(.code-block, .code-block-mock)::after { content: none; }
.bp :is(.code-block, .code-block-mock) pre { margin: 0; padding: 0; border: 0; background: none; }
.bp .bp-body :where(pre) code, .bp :is(.code-block, .code-block-mock) code {
  display: block; padding: 0; background: none; border: 0; color: inherit; font-size: inherit;
  white-space: inherit; overflow-wrap: normal;
}
.bp .bp-body :where(pre):focus-visible { outline: 3px solid var(--rose-hi); outline-offset: 2px; }
.bp .bp-code { margin: 1.5em 0 1.8em; }
.bp .bp-code figcaption { margin: 0 0 6px; font: 400 .875rem/1.4 var(--mono); font-style: normal; color: var(--muted); }
.bp .bp-code pre { margin: 0 !important; }
/* Syntax colouring some posts mark up by hand */
.bp :is(pre, .code-block, .code-block-mock) :is(.comment, .cm) { color: #7f93ad; font-style: italic; }
.bp :is(pre, .code-block, .code-block-mock) :is(.keyword, .kw) { color: var(--rose-hi); }
.bp :is(pre, .code-block, .code-block-mock) :is(.string, .str) { color: #a9c8e8; }

/* Tables: scroll inside themselves on phones */
.bp :is(.comparison-table-wrapper, .comparison-table-wrap, .table-wrapper, .bp-table) {
  max-width: 100%; margin: 1.8em 0 2em; padding: 0; overflow-x: auto; -webkit-overflow-scrolling: touch;
  background: none; border: 1px solid var(--line); border-radius: 10px; box-shadow: none;
}
.bp .bp-body table {
  width: 100%; margin: 0; border-collapse: collapse; border-spacing: 0; background: none;
  font-size: .9375rem; line-height: 1.5; color: var(--copy);
}
.bp .bp-body :where(th, td) {
  padding: 12px 16px; text-align: left; vertical-align: top;
  border: 0; border-bottom: 1px solid var(--line-soft); background: none;
}
.bp .bp-body :where(thead th, thead td) {
  background: var(--deep); color: var(--text); border-bottom: 1px solid var(--line);
  font: 600 1rem/1.25 var(--display); white-space: nowrap;
}
.bp .bp-body :where(tbody tr:last-child) > * { border-bottom: 0; }
.bp .bp-body :where(tbody td:first-child, tbody th) { color: var(--text); font-weight: 600; }
.bp .bp-body :where(table) :where(td, th) :where(p, ul, ol) { font-size: inherit; margin-bottom: .4em; }
.bp .bp-body tbody tr:hover { background: rgba(37,64,106,.18); }
.bp .bp-body table i.fa-check, .bp .bp-body table i.fa-check-circle { color: #8fd3a8; }
.bp .bp-body table i.fa-times, .bp .bp-body table i.fa-times-circle, .bp .bp-body table i.fa-xmark { color: #f08a8a; }
.bp .badge-win { color: #8fd3a8; font-weight: 600; }
.bp .badge-lose { color: #f2a3a3; font-weight: 600; }
@media (max-width: 700px) {
  .bp .bp-body table { font-size: .875rem; min-width: 34rem; }
  .bp .bp-body table:has(thead th:nth-child(2):last-child) { min-width: 0; }
  .bp .bp-body :where(th, td) { padding: 10px 12px; }
}

/* Callouts: one quiet treatment, a colour edge for the urgent ones */
.bp :is(.blog-callout, .callout-box, .blog-callout-box, .blog-highlight-box, .callout-tip, .warn-box, .good-box, .blog-warn, .disclosure-note) {
  margin: 1.8em 0; padding: 18px 22px; background: var(--panel);
  border: 0; border-left: 3px solid var(--rose); border-radius: 0 8px 8px 0; box-shadow: none; text-align: left;
}
.bp :is(.blog-callout, .callout-box, .blog-callout-box, .blog-highlight-box, .callout-tip, .warn-box, .good-box, .blog-warn, .disclosure-note) :is(p, li) {
  color: var(--copy); font-size: 1.0625rem; line-height: 1.65;
}
.bp :is(.blog-callout, .callout-box, .blog-callout-box, .blog-highlight-box, .callout-tip, .warn-box, .good-box, .blog-warn, .disclosure-note) > :last-child { margin-bottom: 0; }
.bp :is(.blog-callout, .callout-box, .blog-callout-box, .blog-highlight-box, .callout-tip, .warn-box, .good-box, .blog-warn, .disclosure-note) :is(h3, h4) { margin-top: 0; }
.bp :is(.blog-callout-title, .callout-title) {
  display: block; margin: 0 0 8px; color: var(--text); font: 600 1.0625rem/1.35 var(--display);
}
.bp :is(.blog-callout-title, .callout-title) i { color: var(--rose-hi); margin-right: .4em; }
.bp :is(.blog-callout, .callout-box).info { border-left-color: #6f9fd6; }
.bp :is(.blog-callout, .callout-box, .blog-callout-box):is(.urgent, .warning, .warn), .bp :is(.warn-box, .blog-warn) { border-left-color: #e0a95a; }
.bp :is(.blog-callout, .callout-box):is(.critical, .danger) { border-left-color: #e0646f; }
.bp :is(.blog-callout, .callout-box):is(.success, .tip), .bp .good-box { border-left-color: #6fbf8e; }
.bp :is(.blog-callout, .callout-box, .blog-callout-box).urgent strong { color: #f1c27d; }
.bp :is(.blog-callout, .callout-box).critical strong { color: #f3a0a6; }

/* Check and warning lists */
.bp :is(.blog-checklist, .blog-warning-list) { list-style: none; padding-left: 0; }
.bp :is(.blog-checklist, .blog-warning-list) > li {
  position: relative; margin: 0 0 .7em; padding: 0 0 0 1.75em; background: none; border: 0;
}
.bp :is(.blog-checklist, .blog-warning-list) > li::before {
  position: absolute; left: 0; top: .05em; font-weight: 700;
}
.bp .blog-checklist > li::before { content: "\2713"; color: #8fd3a8; }
.bp .blog-warning-list > li::before { content: "!"; color: #e0a95a; left: .3em; }
.bp :is(.blog-checklist, .blog-warning-list) > li > i:first-child { display: none; }

/* FAQ blocks */
.bp .faq-accordion { margin: 1.5em 0 2em; padding: 0; background: none; border: 0; }
.bp .faq-item { margin: 0; padding: 18px 0; background: none; border: 0; border-top: 1px solid var(--line-soft); border-radius: 0; }
.bp .faq-item:last-child { border-bottom: 1px solid var(--line-soft); }
.bp .faq-item :is(h3, h4, .faq-question) { margin: 0 0 8px; color: var(--text); font: 600 1.1875rem/1.3 var(--display); cursor: auto; }
.bp .faq-item :is(p, .faq-answer) { margin: 0; color: var(--copy); font-size: 1.0625rem; max-height: none; opacity: 1; display: block; }
.bp .faq-item :is(.faq-question) i { display: none; }

/* Sources */
.bp .sources-section { margin: 2.5em 0 0; padding: 20px 0 0; background: none; border: 0; border-top: 1px solid var(--line); }
.bp .sources-section :is(h2, h3) { margin: 0 0 12px; font: 600 1.25rem/1.2 var(--display); }
.bp .sources-section :is(li, p) { font-size: .9375rem; line-height: 1.55; color: var(--muted); }
.bp .sources-section a { overflow-wrap: anywhere; }

/* PDF download (FastNetMon series) */
.bp .pdf-download-box {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px;
  margin: 2.5em 0 2em; padding: 22px 24px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
}
.bp .pdf-download-box .pdf-icon { display: none; }
.bp .pdf-download-box .pdf-text { flex: 1 1 22rem; min-width: 0; }
.bp .pdf-download-box .pdf-text h3 { margin: 0 0 6px; font: 600 1.25rem/1.2 var(--display); }
.bp .pdf-download-box .pdf-text p { margin: 0; color: var(--muted); font-size: 1rem; }

/* ── Buttons and the closing call to action ── */
.bp :is(.btn-cta-primary, .btn-cta-secondary, .pdf-btn) {
  display: inline-flex; align-items: center; justify-content: center; gap: 0;
  min-height: 50px; padding: 0 24px; border-radius: 8px; cursor: pointer;
  font: 600 1rem/1.2 var(--sans); text-decoration: none; text-align: center; letter-spacing: normal; text-transform: none;
  transition: background-color .15s, border-color .15s, color .15s; transform: none; box-shadow: none;
}
.bp :is(.btn-cta-primary, .pdf-btn) { background: var(--rose); color: #fff !important; border: 1px solid var(--rose); }
.bp :is(.btn-cta-primary, .pdf-btn):hover { background: var(--rose-hover); border-color: var(--rose-hover); color: #fff; transform: none; box-shadow: none; }
.bp .btn-cta-secondary { background: transparent; color: var(--text) !important; border: 1px solid #3b5f94; }
.bp .btn-cta-secondary:hover { background: #17294a; border-color: #4f76ae; color: #fff; transform: none; }
.bp :is(.btn-cta-primary, .btn-cta-secondary, .pdf-btn) i { display: none; }

.bp :is(.blog-cta-box, .cta-box) {
  margin: 3em 0 0; padding: clamp(24px,3.5vw,36px) clamp(20px,3.5vw,36px);
  background: var(--panel); border: 0; border-top: 2px solid var(--rose); border-radius: 0 0 10px 10px;
  box-shadow: none; text-align: left;
}
.bp :is(.blog-cta-box, .cta-box)::before, .bp :is(.blog-cta-box, .cta-box)::after { content: none; }
.bp :is(.blog-cta-box, .cta-box) :is(h2, h3) {
  margin: 0 0 10px; color: var(--text); font: 600 clamp(1.5rem, 1.3rem + .9vw, 2rem)/1.1 var(--display); text-align: left;
}
.bp :is(.blog-cta-box, .cta-box) p { max-width: 58ch; margin: 0 0 22px; color: var(--soft); font-size: 1.0625rem; text-align: left; }
.bp :is(.blog-cta-box, .cta-box) :is(.blog-cta-buttons, .cta-buttons) { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 12px; margin: 0; }
.bp :is(.blog-cta-box, .cta-box) > a + a { margin-left: 12px; }
.bp :is(.blog-cta-box, .cta-box) .btn { margin: 0; }
@media (max-width: 480px) {
  .bp :is(.blog-cta-box, .cta-box) :is(.btn-cta-primary, .btn-cta-secondary) { width: 100%; }
  .bp :is(.blog-cta-box, .cta-box) > a + a { margin: 12px 0 0; }
}

/* ── Ads (blog/includes/ad-placement.php and the mid-article slot from reading-progress.php) ── */
.bp .blog-ad-wrapper {
  display: block; width: 100%; max-width: var(--measure); margin: 2.25em 0; padding: 12px 0 0;
  background: none; border: 0; border-top: 1px solid var(--line-soft); border-radius: 0; text-align: center; clear: both;
}
.bp .blog-ad-label { margin: 0 0 8px; color: var(--quiet); font: 400 .8125rem/1 var(--sans); letter-spacing: normal; text-transform: none; text-align: left; }
.bp .blog-ad-container { min-height: 0; }
.bp .blog-ad-wrapper:has(ins[data-ad-status="unfilled"]) { display: none; }

/* ── After the article: share, author, related, older/newer ── */
.bp .blog-engagement { margin: 3em 0 0; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line-soft); }
.bp .blog-engagement-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.bp .blog-view-count { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .9375rem; }
.bp .blog-view-count i { color: var(--quiet); }
.bp .blog-share-buttons { display: flex; align-items: center; gap: 8px; }
.bp .blog-share-label { color: var(--muted); font-size: .9375rem; margin-right: 4px; }
.bp .blog-share-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0; border-radius: 8px; cursor: pointer;
  background: transparent; border: 1px solid var(--line); color: var(--soft); text-decoration: none; font-size: 1rem;
}
.bp .blog-share-btn:hover { background: #17294a; border-color: #4f76ae; color: #fff; }
.bp .share-tooltip {
  position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  padding: 4px 8px; border-radius: 4px; background: var(--lift); color: var(--text); font-size: .8125rem; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .15s;
}
.bp .blog-share-btn:is(:hover, :focus-visible) .share-tooltip { opacity: 1; }
.copy-toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 12px); z-index: 10000;
  padding: 10px 18px; border-radius: 8px; background: #132a4d; color: #e9eef4; border: 1px solid #25406a;
  font: 600 .9375rem/1.3 system-ui, sans-serif; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.copy-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Author (blog/includes/author-bio.php) */
.bp .author-bio {
  display: grid; grid-template-columns: 56px minmax(0,1fr); gap: 4px 18px; align-items: start;
  margin: 2.5em 0 0; padding: 0; background: none; border: 0; border-radius: 0; overflow: visible;
}
.bp .author-bio::before { content: none; }
.bp .author-bio-avatar {
  grid-row: 1 / span 3; width: 56px; height: 56px; margin: 0; padding: 7px;
  object-fit: contain; border-radius: 10px; background: var(--panel); border: 1px solid var(--line-soft);
}
.bp .author-bio-header, .bp .author-bio-heading { display: contents; }
.bp .author-bio-name { margin: 0; color: var(--text); font: 600 1.25rem/1.2 var(--display); }
.bp .author-bio-role { margin: 0 0 6px; color: var(--muted); font-size: .9375rem; line-height: 1.4; }
.bp .author-bio-text { margin: 0; color: var(--copy); font-size: 1rem; line-height: 1.6; }
.bp .author-bio-footer { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-top: 12px; padding: 0; border: 0; }
.bp .author-bio-tagline { margin: 0; color: var(--muted); font-size: .9375rem; font-style: normal; }
.bp .author-bio-links { display: flex; gap: 8px; }
.bp .author-bio-links a {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 8px;
  border: 1px solid var(--line); background: none; color: var(--soft); text-decoration: none;
}
.bp .author-bio-links a:hover { background: #17294a; border-color: #4f76ae; color: #fff; }

/* Related (blog/includes/related-posts.php) */
.bp .related-posts { margin: 3em 0 0; padding: 0; border: 0; }
.bp .related-posts-title { margin: 0 0 4px; color: var(--text); font: 600 1.5rem/1.15 var(--display); }
.bp .related-posts-title i { display: none; }
.bp .related-posts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 0 28px; margin: 0; }
.bp .related-card {
  display: flex; flex-direction: column; gap: 6px; padding: 16px 0; margin: 0;
  background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; box-shadow: none; transform: none;
  text-decoration: none;
}
.bp .related-card:hover { transform: none; box-shadow: none; }
.bp .related-card-tag { margin: 0; padding: 0; background: none; color: var(--muted); font: 600 .875rem/1.3 var(--sans); text-transform: none; letter-spacing: normal; }
.bp .related-card h4 { margin: 0; color: var(--text); font: 600 1.1875rem/1.2 var(--display); flex: 0 1 auto; }
.bp .related-card:hover h4 { color: var(--rose-hi); text-decoration: underline; text-underline-offset: 3px; }
.bp .related-card-meta { margin: 0; color: var(--quiet); font-size: .875rem; }
.bp .related-card-meta i { display: none; }

/* Older / newer (blog/includes/prev-next.php) */
.bp .prev-next-nav { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px 28px; margin: 2.5em 0 0; padding: 20px 0 0; border-top: 1px solid var(--line); }
.bp .prev-next-link { display: flex; flex-direction: column; gap: 4px; padding: 0; background: none; border: 0; border-radius: 0; text-decoration: none; transform: none; box-shadow: none; }
.bp .prev-next-link.next-link { text-align: right; align-items: flex-end; }
.bp .prev-next-label { color: var(--muted); font-size: .875rem; font-weight: 600; text-transform: none; letter-spacing: normal; }
.bp .prev-next-label i { display: none; }
.bp .prev-next-title { color: var(--text); font: 600 1.125rem/1.25 var(--display); }
.bp .prev-next-link:hover .prev-next-title { color: var(--rose-hi); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 560px) {
  .bp .prev-next-nav { grid-template-columns: 1fr; }
  .bp .prev-next-link.next-link { text-align: left; align-items: flex-start; }
  .bp .prev-next-placeholder { display: none; }
}

/* Reading progress bar (blog/includes/reading-progress.php) */
.reading-progress-bar { background: #ba5663 !important; height: 3px; }

@media (max-width: 560px) {
  .bp { font-size: 1.0625rem; }
  .bp .bp-body :where(p, ul, ol) { font-size: 1.0625rem; }
  .bp .cve-facts dl { grid-template-columns: 1fr; }
  .bp .cve-facts dt { padding: 10px 0 0; border-bottom: 0; }
  .bp .cve-facts dd { padding: 2px 0 10px; }
  .bp .bp-body :where(pre), .bp :is(.code-block, .code-block-mock) { margin-inline: calc(-1 * min(var(--gutter), 16px)); border-radius: 0; border-inline: 0; padding-inline: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .bp *, .copy-toast { transition: none !important; animation: none !important; }
}
