/* ============================================================
   Provy Knowledge Center — shared design system
   Light B2B, derived from the provy.ai brand tokens.
   Fonts: Inter (text), JetBrains Mono (labels/code).
   All pages link this one file. Do not fork per page.
   ============================================================ */

:root {
  /* Surfaces */
  --bg:        #ECEEF2;
  --canvas:    #F5F6F9;
  --panel:     #ffffff;
  --line:      #E6E9EF;
  --line2:     #D7DBE3;

  /* Ink */
  --ink:  #0F1729;
  --mut:  #4A5468;
  --dim:  #8A93A6;

  /* Accent (purple) + semantic */
  --pur:   #6D28D9;
  --pur2:  #7c6af7;
  --purbg: #F3EDFD;
  --purln: #E4D8FB;
  --grn:   #15803D;  --grnbg:#E7F5EC;  --grnln:#D4EDDC;
  --red:   #DC2626;  --redbg:#FBEAEA;  --redln:#F5D6D6;
  --amb:   #B45309;  --ambbg:#FBF1DA;  --ambln:#F1E2BE;
  --blu:   #2563EB;  --blubg:#E8EFFE;

  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --wrap: 1140px;
  --read: 720px;     /* long-form measure */
  --radius: 12px;

  --shadow-sm: 0 1px 2px rgba(15,23,41,.05);
  --shadow-md: 0 16px 34px -18px rgba(30,20,80,.30);
  --shadow-lg: 0 44px 92px -44px rgba(90,60,190,.42);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background:
    radial-gradient(880px 460px at 82% -12%, rgba(124,106,247,.14), transparent 58%),
    radial-gradient(700px 400px at 0% -6%, rgba(96,165,250,.08), transparent 55%),
    var(--bg);
  background-attachment: fixed;
}

a { color: var(--pur); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 26px; }
.mono { font-family: var(--mono); }

/* ---------- Top navigation ---------- */
.kc-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(236,238,242,.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(15,23,41,.03);
}
.kc-nav .row {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.kc-brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 17px; letter-spacing: -.3px;
  color: var(--ink) !important; text-decoration: none !important;
}
.kc-brand .mk {
  width: 26px; height: 26px;
  display: inline-block; vertical-align: middle;
  filter: drop-shadow(0 3px 8px rgba(109,40,217,.35));
}
.kc-brand .kc-tag {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  color: var(--dim); letter-spacing: .02em;
  padding-left: 11px; margin-left: 3px; border-left: 1px solid var(--line2);
}
.kc-links { display: flex; align-items: center; gap: 22px; }
.kc-links a {
  font-size: 13.5px; color: var(--mut); font-weight: 500; text-decoration: none;
}
.kc-links a:hover { color: var(--ink); text-decoration: none; }
.kc-links a.active { color: var(--pur); }
.kc-cta {
  background: linear-gradient(135deg,#7c3aed,#6d28d9); color: #fff !important;
  font-weight: 600; font-size: 13.5px; padding: 8px 15px; border-radius: 8px;
  box-shadow: 0 6px 18px -6px rgba(109,40,217,.55);
}
.kc-cta:hover { text-decoration: none !important; transform: translateY(-1px); }

@media (max-width: 820px) {
  .kc-links a:not(.kc-cta) { display: none; }
}

/* ---------- Breadcrumb ---------- */
.crumb {
  font-family: var(--mono); font-size: 11.5px; color: var(--dim);
  letter-spacing: .02em; margin-bottom: 22px;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.crumb a { color: var(--dim); }
.crumb a:hover { color: var(--pur); text-decoration: none; }
.crumb .sep { color: var(--line2); }

/* ---------- Eyebrow / kicker ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px; color: var(--pur);
  text-transform: uppercase; letter-spacing: .09em;
  background: rgba(124,106,247,.07); border: 1px solid var(--purln);
  border-radius: 20px; padding: 5px 12px;
}
.eyebrow .sq { width: 7px; height: 7px; background: var(--pur); border-radius: 2px; }
.kicker {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .09em;
  text-transform: uppercase; color: var(--pur); margin: 0 0 12px;
}

/* ---------- Type scale ---------- */
h1, h2, h3, h4 { letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: 44px; line-height: 1.06; font-weight: 800; margin: 0 0 18px; letter-spacing: -1.6px; }
h2 { font-size: 27px; line-height: 1.2; font-weight: 800; margin: 52px 0 14px; letter-spacing: -.7px; }
h3 { font-size: 19px; line-height: 1.3; font-weight: 700; margin: 34px 0 10px; letter-spacing: -.3px; }
h4 { font-size: 15px; line-height: 1.4; font-weight: 700; margin: 24px 0 8px; }
.display { font-size: 54px; line-height: 1.02; letter-spacing: -2px; }
.grad { background: linear-gradient(118deg,#7c3aed,#a78bfa); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ---------- Long-form article body ---------- */
.prose { max-width: var(--read); }
.prose > p,
.prose > ul,
.prose > ol { font-size: 17px; line-height: 1.72; color: #23304A; margin: 0 0 20px; }
.prose li { margin: 0 0 8px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li::marker { color: var(--dim); }
.prose strong { color: var(--ink); font-weight: 700; }
.prose a { border-bottom: 1px solid var(--purln); }
.prose a:hover { border-bottom-color: var(--pur); text-decoration: none; }
.prose .lead {
  font-size: 21px; line-height: 1.55; color: var(--mut); font-weight: 400;
  margin: 0 0 28px;
}
.prose h2:first-of-type { margin-top: 40px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 44px 0; }

/* Section anchor link on hover */
.anchor-h { position: relative; scroll-margin-top: 84px; }

/* ---------- Article header meta ---------- */
.art-head { max-width: var(--read); margin-bottom: 8px; }
.art-meta {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  font-size: 13px; color: var(--dim); margin-top: 18px;
  padding-top: 18px; border-top: 1px solid var(--line);
}
.art-meta .who { display: flex; align-items: center; gap: 9px; color: var(--mut); font-weight: 500; }
.art-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--line2); }
.art-meta .pill {
  font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--pur); background: var(--purbg); border: 1px solid var(--purln);
  border-radius: 5px; padding: 2px 7px;
}

/* ---------- Pull quote ---------- */
.pull {
  max-width: var(--read); margin: 36px 0;
  font-size: 24px; line-height: 1.4; font-weight: 600; letter-spacing: -.4px;
  color: var(--ink); border-left: 3px solid var(--pur); padding-left: 22px;
}

/* ---------- Callouts ---------- */
.callout {
  max-width: var(--read); margin: 28px 0; padding: 18px 20px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--panel);
  font-size: 15px; line-height: 1.62; color: var(--mut);
}
.callout .ct {
  font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em;
  font-weight: 600; margin-bottom: 8px; display: flex; align-items: center; gap: 8px;
}
.callout p:last-child { margin-bottom: 0; }
.callout.key   { background: var(--purbg); border-color: var(--purln); }
.callout.key .ct   { color: var(--pur); }
.callout.note  { background: var(--blubg); border-color: #CFE0FC; }
.callout.note .ct  { color: var(--blu); }
.callout.watch { background: var(--ambbg); border-color: var(--ambln); }
.callout.watch .ct { color: var(--amb); }
.callout.boundary { background: var(--canvas); border-style: dashed; border-color: var(--line2); }
.callout.boundary .ct { color: var(--dim); }

/* ---------- Definition box (glossary + inline) ---------- */
.defbox {
  max-width: var(--read); margin: 26px 0; padding: 22px 24px;
  background: var(--panel); border: 1px solid var(--line2); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.defbox .term {
  font-size: 13px; font-family: var(--mono); text-transform: uppercase; letter-spacing: .06em;
  color: var(--pur); margin-bottom: 8px;
}
.defbox .oneline { font-size: 18px; line-height: 1.5; color: var(--ink); font-weight: 500; margin: 0; }

/* ---------- Figure / diagram frame ---------- */
figure.kc-fig { max-width: var(--read); margin: 32px 0; }
.kc-fig .frame {
  background: var(--panel); border: 1px solid var(--line2); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow-sm);
  background-image: radial-gradient(rgba(15,23,41,.04) 1px, transparent 1px);
  background-size: 18px 18px;
}
.kc-fig figcaption {
  font-size: 13px; color: var(--dim); margin-top: 11px; padding-left: 2px;
}
.kc-fig figcaption b { color: var(--mut); font-weight: 600; }

/* Ladder diagram (agent decision -> outcome -> business) */
.ladder { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch; gap: 10px; }
.ladder .node {
  background: var(--canvas); border: 1px solid var(--line); border-radius: 10px; padding: 14px 15px;
}
.ladder .node .k { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 3px; letter-spacing: -.2px; }
.ladder .node .t { font-size: 12.5px; color: var(--mut); line-height: 1.5; }
.ladder .arw { display: flex; align-items: center; justify-content: center; color: var(--dim); font-size: 18px; }
@media (max-width: 640px) {
  .ladder { grid-template-columns: 1fr; }
  .ladder .arw { transform: rotate(90deg); padding: 2px 0; }
}

/* Two-column compare table (e.g., observability vs assurance) */
.kc-compare { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 6px 0; }
.kc-compare th, .kc-compare td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.kc-compare thead th { font-size: 11px; font-family: var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--dim); border-bottom: 1px solid var(--line2); }
.kc-compare tbody td:first-child { color: var(--mut); font-weight: 600; width: 34%; }
.kc-compare .yes { color: var(--grn); font-weight: 600; }
.kc-compare .no  { color: var(--red); font-weight: 600; }

/* ---------- Table of contents (sticky sidebar) ---------- */
.art-grid { display: grid; grid-template-columns: 1fr; gap: 0; }
@media (min-width: 1040px) {
  .art-grid { grid-template-columns: minmax(0,1fr) 232px; gap: 56px; align-items: start; }
  .art-grid .toc-col { order: 2; }
  .art-grid .body-col { order: 1; min-width: 0; }
}
.toc {
  position: sticky; top: 84px;
  font-size: 13px; padding-left: 16px; border-left: 1px solid var(--line);
}
.toc .lbl { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); margin-bottom: 12px; }
.toc a { display: block; color: var(--mut); padding: 5px 0; line-height: 1.4; text-decoration: none; border: 0; }
.toc a:hover { color: var(--pur); }
.toc a.sub { padding-left: 14px; font-size: 12.5px; color: var(--dim); }
.toc a.on { color: var(--pur); font-weight: 600; box-shadow: inset 2px 0 0 var(--pur); padding-left: 10px; margin-left: -12px; }
@media (max-width: 1039px) { .toc-col { display: none; } }

/* ---------- Cards (research, insight, glossary, reference) ---------- */
.card-grid { display: grid; gap: 18px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .cols-2, .cols-3 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .cols-4 { grid-template-columns: 1fr; } }

/* Compact role-path card (hub) */
.pathcard { padding: 18px 18px; }
.pathcard .role { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--dim); margin-bottom: 9px; }
.pathcard h3 { font-size: 15px; margin: 0 0 6px; }
.pathcard p { font-size: 13px; }

.kc-card {
  display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 22px; text-decoration: none !important; color: inherit;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
  box-shadow: var(--shadow-sm);
}
.kc-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--purln); }
.kc-card .tag {
  font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em;
  color: var(--pur); margin-bottom: 11px;
}
.kc-card h3 { font-size: 18px; font-weight: 700; margin: 0 0 8px; letter-spacing: -.3px; color: var(--ink); }
.kc-card p { font-size: 14px; color: var(--mut); margin: 0; line-height: 1.6; }
.kc-card .meta {
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--dim); display: flex; align-items: center; gap: 10px;
}
.kc-card .arrow { margin-top: auto; padding-top: 16px; color: var(--pur); font-size: 13px; font-weight: 600; }

/* Featured card (larger, for the anchor publication) */
.kc-card.feat {
  grid-column: 1 / -1;
  background:
    radial-gradient(600px 240px at 88% -30%, rgba(124,106,247,.12), transparent 60%),
    var(--panel);
  padding: 30px 30px;
}
.kc-card.feat h3 { font-size: 26px; letter-spacing: -.6px; }
.kc-card.feat p { font-size: 15.5px; max-width: 620px; }

/* ---------- Tag chips ---------- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  font-size: 12.5px; font-weight: 600; color: var(--mut);
  background: var(--panel); border: 1px solid var(--line2); border-radius: 7px; padding: 5px 11px;
  text-decoration: none;
}
.chip:hover { border-color: var(--purln); color: var(--pur); text-decoration: none; }
.chip.on { background: var(--purbg); border-color: var(--purln); color: var(--pur); }

/* ---------- Related rail ---------- */
.related { max-width: var(--read); margin: 48px 0 0; padding-top: 28px; border-top: 1px solid var(--line); }
.related .lbl { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); margin-bottom: 16px; }

/* ---------- Section header (index pages) ---------- */
.sec-head { max-width: 760px; margin-bottom: 30px; }
.sec-head h2 { margin-top: 0; }
.sec-head p { font-size: 17px; color: var(--mut); line-height: 1.6; }

.sec-band { border-top: 1px solid var(--line); padding: 64px 0; }
.sec-band:first-of-type { border-top: 0; }

/* ---------- Glossary index (alpha list) ---------- */
.gloss-list { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px 40px; }
@media (max-width: 720px) { .gloss-list { grid-template-columns: 1fr; } }
.gloss-item { padding: 14px 0; border-top: 1px solid var(--line); }
.gloss-item a { font-size: 16px; font-weight: 700; color: var(--ink); letter-spacing: -.2px; }
.gloss-item a:hover { color: var(--pur); text-decoration: none; }
.gloss-item p { font-size: 13.5px; color: var(--mut); margin: 4px 0 0; line-height: 1.55; }

/* ---------- CTA band ---------- */
.cta-band {
  max-width: var(--read); margin: 52px 0 0; padding: 28px 28px;
  border: 1px solid var(--purln); border-radius: var(--radius);
  background: linear-gradient(135deg, var(--purbg), rgba(255,255,255,.6));
}
.cta-band h3 { margin: 0 0 6px; font-size: 19px; }
.cta-band p { margin: 0 0 16px; font-size: 14.5px; color: var(--mut); }
.btn {
  display: inline-block; background: linear-gradient(135deg,#7c3aed,#6d28d9); color: #fff !important;
  font-weight: 600; font-size: 14px; padding: 10px 18px; border-radius: 8px;
  box-shadow: 0 6px 18px -6px rgba(109,40,217,.55); text-decoration: none !important;
}
.btn:hover { transform: translateY(-1px); }
.btn-o {
  display: inline-block; background: #fff; color: var(--ink) !important; border: 1px solid var(--line2);
  font-weight: 600; font-size: 14px; padding: 9px 17px; border-radius: 8px; text-decoration: none !important;
}

/* ---------- Footer ---------- */
.kc-foot { border-top: 1px solid var(--line); margin-top: 72px; padding: 40px 0 48px; background: rgba(255,255,255,.4); }
.kc-foot .grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; }
@media (max-width: 820px) { .kc-foot .grid { grid-template-columns: 1fr 1fr; } }
.kc-foot h5 { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); margin: 0 0 12px; font-weight: 600; }
.kc-foot a { display: block; font-size: 13.5px; color: var(--mut); padding: 4px 0; text-decoration: none; }
.kc-foot a:hover { color: var(--pur); }
.kc-foot .brandcol .desc { font-size: 13px; color: var(--dim); line-height: 1.6; margin: 10px 0 0; max-width: 240px; }
.kc-foot .base { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--dim); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Utility ---------- */
.muted { color: var(--mut); }
.dim { color: var(--dim); }
.center { text-align: center; }
.hero-pad { padding: 60px 0 20px; }
.stack-sm > * + * { margin-top: 10px; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto; }
}

/* ---------- Print (PDF export of publications) ---------- */
@media print {
  .kc-nav, .kc-foot, .toc-col, .cta-band, .crumb { display: none; }
  body { background: #fff; }
  .prose { max-width: 100%; }
  a { color: var(--ink); border: 0 !important; }
}


/* ============================================================
   V2 additions: learning journey, journal apparatus, concept spine
   ============================================================ */
/* ---------- Learning journey: numbered path (Start Here + page footers) ---------- */
.journey { max-width: 760px; margin: 8px 0 0; }
.jstep {
  display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: stretch;
  text-decoration: none !important; color: inherit;
}
.jstep .rail { display: flex; flex-direction: column; align-items: center; }
.jstep .num {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 13px; font-weight: 600;
  background: var(--purbg); color: var(--pur); border: 1px solid var(--purln);
}
.jstep .line { width: 2px; flex: 1; background: var(--line2); margin: 4px 0; }
.jstep:last-child .line { display: none; }
.jstep .body {
  padding: 4px 0 22px; border-bottom: 0;
}
.jstep .body .k { font-size: 16px; font-weight: 700; color: var(--ink); letter-spacing: -.2px; margin-bottom: 2px; }
.jstep .body .t { font-size: 13.5px; color: var(--mut); line-height: 1.55; }
.jstep .body .tag { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--dim); margin-bottom: 6px; }
.jstep:hover .num { background: var(--pur); color: #fff; }
.jstep:hover .body .k { color: var(--pur); }

/* Advanced/applied row at the end of the path */
.jadv { display: grid; grid-template-columns: 40px 1fr; gap: 16px; margin-top: 2px; }
.jadv .num { width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; background: var(--canvas); border: 1px dashed var(--line2); color: var(--dim); }
.jadv .body .k { font-size: 14px; font-weight: 700; color: var(--mut); margin-bottom: 6px; }

/* ---------- Continue-the-path (prev/next) ---------- */
.pathnav { max-width: var(--read); margin: 44px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px){ .pathnav { grid-template-columns: 1fr; } }
.pathnav a {
  display: block; padding: 16px 18px; border: 1px solid var(--line2); border-radius: 10px;
  background: var(--panel); text-decoration: none !important; box-shadow: var(--shadow-sm);
  transition: border-color .15s ease, transform .15s ease;
}
.pathnav a:hover { border-color: var(--purln); transform: translateY(-1px); }
.pathnav .dir { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--dim); margin-bottom: 6px; }
.pathnav .ttl { font-size: 15px; font-weight: 700; color: var(--ink); letter-spacing: -.2px; }
.pathnav .next { text-align: right; border-color: var(--purln); background: linear-gradient(135deg, var(--purbg), rgba(255,255,255,.6)); }
.pathnav .next .dir { color: var(--pur); }

/* ---------- Journal apparatus (research) ---------- */
.abstract {
  max-width: var(--read); margin: 26px 0; padding: 20px 22px;
  border-left: 3px solid var(--pur); background: var(--canvas); border-radius: 0 10px 10px 0;
}
.abstract .lbl { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--pur); margin-bottom: 8px; }
.abstract p { font-size: 16px; line-height: 1.62; color: #23304A; margin: 0; }

.takeaways {
  max-width: var(--read); margin: 30px 0; padding: 22px 24px;
  background: var(--panel); border: 1px solid var(--line2); border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.takeaways .lbl { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); margin-bottom: 14px; }
.takeaways ol { margin: 0; padding-left: 0; list-style: none; counter-reset: t; }
.takeaways li { position: relative; padding: 0 0 12px 34px; counter-increment: t; font-size: 15px; line-height: 1.55; color: var(--ink); }
.takeaways li:last-child { padding-bottom: 0; }
.takeaways li::before {
  content: counter(t); position: absolute; left: 0; top: 0;
  width: 22px; height: 22px; border-radius: 6px; background: var(--purbg); color: var(--pur);
  border: 1px solid var(--purln); font-family: var(--mono); font-size: 11px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}

/* Metadata bar with version */
.pubmeta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--dim); margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.pubmeta .ver { font-family: var(--mono); font-size: 11px; color: var(--mut); background: var(--canvas); border: 1px solid var(--line2); border-radius: 5px; padding: 2px 8px; }
.pubmeta .pill { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--pur); background: var(--purbg); border: 1px solid var(--purln); border-radius: 5px; padding: 2px 7px; }
.pubmeta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--line2); }
.pubmeta .pdf { margin-left: auto; }
.pubmeta .pdf a { font-size: 12.5px; font-weight: 600; color: var(--pur); border: 1px solid var(--purln); border-radius: 7px; padding: 6px 12px; text-decoration: none; }

/* Footnotes + references + citation */
.footnote-ref { font-size: 11px; vertical-align: super; color: var(--pur); font-weight: 600; text-decoration: none; padding: 0 1px; }
.apparatus { max-width: var(--read); margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.apparatus h3 { font-size: 13px; font-family: var(--mono); text-transform: uppercase; letter-spacing: .07em; color: var(--dim); margin: 28px 0 12px; font-weight: 600; }
.apparatus ol.refs { font-size: 13.5px; color: var(--mut); line-height: 1.6; padding-left: 20px; }
.apparatus ol.refs li { margin-bottom: 8px; }
.apparatus ol.notes { font-size: 13px; color: var(--mut); line-height: 1.55; padding-left: 20px; }
.apparatus ol.notes li { margin-bottom: 7px; }
.citation { background: var(--canvas); border: 1px solid var(--line2); border-radius: 10px; padding: 16px 18px; font-family: var(--mono); font-size: 12.5px; color: var(--mut); line-height: 1.6; }
.concepts-in { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Concept "where it fits" mini-diagram ---------- */
.fits { max-width: var(--read); margin: 24px 0; }
.fits .rung {
  display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 8px; align-items: center;
}
.fits .cell { background: var(--canvas); border: 1px solid var(--line); border-radius: 9px; padding: 12px 12px; text-align: center; font-size: 13px; font-weight: 600; color: var(--mut); }
.fits .cell.on { background: var(--purbg); border-color: var(--purln); color: var(--pur); box-shadow: 0 0 0 3px rgba(124,106,247,.10); }
.fits .arw { color: var(--dim); font-size: 15px; text-align: center; }
@media (max-width: 560px){ .fits .rung { grid-template-columns: 1fr; } .fits .arw { transform: rotate(90deg); } }

/* Concept section labels */
.cx { max-width: var(--read); margin: 30px 0 0; }
.cx h2 { font-size: 18px; margin: 30px 0 8px; letter-spacing: -.3px; }
.cx p { font-size: 16px; line-height: 1.65; color: #23304A; }
.cx .prod { background: var(--panel); border: 1px dashed var(--line2); border-radius: 10px; padding: 16px 18px; font-size: 14px; color: var(--mut); }
.cx .prod b { color: var(--ink); }

.mockbar b { color: #a78bfa; }


/* ============================================================
   Signature diagrams (inline SVG, one visual language)
   ============================================================ */
figure.dgm-fig { max-width: var(--read); margin: 32px 0; }
figure.dgm-fig figcaption { font-size: 13px; color: var(--dim); margin-top: 11px; padding-left: 2px; }
figure.dgm-fig figcaption b { color: var(--mut); font-weight: 600; }
svg.dgm { width: 100%; height: auto; display: block; font-family: var(--mono); background: var(--panel); border: 1px solid var(--line2); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.dgm .box   { fill: #ffffff; stroke: var(--line2); stroke-width: 1.5; }
.dgm .box.accent { fill: var(--purbg); stroke: var(--purln); }
.dgm .box.good  { fill: var(--grnbg); stroke: var(--grnln); }
.dgm .box.bad   { fill: var(--redbg); stroke: var(--redln); }
.dgm .box.warn  { fill: var(--ambbg); stroke: var(--ambln); }
.dgm .box.ghost { fill: var(--canvas); stroke: var(--line); }
.dgm .lbl { fill: var(--ink); font-size: 13px; font-weight: 600; }
.dgm .lbl.sm  { font-size: 10.5px; font-weight: 500; fill: var(--mut); }
.dgm .lbl.mut { fill: var(--mut); }
.dgm .lbl.pur { fill: var(--pur); }
.dgm .lbl.grn { fill: var(--grn); }
.dgm .lbl.red { fill: var(--red); }
.dgm .cap { fill: var(--dim); font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; }
.dgm .num { fill: var(--pur); font-size: 11px; font-weight: 600; }
.dgm .flow { stroke: var(--dim); stroke-width: 1.6; fill: none; }
.dgm .flow.pur { stroke: var(--pur); }
.dgm .flow.dash { stroke-dasharray: 4 4; }
.dgm .ah { fill: var(--dim); }
.dgm .ah.pur { fill: var(--pur); }
.dgm .track { fill: #EDEFF4; }
.dgm .fillbar { fill: var(--pur); }
.dgm .axis { stroke: var(--line2); stroke-width: 1; }


/* ---------- Executive summary + enterprise scenario (v2.1 apparatus) ---------- */
.execsum { max-width: var(--read); margin: 0 0 24px; padding: 18px 22px; border: 1px solid var(--line2); border-left: 3px solid var(--pur); border-radius: 0 12px 12px 0; background: var(--panel); box-shadow: var(--shadow-sm); }
.execsum .lbl { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--pur); margin-bottom: 8px; }
.execsum p { font-size: 15.5px; line-height: 1.6; color: #23304A; margin: 0 0 10px; }
.execsum p:last-child { margin-bottom: 0; }

.scenario { max-width: var(--read); margin: 24px 0; }
.scenario .lbl { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); margin-bottom: 12px; }
.scenario .s { border: 1px solid var(--line); border-radius: 10px; padding: 15px 18px; margin-bottom: 12px; background: var(--panel); }
.scenario .s:last-child { margin-bottom: 0; }
.scenario .s .dom { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .07em; color: var(--pur); margin-bottom: 6px; }
.scenario .s p { font-size: 14.5px; margin: 0; color: var(--mut); line-height: 1.62; }
.scenario .s p b { color: var(--ink); font-weight: 600; }

/* ---------- Before / after reconciliation (mechanism-honesty examples) ---------- */
.bfa { max-width: var(--read); margin: 26px 0; border: 1px solid var(--line2); border-radius: 12px; overflow: hidden; background: var(--panel); box-shadow: var(--shadow-sm); }
.bfa .bfa-head { display: grid; grid-template-columns: 1fr 1fr; }
.bfa .bfa-head > div { padding: 11px 18px; font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em; border-bottom: 1px solid var(--line); }
.bfa .bfa-head .h-before { color: var(--dim); }
.bfa .bfa-head .h-after { color: var(--pur); border-left: 1px solid var(--line); }
.bfa .bfa-cols { display: grid; grid-template-columns: 1fr 1fr; }
.bfa .bfa-col { padding: 16px 18px; }
.bfa .bfa-col + .bfa-col { border-left: 1px solid var(--line); }
.bfa .bfa-col .st { font-size: 12px; font-weight: 700; margin-bottom: 10px; display: inline-flex; align-items: center; gap: 7px; }
.bfa .bfa-col.good .st { color: var(--grn); }
.bfa .bfa-col.bad .st { color: var(--red); }
.bfa .bfa-col .st .dot { width: 8px; height: 8px; border-radius: 50%; }
.bfa .bfa-col.good .st .dot { background: var(--grn); }
.bfa .bfa-col.bad .st .dot { background: var(--red); }
.bfa ul { margin: 0; padding: 0; list-style: none; }
.bfa li { font-size: 13.5px; color: var(--mut); line-height: 1.5; padding: 4px 0 4px 18px; position: relative; }
.bfa li::before { content: ''; position: absolute; left: 2px; top: 11px; width: 5px; height: 5px; border-radius: 50%; background: var(--line2); }
.bfa .verdict { margin: 0; padding: 12px 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--mut); background: var(--canvas); }
.bfa .verdict b { color: var(--ink); font-weight: 600; }
@media (max-width: 560px) {
  .bfa .bfa-head, .bfa .bfa-cols { grid-template-columns: 1fr; }
  .bfa .bfa-col + .bfa-col { border-left: none; border-top: 1px solid var(--line); }
  .bfa .bfa-head .h-after { border-left: none; }
}
