/* Obscura V2 — feuille unique. Identité : nuit, lumière bleue, accent acide. */
@font-face{font-family:Archivo;src:url('fonts/archivo-normal.woff2') format('woff2');font-weight:100 900;font-display:swap}
@font-face{font-family:Newsreader;src:url('fonts/newsreader-normal.woff2') format('woff2');font-weight:200 800;font-display:swap}
@font-face{font-family:Newsreader;src:url('fonts/newsreader-italic.woff2') format('woff2');font-style:italic;font-weight:200 800;font-display:swap}
@font-face{font-family:Space;src:url('fonts/space-grotesk-normal.woff2') format('woff2');font-weight:300 700;font-display:swap}

:root{font-family:Space,Arial,sans-serif;color:#eaf1f9;background:#03060e;color-scheme:dark;
  --ink:#03060e;--muted:#9fb3c9;--light:#b7d9ff;--acid:#deefae;--line:#b2d8ff29;--panel:#070d1abf;--panel-strong:#0a1122f2;
  font-synthesis:none}
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{min-height:100svh;background:var(--ink);overflow-x:hidden;line-height:1.5;font-size:13px;-webkit-font-smoothing:antialiased}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}
a{color:inherit;text-decoration:none}
input,textarea{font:inherit;color:inherit}
svg{display:block}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.skip-link{position:fixed;top:-60px;left:18px;z-index:100;background:var(--acid);color:var(--ink);padding:9px 16px;border-radius:4px;transition:top .2s}
.skip-link:focus{top:14px}
:focus-visible{outline:2px solid var(--acid);outline-offset:3px;border-radius:3px}

#world{position:fixed;inset:0;z-index:0}
.grain{position:fixed;inset:0;z-index:1;pointer-events:none;opacity:.5;mix-blend-mode:overlay;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23fff' opacity='.2' filter='url(%23n)' d='M0 0h180v180H0z'/%3E%3C/svg%3E")}
#app{position:relative;z-index:2}
.eyebrow{display:flex;align-items:center;gap:10px;font-size:10px;letter-spacing:.22em;color:var(--light)}
.eyebrow i{font-style:normal;color:#5f7fa6}
.muted{color:var(--muted);font-size:12.5px;line-height:1.8}
mark{background:none;color:var(--acid);border-bottom:1px solid #deefae66;padding:0 1px}

/* ——— En-tête / pied ——— */
.top{position:absolute;top:0;left:0;right:0;z-index:30;height:96px;margin:0 4.2%;display:flex;align-items:center;justify-content:space-between;gap:22px}
.brand{display:flex;align-items:center;gap:11px;font-family:Archivo,Arial,sans-serif;font-weight:600;font-size:18px;letter-spacing:.16em}
.brand svg{width:26px;height:26px;color:var(--light)}
.brand>span{font-size:8px;align-self:start;margin-left:-8px;margin-top:4px;opacity:.6}
.world-name{font-size:9px;letter-spacing:.17em;color:#c4d3e6}
.world-name i{font-style:normal;color:#6683a4;margin:0 8px}
.tools{display:flex;align-items:center;gap:10px}
.tools button{width:34px;height:36px;display:flex;align-items:center;justify-content:center;color:#afc1d5;transition:color .2s,transform .2s;border-radius:6px}
.tools button:hover{color:var(--acid);transform:translateY(-2px)}
.tools button svg{width:18px;height:18px}
.tools .enabled{color:var(--acid)}
.divider{height:15px;width:1px;background:var(--line);margin:0 6px}
.bottom{position:fixed;left:0;right:0;bottom:0;z-index:25;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 4.2% 16px;font-size:9px;letter-spacing:.19em;color:#8ba0b9;background:linear-gradient(#03060e00,#03060ee8 55%)}
.bottom i{font-style:normal;color:#54708f}
.signature{display:flex;align-items:center;gap:9px}
.about-link{letter-spacing:.19em;color:#a9bdd4;transition:color .2s}
.about-link:hover{color:var(--acid)}

/* ——— Couverture ——— */
.cover{min-height:100svh;position:relative;isolation:isolate;overflow:hidden}
.cover-copy{position:relative;padding:clamp(150px,21vh,240px) 0 190px 6.3%;z-index:10;width:62%;pointer-events:none}
.cover-copy>*{pointer-events:auto}
.cover-copy h1{font-family:Newsreader,Georgia,serif;font-size:clamp(62px,6.6vw,104px);line-height:.88;letter-spacing:-.035em;margin:32px 0 26px}
.cover-copy h1 em{font-style:italic;color:var(--light)}
.sub{font-size:12px;line-height:1.9;color:#b1c5dc;max-width:400px;margin-top:28px}
.sub strong{color:#e6f0fb;font-weight:500}
.enter{display:flex;align-items:center;gap:18px;width:fit-content;margin-top:36px;text-align:left}
.enter-circle{position:relative;display:flex;width:62px;height:62px;align-items:center;justify-content:center;border-radius:50%;background:#a5cfff09;transition:background .4s,box-shadow .4s;flex:none}
.enter-circle>svg:first-child{width:22px;height:22px;color:var(--acid)}
.enter-circle .track{position:absolute;inset:0;width:100%;height:100%}
.enter-circle .track circle{fill:none;stroke:#b7d9ff3d;stroke-width:1;stroke-dasharray:208;stroke-dashoffset:52;transform-origin:center;animation:orbit 14s linear infinite}
@keyframes orbit{to{transform:rotate(360deg)}}
.enter>span:last-child{display:flex;flex-direction:column;gap:6px;font-size:12px;letter-spacing:.2em;font-weight:500}
.enter small{font-size:10px;letter-spacing:.06em;color:var(--muted)}
.enter:hover .enter-circle{background:#a5cfff1c;box-shadow:0 0 34px #a5cfff2e}
.coordinate{position:absolute;right:4.5%;top:44%;z-index:5;display:flex;flex-direction:column;gap:14px;font-size:9px;letter-spacing:.24em;color:#7f97b3;text-align:right}
.coordinate i{display:block;width:1px;height:74px;background:linear-gradient(#b7d9ff59,transparent);margin-left:auto}
.instruction{position:absolute;left:6.4%;bottom:118px;z-index:10;display:flex;gap:13px;align-items:center;font-size:9.5px;letter-spacing:.2em;color:#93aac4;line-height:1.8}
.instruction svg{width:19px;height:19px;color:var(--acid);flex:none}
.credit{position:absolute;right:4.5%;bottom:112px;z-index:5;font-size:8px;letter-spacing:.26em;color:#5c7896}

/* ——— Lecture : rail / pièce / fichier ——— */
.reading{position:relative;z-index:10;display:grid;grid-template-columns:216px minmax(0,1fr) 330px;gap:30px;align-items:start;padding:118px 3.4% 150px}
.rail{position:sticky;top:110px;display:flex;flex-direction:column;gap:5px}
.rail-caption{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:9px;letter-spacing:.22em;color:#8ba0bb;padding:8px 10px 14px;text-align:left}
.rail-caption svg{width:13px;height:13px;opacity:.6}
.rail-caption:hover{color:var(--acid)}
.step{display:flex;align-items:center;gap:13px;padding:11px 10px;border-radius:9px;text-align:left;font-size:12px;letter-spacing:.02em;transition:background .25s;border:1px solid transparent}
.step small{display:block;font-size:9px;letter-spacing:.14em;color:#7d92ac;margin-top:3px;text-transform:uppercase}
.step:hover{background:#b7d9ff0d}
.step .orbit{display:flex;width:32px;height:32px;flex:none;align-items:center;justify-content:center;border-radius:50%;border:1px solid #b2d8ff2e;font-size:10px;letter-spacing:.05em;color:#a9c2dd;transition:all .3s}
.step.etabli .orbit{border-color:#deefae82;color:var(--acid);box-shadow:0 0 15px #deefae24}
.step.etabli small{color:#c3d6a1}
.step.encours .orbit{border-color:#b7d9ff70;color:var(--light)}
.step.pret{border-color:#deefae3d;background:#deefae0a}
.step.pret .orbit{border-color:#deefae82;color:var(--acid);animation:none}
.ending-step{margin-top:10px}

.doc{position:relative;background:var(--panel);border:1px solid #b2d8ff1f;border-radius:14px;padding:clamp(26px,4vw,58px) clamp(24px,4.6vw,72px) 46px;backdrop-filter:blur(9px);max-width:760px;justify-self:center;width:100%}
.doc.arrival{animation:doc-enter .8s .05s both}
@keyframes doc-enter{from{opacity:0;transform:translateY(22px)}to{opacity:1}}
.doc-top{display:flex;justify-content:space-between;gap:14px;font-size:9px;letter-spacing:.22em;color:#7e94b0;padding-bottom:18px;border-bottom:1px solid var(--line)}
.doc-opening{margin:30px 0 8px}
.doc-publication{font-size:10px;letter-spacing:.3em;color:#94aac5}
.doc h2{font-family:Newsreader,Georgia,serif;font-size:clamp(30px,3.5vw,44px);line-height:1.05;letter-spacing:-.015em;margin-top:14px}
.select-hint{display:flex;gap:11px;align-items:center;font-size:9.5px;letter-spacing:.14em;color:#8ea6c1;line-height:1.7;margin:22px 0 8px;padding:10px 13px;border:1px dashed #b2d8ff26;border-radius:9px}
.select-hint svg{width:16px;height:16px;color:var(--acid);flex:none}
.select-hint small{display:block;letter-spacing:.08em;color:#6c8299}
.doc-prose{font-family:Newsreader,Georgia,serif;font-size:21px;line-height:1.64;color:#cbd9e8;margin-top:18px}
.doc-prose p{margin-top:20px}
.doc-prose p:first-child{margin-top:0}
.doc-prose p:first-child::first-letter{float:left;font-size:56px;line-height:.9;margin:8px 10px 0 0;color:#e6f3ff}
.doc-prose ::selection{background:#deefae2e}
.doc-actions{display:flex;flex-wrap:wrap;gap:8px 22px;margin-top:36px;padding-top:18px;border-top:1px solid var(--line)}
.source-link{font-size:9.5px;letter-spacing:.14em;color:#8ba1bc;transition:color .2s;text-align:left}
.source-link:hover{color:var(--acid)}
.endmark{display:block;text-align:center;color:#6f88a5;margin-top:26px;font-size:13px}

/* ——— Le fichier (recherche persistante) ——— */
.fichier{position:sticky;top:110px;display:flex;flex-direction:column;gap:16px;background:var(--panel);border:1px solid #b2d8ff1f;border-radius:14px;padding:22px 20px 18px;backdrop-filter:blur(9px);max-height:calc(100svh - 190px);overflow:auto}
.fichier>*{flex-shrink:0}
.fichier-head h3{font-family:Newsreader,Georgia,serif;font-size:27px;line-height:1;letter-spacing:-.01em;margin-top:12px;font-weight:500}
.fichier-head em{color:var(--light)}
#search-form,#sheet-form{display:flex;gap:8px;align-items:stretch}
#search-form input,#sheet-form input{flex:1;min-width:0;background:#03060e99;border:1px solid #b2d8ff33;border-radius:9px;padding:11px 13px;font-size:13px;color:#e8f1fb;transition:border-color .2s}
#search-form input:focus,#sheet-form input:focus{border-color:#deefae7d;outline:none}
#search-form input::placeholder,#sheet-form input::placeholder{color:#68809c}
#search-form button,#sheet-form button{width:42px;border:1px solid #b2d8ff33;border-radius:9px;display:flex;align-items:center;justify-content:center;color:var(--acid);transition:background .2s}
#search-form button:hover,#sheet-form button:hover{background:#deefae14}
#search-form button svg,#sheet-form button svg{width:16px;height:16px}
#results,#sheet-results{display:flex;flex-direction:column;gap:8px;min-height:56px}
.results-count{font-size:9px;letter-spacing:.24em;color:#8ba1bc;padding:2px 1px}
.empty{font-family:Newsreader,Georgia,serif;font-size:16px;font-style:italic;color:#8fa5bf;line-height:1.5;padding:6px 1px}
.help{font-size:11px;color:var(--muted);line-height:1.7}
.result{display:flex;gap:12px;align-items:center;text-align:left;padding:11px 12px;border:1px solid #b2d8ff21;border-radius:10px;transition:border-color .2s,background .2s}
.result:hover{border-color:#deefae66;background:#deefae08}
.result>svg{width:14px;height:14px;color:#94abc7;flex:none;margin-left:auto}
.result-number{display:flex;width:28px;height:28px;flex:none;align-items:center;justify-content:center;border-radius:50%;border:1px solid #b2d8ff30;font-size:9.5px;color:#a9c2dd}
.result.veiled .result-number{color:var(--acid);border-color:#deefae59}
.result small{display:block;font-size:8.5px;letter-spacing:.14em;color:#7d93af;margin-bottom:4px}
.result small b{color:#c3d6a1;font-weight:500;margin-left:6px}
.result strong{font-size:12.5px;font-weight:500;line-height:1.35}
.result .veil{display:block;font-family:Newsreader,Georgia,serif;font-size:13.5px;font-style:italic;color:#b6c8dc;line-height:1.45}
.trail{display:flex;flex-direction:column;gap:9px;border-top:1px solid var(--line);padding-top:14px}
.trail>span{font-size:8.5px;letter-spacing:.24em;color:#7d93af}
.trail>div{display:flex;flex-wrap:wrap;gap:6px}
.trail button{font-size:11px;padding:5px 11px;border:1px solid #b2d8ff2b;border-radius:99px;color:#bdd0e4;transition:all .2s}
.trail button:hover{border-color:#deefae66;color:var(--acid)}
.trail.empty span{font-size:10px;letter-spacing:.1em;color:#68809c;line-height:1.8;text-align:center;padding:4px 0}
.pieces{display:flex;flex-direction:column;gap:9px;border-top:1px solid var(--line);padding-top:13px}
.pieces-toggle{display:flex;align-items:center;gap:10px;font-size:9px;letter-spacing:.2em;color:#9db2ca;padding:3px 1px;transition:color .2s;text-align:left}
.pieces-toggle:hover{color:var(--acid)}
.pieces-toggle svg{width:14px;height:14px;flex:none}
.pieces-toggle svg:last-child{margin-left:auto;transition:transform .25s}
.pieces-toggle[aria-expanded="true"] svg:last-child{transform:rotate(180deg)}
.pieces-toggle b{font-family:Newsreader,Georgia,serif;font-size:15px;font-weight:500;color:#dbe7f4;letter-spacing:0;margin-left:2px}
.pieces-list{display:flex;flex-direction:column;gap:4px;max-height:290px;overflow:auto;padding-right:3px}
.pieces-list button{display:flex;gap:11px;align-items:baseline;text-align:left;padding:8px 10px;border-radius:8px;border:1px solid transparent;transition:background .2s,border-color .2s}
.pieces-list button:hover{background:#b7d9ff0d}
.pieces-list button[aria-current="page"]{border-color:#deefae42;background:#deefae08}
.pieces-list button>span:first-child{font-size:9px;color:#8ba1bc;flex:none;width:18px}
.pieces-list strong{display:block;font-size:12px;font-weight:500;line-height:1.35}
.pieces-list small{display:block;font-size:8.5px;letter-spacing:.14em;color:#7d93af;margin-top:3px}
.pieces-list button[aria-current="page"] small{color:#c3d6a1}
.fichier-dossier{display:flex;align-items:center;justify-content:center;gap:9px;font-size:10px;letter-spacing:.18em;color:#a9bdd4;padding:11px;border:1px solid #b2d8ff26;border-radius:9px;transition:all .2s;margin-top:2px}
.fichier-dossier svg{width:13px;height:13px}
.fichier-dossier:hover{border-color:#deefae66;color:var(--acid)}

/* ——— Barre mobile ——— */
.mobile-bar{display:none}

/* ——— Sélection ——— */
.selection-tools{position:fixed;z-index:60;display:flex;align-items:center;gap:2px;background:var(--panel-strong);border:1px solid #b2d8ff40;border-radius:99px;padding:5px 7px;box-shadow:0 14px 40px #01030adb;backdrop-filter:blur(10px)}
.selection-tools[hidden]{display:none}
#selection-label{max-width:170px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10.5px;color:#b9cce0;padding:0 9px}
.selection-tools button{font-size:10.5px;letter-spacing:.09em;padding:7px 13px;border-radius:99px;color:var(--acid);transition:background .15s}
.selection-tools button:hover{background:#deefae17}
.selection-tools.saved{border-color:#deefae7d}
.selection-tools.saved #selection-label{color:var(--acid)}

/* ——— Notifications ——— */
#notice{position:fixed;left:50%;bottom:64px;transform:translate(-50%,18px);z-index:70;background:var(--panel-strong);border:1px solid #b2d8ff40;border-radius:10px;padding:11px 19px;font-size:11.5px;color:#dbe7f4;opacity:0;pointer-events:none;transition:opacity .3s,transform .3s;max-width:min(480px,88vw);text-align:center}
#notice.visible{opacity:1;transform:translate(-50%,0)}

/* ——— Overlay ——— */
#overlay{position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;border:0;background:transparent;color:inherit;overflow:auto;padding:0}
#overlay::backdrop{background:#020409d6;backdrop-filter:blur(7px)}
.overlay-close{position:fixed;top:20px;right:22px;z-index:20;display:flex;align-items:center;gap:9px;font-size:9.5px;letter-spacing:.22em;color:#a9bdd4;padding:11px 15px;border:1px solid #b2d8ff33;border-radius:99px;background:var(--panel-strong);transition:all .2s}
.overlay-close svg{width:13px;height:13px}
.overlay-close:hover{color:var(--acid);border-color:#deefae59}
.shell{position:relative;z-index:5;max-width:880px;margin:0 auto;padding:96px 5vw 120px}
.shell h2{font-family:Newsreader,Georgia,serif;font-size:clamp(34px,4.6vw,54px);line-height:1;letter-spacing:-.02em;margin:20px 0 18px}
.shell h2 em{font-style:italic;color:var(--light)}
.shell h3{font-family:Newsreader,Georgia,serif;font-size:21px;font-weight:500;margin-bottom:10px}
.shell>p{font-size:13px;line-height:1.9;color:#c2d2e3;max-width:600px}
.shell>p+p{margin-top:14px}
.follow{display:inline-flex;align-items:center;gap:11px;font-size:11px;letter-spacing:.18em;color:var(--ink);background:var(--acid);border-radius:99px;padding:13px 22px;margin-top:22px;transition:box-shadow .25s,transform .25s;font-weight:500}
.follow svg{width:15px;height:15px}
.follow:hover{box-shadow:0 0 34px #deefae4d;transform:translateY(-2px)}
.follow:disabled{opacity:.35;cursor:not-allowed;box-shadow:none;transform:none}
.hint-link{font-size:10.5px;letter-spacing:.13em;color:#a9bdd4;transition:color .2s;padding:6px 2px}
.hint-link:hover{color:var(--acid)}

/* Révélation d'une pièce charnière */
.reveal-scene .reveal-atmosphere{position:fixed;inset:0;pointer-events:none}
.reveal-scene .halo{position:absolute;left:50%;top:38%;width:min(78vw,620px);aspect-ratio:1;transform:translate(-50%,-50%);background:radial-gradient(circle,#b7d9ff2b,transparent 65%);animation:halo 3.2s ease-in-out infinite}
@keyframes halo{50%{opacity:.55;transform:translate(-50%,-50%) scale(1.06)}}
.reveal-scene .beam{position:absolute;left:50%;top:0;bottom:0;width:1px;background:linear-gradient(#b7d9ff00,#b7d9ff54 30%,#b7d9ff00 80%)}
.reveal-scene .coordinate{position:fixed;right:6vw;bottom:10vh;font-family:Newsreader,Georgia,serif;font-size:clamp(120px,22vw,260px);line-height:1;color:#b7d9ff0d;font-style:italic}
.reveal-content{position:relative;z-index:5;min-height:100svh;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:80px 6vw;gap:4px}
.reveal-content .prelude{font-family:Newsreader,Georgia,serif;font-size:clamp(26px,3.6vw,40px);line-height:1.2;margin:22px 0 26px}
.reveal-content .prelude em{font-style:italic;color:var(--light)}
.revealed-title{border:1px solid #b2d8ff30;border-radius:13px;background:var(--panel);padding:22px 34px;max-width:520px}
.revealed-title>span{font-size:9px;letter-spacing:.24em;color:#8ba1bc}
.revealed-title>span i{font-style:normal;color:#5f7fa6}
.revealed-title h2{font-size:clamp(26px,3.4vw,36px);margin:10px 0 0}
.reveal-scene .overlay-close span{display:none}

/* Récompense de chapitre */
.reward-scene .reveal-visual{position:fixed;inset:0;pointer-events:none;overflow:hidden}
.reward-scene .reveal-art{position:absolute;inset:-4%;background:radial-gradient(circle at 62% 40%,#16305e66,transparent 60%)}
.reward-scene .reveal-slit{position:absolute;left:50%;top:0;bottom:0;width:min(46vw,420px);transform:translateX(-50%);background:linear-gradient(90deg,transparent,#b7d9ff0f,transparent);animation:slit 2.8s ease-in-out infinite}
@keyframes slit{50%{opacity:.4}}
.reward-frame{position:relative;z-index:5;min-height:100svh;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:80px 6vw}
.reward-frame h2{font-family:Newsreader,Georgia,serif;font-size:clamp(36px,5.4vw,62px);line-height:1;margin:22px 0 20px}
.reward-frame h2 em{font-style:italic;color:var(--acid)}
.reward-frame p{max-width:560px;font-size:13.5px;line-height:1.9;color:#c8d7e7}

/* La fiche */
.fiche-shell .muted{margin-bottom:26px}
.chapter{border:1px solid #b2d8ff24;border-radius:14px;background:var(--panel);margin-top:16px;padding:20px 24px}
.chapter header{display:flex;align-items:center;gap:15px}
.chapter header .orbit{display:flex;width:36px;height:36px;flex:none;align-items:center;justify-content:center;border-radius:50%;border:1px solid #b2d8ff30;font-size:10px;color:#a9c2dd}
.chapter.etabli{border-color:#deefae42}
.chapter.etabli header .orbit{border-color:#deefae82;color:var(--acid);box-shadow:0 0 15px #deefae24}
.chapter .kicker{font-size:8.5px;letter-spacing:.24em;color:#8ba1bc}
.chapter h3{margin:4px 0 0;font-size:19px}
.chapter-toggle{margin-left:auto;width:34px;height:34px;display:flex;align-items:center;justify-content:center;color:#9db2ca;border-radius:50%;transition:transform .25s}
.chapter.open .chapter-toggle{transform:rotate(180deg)}
.chapter-toggle svg{width:15px;height:15px}
.chapter-body{margin-top:16px}
.chapter-intro{font-size:11.5px;letter-spacing:.04em;color:var(--muted);margin-bottom:14px}
.chapter-text{font-family:Newsreader,Georgia,serif;font-size:19.5px;line-height:2;color:#cbd9e8}
.chapter.etabli .chapter-text{margin-top:16px;font-size:17.5px;line-height:1.85;color:#bccbdc}
.filled{color:var(--acid);font-weight:500;font-style:italic}
.blank{display:inline-block;font-family:Newsreader,Georgia,serif;font-size:18px;font-style:italic;min-width:86px;text-align:center;padding:1px 12px 3px;margin:0 2px;border-bottom:1.5px solid #b7d9ff66;color:#8fa8c4;letter-spacing:.14em;transition:all .2s;border-radius:5px 5px 0 0}
.blank:hover{background:#b7d9ff10;color:var(--light)}
.blank.set{color:var(--acid);border-bottom-color:#deefae8c;letter-spacing:.01em;font-weight:500}
.blank.active{background:#deefae14;border-bottom-color:var(--acid);color:#e6f0d0}
.blank.wrong{border-bottom-color:#ff9d7f99;color:#ffbca6;animation:shake .35s}
@keyframes shake{25%{transform:translateX(-3px)}75%{transform:translateX(3px)}}
.bank{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px;padding-top:16px;border-top:1px dashed #b2d8ff26}
.chip{font-size:12.5px;padding:8px 16px;border:1px solid #b2d8ff38;border-radius:99px;color:#cfdeee;transition:all .2s;background:#0a12227d}
.chip:hover{border-color:#deefae7d;color:var(--acid);transform:translateY(-2px)}
.chip.used{opacity:.38}
.chip.locked{border-style:dashed;color:#68809c;cursor:default;font-size:10.5px;letter-spacing:.08em;display:inline-flex;align-items:center}
.chapter-verify{display:flex;align-items:center;gap:20px;flex-wrap:wrap;margin-top:6px}
.chapter-verify .follow{margin-top:14px}
.chapter-feedback{font-size:12px;line-height:1.8;color:#e3c9ae;margin-top:12px;min-height:0}
.chapter-feedback:empty{margin:0}
.chapter-feedback .hint-link{color:#deefae;padding:0 2px}
.fiche-ending{border:1px dashed #b2d8ff30;border-radius:14px;margin-top:18px;padding:22px 24px}
.fiche-ending h3{margin-top:6px}

/* Le dossier */
.dossier-shell .facts{display:flex;flex-direction:column;gap:10px;margin:20px 0 8px}
.fact{border:1px solid #deefae38;border-radius:12px;background:#deefae08;padding:15px 19px}
.fact span{font-size:8.5px;letter-spacing:.24em;color:#c3d6a1}
.fact p{font-size:13px;line-height:1.8;color:#dbe7f4;margin-top:7px}
.dossier-columns{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin-top:26px}
.quotes{display:flex;flex-direction:column;gap:12px;max-height:320px;overflow:auto;padding-right:4px}
.quotes blockquote{border-left:2px solid #b7d9ff59;padding:4px 0 4px 14px}
.quotes p{font-family:Newsreader,Georgia,serif;font-size:14.5px;font-style:italic;line-height:1.6;color:#c8d7e7}
.quotes blockquote button{display:inline-block;font-size:10px;letter-spacing:.1em;color:#a9bdd4;margin:7px 14px 0 0;transition:color .2s}
.quotes blockquote button:hover{color:var(--acid)}
#notes{width:100%;min-height:170px;resize:vertical;background:#03060e99;border:1px solid #b2d8ff33;border-radius:10px;padding:13px 15px;font-size:13px;line-height:1.7;color:#e8f1fb}
#notes:focus{border-color:#deefae7d;outline:none}
.save-status{display:block;font-size:9px;letter-spacing:.16em;color:#7d93af;margin-top:8px}
.dossier-stats{display:flex;gap:26px;flex-wrap:wrap;margin-top:28px;padding-top:18px;border-top:1px solid var(--line);font-size:10px;letter-spacing:.16em;color:#9db2ca}
.dossier-stats b{font-family:Newsreader,Georgia,serif;font-size:23px;font-weight:500;color:#e6f0fb;margin-right:7px;letter-spacing:0}
.library{margin-top:30px}
.library-rows{display:flex;flex-direction:column;gap:6px;margin-top:12px}
.library-rows button{display:flex;align-items:center;gap:14px;text-align:left;padding:11px 14px;border:1px solid #b2d8ff21;border-radius:10px;transition:border-color .2s}
.library-rows button:hover{border-color:#deefae66}
.library-rows>button>span:first-child{font-size:9.5px;color:#8ba1bc;width:22px}
.library-rows strong{font-size:13px;font-weight:500;flex:1}
.library-rows strong small{display:block;font-size:8.5px;letter-spacing:.2em;color:#c3d6a1;margin-top:3px}
.library-rows>button>small{font-size:9px;letter-spacing:.14em;color:#7d93af}
.library-rows svg{width:13px;height:13px;color:#94abc7}
.dossier-actions{margin-top:24px;display:flex;gap:20px;flex-wrap:wrap}

/* Le dénouement */
.ending-scene .ending-atmosphere{position:fixed;inset:0;pointer-events:none;background:radial-gradient(circle at 50% 30%,#16305e59,transparent 62%)}
.ending-shell{min-height:100svh;display:flex;flex-direction:column;justify-content:center;padding-top:110px}
.ending-text{font-family:Newsreader,Georgia,serif;font-size:clamp(17px,2vw,21px);line-height:1.8;color:#d3e0ee;max-width:640px}
.ending-sources{margin-top:30px;display:flex;flex-direction:column;gap:8px;align-items:flex-start}
.ending-sources>span{font-size:8.5px;letter-spacing:.24em;color:#7d93af;margin-bottom:2px}
.ending-sources button{font-size:11px;letter-spacing:.08em;color:#b6c9de;padding:7px 13px;border:1px solid #b2d8ff2b;border-radius:99px;transition:all .2s}
.ending-sources button:hover{border-color:#deefae66;color:var(--acid)}
.ending-controls{display:flex;align-items:center;gap:24px;margin-top:14px;flex-wrap:wrap}
.ending-number{position:fixed;right:5vw;bottom:6vh;font-family:Newsreader,Georgia,serif;font-size:clamp(110px,19vw,230px);line-height:1;color:#b7d9ff0d;font-style:italic;pointer-events:none}
.bilan .ending-actions{display:flex;align-items:center;gap:22px;flex-wrap:wrap;margin-top:10px}
.bilan .muted{margin-top:22px;max-width:560px}

/* À propos / source / fichier mobile */
.about-shell{max-width:680px}
.sheet-shell{max-width:640px;padding-top:84px}
.sheet-shell h2{font-size:clamp(30px,7vw,40px)}
.sheet-shell form{margin:18px 0 16px}

/* ——— Arrivée de page ——— */
.arrival-page #app{animation:page-in 1.4s ease both}
@keyframes page-in{from{opacity:0}to{opacity:1}}

/* Guidance lives in normal flow. It cannot cover or intercept game controls. */
.guide-card{position:relative;isolation:isolate;margin:18px 0;padding:16px;border:1px solid #a9c78566;border-radius:12px;background:#10202b;color:#e4edf5;text-align:left;letter-spacing:normal;font-family:Space,Arial,sans-serif}
.guide-heading{display:flex;align-items:start;justify-content:space-between;gap:12px;font-size:14px}
.guide-heading button{flex:none;min-width:44px;min-height:44px;margin:-10px -10px 0 0;font-size:24px;color:#ddecba}
.guide-card p{font:14px/1.55 Space,Arial,sans-serif;margin:8px 0 12px;color:#e4edf5}
.guide-card small,.guide-list small{display:block;font:12px/1.5 Space,Arial,sans-serif;color:#c8d8c3}
.guide-actions{display:flex;gap:4px 12px;align-items:center;flex-wrap:wrap;margin:4px 0 8px}
.guide-actions button,.guide-access,.guide-list button{min-height:44px;padding:8px 4px;font:13px/1.45 Space,Arial,sans-serif;text-decoration:underline;text-underline-offset:4px;color:#deefae;letter-spacing:normal}
.guide-tools{margin:4px 0 12px}
.guide-card .guide-access{padding:8px 4px}
.guide-list{padding-left:24px;margin:24px 0}
.guide-list li{margin:0 0 28px;padding-left:4px}
.guide-shell p,.guide-list p{font:16px/1.6 Space,Arial,sans-serif}
.guide-list button{display:block}
.case-metrics{font:14px/1.6 Space,Arial,sans-serif;color:#d5e3c5;margin:18px 0 8px;max-width:40em}
.case-continuation{margin:26px 0;padding:18px;border:1px solid #deefae55;border-radius:12px;background:#10202b}
.case-continuation p{font:16px/1.6 Space,Arial,sans-serif;margin-bottom:16px}
.case-continuation a{display:inline-flex;max-width:100%;white-space:normal}
.guide-card button:focus-visible,.guide-access:focus-visible,.guide-list button:focus-visible{outline:2px solid #deefae;outline-offset:3px}
@media(forced-colors:active){.guide-card,.case-continuation{border:1px solid CanvasText;background:Canvas;color:CanvasText}.guide-card p,.guide-card small,.guide-list small{color:CanvasText}.guide-card button,.guide-access,.guide-list button{color:LinkText}}

/* ——— Responsive ——— */
@media(max-width:1180px){.reading{grid-template-columns:190px minmax(0,1fr) 296px;gap:22px}}
@media(max-width:1010px){.reading{grid-template-columns:minmax(0,1fr) 300px}.rail{position:static;flex-direction:row;flex-wrap:wrap;grid-column:1/-1;gap:8px}.rail-caption{width:100%;padding-bottom:6px}.step{flex:1 1 150px}.ending-step{margin-top:0}}
@media(max-width:900px){
  .reading{grid-template-columns:minmax(0,1fr);padding:104px 4.5% 130px}
  .fichier{display:none}
  .mobile-bar{position:fixed;left:0;right:0;bottom:0;z-index:40;display:flex;justify-content:space-around;gap:4px;background:#050a16f5;border-top:1px solid #b2d8ff26;padding:9px 10px calc(10px + env(safe-area-inset-bottom));backdrop-filter:blur(10px)}
  .mobile-bar button{display:flex;flex-direction:column;align-items:center;gap:5px;font-size:8.5px;letter-spacing:.18em;color:#aec2d8;padding:5px 16px;transition:color .2s}
  .mobile-bar button svg{width:17px;height:17px}
  .mobile-bar button:active,.mobile-bar button:hover{color:var(--acid)}
  .bottom{display:none}
  .world-name{display:none}
  .cover-copy{width:100%;padding:clamp(130px,19vh,190px) 7% 210px}
  .sub{max-width:88%}
  .coordinate{display:none}
  .instruction{bottom:84px}
  .credit{bottom:80px}
  .dossier-columns{grid-template-columns:1fr}
  .chapter{padding:17px 16px}
  .chapter-text{font-size:17.5px}
  .blank{min-width:66px;font-size:16.5px}
  .doc{padding:24px 20px 36px}
  .doc-prose{font-size:19px}
  .shell{padding:84px 6vw 110px}
  .ending-number{display:none}
}
@media(max-width:365px){.cover-copy h1{font-size:56px}.enter>span:last-child{font-size:10.5px}}
@media(max-height:650px){.cover-copy{padding-top:110px;padding-bottom:150px}}

/* ——— Mouvement réduit ——— */
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
}
.motion-paused *,.motion-paused *::before,.motion-paused *::after{animation:none!important;transition:none!important}

/* Refined reading, navigation, and evidence presentation. */
[hidden]{display:none!important}
.mobile-hint{display:none}
.current-objective{display:none}
.doc-navigation{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:24px;font-size:11px;color:#aac1d8;flex-wrap:wrap}
.doc-navigation button{padding:6px 0;text-align:left;color:#c3d6a1}
.doc-navigation button:disabled{opacity:.42;cursor:default}
.doc-navigation>span{font-size:10px;letter-spacing:.08em}
.doc{border-radius:3px 18px 3px 3px;background:linear-gradient(145deg,#0b1422ec,#050b16e8);border-color:#aaccee2b}
.doc-dispatch .doc-publication{display:block;border-bottom:3px double #b2d8ff42;padding-bottom:14px;font-family:Newsreader,Georgia,serif;font-size:15px;letter-spacing:.14em}
.doc-observation{border-top:2px solid #aed2f28c}
.doc-observation .doc-top{font-family:Space,Arial,sans-serif;letter-spacing:.12em}
.doc-retrospective{background:linear-gradient(145deg,#101522ed,#080c18ef)}
.doc-retrospective .doc-publication{font-family:Newsreader,Georgia,serif;font-size:16px;letter-spacing:.07em;font-style:italic}
.doc-press .doc-opening{border-bottom:1px solid #deefae36;padding-bottom:20px}
.doc-context{border-style:dashed}
.doc-context .doc-prose{font-style:italic;color:#bdcddd}
.doc-prose{font-size:21px;line-height:1.65}
.doc-top,.source-link,.rail-caption{font-size:11px;letter-spacing:.09em}
.doc-publication{font-size:11px;letter-spacing:.16em}
.select-hint{font-size:12px;letter-spacing:.01em;padding:10px 0;border:0;border-bottom:1px solid #b2d8ff20;border-radius:0}
.step{font-size:13px}
.step small{font-size:10px;letter-spacing:.05em;text-transform:none}
.step.encours small{color:#b7d9ff}
.step.pret small{color:var(--acid)}
.fichier{border-radius:4px 16px 4px 4px}
.result{border-radius:4px;padding:12px 10px;gap:9px}
.result small{font-size:10px;letter-spacing:.03em;line-height:1.5}
.result small b{display:block;margin-left:0;font-size:9px;letter-spacing:.08em}
.result strong{font-size:14px}
.result .veil{font-size:16px;line-height:1.5}
.results-count,.trail>span{font-size:10px;letter-spacing:.12em}
.help{font-size:12px}
.trail button{font-size:12px}
.pieces-toggle{min-height:40px;font-size:12px;letter-spacing:.04em}
.pieces-list strong{font-size:13px}
.pieces-list small{font-size:10px;letter-spacing:.03em}
.pieces-list button{min-height:52px}
.pieces-list{scroll-behavior:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.fichier{overscroll-behavior:contain;scrollbar-gutter:stable}
.fichier-dossier{font-size:12px;letter-spacing:.04em}
.chapter-question{font-family:Newsreader,Georgia,serif;font-size:23px;line-height:1.4;margin:17px 0 12px;color:#d9e7f5}
.chapter.awaiting{background:transparent;border-style:dashed}
.chapter.awaiting .muted{margin-bottom:8px}
.chapter.awaiting h3{font-size:20px}
.chapter .kicker{font-size:10px;letter-spacing:.1em}
.chapter-intro{font-size:13px}
.chapter-verify .hint-link,.chapter-feedback,.hint-link{font-size:12px;letter-spacing:.04em}
.chapter-toggle{width:44px;height:44px}
.bank .chip{min-height:40px}
.follow{font-size:12px;letter-spacing:.08em;min-height:44px}
.tools button{min-width:40px;min-height:40px}
.reward-frame{max-width:1020px;margin:auto;padding:90px 5vw 70px}
.reward-frame h2{font-size:clamp(32px,4.2vw,56px)}
.evidence-pair{display:grid;grid-template-columns:repeat(var(--evidence-columns,2),minmax(0,1fr));gap:26px;width:100%;margin:24px 0 12px;position:relative}
.evidence-pair::before{content:'';height:1px;position:absolute;left:25%;right:25%;top:50%;background:linear-gradient(90deg,transparent,#deefaeaa,transparent)}
.evidence-card{position:relative;text-align:left;border-top:1px solid #b7d9ff80;background:#07101fe8;padding:22px 24px;border-radius:2px 12px 2px 2px;animation:evidence-in .7s both}
.evidence-card:nth-child(2){animation-delay:.25s}
.evidence-card>span{display:block;font-size:10px;color:#abc2d8;letter-spacing:.08em;margin-bottom:16px}
.reward-frame .evidence-card p{font-family:Newsreader,Georgia,serif;font-size:19px;line-height:1.55;color:#e1eaf4}
.evidence-card .hint-link{font-size:11px;margin-top:16px}
.reward-frame .evidence-caption{font-size:11px;color:#9fb3c9;line-height:1.5}
.deduction-result{margin-top:25px;padding-top:24px;border-top:1px solid #deefae40;max-width:680px;animation:evidence-in .8s .5s both}
.deduction-result .eyebrow{justify-content:center;color:var(--acid);font-size:10px}
.reward-frame .deduction-result p{font-size:16px;line-height:1.75;margin:14px auto 0}
@keyframes evidence-in{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
.ending-shell{max-width:1080px}
.shell>p.ending-text{font-family:Newsreader,Georgia,serif;font-size:21px;line-height:1.7;max-width:760px}
.ending-route{margin:30px 0 12px;width:100%}
.ending-route figcaption{font-size:11px;letter-spacing:.13em;color:#c4d8ec}
.ending-route figcaption small{display:block;font-size:11px;letter-spacing:.02em;color:#9bb1c8;margin-top:6px}
.ending-route ol{list-style:none;display:grid;grid-template-columns:repeat(var(--route-columns,5),minmax(0,1fr));gap:0;margin-top:22px}
.ending-route li{position:relative;border-top:1px solid #deefae65;padding-top:16px;animation:evidence-in .7s both}
.ending-route li:nth-child(2){animation-delay:.1s}.ending-route li:nth-child(3){animation-delay:.2s}.ending-route li:nth-child(4){animation-delay:.3s}.ending-route li:nth-child(5){animation-delay:.4s}
.ending-route li::before{content:'';width:6px;height:6px;background:var(--acid);border-radius:50%;position:absolute;top:-4px;left:0;box-shadow:0 0 14px #deefae88}
.ending-route button{display:flex;flex-direction:column;text-align:left;gap:7px;width:100%;padding:0 12px 8px 0}
.ending-route button>span{font-size:10px;color:#9ab0c7}
.ending-route strong{font-family:Newsreader,Georgia,serif;font-size:19px;font-weight:500;color:#dfebf7}
.ending-route small{font-size:11px;line-height:1.5;color:#a9bfd6}
.ending-sources>span{font-size:10px;letter-spacing:.1em}
.save-status{font-size:11px;letter-spacing:.02em}
.overlay-close{min-height:44px;font-size:11px;letter-spacing:.08em}
@media(min-width:901px){
  #overlay.fiche-scene,#overlay.dossier-scene,#overlay.about-scene,#overlay.source-scene,#overlay.guide-scene{inset:5vh auto auto 50%;transform:translateX(-50%);width:min(94vw,960px);height:90vh;max-height:90vh;border:1px solid #b7d9ff35;border-radius:14px;background:#050b16f5;scrollbar-gutter:stable}
  .fiche-scene .shell,.dossier-scene .shell,.about-scene .shell{padding:74px 48px 72px;max-width:900px}
  .fiche-scene .overlay-close,.dossier-scene .overlay-close,.about-scene .overlay-close{position:sticky;float:right;top:14px;margin:14px 18px 0 0}
}
@media(max-width:1180px) and (min-width:901px){.reading{grid-template-columns:170px minmax(0,1fr) 296px;gap:18px}.doc{padding:28px 24px 36px}}
@media(max-width:1010px) and (min-width:901px){.reading{grid-template-columns:minmax(0,1fr) 300px}.rail{grid-column:1/-1}}
@media(max-width:900px){
  .reading{padding:84px 4.5% 100px;gap:14px}
  .rail{display:none}
  .current-objective{display:flex;flex-direction:column;gap:5px;align-items:stretch;text-align:left;padding:10px 3px 14px;border-bottom:1px solid #b7d9ff30}
  .current-objective>span{display:flex;justify-content:space-between;gap:14px;font-size:11px;color:#9db4cf}
  .current-objective b{font-weight:400;color:var(--acid)}
  .current-objective strong{font-family:Newsreader,Georgia,serif;font-size:19px;line-height:1.3;font-weight:500;color:#dbe9f6}
  .current-objective small{font-size:11px;color:var(--acid)}
  .doc{padding:18px 19px 28px}
  .doc-navigation{margin-bottom:15px;font-size:11px;gap:8px}
  .doc-navigation>span{font-size:10px}
  .doc-top{font-size:10px;padding-bottom:12px}
  .doc-opening{margin:18px 0 8px}
  .doc h2{font-size:31px;margin-top:10px}
  .doc-dispatch .doc-publication{font-size:13px;letter-spacing:.05em;padding-bottom:10px}
  .select-hint{margin:13px 0 8px;padding:7px 0;font-size:11px}
  .desktop-hint{display:none}.mobile-hint{display:inline}
  .doc-prose{font-size:19px;margin-top:13px}
  .mobile-bar button{font-size:11px;letter-spacing:.02em;min-height:48px}
  .top{height:74px;margin:0 5%;gap:8px}
  .brand{font-size:16px;gap:7px}.brand svg{width:22px;height:22px}
  .tools{gap:2px}.tools button{min-width:34px;width:34px}
  .tools [data-action="fiche"],.tools [data-action="dossier"],.tools .divider{display:none}
  .reward-frame{padding:84px 6vw 60px}
  .evidence-pair{grid-template-columns:1fr;gap:14px;margin-top:16px}
  .evidence-pair::before{display:none}
  .evidence-card{padding:18px}
  .reward-frame .evidence-card p{font-size:18px}
  .reward-frame .deduction-result p{font-size:15px}
  .ending-route ol{grid-template-columns:1fr;margin-left:4px;gap:0}
  .ending-route li{border-top:0;border-left:1px solid #deefae65;padding:0 0 18px 20px}
  .ending-route li::before{left:-4px;top:5px}
  .ending-route button{gap:4px}
  .ending-route button>span{display:none}
  .ending-route strong{font-size:20px}
  .ending-route small{font-size:12px}
  .shell>p.ending-text{font-size:20px}
  .sheet-shell form{position:sticky;top:0;background:#050b16f5;z-index:6;padding:8px 0;margin-top:12px}
  #sheet-input{font-size:16px}
  .sheet-shell .pieces-list{max-height:320px}
}

#overlay{overscroll-behavior:contain}
@media(max-width:900px){.credit{bottom:42px;font-size:8px;letter-spacing:.12em}.instruction{bottom:92px;max-width:85%;font-size:9px;letter-spacing:.1em}}

/* One scroll owner per archive or dialog; no offscreen accessibility overflow. */
.sr-only{top:0;left:0}
.pieces-list,.sheet-shell .pieces-list{max-height:none;overflow:visible;scrollbar-gutter:auto;overscroll-behavior:auto}
.quotes{max-height:none;overflow:visible}
.fichier,#overlay{scrollbar-gutter:auto;overflow-x:hidden;overflow-y:auto}
html.modal-open{overflow:hidden}
body.modal-open{position:fixed;width:100%;overflow:hidden}
.reading{padding-bottom:64px}
.cover-copy{padding-top:clamp(108px,16vh,190px);padding-bottom:130px}
.restart-cover{display:block;pointer-events:auto;margin-top:12px;min-height:40px;color:#b7cbe0}
.restart-actions{display:flex;align-items:center;flex-wrap:wrap;gap:14px 24px;margin-top:18px}
.restart-actions .follow{margin-top:0}
.restart-shell{max-width:760px}
@media(min-width:901px){
  .doc{padding:clamp(24px,3vh,40px) clamp(24px,3.4vw,56px) 26px}
  .doc-navigation{margin-bottom:18px}
  .doc-opening{margin-top:24px}
  .endmark{margin-top:20px}
  #overlay.restart-scene{inset:50% auto auto 50%;transform:translate(-50%,-50%);width:min(90vw,740px);height:auto;max-height:90dvh;border:1px solid #b7d9ff35;border-radius:14px;background:#050b16f5}
  .restart-scene .shell{padding:78px 46px 48px}
  .restart-scene .overlay-close{position:absolute;top:16px;right:18px}
}
@media(max-width:900px){
  .reading{padding-bottom:100px}
  .cover-copy{padding-top:clamp(110px,16svh,160px);padding-bottom:150px}
  .sheet-shell form{top:72px}
  .restart-actions{align-items:flex-start;flex-direction:column}
  .restart-actions button{min-height:44px}
}

.brand{font-weight:650;letter-spacing:.17em;gap:10px}
.brand svg{width:22px;height:27px}
.world-name{letter-spacing:.16em}
.case-reference{display:flex;align-items:center;gap:12px;letter-spacing:.13em}
.footer-piece{color:#c4d5e7}
.doc-top{font-variant-numeric:tabular-nums}
/* Intrinsic grid rows cannot shrink underneath multiline titles. The selection
   and keyboard rings stay inside their row, including at browser text zoom. */
.pieces-list{display:grid;grid-template-columns:minmax(0,1fr);grid-auto-rows:max-content;gap:6px;padding:0;align-content:start}
.pieces-list button{display:grid;grid-template-columns:22px minmax(0,1fr);align-items:start;gap:10px;min-width:0;min-height:56px;height:auto;padding:10px 10px 11px;line-height:1.45;border:0;border-radius:0;box-shadow:inset 0 0 0 1px transparent;position:relative;transition:background .2s,box-shadow .2s}
.pieces-list button>span:first-child{width:auto;padding-top:2px;font-size:10px;font-variant-numeric:tabular-nums}
.pieces-list button>span:nth-child(2){min-width:0}
.pieces-list strong{line-height:1.45;overflow-wrap:anywhere;font-weight:450}
.pieces-list small{font-size:10px;letter-spacing:.02em;line-height:1.5;margin-top:4px}
.pieces-list button[aria-current="page"]{background:#b7d9ff0c;box-shadow:inset 2px 0 0 #b7d9ff,inset 0 0 0 1px #b7d9ff45}
.pieces-list button[aria-current="page"]>span:first-child,.pieces-list button[aria-current="page"] small{color:var(--light)}
.pieces-list button:focus-visible{outline:2px solid var(--acid);outline-offset:-2px;border-radius:0}
.fichier-dossier{border:0;border-top:1px solid #b7d9ff30;border-radius:0;justify-content:space-between;padding:16px 1px 3px}
.follow{border-radius:2px;box-shadow:none}
.overlay-close{border-radius:2px}
.chapter{border-radius:1px}
.evidence-card{border-radius:1px;background:linear-gradient(130deg,#0b1726ee,#070d18ed)}
.reward-frame h2 em{font-size:.68em}

/* A discovered cutting settles, then joins the chapter's register. All motion
   completes once. The reading action is available from the first frame. */
.discovery-scene::backdrop{background:#02050bf0!important;backdrop-filter:blur(9px)}
.discovery-light{position:fixed;inset:0;pointer-events:none;overflow:hidden;background:radial-gradient(ellipse at 68% 38%,#2046753b,transparent 65%)}
.discovery-light::after{content:'';position:absolute;top:-20%;bottom:-20%;left:12%;width:35%;background:linear-gradient(90deg,transparent,#b7d9ff10,transparent);transform:rotate(22deg);animation:discovery-sweep 1.7s ease-out both}
.discovery-frame{position:relative;max-width:850px;margin:auto;min-height:100svh;display:flex;flex-direction:column;justify-content:center;padding:86px 54px 70px}
.discovery-dateline{display:flex;justify-content:space-between;gap:20px;padding-bottom:15px;border-bottom:1px solid #b7d9ff40;font-size:10px;letter-spacing:.16em;color:#a7bfd9}
.discovery-trace{font-size:12px;line-height:1.6;color:#aac5e1;margin:30px 0 18px;overflow-wrap:anywhere}
.discovery-piece{display:grid;grid-template-columns:100px minmax(0,1fr);gap:28px;align-items:start;padding:6px 0 24px;animation:cutting-settle .8s ease-out both}
.discovery-number{font-family:Newsreader,Georgia,serif;font-size:100px;line-height:1;color:#b7d9ff66;letter-spacing:-.06em;font-variant-numeric:tabular-nums}
.discovery-piece .eyebrow{font-size:10px;letter-spacing:.1em;line-height:1.5}
.discovery-piece h2{font-family:Newsreader,Georgia,serif;font-size:clamp(34px,4.4vw,56px);font-weight:500;line-height:1.05;letter-spacing:-.02em;margin:14px 0 16px;overflow-wrap:anywhere}
.discovery-publication{font-family:Newsreader,Georgia,serif;font-size:18px;color:#9fb8d2}
.discovery-link{display:flex;align-items:center;gap:16px;color:#c0d7ee;font-size:12px;line-height:1.6;margin:10px 0 24px;animation:evidence-in .55s .25s both}
.discovery-rule{display:block;width:100px;flex:none;height:1px;background:#b7d9ff80;transform-origin:left;animation:register-link .7s .25s both}
.discovery-chapter{padding:22px 26px;border-left:1px solid #b7d9ff65;background:linear-gradient(90deg,#b7d9ff0c,transparent);animation:evidence-in .6s .4s both}
.discovery-chapter-head{display:flex;justify-content:space-between;gap:16px;font-size:10px;letter-spacing:.12em;color:#a7bfd9}
.discovery-chapter h3{font-family:Newsreader,Georgia,serif;font-weight:500;font-size:28px;line-height:1.2;margin:16px 0 8px}
.discovery-chapter p{font-size:13px;line-height:1.7;color:#b7cce1}
.discovery-register{display:flex;gap:8px;margin-top:22px}
.discovery-register span{display:flex;align-items:center;justify-content:center;height:32px;min-width:38px;border-bottom:2px solid #b7d9ff24;color:#8fa9c4;font-size:11px;font-variant-numeric:tabular-nums}
.discovery-register .found{border-color:#b7d9ff8c;color:#d3e7fb}
.discovery-register .just-found{background:#b7d9ff16;animation:register-ink .8s .65s both}
.discovery-ready .discovery-chapter{border-color:var(--acid);background:linear-gradient(90deg,#deefae0c,transparent)}
.discovery-ready .discovery-link,.discovery-ready .discovery-chapter-head{color:var(--acid)}
.discovery-ready .discovery-register .found{border-color:#deefae99;color:var(--acid)}
.discovery-ready .discovery-rule{background:var(--acid)}
.discovery-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px 25px;margin-top:26px}
.discovery-actions .follow{margin-top:0}
.discovery-actions>span{font-size:11px;color:#a3bbd5}
@keyframes discovery-sweep{from{opacity:0;transform:translateX(-50%) rotate(22deg)}45%{opacity:1}to{opacity:.35;transform:translateX(180%) rotate(22deg)}}
@keyframes cutting-settle{from{opacity:0;transform:translateY(18px) rotate(-1deg)}to{opacity:1;transform:none}}
@keyframes register-link{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@keyframes register-ink{from{background:transparent;color:#71859d}to{background:#b7d9ff16;color:#e2f0ff}}
@media(max-width:900px){
  .sheet-shell h2{font-size:23px;margin:18px 0 12px}
  .sheet-shell .archive-reference{margin-right:60px}
  .sheet-shell form{border-bottom:1px solid #b7d9ff70}
  .discovery-frame{padding:82px 7% 40px;min-height:100dvh}
  .discovery-piece{grid-template-columns:54px minmax(0,1fr);gap:16px;padding-bottom:16px}
  .discovery-number{font-size:64px}
  .discovery-piece h2{font-size:34px;line-height:1.08;margin-top:10px}
  .discovery-piece .eyebrow{font-size:9px;letter-spacing:.06em}
  .discovery-publication{font-size:16px}
  .discovery-dateline{font-size:9px;letter-spacing:.08em}
  .discovery-trace{margin-top:22px}
  .discovery-rule{width:54px}
  .discovery-link{gap:16px;font-size:11px;margin-bottom:18px}
  .discovery-chapter{padding:18px 17px}
  .discovery-chapter-head{font-size:9px;letter-spacing:.05em}
  .discovery-chapter h3{font-size:25px;margin-top:14px}
  .discovery-actions{gap:12px 16px;margin-top:22px}
  .discovery-actions>span{font-size:10px}
}
@media(max-width:365px){
  .cover-dateline{font-size:9px;letter-spacing:.08em;gap:6px}
  .discovery-piece{grid-template-columns:42px minmax(0,1fr);gap:12px}
  .discovery-number{font-size:50px}
  .discovery-piece h2{font-size:29px}
  .discovery-chapter-head{flex-wrap:wrap;gap:5px}
}
@media(max-width:900px){
  .sheet-fichier::before{content:'';position:fixed;inset:0 0 auto;height:72px;z-index:7;pointer-events:none;background:#050b16}
  .discovery-number{font-size:56px}
}
@media(max-width:365px){.discovery-number{font-size:42px}}

/* Atelier: soft surfaces, distinct editorial documents, and connected light. */
:root{--muted:#aec0d4;--panel:#08101dd9;--panel-strong:#0c1626f5;--radius:20px}
body{font-size:14px}
:focus-visible{outline-offset:3px;border-radius:7px}
.eyebrow{font-size:11px;letter-spacing:.12em}
.cover-copy h1>span,.cover-copy h1>em{display:block;white-space:normal;overflow-wrap:break-word}
.cover-dateline{font-size:11px;letter-spacing:.1em;gap:12px}
.sub{font-size:14px;max-width:410px;line-height:1.85}
.enter-circle{width:58px;height:58px;border:1px solid #b7d9ff70;border-radius:18px;background:#b7d9ff08;clip-path:none}
.enter-circle::after{display:none}
.enter-circle>svg:first-child{transition:transform .3s}
.enter:hover .enter-circle>svg:first-child{transform:translateX(4px)}
.enter small{font-size:12px;letter-spacing:.01em}
.instruction{font-size:11px;letter-spacing:.07em}
.credit{font-size:10px;letter-spacing:.1em;color:#9ab0c8}
.coordinate{font-size:10px;letter-spacing:.12em;color:#a0b5cd}
.bottom{font-size:10px;letter-spacing:.1em}
.tools{gap:12px}
.tools button{border-radius:10px}
.tools [data-action="fiche"],.tools [data-action="dossier"]{width:auto;gap:8px;padding:0 10px}
.tools button>span{font-size:12px;letter-spacing:.02em}
.reading{grid-template-columns:185px minmax(0,1fr) 300px;gap:28px;padding-left:3.4%;padding-right:3.4%}
.rail{gap:6px}
.rail-caption{font-size:12px;letter-spacing:.06em;padding-left:12px;color:#b5c9df}
.step{border-radius:12px;padding:11px 10px;gap:10px;font-size:13px}
.step::before{display:none}
.step .orbit{width:28px;height:28px;font-size:11px;border:1px solid #a9cfff30;border-radius:50%}
.step small{font-size:11px;letter-spacing:.01em;color:#a6b9ce}
.step.pret{background:linear-gradient(110deg,#deefae0e,transparent);border-color:#deefae28}
.step.etabli .orbit{box-shadow:0 0 18px #deefae12}
.doc{--document-light:#b7d9ff;max-width:790px;border:1px solid #b7d9ff30;border-radius:var(--radius);background:radial-gradient(ellipse at 40% 0,#20375155,transparent 70%),linear-gradient(145deg,#111e30f5,#0a1321f5);box-shadow:0 24px 80px #0007,inset 0 1px 0 #b7d9ff20;backdrop-filter:blur(16px);padding:30px clamp(26px,3vw,48px) 30px}
.doc::after{inset:0;width:auto;height:auto;border:0;border-radius:inherit;box-shadow:inset 0 1px 0 #c6e2ff20;background:none;pointer-events:none}
.doc-navigation{margin-bottom:16px;font-size:12px;gap:8px}
.doc-navigation button{color:#bcd5ee}
.doc-navigation>span{font-size:11px;letter-spacing:.03em;color:#b0c3d9;margin-left:auto}
.doc-top{font-size:11px;letter-spacing:.07em;color:#afc5dd;padding-bottom:13px}
.doc-reference{color:#d6e6f7}
.doc-opening{margin-top:23px}
.doc h2{font-size:clamp(31px,3vw,43px);font-weight:550;line-height:1.12}
.doc-publication{color:#bdd1e6;font-size:12px;letter-spacing:.1em}
.doc-prose{color:#d9e4f0;font-size:21px;line-height:1.65}
.doc-prose p:first-child::first-letter{color:#eff6fe}
.select-hint{font-size:12px;line-height:1.6;letter-spacing:0;color:#abc1d9;margin:18px 0 8px;padding:9px 0;border-color:#b7d9ff1a}
.select-hint b{font-weight:450;color:var(--acid);margin-left:6px}
.select-hint.has-trace svg{color:var(--light)}
.source-link{font-size:11px;letter-spacing:.025em;color:#b0c6dd}
.doc-actions{margin-top:26px;gap:12px 20px}
.endmark{font-size:12px;color:#a8bfd7}
.doc-dispatch .doc-publication{font-family:Newsreader,Georgia,serif;text-align:center;font-size:17px;letter-spacing:.1em;padding:6px 0 13px;border-bottom:3px double #b7d9ff50}
.doc-dispatch .doc-opening{margin-top:16px}
.doc-observation{border-top:1px solid #b7d9ff55;background:radial-gradient(ellipse at 20% 0,#28465144,transparent 65%),linear-gradient(145deg,#101f2cf5,#0a1420f5)}
.doc-observation .doc-publication{font-family:Space,Arial,sans-serif;letter-spacing:.12em;font-size:11px}
.doc-observation h2{font-family:Space,Arial,sans-serif;font-size:clamp(28px,2.5vw,35px);font-weight:450;letter-spacing:-.045em;line-height:1.2;max-width:570px}
.doc-observation .doc-prose{counter-reset:observation}
.doc-observation .doc-prose p{counter-increment:observation;position:relative;padding-left:27px;border-left:1px solid #b7d9ff35}
.doc-observation .doc-prose p::before{content:counter(observation,decimal-leading-zero);position:absolute;left:7px;top:3px;font-family:Space,Arial,sans-serif;font-size:9px;line-height:1;color:#9dbed2}
.doc-observation .doc-prose p:first-child::first-letter{float:none;font-size:inherit;line-height:inherit;margin:0;color:inherit}
.doc-retrospective{background:radial-gradient(ellipse at 15% 0,#8b76601a,transparent 65%),linear-gradient(145deg,#1b2029f5,#101722f5);border-color:#d3c6b238}
.doc-retrospective .doc-publication{font-style:italic;text-transform:none;font-size:18px;letter-spacing:.01em;color:#cfccc4}
.doc-retrospective h2{font-style:italic;font-weight:500;font-size:clamp(34px,3.3vw,46px)}
.doc-retrospective .doc-prose{color:#e1ded8}
.doc-retrospective .doc-opening{border-left:2px solid #cec1aa70;padding-left:20px}
.doc-press .doc-opening{padding-bottom:20px;border-bottom:1px solid #b7d9ff40}
.doc-press .doc-publication{font-family:Space,Arial,sans-serif;font-weight:500;font-size:13px;letter-spacing:.045em}
.doc-press h2{font-weight:650}
.doc-context{border-style:solid;background:linear-gradient(145deg,#101a28ed,#09121ded)}
.doc-context .doc-publication{font-size:11px;color:#abc1da}
.doc-context .doc-prose{font-style:italic;color:#cdd9e7}
.doc-context .doc-prose p:first-child::first-letter{float:none;font-size:inherit;margin:0;line-height:inherit}
.fichier{padding:23px 18px 18px;border:1px solid #b7d9ff16;border-radius:18px;background:linear-gradient(145deg,#0a1422b8,#070e19cf);gap:15px;backdrop-filter:blur(12px)}
.fichier-head h3{font-family:Newsreader,Georgia,serif;font-weight:500;font-size:25px;letter-spacing:-.015em;margin:0 0 3px;color:#e2edf9}
.archive-reference{font-size:11px;letter-spacing:.08em;color:#acc2d9;display:flex;justify-content:space-between;gap:12px}
#search-form,#sheet-form{border:1px solid #b7d9ff38;border-radius:12px;gap:0;background:#03091377;overflow:hidden}
#search-form input,#sheet-form input{border:0;border-radius:0;background:transparent;padding:12px 11px}
#search-form button,#sheet-form button{border:0;border-radius:0;background:#b7d9ff0b;flex:none}
#search-form:focus-within,#sheet-form:focus-within{border-color:#b7d9ff90;box-shadow:0 0 20px #b7d9ff0c}
#search-form input:focus-visible,#sheet-form input:focus-visible{outline:2px solid var(--acid);outline-offset:-3px}
#search-form input::placeholder,#sheet-form input::placeholder{color:#a9bfd6}
.results-count,.trail>span{font-size:11px;letter-spacing:.04em;color:#afc5dd}
.result{border:1px solid #b7d9ff18;border-radius:12px;padding:13px 10px;gap:9px;background:#b7d9ff03}
.result:hover{background:#b7d9ff09;border-color:#b7d9ff50}
.result-number{font-size:11px;border-radius:50%;width:25px;height:25px}
.result>span:nth-child(2){min-width:0;overflow-wrap:anywhere}
.result small{font-size:11px;letter-spacing:0;color:#a9bfd7}
.result small b{font-size:10px;letter-spacing:.06em}
.result .veil{font-size:17px}
.trail button{font-size:12px;padding:6px 10px;border-radius:8px;border-color:#b7d9ff25}
.pieces-toggle{font-size:12px;color:#c5d6e8;letter-spacing:.01em}
.pieces-list button{border-radius:10px;min-height:58px}
.pieces-list strong{font-size:14px;font-weight:450}
.pieces-list small{font-size:11px;color:#a8bdd4;letter-spacing:0}
.pieces-list button>span:first-child{font-size:11px}
.pieces-list button[aria-current="page"]{background:#b7d9ff0b;box-shadow:inset 0 0 0 1px #b7d9ff66}
.pieces-list button:focus-visible{border-radius:10px}
.fichier-dossier{border:0;border-top:1px solid #b7d9ff25;border-radius:0;padding-top:16px;letter-spacing:0;font-size:12px}
.follow{border-radius:12px;font-size:13px;letter-spacing:.035em;padding:13px 20px}
.follow:hover{box-shadow:0 6px 25px #deefae20}
.overlay-close{border-radius:12px;font-size:11px;letter-spacing:.04em}
.shell h2{font-weight:500}
.fiche-shell h2,.dossier-shell h2{font-size:clamp(35px,4vw,48px)}
.fiche-shell>.muted{font-size:14px;line-height:1.7;max-width:620px}
.chapter{border-radius:16px;padding:23px 25px;background:linear-gradient(145deg,#14213699,#0a1323b8);border-color:#b7d9ff30}
.chapter header .orbit{border:1px solid #b7d9ff35;border-radius:50%;font-size:12px;box-shadow:none}
.chapter.awaiting{background:transparent;border:0;border-top:1px solid #b7d9ff20;border-radius:0;margin-top:22px;padding:22px 10px 12px}
.chapter.awaiting .chapter-question{font-size:21px;line-height:1.4;margin:12px 0 7px;max-width:660px}
.chapter.awaiting .muted{font-size:12px;color:#a8bed5}
.chapter.awaiting header .orbit{border-color:#b7d9ff20}
.chapter .kicker{font-size:11px;letter-spacing:.06em;color:#b3c9df}
.chapter-text{font-size:21px;line-height:2}
.chapter-intro{font-size:13px}
.bank{gap:9px;border:0;background:#02071140;border-radius:12px;padding:14px;margin:18px -4px 10px}
.chip{border-radius:9px;padding:8px 14px;font-size:13px;background:#132135aa}
.chip.locked{background:transparent;font-size:11px;color:#a0b6d0}
.chip.used{opacity:.45}
.blank{border-radius:7px 7px 3px 3px;background:#b7d9ff05;font-size:19px}
.blank.set{background:#deefae08}
.chapter.etabli{background:linear-gradient(120deg,#deefae09,#0c182422)}
.fiche-ending{border:0;border-top:1px solid #b7d9ff30;border-radius:0;padding:24px 10px}
.dossier-columns{grid-template-columns:1.05fr 1fr;gap:30px}
.dossier-columns h3{font-size:23px}
.quotes{gap:18px;padding:0}
.quotes blockquote{padding:17px 18px;border:1px solid #b7d9ff25;border-radius:12px;background:linear-gradient(135deg,#b7d9ff09,transparent)}
.quote-reference{display:block;font-size:11px;letter-spacing:.04em;color:#a9c1da;margin-bottom:10px}
.quotes p{font-size:18px;line-height:1.6;color:#d9e4f0}
.quotes blockquote button{font-size:11px;letter-spacing:.02em;min-height:28px}
#notes{font-size:16px;line-height:30px;padding:16px 18px;border-radius:12px;min-height:230px;background:repeating-linear-gradient(transparent 0,transparent 29px,#b7d9ff0b 29px,#b7d9ff0b 30px) 0 16px,#060d174d;border-color:#b7d9ff25}
#notes::placeholder{color:#a3b8ce}
.fact{border:0;border-left:2px solid #deefae70;border-radius:0 12px 12px 0;background:linear-gradient(90deg,#deefae09,transparent);padding:16px 20px}
.fact span,.dossier-stats,.save-status{font-size:11px;letter-spacing:.035em}
.fact p{font-size:14px}
.dossier-stats{gap:16px 25px}
.evidence-card{border-radius:16px;border:1px solid #b7d9ff30;background:linear-gradient(135deg,#14263aec,#0c1726ee)}
.evidence-card>span{font-size:11px;letter-spacing:.03em}
.evidence-pair{gap:28px}
.evidence-pair::before{background:linear-gradient(90deg,transparent,#deefae99,transparent)}
.reward-frame .deduction-result p{font-family:Newsreader,Georgia,serif;font-size:22px;line-height:1.5;color:#dbe7f5}
.discovery-chapter{border:1px solid #b7d9ff30;border-radius:16px;background:linear-gradient(135deg,#b7d9ff0c,transparent)}
.discovery-ready .discovery-chapter{border-color:#deefae60;border-radius:16px}
.discovery-number{color:#8faeca}
.discovery-dateline,.discovery-piece .eyebrow,.discovery-chapter-head{font-size:11px;letter-spacing:.07em}
.discovery-register span{border-radius:5px 5px 0 0}
.discovery-frame .follow{min-width:155px;justify-content:center}
.trace-flight{position:fixed;z-index:100;pointer-events:none;display:block;max-width:210px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;transform:translate(-50%,-50%);padding:8px 13px;background:#172c44;border:1px solid #b7d9ff80;border-radius:10px;color:#e4f1ff;font-size:12px;box-shadow:0 0 28px #b7d9ff25}
.ending-shell{max-width:1200px;padding-top:100px}
.ending-shell h2{font-size:clamp(36px,4.5vw,56px);margin:20px 0 30px}
.ending-documentary .ending-text{font-family:Newsreader,Georgia,serif;font-size:22px;line-height:1.6;color:#dce7f2}
.has-photograph .ending-documentary{display:grid;grid-template-columns:1.2fr 1fr;align-items:start;gap:35px;margin:5px 0 20px}
.historical-photo{margin:0;min-width:0;animation:evidence-in 1s both}
.historical-photo>a{display:block;border-radius:16px;overflow:hidden;box-shadow:0 18px 55px #0008;border:1px solid #dce5ed45}
.historical-photo img{display:block;width:100%;height:auto;object-fit:contain}
.historical-photo figcaption{display:flex;flex-direction:column;gap:6px;padding:15px 3px 0;font-size:11px;line-height:1.6;color:#b0c6dc}
.historical-photo figcaption>span{letter-spacing:.09em;color:#dbe7f3}
.historical-photo figcaption>a{text-decoration:underline;text-underline-offset:4px;text-decoration-color:#b7d9ff50}
.historical-photo figcaption>small{font-size:11px}
.photo-context{font-size:12px;line-height:1.8;color:#afc3da;margin-top:22px;padding-top:20px;border-top:1px solid #b7d9ff25}
.ending-route{margin:28px 0 10px;border:1px solid #b7d9ff20;border-radius:18px;padding:24px 26px;background:linear-gradient(135deg,#16283d55,transparent)}
.ending-route figcaption{font-size:11px;letter-spacing:.07em;color:#dce9f7}
.ending-route figcaption small{font-size:12px;letter-spacing:0}
.ending-route ol{margin-top:26px}
.ending-route li{border-color:#b7d9ff60;padding-top:15px}
.ending-route li::before{background:#beddfc;box-shadow:0 0 18px #b7d9ff66}
.ending-route button{padding:0 16px 6px 0;gap:6px;border-radius:9px;transition:color .2s}
.ending-route button:hover strong{color:var(--acid)}
.route-art{width:52px;height:52px;color:#a9cce9;margin:2px 0 9px}
.ending-route strong{font-size:20px}
.ending-route small{font-size:12px;color:#b9cce0}
.ending-sources{flex-direction:row;flex-wrap:wrap;gap:8px 12px}
.ending-sources>span{width:100%;font-size:11px;color:#abc1db;letter-spacing:.05em}
.ending-sources button{font-size:12px;letter-spacing:0;border-radius:9px;padding:9px 12px}
.ending-controls{margin-top:24px}
.ending-number{font-size:150px;opacity:.5}
@media(min-width:901px){
  #overlay.fiche-scene,#overlay.dossier-scene,#overlay.about-scene,#overlay.source-scene,#overlay.guide-scene{border-radius:24px;border-color:#b7d9ff30;background:radial-gradient(ellipse at 30% 0,#20324a44,transparent 70%),#08111ef5;box-shadow:0 30px 100px #0009}
  .fiche-scene .shell,.dossier-scene .shell,.about-scene .shell{padding:66px 42px 56px}
}
@media(min-width:901px) and (max-width:1200px){
  .reading{grid-template-columns:minmax(0,1fr) 285px;gap:20px;padding-top:105px}
  .rail{position:static;grid-column:1/-1;display:flex;flex-direction:row;flex-wrap:wrap;align-items:stretch;gap:6px}
  .rail-caption{width:auto;padding:8px;flex:0 0 110px;font-size:11px}
  .step{flex:1 1 115px;padding:8px;gap:6px;font-size:12px}
  .step .orbit{width:25px;height:25px;flex:none}
  .step small{font-size:10px}
  .ending-step{margin-top:0}
  .doc{padding:25px 30px;justify-self:stretch;max-width:none}
  .fichier{top:25px}
  .top .world-name{display:none}
}
@media(max-width:900px){
  .cover-copy{padding:clamp(112px,16svh,155px) 7% 175px}
  .cover-copy h1{font-size:clamp(42px,12.3vw,78px);line-height:.96;margin-top:27px;margin-bottom:27px}
  .cover-copy h1 em{font-size:1em}
  .cover-dateline{font-size:10px;letter-spacing:.055em}
  .cover-copy .sub{max-width:360px;font-size:14px;line-height:1.8;margin-top:22px}
  .enter{margin-top:28px;gap:15px}
  .enter>span:last-child{font-size:11px;letter-spacing:.09em}
  .enter small{font-size:11px;letter-spacing:0}
  .instruction{position:relative;left:auto;bottom:auto;margin:-105px 7% 65px;font-size:10px;letter-spacing:.035em;max-width:85%}
  .credit{bottom:25px;right:7%;font-size:10px;letter-spacing:.04em}
  .tools{gap:4px}
  .tools [data-action="fiche"],.tools [data-action="dossier"]{display:none}
  .reading{grid-template-columns:minmax(0,1fr);gap:12px;padding:80px 4% 100px}
  .rail{display:none}
  .current-objective{padding:2px 2px 10px;gap:3px}
  .current-objective strong{font-size:18px;line-height:1.25}
  .current-objective>span{font-size:11px}
  .doc{padding:20px 20px 26px;border-radius:18px}
  .doc-navigation{margin:0 0 10px}
  .doc-navigation:has(button[hidden]):not(:has(.guide-access)){display:none}
  .doc-navigation>span{display:none}
  .doc-top{font-size:11px;padding-bottom:10px}
  .doc-opening,.doc-dispatch .doc-opening{margin-top:12px}
  .doc-dispatch .doc-publication{font-size:14px;letter-spacing:.07em;padding:0 0 10px}
  .doc h2{font-size:30px;line-height:1.12;margin-top:12px}
  .doc-prose{font-size:19px;line-height:1.65;margin-top:12px}
  .select-hint{font-size:11px;margin:11px 0 0;padding:8px 0}
  .select-hint svg{width:15px}
  .doc-prose p:first-child::first-letter{font-size:48px}
  .doc-observation h2{font-size:28px}
  .doc-observation .doc-prose p:first-child::first-letter,.doc-context .doc-prose p:first-child::first-letter{font-size:inherit}
  .doc-observation .doc-prose p{padding-left:22px}
  .doc-observation .doc-prose p::before{left:5px}
  .doc-retrospective .doc-opening{padding-left:15px}
  .doc-retrospective .doc-publication{font-size:15px}
  .doc-retrospective h2{font-size:32px}
  .mobile-bar{background:#08111cf5;border-radius:18px 18px 0 0;box-shadow:0 -10px 30px #0004}
  .mobile-bar button{font-size:12px;min-height:48px;border-radius:10px}
  .chapter{padding:20px 17px;border-radius:16px}
  .chapter-text{font-size:19px;line-height:2}
  .blank{font-size:18px}
  .bank{padding:12px;gap:8px}
  .chapter.awaiting{padding:22px 2px 12px}
  .chapter.awaiting .chapter-question{font-size:21px}
  .chapter header .orbit{width:29px;height:29px;flex:none}
  .dossier-columns{grid-template-columns:1fr;gap:26px}
  .fiche-shell h2,.dossier-shell h2{font-size:36px;margin-top:15px}
  .fiche-shell>.muted{font-size:13px}
  .sheet-shell h2{font-size:28px;font-family:Newsreader,Georgia,serif}
  .sheet-shell form{top:72px;border:1px solid #b7d9ff38;padding:0;margin-top:18px;background:#081321;z-index:6}
  .sheet-shell .archive-reference{margin-right:60px}
  .result .veil{font-size:18px}
  .result small{font-size:11px}
  .discovery-piece .eyebrow,.discovery-dateline,.discovery-chapter-head{font-size:10px;letter-spacing:.04em}
  .discovery-piece h2{font-size:34px}
  .discovery-chapter{padding:20px 18px}
  .discovery-chapter h3{font-size:27px}
  .discovery-chapter p{font-size:14px}
  .discovery-actions>span{font-size:11px}
  .reward-frame .deduction-result p{font-size:21px}
  .ending-shell{padding-top:88px}
  .ending-shell h2{font-size:37px;margin-bottom:24px}
  .has-photograph .ending-documentary{grid-template-columns:1fr;gap:26px}
  .ending-documentary .ending-text{font-size:21px}
  .historical-photo>a{border-radius:12px}
  .historical-photo figcaption{font-size:11px}
  .ending-route{padding:22px 20px;border-radius:16px}
  .ending-route ol{margin-left:7px;margin-top:25px}
  .ending-route li{border-color:#b7d9ff60;padding-left:23px;padding-bottom:20px}
  .ending-route li::before{top:25px}
  .ending-route button{display:grid;grid-template-columns:45px 1fr;column-gap:13px;align-items:center;padding:0}
  .ending-route .route-art{width:45px;height:45px;grid-column:1;grid-row:1/3;margin:0}
  .ending-route strong{grid-column:2;font-size:21px}
  .ending-route small{grid-column:2;font-size:12px}
  .ending-route button>span{display:none}
  .ending-sources button{max-width:100%;text-align:left}
}
@media(max-width:365px){
  .cover-copy h1{font-size:clamp(39px,12.3vw,45px)}
  .cover-dateline{font-size:9px;gap:6px}
  .enter-circle{width:48px;height:48px;border-radius:15px}
  .enter>span:last-child{font-size:10px;letter-spacing:.045em}
  .enter small{font-size:10px}
  .doc{padding:18px 16px 24px}
  .discovery-number{font-size:42px}
  .discovery-piece h2{font-size:29px}
}
@media(prefers-reduced-motion:reduce){.trace-flight{display:none}.historical-photo{animation:none}}
.motion-paused .trace-flight{display:none}

/* Narrative motion: retrieve / discover / connect / reveal. No forced waiting. */
.passage-window{position:fixed;z-index:45;overflow:hidden;pointer-events:none;contain:paint;border-radius:20px}
.passage-window *{pointer-events:none!important}
.reading .rail,.reading .fichier{transition:opacity .5s,filter .5s}
.in-passage .reading .rail,.in-passage .reading .fichier{opacity:.55;filter:saturate(.5)}
#overlay.discovery-scene::backdrop,#overlay.reward-scene::backdrop,#overlay.ending-scene::backdrop{background:linear-gradient(90deg,#02050b80,#02050bec 42%,#02050bf5)!important;backdrop-filter:blur(2px)}
body:has(#overlay.discovery-scene[open],#overlay.reward-scene[open],#overlay.ending-scene[open]) #app{opacity:0!important}
.discovery-light{background:radial-gradient(ellipse at 45% 35%,#2755802b,transparent 65%)}
.discovery-light::after{width:50%;animation:discovery-sweep 2.8s cubic-bezier(.2,.7,.3,1) both}
.discovery-frame{max-width:950px;padding-top:80px;padding-bottom:55px}
.discovery-trace{margin:22px 0 16px}
.discovery-piece{animation:piece-emerge 1.3s cubic-bezier(.16,.8,.24,1) both}
.discovery-piece h2{font-size:clamp(34px,4.1vw,54px)}
.discovery-excerpt{margin:0 0 24px 128px;padding:2px 0 2px 23px;border-left:1px solid #b7d9ff60;max-width:610px}
.discovery-excerpt p{font-family:Newsreader,Georgia,serif;font-size:22px;line-height:1.55;color:#dce9f5;margin:0}
.discovery-excerpt footer{margin-top:12px;font-size:10px;color:#a8bed5;letter-spacing:.045em}
.scene-stage{opacity:0}
.scene-stage.in-view{opacity:1}
.discovery-excerpt.in-view{animation:passage-emerge 1.15s .45s both}
.discovery-link{animation:evidence-in 1s .85s both}
.discovery-rule{animation:register-link 1.4s .8s both}
.discovery-chapter{animation:none}
.discovery-chapter.in-view{animation:chapter-emerge 1.2s 1s both}
.discovery-register .just-found{animation:none}
.discovery-chapter.in-view .just-found{animation:register-mark 1.25s 1.7s both}
.discovery-actions{position:relative;z-index:2}
.evidence-pair{perspective:1100px;isolation:isolate}
.evidence-pair .evidence-card{animation:none}
.evidence-pair::before{transform:scaleX(0);transform-origin:left;box-shadow:0 0 16px #deefae90}
.evidence-pair.in-view .evidence-card:first-child{animation:evidence-left 1.25s cubic-bezier(.16,.75,.2,1) both}
.evidence-pair.in-view .evidence-card:last-child{animation:evidence-right 1.25s .6s cubic-bezier(.16,.75,.2,1) both}
.evidence-pair.in-view::before{animation:register-link 1.2s 1.35s both}
.deduction-result.in-view{animation:conclusion-emerge 1.35s 1.75s both}
.historical-photo{animation:none}
.historical-photo.in-view>a{animation:photograph-develop 2.7s cubic-bezier(.2,.65,.3,1) backwards}
.historical-photo figcaption{animation:none}
.historical-photo.in-view figcaption{animation:evidence-in 1s 1.4s both}
.ending-route li{animation:none}
.ending-route.in-view li{animation:route-reveal .95s both}
.ending-route.in-view li:nth-child(2){animation-delay:.35s}
.ending-route.in-view li:nth-child(3){animation-delay:.7s}
.ending-route.in-view li:nth-child(4){animation-delay:1.05s}
.ending-route.in-view li:nth-child(5){animation-delay:1.4s}
@keyframes piece-emerge{from{opacity:0;transform:translateY(55px);filter:blur(9px)}55%{opacity:.8;filter:blur(1px)}to{opacity:1;transform:none;filter:none}}
@keyframes passage-emerge{from{opacity:0;transform:translateY(25px);filter:blur(4px)}to{opacity:1;transform:none;filter:none}}
@keyframes chapter-emerge{from{opacity:0;transform:translateY(28px);box-shadow:0 0 0 #b7d9ff00}65%{opacity:1;box-shadow:0 0 48px #b7d9ff25}to{opacity:1;transform:none;box-shadow:none}}
@keyframes register-mark{from{background:transparent;color:#71859d;transform:scale(.7)}55%{background:#b7d9ff40;box-shadow:0 0 24px #b7d9ff60;transform:scale(1.12)}to{background:#b7d9ff16;color:#e2f0ff;transform:none}}
@keyframes evidence-left{from{opacity:0;transform:translateX(-75px) translateY(35px) rotateY(12deg) rotate(-4deg);filter:blur(5px)}to{opacity:1;transform:none;filter:none}}
@keyframes evidence-right{from{opacity:0;transform:translateX(75px) translateY(35px) rotateY(-12deg) rotate(4deg);filter:blur(5px)}to{opacity:1;transform:none;filter:none}}
@keyframes conclusion-emerge{from{opacity:0;transform:translateY(30px);filter:blur(6px)}65%{opacity:1;filter:blur(0);text-shadow:0 0 25px #deefae55}to{opacity:1;transform:none;filter:none;text-shadow:none}}
@keyframes photograph-develop{from{opacity:.15;filter:brightness(.3) contrast(1.4) blur(8px);transform:scale(.96)}60%{opacity:1;filter:brightness(.8) contrast(1.15) blur(1px)}to{opacity:1;filter:none;transform:none}}
@keyframes route-reveal{from{opacity:0;transform:translateY(25px);filter:blur(4px)}to{opacity:1;transform:none;filter:none}}
@media(min-width:1201px){
  .discovery-frame{margin-left:max(260px,calc((100vw - 950px)/2));margin-right:5%}
  .reward-frame{margin-left:max(250px,calc((100vw - 1040px)/2))}
}
@media(max-width:900px){
  .passage-window{border-radius:18px}
  .discovery-frame{padding:82px 7% 40px}
  .discovery-excerpt{margin-left:0;padding-left:18px}
  .discovery-excerpt p{font-size:20px;line-height:1.55}
  .discovery-piece h2{font-size:34px}
  .discovery-chapter.in-view{animation-delay:.25s}
  .discovery-chapter.in-view .just-found{animation-delay:1s}
  #overlay.discovery-scene::backdrop,#overlay.reward-scene::backdrop,#overlay.ending-scene::backdrop{background:linear-gradient(#02050ba8,#02050bef 45%)!important}
}
/* No delayed or invisible information when motion is paused or reduced. */
.motion-paused .scene-stage,.motion-paused .scene-stage *,.motion-paused .discovery-piece,.motion-paused .discovery-link{opacity:1!important;transform:none!important;filter:none!important;animation:none!important}
.motion-paused .evidence-pair::before{transform:none!important;animation:none!important}
@media(prefers-reduced-motion:reduce){
  .scene-stage,.scene-stage *,.discovery-piece,.discovery-link{opacity:1!important;transform:none!important;filter:none!important;animation:none!important}
  .evidence-pair::before{transform:none!important;animation:none!important}
  .passage-window{display:none}
}

/* Translucent synthesis: the dark veil protects fully opaque, light text. */
.rail-caption{background:rgba(6,15,26,.70);border:1px solid #b7d9ff30;border-radius:12px;padding:12px;color:#d8e8f7;min-height:44px}
.step{background:rgba(6,15,26,.66);border:1px solid #b7d9ff38;box-shadow:0 4px 16px #0002;backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px);color:#e9f1fb;font-size:13px}
.step small{font-size:11px;color:#d1e0ef}
.step .orbit{background:rgba(6,15,26,.40);color:#c8dbed;border-color:#b7d9ff65}
.step:hover{background:rgba(21,39,59,.82);border-color:#b7d9ff80}
.step.encours{background:rgba(12,29,47,.72);border-color:#b7d9ff60}
.step.pret{background:rgba(17,31,23,.70);border-color:#d8ebaa80}
.step.pret small,.step.etabli small{color:#d8ebaa}
.step.etabli{background:rgba(10,25,29,.68);border-color:#d8ebaa45}
.in-passage .reading .rail{opacity:1;filter:none}
.discovery-chapter,.discovery-ready .discovery-chapter{background:#0c1929}
.reward-frame .deduction-result{padding:22px 26px;border:1px solid #deefae45;border-radius:16px;background:#0c1929}
/* The selection cue is a real part of the document, not a footnote. */
.select-hint{align-items:center;gap:13px;padding:13px 15px;margin:20px 0 14px;border:1px solid #b7d9ff30;border-radius:13px;background:linear-gradient(115deg,#1a3041,#101d2d)}
.selection-emblem{display:grid;place-items:center;width:35px;height:35px;flex:none;border:1px solid #deefae45;background:#deefae08;border-radius:10px}
.select-hint .selection-emblem svg{width:21px;height:21px;color:#deefae}
.select-hint strong{display:block;font-family:Newsreader,Georgia,serif;font-size:20px;font-weight:500;line-height:1.2;color:#e3eefa;letter-spacing:0}
.select-hint small{display:block;font-size:12px;color:#bdcfe0;line-height:1.5;letter-spacing:0;margin-top:4px}
.doc-prose::selection,.doc-prose *::selection{background:#dcefb4;color:#07101b;text-shadow:none}
/* An anchored cutting, with the same blue / lime language as Obscura. */
#seltools{position:fixed;z-index:75;display:flex;flex-direction:column;align-items:stretch;gap:0;box-sizing:border-box;max-width:calc(100vw - 24px);overflow-y:auto;overscroll-behavior:contain;padding:15px 18px 16px;border:1px solid #b9ddffb0;border-radius:18px;background:linear-gradient(145deg,#182e45,#0b192b 80%);color:#ecf5fc;box-shadow:0 0 0 5px #b7d9ff09,0 16px 60px #000b,0 0 50px #91ccff25;backdrop-filter:none;animation:selection-open .32s cubic-bezier(.16,.8,.2,1) backwards;transform:none}
#seltools::after{content:'';position:fixed;pointer-events:none;width:14px;height:14px;background:#0c1a2c;transform:rotate(45deg);display:none}
.selection-caption{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#bdd4eb;font-size:10px;letter-spacing:.09em;line-height:1.5}
.selection-caption>span{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.selection-caption i{font-style:normal;color:#7e9fbc}
.selection-caption svg{width:16px;height:16px}
#seltools .selection-close{display:grid;place-items:center;min-width:32px;min-height:32px;padding:4px;margin:-7px -9px -5px 0;border-radius:9px;color:#bed2e5}
#seltools .selection-close svg{width:15px;height:15px}
#seltools .selection-close:hover{background:#b7d9ff20}
#seltools #selection-label{font-family:Newsreader,Georgia,serif;font-size:25px;font-weight:450;line-height:1.3;color:#f0f6fb;letter-spacing:0;white-space:normal;overflow-wrap:anywhere;max-width:none;padding:0;margin:13px 0 18px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis}
#seltools #selection-label::before{content:'« ';color:#afcbed}
#seltools #selection-label::after{content:' »';color:#afcbed}
.selection-actions{display:flex;gap:9px;align-items:stretch;flex-wrap:wrap}
#seltools .selection-actions button{display:flex;align-items:center;justify-content:center;gap:9px;min-height:46px;flex:1 1 112px;font-size:13px;line-height:1.25;letter-spacing:0;padding:12px;border:1px solid #a4c6e840;border-radius:11px;color:#dbeafa;transition:background .15s}
#seltools .selection-actions button svg{width:18px;height:18px}
#seltools .selection-actions .selection-primary{flex-grow:1.2;background:#dfefad;color:#101b13;font-weight:650;border-color:#dfefad;box-shadow:0 4px 19px #deefae18}
#seltools .selection-actions .selection-primary:hover{background:#f0ffd0}
#seltools .selection-actions .selection-keep:hover{background:#b7d9ff1c}
#seltools .selection-keep[aria-pressed="true"]{border-color:#deefae65;color:#deefae}
#seltools button:focus-visible,#seltools input:focus-visible{outline:2px solid #e8fabd;outline-offset:2px}
.selection-query{margin:-2px 0 16px;padding-top:12px;border-top:1px solid #b7d9ff30}
.selection-query label{display:block;font-size:12px;color:#d0e3f6;margin-bottom:8px}
#selection-query{width:100%;min-width:0;border:1px solid #b7d9ff60;border-radius:9px;background:#081423;padding:11px 12px;font-family:Newsreader,Georgia,serif;font-size:20px;color:#eaf4fc}
#selection-query::placeholder{color:#a1b8d0}
.selection-query small{display:block;font-size:11px;color:#b6c9df;line-height:1.5;margin-top:8px}
#seltools.saved{background:linear-gradient(145deg,#192e2d,#0b192b 85%);border-color:#dfefada8;box-shadow:0 16px 60px #000b,0 0 60px #d5f69a20}
.selection-receipt{font-size:15px;color:#e0f1b4;margin:15px 0 0;line-height:1.5}
.selection-receipt span{margin-left:5px}
#seltools.saved #selection-label{font-size:20px;line-height:1.35;margin:8px 0 16px;color:#d4e1ec;-webkit-line-clamp:2}
#seltools.saved .selection-actions button{font-size:12px}
.kept-count{font-size:10px;font-weight:600;display:inline-grid;place-items:center;min-width:19px;height:19px;padding:0 4px;border:1px solid #deefae60;border-radius:6px;background:#19251e;color:#dfefad}
.selection-flight{position:fixed;z-index:90;pointer-events:none;padding:16px 18px;border:1px solid #dcecaaa0;border-radius:16px;background:#142737;box-shadow:0 18px 50px #0008;transform-origin:center;max-height:180px;overflow:hidden}
.selection-flight>span{font-size:10px;letter-spacing:.08em;color:#d6e9b6}
.selection-flight>p{font-family:Newsreader,Georgia,serif;font-size:23px;line-height:1.3;color:#eef6fc;margin:10px 0 0;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
@keyframes selection-open{from{opacity:0;translate:0 10px;filter:brightness(.7)}to{opacity:1;translate:0 0;filter:none}}
@media(max-width:1200px) and (min-width:901px){.rail-caption{padding:8px}.step{padding:8px}}
@media(max-width:900px){
  .current-objective{background:rgba(6,15,26,.70);border:1px solid #b7d9ff35;border-radius:13px;padding:10px 13px}
  .current-objective>span{color:#d1e0ef}
  .select-hint{margin:13px 0;padding:10px 12px;gap:10px}
  .select-hint strong{font-size:18px}
  .select-hint small{font-size:11px;line-height:1.45}
  .selection-emblem{width:30px;height:34px}
  #seltools{padding:13px 15px 15px;border-radius:16px}
  #seltools #selection-label{font-size:23px;line-height:1.3;margin:12px 0 15px}
  #seltools .selection-actions button{min-height:48px}
  .mobile-bar [data-action="dossier"]{position:relative}
  .mobile-bar .kept-count{position:absolute;top:3px;right:8px;font-size:9px;height:17px;min-width:17px}
}
@media(prefers-reduced-motion:reduce){#seltools{animation:none!important}.selection-flight{display:none}}
.motion-paused #seltools{animation:none!important}
.motion-paused .selection-flight{display:none}

/* The synthesis dialog lets the sculpture through without superimposing the article. */
body:has(#overlay.fiche-scene[open]) #app{opacity:0}
#overlay.fiche-scene{background:rgba(6,15,26,.68)}
#overlay.fiche-scene::backdrop{background:rgba(2,5,11,.22);backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px)}
.restart-link{display:flex;align-items:center;justify-content:flex-start;gap:9px;min-height:44px;padding:10px 12px;border:1px solid #b7d9ff35;border-radius:12px;background:rgba(6,15,26,.70);color:#d1e0ef;font-size:12px;text-align:left;line-height:1.5}
.restart-link>span{font-size:21px;line-height:1}
.restart-link:hover{background:rgba(21,39,59,.82);border-color:#b7d9ff80;color:#eaf1f9}
.rail-restart{margin-top:9px}
.synthesis-restart{margin:-8px 0 22px}
@media(min-width:901px) and (max-width:1200px){.rail-restart{display:none}}

/* Variable evidence counts retain the accepted two-excerpt layout. */
.evidence-pair .evidence-card:only-child{animation:evidence-left 1.25s both}
.evidence-pair .evidence-card:not(:first-child):not(:last-child){animation:evidence-in 1.25s .3s both}
@media(prefers-reduced-motion:reduce){.evidence-pair .evidence-card{animation:none!important}}
.motion-paused .evidence-pair .evidence-card{animation:none!important}

/* Locale and recovery controls share the accepted surfaces. */
.language-controls{display:inline-flex;gap:3px;align-items:center;flex-shrink:0}
.language-controls button{font:500 12px Space,Arial,sans-serif;padding:7px;border:1px solid #afc5dc45;border-radius:8px;background:#08111edb;color:#dce7f2}
.language-controls button[aria-pressed="true"]{border-color:#deefae;color:#deefae}
#overlay>.language-controls{position:absolute;top:20px;left:24px;z-index:21}
.storage-banner{position:fixed;bottom:14px;left:16px;right:16px;z-index:55;max-width:850px;margin:auto;padding:12px 16px;background:#15212efa;color:#fff;border:1px solid #ead396;border-radius:14px;box-shadow:0 8px 30px #0009;font:14px/1.5 Space,Arial,sans-serif}
.storage-banner[hidden]{display:none}.storage-banner button{color:#f1dfa8;text-decoration:underline;margin-left:12px}
.saves-shell{max-width:850px}.save-actions{display:flex;flex-wrap:wrap;gap:14px;margin:24px 0}.save-actions button,.source-save button{border:1px solid #aabbcc66;border-radius:12px;padding:12px;color:#e4ecf5;background:#182531}
.source-save{display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:16px 0;border-bottom:1px solid #aabbcc33}.source-save code{overflow-wrap:anywhere;flex:1 1 100%}.import-file{display:grid;gap:12px}.import-warning,#import-status{color:#f1dfa8}.source-save span{font-size:14px}.save-actions button:disabled{opacity:.5}.quotes small{display:block;color:#b9cad9}.saves-shell input{max-width:100%}
@media(max-width:900px){.storage-banner{bottom:85px;font-size:12px}.top{gap:8px}.top .tools{gap:5px}.language-controls button{padding:6px}.world-name{display:none}.bottom{flex-wrap:wrap;gap:12px}.saves-shell{padding-top:85px}}

/* Shared optional palette and mixed documentary prose. No subject selectors. */
body[data-palette="amber"]{--light:#f2d6a2;--acid:#eed7a1;--line:#efd4a333}
.case-difficulty{color:var(--muted);font-size:12px;max-width:42em;margin:10px 0 18px}
.document-quotation{border-left:2px solid var(--light);padding:8px 0 8px 20px;margin:24px 0}
.document-quotation .quotation-label,.document-quotation cite{display:block;font-family:Space,Arial,sans-serif;font-size:11px;line-height:1.6;color:var(--muted);font-style:normal}
.document-quotation p{margin:12px 0}
@media(max-width:600px){.document-quotation{padding-left:12px}}
@media(forced-colors:active){.document-quotation{border-color:CanvasText}.document-quotation .quotation-label,.document-quotation cite{color:CanvasText}}

/* Connection map: the same night desk, with a finite, explorable constellation. */
.dossier-views{display:flex;gap:5px;padding:5px;border:1px solid var(--line);border-radius:99px;width:fit-content;margin:24px 0}
.dossier-views button{display:flex;align-items:center;gap:9px;min-height:42px;padding:9px 20px;border-radius:99px;color:var(--muted)}
.dossier-views svg{width:17px;height:17px}
.dossier-views [aria-current=page]{background:var(--light);color:var(--ink)}
.graph-access{color:var(--acid);min-height:44px;justify-content:flex-start}
.graph-access>span{margin-left:auto}
.ending-source-link{display:block;color:var(--muted);font-size:12px;line-height:1.6;text-decoration:underline;text-underline-offset:3px;padding:10px 0}

/* Context and catalogue surfaces; all numeric placement uses CSSOM. */
.initial-case{position:relative;max-width:780px;margin:5vh auto;padding:28px;color:#deebf8;font:18px/1.65 Space,Arial,sans-serif}.initial-case a{color:#cfefab}.initial-case nav{display:flex;gap:16px;flex-wrap:wrap}.initial-case h1{font:clamp(32px,5vw,64px)/1.1 News,Georgia,serif}.initial-case article{border-top:1px solid #7993ae;margin-top:30px;padding-top:24px}

.edition-choice{margin:22px 0;padding:14px;max-width:540px;border:1px solid #8aafd2;border-radius:12px;background:#0e1e30;font:14px/1.5 Space,Arial,sans-serif}.edition-choice p{margin:0 0 8px}.edition-choice a{color:#dcf5bd;text-decoration:underline}.bottom{flex-wrap:wrap;gap:12px}

/* Reserve space for lower cover decoration after variable-length resume choices. */
.cover-copy{padding-bottom:210px}.instruction,.coordinate,.credit{pointer-events:none}

/* The investigation desk. Screen-space controls surround a stable world-space map. */
#overlay.graph-scene{inset:0;transform:none;width:100%;height:100%;max-width:none;max-height:none;border:0;border-radius:0;padding:0;overflow:hidden;background:#050b14}
#overlay.graph-scene>.language-controls{top:18px;left:auto;right:126px}
#overlay.graph-scene>.overlay-close{top:13px;right:18px}
.graph-shell{max-width:none;margin:0;padding:0 22px;height:100%;height:100dvh;display:flex;flex-direction:column}
.graph-heading{height:78px;min-height:78px;display:flex;align-items:center;gap:28px;padding-right:230px;border-bottom:1px solid #9dbad31c}
.graph-heading>div{display:flex;align-items:baseline;gap:18px;min-width:0}
.graph-heading .eyebrow{font-size:9px;letter-spacing:.18em;color:#8aa1b7;white-space:nowrap}
.graph-heading h2{font:400 29px/1.1 Newsreader,Georgia,serif;margin:0;white-space:nowrap}
.graph-heading .dossier-views{margin:0 0 0 auto;flex-shrink:0;border:0;padding:0;gap:2px}
.graph-heading .dossier-views button{min-height:40px;font-size:11px;padding:8px 14px}
.graph-heading .dossier-views [aria-current=page]{background:#afcbe71b;color:var(--light)}
.graph-heading .dossier-views svg{width:15px;height:15px}
#graph-explorer{display:flex;flex-direction:column;flex:1;min-height:0}
.graph-toolbar{display:flex;gap:18px;align-items:center;padding:12px 0 9px;flex-shrink:0}
.graph-search{position:relative;display:flex;align-items:center;gap:10px;width:320px;min-width:0;border:1px solid #acc6e12f;border-radius:10px;background:#0c1725;z-index:12}
.graph-search>span{font-size:26px;color:var(--light);margin-left:13px}
.graph-search input{font:12px Space,Arial,sans-serif;min-height:44px;width:100%;min-width:0;padding:10px 12px 10px 0;color:#e3edf5;border:0;background:transparent;outline-offset:3px}
.graph-search input::placeholder{color:#96a9ba}
#graph-results{position:absolute;left:0;top:calc(100% + 8px);width:max(100%,340px);max-width:calc(100vw - 32px);max-height:min(440px,65dvh);overflow:auto;background:#101d2d;border:1px solid #9fbdd84d;box-shadow:0 20px 65px #0009;border-radius:12px;padding:6px;overscroll-behavior:contain}
#graph-results[hidden]{display:none}
#graph-results button{display:grid;grid-template-columns:1fr 20px;text-align:left;width:100%;padding:12px;border-radius:7px;min-height:60px}
#graph-results button small{grid-column:1;font-size:9px;color:var(--muted);letter-spacing:.07em;margin-bottom:6px}
#graph-results button strong{grid-column:1;font-size:12px;font-weight:400;color:#e2ecf5}
#graph-results button>span{grid-column:2;grid-row:1/3;align-self:center;color:var(--acid)}
#graph-results button:hover,#graph-results [aria-selected=true]{background:#b3d4f51b}
#graph-results>p{padding:16px;font-size:12px;color:var(--muted)}
.graph-scope{display:flex;padding:3px;border:1px solid #acc6e12a;border-radius:9px;gap:3px;flex-shrink:0}
.graph-scope button{font-size:11px;min-height:38px;padding:8px 14px;color:#9eb2c5;border-radius:6px;transition:background .25s,color .25s}
.graph-scope [aria-pressed=true]{background:#adcce523;color:#e6eef5}
.graph-count{margin:0 0 0 auto;font-size:10px;color:#91a6b9;white-space:nowrap;letter-spacing:.03em}
.graph-trails{display:flex;gap:10px;align-items:center;min-height:46px;padding-bottom:8px;flex-shrink:0;min-width:0}
.graph-trails-label{font-size:9px;color:#8da2b6;letter-spacing:.09em;text-transform:uppercase;white-space:nowrap}
.graph-trail-list{display:flex;align-items:center;gap:7px;overflow-x:auto;scrollbar-width:none;min-width:0;flex:1}
.graph-trail-list button{flex-shrink:0;display:flex;gap:8px;align-items:center;min-height:36px;padding:7px 12px;font-size:11px;border:1px solid #a6bfd522;border-radius:99px;color:#bdd0e1;background:#0e1826;transition:border-color .25s,background .25s,box-shadow .25s}
.graph-trail-list button>span{color:var(--acid)}
.graph-trail-list small{font-size:9px;opacity:.6}
.graph-trail-list .is-explored{border-style:dashed}
.graph-trail-list [aria-pressed=true]{background:#d8ecb51b;color:var(--acid);border-color:#d8ecb57a;box-shadow:0 0 22px #d8ecb510}
.graph-trail-list .graph-clear{color:#c8d5df;border-color:transparent;background:transparent}
.graph-no-trails{font-size:11px;color:var(--muted)}
.graph-more select{max-width:170px;min-height:36px;padding:6px 25px 6px 10px;border:1px solid #adc6dd2b;border-radius:8px;background:#0c1725;color:#c1d1df;font:10px Space,Arial,sans-serif}
.graph-workspace{position:relative;flex:1;min-height:0;border:1px solid #abcce026;border-radius:16px;overflow:hidden;background:#091321;isolation:isolate}
.graph-map,.graph-viewport{position:absolute;inset:0}
.graph-map{background:radial-gradient(ellipse at 38% 44%,#36557728,transparent 67%),radial-gradient(circle,#90b8dc22 .7px,transparent 1px);background-size:auto,24px 24px}
.graph-atmosphere{position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse at 26% 45%,#80b6e811,transparent 52%),linear-gradient(120deg,#0000,#050d1855);opacity:.8}
.graph-viewport{overflow:hidden;touch-action:none;cursor:grab;outline-offset:-4px}
.graph-viewport:active{cursor:grabbing}
.graph-plane{position:absolute;left:0;top:0;transform-origin:0 0;will-change:transform}
.graph-edges{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.graph-edge{color:#9cbdda;cursor:pointer;transition:opacity .35s}
.graph-edge-line{stroke:currentColor;stroke-width:1;opacity:.14;fill:none;vector-effect:non-scaling-stroke;transition:opacity .35s,stroke-width .35s}
.graph-edge-hit{stroke:transparent;stroke-width:18;fill:none;vector-effect:non-scaling-stroke}
.graph-edge.is-neighbor .graph-edge-line{opacity:.65;stroke-width:1.2}
.graph-edge.is-explored{color:var(--acid)}
.graph-edge.is-explored .graph-edge-line{stroke-dasharray:5 7}
.graph-focus .graph-edge:not(.is-neighbor){opacity:.15;pointer-events:none}
.graph-edge:hover .graph-edge-line,.graph-edge:focus-visible .graph-edge-line,.graph-edge.is-selected .graph-edge-line{opacity:1;stroke-width:2.2}
.graph-edge-signal{fill:none;stroke:var(--acid);stroke-width:2;stroke-dasharray:.035 .965;stroke-linecap:round;opacity:0;pointer-events:none;vector-effect:non-scaling-stroke}
.graph-is-moving .graph-edge.is-neighbor .graph-edge-signal{opacity:.65;animation:graph-thread 4s linear infinite}
.graph-edge:nth-child(3n) .graph-edge-signal{animation-delay:-1.3s}.graph-edge:nth-child(3n+1) .graph-edge-signal{animation-delay:-2.6s}
.graph-edge-caption{opacity:0;pointer-events:none;transition:opacity .2s}
.graph-edge-caption rect{fill:#0b1929;stroke:currentColor;stroke-width:.7;stroke-opacity:.5}
.graph-edge-caption text{font:11px Space,Arial,sans-serif;fill:currentColor}
.graph-edge:hover .graph-edge-caption,.graph-edge:focus-visible .graph-edge-caption,.graph-edge.is-selected .graph-edge-caption{opacity:1}
.graph-nodes{position:absolute;inset:0;pointer-events:none}
.graph-node{position:absolute;width:178px;min-height:76px;transform:translate(-50%,-50%);padding:0;pointer-events:auto;text-align:left;border-radius:7px;transition:opacity .4s;z-index:1}
.graph-node-card{display:block;position:relative;padding:12px 14px 13px;background:linear-gradient(150deg,#192a3c,#101d2c 75%);border:1px solid #a8c9e74f;border-radius:7px;box-shadow:0 8px 22px #0003,inset 0 1px #d7e9f012;transition:border-color .25s,background .25s,box-shadow .25s}
.graph-node-card:after{content:'';position:absolute;right:0;top:0;width:13px;height:13px;background:linear-gradient(45deg,#b6d4e914 50%,#091321 51%);border-bottom-left-radius:3px;pointer-events:none}
.graph-node-top{display:flex;align-items:center;gap:8px;margin-bottom:8px}
.graph-node-orbit{font:11px Space,Arial,sans-serif;color:#caddeb;letter-spacing:.06em}
.graph-node-publication{font:7px Space,Arial,sans-serif;text-transform:uppercase;letter-spacing:.07em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#8fa8bb}
.graph-node strong{font:400 calc(15px * var(--graph-type,1))/1.14 Newsreader,Georgia,serif;color:#dce8f3;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font-variant-numeric:lining-nums}
.graph-node-date{display:none;font:9px Space,Arial,sans-serif;color:#9bafbf;margin-top:10px}
.graph-node-port{position:absolute;bottom:-4px;left:calc(50% - 3px);width:6px;height:6px;background:#9ebacf;border-radius:50%;box-shadow:0 0 10px #b3d5ee44}
.graph-node-new{display:none;font:8px Space,Arial,sans-serif;margin-left:auto;color:var(--acid)}
.graph-node.is-new .graph-node-new{display:inline}
.graph-node.is-selected{z-index:4}
.graph-node.is-selected .graph-node-card{background:linear-gradient(135deg,#27372e,#1b2c2d);border-color:var(--acid);box-shadow:0 0 0 4px #d9ecac0b,0 0 55px #c6eeae15,0 12px 25px #0004}
.graph-node.is-selected strong,.graph-node.is-selected .graph-node-orbit{color:#ecf5ce}
.graph-node.is-selected .graph-node-port{background:var(--acid);box-shadow:0 0 16px #ddecafaa}
.graph-node.is-dim{opacity:.45}.graph-focus .graph-node.is-dim{opacity:.24}.graph-node.is-filtered{opacity:.12}
.graph-node:hover,.graph-node:focus-visible{opacity:1;z-index:5}
.graph-node:hover .graph-node-card,.graph-node:focus-visible .graph-node-card{border-color:var(--light);box-shadow:0 0 0 3px #b6d8ff19,0 10px 35px #0007}
.graph-zoom-close .graph-node-date{display:block}
.graph-zoom-close .graph-node strong{-webkit-line-clamp:3}
.graph-map-caption{position:absolute;top:18px;left:22px;right:340px;display:flex;justify-content:space-between;gap:20px;font-size:9px;letter-spacing:.14em;text-transform:uppercase;color:#7893aa;pointer-events:none}
.graph-map-context{color:#a9c0d2;max-width:45%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.graph-controls{position:absolute;bottom:17px;left:20px;display:flex;gap:7px;align-items:center;z-index:6}
.graph-controls>button,.graph-zoom,.graph-help{background:#0b1827ed;border:1px solid #aecbe139;border-radius:9px;box-shadow:0 8px 22px #0003}
.graph-controls>button{min-height:44px;padding:9px 12px;color:#c2d5e4;font-size:10px;display:flex;gap:8px;align-items:center}
.graph-zoom{display:flex;gap:0;padding:0}
.graph-zoom button{min-width:40px;min-height:42px;font-size:19px;color:#c5d7e5}
.graph-zoom [data-graph-zoom=fit]{font-size:10px;padding:0 7px}
.graph-zoom button:hover,.graph-controls>button:hover{background:#22394d}
.graph-arrange>span:first-child{font-size:18px}
.graph-motion-icon{display:flex;gap:3px;width:12px;height:12px;align-items:center}
.graph-motion-icon:before,.graph-motion-icon:after{content:'';width:3px;height:10px;background:currentColor;border-radius:1px}
[data-graph-motion][aria-pressed=true] .graph-motion-icon:before{width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;border-left:9px solid currentColor;background:none;border-radius:0}
[data-graph-motion][aria-pressed=true] .graph-motion-icon:after{display:none}
[data-graph-motion]:disabled{opacity:.6}
.graph-help summary{list-style:none;min-width:42px;min-height:42px;display:grid;place-items:center;cursor:pointer;font-size:12px;color:#c7d8e5}
.graph-help summary::-webkit-details-marker{display:none}
.graph-help[open]{z-index:7}
#graph-help{font-size:12px;line-height:1.7;margin:0;padding:18px;color:#c0d0dd}
.graph-help[open]>p{position:absolute;bottom:52px;left:0;max-width:calc(100vw - 64px);width:370px;background:#142436;border:1px solid #a8c7de44;border-radius:12px;box-shadow:0 12px 40px #0009;padding-bottom:58px}
.graph-legend{display:none}.graph-help[open] .graph-legend{position:absolute;bottom:68px;left:18px;display:flex;gap:18px;font-size:9px;pointer-events:none}
.graph-legend span{display:flex;align-items:center;gap:8px}.graph-legend i{width:14px;border-top:1px dashed var(--acid)}.graph-legend span+span i{border-top:1px solid var(--light)}
.graph-detail{position:absolute;z-index:8;top:14px;right:14px;bottom:14px;width:300px;border:1px solid #a6c3db3d;border-radius:12px;background:linear-gradient(145deg,#142234f5,#0d1928fc);backdrop-filter:blur(18px);overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#7c96ad55 transparent;box-shadow:0 12px 55px #0005;transition:height .45s cubic-bezier(.2,.8,.2,1),opacity .3s,translate .45s}
.graph-detail-head{padding:20px 22px 0}.graph-detail-kicker{display:flex;justify-content:space-between;align-items:center;gap:6px}
.graph-detail .eyebrow{font-size:9px;letter-spacing:.12em;color:#aec6d9}
.graph-return{font-size:10px;color:#a4bbce;min-height:36px;padding:0 3px}
.graph-return>span{margin-left:5px}
.graph-peek-title{display:flex;align-items:center;width:100%;text-align:left;gap:12px;cursor:default}
.graph-peek-title>span{display:none}
.graph-detail h3{font:400 30px/1.06 Newsreader,Georgia,serif;color:#e9eff4;margin:12px 0 10px}
.graph-date{font-size:9px;line-height:1.8;color:#94acc0;margin:0 0 18px;text-transform:uppercase;letter-spacing:.04em}
.graph-detail-body{padding:0 22px 24px}
.graph-read{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-height:44px;padding:12px 14px;border-radius:7px;font-size:11px;background:var(--acid);color:#152019;transition:box-shadow .2s,filter .2s}
.graph-read:hover{box-shadow:0 0 25px #ddecaf25;filter:brightness(1.07)}
.graph-links-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:24px 0 6px}
.graph-links-heading h4{font-size:10px;font-weight:400;color:#b7c8d5;margin:0}
.graph-links-heading>span{font-size:9px;color:#7b94aa}
.graph-links>button{display:flex;align-items:baseline;gap:12px;width:100%;text-align:left;padding:17px 0;border-bottom:1px solid #abc7dd19;transition:color .2s}
.graph-link-number{font-size:9px;color:#7f99af}
.graph-links strong{display:block;font:400 16px/1.2 Newsreader,Georgia,serif;color:#dce5ee}
.graph-links small{display:block;font-size:10px;line-height:1.6;color:#a9c0d1;margin-top:7px}
.graph-links>button>span:last-child{margin-left:auto;color:#bad0e1;font-size:13px}
.graph-link-kind{display:block;font-size:8px;margin-top:6px;color:#7891a7;letter-spacing:.03em}
.graph-link-kind.is-explored{color:var(--acid)}
.graph-links>button:hover strong{color:var(--acid)}
.graph-empty{font:20px/1.5 Newsreader,Georgia,serif;color:#afc1d1;margin:22px 0}
.graph-sheet-handle{display:none}
.graph-show-detail{display:none;position:absolute;top:14px;right:14px;min-height:44px;padding:12px 16px;border:1px solid #b7cfe242;border-radius:9px;background:#122237;color:#d6e4ed;font-size:11px;z-index:7}
.detail-collapsed .graph-detail{opacity:0;translate:110% 0;pointer-events:none}
.detail-collapsed .graph-show-detail{display:block}
.detail-collapsed .graph-map-caption{right:200px}
.graph-footnote{display:flex;justify-content:space-between;gap:16px;padding:9px 2px 11px;font-size:9px;line-height:1.4;color:#7891a7;flex-shrink:0}
/* Comparing is a spacious reading surface within the existing dialog. */
.is-comparing .graph-detail{width:min(1000px,calc(100% - 64px));left:50%;right:auto;top:22px;bottom:22px;transform:translateX(-50%);background:#102032fa;box-shadow:0 0 0 100vmax #020710aa,0 25px 80px #0008;backdrop-filter:blur(22px)}
.graph-comparison-head{position:relative;padding:22px 32px 12px;border-bottom:1px solid #a8c7de26}
.graph-back{display:block;min-height:40px;font-size:11px;color:#afc9df;margin:0 0 10px;text-align:left}
.graph-comparison-head .eyebrow{display:block;color:#829bb2}
.graph-comparison-head h3{font:400 34px/1.1 Newsreader,Georgia,serif;margin:10px 0 14px}
.graph-keywords{display:flex;gap:7px;flex-wrap:wrap}
.graph-keywords button{min-height:38px;border:1px solid #a7c4da47;border-radius:99px;padding:8px 13px;font-size:11px;color:#b9d0e2}
.graph-keywords .is-explored{border-style:dashed}
.graph-keywords [aria-pressed=true]{background:var(--light);color:#0e1b27;border-color:var(--light)}
.graph-question{font-size:11px;line-height:1.7;color:#a5bed2;margin:14px 0 0}
.graph-evidence{padding:24px 32px 20px}
.graph-evidence-pair{display:grid;grid-template-columns:1fr 1fr;gap:20px;align-items:stretch}
.graph-evidence-card{padding:23px 24px;background:linear-gradient(145deg,#d5dfd70c,#d3e3ed04);border:1px solid #bdd3da2c;border-radius:7px;display:flex;flex-direction:column;min-width:0;box-shadow:0 5px 30px #0002}
.graph-evidence-meta{display:flex;justify-content:space-between;gap:10px;color:#91a9ba;font-size:8px;letter-spacing:.08em;text-transform:uppercase}
.graph-evidence-card h4{font:400 25px/1.1 Newsreader,Georgia,serif;color:#e4ecf2;margin:18px 0 10px}
.graph-evidence-publication{font-size:9px;color:#8ea8bd;line-height:1.6;margin:0}
.graph-evidence blockquote{border:0;padding:0;margin:25px 0 14px;flex:1}
.graph-evidence blockquote p{font:400 23px/1.5 Newsreader,Georgia,serif;color:#dce7ef;margin:0;overflow-wrap:anywhere}
.graph-evidence mark{background:#dcecaa25;color:#eff5d7;border-bottom:1px solid #dcecaa77;padding:1px 2px;box-decoration-break:clone;-webkit-box-decoration-break:clone}
.graph-excerpt-type{font-size:9px;color:#819bae;margin:0 0 20px}
.graph-evidence-actions{display:grid;gap:8px;margin-top:auto}
.graph-keep{min-height:42px;font-size:11px;border:1px solid #abc6d839;border-radius:7px;padding:9px 12px;color:#c3d5e2;text-align:left}
.graph-keep:disabled{color:var(--acid);border-color:#ddeaac22}
.graph-evidence-note{font-size:10px;line-height:1.8;color:#8ea7ba;margin:18px 0 0}
@keyframes graph-thread{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}
@media(max-width:1150px){.graph-heading .eyebrow{display:none}.graph-heading{gap:12px}.graph-count{font-size:9px}.graph-arrange>span:last-child{display:none}}
@media(max-width:900px){
  #overlay.graph-scene>.language-controls{top:13px;right:68px}
  #overlay.graph-scene>.overlay-close{top:8px;right:10px;padding:10px;min-width:42px;justify-content:center}
  #overlay.graph-scene>.overlay-close span{display:none}
  .graph-shell{padding:0 10px}
  .graph-heading{height:61px;min-height:61px;padding-right:145px;gap:5px}
  .graph-heading h2{font-size:22px;white-space:normal;line-height:1}
  .graph-heading .dossier-views{position:absolute;top:67px;right:10px;z-index:13}
  .graph-heading .dossier-views button{padding:10px;min-width:42px;border-radius:9px}
  .graph-heading .dossier-views [aria-current=page]{display:none}
  .graph-heading .dossier-views button svg{display:none}
  .graph-toolbar{padding:8px 0 5px;gap:6px;flex-wrap:wrap}
  .graph-search{width:calc(100% - 76px);border-radius:8px}
  .graph-search input{min-height:42px;font-size:12px}
  .graph-scope{order:3;margin-top:3px;padding:0;border:0;gap:4px}
  .graph-scope button{min-height:36px;padding:8px 12px;font-size:10px}
  .graph-count{order:4;margin:3px 0 0 auto;font-size:8px}
  .graph-trails{min-height:44px;gap:6px;padding:0 0 7px}
  .graph-trails-label{display:none}.graph-more{max-width:90px}.graph-more select{width:90px;padding-right:10px;font-size:9px}
  .graph-trail-list button{min-height:36px;padding:7px 10px;font-size:10px}
  .graph-workspace{border-radius:12px}
  .graph-map-caption{left:14px;right:14px;top:13px;font-size:8px}
  .graph-node{width:166px;min-height:64px}
  .graph-node-card{padding:11px 12px}
  .graph-node strong{font-size:calc(17px * var(--graph-type,1))}
  .graph-node-publication{font-size:8px}
  .graph-controls{bottom:110px;left:10px;gap:5px;right:10px;transition:bottom .45s cubic-bezier(.2,.8,.2,1)}
  .graph-zoom button{min-width:36px;min-height:42px}.graph-controls>button{padding:9px 11px}
  .graph-motion-label,.graph-arrange>span:last-child{display:none}
  .graph-help summary{min-width:40px}
  .graph-help[open]>p{max-width:calc(100vw - 65px)}
  .graph-detail{top:auto;left:8px;right:8px;bottom:8px;width:auto;height:86px;max-height:calc(100% - 18px);border-radius:12px;overflow:hidden;backdrop-filter:blur(22px)}
  .graph-detail-head{padding:0 17px}
  .graph-sheet-handle{display:flex;width:100%;height:17px;min-height:17px;align-items:center;justify-content:center}
  .graph-sheet-handle>span{width:32px;height:3px;border-radius:2px;background:#8ba6ba66}
  .graph-detail-kicker .eyebrow{font-size:8px}
  .graph-detail-kicker{height:17px}
  .graph-return{min-height:30px;font-size:9px;display:none}
  .graph-detail h3{font-size:23px;margin:7px 0 9px;line-height:1.08}
  .graph-peek-title{cursor:pointer}.graph-peek-title>span{display:block;margin-left:auto;color:var(--acid)}
  [data-sheet=peek] .graph-peek-title h3{font-size:20px;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}
  [data-sheet=peek] .graph-date,[data-sheet=peek] .graph-detail-body{visibility:hidden}
  [data-sheet=detail] .graph-detail{height:47%;overflow:auto}
  [data-sheet=full] .graph-detail{height:calc(100% - 18px);overflow:auto}
  [data-sheet=detail] .graph-controls{bottom:calc(47% + 20px)}
  [data-sheet=full] .graph-controls{visibility:hidden}
  [data-sheet=detail] .graph-return,[data-sheet=full] .graph-return{display:block}
  .graph-detail-body{padding:0 17px 20px}
  .graph-date{font-size:8px;margin-bottom:12px}
  .graph-links-heading{margin-top:18px}
  .graph-links>button{padding:14px 0}
  .graph-footnote{font-size:8px;padding:7px 2px 9px;min-height:26px;align-items:center}
  .graph-footnote>span:last-child{display:none}
  .is-comparing .graph-detail{left:8px;right:8px;top:8px;bottom:8px;width:auto;height:auto;max-height:none;transform:none;border-radius:12px}
  .graph-comparison-head{padding:12px 18px 16px}
  .graph-back{margin-bottom:8px;font-size:10px}
  .graph-comparison-head h3{font-size:27px;margin:10px 0 12px}
  .graph-question{font-size:10px}
  .graph-evidence{padding:16px}
  .graph-evidence-pair{grid-template-columns:1fr;gap:14px}
  .graph-evidence-card{padding:19px 18px}
  .graph-evidence-card h4{font-size:24px}
  .graph-evidence blockquote p{font-size:22px;line-height:1.45}
  .graph-evidence blockquote{margin-top:20px}
  .graph-zoom-far .graph-node{width:calc(44px * var(--graph-inverse));min-height:calc(44px * var(--graph-inverse))}
  .graph-zoom-far .graph-node-card{padding:calc(9px * var(--graph-inverse));border-radius:50%;text-align:center}
  .graph-zoom-far .graph-node-top{margin:0;justify-content:center}
  .graph-zoom-far .graph-node-orbit{font-size:calc(11px * var(--graph-inverse))}
  .graph-zoom-far .graph-node-publication,.graph-zoom-far .graph-node-port,.graph-zoom-far .graph-node-new,.graph-zoom-far .graph-node-card:after,.graph-zoom-far .graph-node strong{display:none}
  .graph-zoom-far .graph-node.is-selected strong,.graph-zoom-far .graph-node:focus-visible strong{display:block;position:absolute;left:50%;top:calc(100% + 6px);transform:translateX(-50%);width:calc(135px * var(--graph-inverse));font-size:calc(15px * var(--graph-inverse));padding:calc(4px * var(--graph-inverse));background:#102333;border-radius:5px;color:#eaf2d8}
}
@media(max-width:380px){.graph-heading h2{font-size:20px}.graph-count{font-size:7px}.graph-scope button{padding:8px}.graph-more{max-width:70px}.graph-more select{width:70px}.graph-controls>button{padding:8px}.graph-zoom button{min-width:31px}.graph-help summary{min-width:32px}}

/* The map belongs to the investigation: reading, searching, notes and synthesis. */
.tools [data-action="graph"]{width:auto;gap:8px;padding:0 10px;position:relative}
.graph-update-count{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:20px;padding:0 5px;border-radius:99px;background:var(--acid);color:#0b1720;font:600 10px/1 Space,Arial,sans-serif}
.reader-graph{display:flex;align-items:center;gap:9px;min-height:44px;margin:0 0 20px;color:var(--muted);font-size:12px;text-align:left}
.reader-graph svg{width:17px;height:17px;color:var(--acid)}
.reader-graph:hover{color:var(--acid)}
.graph-access-copy{display:flex;flex-direction:column;gap:7px;text-align:left}
.graph-access>.graph-access-copy{margin-left:0}
.graph-access-copy strong{font-size:13px;font-weight:500}
.graph-access-copy small{font-size:10px;line-height:1.5;color:var(--muted)}
.discovery-graph{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;margin-top:20px;padding-top:12px;border-top:1px solid var(--line);color:var(--muted);font-size:12px}
.discovery-graph button{min-height:44px;color:var(--acid)}
.graph-investigation{display:flex;align-items:center;gap:20px;min-height:44px;flex-shrink:0;border-bottom:1px solid #9dbad31c;color:var(--muted)}
.graph-investigation>span{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font:italic 16px/1.2 Newsreader,Georgia,serif}
.graph-investigation button{display:flex;align-items:center;gap:7px;min-height:44px;font-size:11px;color:#bbccd9}
.graph-investigation button:hover{color:var(--acid)}
.graph-investigation svg{width:15px;height:15px}
@media(max-width:900px){
  .tools [data-action="graph"]{display:none}
  .mobile-bar button{flex:1;padding:5px 3px;font-size:11px;position:relative}
  .mobile-bar .graph-update-count{position:absolute;top:1px;right:8px}
  .graph-investigation{gap:12px;justify-content:space-between}
  .graph-investigation>span{display:none}
  .graph-heading .dossier-views{top:111px}
  .graph-count{white-space:normal;text-align:right;max-width:44%;line-height:1.5}
  .reader-graph{font-size:11px;margin-bottom:10px}
}
@media(max-height:650px) and (min-width:901px){.graph-heading{height:60px;min-height:60px}.graph-toolbar{padding-top:6px}.graph-trails{min-height:38px}.graph-footnote{padding:5px 2px}.graph-comparison-head{padding-top:12px}}
.graph-motion-off *,.motion-paused .graph-scene *{animation:none!important;transition:none!important}
@media(prefers-reduced-motion:reduce){.graph-scene *{animation:none!important;transition:none!important}}
@media(forced-colors:active){.graph-workspace,.graph-search,.graph-node-card,.graph-detail,.graph-evidence-card,.graph-controls>button,.graph-zoom,.graph-help,.graph-trail-list button,.graph-more select,#graph-results{background:Canvas;color:CanvasText;border-color:CanvasText}.graph-node,.graph-node.is-dim,.graph-node.is-filtered,.graph-focus .graph-node.is-dim{opacity:1}.graph-node strong,.graph-node-orbit,.graph-detail h3,.graph-evidence blockquote p,.graph-evidence-card h4{color:CanvasText}.graph-node.is-selected .graph-node-card,.graph-read,.graph-keywords [aria-pressed=true]{background:Highlight;color:HighlightText}.graph-node.is-selected strong,.graph-node.is-selected .graph-node-orbit{color:HighlightText}.graph-edge-line{stroke:CanvasText;opacity:.6}.graph-edge.is-selected .graph-edge-line{stroke:Highlight}.graph-evidence mark{background:Highlight;color:HighlightText}.graph-edge-caption rect{fill:Canvas}.graph-edge-caption text{fill:CanvasText}}
.graph-passage-tabs,.graph-expand{display:none}
.graph-evidence-card:focus-visible{outline:2px solid var(--light);outline-offset:3px}
@media(max-width:900px){
 .graph-expand{display:block;margin-left:auto;color:#a4bbce;min-height:44px;min-width:44px}
 [data-sheet=peek] .graph-expand,[data-sheet=full] .graph-expand{display:none}
 .graph-detail-kicker{height:auto;min-height:17px}
 .graph-return{min-height:44px;padding:0 5px}
 .graph-peek-title{min-height:44px}
 .is-comparing .graph-detail{position:fixed;top:64px;left:10px;right:10px;bottom:12px;max-height:none;z-index:15}
 .graph-passage-tabs{display:flex;position:sticky;top:0;z-index:2;gap:8px;padding:7px 16px;background:#122336f5;backdrop-filter:blur(10px);border-bottom:1px solid #a8c7de26}
 .graph-passage-tabs button{flex:1;min-height:44px;border:1px solid #bdd0df33;border-radius:7px;font-size:10px;color:#c6d9e9}
 .graph-evidence-card{scroll-margin-top:72px}
}
@media(max-width:900px){.is-comparing .graph-workspace{isolation:auto}.is-comparing .graph-detail{z-index:18}}

/* Keep investigation navigation reachable while comparing on small screens. */
.graph-investigation{position:relative;z-index:19}
@media(max-width:900px){
  .graph-heading{position:relative;z-index:20}
  .graph-heading .dossier-views{top:61px;right:0;z-index:19}
  .graph-investigation{padding-right:74px;gap:6px}
  .graph-investigation button{font-size:10px}
  .graph-investigation svg{display:none}
  .graph-search{width:100%}
  .is-comparing .graph-detail{top:110px}
}

/* Reading is available immediately; comparison owns its local close control. */
.graph-detail-actions{display:flex;gap:8px;margin:14px 0 3px}
.graph-detail-actions .graph-read{flex:1;margin:0}
.graph-peek-links{display:none;min-height:44px;padding:8px;color:#bed1df;font-size:11px;border:1px solid #acc7dc3b;border-radius:7px}
.graph-full-article{margin-top:16px}
.graph-article-title{text-align:left;color:inherit;font:inherit;text-decoration:underline;text-decoration-color:#aec9dc55;text-underline-offset:5px}
.graph-article-title:hover{color:var(--acid);text-decoration-color:currentColor}
.graph-comparison-controls{position:sticky;top:0;z-index:4;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:6px 12px 6px 24px;background:#102032;border-bottom:1px solid #a8c7de26}
.graph-comparison-controls>span{font-size:9px;letter-spacing:.08em;color:#98b0c3}
.graph-comparison-close{display:flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;margin:0;padding:0;border:1px solid #aec7d944;border-radius:9px;color:#e3edf5;background:#1a2d40}
.graph-comparison-close svg{width:20px;height:20px}
.graph-comparison-close:hover{color:var(--acid);border-color:currentColor}
.graph-comparison-head>.eyebrow{display:none}
#overlay[data-graph-comparing=true]>.overlay-close{visibility:hidden;pointer-events:none}
@media(max-width:900px){
  [data-sheet=peek] .graph-detail{height:134px}
  [data-sheet=peek] .graph-detail-head{padding-bottom:8px}
  [data-sheet=peek] .graph-date{display:none}
  [data-sheet=peek] .graph-detail-actions{margin-top:7px}
  [data-sheet=peek] .graph-peek-links{display:block}
  [data-sheet=peek] .graph-controls{bottom:152px}
  .graph-detail-actions .graph-read{font-size:11px;min-height:44px;padding:10px}
  .graph-comparison-controls{padding-left:18px}
  .graph-comparison-head{padding-top:12px}
  .graph-passage-tabs{top:57px}
  .graph-evidence-card{scroll-margin-top:130px}
}
@media(forced-colors:active){.graph-comparison-controls,.graph-comparison-close,.graph-peek-links{background:Canvas;color:CanvasText;border-color:CanvasText}}

.graph-peek-title{cursor:pointer}.graph-peek-title:hover h3{color:var(--acid)}

@media(max-width:900px) and (max-height:650px){.graph-map-caption{display:none}}
