/* ============================================================
   CryptoTax - Immersive blog article styles
   Ported from the Anthropic Design handoff (MiCA in Belgie.html)
   Loaded only on /blog/*, /kennis/*, /functies/*, /helpcentrum/*
   Global header/footer come from layout/public.html.
   ============================================================ */

:root {
  /* Values of the shared scale in static/css/dashboard.css (not loaded on public pages). */
  --h-purple: #7C3AED;       /* primary-500 */
  --h-purple-light: #8B5CF6; /* primary-400 */
  --h-purple-dark: #5B21B6;  /* primary-700 */
  --h-purple-faint: #FAF5FF; /* primary-50 */
  --h-purple-faint2: #E9D5FF; /* primary-100 */
  --h-accent: #E5482A;
  --h-green: #047857;        /* success-500 */
  --h-amber: #D97706;        /* warning-500, dots and stripes only */
  --h-text: #0A0A0B;         /* neutral-900 */
  --h-text-2: #27272A;       /* neutral-700 */
  --h-muted: #5F5F68;        /* neutral-500 */
  --h-muted-2: #6E6E77;      /* neutral-400 */
  --h-border: #E4E4E7;       /* neutral-200 */
  --h-border-2: #F4F4F5;     /* neutral-100 */
  --h-bg: #FFFFFF;
  --h-bg-2: #FAFAFA;         /* neutral-50 */
  --h-dark: #0A0A0B;         /* neutral-900 */

  --read-col: 720px;
  --side-col: 240px;
}

/* === Reading progress === */
.progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 3px; z-index: 200; pointer-events: none;
  background: transparent;
}
.progress-bar {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--h-purple) 0%, var(--h-purple-light) 100%);
  transition: width .1s linear;
  box-shadow: 0 1px 6px rgba(124,58,237,0.4);
}

/* === Article hero === */
.art-hero {
  position: relative; padding: 56px 0 0;
  background: #fff; overflow: hidden;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--h-text);
}
.art-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--h-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--h-border) 1px, transparent 1px);
  background-size: 40px 40px; opacity: 0.25; pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 80% 100% at 50% 0%, #000 30%, transparent 80%);
          mask-image: radial-gradient(ellipse 80% 100% at 50% 0%, #000 30%, transparent 80%);
}
.art-hero::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 70% 30%, rgba(124,58,237,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.art-hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 56px; align-items: center; padding: 24px 0 64px;
  max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px;
}
.art-hero-inner.no-visual { grid-template-columns: 1fr; }

.breadcrumb {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 13px; color: var(--h-muted); margin-bottom: 18px;
}
.breadcrumb a { color: var(--h-muted); transition: color .15s; text-decoration: none; }
.breadcrumb a:hover { color: var(--h-purple); }
.breadcrumb svg { width: 12px; height: 12px; opacity: .5; }
.breadcrumb-current { color: var(--h-purple); font-weight: 600; }

.cat-pill {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--h-purple-faint); border: 1px solid var(--h-purple-faint2);
  border-radius: 100px; padding: 6px 12px;
  font-size: 11.5px; font-weight: 700; color: var(--h-purple);
  letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: 22px;
}
.cat-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--h-purple); }

.art-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  font-weight: 800; line-height: 1.04; letter-spacing: -1.6px;
  margin: 0 0 22px;
  text-wrap: balance;
  color: var(--h-text);
}
.art-title em {
  font-style: normal; color: var(--h-purple);
  position: relative; display: inline-block;
}
.art-title em::after {
  content: ''; position: absolute; left: -2px; right: -2px; bottom: 0;
  height: 13%; background: var(--h-purple); opacity: .14; z-index: -1; border-radius: 4px;
}

.art-deck {
  font-size: 19px; line-height: 1.55; color: var(--h-muted);
  margin: 0 0 32px; max-width: 580px; font-weight: 400;
  text-wrap: pretty;
}
.art-deck strong { color: var(--h-text); font-weight: 600; }

.art-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.art-author { display: flex; align-items: center; gap: 10px; }
.art-author-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--h-purple) 0%, var(--h-purple-light) 100%);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
  box-shadow: 0 4px 12px rgba(124,58,237,0.28);
  overflow: hidden;
}
.art-author-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.art-author-text { display: flex; flex-direction: column; gap: 1px; }
.art-author-name { font-size: 13.5px; font-weight: 600; color: var(--h-text); }
.art-author-role { font-size: 12px; color: var(--h-muted); }
.meta-sep { width: 1px; height: 28px; background: var(--h-border); }
.meta-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; color: var(--h-muted);
}
.meta-chip svg { width: 14px; height: 14px; opacity: .6; }

/* === Hero visual (right side - feature image variant) === */
.hero-visual {
  position: relative; aspect-ratio: 5 / 5;
  display: flex; align-items: center; justify-content: center;
}
.hero-visual-img {
  position: relative; width: 88%; max-width: 460px; aspect-ratio: 1/1;
  border-radius: 22px; overflow: hidden;
  border: 1px solid var(--h-border);
  box-shadow: 0 24px 60px -10px rgba(13,11,30,0.18), 0 8px 20px rgba(124,58,237,0.10);
  transform: rotate(-2deg);
  background: var(--h-purple-faint);
}
.hero-visual-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-visual-img::before {
  content: ''; position: absolute; inset: 8px; border-radius: 16px;
  border: 1px dashed rgba(255,255,255,0.55); pointer-events: none; z-index: 2;
}

/* Floating chips on the hero image */
.hv-chip {
  position: absolute; background: #fff; border: 1px solid var(--h-border);
  border-radius: 10px; padding: 10px 14px;
  box-shadow: 0 6px 22px rgba(13,11,30,0.10);
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; white-space: nowrap;
  z-index: 3;
}
.hv-chip-ico {
  width: 28px; height: 28px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0;
}
.hv-chip .lbl-s { font-size: 10px; color: var(--h-muted); letter-spacing: .03em; }
.hv-chip .val-s { font-size: 12.5px; font-weight: 700; color: var(--h-text); line-height: 1.2; }

.hv-chip-1 { top: 4%; left: -2%; animation: floaty1 5s ease-in-out infinite; }
.hv-chip-2 { bottom: -2%; right: 4%; animation: floaty2 6s ease-in-out infinite; }
@keyframes floaty1 { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes floaty2 { 0%,100% { transform: translateY(0); } 50% { transform: translateY(7px); } }

/* === Key facts dark strip (optional, rendered when post.heroFacts set) === */
.facts-strip {
  background: var(--h-dark); padding: 36px 0;
  position: relative; overflow: hidden;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.facts-strip::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 80% at 20% 50%, rgba(124,58,237,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.facts-strip-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 2; }
.facts-eyebrow {
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--h-purple-light); font-weight: 700;
  margin-bottom: 18px;
}
.facts-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
}
.fact { padding: 0 28px; border-right: 1px solid rgba(255,255,255,0.08); }
.fact:first-child { padding-left: 0; }
.fact:last-child { padding-right: 0; border-right: none; }
.fact-num {
  font-size: clamp(2rem, 3.6vw, 2.8rem); font-weight: 800;
  color: #fff; line-height: 1; letter-spacing: -1.5px; margin-bottom: 10px;
  font-feature-settings: "tnum" 1;
}
.fact-num .unit { color: var(--h-purple-light); font-weight: 700; }
.fact-label { font-size: 13px; color: rgba(255,255,255,0.6); line-height: 1.45; }
.fact-label strong { color: rgba(255,255,255,0.92); font-weight: 600; }

/* === Body layout === */
.body-wrap {
  background: var(--h-bg);
  padding: 64px 0 32px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--h-text-2);
}
.body-grid {
  display: grid;
  grid-template-columns: var(--side-col) minmax(0, 1fr) var(--side-col);
  gap: 56px;
  max-width: 1200px;
  margin: 0 auto; padding: 0 24px;
}
.toc-col { position: relative; }
.toc { position: sticky; top: 100px; }
.toc-label {
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--h-purple); font-weight: 700; margin-bottom: 14px;
  padding-bottom: 12px; border-bottom: 1px solid var(--h-border);
}
.toc-list { list-style: none; margin: 0; padding: 0; counter-reset: tocnum; }
.toc-list li { counter-increment: tocnum; margin: 0; }
.toc-list a {
  display: grid; grid-template-columns: 28px 1fr; align-items: start; gap: 8px;
  padding: 7px 0; font-size: 13px; color: var(--h-muted); line-height: 1.4;
  font-weight: 500; transition: color .15s;
  border-left: 2px solid transparent; padding-left: 12px; margin-left: -14px;
  text-decoration: none;
}
.toc-list a::before {
  content: counter(tocnum, decimal-leading-zero);
  font-family: 'IBM Plex Mono', 'SF Mono', ui-monospace, monospace;
  font-size: 10.5px; color: var(--h-muted-2);
  font-weight: 600; padding-top: 2px;
}
.toc-list a:hover { color: var(--h-text); }
.toc-list a.active { color: var(--h-purple); font-weight: 600; border-left-color: var(--h-purple); }
.toc-list a.active::before { color: var(--h-purple); }

/* Right rail */
.rail-col { position: relative; }
.rail { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 24px; }
.share {
  display: flex; flex-direction: column; gap: 8px;
  padding: 16px; border: 1px solid var(--h-border); border-radius: 14px; background: #fff;
}
.share-label {
  font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--h-muted); font-weight: 700;
}
.share-row { display: flex; gap: 8px; flex-wrap: wrap; }
.share-btn {
  width: 36px; height: 36px; border-radius: 9px; background: var(--h-bg-2);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--h-border); color: var(--h-muted);
  transition: all .15s; cursor: pointer;
  text-decoration: none;
}
.share-btn:hover { color: var(--h-purple); border-color: var(--h-purple-light); background: var(--h-purple-faint); }
.share-btn svg { width: 16px; height: 16px; }

.rail-cta {
  background: var(--h-dark); color: #fff;
  border-radius: 14px; padding: 22px; position: relative; overflow: hidden;
}
.rail-cta::before {
  content: ''; position: absolute; top: -40px; right: -40px;
  width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,0.6) 0%, transparent 70%);
}
.rail-cta-eyebrow {
  font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--h-purple-light); font-weight: 700;
  margin-bottom: 10px; position: relative;
}
.rail-cta-title {
  font-size: 17px; font-weight: 700; line-height: 1.25; margin: 0 0 14px;
  color: #fff; position: relative;
}
.rail-cta-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--h-purple); color: #fff; font-weight: 600; font-size: 13px;
  padding: 9px 14px; border-radius: 8px;
  transition: all .2s; position: relative;
  text-decoration: none;
}
.rail-cta-btn:hover { background: var(--h-purple-light); transform: translateY(-1px); }
.rail-cta-btn svg { width: 13px; height: 13px; transition: transform .2s; }
.rail-cta-btn:hover svg { transform: translateX(3px); }

/* === Article content === */
.article {
  font-size: 17px; line-height: 1.72; color: var(--h-text-2);
  max-width: var(--read-col);
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.article p { margin: 0 0 22px; color: var(--h-text-2); line-height: 1.72; }
.article p strong { color: var(--h-text); font-weight: 600; }
.article a:not(.btn):not(.btn-prim):not(.btn-sec) {
  color: var(--h-purple); font-weight: 500; text-decoration: underline;
  text-decoration-thickness: 1px; text-underline-offset: 3px;
  text-decoration-color: rgba(124,58,237,0.35);
  transition: text-decoration-color .15s;
}
.article a:not(.btn):not(.btn-prim):not(.btn-sec):hover { text-decoration-color: var(--h-purple); }

.article h1 {
  font-size: 38px; font-weight: 800; line-height: 1.1;
  color: var(--h-text); margin: 48px 0 16px; letter-spacing: -1px;
}
.article h2 {
  font-size: 32px; font-weight: 800; line-height: 1.15; letter-spacing: -0.8px;
  color: var(--h-text); margin: 56px 0 18px; scroll-margin-top: 96px;
  display: flex; align-items: baseline; gap: 14px;
}
.article h2::before {
  content: ''; flex-shrink: 0; width: 6px; height: 6px; border-radius: 50%;
  background: var(--h-purple); transform: translateY(-8px);
  box-shadow: 0 0 0 4px var(--h-purple-faint);
}
.article h3 {
  font-size: 21px; font-weight: 700; line-height: 1.3;
  color: var(--h-text); margin: 32px 0 12px; letter-spacing: -.3px;
  scroll-margin-top: 96px;
}
.article h4 {
  font-size: 17px; font-weight: 700; line-height: 1.35;
  color: var(--h-text); margin: 24px 0 10px;
}
.article ul, .article ol { margin: 0 0 22px; padding-left: 22px; }
.article li { margin-bottom: 8px; line-height: 1.7; }
.article li::marker { color: var(--h-purple); font-weight: 700; }

.article hr {
  margin: 40px 0; border: none; border-top: 1px solid var(--h-border);
}

.article img {
  max-width: 100%; height: auto; display: block;
  border-radius: 12px; margin: 28px auto;
}
.article figure { margin: 28px 0; }
.article figure.kg-card { margin: 28px 0; }
.article figure.kg-image-card { margin: 28px auto; max-width: 100%; }
.article figure.kg-image-card img { width: 100%; height: auto; border-radius: 12px; display: block; margin: 0; }
.article figcaption {
  font-size: 13px; color: var(--h-muted); text-align: center;
  margin-top: 10px; font-style: italic;
}

.article pre {
  margin: 28px 0; padding: 20px;
  background: var(--h-dark); color: #E4E4E7;
  border-radius: 12px; overflow-x: auto;
  font-family: 'IBM Plex Mono', 'SF Mono', ui-monospace, monospace;
  font-size: 14px; line-height: 1.6;
}
.article code {
  padding: 2px 6px; background: var(--h-purple-faint);
  color: var(--h-purple-dark); border-radius: 5px;
  font-family: 'IBM Plex Mono', 'SF Mono', ui-monospace, monospace;
  font-size: 0.88em;
}
.article pre code { padding: 0; background: transparent; color: inherit; }

/* Legacy blockquote (for posts not using .pullquote markup) */
.article blockquote {
  margin: 28px 0; padding: 18px 24px;
  background: var(--h-purple-faint);
  border-left: 4px solid var(--h-purple);
  border-radius: 10px;
  color: var(--h-text-2); font-style: italic;
}
.article blockquote p:last-child { margin-bottom: 0; }

/* Tables (legacy raw <table> in article body) */
.article table {
  width: 100%; margin: 28px 0; border-collapse: collapse;
  font-size: 14.5px; border: 1px solid var(--h-border); border-radius: 12px;
  overflow: hidden; background: #fff;
}
.article thead th {
  background: var(--h-bg-2); font-weight: 700; color: var(--h-text);
  text-align: left; padding: 14px 16px;
  border-bottom: 2px solid var(--h-border);
}
.article tbody td {
  padding: 12px 16px; border-bottom: 1px solid var(--h-border);
  color: var(--h-text-2); vertical-align: top; line-height: 1.55;
}
.article tbody tr:last-child td { border-bottom: none; }
.article tbody tr:hover { background: var(--h-purple-faint); }

/* Drop cap — opt-in via .lead (auto-applied by JS to first substantial paragraph) */
.lead { font-size: 19px; line-height: 1.7; color: var(--h-text); }
body[data-dropcap="on"] .lead::first-letter {
  float: left;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 72px; line-height: 0.85; font-weight: 800; color: var(--h-purple);
  padding: 6px 12px 0 0; margin-top: 4px;
}

/* Inline term - small definition popup */
.term {
  position: relative; display: inline; cursor: help;
  border-bottom: 1.5px dotted var(--h-purple);
  color: var(--h-purple); font-weight: 600;
}

/* === Wide visualizations (break out of read column) === */
.wide {
  width: calc(var(--read-col) + 220px);
  margin-left: -110px; margin-top: 32px; margin-bottom: 32px;
  max-width: none;
}
@media (max-width: 1180px) {
  .wide { width: 100%; margin-left: 0; }
}

/* TL;DR card */
.tldr {
  background: linear-gradient(180deg, var(--h-purple-faint) 0%, #fff 100%);
  border: 1px solid var(--h-purple-faint2);
  border-radius: 16px; padding: 24px 28px; margin: 0 0 40px;
  position: relative; overflow: hidden;
}
.tldr::before {
  content: ''; position: absolute; top: 0; left: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, var(--h-purple) 0%, var(--h-purple-light) 100%);
}
.tldr-label {
  font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--h-purple); font-weight: 800; margin-bottom: 10px;
}
.tldr-list { list-style: none; padding: 0; margin: 0; }
.tldr-list li {
  display: grid; grid-template-columns: 22px 1fr; gap: 10px;
  font-size: 15px; color: var(--h-text-2); line-height: 1.55; margin-bottom: 10px;
}
.tldr-list li:last-child { margin-bottom: 0; }
.tldr-list li::before {
  content: ''; width: 16px; height: 16px; border-radius: 50%;
  background: var(--h-purple); margin-top: 4px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5 6.5 11.5 12.5 5' stroke='white' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.tldr-list strong { color: var(--h-text); font-weight: 700; }
.tldr-fallback { /* paragraph form when no bullets */
  font-size: 15px; color: var(--h-text-2); line-height: 1.6; margin: 0;
}

/* Callout boxes (for inline use in posts) */
.callout {
  display: grid; grid-template-columns: 44px 1fr; gap: 16px;
  border-radius: 14px; padding: 18px 22px;
  margin: 28px 0; font-size: 15px; line-height: 1.6;
}
.callout-info  { background: var(--h-purple-faint); border: 1px solid var(--h-purple-faint2); color: var(--h-purple-dark); }
.callout-warn  { background: #FFF7F5; border: 1px solid #FFD4CA; border-left: 3px solid var(--h-accent); color: #6B2A1A; }
.callout-tip   { background: #ECFDF5; border: 1px solid #B7EBD5; color: #064E3B; }
.callout-ico {
  width: 36px; height: 36px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.callout-info .callout-ico { background: var(--h-purple); color: #fff; }
.callout-warn .callout-ico { background: var(--h-accent); color: #fff; }
.callout-tip  .callout-ico { background: var(--h-green); color: #fff; }
.callout-ico svg { width: 18px; height: 18px; }
.callout-body strong { display: block; margin-bottom: 4px; font-weight: 700; color: inherit; }
.callout-body p { margin: 0; color: inherit; font-size: 14.5px; }

/* Pull quote */
.pullquote {
  border-top: 1px solid var(--h-border); border-bottom: 1px solid var(--h-border);
  padding: 36px 0; margin: 40px 0;
}
.pullquote-mark {
  font-size: 60px; line-height: 0.5; color: var(--h-purple);
  font-weight: 800; opacity: .35; margin-bottom: 10px;
}
.pullquote-text {
  font-size: 26px; font-weight: 700; line-height: 1.3; letter-spacing: -.4px;
  color: var(--h-text); margin: 0 0 14px; text-wrap: balance;
}
.pullquote-text em { color: var(--h-purple); font-style: normal; }
.pullquote-cite {
  font-size: 12.5px; color: var(--h-muted); letter-spacing: .04em;
  text-transform: uppercase; font-weight: 600;
}

/* Compare 2-col block */
.compare {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin: 28px 0;
}
.compare-card { border-radius: 14px; padding: 22px; border: 1px solid; }
.compare-card.in  { background: var(--h-purple-faint); border-color: var(--h-purple-faint2); }
.compare-card.out { background: #FBFAFD; border-color: var(--h-border); }
.compare-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.compare-tag {
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 700; padding: 4px 9px; border-radius: 6px;
}
.compare-card.in .compare-tag { background: var(--h-purple); color: #fff; }
.compare-card.out .compare-tag { background: var(--h-muted); color: #fff; }
.compare-title { font-size: 16px; font-weight: 700; color: var(--h-text); }
.compare-list { list-style: none; padding: 0; margin: 0; }
.compare-list li {
  display: grid; grid-template-columns: 18px 1fr; gap: 10px;
  padding: 8px 0; font-size: 14px; color: var(--h-text-2); line-height: 1.4;
  border-top: 1px solid rgba(124,58,237,0.06);
}
.compare-list li:first-child { border-top: none; padding-top: 4px; }
.compare-card.in li::before { content: '✓'; color: var(--h-purple); font-weight: 700; line-height: 1.4; }
.compare-card.out li::before { content: '✕'; color: var(--h-muted); font-weight: 700; line-height: 1.4; }

/* Timeline */
.timeline { position: relative; margin: 32px 0; padding: 8px 0; }
.timeline-track {
  position: absolute; left: 0; right: 0; top: 64px; height: 2px;
  background: var(--h-border);
}
.timeline-track::before {
  content: ''; position: absolute; left: 0; top: 0; height: 100%;
  width: 45%; background: linear-gradient(90deg, var(--h-purple) 0%, var(--h-purple-light) 100%);
}
.timeline-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.tl-step { position: relative; padding-top: 0; }
.tl-date {
  font-family: 'IBM Plex Mono', 'SF Mono', monospace; font-size: 11px; font-weight: 600;
  color: var(--h-muted); margin-bottom: 14px; letter-spacing: .02em; font-feature-settings: "tnum" 1;
}
.tl-dot {
  width: 14px; height: 14px; border-radius: 50%; background: #fff;
  border: 3px solid var(--h-border); margin-bottom: 16px;
  position: relative; z-index: 2;
}
.tl-step.done .tl-dot { background: var(--h-purple); border-color: var(--h-purple); }
.tl-step.now  .tl-dot {
  background: #fff; border-color: var(--h-purple);
  box-shadow: 0 0 0 4px rgba(124,58,237,0.18);
}
.tl-step.now  .tl-dot::after {
  content: ''; position: absolute; inset: 2px; border-radius: 50%; background: var(--h-purple);
  animation: pulseDot 2s infinite;
}
@keyframes pulseDot { 0%,100% { opacity: 1; } 50% { opacity: .4; } }
.tl-step.done .tl-date { color: var(--h-purple); }
.tl-step.now .tl-date { color: var(--h-purple); font-weight: 700; }
.tl-title { font-size: 13.5px; font-weight: 700; color: var(--h-text); line-height: 1.3; margin-bottom: 4px; }
.tl-body { font-size: 12.5px; color: var(--h-muted); line-height: 1.45; }

/* Stat callout (inline) */
.statcall {
  display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center;
  border-left: 4px solid var(--h-purple); padding: 14px 0 14px 22px; margin: 28px 0;
}
.statcall-num {
  font-size: 56px; font-weight: 800;
  line-height: 0.95; letter-spacing: -2px; color: var(--h-purple);
  font-feature-settings: "tnum" 1;
}
.statcall-title { font-size: 16px; font-weight: 700; color: var(--h-text); margin-bottom: 4px; }
.statcall-sub { font-size: 14px; color: var(--h-muted); line-height: 1.5; }

/* Comparison table (component) */
.comp-table-wrap {
  border: 1px solid var(--h-border); border-radius: 16px; overflow: hidden;
  margin: 28px 0; background: #fff;
}
.comp-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.comp-table th, .comp-table td { padding: 16px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--h-border); }
.comp-table thead th {
  background: var(--h-bg-2); font-weight: 700; color: var(--h-text);
  font-size: 14px; border-bottom: 2px solid var(--h-border);
}
.comp-table thead th:first-child { width: 26%; }
.comp-table .col-h { display: flex; align-items: center; gap: 10px; }
.comp-table .col-tag {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 7px; color: #fff; font-weight: 700; font-size: 11px;
  font-family: 'IBM Plex Mono', 'SF Mono', monospace;
}
.comp-table .col-tag.a { background: var(--h-purple); }
.comp-table .col-tag.b { background: var(--h-dark); }
.comp-table .col-tag.c { background: #DC2626; /* error-500 */ }
.comp-table tbody tr:hover { background: var(--h-purple-faint); }
.comp-table tbody tr:last-child td { border-bottom: none; }
.comp-table tbody td:first-child { font-weight: 600; color: var(--h-text); }
.comp-table tbody td { color: var(--h-text-2); font-size: 13.5px; line-height: 1.55; }

/* Decision flow */
.flow {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  margin: 28px 0; position: relative;
}
.flow-step {
  background: #fff; border: 1px solid var(--h-border); border-radius: 12px;
  padding: 18px; position: relative; transition: all .2s;
}
.flow-step:hover { border-color: var(--h-purple-light); box-shadow: 0 4px 14px rgba(124,58,237,0.08); }
.flow-num {
  font-family: 'IBM Plex Mono', 'SF Mono', monospace; font-size: 11px; font-weight: 700;
  color: var(--h-purple); letter-spacing: .04em; margin-bottom: 10px;
}
.flow-actor { font-size: 13.5px; font-weight: 700; color: var(--h-text); margin-bottom: 4px; }
.flow-desc { font-size: 12px; color: var(--h-muted); line-height: 1.45; }
.flow-arrow {
  position: absolute; top: 50%; right: -10px; transform: translateY(-50%);
  width: 20px; height: 20px; background: var(--h-bg); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--h-purple); z-index: 2; font-weight: 800;
}
.flow-step:last-child .flow-arrow { display: none; }

/* Twin peaks diagram */
.twin-peaks {
  border: 1px solid var(--h-border); border-radius: 16px;
  padding: 28px; background: linear-gradient(180deg, #fff 0%, var(--h-bg-2) 100%);
  margin: 32px 0;
}
.tp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; gap: 10px; }
.tp-eyebrow {
  font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--h-purple); font-weight: 700;
}
.tp-title { font-size: 19px; font-weight: 700; color: var(--h-text); margin: 4px 0 0; }
.tp-legend { display: flex; gap: 14px; font-size: 11.5px; color: var(--h-muted); }
.tp-legend span { display: flex; align-items: center; gap: 6px; }
.tp-legend i { width: 9px; height: 9px; border-radius: 2px; }
.tp-grid { display: grid; grid-template-columns: 1fr 80px 1fr; gap: 0; align-items: stretch; }
.tp-pillar { border-radius: 12px; padding: 20px; color: #fff; position: relative; overflow: hidden; }
.tp-pillar.fsma { background: var(--h-purple); }
.tp-pillar.nbb  { background: var(--h-dark); }
.tp-pillar::before {
  content: ''; position: absolute; bottom: -30%; left: -10%; width: 60%; height: 60%;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.tp-name { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; opacity: .7; margin-bottom: 4px; position: relative; }
.tp-org { font-size: 24px; font-weight: 800; line-height: 1; margin-bottom: 14px; letter-spacing: -.6px; position: relative; }
.tp-role { font-size: 13px; font-weight: 600; margin-bottom: 14px; opacity: .9; position: relative; }
.tp-list { list-style: none; padding: 0; margin: 0; position: relative; }
.tp-list li { font-size: 12.5px; padding: 6px 0; border-top: 1px solid rgba(255,255,255,0.12); line-height: 1.4; }
.tp-list li:first-child { border-top: none; padding-top: 2px; }
.tp-middle {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  padding: 0 8px; position: relative;
}
.tp-arrow { font-size: 22px; color: var(--h-muted-2); }
.tp-label-mid {
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--h-muted); font-weight: 700; text-align: center;
}
.tp-coord {
  background: var(--h-purple-faint); color: var(--h-purple);
  border-radius: 100px; padding: 4px 10px; font-size: 11px; font-weight: 700;
  white-space: nowrap;
}

/* === Disclaimer band === */
.section-divider {
  background: var(--h-purple-faint);
  border-top: 1px solid var(--h-purple-faint2); border-bottom: 1px solid var(--h-purple-faint2);
  padding: 30px 0; margin-top: 80px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.disclaimer-row {
  display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start;
  max-width: 760px; margin: 0 auto; padding: 0 24px;
}
.disclaimer-icon {
  width: 36px; height: 36px; border-radius: 9px;
  background: var(--h-purple); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.disclaimer-icon svg { width: 18px; height: 18px; }
.disclaimer-row p { margin: 0; font-size: 14px; color: var(--h-purple-dark); line-height: 1.6; }
.disclaimer-row strong {
  color: var(--h-text); font-weight: 700; display: block; margin-bottom: 4px;
  font-size: 13px; letter-spacing: .04em; text-transform: uppercase;
}

/* === Author bio === */
.author-bio-wrap {
  background: var(--h-bg-2); padding: 64px 0; border-top: 1px solid var(--h-border);
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.author-bio {
  max-width: 760px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 88px 1fr; gap: 24px; align-items: start;
}
.author-bio-avatar {
  width: 88px; height: 88px; border-radius: 50%;
  background: linear-gradient(135deg, var(--h-purple) 0%, var(--h-purple-light) 100%);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 30px;
  box-shadow: 0 8px 24px rgba(124,58,237,0.28);
  overflow: hidden;
}
.author-bio-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.author-bio-eyebrow {
  font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--h-purple); font-weight: 700; margin-bottom: 6px;
}
.author-bio-name {
  font-size: 22px; font-weight: 800; margin: 0 0 4px;
  letter-spacing: -.3px; color: var(--h-text);
}
.author-bio-role { font-size: 14px; color: var(--h-muted); margin: 0 0 12px; }
.author-bio-text { font-size: 14.5px; color: var(--h-text-2); line-height: 1.6; margin: 0 0 14px; }

/* === Related articles === */
.related-wrap { padding: 80px 0; background: #fff; font-family: 'Plus Jakarta Sans', sans-serif; }
.related-wrap-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.related-head {
  display: flex; justify-content: space-between; align-items: end; gap: 24px;
  margin-bottom: 32px; flex-wrap: wrap;
}
.related-eyebrow {
  font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--h-purple); font-weight: 700; margin-bottom: 8px;
}
.related-title {
  font-size: 32px; font-weight: 800; letter-spacing: -.8px; margin: 0; color: var(--h-text);
}
.related-all {
  font-size: 14px; font-weight: 600; color: var(--h-purple);
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
}
.related-all svg { width: 14px; height: 14px; transition: transform .15s; }
.related-all:hover svg { transform: translateX(3px); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.related-card {
  background: #fff; border: 1px solid var(--h-border); border-radius: 16px;
  overflow: hidden; transition: all .2s; display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
}
.related-card:hover {
  border-color: var(--h-purple-light); transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(124,58,237,0.10);
}
.related-thumb {
  aspect-ratio: 16 / 10; position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--h-purple) 0%, var(--h-purple-light) 100%);
  display: flex; align-items: center; justify-content: center;
}
.related-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.related-thumb-placeholder {
  font-size: 36px; font-weight: 800; color: rgba(255,255,255,0.85);
  letter-spacing: -1px;
}
.related-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.related-cat {
  font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--h-purple); font-weight: 700;
}
.related-h {
  font-size: 18px; font-weight: 700; line-height: 1.3;
  color: var(--h-text); margin: 0; letter-spacing: -.2px;
}
.related-deck { font-size: 13.5px; color: var(--h-muted); line-height: 1.55; margin: 0; flex: 1; }
.related-meta {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; color: var(--h-muted);
  padding-top: 12px; border-top: 1px solid var(--h-border);
}
.related-meta svg { width: 12px; height: 12px; opacity: .6; }

/* === Big CTA === */
.big-cta {
  background: var(--h-dark); color: #fff;
  padding: 80px 0; position: relative; overflow: hidden;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.big-cta::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 20%, rgba(124,58,237,0.35) 0%, transparent 70%);
  pointer-events: none;
}
.big-cta::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse 60% 80% at 50% 50%, #000 30%, transparent 80%);
          mask-image: radial-gradient(ellipse 60% 80% at 50% 50%, #000 30%, transparent 80%);
}
.big-cta-inner {
  position: relative; z-index: 2;
  max-width: 760px; margin: 0 auto; padding: 0 24px; text-align: center;
}
.big-cta-eyebrow {
  font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--h-purple-light); font-weight: 700; margin-bottom: 16px;
}
.big-cta h2 {
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 800;
  letter-spacing: -1.3px; line-height: 1.08; margin: 0 0 18px;
  text-wrap: balance; color: #fff;
}
.big-cta h2 em { color: var(--h-purple-light); font-style: normal; }
.big-cta p {
  font-size: 17px; color: rgba(255,255,255,0.72);
  margin: 0 auto 32px; max-width: 540px;
}
.big-cta .ctas {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 24px;
}
.big-cta-trust {
  display: inline-flex; gap: 16px; font-size: 12.5px;
  color: rgba(255,255,255,0.5); flex-wrap: wrap; justify-content: center;
}
.big-cta-trust span { display: inline-flex; align-items: center; gap: 6px; }
.big-cta-trust svg { width: 12px; height: 12px; color: var(--h-green); }

.btn-prim {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--h-purple); color: #fff; font-weight: 700; font-size: 15px;
  padding: 14px 24px; border-radius: 10px; cursor: pointer; border: none;
  box-shadow: 0 6px 22px rgba(124,58,237,0.4); transition: all .2s;
  text-decoration: none;
}
.btn-prim:hover {
  background: var(--h-purple-light); transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(124,58,237,0.55);
}
.btn-prim svg { width: 14px; height: 14px; transition: transform .2s; }
.btn-prim:hover svg { transform: translateX(3px); }
.btn-sec {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.08); color: #fff; font-weight: 600; font-size: 15px;
  padding: 14px 20px; border-radius: 10px; cursor: pointer;
  border: 1px solid rgba(255,255,255,0.18); transition: all .2s;
  text-decoration: none;
}
.btn-sec:hover { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.3); }

/* === Responsive === */
@media (max-width: 1180px) {
  :root { --side-col: 200px; }
  .body-grid { gap: 36px; }
}
@media (max-width: 1080px) {
  .body-grid { grid-template-columns: var(--side-col) minmax(0, 1fr); gap: 36px; }
  .rail-col { display: none; }
}
@media (max-width: 880px) {
  .art-hero { padding-top: 36px; }
  .art-hero-inner { grid-template-columns: 1fr; gap: 40px; padding-bottom: 48px; }
  .hero-visual { aspect-ratio: auto; height: 320px; }
  .hero-visual-img { transform: rotate(0deg); width: 100%; max-width: 380px; }
  .facts-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 0; }
  .fact { padding: 0 16px; }
  .body-grid { grid-template-columns: 1fr; gap: 24px; }
  .toc-col { display: none; }
  .wide { width: 100%; margin-left: 0; }
  .related-grid { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr 1fr; }
  .timeline-row { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .timeline-track { display: none; }
  .article h2 { font-size: 26px; margin-top: 44px; }
  .article h3 { font-size: 19px; }
}
@media (max-width: 560px) {
  .compare, .tp-grid { grid-template-columns: 1fr; }
  .tp-middle { padding: 8px 0; flex-direction: row; }
  .flow { grid-template-columns: 1fr; }
  .statcall-num { font-size: 40px; }
  .related-grid { grid-template-columns: 1fr; }
  .art-title { font-size: 1.9rem; letter-spacing: -.8px; }
  .art-deck { font-size: 16px; }
  .article { font-size: 16px; }
  /* Long Dutch compounds ("meerwaardebelasting") must not push a multi-column table past the viewport. */
  .article table { font-size: 13.5px; }
  .article thead th, .article tbody td { padding: 10px 8px; hyphens: auto; overflow-wrap: anywhere; }
  .article thead th:first-child { width: 30%; }
  body[data-dropcap="on"] .lead::first-letter {
    font-size: 56px; padding: 4px 10px 0 0;
  }
  .author-bio { grid-template-columns: 1fr; text-align: left; }
  .author-bio-avatar { width: 72px; height: 72px; font-size: 24px; }
}

/* Sepia reading mode (optional - toggled via body[data-theme]) */
body[data-theme="sepia"] .body-wrap { background: #FBF7F0; }
body[data-theme="sepia"] .article, body[data-theme="sepia"] .lead { color: #2E2618; }
body[data-theme="sepia"] .art-hero { background: #FBF7F0; }
