/* ==========================================================================
   CONTROVERSIA — public site
   Direction: "archive instrument" — warm paper, ink, hairlines, editorial serif,
   technical mono annotations. Red/orange are reserved for legal semantics.
   ========================================================================== */

@font-face { font-family: "Lora"; src: url("/static/fonts/lora-var.woff") format("woff"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("/static/fonts/lora-italic-var.woff") format("woff"); font-weight: 400 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/static/fonts/poppins-light.woff") format("woff"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/static/fonts/poppins-regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/static/fonts/poppins-medium.woff") format("woff"); font-weight: 500 600; font-display: swap; }
@font-face { font-family: "Archive Mono"; src: url("/static/fonts/dejavu-mono.woff") format("woff"); font-weight: 400; font-display: swap; }

:root {
  --paper: #f3f0e9;
  --paper-2: #ebe7dd;
  --paper-3: #e1dccf;
  --sheet: #f8f6f1;
  --ink: #14130f;
  --ink-2: #33312b;
  --muted: #6b665c;
  --faint: #938d81;
  --rule: #d6d0c3;
  --rule-2: #c3bcac;
  --conv: #b3261e;
  --conv-bg: #f5e2dd;
  --ind: #b45309;
  --ind-bg: #f6e8d3;
  --cleared: #4d5d68;
  --link: #1d3557;
  --focus: #2155d6;
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Poppins", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Archive Mono", ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --wrap: 1320px;
  --gut: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; overflow-x: clip; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 15.5px/1.6 var(--sans); letter-spacing: .002em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 14px; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.mono { font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; }
.serif { font-family: var(--serif); }
.eyebrow { margin: 0 0 14px; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.fine { font-size: 13px; color: var(--muted); line-height: 1.55; }
kbd { font-family: var(--mono); font-size: 11px; border: 1px solid var(--rule-2); border-bottom-width: 2px; border-radius: 3px; padding: 0 5px; color: var(--muted); background: var(--sheet); }
mark { background: linear-gradient(transparent 58%, #e9dcae 58%); color: inherit; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 22px 0; }

/* ---------- type scale ---------- */
.display { font-family: var(--serif); font-weight: 420; font-size: clamp(44px, 7.2vw, 104px); line-height: .96; letter-spacing: -.028em; margin: 0; }
.display em { font-style: italic; font-weight: 400; color: var(--ink-2); }
.h1 { font-family: var(--serif); font-weight: 450; font-size: clamp(34px, 4.6vw, 58px); line-height: 1.02; letter-spacing: -.02em; margin: 0 0 28px; }
.h2 { font-family: var(--serif); font-weight: 450; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.08; letter-spacing: -.015em; margin: 0; }
.h3 { font-family: var(--serif); font-weight: 480; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.15; margin: 0 0 12px; }
.dek { font-family: var(--serif); font-style: italic; font-size: clamp(19px, 1.8vw, 23px); line-height: 1.45; color: var(--ink-2); margin: 18px 0 0; max-width: 46ch; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 46px; padding: 0 22px; border-radius: 2px;
  font: 500 14px/1 var(--sans); letter-spacing: .01em; text-decoration: none; cursor: pointer; border: 1px solid var(--ink);
  transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #2b2a24; }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 13px; }
.btn-link { background: none; border: 0; padding: 0; cursor: pointer; font: 500 14px var(--sans); color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.btn-link:hover { text-decoration-thickness: 2px; }
.btn .spin { display: inline-block; transition: transform .6s var(--ease); }
.btn:hover .spin { transform: rotate(180deg); }

/* ---------- ticker / header ---------- */
.ticker { background: var(--ink); color: #cfc9bb; }
.ticker-in { display: flex; gap: 28px; align-items: center; height: 30px; font: 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; overflow: hidden; white-space: nowrap; }
.ticker-in span + span::before { content: ""; display: inline-block; width: 4px; height: 4px; background: #6d685d; margin-right: 28px; vertical-align: middle; }
.ticker-live { margin-left: auto; color: #efe9dc; }
.ticker-live::before { display: none !important; }
.ticker-live i { display: inline-block; width: 6px; height: 6px; background: #efe9dc; margin-right: 8px; vertical-align: 1px; animation: blink 2.4s steps(2, jump-none) infinite; }
@keyframes blink { 50% { opacity: .2; } }

.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); }
.header-in { display: flex; align-items: center; height: 64px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.mark { width: 28px; height: 28px; flex: none; }
.wordmark { font: 500 14px/1 var(--sans); letter-spacing: .32em; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 30px; font-size: 14px; }
.site-nav a { text-decoration: none; color: var(--ink-2); position: relative; padding: 6px 0; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav-search { display: inline-flex !important; align-items: center; gap: 10px; border: 1px solid var(--rule-2); padding: 8px 10px 8px 12px !important; border-radius: 2px; min-width: 210px; color: var(--muted) !important; background: var(--sheet); }
.nav-search svg { width: 16px; height: 16px; }
.nav-search kbd { margin-left: auto; }
.nav-search::after { display: none; }
.nav-search:hover { border-color: var(--ink); color: var(--ink) !important; }
.nav-support { border: 1px solid var(--ink); padding: 7px 14px !important; border-radius: 2px; color: var(--ink) !important; }
.nav-support::after { display: none; }
.nav-support:hover { background: var(--ink); color: var(--paper) !important; }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; }
.nav-toggle span:not(.sr) { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease), top .3s var(--ease); }
.nav-toggle span:nth-child(1) { top: 17px; } .nav-toggle span:nth-child(2) { top: 26px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; border-bottom: 1px solid var(--rule); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(to right, rgba(20,19,15,.055) 1px, transparent 1px), linear-gradient(to bottom, rgba(20,19,15,.04) 1px, transparent 1px);
  background-size: 88px 88px; -webkit-mask-image: radial-gradient(ellipse 70% 80% at 70% 40%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 70% 80% at 70% 40%, #000 20%, transparent 75%); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 4vw, 64px); padding-top: clamp(40px, 7vw, 96px); padding-bottom: 40px; align-items: center; }
.pulse { width: 7px; height: 7px; background: var(--ink); display: inline-block; position: relative; }
.pulse::after { content: ""; position: absolute; inset: -5px; border: 1px solid var(--ink); opacity: 0; animation: ping 2.6s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(.4); opacity: .7; } 80%, 100% { transform: scale(1.6); opacity: 0; } }
.hero-lede { font-family: var(--serif); font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--ink-2); max-width: 52ch; margin: 30px 0 34px; }
.hero-hint { color: var(--faint); margin: 14px 0 0; text-transform: none; letter-spacing: .02em; }

/* search field */
.search-field { position: relative; display: flex; align-items: center; background: var(--sheet); border: 1px solid var(--ink); border-radius: 2px; box-shadow: 6px 6px 0 var(--paper-3); transition: box-shadow .3s var(--ease); }
.search-field:focus-within { box-shadow: 6px 6px 0 var(--ink); }
.sf-icon { width: 58px; display: grid; place-items: center; color: var(--muted); }
.sf-icon svg { width: 22px; height: 22px; }
.search-field input { flex: 1; min-width: 0; height: 66px; border: 0; background: transparent; font: 400 clamp(19px, 1.9vw, 24px) var(--serif); color: var(--ink); outline: none; padding: 0; }
.search-field input::placeholder { color: var(--faint); font-style: italic; }
.search-field input::-webkit-search-cancel-button { display: none; }
.sf-submit { height: 66px; padding: 0 24px; border: 0; border-left: 1px solid var(--ink); background: var(--ink); color: var(--paper); font: 500 14px var(--sans); display: flex; align-items: center; gap: 12px; cursor: pointer; }
.sf-submit:hover span:last-child { transform: translateX(3px); }
.sf-submit span:last-child { transition: transform .2s var(--ease); }
.ta-list, .qs-list { list-style: none; margin: 0; padding: 0; }
.ta-list { position: absolute; left: -1px; right: -1px; top: calc(100% + 8px); background: var(--sheet); border: 1px solid var(--ink); z-index: 30; box-shadow: 0 24px 60px -20px rgba(20,19,15,.35); display: none; max-height: 420px; overflow: auto; }
.ta-list.open { display: block; }
.ta-item a, .qs-item a { display: grid; grid-template-columns: 40px 1fr auto; gap: 14px; align-items: center; padding: 10px 14px; text-decoration: none; border-bottom: 1px solid var(--rule); }
.ta-item:last-child a, .qs-item:last-child a { border-bottom: 0; }
.ta-item[aria-selected="true"] a, .ta-item a:hover, .qs-item[aria-selected="true"] a, .qs-item a:hover { background: var(--paper-2); }
.ta-thumb { width: 40px; height: 48px; background: var(--paper-3) center/cover; display: grid; place-items: center; font: 500 13px var(--serif); color: var(--muted); filter: grayscale(1); }
.ta-name { font: 500 17px/1.2 var(--serif); display: block; }
.ta-meta { display: block; color: var(--muted); margin-top: 3px; }
.ta-empty { padding: 16px; color: var(--muted); font-size: 14px; }
.ta-all a { display: block; padding: 11px 14px; font: 11.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; background: var(--paper-2); }

/* atlas */
.atlas { margin: 0; position: relative; aspect-ratio: 1 / .92; border: 1px solid var(--rule-2); background:
  radial-gradient(circle at 50% 50%, rgba(255,255,255,.55), transparent 70%), var(--sheet); }
.atlas canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; }
.atlas::before, .atlas::after { content: ""; position: absolute; width: 14px; height: 14px; border: 1px solid var(--ink); pointer-events: none; }
.atlas::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.atlas::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.atlas-hud { position: absolute; left: 14px; right: 14px; top: 12px; display: flex; justify-content: space-between; color: var(--muted); pointer-events: none; gap: 12px; }
#atlas-read { color: var(--ink); text-align: right; max-width: 70%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.atlas figcaption { position: absolute; left: 14px; right: 14px; bottom: 12px; color: var(--muted); text-transform: none; letter-spacing: .01em; font-size: 11px; line-height: 1.5; pointer-events: none; }

.stats-row { position: relative; display: grid; grid-template-columns: repeat(3, auto) 1fr; gap: 0; border-top: 1px solid var(--rule); margin-top: 10px; }
.stats-row > div { padding: 22px 36px 26px 0; margin-right: 36px; border-right: 1px solid var(--rule); display: flex; flex-direction: column; gap: 6px; }
.stats-row > div:last-child { border-right: 0; margin-right: 0; }
.stat-n { font: 420 clamp(34px, 3.6vw, 48px)/1 var(--serif); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat-l { color: var(--muted); }
.stat-note p { margin: 0; font-size: 13.5px; color: var(--muted); max-width: 34ch; align-self: center; }
.stat-note { justify-content: center; }

/* ---------- sections ---------- */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 34px; flex-wrap: wrap; }
.discover { padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(40px, 5vw, 72px); }
.discover.compact { padding-top: 56px; padding-left: 0; padding-right: 0; }

/* cards */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3vw, 48px) clamp(20px, 2.4vw, 36px); }
.card { position: relative; }
.card-link { display: block; text-decoration: none; color: inherit; }
.card-media { position: relative; }
.card-num { position: absolute; top: 12px; left: 12px; background: var(--paper); padding: 4px 7px; font-size: 10.5px; color: var(--ink); }
.card-body { position: relative; padding-top: 18px; }
.card-body::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--ink); transform-origin: left; transform: scaleX(.14); transition: transform .5s var(--ease); }
.card[data-legal="conviction"] .card-body::before { background: var(--conv); height: 2px; }
.card[data-legal="indictment"] .card-body::before { background: var(--ind); height: 2px; }
.card-link:hover .card-body::before, .card-link:focus-visible .card-body::before { transform: scaleX(1); }
.card-meta { color: var(--muted); margin: 0 0 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-name { font: 460 clamp(22px, 2vw, 27px)/1.12 var(--serif); letter-spacing: -.012em; margin: 0 0 10px; }
.card-summary { margin: 0 0 16px; color: var(--ink-2); font-size: 14.5px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 3.1em; }
.card-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0; color: var(--muted); }
.card-foot .mono { font-size: 10.5px; }

/* portraits */
.portrait { position: relative; margin: 0; overflow: hidden; background: var(--paper-3); aspect-ratio: 4 / 5; }
.portrait img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.06) brightness(1.02); transition: filter .7s var(--ease), transform 1.1s var(--ease); }
.card-link:hover .portrait img, .card-link:focus-visible .portrait img { filter: grayscale(0) contrast(1); transform: scale(1.035); }
.corners { position: absolute; inset: 10px; pointer-events: none; opacity: 0; transition: opacity .4s var(--ease), inset .4s var(--ease);
  background:
    linear-gradient(var(--paper), var(--paper)) top left / 14px 1px no-repeat, linear-gradient(var(--paper), var(--paper)) top left / 1px 14px no-repeat,
    linear-gradient(var(--paper), var(--paper)) top right / 14px 1px no-repeat, linear-gradient(var(--paper), var(--paper)) top right / 1px 14px no-repeat,
    linear-gradient(var(--paper), var(--paper)) bottom left / 14px 1px no-repeat, linear-gradient(var(--paper), var(--paper)) bottom left / 1px 14px no-repeat,
    linear-gradient(var(--paper), var(--paper)) bottom right / 14px 1px no-repeat, linear-gradient(var(--paper), var(--paper)) bottom right / 1px 14px no-repeat; }
.card-link:hover .corners { opacity: 1; inset: 16px; }
.portrait-empty { display: grid; place-items: center;
  background: repeating-linear-gradient(135deg, transparent 0 9px, rgba(20,19,15,.05) 9px 10px), var(--paper-2); border: 1px solid var(--rule); }
.ph-initials { font: 400 clamp(56px, 7vw, 96px)/1 var(--serif); color: var(--rule-2); letter-spacing: -.03em; }
.ph-label { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: var(--faint); font-size: 10px; }
.portrait-empty .corners { opacity: 1; background:
    linear-gradient(var(--rule-2), var(--rule-2)) top left / 14px 1px no-repeat, linear-gradient(var(--rule-2), var(--rule-2)) top left / 1px 14px no-repeat,
    linear-gradient(var(--rule-2), var(--rule-2)) top right / 14px 1px no-repeat, linear-gradient(var(--rule-2), var(--rule-2)) top right / 1px 14px no-repeat,
    linear-gradient(var(--rule-2), var(--rule-2)) bottom left / 14px 1px no-repeat, linear-gradient(var(--rule-2), var(--rule-2)) bottom left / 1px 14px no-repeat,
    linear-gradient(var(--rule-2), var(--rule-2)) bottom right / 14px 1px no-repeat, linear-gradient(var(--rule-2), var(--rule-2)) bottom right / 1px 14px no-repeat; }

/* legal marks — colour is always paired with text */
.lg-row { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.lg { display: inline-flex; align-items: center; gap: 7px; font: 500 12px/1 var(--sans); padding: 5px 8px 5px 7px; border-radius: 2px; white-space: nowrap; }
.lg i { width: 7px; height: 7px; flex: none; }
.lg-conviction { background: var(--conv-bg); color: #7d1a14; } .lg-conviction i { background: var(--conv); }
.lg-indictment { background: var(--ind-bg); color: #7a3a05; } .lg-indictment i { background: var(--ind); }
.lg-inline { padding: 0 4px; border-radius: 2px; white-space: nowrap; }
.lg-inline.conv { background: var(--conv-bg); color: #7d1a14; }
.lg-inline.ind { background: var(--ind-bg); color: #7a3a05; }
.status { display: inline-flex; align-items: center; gap: 8px; font: 500 12.5px/1 var(--sans); padding: 7px 11px 7px 9px; border: 1px solid var(--rule-2); border-radius: 2px; color: var(--ink-2); background: var(--sheet); white-space: nowrap; }
.status i { width: 8px; height: 8px; background: var(--faint); flex: none; }
.status-conviction { border-color: var(--conv); color: #8d1d16; background: var(--conv-bg); } .status-conviction i { background: var(--conv); }
.status-indictment { border-color: var(--ind); color: #83410a; background: var(--ind-bg); } .status-indictment i { background: var(--ind); }
.status-cleared { border-color: var(--cleared); color: var(--cleared); } .status-cleared i { background: transparent; border: 1.5px solid var(--cleared); }
.dot { width: 7px; height: 7px; flex: none; background: var(--rule-2); }
.dot-conviction { background: var(--conv); } .dot-indictment { background: var(--ind); } .dot-cleared { background: transparent; border: 1.5px solid var(--cleared); }

/* ledger (recent) */
.recent { padding-bottom: clamp(48px, 6vw, 88px); }
.ledger { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.ledger a { display: grid; grid-template-columns: 90px minmax(0, 1.2fr) minmax(0, 1fr) auto 100px; gap: 20px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--rule); text-decoration: none; transition: background .2s, padding .3s var(--ease); }
.ledger a:hover { background: var(--sheet); padding-left: 12px; padding-right: 12px; }
.ledger .idx { color: var(--faint); }
.r-name { font: 480 20px/1.2 var(--serif); }
.r-meta { color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ledger time { color: var(--muted); text-align: right; }

/* principles */
.method-strip { background: var(--ink); color: var(--paper); padding: clamp(56px, 7vw, 96px) 0; }
.method-strip .eyebrow { color: #a8a293; }
.method-strip .btn-link { color: var(--paper); }
.principles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid #3a3830; }
.principles li { padding: 26px 26px 8px 0; border-right: 1px solid #3a3830; margin-right: 26px; }
.principles li:last-child { border-right: 0; margin-right: 0; }
.principles .mono { color: #a8a293; }
.principles h3 { font: 450 24px/1.2 var(--serif); margin: 14px 0 10px; }
.principles p { color: #cfc9bb; font-size: 14.5px; margin: 0 0 18px; }
.method-strip .lg-inline.conv { background: #5a1a15; color: #ffd9d3; }
.method-strip .lg-inline.ind { background: #5b3510; color: #ffe2c2; }

.support-block { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 80px); padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(56px, 7vw, 96px); }
.support-block p { margin: 0 0 16px; font-family: var(--serif); font-size: 18px; line-height: 1.6; color: var(--ink-2); max-width: 52ch; }
.support-block .fine { font-family: var(--sans); font-size: 13px; }

.empty-state { padding: 48px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.empty-state .serif { font-size: 22px; margin: 0 0 10px; }
.empty-state .big { font-size: clamp(24px, 2.6vw, 32px); }
.empty-state p { max-width: 60ch; color: var(--ink-2); }
.empty-state.slim { padding: 28px 0; }

/* ---------- search page ---------- */
.page-search { padding-top: clamp(40px, 6vw, 80px); padding-bottom: 80px; }
.page-search .search-field { max-width: 880px; }
.search-results { margin-top: 44px; }
.res-count { color: var(--muted); margin: 0 0 16px; }
.results { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.result a { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--rule); text-decoration: none; align-items: center; }
.result a:hover .res-name { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.result a:hover .portrait img { filter: none; }
.portrait.thumb { width: 76px; }
.portrait.thumb .ph-initials { font-size: 26px; }
.portrait.thumb .ph-label, .portrait.thumb .corners { display: none; }
.res-main { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.res-name { font: 460 24px/1.15 var(--serif); }
.res-meta { color: var(--muted); }
.res-alias { font-size: 13px; color: var(--link); }
.res-sum { color: var(--ink-2); font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.res-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; color: var(--muted); }

/* ---------- dossier ---------- */
.fiche { padding-top: 24px; padding-bottom: 40px; }
.crumbs { display: flex; gap: 10px; color: var(--faint); margin-bottom: clamp(24px, 4vw, 48px); }
.crumbs a { text-decoration: none; color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.dossier-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: end; }
.dh-portrait { max-width: 440px; width: 100%; }
.dossier-portrait { box-shadow: 14px 14px 0 var(--paper-3); }
.dossier-portrait img { filter: grayscale(.85) contrast(1.05); }
.dossier-portrait:hover img { filter: grayscale(0); }
.dossier-portrait .corners { opacity: 1; inset: 14px; }
.credit { margin: 22px 0 0; color: var(--faint); text-transform: none; letter-spacing: .01em; font-size: 11px; line-height: 1.5; }
.credit a { color: var(--muted); }
.dossier-name { font-size: clamp(46px, 6.6vw, 96px); margin-top: 6px; overflow-wrap: anywhere; }
.aliases { margin: 16px 0 0; color: var(--muted); font-size: 14px; }
.dh-id .summary { font-family: var(--serif); font-size: 18px; line-height: 1.65; color: var(--ink-2); max-width: 62ch; margin: 22px 0 0; }
.updated { color: var(--muted); margin: 26px 0 0; padding-top: 16px; border-top: 1px solid var(--rule); text-transform: none; letter-spacing: .02em; }

.ledger-strip { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(40px, 6vw, 72px); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.ledger-strip > div { padding: 22px 24px 20px; border-right: 1px solid var(--rule); display: flex; flex-direction: column; gap: 10px; position: relative; }
.ledger-strip > div:first-child { padding-left: 0; }
.ledger-strip > div:last-child { border-right: 0; }
.lnum { font: 420 clamp(40px, 4.6vw, 60px)/.9 var(--serif); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.llab { color: var(--muted); display: flex; align-items: center; gap: 8px; }
.llab i { width: 8px; height: 8px; background: var(--rule-2); display: inline-block; }
.lcell-ind.on .llab i { background: var(--ind); } .lcell-conv.on .llab i { background: var(--conv); }
.lcell-ind.on::before, .lcell-conv.on::before { content: ""; position: absolute; left: 24px; right: 24px; top: -1px; height: 3px; }
.lcell-ind.on::before { background: var(--ind); } .lcell-conv.on::before { background: var(--conv); }
.lcell-ind:not(.on) .lnum, .lcell-conv:not(.on) .lnum { color: var(--rule-2); }
.legal-note { margin: 14px 0 0; font-size: 13px; color: var(--muted); max-width: 110ch; }
.legal-note .mono { color: var(--ink); margin-right: 6px; }
.legal-note a { color: var(--ink-2); }

.dossier-body { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); margin-top: clamp(48px, 6vw, 88px); }
.toc-in { position: sticky; top: 90px; max-height: calc(100vh - 110px); overflow: auto; padding-right: 6px; }
.toc ol, .toc ul { list-style: none; margin: 0; padding: 0; }
.toc ol a { display: grid; grid-template-columns: 26px 1fr 10px; gap: 8px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--rule); text-decoration: none; font-size: 13.5px; line-height: 1.35; color: var(--ink-2); }
.toc ol a .mono { color: var(--faint); font-size: 10.5px; }
.toc ol a:hover, .toc ol a.active { color: var(--ink); }
.toc ol a.active .mono { color: var(--ink); }
.toc ol a .dot { align-self: center; }
.toc-extra { margin-top: 18px !important; }
.toc-extra a { display: block; padding: 5px 0; font-size: 13px; color: var(--muted); text-decoration: none; }
.toc-extra a:hover { color: var(--ink); }

.section-title { font: 450 clamp(26px, 2.6vw, 34px)/1.1 var(--serif); letter-spacing: -.015em; margin: 0 0 28px; display: flex; gap: 16px; align-items: baseline; }
.section-title .mono { font-size: 12px; color: var(--muted); }
.dossier-main > section { margin-bottom: clamp(56px, 7vw, 96px); }

.case { border-top: 1px solid var(--ink); padding: 28px 0 36px; }
.case + .case { margin-top: 8px; }
.case-head { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 16px; align-items: start; }
.case-idx { color: var(--faint); padding-top: 6px; font-size: 13px; }
.case-period { margin: 0 0 8px; color: var(--muted); }
.case-title { font: 470 clamp(22px, 2.2vw, 29px)/1.18 var(--serif); letter-spacing: -.01em; margin: 0; }
.case-body { padding-left: 68px; margin-top: 18px; }
.case-body .lede { font-family: var(--serif); font-size: 18px; line-height: 1.7; color: var(--ink); margin: 0 0 16px; max-width: 70ch; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 28px; margin: 24px 0; }
.facts > div { border-top: 1px solid var(--rule); padding: 12px 0 14px; }
.facts dt { font: 11px var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.facts dd { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.history { list-style: none; padding: 0; margin: 0; }
.history li { padding: 3px 0; }
.defense { background: var(--sheet); border-left: 2px solid var(--ink); padding: 18px 22px 8px; margin: 26px 0; }
.defense .eyebrow { margin-bottom: 8px; }
.defense p { font-family: var(--serif); font-style: italic; font-size: 16.5px; line-height: 1.65; color: var(--ink-2); margin: 0 0 12px; }
.sources { margin-top: 26px; }
.sources h4 { margin: 0 0 6px; }
.src-list { list-style: none; margin: 0; padding: 0; }
.src-list li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 6px; padding: 12px 0; border-bottom: 1px dashed var(--rule-2); }
.src-n { color: var(--faint); padding-top: 3px; }
.src-body { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; min-width: 0; }
.src-pub { color: var(--ink); font-size: 10.5px; flex-basis: 100%; }
.src-body a, .src-body > span:not(.src-pub):not(.chips):not(.src-date) { font-size: 15px; color: var(--link); text-decoration: underline; text-decoration-color: rgba(29,53,87,.35); text-underline-offset: 3px; overflow-wrap: anywhere; }
.src-body a:hover { text-decoration-color: currentColor; }
.src-body > span:not(.src-pub):not(.chips):not(.src-date) { color: var(--ink-2); text-decoration: none; }
.arr { font-size: 12px; margin-left: 4px; text-decoration: none; display: inline-block; }
.src-date { color: var(--muted); text-transform: none; }
.chips { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.chip { font: 11px/1 var(--mono); letter-spacing: .04em; padding: 4px 6px; border: 1px solid var(--rule-2); color: var(--muted); border-radius: 2px; white-space: nowrap; }
.src-notes { flex-basis: 100%; margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.src-more summary { cursor: pointer; list-style: none; padding: 14px 0 4px; font: 11.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.src-more summary::-webkit-details-marker { display: none; }
.src-more summary::before { content: "+ "; }
.src-more[open] summary::before { content: "− "; }
.verified { color: var(--faint); margin: 20px 0 0; text-transform: none; letter-spacing: .02em; }

/* constellation */
.const { display: grid; grid-template-columns: minmax(0, 1fr) 280px; border: 1px solid var(--ink); background: var(--sheet); }
.const-stage { position: relative; aspect-ratio: 1 / .86; min-height: 340px; }
.const-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.const-hud { position: absolute; top: 12px; left: 14px; right: 14px; display: flex; justify-content: space-between; color: var(--muted); pointer-events: none; }
.const-panel { border-left: 1px solid var(--ink); padding: 20px; background: var(--paper); overflow: auto; max-height: 100%; }
.const-detail h3 { font: 470 22px/1.2 var(--serif); margin: 0 0 4px; }
.const-detail .meta { color: var(--muted); margin: 0 0 14px; }
.const-detail ul { list-style: none; padding: 0; margin: 0 0 16px; }
.const-detail li { padding: 10px 0; border-top: 1px solid var(--rule); font-size: 13.5px; }
.const-detail li strong { display: block; font-weight: 500; }
.const-detail li span { color: var(--muted); display: block; margin-top: 2px; }
.const-legend { display: flex; flex-wrap: wrap; gap: 18px; margin: 14px 0 0; color: var(--muted); }
.const-legend span { display: inline-flex; align-items: center; gap: 8px; }
.lk { width: 26px; height: 0; border-top: 1.5px solid var(--ink); display: inline-block; }
.lk-men { border-top-style: dashed; } .lk-cross { border-top-style: dotted; border-top-width: 2px; }
.disclaimer { margin: 12px 0 0; padding: 12px 14px; border: 1px dashed var(--rule-2); font-size: 13.5px; color: var(--ink-2); }
.net-fallback { margin-top: 18px; }
.net-fallback > summary { cursor: pointer; font: 11.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 10px 0; }
.net-list { list-style: none; margin: 0; padding: 0; columns: 2 320px; column-gap: 36px; }
.net-list > li { break-inside: avoid; padding: 12px 0; border-top: 1px solid var(--rule); }
.nl-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.nl-head a, .nl-head > span:first-child { font: 480 17px var(--serif); }
.nl-w { color: var(--faint); white-space: nowrap; }
.net-list ul { margin: 6px 0 0; padding-left: 16px; color: var(--ink-2); font-size: 13.5px; }
.svg-node { cursor: pointer; }
.svg-node:focus { outline: none; }
.svg-node:focus-visible .node-ring { stroke: var(--focus); stroke-width: 2.5; }

/* reactions & update */
.react-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 12px; }
.react-btn { display: inline-flex; align-items: center; gap: 14px; height: 50px; padding: 0 18px; border: 1px solid var(--rule-2); background: var(--sheet); cursor: pointer; border-radius: 2px; transition: border-color .2s, background .2s; }
.react-btn:hover { border-color: var(--ink); }
.react-btn[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.rb-l { font-weight: 500; font-size: 14px; }
.rb-n { color: inherit; opacity: .7; font-size: 12px; }
.react-msg { margin: 0; }
.update-cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: end; padding: 32px; border: 1px solid var(--ink); background: var(--sheet); }
.update-cta p { margin: 0; color: var(--ink-2); max-width: 62ch; }
.update-cta .section-title { margin-bottom: 14px; }
.fiche-support { border-top: 1px solid var(--rule); padding-top: 24px; display: grid; grid-template-columns: 200px minmax(0, 1fr) auto; gap: 20px; align-items: center; }
.fiche-support p { margin: 0; color: var(--muted); font-size: 14px; }
.fiche-support .eyebrow { margin: 0; }

/* modal */
.modal { border: 1px solid var(--ink); padding: 0; max-width: min(620px, calc(100vw - 24px)); width: 100%; background: var(--paper); color: var(--ink); box-shadow: 18px 18px 0 rgba(20,19,15,.12); }
.modal::backdrop { background: rgba(20,19,15,.42); backdrop-filter: blur(4px); }
.modal-in { padding: 32px; position: relative; }
.modal-x { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border: 0; background: none; font-size: 26px; cursor: pointer; line-height: 1; }
.modal label { display: block; font-weight: 500; font-size: 14px; margin: 18px 0 8px; }
.modal textarea { width: 100%; border: 1px solid var(--ink); background: var(--sheet); font: 16px/1.55 var(--serif); padding: 14px; resize: vertical; border-radius: 2px; color: var(--ink); }
.modal textarea:focus { outline: 2px solid var(--focus); outline-offset: 1px; }
.upd-meta { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.upd-meta p { margin: 6px 0 0; }
.upd-meta .mono { color: var(--muted); white-space: nowrap; }
.field-error { color: var(--conv); font-size: 13.5px; min-height: 1.4em; margin: 8px 0 0; }
.modal-actions { display: flex; justify-content: flex-end; gap: 20px; align-items: center; margin-top: 18px; }
.hp { position: absolute !important; left: -9999px; height: 0; overflow: hidden; }

/* quick search */
.qs { position: fixed; inset: 0; z-index: 90; }
.qs-backdrop { position: absolute; inset: 0; background: rgba(20,19,15,.38); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade .2s ease; }
.qs-panel { position: relative; margin: 11vh auto 0; width: min(720px, calc(100vw - 24px)); background: var(--paper); border: 1px solid var(--ink); box-shadow: 18px 18px 0 rgba(20,19,15,.18); animation: rise .28s var(--ease); }
.qs-form { display: flex; align-items: center; border-bottom: 1px solid var(--ink); }
.qs-icon { width: 58px; display: grid; place-items: center; color: var(--muted); }
.qs-icon svg { width: 22px; height: 22px; }
.qs-form input { flex: 1; height: 68px; border: 0; background: transparent; font: 24px var(--serif); outline: none; min-width: 0; color: var(--ink); }
.qs-form input::placeholder { color: var(--faint); font-style: italic; }
.qs-esc { margin-right: 14px; border: 1px solid var(--rule-2); background: var(--sheet); font: 11px var(--mono); padding: 5px 8px; cursor: pointer; }
.qs-list { max-height: min(60vh, 520px); overflow: auto; }
.qs-hint { margin: 0; padding: 12px 18px; color: var(--faint); border-top: 1px solid var(--rule); text-transform: none; letter-spacing: .02em; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

/* support note */
.support-note { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: min(360px, calc(100vw - 32px)); background: var(--paper); border: 1px solid var(--ink); padding: 20px 20px 16px; box-shadow: 10px 10px 0 rgba(20,19,15,.12); animation: rise .45s var(--ease); }
.support-note p { margin: 0 0 12px; font-size: 14px; color: var(--ink-2); }
.support-note .eyebrow { margin-bottom: 8px; }
.support-note .fine { font-size: 12px; margin: 10px 0 0; }
.support-actions { display: flex; gap: 18px; align-items: center; }
.support-close { position: absolute; top: 6px; right: 6px; width: 34px; height: 34px; border: 0; background: none; font-size: 22px; cursor: pointer; }

/* prose pages */
.prose-page { padding-top: clamp(40px, 6vw, 88px); padding-bottom: 96px; }
.prose-head { border-bottom: 1px solid var(--ink); padding-bottom: clamp(32px, 4vw, 56px); margin-bottom: clamp(32px, 4vw, 56px); }
.prose-head .display { font-size: clamp(42px, 6vw, 84px); max-width: 16ch; }
.prose-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); }
.prose-toc ol { list-style: none; padding: 0; margin: 0; position: sticky; top: 90px; }
.prose-toc a { display: block; padding: 8px 0; border-bottom: 1px solid var(--rule); text-decoration: none; font-size: 13.5px; color: var(--ink-2); }
.prose-toc .mono { color: var(--faint); margin-right: 6px; }
.prose { max-width: 72ch; }
.prose-sec { margin-bottom: 48px; }
.prose-sec h2 { font: 460 clamp(24px, 2.4vw, 31px)/1.2 var(--serif); margin: 0 0 16px; display: flex; gap: 14px; align-items: baseline; }
.prose-sec h2 .mono { font-size: 12px; color: var(--faint); }
.prose p { font-family: var(--serif); font-size: 18px; line-height: 1.75; color: var(--ink-2); margin: 0 0 16px; }
.legal-table { margin: 22px 0 26px; border-top: 1px solid var(--ink); }
.lt-row { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--rule); align-items: start; }
.lt-row dd { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.support-cta { margin-top: 32px; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.support-cta .fine { margin: 0; }

.nf { padding-top: clamp(56px, 9vw, 140px); padding-bottom: 120px; max-width: 880px; }
.nf .search-field { margin: 40px 0 24px; }

/* footer */
.site-footer { border-top: 1px solid var(--ink); padding: 48px 0 40px; margin-top: 0; background: var(--paper-2); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px 48px; }
.footer-brand { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.footer-brand p { flex-basis: 100%; margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; align-items: flex-start; font-size: 14px; }
.footer-nav a { text-decoration: none; color: var(--ink-2); }
.footer-nav a:hover { text-decoration: underline; }
.footer-legal { grid-column: 1 / -1; font-size: 13px; color: var(--muted); max-width: 100ch; margin: 0; padding-top: 20px; border-top: 1px solid var(--rule-2); }
.footer-meta { grid-column: 1 / -1; color: var(--faint); margin: 0; }

.preview-banner { background: var(--ind); color: #fff; text-align: center; padding: 10px 16px; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.card-grid.swap .card { animation: swap .6s var(--ease) both; }
.card-grid.swap .card:nth-child(2) { animation-delay: .05s; } .card-grid.swap .card:nth-child(3) { animation-delay: .1s; }
.card-grid.swap .card:nth-child(4) { animation-delay: .15s; } .card-grid.swap .card:nth-child(5) { animation-delay: .2s; } .card-grid.swap .card:nth-child(6) { animation-delay: .25s; }
@keyframes swap { from { opacity: 0; transform: translateY(18px); filter: blur(3px); } }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .principles { grid-template-columns: repeat(2, 1fr); }
  .principles li:nth-child(2) { border-right: 0; margin-right: 0; }
  .const { grid-template-columns: 1fr; }
  .const-panel { border-left: 0; border-top: 1px solid var(--ink); }
  .ledger a { grid-template-columns: 80px minmax(0, 1fr) auto 90px; }
  .r-meta { display: none; }
  .nav-search { min-width: 0; }
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .atlas { aspect-ratio: 1 / .7; }
  .stats-row { grid-template-columns: repeat(3, 1fr); }
  .stat-note { grid-column: 1 / -1; border-top: 1px solid var(--rule); }
  .stats-row > div:nth-child(3) { border-right: 0; }
  .dossier-head { grid-template-columns: 1fr; align-items: start; }
  .dh-portrait { max-width: 340px; }
  .dossier-body, .prose-grid { grid-template-columns: 1fr; }
  .toc, .prose-toc { display: none; }
  .support-block { grid-template-columns: 1fr; }
  .fiche-support { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--ink); padding: 8px var(--gut) 20px; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 16px; }
  .site-nav a::after { display: none; }
  .nav-search { margin: 8px 0; padding: 12px !important; }
  .nav-support { text-align: center; margin-top: 14px; padding: 12px !important; }
  .ticker-in span:nth-child(n+3) { display: none; }
  .ledger-strip { grid-template-columns: repeat(2, 1fr); }
  .ledger-strip > div:nth-child(2) { border-right: 0; }
  .ledger-strip > div:nth-child(3) { padding-left: 0; }
  .ledger-strip > div:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .case-body { padding-left: 0; }
  .case-head { grid-template-columns: 36px minmax(0, 1fr); }
  .case-head .status { grid-column: 2; justify-self: start; }
  .update-cta { grid-template-columns: 1fr; padding: 24px; }
  .lt-row { grid-template-columns: 1fr; gap: 8px; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 15px; }
  .card-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .card-media .portrait { aspect-ratio: 5 / 4; }
  .sf-submit span:first-child { display: none; }
  .sf-submit { padding: 0 18px; }
  .sf-icon { width: 46px; }
  .search-field input { height: 58px; }
  .sf-submit { height: 58px; }
  .principles { grid-template-columns: 1fr; }
  .principles li { border-right: 0; margin-right: 0; border-bottom: 1px solid #3a3830; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .stats-row > div { padding-right: 16px; margin-right: 16px; }
  .stats-row > div:nth-child(2) { border-right: 0; margin-right: 0; }
  .stats-row > div:nth-child(3) { grid-column: 1 / -1; border-top: 1px solid var(--rule); }
  .ledger a { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; }
  .ledger .idx { display: none; }
  .ledger .r-legal { grid-column: 1; grid-row: 2; }
  .result a { grid-template-columns: 60px minmax(0, 1fr); gap: 16px; }
  .portrait.thumb { width: 60px; }
  .res-side { grid-column: 2; align-items: flex-start; flex-direction: row; flex-wrap: wrap; }
  .res-name { font-size: 20px; }
  .const-stage { aspect-ratio: 1 / 1.25; min-height: 0; }
  .modal-in { padding: 24px 18px; }
  .support-note { right: 16px; left: 16px; bottom: 16px; width: auto; }
  .src-list li { grid-template-columns: 30px minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
@media print {
  .site-header, .ticker, .site-footer, .toc, .react, .update-cta, .fiche-support, .support-note, .const, .const-legend { display: none !important; }
  body { background: #fff; }
  .src-more > * { display: block !important; }
}

/* ==========================================================================
   THEME 7.1 — "Bleu" : plus coloré, plus rond, plus ludique.
   (Couche de surcharge : la structure reste identique, seul le style change.)
   ========================================================================== */
@font-face { font-family: "Poppins"; src: url("/static/fonts/poppins-bold.woff") format("woff"); font-weight: 600 800; font-display: swap; }

:root {
  --paper: #f4f7fe;
  --paper-2: #eaf0fc;
  --paper-3: #dbe6fb;
  --sheet: #ffffff;
  --ink: #0f1e46;
  --ink-2: #2a3b66;
  --muted: #5d6b8e;
  --faint: #8b97b4;
  --rule: #dfe7f6;
  --rule-2: #c7d4ee;
  --link: #2563eb;
  --focus: #2563eb;
  --blue: #2563eb;
  --blue-d: #1e3a8a;
  --cyan: #38bdf8;
  --grad: linear-gradient(135deg, #1e40af 0%, #2563eb 45%, #38bdf8 100%);
  --grad-soft: linear-gradient(135deg, #eef4ff 0%, #e3f1ff 55%, #e0f7ff 100%);
  --grad-deep: linear-gradient(135deg, #0b1a45 0%, #1e3a8a 55%, #2563eb 100%);
  --shadow: 0 14px 40px -18px rgba(30, 64, 175, .35);
  --shadow-sm: 0 6px 18px -10px rgba(30, 64, 175, .35);
  --r: 22px;
  --serif: "Poppins", "Segoe UI", system-ui, sans-serif;
  --mono: "Poppins", "Segoe UI", system-ui, sans-serif;
}
body { background:
  radial-gradient(900px 500px at 100% -5%, rgba(56, 189, 248, .16), transparent 60%),
  radial-gradient(800px 500px at -10% 10%, rgba(37, 99, 235, .10), transparent 60%), var(--paper); }
.mono { font-family: var(--sans); font-weight: 600; font-size: 11px; letter-spacing: .08em; }
::selection { background: var(--blue); color: #fff; }
mark { background: linear-gradient(transparent 55%, rgba(56, 189, 248, .45) 55%); }

/* type: rounded friendly sans, bolder headings */
.display, .h1, .h2, .h3, .dossier-name, .card-name, .case-title, .section-title, .prose-sec h2, .r-name, .res-name, .stat-n, .lnum,
.principles h3, .const-detail h3, .nl-head a, .nl-head > span:first-child { font-family: var(--sans); letter-spacing: -.025em; }
.display { font-weight: 700; line-height: 1.02; }
.display em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.h1, .h2, .dossier-name { font-weight: 700; }
.h3, .card-name, .case-title, .section-title, .res-name, .r-name, .principles h3 { font-weight: 600; }
.stat-n, .lnum { font-weight: 700; }
.hero-lede, .dek, .dh-id .summary, .case-body .lede, .prose p, .support-block p, .defense p { font-family: var(--sans); }
.dek { font-style: normal; color: var(--muted); }
.defense p { font-style: normal; }

/* buttons: pills, gradient primary */
.btn { border-radius: 999px; border: 0; }
.btn-ink { background: var(--grad); color: #fff; box-shadow: var(--shadow-sm); }
.btn-ink:hover { background: var(--grad); filter: brightness(1.08); transform: translateY(-1px); }
.btn-line { border: 1.5px solid var(--blue); color: var(--blue); background: #fff; }
.btn-line:hover { background: var(--blue); color: #fff; }
.btn-link { color: var(--blue); }

/* ticker + header */
.ticker { background: var(--grad-deep); color: #c9d8ff; }
.ticker-in span + span::before { background: rgba(255,255,255,.35); border-radius: 50%; }
.ticker-live i { border-radius: 50%; background: #7dd3fc; }
.site-header { background: rgba(255, 255, 255, .78); border-bottom: 1px solid var(--rule); }
.mark { color: var(--blue); }
.wordmark { font-weight: 700; letter-spacing: .26em; color: var(--ink); }
.site-nav a::after { background: var(--grad); height: 2px; border-radius: 2px; }
.nav-search { border-radius: 999px; border-color: var(--rule-2); background: #fff; }
.nav-search:hover { border-color: var(--blue); color: var(--blue) !important; }
.nav-support { border-radius: 999px; border: 0; background: var(--grad); color: #fff !important; box-shadow: var(--shadow-sm); }
.nav-support:hover { background: var(--grad); filter: brightness(1.08); color: #fff !important; }
kbd { border-radius: 6px; }

/* hero */
.hero { border-bottom: 0; }
.hero::before { background-image:
  radial-gradient(circle at 78% 30%, rgba(56, 189, 248, .22), transparent 40%),
  radial-gradient(circle at 60% 85%, rgba(37, 99, 235, .14), transparent 45%);
  -webkit-mask-image: none; mask-image: none; }
.pulse { background: var(--blue); border-radius: 50%; }
.pulse::after { border-color: var(--blue); border-radius: 50%; }
.eyebrow { color: var(--blue); font-weight: 600; }
.search-field { border-radius: 20px; border: 1.5px solid var(--rule-2); background: #fff; box-shadow: var(--shadow); overflow: visible; }
.search-field:focus-within { border-color: var(--blue); box-shadow: 0 0 0 5px rgba(37, 99, 235, .14), var(--shadow); }
.search-field input { font-family: var(--sans); }
.search-field input::placeholder { font-style: normal; }
.sf-submit { margin: 7px; height: 52px; border: 0; border-radius: 14px; background: var(--grad); }
.ta-list, .qs-panel { border-radius: 18px; border: 1px solid var(--rule-2); overflow: hidden; }
.ta-thumb { border-radius: 10px; filter: none; }
.ta-name { font-family: var(--sans); font-weight: 600; }
.atlas { border-radius: 28px; border: 1px solid var(--rule); background: radial-gradient(circle at 50% 50%, #ffffff, #eef4ff 75%); box-shadow: var(--shadow); overflow: hidden; }
.atlas::before, .atlas::after { display: none; }
.stats-row { border-top: 0; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)) 1.3fr; padding-bottom: 20px; }
.stats-row > div { background: #fff; border: 1px solid var(--rule); border-radius: var(--r); padding: 20px 22px; margin: 0; box-shadow: var(--shadow-sm); }
.stats-row > div:last-child { border: 0; background: var(--grad-soft); box-shadow: none; }
.stat-n { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* cards */
.card-grid { gap: 28px; }
.card { background: #fff; border-radius: 26px; box-shadow: var(--shadow-sm); border: 1px solid var(--rule); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card-body { padding: 18px 20px 20px; }
.card-body::before { left: 20px; right: 20px; height: 3px; border-radius: 3px; background: var(--grad); transform: scaleX(.18); }
.card-num { border-radius: 999px; background: rgba(255,255,255,.92); font-size: 10px; padding: 5px 10px; box-shadow: var(--shadow-sm); }
.card-meta { color: var(--blue); }
.card-summary { color: var(--muted); }
.portrait { border-radius: 0; background: var(--paper-3); }
.portrait img { filter: saturate(1.05); }
.card-link:hover .portrait img { filter: saturate(1.15); }
.corners { display: none; }
.portrait-empty { background: var(--grad-soft); border: 0; }
.portrait-empty::before { content: ""; position: absolute; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(37,99,235,.18), transparent 70%); }
.ph-initials { position: relative; color: var(--blue); opacity: .55; font-family: var(--sans); font-weight: 700; }
.ph-label { color: var(--muted); }

/* legal marks: pills */
.lg, .status, .chip, .lg-inline { border-radius: 999px; }
.lg i, .status i, .dot, .llab i { border-radius: 50%; }
.status { padding: 7px 13px 7px 11px; background: #fff; }
.status-neutral, .status-cleared { border-color: var(--rule-2); color: var(--ink-2); }
.chip { border-color: var(--rule-2); color: var(--blue-d); background: #f3f7ff; font-family: var(--sans); font-weight: 500; }
.role-note { margin: 0 0 14px; padding: 10px 14px; border-radius: 14px; background: #eef4ff; color: var(--blue-d); font-size: 13.5px; }

/* register */
.ledger { border-top: 0; background: #fff; border-radius: var(--r); border: 1px solid var(--rule); box-shadow: var(--shadow-sm); overflow: hidden; }
.ledger a { padding: 16px 22px; }
.ledger a:hover { background: var(--grad-soft); padding-left: 28px; }
.ledger li:last-child a { border-bottom: 0; }

/* method strip */
.method-strip { background: var(--grad-deep); position: relative; overflow: hidden; }
.method-strip::after { content: ""; position: absolute; width: 520px; height: 520px; right: -120px; top: -180px; border-radius: 50%; background: radial-gradient(circle, rgba(56,189,248,.35), transparent 65%); pointer-events: none; }
.method-strip .eyebrow, .principles .mono { color: #93c5fd; }
.principles { border-top: 0; gap: 14px; }
.principles li { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: var(--r); padding: 22px; margin: 0; }
.principles li:last-child { border: 1px solid rgba(255,255,255,.12); }
.principles p { color: #d6e2ff; }

.support-block { background: var(--grad-soft); border-radius: 32px; margin-top: 56px; margin-bottom: 56px; padding: 48px; }
.empty-state { border: 1px dashed var(--rule-2); border-radius: var(--r); padding: 32px; background: #fff; }

/* search page */
.results { border-top: 0; display: grid; gap: 12px; }
.result a { background: #fff; border: 1px solid var(--rule); border-radius: var(--r); padding: 14px 18px; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease); }
.result a:hover { transform: translateY(-2px); }
.portrait.thumb { border-radius: 14px; }

/* dossier */
.crumbs a { color: var(--blue); }
.dossier-portrait { border-radius: 30px; box-shadow: 0 0 0 6px #fff, 0 0 0 8px rgba(37,99,235,.25), var(--shadow); }
.dossier-portrait img { filter: none; }
.dh-portrait { position: relative; }
.dh-portrait::before { content: ""; position: absolute; inset: -18px auto auto -18px; width: 120px; height: 120px; border-radius: 50%; background: var(--grad); opacity: .25; filter: blur(4px); z-index: -1; }
.aliases { color: var(--blue-d); }
.updated { border-top: 0; padding-top: 10px; text-transform: none; letter-spacing: .01em; font-weight: 500; }
.head-react { margin-top: 22px; }
.ledger-strip { border: 0; gap: 14px; }
.ledger-strip > div, .ledger-strip > div:first-child { background: #fff; border: 1px solid var(--rule); border-radius: var(--r); padding: 20px 22px; box-shadow: var(--shadow-sm); }
.ledger-strip > div:nth-child(1) .lnum, .ledger-strip > div:nth-child(2) .lnum { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lcell-ind.on { background: linear-gradient(135deg, #fff7ed, #ffedd5) !important; border-color: #fdba74 !important; }
.lcell-conv.on { background: linear-gradient(135deg, #fef2f2, #fee2e2) !important; border-color: #fca5a5 !important; }
.lcell-ind.on::before, .lcell-conv.on::before { display: none; }
.lcell-ind.on .lnum { color: #9a3412; } .lcell-conv.on .lnum { color: #991b1b; }
.legal-note { background: #fff; border: 1px solid var(--rule); border-radius: 16px; padding: 12px 16px; }
.legal-note .mono { color: var(--blue); }
.toc-in { background: #fff; border: 1px solid var(--rule); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow-sm); }
.toc ol a { border-bottom-color: var(--rule); border-radius: 10px; padding: 8px 6px; }
.toc ol a:hover, .toc ol a.active { background: #eef4ff; color: var(--blue-d); }
.section-title .mono { color: #fff; background: var(--grad); border-radius: 999px; padding: 4px 10px; font-size: 11px; }
.case { background: #fff; border: 1px solid var(--rule); border-radius: 26px; padding: 26px 28px 30px; box-shadow: var(--shadow-sm); }
.case + .case { margin-top: 18px; }
.case[data-legal="conviction"] { border-left: 5px solid var(--conv); }
.case[data-legal="indictment"] { border-left: 5px solid var(--ind); }
.case-idx { color: #fff; background: var(--grad); border-radius: 12px; width: 36px; height: 36px; display: grid; place-items: center; padding: 0; font-size: 12px; }
.case-period { color: var(--blue); }
.case-body { padding-left: 52px; }
.facts > div { border-top: 0; background: var(--paper); border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; }
.facts { gap: 0 12px; }
.defense { background: var(--grad-soft); border-left: 0; border-radius: 18px; }
.defense .eyebrow { color: var(--blue-d); }
.src-list li { border-bottom: 1px solid var(--rule); }
.src-n { color: var(--blue); }
.src-pub { color: var(--blue-d); }
.src-body a { color: var(--link); text-decoration-color: rgba(37,99,235,.35); }
.src-more summary { color: var(--blue); }
.const { border: 1px solid var(--rule); border-radius: 28px; overflow: hidden; background: radial-gradient(circle at 40% 50%, #ffffff, #eef4ff 80%); box-shadow: var(--shadow-sm); }
.const-panel { border-left: 1px solid var(--rule); background: #fff; }
.disclaimer { border-radius: 16px; border-color: var(--rule-2); background: #fff; }
.net-list > li { border-top-color: var(--rule); }

/* thumbs */
.react-row { gap: 12px; }
.react-btn { height: 52px; border-radius: 999px; border: 1.5px solid var(--rule-2); background: #fff; padding: 0 20px 0 16px; gap: 10px; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), background .2s, border-color .2s; }
.react-btn svg { width: 22px; height: 22px; }
.react-btn.up svg { color: #16a34a; } .react-btn.down svg { color: #64748b; }
.react-btn:hover { border-color: var(--blue); transform: translateY(-2px); }
.react-btn.up[aria-pressed="true"] { background: linear-gradient(135deg, #16a34a, #22c55e); border-color: transparent; color: #fff; }
.react-btn.down[aria-pressed="true"] { background: linear-gradient(135deg, #475569, #64748b); border-color: transparent; color: #fff; }
.react-btn[aria-pressed="true"] svg { color: #fff; }
.rb-n { font-weight: 700; font-size: 14px; opacity: .85; }
.react-row.compact .react-btn { height: 42px; padding: 0 14px 0 12px; }
.react-row.compact .react-btn svg { width: 19px; height: 19px; }
.react-btn.pop { animation: pop .45s var(--ease); }
@keyframes pop { 40% { transform: scale(1.18) rotate(-6deg); } 100% { transform: none; } }

.update-cta { border: 0; border-radius: 28px; background: var(--grad-deep); color: #fff; box-shadow: var(--shadow); }
.update-cta p { color: #d6e2ff; }
.update-cta .section-title { color: #fff; }
.update-cta .section-title .mono { background: rgba(255,255,255,.18); }
.update-cta .btn-ink { background: #fff; color: var(--blue-d); }
.fiche-support { border-top: 0; background: #fff; border: 1px solid var(--rule); border-radius: var(--r); padding: 20px 24px; }

/* dialogs, notes, prose, footer */
.modal { border: 0; border-radius: 26px; box-shadow: 0 30px 80px -20px rgba(15,30,70,.45); }
.modal textarea { border-radius: 16px; border: 1.5px solid var(--rule-2); background: #fff; font-family: var(--sans); }
.qs-panel { box-shadow: 0 30px 80px -20px rgba(15,30,70,.45); }
.qs-form { border-bottom: 1px solid var(--rule); }
.qs-form input { font-family: var(--sans); }
.qs-esc { border-radius: 8px; }
.support-note { border: 0; border-radius: 22px; box-shadow: 0 24px 60px -20px rgba(15,30,70,.45); }
.prose-head { border-bottom: 0; background: var(--grad-soft); border-radius: 32px; padding: 40px; }
.prose-toc a .mono { color: var(--blue); }
.legal-table { border-top: 0; }
.site-footer { background: var(--grad-deep); color: #d6e2ff; border-top: 0; }
.site-footer .wordmark, .site-footer .mark { color: #fff; }
.footer-brand p, .footer-legal, .footer-meta { color: #b9c9ef; }
.footer-nav a { color: #fff; }
.footer-legal { border-top-color: rgba(255,255,255,.18); }
.preview-banner { background: var(--grad); }

@media (max-width: 960px) {
  .stats-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .site-nav { background: #fff; border-radius: 0 0 22px 22px; box-shadow: var(--shadow); }
  .ledger-strip > div:nth-child(3) { padding-left: 22px; }
  .case { padding: 20px 18px 24px; border-radius: 22px; }
  .case-body { padding-left: 0; }
}
@media (max-width: 600px) {
  .stats-row { grid-template-columns: 1fr 1fr; }
  .stats-row > div:last-child { grid-column: 1 / -1; }
  .support-block, .prose-head { padding: 28px 22px; border-radius: 24px; }
  .update-cta { padding: 24px; }
}
.hero::before { background-size: 100% 100% !important; background-repeat: no-repeat; }
.hero .display { font-size: clamp(40px, 5.4vw, 82px); }
.dossier-name { font-size: clamp(38px, 5vw, 72px) !important; }
.status { white-space: normal; max-width: 100%; line-height: 1.3; }
.lsub { font-size: 12px; color: var(--muted); line-height: 1.35; }
.lcell-ind.on .lsub { color: #9a3412; }

/* ===== 7.4 — languages ===== */
.lang-switch { display: inline-flex; align-items: center; gap: 2px; font-family: Poppins, system-ui, sans-serif; font-size: 12.5px; font-weight: 600; letter-spacing: .04em;
  background: rgba(37, 99, 235, .08); border-radius: 999px; padding: 3px; }
.lang-switch i { display: none; }
.lang-switch a, .lang-switch .ls-on { padding: 4px 10px !important; border-radius: 999px; line-height: 1; text-decoration: none; }
.lang-switch a { color: var(--blue-d, #1e3a8a) !important; }
.lang-switch a::after { display: none !important; }
.lang-switch a:hover { background: rgba(37, 99, 235, .14); }
.lang-switch .ls-on { background: var(--blue, #2563eb); color: #fff; box-shadow: 0 2px 8px rgba(37, 99, 235, .3); }
@media (max-width: 860px) { .site-nav .lang-switch { align-self: flex-start; margin-top: 14px; } .site-nav .lang-switch a { border-bottom: 0 !important; font-size: 13px !important; } }
.lang-banner { margin: 14px 0 6px; padding: 10px 16px; border-radius: 14px; background: linear-gradient(90deg, rgba(37, 99, 235, .10), rgba(37, 99, 235, .03));
  color: var(--ink); font-size: 14px; line-height: 1.5; }
.lang-banner span, .lang-note span { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 6px; border-radius: 50%; background: var(--blue, #2563eb); color: #fff; font-size: 12px; vertical-align: -5px; }
.lang-note { margin: 0 0 12px; padding: 8px 12px; border-radius: 12px; background: rgba(37, 99, 235, .07); font-size: 13.5px; color: var(--ink-2, #33415c); }
.lang-hint { opacity: .8; }
.lang-suggest { position: relative; z-index: 60; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 16px; padding: 9px 44px 9px 16px;
  background: linear-gradient(90deg, #1e3a8a, #2563eb); color: #fff; font-size: 14px; text-align: center; }
.lang-suggest a { color: #fff; font-weight: 600; background: rgba(255, 255, 255, .18); padding: 4px 12px; border-radius: 999px; text-decoration: none; }
.lang-suggest a:hover { background: rgba(255, 255, 255, .3); }
.lang-suggest button { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border: 0; border-radius: 50%; background: transparent; color: #fff; font-size: 20px; cursor: pointer; }
