/* ============================================================
   article-brand.css
   Ubuntu Guard Cyber - blog article layer, written from scratch
   to match the Cybersplain front page (blog/index.html).

   Load order on every article:
     1. /css/ug-brand.css     site chrome only (header, footer, nav)
     2. /blog/article-brand.css   this file, everything inside the article
   Replaces on articles: blog-v2.css, article.css, styles-v3.css,
   repair.css and the per-article inline <style> blocks.

   Values mirror the live front page: near-black surfaces, teal
   #3BDBBF accent with teal hairlines, Neue Regrade for text,
   Monomials for labels, 24px card radius, flat fills (no gradients
   on cards or buttons).

   Sections
     0 fonts + tokens     5 article furniture (CTA, sources, share)
     1 hero band          6 recurring components
     2 title block        7 related posts (built by post-nav.js)
     3 reading column     8 legacy header (10 old pages)
     4 prose elements     9 responsive + motion
   ============================================================ */

/* ---------- 0. Fonts + tokens ---------- */
@font-face { font-family: "Neue Regrade"; src: url("/fonts/neue-regrade-300.woff2") format("woff2"); font-weight: 300 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Neue Regrade"; src: url("/fonts/neue-regrade-600.woff2") format("woff2"); font-weight: 600 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Monomials"; src: url("/fonts/monomials-400.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

body.blog-post {
  color-scheme: dark;

  --font-display: "Neue Regrade", "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Monomials", "Space Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --accent: #3BDBBF;
  --accent-hover: #2FC4AB;
  --accent-ink: #06231E;
  --accent-soft: rgba(59, 219, 191, .12);
  --stat: #3BDBBF;

  --bg-0: #0B0B0C;
  --bg-1: #111315;
  --bg-2: #17191C;

  --text-hi: #FFFFFF;
  --text-body: rgba(255, 255, 255, .78);
  --text-mute: rgba(255, 255, 255, .55);

  --line: rgba(59, 219, 191, .16);
  --line-strong: rgba(59, 219, 191, .35);

  --risk: #FF7A66;
  --risk-bg: rgba(255, 122, 102, .09);
  --risk-brd: rgba(255, 122, 102, .30);
  --warn: #F4C542;
  --warn-bg: rgba(244, 197, 66, .08);
  --warn-brd: rgba(244, 197, 66, .32);

  --code-bg: #101012;
  --col-pad: clamp(1rem, 4vw, 2rem);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-soft: 0 12px 24px rgba(0, 0, 0, .24);
  --transition-base: 240ms cubic-bezier(.22, 1, .36, 1);

  background: var(--bg-0);
  color: var(--text-body);
  font-family: var(--font-display);
  letter-spacing: .002em;
}

body.blog-post :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
body.blog-post .wa-float { display: none; }

/* ---------- 1. Hero band (cover + title block) ---------- */
.post-wrap {
  max-width: none;
  margin: 0;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1rem, 4vw, 2rem) clamp(1.5rem, 3vw, 2.5rem);
  display: block;
  background: radial-gradient(110% 150% at 88% -10%, rgba(59, 219, 191, .10) 0%, rgba(0, 47, 86, .22) 42%, rgba(11, 11, 12, 0) 72%);
  border-bottom: 1px solid var(--line);
}
.post-cover { max-width: 880px; margin: 0 auto 1.75rem; }
.post-cover img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  filter: saturate(.82) brightness(.94);
}

/* article's own cover image: shown whole (covers carry text), no tint, no crop */
.post-cover--art picture { display: block; }
.post-cover--art img { aspect-ratio: auto; object-fit: contain; height: auto; filter: none; }

/* ---------- 2. Title block ---------- */
.post-head { max-width: 46em; margin: 0 auto; text-align: center; }
.post-head h1 {
  margin: .5rem 0 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.75rem, 4.5vw, 2.4rem);
  line-height: 1.3;
  letter-spacing: -.01em;
  color: var(--text-hi);
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.post-standfirst {
  max-width: 62ch;
  margin: 0 auto 1.5rem;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-body);
}

.post-breadcrumb {
  margin: 0 0 1rem;
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.post-breadcrumb a { color: var(--accent); text-decoration: none; transition: color var(--transition-base); }
.post-breadcrumb a:hover { color: var(--text-hi); }
nav.post-breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: .5em; }
nav.post-breadcrumb li + li::before { content: "\203A"; margin-right: .5em; color: var(--text-mute); }
nav.post-breadcrumb li:last-child { text-transform: none; letter-spacing: .02em; color: var(--text-mute); }
nav.post-breadcrumb li:last-child span { display: inline-block; max-width: 34ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }

.post-byline { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .9rem; margin: 0; padding: 0; border: 0; text-align: left; }
.post-avatar {
  width: 44px; height: 44px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid rgba(59, 219, 191, .30);
  font-family: var(--font-mono); font-size: .85rem; font-weight: 700;
  color: var(--accent);
}
.post-byline-who { display: flex; flex-direction: column; gap: .15rem; margin-right: 0; }
.post-byline-who strong { font-size: .95rem; font-weight: 600; color: var(--text-hi); }
.post-byline-who span { font-family: var(--font-mono); font-size: .82rem; letter-spacing: .06em; color: var(--text-mute); }
.post-byline-dates { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .06em; line-height: 1.7; color: var(--text-mute); text-align: right; }

/* ---------- 3. Reading column ---------- */
main#main-content { background: var(--bg-0); }
.blog-content {
  box-sizing: border-box;
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.25rem) var(--col-pad) 3rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-body);
  overflow-wrap: anywhere;
}

/* ---------- 4. Prose elements ---------- */
.blog-content p { margin: 1.25em 0; color: var(--text-body); }
.blog-content h2 {
  margin: 2.6em 0 .8em;
  padding-bottom: .5rem;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  line-height: 1.3; letter-spacing: -.015em;
  color: var(--text-hi);
  border-bottom: 1px solid var(--line);
}
.blog-content h3 {
  margin: 2em 0 .6em;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.08rem, 2.2vw, 1.25rem);
  line-height: 1.35;
  color: var(--accent);
}
.blog-content h4 {
  margin: 1.8em 0 .5em;
  font-family: var(--font-mono); font-weight: 400;
  font-size: .8rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-hi);
}
.blog-content > :first-child { margin-top: 0; }
.blog-content strong, .blog-content b { font-weight: 700; color: var(--text-hi); }
.blog-content em, .blog-content i { color: var(--text-body); }

.blog-content a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(59, 219, 191, .30);
  transition: color var(--transition-base), border-color var(--transition-base);
}
.blog-content a:hover { color: var(--accent-hover); border-bottom-color: var(--accent); }

.blog-content ul, .blog-content ol { margin: 1.25em 0; padding-left: 1.5rem; }
.blog-content li { margin: .55em 0; color: var(--text-body); }
.blog-content li::marker { color: var(--accent); }
.blog-content li > ul, .blog-content li > ol { margin: .5em 0; }

.blog-content blockquote {
  margin: 2rem 0;
  padding: 1.1rem 1.4rem;
  background: rgba(59, 219, 191, .07);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--text-body);
}
.blog-content blockquote p { margin: 0; }
.blog-content blockquote p + p { margin-top: .75rem; }
.blog-content hr { margin: 2.5rem 0; border: 0; border-top: 1px solid var(--line); }

.blog-content code {
  padding: .12em .42em;
  font-family: var(--font-mono); font-size: .88em;
  color: var(--accent);
  background: var(--code-bg);
  border: 1px solid rgba(59, 219, 191, .14);
  border-radius: 4px;
}
.blog-content pre {
  max-width: 100%; margin: 1.75rem 0; padding: 1.1rem 1.25rem;
  overflow-x: auto; white-space: pre;
  font-size: .88rem; line-height: 1.6;
  background: var(--code-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.blog-content pre code { padding: 0; background: none; border: 0; color: var(--text-body); font-size: inherit; }

.blog-content table { display: block; max-width: 100%; margin: 1.75rem 0; overflow-x: auto; border-collapse: collapse; font-size: .95rem; }
.blog-content th, .blog-content td { padding: .7rem .9rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.blog-content th { font-family: var(--font-mono); font-weight: 400; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); white-space: nowrap; }
.blog-content td { color: var(--text-body); }

.blog-content img { max-width: 100%; height: auto; border-radius: var(--radius-md); }
.blog-content figure { margin: 2rem 0; }
.blog-content figure img { display: block; width: 100%; border: 1px solid var(--line); }
.blog-content figcaption { margin-top: .6rem; font-family: var(--font-mono); font-size: .78rem; letter-spacing: .04em; text-align: center; color: var(--text-mute); }
.blog-content svg { max-width: 100%; height: auto; }

main table, .report-table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }

/* ---------- 5. Article furniture ---------- */
.article-cta, .cta-section, .blog-cta-inline {
  display: block;
  box-sizing: border-box;
  max-width: 750px;
  margin: 3rem auto 2rem;
  padding: 2.5rem 2rem;
  text-align: center;
  background: var(--bg-1);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  min-height: 0;
  color: var(--text-body);
}
.article-cta h3, .cta-section h3, .cta-title, .blog-cta-inline h3 { margin: 0 0 .75rem; font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; line-height: 1.3; letter-spacing: -.015em; color: var(--text-hi); }
.article-cta p, .cta-section p, .blog-cta-inline p { margin: 0 0 1.5rem; color: var(--text-body); line-height: 1.6; }
.article-cta a, .cta-section a, .blog-cta-inline a {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: .75rem 2rem;
  font-family: var(--font-mono); font-size: .95rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-ink);
  background: var(--accent);
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: background var(--transition-base), transform var(--transition-base);
}
.article-cta a:hover, .cta-section a:hover, .blog-cta-inline a:hover { background: var(--accent-hover); color: var(--accent-ink); transform: translateY(-2px); }

.article-email-line { max-width: 750px; margin: 0 auto; padding: 1.5rem 0 0; border-top: 1px solid var(--line); text-align: center; font-family: var(--font-mono); font-size: .9rem; letter-spacing: .04em; color: var(--text-mute); }
.article-email-line p { margin: 0 0 1rem; color: var(--text-mute); }
.article-email-line a { color: var(--accent); text-decoration: none; }
.article-email-line a:hover { color: var(--accent-hover); text-decoration: underline; }

.sources-block, .sources, .references {
  box-sizing: border-box;
  width: calc(100% - 2 * var(--col-pad));
  max-width: calc(780px - 2 * var(--col-pad));
  margin: 2.5rem auto 1rem;
  padding: 1.5rem;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.sources-block h2, .sources h2, .sources h3, .references h2, .references h3 {
  margin: 0 0 .9rem; padding: 0; border: 0;
  font-family: var(--font-mono); font-weight: 400; font-size: .75rem; line-height: 1.4; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent);
}
.sources-block ul, .sources ul, .references ul { margin: 0; padding-left: 1.2rem; }
.sources-block li, .sources li, .references li { margin: .5rem 0; font-size: .88rem; line-height: 1.6; color: var(--text-mute); }
.sources-block a, .sources a, .references a, .source-links a { color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(59, 219, 191, .30); }
.sources-block a:hover, .sources a:hover, .references a:hover, .source-links a:hover { border-bottom-color: var(--accent); }

.social-share { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin: 2.5rem 0; }
.share-btn {
  display: inline-flex; align-items: center; gap: .45rem;
  min-height: 40px; padding: .55rem 1.1rem;
  font-family: var(--font-mono); font-size: .82rem; letter-spacing: .04em;
  color: var(--text-body);
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: border-color var(--transition-base), color var(--transition-base), transform var(--transition-base);
}
.share-btn:hover { color: var(--text-hi); border-color: var(--accent); transform: translateY(-1px); }
.share-btn svg { width: 16px; height: 16px; flex-shrink: 0; fill: currentColor; }

.back-link, p.back-link a {
  display: inline-flex; align-items: center; gap: .4rem;
  margin: 2rem 0; padding: .65rem 1.25rem;
  font-family: var(--font-mono); font-size: .85rem; letter-spacing: .04em;
  color: var(--accent);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: background var(--transition-base), border-color var(--transition-base), color var(--transition-base);
}
p.back-link { display: block; margin: 2rem 0; padding: 0; border: 0; text-align: center; }
p.back-link a { margin: 0; }
.back-link:hover, p.back-link a:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--text-hi); }

/* ---------- 6. Recurring components ---------- */

/* stats */
.stats-grid, .stats-section .stats-grid, .stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
  padding: 0;
  border: 0;
}
.stats-section { margin: 2.5rem 0; }
.stats-section-header, .section-header { margin: 0 0 1rem; font-family: var(--font-mono); font-weight: 400; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.stat-card, .stat-highlight {
  position: relative;
  display: grid; align-content: start; gap: .5rem;
  padding: 1.4rem 1.25rem;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-top: 2px solid var(--accent);
  border-radius: var(--radius-md);
  text-align: left;
}
.stat-number { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(2.1rem, 5vw, 2.8rem); line-height: 1.1; letter-spacing: -.01em; color: var(--stat); }
.stat-label { font-size: .98rem; line-height: 1.45; color: var(--text-hi); }
.stat-context, .stat-source { font-size: .82rem; line-height: 1.5; color: var(--text-mute); }
.stat-source { font-family: var(--font-mono); letter-spacing: .04em; }
.stat-tooltip {
  position: absolute; left: 1rem; right: 1rem; bottom: calc(100% + 8px); z-index: 5;
  padding: .55rem .75rem;
  font-size: .8rem; line-height: 1.4; color: var(--text-hi);
  background: var(--bg-1); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity var(--transition-base), visibility var(--transition-base);
}
.stat-card:hover .stat-tooltip, .stat-card:focus .stat-tooltip, .stat-card:focus-within .stat-tooltip { opacity: 1; visibility: visible; }

/* callouts: neutral */
.callout-box, .key-takeaway, .highlight-box, .info-box, .fact-callout, .intro-highlight, .update-callout, .emphasis, .bottom-line, .quote-highlight, .quote-box, .legal-notice {
  margin: 2rem 0; padding: 1.15rem 1.4rem;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--text-body);
}
.callout-box > :first-child, .key-takeaway > :first-child, .highlight-box > :first-child, .info-box > :first-child, .fact-callout > :first-child, .intro-highlight > :first-child, .update-callout > :first-child, .emphasis > :first-child, .bottom-line > :first-child, .quote-highlight > :first-child, .quote-box > :first-child, .legal-notice > :first-child { margin-top: 0; }
.callout-box > :last-child, .key-takeaway > :last-child, .highlight-box > :last-child, .info-box > :last-child, .fact-callout > :last-child, .intro-highlight > :last-child, .update-callout > :last-child, .emphasis > :last-child, .bottom-line > :last-child, .quote-highlight > :last-child, .quote-box > :last-child, .legal-notice > :last-child { margin-bottom: 0; }
.quote-attribution { display: block; margin-top: .6rem; font-family: var(--font-mono); font-size: .78rem; letter-spacing: .06em; color: var(--text-mute); }

/* callouts: warning / risk */
.warning-box, .warning, .alert-box, .danger-box, .fake-alert {
  margin: 2rem 0; padding: 1.15rem 1.4rem;
  background: var(--risk-bg);
  border: 1px solid var(--risk-brd);
  border-left: 3px solid var(--risk);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--text-body);
}
.warning-box strong, .warning strong, .alert-box strong, .danger-box strong { color: var(--risk); }

/* steps + flows */
.steps-list { margin: 2rem 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: .85rem; }
.steps-list > li { position: relative; margin: 0; padding: 1rem 1.15rem 1rem 3.4rem; background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius-md); counter-increment: step; }
.steps-list > li::before { content: counter(step); position: absolute; left: 1.1rem; top: 1rem; font-family: var(--font-mono); font-size: .95rem; color: var(--accent); }
.step-box { margin: 1.5rem 0; padding: 1.1rem 1.3rem; background: var(--bg-1); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 0 var(--radius-md) var(--radius-md) 0; }
.step-box > :first-child { margin-top: 0; }
.step-box > :last-child { margin-bottom: 0; }
.step-number { display: inline-flex; align-items: center; justify-content: center; min-width: 2rem; height: 2rem; padding: 0 .5rem; font-family: var(--font-mono); font-size: .85rem; color: var(--accent-ink); background: var(--accent); border-radius: var(--radius-pill); }

.attack-flow, .scam-flow { display: flex; flex-wrap: wrap; align-items: stretch; gap: .85rem; margin: 2rem 0; }
.flow-step { flex: 1 1 180px; padding: 1.1rem; background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius-md); text-align: center; }
.flow-step h4 { margin: .4rem 0; font-family: var(--font-display); font-size: 1rem; letter-spacing: 0; text-transform: none; color: var(--text-hi); }
.flow-step p { margin: 0; font-size: .9rem; color: var(--text-body); }
.flow-icon { display: block; font-size: 1.6rem; line-height: 1.2; }
.flow-arrow, .step-arrow { align-self: center; font-family: var(--font-mono); font-size: 1.2rem; color: var(--accent); }

/* faq */
.faq-list { margin: 2rem 0; display: grid; gap: .75rem; }
.faq-item { padding: 1.1rem 1.3rem; background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius-md); }
.faq-question { margin: 0 0 .5rem; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--text-hi); }
.faq-answer { margin: 0; color: var(--text-body); }
.faq-answer > :first-child { margin-top: 0; }
.faq-answer > :last-child { margin-bottom: 0; }

/* timeline */
.timeline { position: relative; margin: 2rem 0; padding-left: 1.6rem; border-left: 2px solid var(--line); }
.timeline-item { position: relative; margin: 0 0 1.6rem; }
.timeline-item::before { content: ""; position: absolute; left: calc(-1.6rem - 6px); top: .45rem; width: 10px; height: 10px; background: var(--accent); border: 2px solid var(--bg-0); border-radius: 50%; }
.timeline-date { margin-bottom: .25rem; font-family: var(--font-mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.timeline-event { color: var(--text-body); line-height: 1.65; }

/* checklist (toggle script adds .checked or .completed) */
.checklist { margin: 2rem 0; }
.checklist-category { margin: 0 0 1.5rem; }
.checklist-category-title { margin: 0 0 .75rem; font-family: var(--font-mono); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.checklist-item { display: flex; align-items: flex-start; gap: .8rem; margin: 0 0 .6rem; padding: .85rem 1rem; background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius-md); cursor: pointer; transition: border-color var(--transition-base); }
.checklist-item:hover { border-color: var(--accent); }
.checklist-checkbox { flex: 0 0 20px; width: 20px; height: 20px; margin-top: .2rem; border: 2px solid var(--accent); border-radius: 5px; position: relative; }
.checklist-item.checked .checklist-checkbox, .checklist-item.completed .checklist-checkbox { background: var(--accent); }
.checklist-item.checked .checklist-checkbox::after, .checklist-item.completed .checklist-checkbox::after { content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px; border: solid var(--accent-ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.checklist-text { color: var(--text-body); line-height: 1.55; }

/* charts */
.chart-container, .chart-wrapper { position: relative; margin: 2rem 0; padding: 1.25rem; background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.chart-wrapper { min-height: 280px; }
.chart-title { margin: 0 0 1rem; font-family: var(--font-mono); font-weight: 400; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.chart-insight { margin: 1rem 0 0; font-size: .95rem; color: var(--text-body); }
.chart-source { margin: .75rem 0 0; font-family: var(--font-mono); font-size: .75rem; letter-spacing: .04em; color: var(--text-mute); }
.loading { font-family: var(--font-mono); font-size: .85rem; color: var(--text-mute); text-align: center; }

/* generic cards for the less common content blocks */
.legal-card, .legal-breakdown, .tech-breakdown, .tech-box, .impact-item, .profile-card {
  margin: 1.5rem 0; padding: 1.15rem 1.35rem;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.tech-box-title, .profile-card-header { margin: 0 0 .6rem; font-family: var(--font-mono); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.reference-category h5 { margin: 1.25rem 0 .5rem; font-family: var(--font-mono); font-weight: 400; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-mute); }
.reference-links { display: flex; flex-direction: column; gap: .4rem; }

.article-banner { max-width: 780px; margin: 1.5rem auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.article-banner img { display: block; width: 100%; border: 1px solid var(--line); border-radius: var(--radius-lg); }

/* ---------- 7. Related posts (markup built by js/post-nav.js) ---------- */
.post-topicnav { max-width: 780px; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2rem) clamp(3rem, 6vw, 5rem); }
.post-topicnav[hidden] { display: none; }
.post-section-label, .post-topicnav .post-section-label { margin: 0 0 1rem; padding: 0; font-family: var(--font-mono); font-weight: 400; font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; line-height: 1.4; color: var(--accent); border: 0; }
.post-section-label a { color: inherit; text-decoration: none; }
.post-section-label a:hover { color: var(--text-hi); }

.bl-rows { list-style: none; margin: 0 0 1.75rem; padding: 0; }
.bl-row { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 1rem; align-items: center; margin: 0; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.bl-cover { display: block; width: 88px; height: 88px; object-fit: cover; background: var(--bg-2); border: 1px solid rgba(59, 219, 191, .14); border-radius: var(--radius-md); filter: saturate(.82) brightness(.94); }
.bl-row-title { margin: 0 0 .35rem; font-family: var(--font-display); font-weight: 600; font-size: 1rem; line-height: 1.35; }
.bl-row-title a { color: var(--text-hi); text-decoration: none; transition: color var(--transition-base); }
.bl-row-title a:hover { color: var(--accent); }
.bl-meta { display: flex; flex-wrap: wrap; gap: .25rem .9rem; font-family: var(--font-mono); font-size: .75rem; letter-spacing: .06em; color: var(--text-mute); }

.post-topicnav-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }
.post-topicnav-pair a {
  display: block; padding: 1rem 1.1rem;
  color: var(--text-hi); text-decoration: none; line-height: 1.4;
  background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius-md);
  transition: border-color var(--transition-base);
}
.post-topicnav-pair a:hover { border-color: var(--accent); }
.post-topicnav-pair small { display: block; margin-bottom: .4rem; font-family: var(--font-mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }

/* ---------- 8. Legacy header (10 pages migrating from styles-v3) ----------
   Same look as .post-head so these pages need no header rewrite. */
.breadcrumb-bar { max-width: 46em; margin: 0 auto 1rem; padding: 0 clamp(1rem, 4vw, 2rem); font-family: var(--font-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-mute); }
.breadcrumb-bar a { color: var(--accent); text-decoration: none; }
.breadcrumb-bar a:hover { color: var(--text-hi); }
.breadcrumb-bar .meta-sep, .blog-meta .meta-sep { margin: 0 .5em; color: var(--text-mute); }
.blog-header {
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1rem, 4vw, 2rem) clamp(1.5rem, 3vw, 2.25rem);
  text-align: center;
  background: radial-gradient(110% 150% at 88% -10%, rgba(59, 219, 191, .10) 0%, rgba(0, 47, 86, .22) 42%, rgba(11, 11, 12, 0) 72%);
  border-bottom: 1px solid var(--line);
}
.blog-header > * { max-width: 46em; margin-left: auto; margin-right: auto; }
.blog-header h1 { margin: .75rem auto 1rem; font-weight: 600; font-size: clamp(1.75rem, 4.5vw, 2.4rem); line-height: 1.3; letter-spacing: -.01em; color: var(--text-hi); text-wrap: balance; }
.article-category-tag {
  display: inline-block; margin: 0 0 .5rem; padding: 3px 10px;
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); background: rgba(59, 219, 191, .10);
  border: 1px solid rgba(59, 219, 191, .30); border-radius: var(--radius-pill);
}
.blog-meta { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .06em; color: var(--text-mute); }

/* ---------- 9. Responsive + motion ---------- */
@media (max-width: 640px) {
  .post-byline { flex-direction: column; text-align: center; }
  .post-byline-dates { text-align: center; }
  .post-topicnav-pair { grid-template-columns: 1fr; }
  .bl-row { grid-template-columns: 72px minmax(0, 1fr); gap: .8rem; }
  .bl-cover { width: 72px; height: 72px; }
  .attack-flow, .scam-flow { flex-direction: column; }
  .flow-arrow, .step-arrow { transform: rotate(90deg); }
}

@media (prefers-reduced-motion: reduce) {
  .blog-content a, .article-cta a, .share-btn, .back-link, .bl-row-title a, .post-topicnav-pair a, .checklist-item, .stat-tooltip { transition: none; }
  .article-cta a:hover, .share-btn:hover { transform: none; }
}
