/* ==========================================================================
   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; }

/* update */
.rb-l { font-weight: 500; font-size: 14px; }
.rb-n { color: inherit; opacity: .7; font-size: 12px; }
.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, .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; }
.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 */
.rb-n { font-weight: 700; font-size: 14px; opacity: .85; }
@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; }

/* ===== 7.5 — documented events (career / corporate milestones) ===== */
.parcours > .fine { margin: -6px 0 18px; max-width: 70ch; }
.milestones { list-style: none; margin: 0 0 0 8px; padding: 0 0 0 22px; border-left: 2px solid rgba(37, 99, 235, .18); }
.milestones .ms { position: relative; display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 4px 18px; padding: 12px 0 14px; border-bottom: 1px dashed rgba(15, 30, 70, .12); }
.milestones .ms::before { content: ""; position: absolute; left: -30px; top: 17px; width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid var(--blue, #2563eb); }
.ms-period { font-size: 12px; color: var(--blue-d, #1e3a8a); padding-top: 3px; }
.ms-title { font-size: 16px; margin: 0 0 4px; font-weight: 600; line-height: 1.35; }
.ms-body p { margin: 0 0 6px; font-size: 14.5px; color: var(--ink-2, #33415c); }
.ms-src summary { cursor: pointer; font-size: 11.5px; color: var(--blue, #2563eb); }
.ms-src ol { margin: 6px 0 0; padding-left: 18px; font-size: 13px; }
@media (max-width: 640px) { .milestones .ms { grid-template-columns: minmax(0, 1fr); } }

/* 7.5.1 — badge shown while previewing another theme (?theme=…) */
.theme-preview { position: fixed; left: 16px; bottom: 16px; z-index: 90; margin: 0; max-width: calc(100vw - 32px); padding: 9px 14px; border-radius: 999px;
  background: #e2c08d; color: #0b1220; font: 500 12.5px/1.4 "Poppins", system-ui, sans-serif; box-shadow: 0 8px 24px -10px rgba(0,0,0,.6); }
.theme-preview a { color: #0b1220; font-weight: 700; margin-left: 6px; }

/* ---- 7.6 : catégories ---------------------------------------------------------------------- */
.cat-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; min-width: 0; }
.cat-badge { display: inline-block; max-width: 100%; font: 500 11px/1.3 var(--sans); letter-spacing: .01em; color: var(--ink-2);
  border: 1px solid var(--rule-2); border-radius: 999px; padding: 3px 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: transparent; text-decoration: none; }
a.cat-badge:hover, a.cat-badge:focus-visible { color: var(--link); border-color: var(--link); }
.card .cat-row { flex-wrap: nowrap; overflow: hidden; margin-bottom: 8px; }
.card .cat-badge { font-size: 10.5px; padding: 2px 8px; }
.dh-id .cat-row { margin: 4px 0 14px; }
.cat-filter { display: inline-flex; align-items: center; gap: 10px; margin: 14px 0 0; flex-wrap: wrap; }
.cat-filter span { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cat-filter select { font: 400 14px/1.3 var(--sans); color: var(--ink); background: var(--sheet); border: 1px solid var(--rule-2);
  border-radius: 8px; padding: 8px 32px 8px 12px; max-width: min(100%, 420px); }
.cat-browse { margin: 14px 0 0; }
.cat-browse a, .link-more { color: var(--link); text-decoration: none; }
.cat-browse a:hover, .link-more:hover { text-decoration: underline; }
.page-cats, .page-cat { padding-top: clamp(28px, 5vw, 64px); padding-bottom: clamp(40px, 6vw, 80px); }
.page-cats .dek { max-width: 62ch; color: var(--ink-2); margin: 8px 0 32px; }
.cat-group { margin: 0 0 36px; }
.cat-group h2 { margin: 0 0 14px; }
.cat-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.cat-tile { display: flex; flex-direction: column; justify-content: space-between; gap: 14px; min-height: 104px; padding: 18px;
  border: 1px solid var(--rule); border-radius: 12px; background: var(--sheet); color: var(--ink); text-decoration: none;
  transition: border-color .2s var(--ease), transform .2s var(--ease); }
.cat-tile:hover, .cat-tile:focus-visible { border-color: var(--link); transform: translateY(-2px); }
.ct-name { font: 500 17px/1.3 var(--serif); }
.ct-n { font-size: 12px; color: var(--muted); }
.cat-strip { margin-top: clamp(40px, 6vw, 72px); }
.cat-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cat-chip { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border: 1px solid var(--rule-2); border-radius: 999px;
  color: var(--ink); text-decoration: none; font: 400 14px/1.3 var(--sans); background: var(--sheet); }
.cat-chip span { font-size: 11px; color: var(--muted); }
.cat-chip:hover, .cat-chip:focus-visible { border-color: var(--link); color: var(--link); }
.cat-search { display: flex; gap: 10px; margin: 18px 0 8px; max-width: 560px; }
.cat-search input { flex: 1; min-width: 0; font: 400 15px/1.3 var(--sans); color: var(--ink); background: var(--sheet);
  border: 1px solid var(--rule-2); border-radius: 999px; padding: 10px 16px; }
.cat-sort { font-size: 12px; color: var(--muted); margin: 10px 0 22px; }
.cat-sort a { color: var(--link); }
.cat-sort strong { color: var(--ink); font-weight: 500; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 36px 0 0; font-size: 13px; }
.pager a { color: var(--link); text-decoration: none; }
@media (max-width: 640px) {
  .cat-tiles { grid-template-columns: 1fr; }
  .cat-tile { min-height: 0; }
  .cat-search { flex-direction: column; }
}

/* ---- 7.7 : cadrage automatique des portraits ------------------------------------------------------- */
/* Portrait (plus haut que large, ou carré) : remplit le cadre (object-fit: cover, visage vers le haut).
   Image large, logo, PNG transparent : affichée en entier sur un fond neutre qui suit le thème. Jamais déformée. */
.portrait.fit-contain { background: var(--paper-3); }
.portrait.fit-contain img { object-fit: contain; object-position: 50% 50%; padding: 8%; box-sizing: border-box; filter: none; }
.card-link:hover .portrait.fit-contain img, .card-link:focus-visible .portrait.fit-contain img { transform: none; }
.ta-thumb.fit-contain { background-size: contain !important; background-repeat: no-repeat; background-color: var(--paper-3); }

/* ---- 7.7 : bouton « Faire un don » en haut de page, visible aussi sur mobile ------------------------- */
.nav-donate { text-decoration: none; white-space: nowrap; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; flex: none; }
.nav-donate span { font-size: 12px; }
@media (max-width: 820px) {
  .nav-donate { order: 2; margin-left: auto; padding: 7px 12px !important; font-size: 13px; }
  .nav-toggle { order: 3; margin-left: 4px; }
}

/* ---- 7.7 : proposer une fiche ------------------------------------------------------------------------- */
.propose { margin-top: 22px; }
.propose summary { display: inline-flex; list-style: none; cursor: pointer; }
.propose summary::-webkit-details-marker { display: none; }
.propose-form { display: grid; gap: 12px; max-width: 560px; margin-top: 16px; padding: 18px; border: 1px solid var(--rule-2); border-radius: 12px; background: var(--sheet); text-align: left; }
.propose-form label { display: grid; gap: 6px; font: 500 13px/1.3 var(--sans); color: var(--ink-2); }
.propose-form input, .propose-form textarea { font: 400 15px/1.4 var(--sans); color: var(--ink); background: var(--paper); border: 1px solid var(--rule-2); border-radius: 8px; padding: 10px 12px; width: 100%; box-sizing: border-box; }
.propose-form .hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.propose-form button { justify-self: start; }
.propose-msg:empty { display: none; }
.propose-done { margin-top: 18px; color: var(--ink); }

/* 7.7 : accueil sans carte des relations (aucun lien documenté pour l’instant) */
.page-home.no-atlas .hero-grid { grid-template-columns: minmax(0, 1fr); }
.page-home.no-atlas .hero-copy { max-width: 820px; }
@media (max-width: 820px) {
  .header-in { gap: 10px; }
}
@media (max-width: 460px) {
  .wordmark { font-size: 12px; letter-spacing: .2em; }
  .brand { gap: 8px; min-width: 0; }
  .nav-donate { padding: 6px 10px !important; font-size: 12.5px; }
  .nav-donate span { display: none; }
}
@media (max-width: 360px) {
  .wordmark { display: none; }
}

/* ---- S7.8 : participation (droit de réponse, contributions, demandes juridiques) -------------------- */
.page-form { padding-top: clamp(24px, 5vw, 56px); padding-bottom: clamp(40px, 6vw, 80px); max-width: 820px; }
.page-form .dek { color: var(--ink-2); max-width: 64ch; }
.pf-back { margin: 0 0 18px; font-size: 14px; }
.pf-back a, .reply-cta a, .case-actions a { color: var(--link); text-decoration: none; }
.pf-back a:hover, .reply-cta a:hover, .case-actions a:hover { text-decoration: underline; }
.pf { display: grid; gap: 16px; margin-top: 22px; }
.pf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pf-field, .pf-group { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.f-label { font: 500 14px/1.3 var(--sans); color: var(--ink); }
.f-hint { font-size: 12.5px; color: var(--muted); }
.f-err { font-size: 13px; color: var(--conv); }
.pf input[type=text], .pf input[type=email], .pf input[type=url], .pf textarea, .pf select {
  font: 400 15px/1.45 var(--sans); color: var(--ink); background: var(--sheet); border: 1px solid var(--rule-2); border-radius: 8px;
  padding: 10px 12px; width: 100%; box-sizing: border-box; }
.pf .has-err input, .pf .has-err textarea, .pf .has-err select { border-color: var(--conv); }
.pf-radio, .pf-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--ink-2); line-height: 1.4; }
.pf-radio input, .pf-check input { margin-top: 3px; flex: none; }
.pf .hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pf button { justify-self: start; }
.pf-done { margin-top: 24px; padding: 22px; border: 1px solid var(--rule-2); border-radius: 12px; background: var(--sheet); }
.pf-number { font-size: 1.15em; letter-spacing: .04em; }
.case-actions { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--rule-2); font-size: 13.5px; }
.case-actions .ca-reply { margin-left: auto; }
.ca-paused { margin: 0; }
.reply-cta { margin: 14px 0 0; font-size: 14px; }
.reply { margin: 18px 0; padding: 16px 18px; border: 1px solid var(--rule-2); border-left: 3px solid var(--link); border-radius: 10px; background: var(--sheet); }
.reply-head { margin: 0 0 4px; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; }
.reply-date { font-size: 12px; color: var(--muted); }
.reply-lang, .reply-note { margin: 4px 0; }
.reply-body p { margin: 8px 0; }
.reply-links { margin: 8px 0; padding-left: 18px; font-size: 13.5px; word-break: break-all; }
.chip-public { border-color: var(--link) !important; color: var(--link) !important; }
@media (max-width: 640px) {
  .pf-row { grid-template-columns: 1fr; }
  .case-actions .ca-reply { margin-left: 0; }
}

/* ---- S7.9 : lignes d'une même affaire regroupées ----------------------------------------------------- */
.case-group { border: 1px solid var(--rule-2); border-radius: 14px; padding: 16px 16px 4px; margin: 0 0 22px; }
.case-group-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0 0 12px; }
.case-group-head .eyebrow { flex-basis: 100%; margin: 0; }
.case-group-title { margin: 0; font: 500 20px/1.25 var(--serif); }
.case-group .case { margin-bottom: 14px; }

/* ---------- S7.10 constellation ---------- */
.cst { position: relative; border: 1px solid var(--rule); border-radius: 24px; overflow: hidden; background: radial-gradient(circle at 50% 50%, #ffffff 0%, #f3f7ff 75%); box-shadow: var(--shadow-sm); }
.cst-stage { position: relative; aspect-ratio: 16 / 11; min-height: 360px; max-height: 720px; }
.cst-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; }
.cst-svg text { font-family: var(--sans); pointer-events: none; }
.cst-line { stroke-opacity: .5; transition: stroke-opacity .2s, opacity .2s; }
.cst-side .cst-line { stroke-opacity: .28; stroke-dasharray: none; }
.cst-link { cursor: pointer; outline: none; }
.cst-link:hover .cst-line, .cst-link:focus-visible .cst-line, .cst-link.on .cst-line { stroke-opacity: 1; }
.cst-link:focus-visible .cst-hit { stroke: var(--focus); stroke-opacity: .25; }
.cst-node { cursor: pointer; outline: none; transition: opacity .2s; }
.cst-node .cst-ring { transition: stroke-width .2s, stroke-opacity .2s; }
.cst-node:hover .cst-ring, .cst-node:focus-visible .cst-ring, .cst-node.on .cst-ring { stroke-width: 2.4; stroke-opacity: 1; }
.cst-node:focus-visible .cst-ring { stroke: var(--focus); }
.cst-dim .cst-link:not(.on) { opacity: .22; }
.cst-dim .cst-node:not(.on) { opacity: .4; }
.cst-pop { position: absolute; z-index: 3; width: min(340px, calc(100% - 16px)); max-height: calc(100% - 16px); overflow: auto; background: var(--sheet, #fff); color: var(--ink); border: 1px solid var(--rule-2, var(--rule)); border-radius: 14px; box-shadow: var(--shadow); padding: 12px 14px 10px; font-size: 13.5px; line-height: 1.45; }
.cst-pop[hidden] { display: none; }
.cst-pop-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.cst-pop-h .eyebrow { margin: 0; color: var(--muted); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; }
.cst-close { border: 0; background: transparent; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; padding: 2px 6px; border-radius: 8px; }
.cst-close:hover, .cst-close:focus-visible { color: var(--ink); background: var(--rule); }
.cst-pop-who { font-weight: 600; margin: 4px 0 8px; }
.cst-refs { margin: 0; padding-left: 18px; }
.cst-refs li { margin: 0 0 6px; }
.cst-src { white-space: nowrap; font-size: 12.5px; }
.cst-pop-n { margin: 6px 0 0; color: var(--muted); font-size: 11.5px; }
.cst-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 14px 0 0; padding: 0; color: var(--muted); font-size: 13px; }
.cst-legend li { display: inline-flex; align-items: center; gap: 9px; }
.lg-key { display: inline-block; flex: none; }
.lg-node { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid currentColor; background: var(--cst-soft, #dbe6fb); }
.lg-w { display: inline-flex; flex-direction: column; justify-content: center; gap: 3px; width: 26px; }
.lg-w b { display: block; background: var(--cst-accent, #2563eb); border-radius: 2px; height: 1.5px; }
.lg-w b:nth-child(2) { height: 3px; } .lg-w b:nth-child(3) { height: 5px; }
.lg-hover { width: 26px; height: 0; border-top: 2px dashed var(--cst-accent, #2563eb); }
.nl-refs { margin: 6px 0 0; padding-left: 16px; color: var(--ink-2); font-size: 13.5px; }
.nl-refs li { margin: 2px 0; }
.nl-src { white-space: nowrap; font-size: 12.5px; }
@media (prefers-reduced-motion: no-preference) {
  .cst-anim .cst-line { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .cst-anim.cst-in .cst-line { stroke-dashoffset: 0; transition: stroke-dashoffset 1s var(--ease) var(--d, 0ms); }
  .cst-anim .cst-node-in, .cst-anim .cst-centre { opacity: 0; transform: scale(.7); transform-box: fill-box; transform-origin: center; }
  .cst-anim.cst-in .cst-node-in { opacity: 1; transform: none; transition: opacity .6s ease var(--d, 0ms), transform .8s var(--ease) var(--d, 0ms); }
  .cst-anim.cst-in .cst-centre { opacity: 1; transform: none; transition: opacity .5s ease, transform .7s var(--ease); }
}
@media (max-width: 720px) {
  .cst { border-radius: 18px; }
  .cst-stage { aspect-ratio: 1 / 1.05; min-height: 0; }
  .cst-legend { font-size: 12.5px; gap: 8px 16px; }
  .net-list { columns: 1; }
}
@media print { .cst, .cst-legend { display: none !important; } }
.cst-centre { pointer-events: none; }
/* S7.10 legal form picker */
.fpick { position: relative; }
.fpick .fpick-list { position: absolute; left: 0; right: 0; top: 100%; z-index: 20; list-style: none; margin: 4px 0 0; padding: 4px; max-height: 300px; overflow: auto; background: var(--sheet, #fff); border: 1px solid var(--rule-2, var(--rule)); border-radius: 12px; box-shadow: var(--shadow); display: none; }
.fpick .fpick-list.open { display: block; }
.fpick-item { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.fpick-item[aria-selected="true"], .fpick-item:hover { background: var(--rule); }
.fpick-chosen { margin: 6px 0 0; font-size: 13px; color: var(--ink-2); }
.fpick-chosen::before { content: "✓ "; }
/* S7.10 « Découvrir » band */
.dz-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; padding: 4px; border: 1px solid var(--rule); border-radius: 999px; width: fit-content; max-width: 100%; background: var(--sheet, #fff); }
.dz-tabs[hidden] { display: none; }
.dz-tab { border: 0; background: transparent; color: var(--ink-2); font: 500 14px/1 var(--sans); padding: 10px 16px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.dz-tab:hover { color: var(--ink); background: var(--rule); }
.dz-tab[aria-selected="true"] { background: var(--ink); color: var(--paper, #fff); }
.dz-tab:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.dz-panel { margin-bottom: 28px; }
.dz-ready .dz-panel { margin-bottom: 0; }
.dz-ready .dz-h { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dz-h { font: 500 18px var(--sans); margin: 0 0 4px; }
.dz-note { margin: 0 0 14px; color: var(--muted); }
.dz-more { margin-top: 16px; }
@media (max-width: 560px) { .dz-tabs { flex-wrap: nowrap; width: 100%; gap: 2px; } .dz-tab { flex: 1 1 auto; padding: 9px 8px; font-size: 12.5px; white-space: normal; line-height: 1.15; text-align: center; } }
/* S7.10.1: no colour tied to a legal status, on the home page or in profiles */
.lg-neutral { background: transparent; border: 1px solid var(--rule-2); color: var(--ink-2); }
.lg-neutral i { background: var(--faint, var(--rule-2)); }
.lg-inline { background: transparent; color: inherit; font-weight: 600; }
.lcell:not(.on) .lnum { color: var(--rule-2); }
/* S7.10.1 « Constellation du moment » */
.cm .section-head { margin-bottom: 14px; }
.cm-def { margin: 8px 0 0; max-width: 62ch; color: var(--ink-2); }
.cm-pills { display: flex; gap: 10px; margin: 0 0 16px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: thin; }
.cm-pill { display: inline-flex; align-items: center; gap: 10px; flex: none; max-width: 240px; padding: 5px 14px 5px 5px; border: 1px solid var(--rule-2, var(--rule)); border-radius: 999px; background: var(--sheet, #fff); color: var(--ink); font: 500 14px/1.2 var(--sans); cursor: pointer; transition: border-color .2s, background .2s; }
.cm-pill:hover { border-color: var(--ink-2); }
.cm-pill[aria-pressed="true"] { background: var(--ink); color: var(--paper, #fff); border-color: var(--ink); }
.cm-pill:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.cm-thumb { width: 34px; height: 34px; border-radius: 50%; flex: none; background: var(--cst-soft, #dbe6fb) center/cover no-repeat; display: grid; place-items: center; font: 600 12px var(--sans); color: var(--ink); }
.cm-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-caption { margin: 12px 0 0; color: var(--ink-2); font-size: 14px; }
.net-all { margin-top: 16px; }
.net-all > summary { list-style: none; display: inline-flex; cursor: pointer; }
.net-all > summary::-webkit-details-marker { display: none; }
.net-all[open] > summary { margin-bottom: 12px; }
@media (max-width: 560px) { .cm-pill { max-width: 190px; font-size: 13px; padding-right: 12px; } .cm-thumb { width: 30px; height: 30px; } }

/* ================= S7.11 home page ================= */
.hb { position: relative; border-bottom: 1px solid var(--rule); overflow: hidden; }
.hb-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(20px, 3vw, 48px); align-items: center;
  padding-top: 40px; padding-bottom: 40px; max-height: 640px; }
.hb-copy { position: relative; z-index: 2; min-width: 0; }
.hb-title { font-size: clamp(34px, 4.4vw, 64px); line-height: 1.04; margin: 14px 0 22px; }
.hb-copy .search-field { max-width: 620px; }
.hb-stats { display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 16px 0 0; color: var(--muted); font-size: 12.5px; letter-spacing: .02em; }
.globe { position: relative; z-index: 1; margin: 0; justify-self: end; width: min(100%, 552px); aspect-ratio: 1400 / 859;
  background: #05080f; border-radius: 22px; overflow: hidden; isolation: isolate; }
.globe-img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.globe-layer { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility 0s linear .9s; transform-origin: 50% 80%; }
.globe.is-ready .globe-layer { opacity: 1; visibility: visible; transition: opacity .9s ease; }
.globe-arcs { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.globe-arcs path { fill: none; stroke: rgba(240, 214, 170, .5); stroke-width: 1.3; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.gb { position: absolute; width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2); border-radius: 50%; display: block;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .85), 0 0 12px 3px rgba(240, 214, 170, .38); background: #1a2438; z-index: 1; }
.gb img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.gb img.fit-contain { object-fit: contain; background: #fff; }
.gb:hover, .gb:focus-visible { z-index: 3; box-shadow: 0 0 0 2px #fff, 0 0 16px 5px rgba(240, 214, 170, .55); outline: none; }
.gb-tip { display: none; position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); white-space: nowrap; pointer-events: none;
  background: rgba(8, 12, 22, .92); color: #f4efe6; border: 1px solid rgba(240, 214, 170, .35); border-radius: 10px; padding: 6px 10px; font: 500 12.5px/1.3 var(--sans); }
.gb-tip b { display: block; font-weight: 600; }
.gb-tip span { color: rgba(244, 239, 230, .72); font-size: 11.5px; }
@media (hover: hover) { .gb:hover .gb-tip, .gb:focus-visible .gb-tip { display: block; } }
.globe-cta { position: absolute; right: 14px; bottom: 14px; z-index: 4; display: inline-flex; gap: 6px; align-items: center; padding: 8px 14px; border-radius: 999px;
  background: rgba(8, 12, 22, .62); color: #f4efe6; border: 1px solid rgba(240, 214, 170, .35); font: 500 13px/1 var(--sans); text-decoration: none; backdrop-filter: blur(6px); }
.globe-cta:hover, .globe-cta:focus-visible { background: rgba(8, 12, 22, .85); border-color: rgba(240, 214, 170, .7); }
.globe-credit { position: absolute; left: 14px; bottom: 12px; z-index: 4; color: rgba(244, 239, 230, .45); font-size: 10px; letter-spacing: .04em; }
@media (prefers-reduced-motion: no-preference) {
  .globe.is-ready .globe-layer { animation: gb-breathe 18s ease-in-out infinite; }
  .globe.is-ready .gb { animation: gb-halo 9s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -1.3s); }
}
@keyframes gb-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.012); } }
@keyframes gb-halo { 0%, 100% { box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .85), 0 0 10px 2px rgba(240, 214, 170, .3); }
  50% { box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .9), 0 0 16px 5px rgba(240, 214, 170, .5); } }
@media (max-width: 900px) {
  .hb-grid { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .globe { justify-self: stretch; width: 100%; }
  .gb:not(.gb-m) { display: none; }
  .gb-tip { display: none !important; }
}

/* discover cards: 2 rows of 4 on a computer, horizontal scroll on a phone */
.dz-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.dcard { min-width: 0; }
.dcard-link { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--rule); border-radius: 18px; overflow: hidden; background: var(--sheet);
  color: inherit; text-decoration: none; transition: border-color .2s, transform .25s var(--ease), box-shadow .25s; }
.dcard-link:hover, .dcard-link:focus-visible { border-color: var(--rule-2); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.dcard-media { aspect-ratio: 16 / 11; background: var(--paper-2, #eee); overflow: hidden; }
.dcard-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dcard-media img.fit-contain { object-fit: contain; background: #fff; padding: 10%; }
.dcard-mono { width: 100%; height: 100%; display: grid; place-items: center; font: 400 clamp(32px, 3.2vw, 46px)/1 var(--serif); letter-spacing: .04em;
  color: hsl(var(--h) 28% 30%); background: radial-gradient(120% 120% at 20% 10%, hsl(var(--h) 34% 93%), hsl(calc(var(--h) + 25) 22% 80%)); }
.dcard-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.dcard-meta { margin: 0; color: var(--muted); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dcard-name { margin: 0; font: 500 18px/1.2 var(--serif); }
.dcard-latest { margin: 0; color: var(--ink-2); font-size: 13.5px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dcard-n { margin: auto 0 0; padding-top: 4px; color: var(--muted); font-size: 11.5px; }
.dcard-date { margin: 0; color: var(--muted); font-size: 11px; }
@media (max-width: 1000px) { .dz-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .dz-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding-bottom: 8px; margin: 0 calc(var(--gut) * -1); padding-left: var(--gut); padding-right: var(--gut); scrollbar-width: thin; }
  .dcard { flex: 0 0 72%; scroll-snap-align: start; }
}
.read-box { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; margin-top: 40px; margin-bottom: 40px; }
.read-box > div { flex: 1 1 420px; border-left: 2px solid var(--rule-2); padding-left: 18px; }
.read-box h2 { margin: 0 0 6px; }
.read-box p { margin: 0; color: var(--ink-2); max-width: 75ch; }
.support-slim { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }

/* search results: « Voir ses liens » */
.result { position: relative; }
.res-links { display: inline-flex; gap: 6px; margin: 4px 0 10px; padding-left: 4px; font-size: 13px; }

/* ================= S7.11 « Explorer les liens » ================= */
.lx { padding-top: 22px; }
.lx-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 28px; }
.lx-title { margin: 6px 0 0; }
.lx-search { width: min(440px, 100%); }
.lx-search .lx-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 30; }
.lx-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 14px; margin-bottom: 12px; }
.lx-crumbs { flex: 1 1 320px; min-width: 0; }
.lx-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 13.5px; color: var(--muted); }
.lx-crumbs li + li::before { content: "›"; margin: 0 8px; color: var(--rule-2); }
.lx-crumbs li[aria-current] { color: var(--ink); font-weight: 600; }
.lx-count { color: var(--muted); font-size: 12px; }
.lx-cst { width: calc(100% - 2 * var(--gut)); max-width: 1680px; margin: 0 auto; }
.lx-cst .cst-stage { aspect-ratio: auto; height: calc(100vh - 230px); min-height: 460px; max-height: 1100px; }
.lx-foot { padding-bottom: 40px; }
.lx-empty { padding-top: 40px; padding-bottom: 60px; }
@media (prefers-reduced-motion: no-preference) {
  .lx-cst .cst-svg { transition: opacity .25s ease, transform .3s var(--ease); }
  .lx-cst.lx-out .cst-svg { opacity: 0; transform: scale(.96); }
  .lx-cst.lx-in .cst-svg { animation: lx-in .5s var(--ease); }
}
@keyframes lx-in { from { opacity: 0; transform: scale(1.03); } to { opacity: 1; transform: none; } }
@media (max-width: 720px) { .lx-cst .cst-stage { height: 78vh; min-height: 380px; } }
.hb .search-field input { font-size: 16px; }
@media (max-width: 560px) { .hb-stats { font-size: 11px; gap: 2px 8px; } .hb-title { font-size: 34px; } }
.globe-cta { top: 14px; bottom: auto; }
@media (max-width: 900px) { .globe-arcs .ga-x { display: none; } .globe-cta { top: 10px; right: 10px; padding: 7px 12px; font-size: 12.5px; } }
@media (max-width: 900px) { .gb { width: min(var(--s), 32px); height: min(var(--s), 32px); margin: calc(min(var(--s), 32px) / -2) 0 0 calc(min(var(--s), 32px) / -2); } }
.result a.res-links { display: inline-flex; gap: 6px; align-items: baseline; grid-template-columns: none; background: none; border: 0; box-shadow: none;
  padding: 0; margin: 8px 0 16px 4px; border-radius: 0; transform: none; color: var(--link, var(--ink)); text-decoration: underline; text-underline-offset: 3px; font-size: 13.5px; }
.result a.res-links:hover { transform: none; }
html[data-theme] .hb .search-field input { font-size: 16px; }

/* ================= S7.11.1 compact home band ================= */
html .page-home-v11 .hb-grid { min-height: 0; padding-top: clamp(40px, 3.2vw, 56px); padding-bottom: clamp(40px, 3.2vw, 56px);
  grid-template-columns: minmax(0, 1fr) minmax(0, 552px); max-height: 640px; }
html .page-home-v11 .hb-title { font-size: clamp(34px, 3.8vw, 56px); margin: 12px 0 20px; }
html .page-home-v11 .globe { width: min(100%, 552px); justify-self: end; align-self: center; }   /* Earth disc ≈ 520 px wide */
html .page-home-v11 .dz { padding-top: 40px; padding-bottom: 40px; }
html .page-home-v11 .dz .section-head { margin-bottom: 14px; }
html .page-home-v11 .dz .section-head .h2 { font-size: clamp(26px, 2.4vw, 34px); }
html .page-home-v11 .dz-tabs { margin-bottom: 10px; }
html .page-home-v11 .dz-note { margin-bottom: 12px; font-size: 13px; }
html .page-home-v11 .dcard-media { aspect-ratio: 2 / 1; }
html .page-home-v11 .dcard-body { padding: 12px 14px 14px; gap: 4px; }
@media (max-width: 900px) {
  html .page-home-v11 .hb-grid { grid-template-columns: minmax(0, 1fr); max-height: none; padding-top: 28px; padding-bottom: 28px; }
  html .page-home-v11 .globe { width: 100%; justify-self: stretch; }
}

/* S7.11.1 « Explorer les liens »: starting suggestions, central bubble = open the profile */
.lx-searchbox { width: min(460px, 100%); }
.lx-searchbox .lx-search { width: 100%; }
.lx-start { margin-top: 10px; }
.lx-start-h { margin: 0 0 6px; color: var(--muted); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.lx-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.lx-chip { display: inline-flex; align-items: center; gap: 7px; padding: 3px 10px 3px 3px; border: 1px solid var(--rule-2, var(--rule)); border-radius: 999px;
  background: var(--sheet); color: var(--ink); font-size: 13px; text-decoration: none; }
.lx-chip img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.lx-chip .mono { color: var(--muted); font-size: 11px; }
.lx-chip:hover, .lx-chip:focus-visible { border-color: var(--ink-2); }
.cst-centre-a { cursor: pointer; outline: none; }
.cst-centre-a .cst-centre { pointer-events: auto; }
.cst-centre-tip { opacity: 0; transition: opacity .15s; pointer-events: none; }
.cst-centre-a:hover .cst-centre-tip, .cst-centre-a:focus-visible .cst-centre-tip { opacity: 1; }
.cst-centre-a:focus-visible .cst-centre circle:nth-child(2) { stroke: var(--focus); stroke-width: 2.5; }
html .page-home-v11 .hb-grid { padding-top: 40px; padding-bottom: 40px; }
@media (min-width: 901px) {
  html .page-home-v11 .dz { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 28px; align-items: end; padding-top: 34px; }
  html .page-home-v11 .dz > .section-head { grid-column: 1; margin-bottom: 12px; }
  html .page-home-v11 .dz > .dz-tabs { grid-column: 2; justify-self: start; margin-bottom: 12px; }
  html .page-home-v11 .dz > .dz-panel { grid-column: 1 / -1; }
}
@media (min-width: 901px) {
  html .page-home-v11 .dz { padding-top: 26px; }
  html .page-home-v11 .dz-note { margin: 0 0 8px; }
  html .page-home-v11 .dcard-media { aspect-ratio: 2.2 / 1; }
}
.lx-head { align-items: flex-start; }
/* S7.12 donations page */
.don-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 16px; }
.don-item p { margin: 6px 0 0; }
.don-amounts { display: flex; flex-wrap: wrap; gap: 6px; }

/* ===== S7.13 ===== */
.gb img.fit-contain { padding: 14%; box-sizing: border-box; }
/* footer: description under the logo on a normal width (it was squeezed to ~114 px by the link row) */
.footer-grid { grid-template-columns: minmax(240px, 360px) minmax(0, 1fr); align-items: start; }
.footer-brand p { max-width: 36ch; }
.footer-nav { justify-content: flex-end; gap: 10px 22px; }
@media (max-width: 1100px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } .footer-nav { justify-content: flex-start; } }
.nowrap { white-space: nowrap; }
.case-actions .ca-add { font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.case-actions .ca-add:hover, .case-actions .ca-add:focus-visible { color: var(--ink); }
.pf-kind { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--rule); border-radius: 999px; margin: 6px 0 18px; }
.pf-kind a { padding: 7px 14px; border-radius: 999px; text-decoration: none; color: var(--ink-2); font-size: 14px; }
.pf-kind a[aria-current] { background: var(--ink); color: var(--paper, #fff); }
.ticker-in { justify-content: flex-end; }
/* S7.13 profile on a phone: round 96 px portrait next to the name, name / context / summary visible at once */
.dh-zoom { display: block; color: inherit; cursor: default; }
.photo-dlg { border: 0; padding: 0; max-width: min(92vw, 640px); background: var(--sheet, #fff); color: var(--ink); border-radius: 16px; overflow: hidden; }
.photo-dlg::backdrop { background: rgba(5, 8, 15, .78); }
.photo-dlg img { display: block; width: 100%; height: auto; max-height: 76vh; object-fit: contain; background: #000; }
.photo-dlg .credit { margin: 0; padding: 10px 14px 12px; font-size: 12.5px; }
.photo-dlg .modal-x { position: absolute; top: 8px; right: 8px; z-index: 2; background: rgba(0, 0, 0, .55); color: #fff; border: 0; width: 34px; height: 34px; border-radius: 50%; font-size: 20px; cursor: pointer; }
@media (max-width: 640px) {
  html .dossier-head { grid-template-columns: 96px minmax(0, 1fr); gap: 14px 16px; align-items: start; }
  html .dh-portrait { width: 96px; max-width: 96px; margin: 4px 0 0; }
  html .dh-portrait::before { display: none; }
  html .dh-zoom { cursor: zoom-in; border-radius: 50%; }
  html .dossier-portrait { width: 96px; height: 96px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 2px var(--rule-2); margin: 0; }
  html .dossier-portrait img { width: 100%; height: 100%; object-fit: cover; filter: none; }
  html .dossier-portrait.fit-contain img { object-fit: contain; padding: 12%; }
  html .dossier-portrait .corners, html .dossier-portrait .ph-label { display: none; }
  html .dossier-portrait .ph-initials { font-size: 30px; }
  html .dh-portrait > .credit { display: none; }
  html .dossier-name { font-size: clamp(28px, 8vw, 38px); margin-top: 4px; }
  html .dh-id .eyebrow { font-size: 10.5px; }
}
/* S7.13 table of contents: titles on 2 lines at most (full title on hover), a slightly wider column */
@media (min-width: 1001px) { html .dossier-body { grid-template-columns: 220px minmax(0, 1fr); } }
.toc ol a .toc-t { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ===== S7.14 ===== */
/* installed app: elements shown only in the app, or only in the browser */
.app-only { display: none !important; }
@media (display-mode: standalone) { .app-only { display: revert !important; } .browser-only { display: none !important; } }
html.is-app .app-only { display: revert !important; }
html.is-app .browser-only { display: none !important; }
.app-back { flex: none; border: 1px solid var(--rule-2); background: transparent; color: var(--ink); font: 500 13px/1 var(--sans); padding: 8px 12px; border-radius: 999px; cursor: pointer; margin-right: 6px; }
.header-in .app-back.app-only { display: none !important; }
@media (display-mode: standalone) { .header-in .app-back.app-only { display: inline-flex !important; } }
html.is-app .header-in .app-back.app-only { display: inline-flex !important; }
.share-row { margin: 14px 0 0; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.share-btn { border: 1px solid var(--rule-2); background: transparent; color: var(--ink); font: 500 14px/1 var(--sans); padding: 10px 16px; border-radius: 999px; cursor: pointer; }
.share-msg { font-size: 13px; color: var(--muted); }
/* footer install button */
.footer-app { grid-column: 1 / -1; margin: 6px 0 0; }
.install-btn { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font: 500 14px/1 var(--sans); padding: 10px 16px; border-radius: 999px; border: 1px solid var(--rule-2); background: transparent; color: var(--ink); }
.install-btn .ico-install { width: 18px; height: 18px; flex: none; }
/* iPhone help */
.ios-help { border: 0; border-radius: 16px; padding: 22px 22px 18px; max-width: min(92vw, 380px); background: var(--sheet, #fff); color: var(--ink); }
.ios-help::backdrop { background: rgba(5, 8, 15, .7); }
.ios-help h2 { margin: 4px 0 14px; font-size: 22px; }
.ios-help .modal-x { position: absolute; top: 8px; right: 8px; border: 0; background: transparent; color: var(--muted); font-size: 22px; width: 34px; height: 34px; cursor: pointer; }
.ios-steps { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; }
.ios-steps li { display: flex; align-items: center; gap: 12px; font-size: 16px; }
.ios-ico { width: 30px; height: 30px; flex: none; color: #0a84ff; }
/* bands: new version, offline copy */
.app-band { position: fixed; left: 50%; transform: translateX(-50%); top: calc(10px + env(safe-area-inset-top, 0px)); z-index: 960; background: var(--sheet, #fff); color: var(--ink); border: 1px solid var(--rule-2); border-radius: 999px; padding: 9px 16px; font-size: 13.5px; box-shadow: 0 6px 22px rgba(0,0,0,.25); max-width: calc(100vw - 32px); text-align: center; }
.app-band[hidden] { display: none; }
.app-band button { border: 0; background: transparent; color: var(--gold, var(--blue)); font: 600 13.5px/1 var(--sans); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 0; }
.offline-band { position: sticky; top: 0; transform: none; left: auto; border-radius: 0; width: 100%; max-width: none; box-shadow: none; border-width: 0 0 1px; }
.offline-list { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 8px; }
.offline-list a { font-size: 17px; }
/* « L'application » page */
.app-head { display: flex; gap: 24px; align-items: flex-start; }
.app-icon { width: 96px; height: 96px; border-radius: 22px; flex: none; box-shadow: 0 6px 24px rgba(0,0,0,.3); }
.app-cta { margin-top: 18px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.app-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 8px 0 36px; }
.app-how { border: 1px solid var(--rule-2); border-radius: 16px; padding: 18px 20px; background: var(--sheet, transparent); }
.app-how h2 { font-size: 19px; margin: 0 0 10px; }
.app-how ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.ios-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 12px 0 0; font-size: 14px; }
.ios-row .ios-ico { width: 24px; height: 24px; }
@media (max-width: 640px) { .app-head { flex-direction: column; gap: 14px; } .app-icon { width: 72px; height: 72px; border-radius: 17px; } }

/* S7.14 profile header on a phone: only name / context / « also known as » beside the 96 px thumbnail;
   summary, categories, right of reply and the « Fiche nº … » line use the full width below */
@media (max-width: 640px) {
  html .dossier-head { grid-template-columns: 96px minmax(0, 1fr); align-items: center; row-gap: 16px; }
  html .dossier-head .dh-portrait { grid-column: 1; grid-row: 1; align-self: start; }
  html .dossier-head .dh-id { display: contents; }
  html .dossier-head .dh-top { grid-column: 2; grid-row: 1; min-width: 0; }
  html .dossier-head .dh-more { grid-column: 1 / -1; grid-row: 2; display: flex; flex-direction: column; min-width: 0; }
  html .dossier-head .dh-summary { order: 1; }
  html .dossier-head .dh-cats { order: 2; }
  html .dossier-head .dh-more > .reply-cta, html .dossier-head .dh-more > .reply-block { order: 3; }
  html .dossier-head .dh-more > .updated { order: 4; }
  html .dossier-head .dh-more > .share-row { order: 5; }
  html .dossier-head .dh-top .eyebrow { margin: 0 0 4px; }
  html .dossier-head .dossier-name { margin: 0; font-size: clamp(26px, 7.4vw, 34px); line-height: 1.08; }
  html .dossier-head .aliases { margin: 6px 0 0; font-size: 13px; }
  html .dossier-head .dh-summary .dek { margin-top: 0; }
}
@media (max-width: 460px) { html.is-app .header-in .app-back ~ .brand .wordmark { display: none; } }
@media (max-width: 460px) and (display-mode: standalone) { .header-in .app-back ~ .brand .wordmark { display: none; } }
/* S7.14: on phones the « Découvrir » card strip scrolls inside its band — it never widens the page */
@media (max-width: 720px) { .dz-grid { contain: paint; overscroll-behavior-x: contain; } }

/* ===== S7.15 ===== */
/* « 📱 Appli mobile gratuite »: a gold pill in the header (instead of Méthodologie / À propos, kept in the footer),
   with the trust line under it; on a phone only the phone-and-arrow icon, the full text being in the menu */
.site-nav a.nav-app { position: relative; padding: 0; color: var(--ink); }
.site-nav a.nav-app::after { display: none; }
.nav-app-pill { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--gold, #b8893b);
  background: rgba(226, 192, 141, .12); color: var(--gold, #8a6420); font-weight: 600; font-size: 13.5px; white-space: nowrap; transition: background .2s; }
.site-nav a.nav-app:hover .nav-app-pill, .site-nav a.nav-app:focus-visible .nav-app-pill { background: rgba(226, 192, 141, .24); }
.nav-app-trust { position: absolute; left: 50%; top: calc(100% + 3px); transform: translateX(-50%); white-space: nowrap; font-size: 10.5px;
  letter-spacing: .02em; color: var(--muted); pointer-events: none; }
.nav-app-icon { display: none; flex: none; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 50%;
  border: 1.5px solid var(--gold, #b8893b); color: var(--gold, #8a6420); background: rgba(226, 192, 141, .12); }
.nav-app-icon svg { width: 22px; height: 22px; }
@media (max-width: 1100px) and (min-width: 821px) { .site-nav { gap: 20px; } .nav-app-trust { display: none; } }
@media (max-width: 820px) {
  .nav-app-icon { display: inline-flex; order: 2; margin-left: auto; }
  .nav-donate { margin-left: 8px; }
  .site-nav a.nav-app { padding: 14px 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
  .nav-app-trust { position: static; transform: none; font-size: 12px; }
}
@media (display-mode: standalone) { .nav-app-icon { display: none !important; } }
html.is-app .nav-app-icon { display: none !important; }
.app-trust { display: inline-block; margin: 0 0 12px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--gold, #b8893b);
  color: var(--gold, #8a6420); font-size: 12.5px; letter-spacing: .02em; }
.src-archived { font-size: 12px; color: var(--muted); white-space: nowrap; }
/* S7.17: header links on one line next to the larger name */
.site-nav a { white-space: nowrap; }
@media (max-width: 1400px) and (min-width: 821px) { .site-header .site-nav { gap: 22px; } .site-header .nav-search { min-width: 0; } }
@media (max-width: 1240px) and (min-width: 821px) { .site-header .site-nav { gap: 16px; } }

/* S7.19 « Suivre » */
.site-nav a.nav-follow { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.nav-follow .nf-star { font-size: 15px; line-height: 1; color: var(--ink); }
.nav-follow .nf-count { font: 600 11px/1 var(--mono, monospace); background: var(--ink); color: var(--paper); border-radius: 999px; padding: 3px 6px; }
@media (min-width: 821px) { .nav-follow .nf-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }
.follow-row { display: flex; align-items: center; gap: 10px; margin: 12px 0 2px; flex-wrap: wrap; }
.follow-btn { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 14px; font-weight: 600; padding: 7px 16px; border-radius: 999px;
  border: 1px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; min-height: 38px; }
.follow-btn:hover { background: var(--ink); color: var(--paper); }
.follow-btn .fb-on { display: none; }
.follow-btn[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.follow-btn[aria-pressed="true"] .fb-on { display: inline; }
.follow-btn[aria-pressed="true"] .fb-off { display: none; }
.follow-msg { font-size: 13px; color: var(--ink-2); }
.follow-offer { margin: 10px 0 4px; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 12px; background: var(--paper-2, rgba(0,0,0,.025)); font-size: 14px; max-width: 560px; }
.follow-offer p { margin: 0 0 8px; }
.follow-offer .fo-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 0; }
.follow-list { display: grid; gap: 10px; margin: 24px 0; }
.fl-item { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 14px; background: var(--paper); }
.fl-item.fresh { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink) inset; }
.fl-photo { width: 56px; height: 56px; border-radius: 50%; background: var(--rule) center / cover no-repeat; display: grid; place-items: center; font-weight: 600; color: var(--ink-2); overflow: hidden; }
.fl-photo.contain { background-size: contain; background-color: #fff; }
.fl-name { font-weight: 600; font-size: 16px; text-decoration: none; color: var(--ink); }
.fl-meta { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.fl-new { display: inline-block; font: 600 11px/1 var(--mono, monospace); text-transform: uppercase; letter-spacing: .04em; background: var(--ink); color: var(--paper); border-radius: 999px; padding: 4px 8px; margin-left: 6px; vertical-align: 2px; }
.fl-un { font-size: 13px; background: none; border: 0; color: var(--ink-2); text-decoration: underline; cursor: pointer; padding: 6px; }
.follow-push { margin: 28px 0; padding: 16px 18px; border: 1px solid var(--rule); border-radius: 14px; }
.follow-push h2 { display: flex; align-items: center; gap: 6px; margin-top: 0; }
.follow-push .fl-ico { width: 16px; height: 16px; }
.fl-actions { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 560px) { .fl-item { grid-template-columns: 46px minmax(0, 1fr); } .fl-photo { width: 46px; height: 46px; } .fl-un { grid-column: 2; justify-self: start; padding-left: 0; } }
.follow-push [hidden], .follow-offer[hidden], .follow-row [hidden] { display: none !important; }
.fl-new { white-space: normal; border-radius: 8px; line-height: 1.3; }
@media (max-width: 560px) { .fl-new { display: table; margin: 4px 0 2px; } }
