/* The library's stylesheet (/ressources/). Source of record; scripts/build_library.py copies it to
   console/public/ressources/ressources.css. Kevin 2026-11-01: learn from the editorial layout of Anthropic's model pages
   (one photograph on black, a reading column, wide ruled tables, dark footer), in SentinelOS's own paper, ink,
   photographs and wordmark. Kevin chose comp B: Manrope only, so --serif is Manrope too; it marks the reading text. */
@font-face { font-family: Manrope; src: url("/fonts/manrope-var-latin.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
:root { --paper: #f5f3ec; --paper-2: #ece8dc; --field: #fffefa; --ink: #1a1917; --night: #0c0b0a; --muted: #5f5a52; --faint: rgba(26,25,23,.45);
        --line: rgba(26,25,23,.16); --rule: rgba(26,25,23,.85); --ok: #4a6b4f; --warn: #8a6a2f; --hold: #4a5a80; --bad: #8f3a34;
        --sans: "Manrope", system-ui, sans-serif; --serif: "Manrope", system-ui, sans-serif;
        --col: 700px; --wide: 920px; --pad: clamp(20px, 5vw, 64px); }
* { box-sizing: border-box; } html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17.5px/1.68 var(--serif); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }

/* The site's header and footer, verbatim from the landing (site.css), as the Frontier Lab uses them (lab.css), so
   every public page carries the same chrome (Kevin 2026-11-01: « the header and footer are not consistent »). The
   header floats over the photograph and turns solid on scroll (views/Library.tsx), as on the landing. */
.top { --ink: #0b0a09; --on: #f4efe6; --c-allow: #6f9f7c; --c-note: #caa24e; --c-hold: #7c8fbd; --c-block: #d0573f; --glass-line: rgba(255, 255, 255, .14); --display: "Manrope", system-ui, sans-serif; --pad: clamp(20px, 5vw, 80px); --ease: cubic-bezier(.2, .7, .2, 1); color: var(--on); }
.top {  position: fixed; inset: 0 0 auto; z-index: 80; display: flex; align-items: center; gap: 28px; padding: 18px var(--pad); transition: background .3s var(--ease);  }
.top.solid {  background: rgba(11, 10, 9, .5); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2); border-bottom: 1px solid var(--glass-line);  }
.top__end {  display: flex; gap: 16px; align-items: center; margin-left: auto;  }
.top .wm {  display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1; color: inherit;  }
.top .wm__name {  font: 700 15px var(--display); letter-spacing: .30em; text-transform: uppercase;  }
.top .wm__os {  font-size: .86em; letter-spacing: .26em; margin-left: .06em; color: rgba(244, 239, 230, .5);  }
.top .wm__marks {  display: inline-flex; gap: 5px; margin-top: 6px;  }
.top .wm__marks i {  width: 5.5px; height: 5.5px; display: block;  }
.top .g-allow {  background: var(--c-allow); border-radius: 50%;  }
.top .g-note {  background: var(--c-note); transform: rotate(45deg) scale(.8);  }
.top .g-hold {  background: var(--c-hold);  }
.top .g-block {  background: var(--c-block); clip-path: polygon(50% 0, 100% 100%, 0 100%);  }
.top .btn {  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border-radius: 99px; font: 700 12.5px var(--display); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .12s var(--ease), background .18s, border-color .18s;  }
.top .btn:active {  transform: scale(.97);  }
.top .btn--light {  background: var(--on); color: var(--ink);  }
.top .btn--light:hover {  background: #fff;  }
.top__lab{font:600 14px/1 var(--f, "Manrope");letter-spacing:-.005em;text-decoration:none;color:inherit;opacity:.72;margin-right:22px;transition:opacity .3s}
.top__lab:hover{opacity:1}
@media(max-width:480px){.top__lab{margin-right:12px;font-size:13px}}
@media (max-width: 640px) { .top {  gap: 12px;  } .top .btn--light {  display: none;  } }

.foot { --paper: #f5f3ec; --ink: #1a1917; --muted: #5f5a52; --line: rgba(26, 25, 23, .15); --line-2: rgba(26, 25, 23, .09); --ok: #4a6b4f; --warn: #8a6a2f; --hold: #4a5a80; --bad: #8f3a34; --f: "Manrope", ui-sans-serif, system-ui, sans-serif; --pad: clamp(16px, 5vw, 80px); }
.foot {  background: #000; color: rgba(244,239,230,.86); padding: clamp(64px, 9vh, 96px) var(--pad) 32px; font-family: var(--f); font-size: 15px; line-height: 1.5;  }
.foot__grid {  margin: 0 auto; display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px;  }
.foot__brand p {  margin: 18px 0 0; max-width: 30ch; font-size: 15px; color: inherit;  }
.foot h2, .foot .foot__h {  margin: 0 0 16px; font: 700 12px var(--f); letter-spacing: .14em; text-transform: uppercase; color: rgba(244,239,230,.5);  }
.foot__grid > div:not(.foot__brand) {  display: flex; flex-direction: column; gap: 10px;  }
.foot__grid a {  text-decoration: none; font-size: 15px; color: inherit; width: fit-content;  }
.foot a:hover {  color: #fff;  }
.foot__base {  margin: 56px auto 0; padding-top: 22px; border-top: 1px solid rgba(244,239,230,.12); display: flex; justify-content: space-between; gap: 24px; font-size: 12.5px; color: rgba(244,239,230,.5);  }
.foot__base a {  color: inherit;  }
.foot .wm {  display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1;  }
.foot .wm__name {  font: 700 15px var(--f); letter-spacing: .30em; text-transform: uppercase; color: #f4efe6;  }
.foot .wm__os {  font-size: .86em; letter-spacing: .26em; margin-left: .06em; opacity: .5;  }
.foot .wm__marks {  display: inline-flex; gap: 5px; margin-top: 6px;  }
.foot .wm__marks i {  width: 5.5px; height: 5.5px; display: block;  }
.foot .m-ok {  background: var(--ok); border-radius: 50%;  }
.foot .m-warn {  background: var(--warn); transform: rotate(45deg) scale(.8);  }
.foot .m-hold {  background: var(--hold);  }
.foot .m-bad {  background: var(--bad); clip-path: polygon(50% 0, 100% 100%, 0 100%);  }
@media (max-width: 900px) { .foot__grid {  grid-template-columns: 1fr 1fr;  } }
@media (max-width: 560px) { .foot__grid {  grid-template-columns: 1fr;  } .foot__base {  flex-direction: column;  } }

/* the hero: one photograph, edge to edge */
.hero { background: var(--night); height: clamp(280px, 52vh, 600px); }
.hero img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* the head of the article: eyebrow, title, lede, byline, in the reading column */
.page { padding: clamp(56px, 9vh, 104px) var(--pad) 96px; }
.head, article { max-width: var(--col); margin: 0 auto; }
.eyebrow { font: 600 12.5px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.eyebrow a { text-decoration: none; } .eyebrow a:hover { color: var(--ink); }
h1 { margin: 18px 0 0; font: 600 clamp(36px, 4.4vw, 56px)/1.08 var(--serif); letter-spacing: -.03em; text-wrap: balance; }
.lede { margin: 26px 0 0; font: 400 clamp(20px, 1.8vw, 23px)/1.5 var(--serif); color: var(--ink); }
.enbref { margin: 26px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); font: 400 17px/1.6 var(--serif); }
.enbref b { font-weight: 650; }
.byline { margin: 30px 0 0; font: 500 13px var(--sans); color: var(--faint); }
.byline b { color: var(--ink); font-weight: 650; }
.toc { max-width: var(--col); margin: 40px auto 0; padding: 18px 0 0; border-top: 1px solid var(--line); font: 500 14px/1.5 var(--sans); }
.toc p { margin: 0 0 10px; font-weight: 650; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.toc ol { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 32px; }
.toc li { break-inside: avoid; padding: 4px 0; } .toc a { text-decoration: none; color: var(--muted); } .toc a:hover { color: var(--ink); text-decoration: underline; }

article { margin-top: clamp(48px, 7vh, 72px); }
article h2 { margin: 64px 0 16px; font: 600 clamp(26px, 2.4vw, 32px)/1.2 var(--serif); letter-spacing: -.025em; scroll-margin-top: 24px; text-wrap: balance; }
article h2:first-child { margin-top: 0; }
article h3 { margin: 36px 0 8px; font: 650 19px/1.35 var(--serif); }
article p { margin: 0 0 20px; } article ul, article ol { margin: 0 0 20px; padding-left: 22px; } article li { margin: 8px 0; }
article strong { font-weight: 650; }
article em { font-style: italic; }

/* the line that carries the argument */
.thesis { margin: 36px 0; padding: 4px 0 4px 26px; border-left: 2px solid var(--ink); font: 500 clamp(21px, 2vw, 25px)/1.42 var(--serif); letter-spacing: -.01em; }

/* the text of the law, as a card: a label, the words, then its reference in cells */
.law { margin: 32px 0; background: var(--paper-2); border: 1px solid var(--rule); border-top-width: 3px; }
.law::before { content: "Texte officiel"; display: block; padding: 14px 20px 0; font: 600 11px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.law.report::before { content: "Extrait du rapport"; }
.law.quote::before { content: "Déclaration"; }
.law blockquote { margin: 0; padding: 8px 20px 18px; font: 400 16.5px/1.6 var(--serif); }
.law blockquote::before { content: "« "; } .law blockquote::after { content: " »"; }
.law cite { display: block; padding: 12px 20px; border-top: 1px solid var(--rule); font: 600 12.5px var(--sans); font-style: normal; }
.law cite a { text-decoration: none; } .law cite a:hover { text-decoration: underline; }

/* tables break out of the reading column, ruled on every side */
.wide { width: min(var(--wide), calc(100vw - 2 * var(--pad))); margin: 36px 0 36px 50%; transform: translateX(-50%); overflow-x: auto; }
.map { width: 100%; border-collapse: collapse; font: 400 14px/1.5 var(--sans); background: var(--field); }
.map th, .map td { border: 1px solid var(--rule); padding: 12px 14px; text-align: left; vertical-align: top; }
.map th { font-weight: 650; font-size: 13px; background: var(--paper); }
.map td:first-child { font-weight: 650; white-space: nowrap; }
.map.us th:last-child, .map.us td:last-child { background: rgba(74,90,128,.10); box-shadow: inset 2px 0 0 var(--hold), inset -2px 0 0 var(--hold); }
.map.us thead th:last-child { box-shadow: inset 2px 0 0 var(--hold), inset -2px 0 0 var(--hold), inset 0 2px 0 var(--hold); }
.map.us tbody tr:last-child td:last-child { box-shadow: inset 2px 0 0 var(--hold), inset -2px 0 0 var(--hold), inset 0 -2px 0 var(--hold); }
.wide .map { min-width: 720px; }

/* dates on an axis */
.dates { list-style: none; margin: 28px 0; padding: 0 !important; border-left: 1px solid var(--ink); font-family: var(--serif); }
.dates li { position: relative; margin: 0 !important; padding: 0 0 22px 26px; }
.dates li::before { content: ""; position: absolute; left: -5px; top: 9px; width: 9px; height: 9px; background: var(--ink); }
.dates li.later::before { background: var(--paper); border: 1px solid var(--ink); }
.dates b { display: block; font: 700 13px var(--sans); letter-spacing: .06em; text-transform: uppercase; }

.steps { list-style: none; padding: 0 !important; counter-reset: s; }
.steps li { counter-increment: s; margin: 0 0 18px !important; }
.steps li::before { content: counter(s) ". "; font: 650 15px var(--sans); color: var(--muted); }

/* the next article of the cluster, before the closing line */
.then { margin: 56px 0 0; font: 500 15px var(--sans); color: var(--muted); }
.then a { font-weight: 650; color: var(--ink); }

/* the one line that sends the reader to SentinelOS */
.next { margin: 64px 0 0; padding: 26px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); display: flex; justify-content: space-between; align-items: center; gap: 28px; }
.next p { margin: 0; font: 500 19px/1.45 var(--serif); }
.next a { flex: none; font: 600 14px var(--sans); text-decoration: none; background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 999px; }
/* the closing card names the product the article is about (2026-11-12): its window, its one line, the way in */
.next.pc { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 28px; align-items: center; justify-content: start; }
.pc__win { display: block; padding: 0 !important; background: #0b0a09 !important; border-radius: 6px !important; overflow: hidden; aspect-ratio: 16 / 10; }
.pc__win img { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.next.pc:hover .pc__win img { transform: scale(1.04); }
.pc__t { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.pc__t .pc__k { font: 700 11px var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted, #6f685e); }

.sources { margin-top: 56px; font: 400 13.5px/1.55 var(--sans); color: var(--muted); }
.sources h2 { margin: 0 0 10px !important; font: 650 12px var(--sans) !important; letter-spacing: .14em !important; text-transform: uppercase; }
.sources ol { padding-left: 20px; } .sources li { margin: 6px 0; overflow-wrap: anywhere; }

/* the library index */
.shelf { max-width: var(--wide); margin: clamp(48px, 7vh, 72px) auto 0; }
.shelf h2 { margin: 0; padding-bottom: 10px; font: 650 12px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--rule); }
.shelf ul { list-style: none; margin: 0 0 56px; padding: 0; }
.shelf li { border-bottom: 1px solid var(--line); }
.shelf li a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 32px; padding: 22px 0; text-decoration: none; }
.shelf li a b { font: 600 clamp(20px, 2vw, 25px)/1.25 var(--serif); letter-spacing: -.02em; }
.shelf li a span { grid-column: 1; color: var(--muted); font-size: 16.5px; max-width: 68ch; }
.shelf li a i { grid-column: 2; grid-row: 1; font: 500 13px var(--sans); font-style: normal; color: var(--faint); white-space: nowrap; padding-top: 8px; }
.shelf li a:hover b { text-decoration: underline; text-decoration-thickness: 1px; }
/* the end of an article: what to read next, then the way back to the library (2026-11-06) */
.more { margin-top: clamp(64px, 9vh, 96px); }
.more ul { margin-bottom: 28px; }
.back { margin: 0 0 clamp(48px, 7vh, 72px); font: 600 15px var(--sans); }
.back a { color: var(--ink); text-decoration: none; }
.back a:hover { text-decoration: underline; text-decoration-thickness: 1px; }

@media (max-width: 860px) {
  .hero { height: 40vh; }
  .toc ol { columns: 1; }
  .next { flex-direction: column; align-items: flex-start; }
  .next.pc { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 560px) {
  body { font-size: 18px; }
  .hero { height: 32vh; }
  .shelf li a { grid-template-columns: 1fr; } .shelf li a i { grid-column: 1; grid-row: auto; padding-top: 0; }
}

/* data figures: inline SVG, ink on paper (2026-11-08). The viewBox is 720 wide, so text sizes step up as the column narrows. */
.fig { margin: 32px 0; }
.fig svg { width: 100%; height: auto; display: block; }
.fig figcaption { padding-top: 10px; border-top: 1px solid var(--line); font: 400 13px/1.5 var(--sans); color: var(--muted); }
.fig text { font-family: var(--sans); font-size: 13px; fill: var(--muted); paint-order: stroke; stroke: var(--paper); stroke-width: 4px; stroke-linejoin: round; }
.fig .k, .fig .v { fill: var(--ink); font-weight: 650; }
.fig .bar { fill: var(--ink); }
.fig .trk { fill: var(--paper-2); }
.fig .ax { stroke: var(--rule); stroke-width: 1; }
.fig .gl { stroke: var(--line); stroke-width: 1; }
.fig .ln { stroke: var(--muted); stroke-width: 1; }
.fig .mk { fill: var(--paper); stroke: var(--ink); stroke-width: 2; }
@media (max-width: 760px) { .fig text { font-size: 14px; } }
@media (max-width: 640px) { .fig text { font-size: 16px; } }
@media (max-width: 520px) { .fig text { font-size: 19px; } }
@media (max-width: 440px) { .fig text { font-size: 24px; } }
