/* GuinéeLex — Carte 3D du droit (atlas v2). Always-dark HUD band; independent of the site theme. */
html:has(.atlas:not(.atlas--embed)), html:has(.atlas:not(.atlas--embed)) body { overflow-x: clip; }
.atlas {
  --a-bg: #061a10; --a-ink: #f3efe0; --a-mute: #93a99a; --a-cy: #7be3b0; --a-gold: #e0b95a; --a-line: rgba(217, 180, 90, .22);
  --a-glass: rgba(7, 30, 19, .72); --a-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; --a-cap: var(--sans, Lato), "Helvetica Neue", Arial, sans-serif; --a-serif: var(--display, "EB Garamond"), Georgia, "Times New Roman", serif;
  position: relative; width: 100vw; margin-left: calc(50% - 50vw); background: var(--paper, #f5f0e6); color: var(--a-ink);
  font-family: var(--sans, Lato), system-ui, -apple-system, "Segoe UI", sans-serif; isolation: isolate; margin-top: -8px;
}
.atlas-dark { position: relative; background: linear-gradient(180deg, #0a2a1a 0%, #0d3b22 100%); }
.atlas-dark::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; z-index: 6; background: linear-gradient(90deg, #ce1126 0 33.33%, #f5c518 33.33% 66.66%, #009460 66.66%); }
.atlas *, .atlas *::before, .atlas *::after { box-sizing: border-box; }
.atlas button { font: inherit; color: inherit; cursor: pointer; }
.atlas :focus-visible { outline: 2px solid #ffe08a; outline-offset: 2px; }
.atlas-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header */
.atlas-head { position: relative; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px 48px; max-width: 1360px; margin: 0 auto; padding: 56px 56px 30px; }
.atlas-head::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 100%; background: radial-gradient(60% 120% at 12% 0%, rgba(224, 185, 90, .14), transparent 60%), radial-gradient(50% 100% at 92% 0%, rgba(123, 227, 176, .08), transparent 60%); pointer-events: none; z-index: -1; }
.atlas-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 16px; font: 800 11px/1 var(--a-cap); letter-spacing: .22em; text-transform: uppercase; color: var(--a-cy); }
.atlas-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--a-cy); box-shadow: 0 0 0 0 rgba(217, 180, 90, .7); animation: atlas-ping 2.4s ease-out infinite; }
@keyframes atlas-ping { 70% { box-shadow: 0 0 0 10px rgba(217, 180, 90, 0); } 100% { box-shadow: 0 0 0 0 rgba(217, 180, 90, 0); } }
.atlas-title { margin: 0; font: 500 clamp(2.4rem, 5.6vw, 4.6rem)/1.02 var(--a-serif); letter-spacing: -.01em; color: #f4efe0; }
.atlas-title em { font-style: italic; background: linear-gradient(100deg, #f5d98b, #e6c36a 45%, #9ee8c0 130%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.atlas-lede { margin: 18px 0 0; max-width: 560px; font-size: 1.05rem; line-height: 1.6; color: #bccfbf; }
.atlas-kpis { display: flex; gap: 0; margin: 0; padding: 0; list-style: none; border: 1px solid var(--a-line); border-radius: 16px; background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .01)); backdrop-filter: blur(8px); }
.atlas-kpis li { padding: 16px 26px; min-width: 128px; border-left: 1px solid var(--a-line); }
.atlas-kpis li:first-child { border-left: 0; }
.atlas-kpis strong { display: block; font: 500 clamp(1.9rem, 3.2vw, 2.7rem)/1 var(--a-serif); color: var(--a-gold); font-variant-numeric: tabular-nums; text-shadow: 0 0 24px rgba(230, 195, 106, .35); }
.atlas-kpis span { display: block; margin-top: 8px; font: 800 10.5px/1.2 var(--a-cap); letter-spacing: .16em; text-transform: uppercase; color: var(--a-mute); }

/* ---------- stage */
.atlas-stage { position: relative; height: clamp(560px, 80vh, 860px); overflow: hidden; border-block: 1px solid var(--a-line);
  background: radial-gradient(ellipse 70% 60% at 50% 46%, #124d2e 0%, #0b3320 46%, #04120a 100%); user-select: none; -webkit-user-select: none; }
.atlas-stage::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(123, 227, 176, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(123, 227, 176, .06) 1px, transparent 1px); background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 15%, transparent 72%); mask-image: radial-gradient(ellipse at 50% 50%, #000 15%, transparent 72%); }
.atlas-stage::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: radial-gradient(ellipse at 50% 50%, transparent 58%, rgba(2, 14, 8, .78) 100%); }
#atlasGL, #atlasHUD { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#atlasGL { z-index: 1; touch-action: none; cursor: grab; outline: none; }
.atlas-stage.is-dragging #atlasGL { cursor: grabbing; }
#atlasHUD { z-index: 2; pointer-events: none; }
.atlas-frame { position: absolute; inset: 10px; z-index: 4; pointer-events: none; }
.atlas-frame i { position: absolute; width: 22px; height: 22px; border: 0 solid rgba(217, 180, 90, .7); }
.atlas-frame i:nth-child(1) { top: 0; left: 0; border-width: 2px 0 0 2px; } .atlas-frame i:nth-child(2) { top: 0; right: 0; border-width: 2px 2px 0 0; }
.atlas-frame i:nth-child(3) { bottom: 0; left: 0; border-width: 0 0 2px 2px; } .atlas-frame i:nth-child(4) { bottom: 0; right: 0; border-width: 0 2px 2px 0; }
.atlas-scan { position: absolute; left: 0; right: 0; height: 120px; top: -120px; z-index: 3; pointer-events: none; background: linear-gradient(180deg, transparent, rgba(217, 180, 90, .06), transparent); animation: atlas-scan 9s linear infinite; }
@keyframes atlas-scan { to { transform: translateY(calc(80vh + 240px)); } }

/* ---------- toolbar */
.atlas-top { position: absolute; z-index: 6; left: 18px; right: 18px; top: 18px; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.atlas-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
.atlas-toolbar > *, .atlas-rels { pointer-events: auto; }
.atlas-seg { display: inline-flex; padding: 4px; gap: 2px; border: 1px solid var(--a-line); border-radius: 14px; background: var(--a-glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.atlas-seg button { display: flex; flex-direction: column; justify-content: center; padding: 7px 16px; border: 0; border-radius: 10px; background: transparent; text-align: left; transition: background .2s, color .2s; color: #c8d8c7; }
.atlas-seg button b { font: 700 13px/1.15 Lato, sans-serif; }
.atlas-seg button small { font: 500 10.5px/1.2 Lato, sans-serif; color: var(--a-mute); }
.atlas-seg button:hover { background: rgba(255, 255, 255, .06); }
.atlas-seg button[aria-pressed="true"] { background: linear-gradient(180deg, rgba(230, 195, 106, .24), rgba(230, 195, 106, .1)); color: #fff2c4; box-shadow: inset 0 0 0 1px rgba(230, 195, 106, .55); }
.atlas-seg button[aria-pressed="true"] small { color: #d9c385; }
.atlas-seg--small button { padding: 7px 14px; font: 700 12px/1 Lato, sans-serif; }
.atlas-search { position: relative; flex: 1 1 260px; min-width: 200px; max-width: 520px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border: 1px solid var(--a-line); border-radius: 14px; background: var(--a-glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: var(--a-mute); }
.atlas-search:focus-within { border-color: rgba(217, 180, 90, .6); box-shadow: 0 0 0 3px rgba(217, 180, 90, .12); }
.atlas-search svg { flex: none; width: 17px; height: 17px; }
.atlas-search input { flex: 1; min-width: 0; height: 46px; border: 0; outline: 0; background: transparent; color: var(--a-ink); font: 500 14px Lato, sans-serif; }
.atlas-search input::placeholder { color: #7f9686; }
.atlas-search kbd { font: 600 11px var(--a-mono); padding: 3px 7px; border: 1px solid var(--a-line); border-radius: 6px; color: var(--a-mute); }
.atlas-results { position: absolute; left: 0; right: 0; top: calc(100% + 8px); margin: 0; padding: 6px; list-style: none; max-height: 340px; overflow: auto; border: 1px solid var(--a-line); border-radius: 14px; background: rgba(5, 24, 15, .95); backdrop-filter: blur(18px); box-shadow: 0 24px 60px rgba(0, 0, 0, .6); z-index: 9; }
.atlas-results li { display: flex; flex-direction: column; gap: 2px; padding: 9px 12px; border-radius: 9px; cursor: pointer; color: #d3e0d1; }
.atlas-results li b { font: 600 12px var(--a-mono); color: var(--a-gold); } .atlas-results li span { font-size: 13px; line-height: 1.35; }
.atlas-results li[aria-selected="true"], .atlas-results li:hover { background: rgba(217, 180, 90, .1); }
.atlas-results .is-empty { cursor: default; color: var(--a-mute); }
.atlas-rels { display: flex; flex-wrap: wrap; gap: 8px; width: fit-content; max-width: 100%; }
.atlas-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border: 1px solid var(--a-line); border-radius: 999px; background: var(--a-glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font: 600 12.5px/1 Lato, sans-serif; color: #c8d8c7; transition: all .2s; }
.atlas-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
.atlas-chip:hover { border-color: rgba(255, 255, 255, .32); color: #fff; }
.atlas-chip[aria-pressed="true"] { border-color: color-mix(in srgb, var(--a-gold) 70%, transparent); background: linear-gradient(180deg, rgba(230, 195, 106, .2), rgba(230, 195, 106, .08)); color: #fff2c4; }
.atlas-chip--branch[aria-pressed="false"] { opacity: .42; } .atlas-chip--branch b { font: 600 11px var(--a-mono); color: var(--a-mute); }

/* ---------- legend / controls / status */
.atlas-legend { position: absolute; z-index: 5; left: 18px; bottom: 18px; width: fit-content; max-width: calc(100% - 100px); padding: 12px 14px; border: 1px solid var(--a-line); border-radius: 16px; background: var(--a-glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.atlas-legend-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 9px; font: 800 10.5px/1 var(--a-cap); letter-spacing: .18em; text-transform: uppercase; color: var(--a-mute); }
.atlas-legend-head button { border: 0; background: none; font: 600 11px Lato, sans-serif; letter-spacing: 0; text-transform: none; color: var(--a-cy); padding: 2px 4px; }
.atlas-legend-items { display: flex; flex-wrap: wrap; gap: 6px; } .atlas-legend .atlas-chip { padding: 6px 10px; font-size: 12px; }
.atlas-controls { position: absolute; z-index: 5; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 8px; transition: right .3s; }
.atlas-controls button { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--a-line); border-radius: 12px; background: var(--a-glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: #c8d8c7; transition: all .2s; }
.atlas-controls button:hover { color: #fff; border-color: rgba(217, 180, 90, .55); }
.atlas-controls button[aria-pressed="true"] { color: var(--a-cy); border-color: rgba(217, 180, 90, .55); box-shadow: 0 0 18px rgba(217, 180, 90, .22); }
.atlas-controls svg { width: 20px; height: 20px; }
.atlas-status { position: absolute; z-index: 4; left: 24px; bottom: 96px; display: flex; gap: 14px; align-items: center; font: 800 10.5px/1 var(--a-cap); letter-spacing: .14em; text-transform: uppercase; color: #8cae98; white-space: nowrap; pointer-events: none; }
.atlas-status .ok { color: #5af0a6; } .atlas-status .ok::before { content: "●"; margin-right: 6px; animation: atlas-blink 2s ease-in-out infinite; }
@keyframes atlas-blink { 50% { opacity: .35; } }
.atlas-hint { position: absolute; z-index: 4; left: 50%; bottom: 128px; transform: translateX(-50%); font: 500 12px Lato, sans-serif; color: #7f9d8a; pointer-events: none; transition: opacity .5s; white-space: nowrap; }
.atlas-stage.has-panel .atlas-hint, .atlas-stage.is-touched .atlas-hint { opacity: 0; }
@media (min-width: 961px) { .atlas-stage.has-panel .atlas-legend { max-width: calc(100% - 530px); } .atlas-stage.has-panel .atlas-controls { right: 430px; } .atlas-stage.has-panel .atlas-status { display: none; } }
.atlas-tooltip { position: absolute; z-index: 8; left: 0; top: 0; max-width: 320px; display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border: 1px solid rgba(217, 180, 90, .35); border-radius: 12px; background: rgba(5, 24, 15, .94); backdrop-filter: blur(14px); box-shadow: 0 14px 40px rgba(0, 0, 0, .55); pointer-events: none; }
.atlas-tooltip b { font: 600 11.5px var(--a-mono); color: var(--a-gold); } .atlas-tooltip span { font-size: 13px; line-height: 1.35; color: #f3f0e2; } .atlas-tooltip em { font: 500 11px Lato, sans-serif; font-style: normal; color: var(--a-mute); }
.atlas-toast { position: absolute; z-index: 9; left: 50%; top: 92px; transform: translate(-50%, -10px); padding: 10px 16px; border: 1px solid rgba(230, 195, 106, .5); border-radius: 12px; background: rgba(8, 32, 21, .95); font-size: 13px; color: #fff2c4; opacity: 0; pointer-events: none; transition: all .3s; max-width: calc(100% - 36px); }
.atlas-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- boot / fallback */
.atlas-loading { position: absolute; z-index: 7; inset: 0; display: grid; place-items: center; background: radial-gradient(ellipse at 50% 50%, rgba(3, 16, 9, .35), rgba(3, 16, 9, .92)); transition: opacity 1.2s ease .2s, visibility 0s 1.6s; }
.atlas-loading ul { margin: 0; padding: 0; list-style: none; font: 800 12px/2 var(--a-cap); letter-spacing: .12em; text-transform: uppercase; color: #6fd8ec; }
.atlas-loading li { opacity: 0; animation: atlas-line .5s forwards; } .atlas-loading li:nth-child(1) { animation-delay: .1s; } .atlas-loading li:nth-child(2) { animation-delay: .5s; } .atlas-loading li:nth-child(3) { animation-delay: .9s; } .atlas-loading li:nth-child(4) { animation-delay: 1.3s; color: #5af0a6; }
@keyframes atlas-line { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
.atlas-stage[data-state="ready"] .atlas-loading { opacity: 0; visibility: hidden; pointer-events: none; }
.atlas-stage:not([data-state="boot"]):not([data-state="loading"]) .atlas-top { animation: none; }
.atlas-fallback { display: none; position: absolute; z-index: 8; inset: 0; place-content: center; text-align: center; padding: 24px; background: rgba(3, 16, 9, .92); }
.atlas-fallback p { max-width: 460px; margin: 0 auto 14px; color: #c8d8c7; line-height: 1.6; } .atlas-fallback a { color: var(--a-gold); }
.atlas-stage[data-state="error"] .atlas-fallback, .atlas-stage[data-state="nogl"] .atlas-fallback { display: grid; }
.atlas-stage[data-state="error"] .atlas-loading, .atlas-stage[data-state="nogl"] .atlas-loading { display: none; }

/* ---------- detail panel */
.atlas-panel { position: absolute; z-index: 7; right: 18px; top: 112px; bottom: 18px; width: min(392px, calc(100% - 36px)); overflow: auto; padding: 22px 20px 20px; border: 1px solid rgba(217, 180, 90, .22); border-radius: 20px;
  background: linear-gradient(180deg, rgba(10, 42, 27, .84), rgba(5, 24, 15, .88)); backdrop-filter: blur(22px) saturate(1.3); -webkit-backdrop-filter: blur(22px) saturate(1.3); box-shadow: 0 30px 80px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .06);
  scrollbar-width: thin; scrollbar-color: rgba(217, 180, 90, .35) transparent; animation: atlas-in .45s cubic-bezier(.2, .8, .2, 1); }
@keyframes atlas-in { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }
.atlas-panel[hidden] { display: none; }
.atlas-x { position: absolute; right: 12px; top: 10px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .06); font-size: 22px; line-height: 1; color: #c8d8c7; }
.atlas-x:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.atlas-kicker { display: flex; align-items: center; gap: 8px; margin: 0 40px 12px 0; font: 800 10.5px/1.2 var(--a-cap); letter-spacing: .16em; text-transform: uppercase; color: var(--c); }
.atlas-kicker i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 12px var(--c); flex: none; }
.atlas-ptitle { margin: 0 0 14px; font: 500 1.5rem/1.2 var(--a-serif); color: #f6f1e2; }
.atlas-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
.atlas-ref { font: 600 11.5px var(--a-mono); padding: 5px 10px; border: 1px solid rgba(230, 195, 106, .5); border-radius: 999px; color: #f3dc9a; background: rgba(230, 195, 106, .08); }
.atlas-badge { font: 700 11px Lato, sans-serif; padding: 5px 10px; border-radius: 999px; }
.atlas-badge--vigueur { color: #5af0a6; background: rgba(90, 240, 166, .12); } .atlas-badge--abroge { color: #ff8f9a; background: rgba(255, 93, 108, .14); } .atlas-badge--caduc { color: #ffc27a; background: rgba(255, 162, 74, .14); }
.atlas-badge--documentaire { color: #b9c8d6; background: rgba(159, 178, 200, .14); } .atlas-badge--reference { color: #8fe0b8; background: rgba(94, 200, 255, .14); }
.atlas-date { font-size: 12.5px; color: var(--a-mute); }
.atlas-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.atlas-stats div { padding: 13px 14px; border: 1px solid var(--a-line); border-radius: 14px; background: rgba(255, 255, 255, .03); }
.atlas-stats strong { display: block; font: 500 1.7rem/1 var(--a-serif); color: #fff; font-variant-numeric: tabular-nums; } .atlas-stats span { font: 800 10px/1 var(--a-cap); letter-spacing: .16em; text-transform: uppercase; color: var(--a-mute); }
.atlas-relcount { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 16px; font-size: 12px; color: #bccfbf; }
.atlas-relcount i { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }
.atlas-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.atlas-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid var(--a-line); border-radius: 11px; background: rgba(255, 255, 255, .04); font: 700 12.5px/1 Lato, sans-serif; color: #ebf0e3; text-decoration: none; transition: all .2s; }
.atlas-btn:hover { border-color: rgba(217, 180, 90, .55); color: #fff; }
.atlas-btn--primary { border-color: rgba(230, 195, 106, .7); background: linear-gradient(180deg, #f1d58a, #d4a94a); color: #1a1405; box-shadow: 0 6px 24px rgba(230, 195, 106, .25); } .atlas-btn--primary:hover { color: #000; filter: brightness(1.06); }
.atlas-btn--ghost { cursor: help; color: var(--a-mute); }
.atlas-why { margin: 0 0 10px; font: 800 10.5px/1 var(--a-cap); letter-spacing: .18em; text-transform: uppercase; color: var(--a-mute); }
.atlas-rels-list { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.atlas-rels-list button { display: grid; width: 100%; gap: 3px; padding: 11px 13px; border: 1px solid var(--a-line); border-left: 3px solid var(--c); border-radius: 12px; background: rgba(255, 255, 255, .03); text-align: left; transition: all .2s; }
.atlas-rels-list button:hover { background: rgba(217, 180, 90, .08); border-color: rgba(217, 180, 90, .35); border-left-color: var(--c); transform: translateX(2px); }
.atlas-rl { display: flex; align-items: center; gap: 7px; font: 800 10px/1 var(--a-cap); letter-spacing: .14em; text-transform: uppercase; color: var(--c); } .atlas-rl i { width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.atlas-ro { font: 700 13px/1.3 Lato, sans-serif; color: #f6f3e6; word-break: break-word; } .atlas-ro em { margin-left: 8px; font: 600 10px var(--a-cap); font-style: normal; letter-spacing: .08em; text-transform: uppercase; color: #92d2b3; }
.atlas-rs { font-size: 12px; line-height: 1.4; color: var(--a-mute); }
.atlas-more { margin: 12px 0 0; font-size: 12.5px; color: var(--a-mute); }

/* ---------- cream section (site tokens, follows the light/dark theme of the template) */
.atlas-light { position: relative; background: var(--paper-sunken, #ece4d4); color: var(--ink, #16281f); border-top: 1px solid rgba(184, 132, 42, .35); }
.atlas-timeline { position: relative; max-width: 1360px; margin: 0 auto; padding: 38px 0 10px; }
.atlas-tl-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; padding: 0 56px 18px; }
.atlas-light .atlas-eyebrow { color: #7a5608; margin-bottom: 10px; } .atlas-light .atlas-eyebrow .dot { display: none; }
.atlas-tl-sub { margin: 0; font-size: 1rem; color: var(--ink-soft, #4c5a52); max-width: 720px; }
.atlas-tl-nav { display: flex; gap: 8px; }
.atlas-tl-nav button { width: 42px; height: 42px; border: 1px solid var(--line-strong, rgba(22, 40, 31, .26)); border-radius: 50%; background: var(--paper-raised, #fbf8f1); font-size: 18px; color: var(--green, #0d3b22); transition: all .2s; }
.atlas-tl-nav button:hover { border-color: var(--gold, #b8842a); color: var(--gold-ink, #8a6410); }
.atlas-tl-track { display: flex; gap: 14px; overflow-x: auto; padding: 8px 56px 24px; scroll-snap-type: x proximity; scroll-padding-inline: 56px; scrollbar-width: thin; scrollbar-color: rgba(184, 132, 42, .5) transparent;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); }
.atlas-card { flex: 0 0 276px; display: flex; flex-direction: column; gap: 9px; min-height: 176px; padding: 16px; text-align: left; scroll-snap-align: start; border: 1px solid var(--line, rgba(22, 40, 31, .14)); border-top: 3px solid var(--c); border-radius: var(--radius-lg, 18px); background: var(--paper-raised, #fbf8f1); box-shadow: var(--shadow-1, 0 1px 2px rgba(22, 40, 31, .05)); transition: transform .25s var(--ease, ease), box-shadow .25s, border-color .25s; }
.atlas-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-3, 0 20px 40px rgba(22, 40, 31, .18)); border-color: var(--gold-soft, #d9b45a); border-top-color: var(--c); }
.atlas-card.is-center { background: linear-gradient(180deg, color-mix(in srgb, var(--gold, #b8842a) 26%, var(--paper-raised, #fbf8f1)), var(--paper-raised, #fbf8f1)); border-color: var(--gold, #b8842a); border-top-color: var(--gold, #b8842a); box-shadow: var(--shadow-gold, 0 14px 30px rgba(184, 132, 42, .28)); }
.atlas-card-date { font: 800 10.5px/1 var(--a-cap); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink, #8a6410); }
.atlas-card-title { font: 500 1.14rem/1.25 var(--a-serif); color: var(--green, #0d3b22); flex: 1; }
.atlas-card-ref { font: 600 11px var(--a-mono); color: var(--ink-faint, #63736a); word-break: break-all; }
.atlas-card-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.atlas-tag { padding: 4px 8px; border-radius: 999px; font: 800 9.5px/1 var(--a-cap); letter-spacing: .08em; text-transform: uppercase; color: var(--ink, #16281f); background: color-mix(in srgb, var(--c, #8a9a90) 22%, transparent); }
.atlas-tag--center { color: #1a1405; background: #e0b95a; } .atlas-tag--muted { color: var(--ink-soft, #4c5a52); background: var(--neutre-bg, rgba(76, 90, 82, .1)); }
.atlas-note { max-width: 1360px; margin: 0 auto; padding: 8px 56px 6px; font-size: 1rem; line-height: 1.65; color: var(--ink-soft, #4c5a52); }
.atlas-note strong { color: var(--green, #0d3b22); font-weight: 700; }
.atlas-branches { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; max-width: 1360px; margin: 0 auto; padding: 18px 56px 56px; }
.atlas-branches a { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--line, rgba(22, 40, 31, .14)); border-left: 4px solid var(--c); border-radius: var(--radius, 12px); background: var(--paper-raised, #fbf8f1); color: var(--green, #0d3b22); text-decoration: none; transition: all .2s; box-shadow: var(--shadow-1, none); }
.atlas-branches a:hover { box-shadow: var(--shadow-2, 0 10px 24px rgba(22, 40, 31, .14)); border-color: var(--gold-soft, #d9b45a); border-left-color: var(--c); transform: translateY(-2px); }
.atlas-branches b { font-weight: 800; } .atlas-branches span { font: 600 11px var(--a-mono); color: var(--ink-faint, #63736a); letter-spacing: .08em; }

/* ---------- responsive */
@media (max-width: 960px) {
  .atlas-head { padding: 40px 28px 24px; } .atlas-tl-head, .atlas-note, .atlas-branches { padding-inline: 28px; } .atlas-tl-track { padding-inline: 28px; scroll-padding-inline: 28px; }
  .atlas-panel { top: auto; right: 10px; left: 10px; bottom: 10px; width: auto; height: 52%; border-radius: 18px; }
  .atlas-stage.has-panel .atlas-legend, .atlas-stage.has-panel .atlas-controls, .atlas-stage.has-panel .atlas-status { display: none; }
}
@media (max-width: 640px) {
  .atlas-head { padding: 32px 16px 20px; } .atlas-kpis { width: 100%; flex-wrap: wrap; } .atlas-kpis li { flex: 1 1 46%; min-width: 0; padding: 12px 16px; } .atlas-kpis li:nth-child(3) { border-left: 0; } .atlas-kpis li:nth-child(n+3) { border-top: 1px solid var(--a-line); }
  .atlas-stage { height: 76svh; min-height: 520px; } .atlas-top { left: 10px; right: 10px; top: 10px; gap: 8px; }
  .atlas-seg { width: 100%; } .atlas-seg:not(.atlas-seg--small) button { flex: 1; padding: 7px 8px; } .atlas-seg button small { display: none; } .atlas-seg--small { display: none; }
  .atlas-search { flex-basis: 100%; max-width: none; } .atlas-search input { height: 42px; } .atlas-search kbd { display: none; }
  .atlas-rels { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 4px; scrollbar-width: none; } .atlas-rels::-webkit-scrollbar { display: none; } .atlas-chip { white-space: nowrap; }
  .atlas-legend { left: 10px; right: 64px; bottom: 10px; width: auto; max-width: none; padding: 9px 10px; } .atlas-legend-items { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } .atlas-legend-items::-webkit-scrollbar { display: none; } .atlas-legend-head { display: none; }
  .atlas-controls { right: 10px; bottom: 10px; } .atlas-controls button { width: 40px; height: 40px; } .atlas-controls [data-act="labels"], .atlas-controls [data-act="full"] { display: none; }
  .atlas-status, .atlas-hint { display: none; } .atlas-frame { inset: 5px; }
  .atlas-panel { height: 58%; } .atlas-card { flex-basis: 240px; } .atlas-tl-head { flex-direction: column; align-items: flex-start; } .atlas-tl-nav { display: none; }
}
@media (prefers-reduced-motion: reduce) { .atlas *, .atlas *::before, .atlas *::after { animation: none !important; transition: none !important; } .atlas-loading li { opacity: 1; } }

.atlas-legend, .atlas-status, .atlas-controls { transition: opacity .4s ease; }
.atlas-stage.is-chrono .atlas-legend, .atlas-stage.is-chrono .atlas-status, .atlas-stage.is-chrono .atlas-hint { opacity: 0; pointer-events: none; }

/* ---------- aurora drifting behind the scene */
.atlas-aurora { position: absolute; inset: -22%; z-index: 0; pointer-events: none; opacity: .6; mix-blend-mode: screen;
  background: radial-gradient(40% 34% at 28% 42%, rgba(224, 185, 90, .24), transparent 70%), radial-gradient(46% 40% at 74% 58%, rgba(123, 227, 176, .24), transparent 70%), radial-gradient(30% 28% at 52% 18%, rgba(255, 82, 102, .09), transparent 70%);
  animation: atlas-aurora 24s ease-in-out infinite alternate; }
@keyframes atlas-aurora { 0% { transform: translate3d(-5%, -3%, 0) rotate(-3deg) scale(1); } 100% { transform: translate3d(6%, 4%, 0) rotate(4deg) scale(1.14); } }

/* ---------- assistant dock */
.atlas-dock { position: absolute; z-index: 6; left: 50%; bottom: 18px; transform: translateX(-50%); width: min(740px, calc(100% - 236px)); display: flex; flex-direction: column; gap: 10px; pointer-events: none; transition: left .3s, width .3s; }
.atlas-dock > * { pointer-events: auto; }
.atlas-ask { display: flex; align-items: center; gap: 10px; padding: 6px 7px 6px 18px; border: 1px solid rgba(224, 185, 90, .5); border-radius: 20px; background: linear-gradient(180deg, rgba(10, 42, 27, .86), rgba(5, 24, 15, .9)); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 18px 50px rgba(0, 0, 0, .5), 0 0 44px rgba(224, 185, 90, .14); transition: box-shadow .25s, border-color .25s; }
.atlas-ask:focus-within { border-color: var(--a-gold); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 18px 50px rgba(0, 0, 0, .5), 0 0 0 4px rgba(224, 185, 90, .18), 0 0 60px rgba(224, 185, 90, .3); }
.atlas-spark { color: var(--a-gold); font-size: 19px; line-height: 1; text-shadow: 0 0 16px rgba(224, 185, 90, .9); animation: atlas-spark 3.4s ease-in-out infinite; }
@keyframes atlas-spark { 0%, 100% { transform: scale(1) rotate(0); opacity: .85; } 50% { transform: scale(1.22) rotate(18deg); opacity: 1; } }
.atlas-ask input { flex: 1; min-width: 0; height: 48px; border: 0; outline: 0; background: transparent; color: var(--a-ink); font: 500 15px var(--a-cap); }
.atlas-ask input::placeholder { color: #8da597; }
.atlas-mic, .atlas-go { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; border: 1px solid var(--a-line); background: rgba(255, 255, 255, .05); color: #e8d9a8; font-size: 19px; transition: all .2s; }
.atlas-mic[hidden] { display: none; } .atlas-mic svg { width: 20px; height: 20px; }
.atlas-go { background: linear-gradient(180deg, #f1d58a, #d4a94a); border-color: rgba(230, 195, 106, .7); color: #1a1405; font-weight: 800; box-shadow: 0 6px 22px rgba(224, 185, 90, .3); } .atlas-go:hover { filter: brightness(1.08); transform: translateX(2px); }
.atlas-mic.is-live { color: #fff; background: #d8344a; border-color: #ff6a78; animation: atlas-live 1.1s ease-in-out infinite; } @keyframes atlas-live { 50% { box-shadow: 0 0 0 8px rgba(216, 52, 74, 0); } 0% { box-shadow: 0 0 0 0 rgba(216, 52, 74, .6); } }
.atlas-suggest { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.atlas-dock.has-answer .atlas-suggest { display: none; }
.atlas-suggest button { padding: 8px 14px; border: 1px solid var(--a-line); border-radius: 999px; background: rgba(5, 24, 15, .72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font: 600 12.5px var(--a-cap); color: #d9e6d6; transition: all .2s; }
.atlas-suggest button:first-child { border-color: rgba(224, 185, 90, .6); color: #f5e3a4; }
.atlas-suggest button:hover { border-color: var(--a-gold); color: #fff; transform: translateY(-2px); }
.atlas-answer { padding: 16px 18px 14px; border: 1px solid rgba(224, 185, 90, .34); border-radius: 20px; background: linear-gradient(180deg, rgba(10, 42, 27, .9), rgba(5, 24, 15, .93)); backdrop-filter: blur(22px) saturate(1.3); -webkit-backdrop-filter: blur(22px) saturate(1.3); box-shadow: 0 24px 70px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .06); max-height: min(44vh, 380px); overflow: auto; animation: atlas-rise .4s cubic-bezier(.2, .8, .2, 1); scrollbar-width: thin; scrollbar-color: rgba(224, 185, 90, .4) transparent; }
.atlas-answer[hidden] { display: none; } @keyframes atlas-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.atlas-answer-head { display: flex; align-items: center; gap: 9px; font: 800 10.5px/1 var(--a-cap); letter-spacing: .16em; text-transform: uppercase; color: var(--a-gold); }
.atlas-answer-head b { flex: 1; font-weight: 800; } .atlas-answer-head button { width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .06); color: #c8d8c7; font-size: 15px; letter-spacing: 0; } .atlas-answer-head button:hover { background: rgba(255, 255, 255, .14); color: #fff; } .atlas-answer-head button[aria-pressed="true"] { background: rgba(224, 185, 90, .28); color: #fff2c4; }
.atlas-answer-text { margin: 12px 0 0; font: 500 16px/1.55 var(--a-cap); color: #f6f2e3; min-height: 1.5em; }
.atlas-answer-text:not(:empty)::after { content: ""; }
.atlas-answer-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.atlas-answer-list button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; max-width: 250px; padding: 9px 12px; border: 1px solid var(--a-line); border-left: 3px solid var(--c); border-radius: 12px; background: rgba(255, 255, 255, .04); text-align: left; transition: all .2s; }
.atlas-answer-list button:hover { background: rgba(224, 185, 90, .1); border-color: rgba(224, 185, 90, .5); border-left-color: var(--c); transform: translateY(-2px); }
.atlas-answer-list b { font: 600 11px var(--a-mono); color: var(--a-gold); } .atlas-answer-list span { font: 500 12.5px/1.3 var(--a-cap); color: #dfe9dc; }
.atlas-more-chip { align-self: center; font: 700 12px var(--a-cap); color: var(--a-mute); }
.atlas-answer-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; } .atlas-answer-actions:empty { display: none; }
/* branch legend becomes a left rail on wide screens so the bottom belongs to the assistant */
@media (min-width: 961px) {
  .atlas-legend { left: 18px; right: auto; top: 150px; bottom: auto; width: 214px; max-width: none; padding: 12px; }
  .atlas-legend-items { flex-direction: column; flex-wrap: nowrap; gap: 5px; } .atlas-legend .atlas-chip { width: 100%; justify-content: flex-start; } .atlas-legend .atlas-chip b { margin-left: auto; }
  .atlas-status { bottom: 22px; left: 24px; } .atlas-hint { display: none; }
  .atlas-stage.has-panel .atlas-legend { max-width: none; }
}
@media (max-width: 960px) { .atlas-dock { width: calc(100% - 160px); } }
@media (max-width: 640px) { .atlas-dock { left: 10px; right: 62px; bottom: 78px; transform: none; width: auto; } .atlas-suggest { display: none; } .atlas-ask input { height: 44px; font-size: 14px; } .atlas-answer { max-height: 36vh; } .atlas-stage.has-panel .atlas-dock { display: none; } }
@media (prefers-reduced-motion: reduce) { .atlas-spark, .atlas-mic.is-live { animation: none !important; } }

@media (min-width: 961px) { .atlas-status span:nth-child(n+3) { display: none; } }

@media (min-width: 961px) { .atlas-dock { left: 250px; right: 92px; width: min(780px, calc(100% - 342px)); margin-inline: auto; transform: none; } .atlas-stage.has-panel .atlas-dock { right: 440px; width: min(780px, calc(100% - 692px)); } }

/* ---------- accessibility and touch polish */
#atlasGL:focus-visible { outline: 3px solid #ffe08a; outline-offset: -6px; }
.atlas-stage { scroll-margin-top: 88px; }
.atlas-spark svg { width: 19px; height: 19px; display: block; }
.atlas-go svg, .atlas-answer-head svg { width: 20px; height: 20px; display: block; } .atlas-answer-head button { display: grid; place-items: center; } .atlas-answer-head button svg { width: 16px; height: 16px; }
.atlas-tl-nav button { display: grid; place-items: center; } .atlas-tl-nav svg { width: 20px; height: 20px; } .atlas-x { display: grid; place-items: center; }
.atlas-controls [data-act="release"] { display: none; }
@media (pointer: coarse) {
  #atlasGL { touch-action: pan-y pinch-zoom; } .atlas-stage.is-engaged #atlasGL { touch-action: none; }
  .atlas-controls [data-act="release"] { display: grid; } .atlas-stage:not(.is-engaged) .atlas-controls [data-act="release"] { opacity: .45; }
  .atlas-chip, .atlas-suggest button, .atlas-seg button, .atlas-btn { min-height: 44px; } .atlas-answer-head button, .atlas-x { width: 44px; height: 44px; } .atlas-tl-nav button { width: 44px; height: 44px; } .atlas-controls button { width: 44px; height: 44px; }
  .atlas-answer-list button { min-height: 44px; } .atlas-legend-head button { min-height: 44px; padding: 8px; }
}
@media (max-width: 640px) { .atlas-controls [data-act="labels"], .atlas-controls [data-act="full"] { display: none; } .atlas-controls [data-act="release"] { display: grid; } }
@media (forced-colors: active) { .atlas-chip[aria-pressed="true"], .atlas-seg button[aria-pressed="true"] { outline: 2px solid Highlight; } .atlas-ask, .atlas-answer, .atlas-panel { border-color: CanvasText; } }

/* the dropdown must sit above the relation chips (both create stacking contexts) */
.atlas-toolbar { position: relative; z-index: 3; } .atlas-rels { position: relative; z-index: 1; } .atlas-search { z-index: 4; } .atlas-search:focus-within { z-index: 8; }

/* ================= coloring: gold chrome (the template's accent); green is reserved for data and "online" ================= */
.atlas { --a-cy: #e8c872; }
.atlas-eyebrow { color: #e8c872; } .atlas-eyebrow .dot { background: #e8c872; }
.atlas-title em { background: linear-gradient(100deg, #f8de92 0%, #e6bd55 52%, #cf9a2e 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.atlas-stage::before { background-image: linear-gradient(rgba(224, 185, 90, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(224, 185, 90, .05) 1px, transparent 1px); }
.atlas-controls button[aria-pressed="true"] { color: #f3d98a; border-color: rgba(232, 200, 114, .6); box-shadow: 0 0 18px rgba(224, 185, 90, .25); }

/* ================= light liquid glass ================= */
.atlas {
  --glass-fill: linear-gradient(135deg, rgba(255, 255, 255, .20) 0%, rgba(255, 255, 255, .07) 48%, rgba(255, 255, 255, .12) 100%);
  --glass-tint: rgba(10, 44, 28, .40);
  --glass-tint-strong: rgba(8, 36, 22, .58);
  --glass-edge: rgba(255, 255, 255, .30);
  --glass-blur: blur(22px) saturate(1.75) brightness(1.1);
  --glass-shadow: 0 12px 34px rgba(0, 0, 0, .30), 0 2px 6px rgba(0, 0, 0, .18), inset 0 1px 0 rgba(255, 255, 255, .42), inset 0 -1px 0 rgba(255, 255, 255, .08), inset 0 0 26px rgba(255, 255, 255, .05);
}
.atlas-seg, .atlas-search, .atlas-legend, .atlas-controls button, .atlas-ask, .atlas-kpis, .atlas-chip, .atlas-suggest button, .atlas-mic {
  background: var(--glass-fill), var(--glass-tint); border: 1px solid var(--glass-edge); box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
}
.atlas-chip, .atlas-suggest button, .atlas-mic { background: var(--glass-fill), rgba(10, 44, 28, .30); box-shadow: 0 6px 18px rgba(0, 0, 0, .22), inset 0 1px 0 rgba(255, 255, 255, .38), inset 0 -1px 0 rgba(255, 255, 255, .06); }
.atlas-answer, .atlas-panel, .atlas-tooltip, .atlas-results, .atlas-toast {
  background: var(--glass-fill), var(--glass-tint-strong); border: 1px solid var(--glass-edge); box-shadow: var(--glass-shadow), 0 24px 70px rgba(0, 0, 0, .35);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
}
/* specular sheen: a bright edge on the top-left that fades across the surface, kept behind the content */
.atlas-panel, .atlas-answer, .atlas-ask, .atlas-legend, .atlas-kpis, .atlas-seg, .atlas-search { position: relative; }
.atlas-panel { position: absolute; } .atlas-legend { position: absolute; } .atlas-answer { position: relative; }
.atlas-panel::before, .atlas-answer::before, .atlas-ask::before, .atlas-legend::before, .atlas-kpis::before, .atlas-seg::before, .atlas-search::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: linear-gradient(125deg, rgba(255, 255, 255, .30) 0%, rgba(255, 255, 255, .08) 26%, transparent 52%, transparent 74%, rgba(255, 255, 255, .10) 100%);
}
.atlas-kpis { overflow: hidden; border-radius: 18px; }
.atlas-stats div, .atlas-rels-list button, .atlas-answer-list button { background: rgba(255, 255, 255, .10); border-color: rgba(255, 255, 255, .20); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22); }
.atlas-rels-list button:hover, .atlas-answer-list button:hover { background: rgba(255, 255, 255, .18); }
.atlas-chip[aria-pressed="true"], .atlas-seg button[aria-pressed="true"] { background: linear-gradient(180deg, rgba(246, 214, 124, .55), rgba(224, 185, 90, .28)); border-color: rgba(250, 226, 150, .75); color: #fffaf0; box-shadow: 0 6px 20px rgba(224, 185, 90, .28), inset 0 1px 0 rgba(255, 255, 255, .5); }
.atlas-seg button[aria-pressed="true"] small { color: #f6e7b4; }
.atlas-ask:focus-within { border-color: rgba(250, 226, 150, .85); }
.atlas-seg button, .atlas-chip, .atlas-suggest button { text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
.atlas-answer-text, .atlas-ptitle, .atlas-ro { text-shadow: 0 1px 3px rgba(0, 0, 0, .45); }
@media (pointer: coarse) { .atlas { --glass-blur: blur(14px) saturate(1.5); } }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .atlas { --glass-tint: rgba(8, 36, 22, .82); --glass-tint-strong: rgba(6, 28, 17, .92); } }
@media (prefers-reduced-transparency: reduce) { .atlas { --glass-fill: linear-gradient(rgba(255,255,255,.08), rgba(255,255,255,.08)); --glass-tint: rgba(8, 36, 22, .92); --glass-tint-strong: rgba(6, 28, 17, .96); --glass-blur: none; } }

/* legibility on the lighter glass */
.atlas { --a-mute: #bccdc0; }
.atlas-chip, .atlas-seg button, .atlas-suggest button { color: #eaf1e6; }
.atlas-chip--branch b, .atlas-legend-head, .atlas-seg button small, .atlas-status { color: #c9d9cc; }
.atlas-search input::placeholder, .atlas-ask input::placeholder { color: #b6c8ba; }
.atlas-search svg, .atlas-search kbd { color: #c9d9cc; }

/* ================= mines.guineelex recipe: green glass over the scene, cream glass for what you read or type into ================= */
.atlas {
  --mg-dark: linear-gradient(135deg, rgba(7, 28, 20, .52), rgba(6, 36, 26, .26));
  --mg-edge: rgba(247, 241, 224, .20);
  --mg-hi: inset 0 1px rgba(255, 255, 255, .17);
  --mg-blur: blur(28px) saturate(1.2);
  --mg-shadow: 0 20px 60px rgba(0, 0, 0, .26);
  --cream-glass: rgba(250, 247, 239, .62); --cream-solid: rgba(250, 247, 239, .97); --gold-edge: rgba(224, 178, 60, .45);
  --k-ink: #16281f; --k-soft: #4c5a52; --k-gold: #7a5608; --k-green: #0d3b22;
}
.atlas-seg, .atlas-legend, .atlas-controls button, .atlas-kpis, .atlas-chip, .atlas-suggest button {
  background: var(--mg-dark); border: 1px solid var(--mg-edge); box-shadow: var(--mg-shadow), var(--mg-hi);
  -webkit-backdrop-filter: var(--mg-blur); backdrop-filter: var(--mg-blur);
}
.atlas-chip, .atlas-suggest button { box-shadow: 0 8px 24px rgba(0, 0, 0, .2), var(--mg-hi); }
.atlas-seg::before, .atlas-legend::before, .atlas-kpis::before { display: none; }
/* cream pills: search and the assistant input */
.atlas-search, .atlas-ask { background: var(--cream-glass); border: 1px solid rgba(255, 255, 255, .55); box-shadow: inset 0 1px rgba(255, 255, 255, .8), 0 12px 32px rgba(0, 0, 0, .2); -webkit-backdrop-filter: blur(24px) saturate(1.35); backdrop-filter: blur(24px) saturate(1.35); color: var(--k-ink); }
.atlas-search::before, .atlas-ask::before { display: none; }
.atlas-search input, .atlas-ask input { color: var(--k-ink); text-shadow: none; }
.atlas-search input::placeholder, .atlas-ask input::placeholder { color: #5d6b63; }
.atlas-search svg, .atlas-search kbd { color: var(--k-soft); border-color: rgba(22, 40, 31, .22); }
.atlas-search:focus-within, .atlas-ask:focus-within { border-color: rgba(224, 178, 60, .9); box-shadow: inset 0 1px rgba(255, 255, 255, .8), 0 0 0 4px rgba(224, 178, 60, .22), 0 12px 32px rgba(0, 0, 0, .2); }
.atlas-spark { color: #b8842a; text-shadow: none; }
.atlas-mic { background: rgba(22, 40, 31, .07); border: 1px solid rgba(22, 40, 31, .14); box-shadow: none; color: var(--k-green); -webkit-backdrop-filter: none; backdrop-filter: none; }
/* cream drawers: panel, answer, results, tooltip, toast */
.atlas-panel, .atlas-answer, .atlas-results, .atlas-tooltip, .atlas-toast { background: var(--cream-solid); border: 1px solid var(--gold-edge); color: var(--k-ink); box-shadow: 0 25px 70px rgba(0, 0, 0, .36); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); scrollbar-color: rgba(184, 132, 42, .5) transparent; }
.atlas-panel::before, .atlas-answer::before { display: none; }
.atlas-x, .atlas-answer-head button { background: rgba(22, 40, 31, .07); color: var(--k-ink); } .atlas-x:hover, .atlas-answer-head button:hover { background: rgba(22, 40, 31, .14); color: #000; }
.atlas-answer-head button[aria-pressed="true"] { background: rgba(224, 178, 60, .35); color: var(--k-ink); }
.atlas-kicker { color: var(--k-soft); } .atlas-kicker i { box-shadow: 0 0 0 1px rgba(22, 40, 31, .25); }
.atlas-ptitle { color: var(--k-green); text-shadow: none; }
.atlas-ref { color: var(--k-gold); background: rgba(224, 178, 60, .14); border-color: rgba(184, 132, 42, .55); }
.atlas-badge--vigueur { color: #1e7a46; background: rgba(0, 148, 96, .13); } .atlas-badge--abroge { color: #a3271c; background: rgba(206, 17, 38, .11); } .atlas-badge--caduc { color: #7a5608; background: rgba(176, 128, 28, .16); }
.atlas-badge--documentaire { color: #4c5a52; background: rgba(76, 90, 82, .13); } .atlas-badge--reference { color: #1d5f86; background: rgba(29, 95, 134, .13); }
.atlas-date, .atlas-relcount, .atlas-why, .atlas-more, .atlas-stats span { color: var(--k-soft); }
.atlas-stats div { background: rgba(22, 40, 31, .04); border-color: rgba(22, 40, 31, .12); box-shadow: none; } .atlas-stats strong { color: var(--k-green); }
.atlas-btn { background: rgba(22, 40, 31, .05); border-color: rgba(22, 40, 31, .2); color: var(--k-ink); text-shadow: none; } .atlas-btn:hover { background: rgba(224, 178, 60, .18); border-color: rgba(184, 132, 42, .7); color: #000; }
.atlas-btn--primary { background: linear-gradient(180deg, #f1d58a, #d4a94a); border-color: rgba(184, 132, 42, .7); color: #1a1405; } .atlas-btn--ghost { color: var(--k-soft); }
.atlas-rels-list button, .atlas-answer-list button { background: rgba(22, 40, 31, .035); border-color: rgba(22, 40, 31, .12); border-left-color: var(--c); box-shadow: none; }
.atlas-rels-list button:hover, .atlas-answer-list button:hover { background: rgba(224, 178, 60, .15); border-color: rgba(184, 132, 42, .45); border-left-color: var(--c); }
.atlas-rl { color: var(--k-soft); } .atlas-rl i { box-shadow: 0 0 0 1px rgba(22, 40, 31, .25); }
.atlas-ro { color: var(--k-ink); text-shadow: none; } .atlas-ro em { color: #1d5f86; } .atlas-rs { color: var(--k-soft); }
.atlas-answer-head { color: var(--k-gold); } .atlas-answer-text { color: var(--k-ink); text-shadow: none; }
.atlas-answer-list b { color: var(--k-gold); } .atlas-answer-list span { color: var(--k-ink); } .atlas-more-chip { color: var(--k-soft); }
.atlas-results li { color: var(--k-ink); } .atlas-results li b { color: var(--k-gold); } .atlas-results li[aria-selected="true"], .atlas-results li:hover { background: rgba(224, 178, 60, .18); } .atlas-results .is-empty { color: var(--k-soft); }
.atlas-tooltip b { color: var(--k-gold); } .atlas-tooltip span { color: var(--k-ink); } .atlas-tooltip em { color: var(--k-soft); }
.atlas-toast { color: var(--k-ink); }
@media (prefers-reduced-transparency: reduce) { .atlas-seg, .atlas-legend, .atlas-controls button, .atlas-chip, .atlas-suggest button { background: rgba(7, 28, 20, .94); } .atlas-search, .atlas-ask { background: var(--cream-solid); } }

/* ================= home embed: a rounded window inside the cream page ================= */
.atlas--embed { width: auto; margin: 0 0 8px; background: transparent; margin-top: 0; }
.atlas--embed .atlas-dark { border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-3, 0 26px 56px -18px rgba(22, 40, 31, .35)); border: 1px solid rgba(184, 132, 42, .35); }
.atlas--embed .atlas-stage { height: clamp(540px, 74vh, 720px); border-block: 0; }
.atlas--embed .atlas-legend { left: 14px; right: 74px; top: auto; bottom: 14px; width: auto; max-width: none; padding: 9px 10px; }
.atlas--embed .atlas-legend-head { display: none; } .atlas--embed .atlas-legend-items { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } .atlas--embed .atlas-legend-items::-webkit-scrollbar { display: none; }
.atlas--embed .atlas-legend .atlas-chip { width: auto; white-space: nowrap; }
.atlas--embed .atlas-dock { left: 14px; right: 74px; bottom: 82px; width: auto; margin: 0; transform: none; } .atlas--embed .atlas-suggest { display: none; }
.atlas--embed .atlas-status, .atlas--embed .atlas-hint { display: none; }
.atlas--embed .atlas-top { left: 14px; right: 14px; top: 14px; }
.atlas--embed .atlas-controls { right: 14px; bottom: 14px; }
.atlas--embed .atlas-panel { top: 118px; right: 14px; bottom: 14px; }
.atlas--embed .atlas-stage.has-panel .atlas-dock { right: 420px; } .atlas--embed .atlas-stage.has-panel .atlas-legend { display: none; }
.atlas-embed-cta { margin: 16px 0 0; text-align: center; }
.atlas-embed-link { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 999px; border: 1px solid rgba(184, 132, 42, .6); background: linear-gradient(180deg, #f1d58a, #d4a94a); color: #1a1405; font: 800 14px var(--sans, Lato), sans-serif; text-decoration: none; box-shadow: 0 10px 26px rgba(184, 132, 42, .3); transition: transform .2s, filter .2s; }
.atlas-embed-link:hover { transform: translateY(-2px); filter: brightness(1.06); } .atlas-embed-link svg { width: 18px; height: 18px; }
@media (max-width: 960px) { .atlas--embed .atlas-dark { border-radius: 22px; } .atlas--embed .atlas-panel { top: auto; left: 10px; right: 10px; bottom: 10px; height: 54%; } .atlas--embed .atlas-stage.has-panel .atlas-dock { display: none; } }
@media (max-width: 640px) { .atlas--embed .atlas-stage { height: 78svh; min-height: 520px; } .atlas--embed .atlas-dock { left: 10px; right: 62px; bottom: 78px; } .atlas--embed .atlas-legend { left: 10px; right: 62px; bottom: 10px; } .atlas--embed .atlas-top { left: 10px; right: 10px; top: 10px; } .atlas--embed .atlas-controls { right: 10px; bottom: 10px; } .atlas--embed .atlas-dark { border-radius: 18px; } }

/* the Jarvis uses a neutral atlas icon: no sparkle (that is the Farba mark) */
.atlas-spark { animation: none !important; text-shadow: none; color: #7a5608; }
.atlas-spark svg { width: 21px; height: 21px; }
/* cream glass needs more body over a dark scene */
.atlas { --cream-glass: rgba(250, 247, 239, .82); }

/* an element marked hidden stays hidden: author display rules (flex, grid) must not win over the attribute */
.atlas [hidden] { display: none !important; }

/* ================= ux refinements ================= */
.atlas-dock .atlas-hint { position: static; left: auto; bottom: auto; transform: none; display: block !important; text-align: center; margin: 0 0 -2px; font: 600 12.5px var(--a-cap); color: #eef3ea; text-shadow: 0 1px 4px rgba(0, 0, 0, .7); pointer-events: none; animation: atlas-hint 11s 2.5s both; }
.atlas-stage.is-touched .atlas-hint, .atlas-dock.has-answer .atlas-hint, .atlas-stage.has-panel .atlas-hint { display: none !important; }
@keyframes atlas-hint { 0% { opacity: 0; transform: translateY(6px); } 7% { opacity: 1; transform: none; } 84% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }
@media (max-width: 640px) { .atlas-xs-hide { display: none; } .atlas-seg:not(.atlas-seg--small) button { text-align: center; align-items: center; } }
@media (min-width: 641px) { .atlas--embed .atlas-suggest { display: flex; } .atlas--embed .atlas-suggest button:nth-child(n+4) { display: none; } .atlas--embed .atlas-dock.has-answer .atlas-suggest { display: none; } }
@media (prefers-reduced-motion: reduce) { .atlas-dock .atlas-hint { animation: none; opacity: 1; } }

/* ================= editorial: the page's serif and sans, gold and sage on forest green; no neon, no rainbow, no sci-fi ornaments ================= */
.atlas { --a-mono: var(--a-cap); }
.atlas-frame, .atlas-scan { display: none !important; }
.atlas-aurora { opacity: .2; }
.atlas-title em { background: none; -webkit-text-fill-color: initial; color: #e0b23c; }
.atlas-chip i { box-shadow: none; } .atlas-kpis strong { text-shadow: none; } .atlas-eyebrow .dot { animation: none; box-shadow: none; }
.atlas-loading ul { color: #e8d9a8; letter-spacing: .06em; text-transform: none; font: 600 13px/2.1 var(--a-cap); } .atlas-loading li:nth-child(4) { color: #f3d98a; }
.atlas-status { text-transform: none; letter-spacing: .02em; color: #d2dccf; font: 600 12.5px var(--a-cap); }
.atlas-answer-text { font-family: var(--a-serif); font-size: 1.2rem; line-height: 1.45; font-weight: 500; }
.atlas-answer-head, .atlas-kicker, .atlas-why, .atlas-stats span { font-family: var(--a-cap); }
.atlas-answer-list b, .atlas-ref, .atlas-results li b, .atlas-tooltip b { font-family: var(--a-cap); font-weight: 700; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.atlas-seg button b { font-family: var(--a-cap); }
.atlas-spark { color: #7a5608; }

/* ================= simplified interface: one bar on top, one input at the bottom, everything else on demand ================= */
.atlas-aurora, .atlas-frame, .atlas-scan, .atlas-legend, .atlas-status, .atlas-top { display: none !important; }
.atlas-stage::before { display: none; }

.atlas .atlas-bar { position: absolute; z-index: 6; left: 16px; right: 16px; top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; pointer-events: none; }
.atlas .atlas-bar > * { pointer-events: auto; }
.atlas .atlas-modes { display: inline-flex; gap: 2px; padding: 4px; border-radius: 14px; background: var(--mg-dark); border: 1px solid var(--mg-edge); box-shadow: var(--mg-hi), 0 10px 30px rgba(0, 0, 0, .2); -webkit-backdrop-filter: var(--mg-blur); backdrop-filter: var(--mg-blur); }
.atlas .atlas-modes button { padding: 9px 18px; border: 0; border-radius: 10px; background: transparent; color: #d8e3d5; font: 600 14px/1 var(--a-cap); cursor: pointer; transition: background .2s, color .2s; }
.atlas .atlas-modes button:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.atlas .atlas-modes button[aria-pressed="true"] { background: rgba(255, 255, 255, .16); color: #fff; box-shadow: inset 0 1px rgba(255, 255, 255, .2); }
.atlas .atlas-filter-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border-radius: 14px; background: var(--mg-dark); border: 1px solid var(--mg-edge); color: #eef3ea; font: 600 14px/1 var(--a-cap); cursor: pointer; box-shadow: var(--mg-hi), 0 10px 30px rgba(0, 0, 0, .2); -webkit-backdrop-filter: var(--mg-blur); backdrop-filter: var(--mg-blur); }
.atlas .atlas-filter-btn svg { width: 18px; height: 18px; } .atlas .atlas-filter-btn[aria-expanded="true"] { background: rgba(255, 255, 255, .16); }
.atlas .atlas-filter-btn.has-active::after { content: ""; position: absolute; top: 6px; right: 6px; width: 9px; height: 9px; border-radius: 50%; background: #e0b23c; box-shadow: 0 0 0 2px rgba(7, 28, 20, .9); }

.atlas .atlas-filters { position: absolute; z-index: 9; right: 16px; top: 70px; width: min(340px, calc(100% - 32px)); max-height: calc(100% - 200px); overflow: auto; padding: 4px 16px 14px; border-radius: 16px; background: var(--cream-solid); border: 1px solid var(--gold-edge); color: var(--k-ink); box-shadow: 0 25px 70px rgba(0, 0, 0, .38); animation: atlas-rise .25s ease; scrollbar-width: thin; }
.atlas .atlas-filters[hidden] { display: none; }
.atlas-filters section { padding: 14px 0 6px; } .atlas-filters section + section { border-top: 1px solid rgba(22, 40, 31, .1); }
.atlas-filters h3 { margin: 0 0 8px; font: 700 12px/1 var(--a-cap); letter-spacing: .1em; text-transform: uppercase; color: var(--k-soft); }
.atlas-fp-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 8px; border: 0; border-radius: 10px; background: transparent; color: var(--k-ink); font: 600 14.5px/1.2 var(--a-cap); text-align: left; cursor: pointer; transition: opacity .2s, background .2s; }
.atlas-fp-row:hover { background: rgba(22, 40, 31, .06); } .atlas-fp-row[aria-pressed="false"] { opacity: .4; }
.atlas-fp-row i { flex: none; width: 11px; height: 11px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1px rgba(22, 40, 31, .28); }
.atlas-fp-row span { flex: 1; } .atlas-fp-row b { font: 600 13px var(--a-cap); color: var(--k-soft); font-variant-numeric: tabular-nums; }
.atlas-fp-link { margin: 2px 0 6px 8px; padding: 6px 0; border: 0; background: none; color: var(--k-gold); font: 700 13.5px var(--a-cap); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.atlas-fp-rels { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 10px; }
.atlas-fp-pill { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border: 1px solid rgba(22, 40, 31, .2); border-radius: 999px; background: transparent; color: var(--k-ink); font: 600 13.5px/1 var(--a-cap); cursor: pointer; transition: background .2s, color .2s; }
.atlas-fp-pill i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1px rgba(22, 40, 31, .25); }
.atlas-fp-pill:hover { background: rgba(22, 40, 31, .06); } .atlas-fp-pill[aria-pressed="true"] { background: var(--k-green); border-color: var(--k-green); color: #f5f0e6; }
.atlas-fp-seg { display: flex; gap: 8px; padding-bottom: 10px; } .atlas-fp-seg button { flex: 1; padding: 10px; border: 1px solid rgba(22, 40, 31, .2); border-radius: 12px; background: transparent; color: var(--k-ink); font: 600 14px var(--a-cap); cursor: pointer; }
.atlas-fp-seg button[aria-pressed="true"] { background: var(--k-green); border-color: var(--k-green); color: #f5f0e6; }

/* the single input: centred at the bottom; examples only while it is focused */
.atlas .atlas-stage .atlas-dock { position: absolute; z-index: 6; left: 50%; right: auto; bottom: 18px; width: min(660px, calc(100% - 150px)); margin: 0; transform: translateX(-50%); }
.atlas .atlas-stage .atlas-suggest { display: none; } .atlas .atlas-stage .atlas-dock:focus-within:not(.has-answer) .atlas-suggest { display: flex; }
.atlas .atlas-results { position: static; margin: 0 0 8px; max-height: 250px; }
.atlas .atlas-controls { right: 16px; bottom: 18px; gap: 8px; }
.atlas .atlas-panel { top: 76px; right: 16px; bottom: 16px; }
@media (min-width: 961px) { .atlas .atlas-stage.has-panel .atlas-dock { left: calc((100% - 410px) / 2); width: min(620px, calc(100% - 650px)); } .atlas .atlas-stage.has-panel .atlas-controls { right: 424px; } }
@media (max-width: 960px) { .atlas .atlas-stage .atlas-dock { left: 12px; right: 68px; width: auto; transform: none; bottom: 14px; } .atlas .atlas-stage.has-panel .atlas-dock { display: none; } .atlas .atlas-panel { top: auto; left: 10px; right: 10px; bottom: 10px; height: 56%; width: auto; } .atlas--embed .atlas-panel { top: auto; } }
@media (max-width: 640px) {
  .atlas .atlas-bar { left: 10px; right: 10px; top: 10px; gap: 8px; } .atlas .atlas-modes { flex: 1; } .atlas .atlas-modes button { flex: 1; padding: 11px 6px; font-size: 13.5px; }
  .atlas .atlas-filter-btn { padding: 12px 14px; } .atlas .atlas-filter-btn span { display: none; } .atlas .atlas-filters { right: 10px; top: 62px; width: calc(100% - 20px); }
  .atlas .atlas-stage .atlas-dock { left: 10px; right: 62px; bottom: 12px; } .atlas .atlas-controls { right: 10px; bottom: 12px; } .atlas .atlas-controls [data-act="full"] { display: none; }
}
@media (pointer: coarse) { .atlas .atlas-modes button, .atlas .atlas-filter-btn { min-height: 44px; } .atlas-fp-row, .atlas-fp-pill, .atlas-fp-seg button { min-height: 44px; } }
.atlas--embed .atlas-panel { top: 76px; }
@media (prefers-reduced-transparency: reduce) { .atlas .atlas-modes, .atlas .atlas-filter-btn { background: rgba(7, 28, 20, .94); } }

.atlas .atlas-stage .atlas-dock.is-typing .atlas-suggest { display: none !important; }

.atlas-note { padding-bottom: 52px; }

/* ---------------------------------------------------------------- motion layer (atlas-motion.js · GSAP)
   Everything below is inert until the script adds .fx-pre / .fx-motion, and never loads under reduced motion. */
.atlas.fx-pre [data-fx] { opacity: 0; }
.atlas .fx-line { display: block; overflow: hidden; padding: 0 .08em .14em; margin: 0 -.08em -.14em; }
.atlas .fx-line-in { display: block; will-change: transform; }
.atlas .fx-word { display: inline-block; will-change: transform, opacity, filter; }

/* mode switch: one pill that glides (the pressed button itself goes transparent) */
.atlas.fx-motion .atlas-modes { position: relative; }
.atlas .atlas-modes-ind { position: absolute; left: 0; top: 4px; bottom: 4px; width: 0; border-radius: 10px; background: rgba(255, 255, 255, .16); box-shadow: inset 0 1px rgba(255, 255, 255, .22), 0 4px 14px rgba(0, 0, 0, .18); pointer-events: none; }
.atlas.fx-motion .atlas-modes button { position: relative; z-index: 1; }
.atlas.fx-motion .atlas-modes button[aria-pressed="true"] { background: transparent; box-shadow: none; }

/* GSAP owns transforms on these: CSS transitions on transform would fight it frame by frame */
.atlas.fx-motion .atlas-panel { animation: none; }
.atlas.fx-motion .atlas-card { transition: box-shadow .25s, border-color .25s; transform-style: preserve-3d; }
.atlas.fx-motion .atlas-card:hover { transform: none; }
.atlas.fx-motion .atlas-controls button, .atlas.fx-motion .atlas-filter-btn { transition: color .2s, background .2s, border-color .2s, box-shadow .2s; }
.atlas.fx-motion .atlas-tl-track { cursor: grab; } .atlas.fx-motion .atlas-tl-track:active { cursor: grabbing; }

/* a specular light that follows the pointer across the glass */
.atlas.fx-motion .atlas-modes::before, .atlas.fx-motion .atlas-filter-btn::before, .atlas.fx-motion .atlas-controls button::before, .atlas.fx-motion .atlas-suggest button::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(130px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .24), rgba(255, 255, 255, 0) 62%);
}
.atlas.fx-motion .atlas-controls button, .atlas.fx-motion .atlas-suggest button { position: relative; }
.atlas.fx-motion .atlas-modes:hover::before, .atlas.fx-motion .atlas-filter-btn:hover::before, .atlas.fx-motion .atlas-controls button:hover::before, .atlas.fx-motion .atlas-suggest button:hover::before { opacity: 1; }
@media (pointer: coarse) { .atlas.fx-motion .atlas-modes::before, .atlas.fx-motion .atlas-filter-btn::before, .atlas.fx-motion .atlas-controls button::before, .atlas.fx-motion .atlas-suggest button::before { display: none; } }
@media (prefers-reduced-motion: reduce) { .atlas.fx-pre [data-fx] { opacity: 1; } }

/* page breadcrumb: the dark band used to overlap its bottom edge and slice the text */
.atlas:not(.atlas--embed) { margin-top: 0; }
.atlas-route nav.atlas-crumbs { align-items: center; gap: 10px; padding: 20px 18px 18px; font-size: 13px; letter-spacing: .01em; }
.atlas-route nav.atlas-crumbs span[aria-hidden="true"] { opacity: .5; }
.atlas-route nav.atlas-crumbs [aria-current="page"] { color: #1c3326; font-weight: 700; }
@media (max-width: 650px) { .atlas-route nav.atlas-crumbs { padding: 14px 16px 14px; } }
