/* DELTA-SIERRA MARS R91 — auditable shell compatibility reconstruction — 2026-09-14 */

/* SOURCE A: historical core-final-v10 (rules only, retained as predecessor) */

/* DELTA-SIERRA MARS — FINAL CORE v10 — accessibility, glossary/search and Academy mobile zoom */
.ds-sr-only{position:fixed!important;left:0!important;top:0!important;width:1px!important;height:1px!important;padding:0!important;margin:0!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important}
.ds-core-nav{max-width:1180px;margin:1.5rem auto 2rem;padding:.8rem 1rem;display:flex;gap:.55rem;flex-wrap:wrap;align-items:center;justify-content:center;border:1px solid rgba(116,139,154,.45);border-radius:14px;background:rgba(8,20,30,.96);box-shadow:0 10px 30px rgba(0,0,0,.18)}
.ds-core-nav a{display:inline-flex;align-items:center;min-height:42px;padding:.55rem .78rem;border:1px solid #536d7f;border-radius:999px;background:#102331;color:#fff!important;-webkit-text-fill-color:#fff!important;text-decoration:none;font-weight:760}
.ds-core-nav a:hover,.ds-core-nav a:focus-visible{background:#5b291b;outline:3px solid #ffe89a;outline-offset:2px}
.ds-core-nav a[aria-current="page"]{background:#f2c261;color:#17232d!important;-webkit-text-fill-color:#17232d!important}
.ds-core-tooltip{position:fixed;z-index:2147483000;max-width:min(430px,calc(100vw - 24px));padding:.75rem .85rem;border:1px solid #d2a756;border-radius:10px;background:#071018;color:#fff;box-shadow:0 14px 45px rgba(0,0,0,.38);font-size:.94rem;line-height:1.45;pointer-events:none}
.ds-core-tooltip[hidden]{display:none!important}
.ds-core-info-trigger{cursor:help;text-decoration-thickness:.08em;text-underline-offset:.15em}
.ds-info-touch-button{display:inline-flex;align-items:center;justify-content:center;width:1.55rem;height:1.55rem;margin-left:.2rem;padding:0;border:1px solid #8a6a2c;border-radius:50%;background:#fff4dc;color:#16232d;font:800 .8rem/1 system-ui,sans-serif;vertical-align:middle;cursor:pointer}
.ds-info-touch-button:hover,.ds-info-touch-button:focus-visible{outline:3px solid #ffe89a;outline-offset:2px;background:#f2c261}
.ds-academy-zoom{display:inline-flex;align-items:center;gap:.35rem;margin:.55rem 0 0;padding:.55rem .72rem;border:1px solid #5b7180;border-radius:9px;background:#102331;color:#fff;font-weight:760;cursor:pointer}
.ds-academy-zoom:hover,.ds-academy-zoom:focus-visible{outline:3px solid #ffe89a;outline-offset:2px;background:#63331f}
.ds-academy-dialog{width:min(98vw,1500px);height:min(96vh,1050px);padding:0;border:1px solid #60798b;border-radius:14px;background:#071018;color:#fff;box-shadow:0 25px 90px rgba(0,0,0,.7)}
.ds-academy-dialog::backdrop{background:rgba(0,0,0,.78)}
.ds-academy-dialog__bar{position:sticky;top:0;z-index:3;display:flex;gap:.45rem;align-items:center;flex-wrap:wrap;padding:.65rem .75rem;background:#102331;border-bottom:1px solid #536d7f}
.ds-academy-dialog__bar button{min-width:44px;min-height:40px;padding:.45rem .7rem;border:1px solid #718999;border-radius:8px;background:#fff;color:#17232d;font-weight:800;cursor:pointer}
.ds-academy-dialog__bar button:focus-visible{outline:3px solid #ffe89a;outline-offset:2px}
.ds-academy-dialog__title{margin-right:auto;font-weight:800}
.ds-academy-dialog__viewport{height:calc(100% - 58px);overflow:auto;overscroll-behavior:contain;background:#fff;padding:1rem}
.ds-academy-dialog__viewport img{display:block;max-width:none;height:auto;margin:0 auto;transform-origin:top left}
.ds-academy-dialog__caption{max-width:900px;margin:.9rem auto 0;padding:.75rem 1rem;border-radius:8px;background:#f7f4ec;color:#1b2b36;line-height:1.5}
.ds-glossary-alpha{display:flex;gap:.35rem;flex-wrap:wrap;margin:1rem 0 1.5rem}
.ds-glossary-alpha a{display:inline-flex;min-width:2rem;justify-content:center;padding:.35rem .5rem;border:1px solid #8aa0ae;border-radius:7px;text-decoration:none}
.ds-glossary-list{display:grid;gap:.8rem}
.ds-glossary-entry{padding:.85rem 1rem;border:1px solid rgba(81,105,121,.35);border-radius:10px;background:rgba(255,250,242,.78)}
.ds-glossary-entry dt{font-weight:850;font-size:1.08rem;color:#5b291b}
.ds-glossary-entry dd{margin:.3rem 0 0}
.ds-glossary-entry dd p{margin:.3rem 0}
.ds-glossary-source{font-size:.88rem}
.ds-academy-grid,.ds-tools-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:1rem;margin:1.2rem 0}
.ds-academy-card,.ds-tool-card{padding:1rem;border:1px solid rgba(81,105,121,.4);border-radius:12px;background:#fffaf2;color:#17232d}
.ds-academy-card h2,.ds-tool-card h2{font-size:1.05rem;margin:.2rem 0 .55rem}
.ds-module-num{display:inline-flex;margin:0;padding:.25rem .45rem;border-radius:6px;background:#102331;color:#fff;font-weight:850;letter-spacing:.08em}
.ds-search-form{margin:1rem 0 1.25rem;padding:1rem;border:1px solid #718999;border-radius:12px;background:#fffaf2;color:#17232d}
.ds-search-form label{display:block;font-weight:800;margin-bottom:.45rem}
.ds-search-row{display:flex;gap:.5rem}
.ds-search-row input{flex:1;min-width:0;min-height:46px;padding:.65rem .8rem;border:1px solid #718999;border-radius:8px;font:inherit}
.ds-search-row button{min-height:46px;padding:.65rem .95rem;border:0;border-radius:8px;background:#8a3f26;color:#fff;font-weight:800;cursor:pointer}
.ds-search-row input:focus-visible,.ds-search-row button:focus-visible{outline:3px solid #f2c261;outline-offset:2px}
.ds-search-results{display:grid;gap:.8rem}
.ds-search-result{padding:.9rem 1rem;border:1px solid rgba(81,105,121,.35);border-radius:10px;background:#fffaf2;color:#17232d}
.ds-search-result h2{font-size:1.06rem;margin:0 0 .35rem}
.ds-search-result p{margin:.25rem 0}
.ds-search-status{font-weight:700}
.ds-tools-grid .ds-tool-card a,.ds-academy-grid .ds-academy-card a{color:#5b291b}
.ds-calc{padding:1rem;border:1px solid #718999;border-radius:12px;background:#fffaf2;color:#17232d}
.ds-calc-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:.8rem}
.ds-calc-grid label{font-weight:700}
.ds-calc-grid label span{display:flex;gap:.35rem;align-items:center;margin-top:.35rem}
.ds-calc input{width:100%;min-height:42px;padding:.45rem .55rem;border:1px solid #718999;border-radius:7px}
.ds-calc button{min-height:42px;margin:.65rem .4rem 0 0;padding:.55rem .8rem;border:0;border-radius:8px;background:#8a3f26;color:#fff;font-weight:800}
.ds-result{margin-top:.8rem;padding:.75rem;border-left:4px solid #8a3f26;background:#fff}
.ds-formula{margin:.7rem 0;padding:.65rem;border-radius:8px;background:#102331;color:#fff;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;overflow-wrap:anywhere}
img,svg{max-width:100%}
figure.academy-figure img{max-width:100%;height:auto}
@media(max-width:600px){
 .ds-core-nav{margin:1rem .55rem 1.5rem;padding:.7rem .6rem;gap:.4rem}
 .ds-core-nav a{font-size:.87rem;min-height:40px;padding:.5rem .62rem}
 .ds-search-row{flex-direction:column}
 .ds-search-row button{width:100%}
 .ds-academy-grid,.ds-tools-grid{grid-template-columns:1fr}
 .ds-academy-dialog{width:100vw;height:100dvh;max-width:none;max-height:none;border-radius:0;border:0}
 .ds-academy-dialog__viewport{height:calc(100dvh - 64px);padding:.6rem}
 .ds-academy-dialog__caption{font-size:.9rem}
 .ds-academy-zoom{min-height:44px}
}
/* Runtime class aliases — JS final v1 */
.ds-academy-zoom-button{display:inline-flex;align-items:center;gap:.35rem;margin:.55rem 0 0;padding:.55rem .72rem;border:1px solid #5b7180;border-radius:9px;background:#102331;color:#fff;font-weight:760;cursor:pointer;min-height:44px}
.ds-academy-zoom-button:hover,.ds-academy-zoom-button:focus-visible{outline:3px solid #ffe89a;outline-offset:2px;background:#63331f}
.ds-academy-dialog-bar{position:sticky;top:0;z-index:3;display:flex;gap:.45rem;align-items:center;flex-wrap:wrap;padding:.65rem .75rem;background:#102331;border-bottom:1px solid #536d7f}
.ds-academy-dialog-bar button{min-width:44px;min-height:40px;padding:.45rem .7rem;border:1px solid #718999;border-radius:8px;background:#fff;color:#17232d;font-weight:800;cursor:pointer}
.ds-academy-dialog-bar button:focus-visible{outline:3px solid #ffe89a;outline-offset:2px}
.ds-academy-zoom-viewport{height:calc(100% - 58px);overflow:auto;overscroll-behavior:contain;background:#fff;padding:1rem}
.ds-academy-zoom-viewport img{display:block;max-width:none;height:auto;margin:0 auto;transform-origin:top left}
.ds-academy-dialog-caption{max-width:900px;margin:.9rem auto 0;padding:.75rem 1rem;border-radius:8px;background:#f7f4ec;color:#1b2b36;line-height:1.5}
@media(max-width:600px){.ds-academy-zoom-viewport{height:calc(100dvh - 64px);padding:.6rem}.ds-academy-dialog-caption{font-size:.9rem}}


/* === FINAL CORE v2 hotfix contract — 2026-08-17b ===
   Single INFO engine + Mars portal readability + hero CTA hardening. */

/* One visual language for technical terms; legacy tooltip engines are disabled by CORE v2. */
.ds-core-info-trigger,[data-ds-tip]{
  text-decoration-line:underline!important;
  text-decoration-style:dotted!important;
  text-decoration-thickness:.09em!important;
  text-underline-offset:.18em!important;
  text-decoration-color:rgba(166,61,46,.72)!important;
}
a[data-ds-tip]{text-decoration-style:dotted!important}

/* Sidebar instant-search: result cards must remain readable on the dark sidebar. */
body.mars-site .mars-system-sidebar .mars-search-results,
body.mars-page .mars-system-sidebar .mars-search-results{
  background:#fffaf2!important;
  color:#17232d!important;
  -webkit-text-fill-color:#17232d!important;
  border:1px solid #c5a46b!important;
  border-radius:10px!important;
  box-shadow:0 12px 28px rgba(0,0,0,.28)!important;
  opacity:1!important;
}
body.mars-site .mars-system-sidebar .mars-search-results > *,
body.mars-page .mars-system-sidebar .mars-search-results > *,
body.mars-site .mars-system-sidebar .mars-search-results a,
body.mars-page .mars-system-sidebar .mars-search-results a,
body.mars-site .mars-system-sidebar .mars-search-results [role="option"],
body.mars-page .mars-system-sidebar .mars-search-results [role="option"]{
  background:#fffaf2!important;
  color:#17232d!important;
  -webkit-text-fill-color:#17232d!important;
  opacity:1!important;
}
body.mars-site .mars-system-sidebar .mars-search-results a *,
body.mars-page .mars-system-sidebar .mars-search-results a *,
body.mars-site .mars-system-sidebar .mars-search-results [role="option"] *,
body.mars-page .mars-system-sidebar .mars-search-results [role="option"] *{
  color:#17232d!important;
  -webkit-text-fill-color:#17232d!important;
  opacity:1!important;
}
body.mars-site .mars-system-sidebar .mars-search-results a:hover,
body.mars-site .mars-system-sidebar .mars-search-results a:focus-visible,
body.mars-page .mars-system-sidebar .mars-search-results a:hover,
body.mars-page .mars-system-sidebar .mars-search-results a:focus-visible,
body.mars-site .mars-system-sidebar .mars-search-results [role="option"]:hover,
body.mars-site .mars-system-sidebar .mars-search-results [role="option"]:focus-visible,
body.mars-page .mars-system-sidebar .mars-search-results [role="option"]:hover,
body.mars-page .mars-system-sidebar .mars-search-results [role="option"]:focus-visible{
  background:#ffe7a8!important;
  color:#17232d!important;
  -webkit-text-fill-color:#17232d!important;
  outline:2px solid #8a3f26!important;
  outline-offset:-2px!important;
}

/* Hero CTAs: protect against legacy visited/font rules producing white-on-white buttons. */
body.mars-site .mars-hero__actions a,
body.mars-site .mars-hero__actions a:link,
body.mars-site .mars-hero__actions a:visited,
body.mars-page .mars-hero__actions a,
body.mars-page .mars-hero__actions a:link,
body.mars-page .mars-hero__actions a:visited{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:54px!important;
  padding:.78rem 1.1rem!important;
  font-size:1rem!important;
  line-height:1.2!important;
  font-weight:850!important;
  letter-spacing:normal!important;
  text-indent:0!important;
  white-space:normal!important;
  visibility:visible!important;
  opacity:1!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  background:#a63d2e!important;
  border:2px solid #d66b50!important;
  text-decoration:none!important;
  isolation:isolate!important;
}
body.mars-site .mars-hero__actions a:nth-child(2),
body.mars-site .mars-hero__actions a:nth-child(2):link,
body.mars-site .mars-hero__actions a:nth-child(2):visited,
body.mars-page .mars-hero__actions a:nth-child(2),
body.mars-page .mars-hero__actions a:nth-child(2):link,
body.mars-page .mars-hero__actions a:nth-child(2):visited{
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  background:#17324d!important;
  border-color:#7ca0bb!important;
}
body.mars-site .mars-hero__actions a:hover,
body.mars-site .mars-hero__actions a:focus-visible,
body.mars-page .mars-hero__actions a:hover,
body.mars-page .mars-hero__actions a:focus-visible{
  color:#101820!important;
  -webkit-text-fill-color:#101820!important;
  background:#f5c86b!important;
  border-color:#fff1b4!important;
  outline:3px solid #6d321e!important;
  outline-offset:2px!important;
}

/* INFO touch button stays compact and readable. */
.ds-info-touch-button{flex:0 0 auto!important;color:#17232d!important;-webkit-text-fill-color:#17232d!important}


/* CORE v3 — contrast guard and premium diagram rendering */
body.mars-site .mars-hero__actions a,
body.mars-page .mars-hero__actions a{border-radius:18px!important;box-shadow:0 10px 24px rgba(0,0,0,.28)!important;text-shadow:0 1px 1px rgba(0,0,0,.35)!important;}
body.mars-site a.ds-contrast-repaired,body.mars-page a.ds-contrast-repaired,body.mars-site button.ds-contrast-repaired,body.mars-page button.ds-contrast-repaired,body.mars-site .mars-button.ds-contrast-repaired,body.mars-page .mars-button.ds-contrast-repaired{color:#fff!important;-webkit-text-fill-color:#fff!important;background:#17324d!important;border:2px solid #f5c86b!important;text-decoration:none!important;font-weight:850!important;text-shadow:0 1px 1px rgba(0,0,0,.35)!important;box-shadow:0 10px 24px rgba(0,0,0,.28)!important;}
body.mars-site .mars-hero__actions a.ds-contrast-repaired:first-child,body.mars-page .mars-hero__actions a.ds-contrast-repaired:first-child{background:#a63d2e!important;border-color:#f5c86b!important;}
body.mars-site .mars-hero__actions a.ds-contrast-repaired:hover,body.mars-site .mars-hero__actions a.ds-contrast-repaired:focus-visible,body.mars-page .mars-hero__actions a.ds-contrast-repaired:hover,body.mars-page .mars-hero__actions a.ds-contrast-repaired:focus-visible{color:#101820!important;-webkit-text-fill-color:#101820!important;background:#f5c86b!important;border-color:#fff3c6!important;outline:3px solid #6d321e!important;outline-offset:2px!important;}
body.mars-site img.ds-premium-diagram,body.mars-page img.ds-premium-diagram,body.mars-site .academy-figure img[src*="/premium-diagrams-v2/"],body.mars-page .academy-figure img[src*="/premium-diagrams-v2/"],body.mars-site figure img[src*="/premium-diagrams-v2/"],body.mars-page figure img[src*="/premium-diagrams-v2/"]{display:block!important;width:100%!important;height:auto!important;margin:0 auto!important;border-radius:18px!important;background:#07111a!important;box-shadow:0 18px 40px rgba(0,0,0,.28)!important;border:1px solid rgba(255,255,255,.10)!important;}


/* CORE v4 — premium diagram zoom/lightbox */
body.ds-lightbox-open{overflow:hidden;}
.ds-zoomable-figure{position:relative;}
.ds-zoomable-figure img{cursor:zoom-in;}
.ds-figure-zoom-button{display:inline-flex;align-items:center;gap:.45rem;margin-top:.65rem;padding:.55rem .8rem;border-radius:999px;border:1px solid #183551;background:#fff;color:#17324d;font-weight:800;line-height:1.2;text-decoration:none;box-shadow:0 6px 18px rgba(0,0,0,.08);cursor:pointer;}
.ds-figure-zoom-button:hover,.ds-figure-zoom-button:focus-visible{background:#17324d;color:#fff;border-color:#f5c86b;outline:3px solid rgba(245,200,107,.45);outline-offset:2px;}
.ds-lightbox{position:fixed;inset:0;z-index:9999;display:none;align-items:center;justify-content:center;background:rgba(5,10,16,.92);padding:2rem;}
.ds-lightbox.is-open{display:flex;}
.ds-lightbox__panel{position:relative;max-width:min(96vw,1200px);max-height:92vh;width:auto;background:#09131d;border:1px solid rgba(255,255,255,.14);border-radius:18px;box-shadow:0 20px 80px rgba(0,0,0,.55);padding:1rem;}
.ds-lightbox__close{position:absolute;top:.75rem;right:.75rem;z-index:2;border:1px solid rgba(255,255,255,.2);background:#10263a;color:#fff;border-radius:999px;padding:.5rem .8rem;font-weight:800;cursor:pointer;}
.ds-lightbox__close:hover,.ds-lightbox__close:focus-visible{background:#f5c86b;color:#101820;border-color:#fff3c6;outline:3px solid rgba(245,200,107,.45);outline-offset:2px;}
.ds-lightbox__imagewrap{max-height:calc(92vh - 7rem);overflow:auto;border-radius:12px;}
.ds-lightbox__image{display:block;max-width:100%;height:auto;margin:0 auto;border-radius:10px;background:#02070b;}
.ds-lightbox__caption{margin:.85rem .25rem 0;color:#eef4fb;font-size:.98rem;line-height:1.45;}
@media (max-width:700px){.ds-lightbox{padding:.75rem;}.ds-lightbox__panel{width:100%;max-width:100%;max-height:95vh;padding:.7rem;}.ds-lightbox__imagewrap{max-height:calc(95vh - 6rem);}.ds-figure-zoom-button{font-size:.95rem;padding:.6rem .85rem;}}


/* CORE v5 — centralized Mars contrast contract (WCAG AA floor) */
:root{
  --ds-mars-ink:#10233a;
  --ds-mars-link:#174a78;
  --ds-mars-link-visited:#5b2f6f;
  --ds-mars-surface:#ffffff;
  --ds-mars-cta-bg:#17324d;
  --ds-mars-cta-bg-primary:#a63d2e;
  --ds-mars-cta-fg:#ffffff;
  --ds-mars-accent:#f5c86b;
  --ds-mars-focus:#f5c86b;
  --ds-mars-disabled-bg:#d9e0e7;
  --ds-mars-disabled-fg:#4b5968;
}
body.mars-site .mars-hero__actions a,
body.mars-page .mars-hero__actions a,
body.mars-site .mars-button,
body.mars-page .mars-button,
body.mars-site a[role="button"],
body.mars-page a[role="button"]{
  color:var(--ds-mars-cta-fg)!important;
  -webkit-text-fill-color:var(--ds-mars-cta-fg)!important;
  background:var(--ds-mars-cta-bg)!important;
  border:2px solid var(--ds-mars-accent)!important;
  text-decoration:none!important;
  opacity:1!important;
}
body.mars-site .mars-hero__actions a:first-child,
body.mars-page .mars-hero__actions a:first-child{background:var(--ds-mars-cta-bg-primary)!important;}
body.mars-site .mars-hero__actions a:visited,
body.mars-page .mars-hero__actions a:visited,
body.mars-site .mars-button:visited,
body.mars-page .mars-button:visited,
body.mars-site a[role="button"]:visited,
body.mars-page a[role="button"]:visited{color:var(--ds-mars-cta-fg)!important;-webkit-text-fill-color:var(--ds-mars-cta-fg)!important;}
body.mars-site .mars-hero__actions a:hover,
body.mars-page .mars-hero__actions a:hover,
body.mars-site .mars-button:hover,
body.mars-page .mars-button:hover,
body.mars-site a[role="button"]:hover,
body.mars-page a[role="button"]:hover,
body.mars-site .mars-hero__actions a:active,
body.mars-page .mars-hero__actions a:active,
body.mars-site .mars-button:active,
body.mars-page .mars-button:active{
  color:#101820!important;-webkit-text-fill-color:#101820!important;background:var(--ds-mars-accent)!important;border-color:#fff3c6!important;
}
body.mars-site .mars-hero__actions a:focus-visible,
body.mars-page .mars-hero__actions a:focus-visible,
body.mars-site .mars-button:focus-visible,
body.mars-page .mars-button:focus-visible,
body.mars-site a[role="button"]:focus-visible,
body.mars-page a[role="button"]:focus-visible,
body.mars-site .ds-search-result:focus-visible,
body.mars-page .ds-search-result:focus-visible{
  outline:4px solid var(--ds-mars-focus)!important;outline-offset:3px!important;
}
body.mars-site [aria-current="page"],body.mars-page [aria-current="page"]{text-decoration-thickness:2px;text-underline-offset:.18em;}
body.mars-site button:disabled,body.mars-page button:disabled,
body.mars-site [aria-disabled="true"],body.mars-page [aria-disabled="true"]{
  color:var(--ds-mars-disabled-fg)!important;-webkit-text-fill-color:var(--ds-mars-disabled-fg)!important;background:var(--ds-mars-disabled-bg)!important;border-color:#aeb8c2!important;cursor:not-allowed!important;opacity:1!important;
}
body.mars-site .ds-search-result,body.mars-page .ds-search-result{color:var(--ds-mars-ink)!important;background:var(--ds-mars-surface)!important;}
body.mars-site .ds-search-result:visited,body.mars-page .ds-search-result:visited{color:#3f2857!important;}
body.mars-site .ds-search-result:hover,body.mars-page .ds-search-result:hover{color:#101820!important;background:#fff4cf!important;}

/* CORE v5 — lightbox focus restoration and mobile-safe dialog */
.ds-lightbox__panel:focus{outline:none;}
.ds-lightbox__close{min-width:44px;min-height:44px;font-size:1.2rem;line-height:1;}
.ds-lightbox__image{cursor:zoom-out;}
@media (max-width:390px){
  .ds-lightbox{padding:.4rem;}
  .ds-lightbox__panel{border-radius:12px;padding:.55rem;max-height:97vh;}
  .ds-lightbox__imagewrap{max-height:calc(97vh - 6.2rem);}
  .ds-lightbox__caption{font-size:.92rem;}
  .ds-figure-zoom-button{width:100%;justify-content:center;min-height:44px;}
}

/* CORE v5.1 — search result layout must remain readable on narrow screens */
body.mars-site .ds-search-result,body.mars-page .ds-search-result{
  display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:.25rem!important;width:100%!important;max-width:100%!important;box-sizing:border-box!important;overflow-wrap:anywhere!important;word-break:normal!important;
}
body.mars-site .ds-search-result strong,body.mars-page .ds-search-result strong,
body.mars-site .ds-search-result span,body.mars-page .ds-search-result span{display:block!important;min-width:0!important;max-width:100%!important;overflow-wrap:anywhere!important;}


/* CORE v6.2 — book-flow editorial contract — 2026-08-17 */
/* Replaces repetitive card-stack reading with continuous book-like prose and prevents
   long chapters from collapsing into a narrow left column. Applies globally to Mars/Academy. */
body.mars-site .mars-book-flow-section,body.mars-page .mars-book-flow-section{
  width:min(100%,90ch)!important;max-width:90ch!important;margin:0 auto!important;
  padding:1.45rem 0 1.65rem!important;background:transparent!important;border:0!important;
  border-radius:0!important;box-shadow:none!important;float:none!important;clear:both!important;
}
body.mars-site .mars-book-flow-section + .mars-book-flow-section,
body.mars-page .mars-book-flow-section + .mars-book-flow-section{
  border-top:0!important;padding-top:.95rem!important;
}
body.mars-site .mars-book-flow-section h2,body.mars-site .mars-book-flow-section h3,
body.mars-page .mars-book-flow-section h2,body.mars-page .mars-book-flow-section h3{
  max-width:none!important;margin:.15rem 0 .8rem!important;color:#173254!important;
  line-height:1.18!important;letter-spacing:-.015em!important;
}
body.mars-site .mars-book-flow-section h2,body.mars-page .mars-book-flow-section h2{font-size:clamp(1.55rem,2.2vw,2.15rem)!important;}
body.mars-site .mars-book-flow-section h3,body.mars-page .mars-book-flow-section h3{font-size:clamp(1.25rem,1.7vw,1.62rem)!important;}
body.mars-site .mars-book-flow-section p,body.mars-page .mars-book-flow-section p{
  width:auto!important;max-width:none!important;margin:.72rem 0!important;font-size:1.04rem!important;line-height:1.78!important;
}
/* Shared long-form page families: centered book measure instead of left-half-column text. */
body.mars-site :is(.mars-longread-book,.mars-book-deepening,.mars-monograph-depth,.mars-deep-dossier,.mars-research-essay,.mars-closing-depth,.mars-depth,.mars-long-chapter),
body.mars-page :is(.mars-longread-book,.mars-book-deepening,.mars-monograph-depth,.mars-deep-dossier,.mars-research-essay,.mars-closing-depth,.mars-depth,.mars-long-chapter){
  width:min(100%,90ch)!important;max-width:90ch!important;margin-left:auto!important;margin-right:auto!important;
  float:none!important;clear:both!important;background:transparent!important;border:0!important;border-radius:0!important;
  box-shadow:none!important;padding:1.45rem 0!important;
}
body.mars-site :is(.mars-longread-book,.mars-book-deepening,.mars-monograph-depth,.mars-deep-dossier,.mars-research-essay,.mars-closing-depth,.mars-depth,.mars-long-chapter) p,
body.mars-page :is(.mars-longread-book,.mars-book-deepening,.mars-monograph-depth,.mars-deep-dossier,.mars-research-essay,.mars-closing-depth,.mars-depth,.mars-long-chapter) p{
  max-width:none!important;width:auto!important;line-height:1.78!important;
}
/* Technical figures and genuinely useful callouts remain visually distinct but stay centered. */
body.mars-site :is(figure,.mars-calc,.mars-calc-note,.mars-bible-explainer,.mars-bible-caution,.mars-source-box,.mars-arcadia-box,.mars-system-flow,.mars-io-grid,.mars-system-relations),
body.mars-page :is(figure,.mars-calc,.mars-calc-note,.mars-bible-explainer,.mars-bible-caution,.mars-source-box,.mars-arcadia-box,.mars-system-flow,.mars-io-grid,.mars-system-relations){
  max-width:min(96ch,100%)!important;margin-left:auto!important;margin-right:auto!important;float:none!important;clear:both!important;
}
/* Legacy system-card classes, where not yet structurally converted, are flattened globally. */
body.mars-site :is(.mars-system-section,.mars-system-intro),
body.mars-page :is(.mars-system-section,.mars-system-intro){
  width:min(100%,90ch)!important;max-width:90ch!important;margin:0 auto!important;
  padding:1.35rem 0!important;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;
}
body.mars-site :is(.mars-system-section,.mars-system-intro) > p:first-of-type > strong:first-child,
body.mars-page :is(.mars-system-section,.mars-system-intro) > p:first-of-type > strong:first-child{
  display:block!important;margin:0 0 .65rem!important;color:#173254!important;font-size:clamp(1.22rem,1.6vw,1.55rem)!important;line-height:1.2!important;
}
@media (max-width:900px){
  body.mars-site .mars-book-flow-section,body.mars-page .mars-book-flow-section,
  body.mars-site :is(.mars-longread-book,.mars-book-deepening,.mars-monograph-depth,.mars-deep-dossier,.mars-research-essay,.mars-closing-depth,.mars-depth,.mars-long-chapter),
  body.mars-page :is(.mars-longread-book,.mars-book-deepening,.mars-monograph-depth,.mars-deep-dossier,.mars-research-essay,.mars-closing-depth,.mars-depth,.mars-long-chapter),
  body.mars-site :is(.mars-system-section,.mars-system-intro),body.mars-page :is(.mars-system-section,.mars-system-intro){
    width:100%!important;max-width:100%!important;padding-left:0!important;padding-right:0!important;
  }
}


/* CORE v6.3 — unified buttons, utility gutters, Academy shell and single zoom contract — 2026-08-17 */
:root{
  --ds-btn-navy:#17324d;--ds-btn-navy-hover:#0f2538;--ds-btn-cream:#fffaf1;--ds-btn-gold:#f5c86b;
  --ds-btn-green:#176b45;--ds-btn-green-hover:#0e5133;--ds-btn-rust:#a63d2e;--ds-page-gutter:clamp(1.25rem,2.6vw,3rem);
}
.ds-btn{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:.45rem!important;min-height:44px!important;padding:.72rem 1rem!important;border-radius:10px!important;border:2px solid transparent!important;font-weight:850!important;line-height:1.2!important;text-decoration:none!important;box-sizing:border-box!important;cursor:pointer!important;transition:background .16s ease,color .16s ease,border-color .16s ease,transform .16s ease!important;}
.ds-btn--secondary{background:var(--ds-btn-navy)!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border-color:#31536f!important;}
.ds-btn--secondary:visited{color:#fff!important;-webkit-text-fill-color:#fff!important;}.ds-btn--secondary:hover,.ds-btn--secondary:focus-visible{background:var(--ds-btn-navy-hover)!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border-color:var(--ds-btn-gold)!important;}
.ds-btn--current{background:var(--ds-btn-gold)!important;color:#101820!important;-webkit-text-fill-color:#101820!important;border-color:#7d5a16!important;}
.ds-btn--success{background:var(--ds-btn-green)!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border-color:#0b4b2f!important;box-shadow:0 8px 22px rgba(13,81,51,.18)!important;}.ds-btn--success:visited{color:#fff!important;-webkit-text-fill-color:#fff!important;}.ds-btn--success:hover,.ds-btn--success:focus-visible{background:var(--ds-btn-green-hover)!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border-color:var(--ds-btn-gold)!important;transform:translateY(-1px)!important;}
.ds-btn--ghost{background:#fff!important;color:#17324d!important;-webkit-text-fill-color:#17324d!important;border-color:#8ca0b2!important;}.ds-btn--ghost:visited{color:#17324d!important;-webkit-text-fill-color:#17324d!important;}.ds-btn--ghost:hover,.ds-btn--ghost:focus-visible{background:#fff4cf!important;color:#101820!important;-webkit-text-fill-color:#101820!important;border-color:#b28b2b!important;}
.ds-btn:focus-visible{outline:4px solid var(--ds-btn-gold)!important;outline-offset:3px!important;}

/* Utility pages need a deliberate visual gutter from the persistent sidebar. */
body.ds-utility-page .mars-portal-main{min-width:0!important;box-sizing:border-box!important;padding:clamp(1.35rem,2.4vw,2.75rem) var(--ds-page-gutter) 3rem!important;}
body.ds-utility-page .mars-portal-main>h1,body.ds-utility-page .mars-portal-main>.lead,body.ds-utility-page .mars-portal-main>.eyebrow{max-width:86ch!important;margin-left:auto!important;margin-right:auto!important;}
body.ds-glossary-page .ds-glossary-alpha,body.ds-glossary-page .ds-glossary-section{max-width:96ch!important;margin-left:auto!important;margin-right:auto!important;}
body.ds-academy-hub-page .ds-academy-grid,body.ds-academy-hub-page .mars-portal-main>section{max-width:1100px!important;margin-left:auto!important;margin-right:auto!important;}

/* Methodology becomes a real reference chapter rather than a sparse utility sheet. */
body.ds-methodology-page .mars-portal-main{background:linear-gradient(180deg,#f5f7f9 0,#fff 36rem)!important;}
.ds-method-lead{font-size:clamp(1.08rem,1.4vw,1.24rem)!important;line-height:1.72!important;color:#33465b!important;}
.ds-method-chapter{max-width:86ch!important;margin:0 auto!important;padding:1.3rem 0 1.65rem!important;background:transparent!important;border:0!important;box-shadow:none!important;}
.ds-method-chapter+.ds-method-chapter{border-top:1px solid rgba(23,50,77,.12)!important;}
.ds-method-chapter h2{margin:.2rem 0 .8rem!important;color:#173254!important;font-size:clamp(1.45rem,2vw,1.95rem)!important;line-height:1.18!important;}
.ds-method-chapter p,.ds-method-chapter li{font-size:1.035rem!important;line-height:1.78!important;}
.ds-evidence-scale{counter-reset:ds-evidence;list-style:none!important;padding:0!important;margin:1rem 0!important;display:grid!important;gap:.8rem!important;}
.ds-evidence-scale li{position:relative!important;padding:.85rem 1rem .85rem 3.3rem!important;background:#fffaf1!important;border:1px solid rgba(95,78,42,.22)!important;border-radius:12px!important;}
.ds-evidence-scale li::before{counter-increment:ds-evidence;content:counter(ds-evidence);position:absolute;left:1rem;top:.85rem;width:1.65rem;height:1.65rem;border-radius:999px;background:#17324d;color:#fff;display:grid;place-items:center;font-weight:900;font-size:.86rem;}
.ds-method-checklist{padding-left:1.25rem!important;}.ds-method-checklist li{margin:.42rem 0!important;}
.ds-method-tools{display:flex!important;flex-wrap:wrap!important;gap:.65rem!important;margin-top:1rem!important;}.ds-method-tools a{background:#17324d!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border:2px solid #31536f!important;border-radius:10px!important;padding:.65rem .85rem!important;text-decoration:none!important;font-weight:800!important;}.ds-method-tools a:hover,.ds-method-tools a:focus-visible{background:#fff4cf!important;color:#101820!important;-webkit-text-fill-color:#101820!important;border-color:#b28b2b!important;}

/* Academy module pages now share the public Mars shell. */
body.academy-module-page .academy-portal-main{min-width:0!important;box-sizing:border-box!important;padding:clamp(1rem,2vw,2rem) var(--ds-page-gutter) 3rem!important;background:#eef2f5!important;}
body.academy-module-page .academy-wrap{width:min(100%,1000px)!important;max-width:1000px!important;margin:0 auto!important;box-sizing:border-box!important;border-radius:18px!important;}
body.academy-module-page .academy-local{display:flex!important;flex-wrap:wrap!important;gap:.55rem!important;margin:1rem 0 1.4rem!important;}
body.academy-module-page .academy-local a{font-size:.94rem!important;}
.mars-sidebar-academy-modules nav a.is-current,.mars-sidebar-academy-modules nav a[aria-current="page"]{background:#8b432c!important;color:#fff!important;border-left:5px solid #f5c86b!important;padding-left:.75rem!important;font-weight:900!important;}
.ds-course-pager{display:grid!important;grid-template-columns:1fr auto 1fr!important;align-items:stretch!important;gap:.8rem!important;margin:2.5rem 0 .5rem!important;padding-top:1.5rem!important;border-top:1px solid rgba(23,50,77,.18)!important;}.ds-course-pager__prev{justify-self:start!important}.ds-course-pager__index{justify-self:center!important}.ds-course-pager__next{justify-self:end!important;text-align:center!important;}

/* Exactly one visible zoom control per figure. Legacy pseudo-controls are neutralised. */
figure.mars-zoomable>a::before,figure.mars-zoomable>a::after,figure.ds-zoomable-figure>a::before,figure.ds-zoomable-figure>a::after{content:none!important;display:none!important;}
.ds-academy-zoom-button{display:none!important;}
.ds-figure-zoom-button{margin:.7rem 0 0!important;}

@media (max-width:900px){body.ds-utility-page .mars-portal-main,body.academy-module-page .academy-portal-main{padding-left:clamp(1rem,4vw,1.4rem)!important;padding-right:clamp(1rem,4vw,1.4rem)!important;}.ds-course-pager{grid-template-columns:1fr!important;}.ds-course-pager__prev,.ds-course-pager__index,.ds-course-pager__next{justify-self:stretch!important;width:100%!important;}}


/* CORE v6.4 — premium visual integration: A4 posters + non-clickable editorial thumbnails */
.mars-v64-poster{clear:both;max-width:900px;margin:2rem auto 2.4rem;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;}
.mars-v64-poster img{display:block;width:100%;height:auto;border-radius:18px;box-shadow:0 20px 52px rgba(8,18,32,.24);border:1px solid rgba(18,53,85,.16);background:#08121d;}
.mars-v64-poster figcaption{max-width:78ch;margin:.75rem auto 0;color:#52647a;font-size:.94rem;line-height:1.5;text-align:center;}
.mars-inline-thumb{box-sizing:border-box;width:min(32%,250px);margin:.35rem 1.25rem 1rem 0;float:left;clear:none;}
.mars-inline-thumb--right{float:right;margin:.35rem 0 1rem 1.25rem;}
.mars-inline-thumb img{display:block;width:100%;height:auto;border-radius:14px;box-shadow:0 10px 26px rgba(8,18,32,.18);border:1px solid rgba(18,53,85,.16);background:#08121d;cursor:default;}
.mars-inline-thumb figcaption{font-size:.78rem;line-height:1.35;color:#64748b;margin:.4rem 0 0;}
.mars-inline-thumb + p,.mars-inline-thumb--right + p{margin-top:0;}
@media(max-width:700px){
  .mars-v64-poster{max-width:100%;margin:1.4rem auto 1.8rem;}
  .mars-v64-poster img{border-radius:12px;}
  .mars-inline-thumb,.mars-inline-thumb--right{float:none;width:100%;max-width:300px;margin:1rem auto 1.25rem;}
  .mars-inline-thumb figcaption{text-align:center;}
}
@media(prefers-reduced-motion:reduce){.mars-v64-poster img,.mars-inline-thumb img{scroll-behavior:auto;}}


/* CORE v6.5 — live hub, stronger gutters, centralized legacy visual rules, complete button states — 2026-08-17 */
:root{--ds-page-gutter:clamp(2rem,3vw,3.5rem);}
.ds-btn:active{transform:translateY(1px)!important;}
.ds-btn--secondary:active{background:#0b1d2d!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border-color:#f5c86b!important;}
.ds-btn--current:visited,.ds-btn--current:hover,.ds-btn--current:focus-visible,.ds-btn--current:active{background:#f5c86b!important;color:#101820!important;-webkit-text-fill-color:#101820!important;border-color:#7d5a16!important;}
.ds-btn[disabled],.ds-btn[aria-disabled="true"]{background:#6b7280!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border-color:#48515f!important;opacity:1!important;cursor:not-allowed!important;transform:none!important;}
body.ds-utility-page .mars-portal-main,body.academy-module-page .academy-portal-main{padding-left:var(--ds-page-gutter)!important;padding-right:var(--ds-page-gutter)!important;}
@media(min-width:1100px){body.ds-utility-page .mars-portal-main,body.academy-module-page .academy-portal-main{padding-left:max(2rem,3vw)!important;padding-right:max(2rem,3vw)!important;}}
@media(max-width:900px){body.ds-utility-page .mars-portal-main,body.academy-module-page .academy-portal-main{padding-left:clamp(1rem,4vw,1.4rem)!important;padding-right:clamp(1rem,4vw,1.4rem)!important;}}

/* Visible live-missions entry: never hidden inside a collapsed tools group. */
.ds-live-sidebar-link{display:flex!important;align-items:center!important;gap:.55rem!important;margin:.75rem 0 1rem!important;padding:.78rem .85rem!important;border-radius:10px!important;background:#3a1318!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border:1px solid #a63d2e!important;text-decoration:none!important;font-weight:900!important;line-height:1.25!important;box-shadow:0 8px 20px rgba(0,0,0,.18)!important;}
.ds-live-sidebar-link:visited{color:#fff!important;-webkit-text-fill-color:#fff!important;}
.ds-live-sidebar-link:hover,.ds-live-sidebar-link:focus-visible{background:#a63d2e!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border-color:#f5c86b!important;outline:3px solid #f5c86b!important;outline-offset:2px!important;}
.ds-live-sidebar-link::before{content:"";width:.72rem;height:.72rem;border-radius:999px;background:#ff334c;box-shadow:0 0 0 4px rgba(255,51,76,.18);flex:0 0 auto;}

/* Live hub: iframe is created only after explicit user action. */
.ds-live-hub{max-width:1120px;margin:1.5rem auto 2.2rem;padding:1.15rem;border:1px solid rgba(23,50,77,.16);border-radius:18px;background:linear-gradient(180deg,#f7fafc,#eef3f7);}
.ds-live-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:.65rem;margin:.9rem 0 1rem;}
.ds-live-status{min-height:1.4em;color:#41566d;font-weight:700;}
.ds-live-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;}
.ds-live-card{min-width:0;background:#08131f;color:#eef6ff;border:1px solid #28455f;border-radius:16px;padding:1rem;box-shadow:0 10px 26px rgba(8,18,32,.16);}
.ds-live-card h3{margin:.05rem 0 .35rem;color:#fff!important;font-size:1.2rem;}
.ds-live-card p{margin:.35rem 0 .75rem;color:#d8e4ef!important;line-height:1.55;}
.ds-live-card__actions{display:flex;flex-wrap:wrap;gap:.55rem;align-items:center;}
.ds-live-card__fallback{color:#f5c86b!important;-webkit-text-fill-color:#f5c86b!important;font-weight:800;text-decoration:underline;text-underline-offset:3px;}
.ds-live-card__fallback:visited{color:#f5c86b!important;-webkit-text-fill-color:#f5c86b!important;}
.ds-live-slot{margin-top:.8rem;border-radius:12px;overflow:hidden;background:#02070b;min-height:0;}
.ds-live-slot iframe{display:block;width:100%;aspect-ratio:16/9;border:0;background:#000;}
.ds-live-multi[aria-pressed="true"]{background:#f5c86b!important;color:#101820!important;-webkit-text-fill-color:#101820!important;}
@media(max-width:760px){.ds-live-grid{grid-template-columns:1fr;}.ds-live-hub{padding:.8rem;}.ds-live-toolbar .ds-btn{width:100%;}}

/* Space Academy hub visual. */
.ds-academy-portal-visual{max-width:760px!important;margin:1.3rem auto 2rem!important;}
.ds-academy-portal-visual img{max-height:none!important;}

/* Former A12 inline visual contract centralized here. */
.a12-thumb{box-sizing:border-box;width:36%;max-width:260px;float:left;clear:none;margin:.35rem 1.1rem .9rem 0}.a12-thumb.a12-right{float:right;margin:.35rem 0 .9rem 1.1rem}.a12-thumb img{display:block;width:100%;height:auto;border-radius:12px}.a12-thumb figcaption{font-size:.78rem;line-height:1.35;margin:.35rem 0 0}.a12-premium-visual{clear:both}.a12-premium-visual>a{display:block}.a12-schema-premium{max-width:1100px;margin:1.5rem auto 2rem}.a12-schema-premium img{width:100%;height:auto}@media(max-width:680px){.a12-thumb,.a12-thumb.a12-right{float:none;width:100%;max-width:340px;margin:1rem auto}.a12-premium-visual{max-width:100%!important}}

/* Module 16 capstone. */
.ds-capstone-brief{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin:1.2rem 0 1.8rem;}
.ds-capstone-brief>div{background:#fffaf1;border:1px solid #d8c7a5;border-radius:14px;padding:1rem;}
.ds-capstone-brief strong{display:block;color:#17324d;margin-bottom:.25rem;}
.ds-capstone-gate{border-left:5px solid #176b45;background:#eff8f2;padding:1rem 1.1rem;margin:1.2rem 0;border-radius:0 12px 12px 0;}
@media(max-width:700px){.ds-capstone-brief{grid-template-columns:1fr;}}


/* CORE v6.6 — live posters, floating in-page TOC, caption contrast helpers */
.ds-caption-contrast-fixed{font-weight:600;}
figure.history-book-figure figcaption,
figure.mars-editorial-visual figcaption,
.history-book-figure figcaption,
.mars-editorial-visual figcaption{color:#edf4fb!important;-webkit-text-fill-color:#edf4fb!important;}

.ds-live-grid{align-items:start;}
.ds-live-card{display:flex;flex-direction:column;gap:.8rem;}
.ds-live-card__actions{margin-top:auto;}
.ds-live-poster,.ds-live-poster:link,.ds-live-poster:visited{position:relative;display:block;min-height:210px;padding:1rem;border-radius:14px;border:1px solid rgba(255,255,255,.12);overflow:hidden;text-decoration:none;background:linear-gradient(180deg,#08131f,#10253a);color:#fff!important;-webkit-text-fill-color:#fff!important;box-shadow:0 14px 30px rgba(0,0,0,.25);cursor:pointer;}
.ds-live-poster:hover,.ds-live-poster:focus-visible{outline:3px solid rgba(245,200,107,.45);outline-offset:2px;transform:translateY(-1px);}
.ds-live-poster::before{content:'';position:absolute;inset:0;background-image:var(--ds-live-poster-image);background-size:cover;background-position:center;background-repeat:no-repeat;opacity:.9;}
.ds-live-poster::after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,rgba(4,9,14,.22),rgba(4,9,14,.18) 40%,rgba(4,9,14,.92));}
.ds-live-poster > *{position:relative;z-index:1;display:block;}
.ds-live-poster__badge{display:inline-flex;align-items:center;width:max-content;max-width:100%;padding:.3rem .55rem;border-radius:999px;background:rgba(8,19,31,.82);border:1px solid rgba(255,255,255,.18);font-size:.78rem;font-weight:800;letter-spacing:.02em;}
.ds-live-poster__play{position:absolute;left:50%;top:46%;transform:translate(-50%,-50%);width:76px;height:54px;border-radius:16px;background:#ff3131;box-shadow:0 14px 28px rgba(255,49,49,.34);}
.ds-live-poster__play::before{content:'';position:absolute;left:29px;top:16px;border-style:solid;border-width:11px 0 11px 18px;border-color:transparent transparent transparent #fff;}
.ds-live-poster__title{margin-top:4.8rem;font-size:1.28rem;font-weight:900;line-height:1.18;text-wrap:balance;}
.ds-live-poster__subtitle{margin-top:.35rem;color:#eef4fb!important;-webkit-text-fill-color:#eef4fb!important;line-height:1.45;max-width:34ch;}
.ds-live-card__meta{margin:0;color:#dce8f3!important;}
.ds-live-card__note{margin:0;color:#bed0e0!important;font-size:.94rem;line-height:1.5;}
.ds-live-card__eyebrow{display:inline-flex;align-items:center;gap:.4rem;font-size:.8rem;font-weight:800;color:#f5c86b;letter-spacing:.03em;text-transform:uppercase;}
.ds-live-links-compact{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;margin-top:1rem;}
.ds-live-links-compact a{display:block;padding:.8rem .9rem;border-radius:12px;background:#fff;border:1px solid #cad5df;color:#17324d!important;-webkit-text-fill-color:#17324d!important;text-decoration:none!important;font-weight:700;}
.ds-live-links-compact a small{display:block;margin-top:.25rem;color:#52647a;}
@media(max-width:760px){.ds-live-poster{min-height:188px;}.ds-live-links-compact{grid-template-columns:1fr;}}

.ds-page-toc{position:fixed;right:1rem;top:180px;z-index:9990;display:flex;align-items:flex-start;gap:.75rem;pointer-events:none;}
.ds-page-toc *{pointer-events:auto;}
.ds-page-toc__toggle{width:52px;height:52px;border-radius:14px;border:1px solid #4f6c83;background:#1d4570;color:#fff;font-size:1.15rem;font-weight:900;box-shadow:0 10px 24px rgba(6,16,28,.28);cursor:pointer;}
.ds-page-toc__toggle:hover,.ds-page-toc__toggle:focus-visible,.ds-page-toc__close:hover,.ds-page-toc__close:focus-visible{outline:3px solid rgba(245,200,107,.45);outline-offset:2px;background:#2d5c90;}
.ds-page-toc__panel{display:none;width:min(320px,calc(100vw - 2rem));max-height:70vh;overflow:hidden;border-radius:18px;border:1px solid #49647a;background:#07131f;color:#fff;box-shadow:0 16px 32px rgba(3,11,19,.34);}
.ds-page-toc.is-open .ds-page-toc__panel{display:flex;flex-direction:column;}
.ds-page-toc__header{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:1rem 1rem .9rem;border-bottom:1px solid rgba(255,255,255,.12);}
.ds-page-toc__header strong{color:#ffe08a;font-size:1.05rem;}
.ds-page-toc__close{width:38px;height:38px;border-radius:10px;border:1px solid rgba(255,255,255,.18);background:#182a3c;color:#fff;font-weight:900;cursor:pointer;}
.ds-page-toc__nav{overflow:auto;padding:.7rem 0 1rem;}
.ds-page-toc__nav ul{list-style:none;margin:0;padding:0;}
.ds-page-toc__nav li{margin:0;padding:0;}
.ds-page-toc__nav li.is-sub a{padding-left:1.55rem;font-size:.94rem;opacity:.96;}
.ds-page-toc__nav a{display:block;padding:.6rem 1rem;color:#f4f7fb!important;-webkit-text-fill-color:#f4f7fb!important;text-decoration:none!important;line-height:1.35;border-left:4px solid transparent;}
.ds-page-toc__nav a:hover,.ds-page-toc__nav a:focus-visible{background:#15304a;outline:none;}
.ds-page-toc__nav a.is-current{background:#f5c86b;color:#122233!important;-webkit-text-fill-color:#122233!important;border-left-color:#fff;box-shadow:inset 0 0 0 1px rgba(16,24,32,.08);font-weight:900;}
@media(min-width:901px){.ds-page-toc{right:1rem;gap:.75rem;pointer-events:auto;}.ds-page-toc__panel{width:310px;}.ds-page-toc.is-open .ds-page-toc__toggle{display:none;}.ds-page-toc:not(.is-open) .ds-page-toc__toggle{display:block;}}
@media(max-width:900px){.ds-page-toc{top:auto;bottom:5.25rem;right:.85rem;}.ds-page-toc__panel{max-height:min(62vh,520px);}.ds-page-toc.is-open .ds-page-toc__toggle{display:none;}}

.ds-live-section-title{margin:1.5rem 0 .75rem;color:#17324d!important;font-size:1.2rem;}
.ds-live-warning{padding:.85rem 1rem;border-left:5px solid #c84c32;background:#fff6e9;color:#39261c!important;border-radius:0 10px 10px 0;}
.ds-live-grid--single{grid-template-columns:minmax(0,1fr);max-width:560px;}
.ds-live-poster{font:inherit;text-align:left;width:100%;}
.ds-live-archive{display:grid;grid-template-columns:minmax(0,1fr);max-width:720px;}
.ds-live-archive__card{position:relative;display:flex;min-height:190px;flex-direction:column;justify-content:flex-end;gap:.35rem;padding:1.1rem;border-radius:14px;overflow:hidden;background:#08131f;color:#fff!important;-webkit-text-fill-color:#fff!important;text-decoration:none!important;border:1px solid #28455f;box-shadow:0 10px 26px rgba(8,18,32,.16);}
.ds-live-archive__card::before{content:'';position:absolute;inset:0;background-image:var(--ds-live-poster-image);background-size:cover;background-position:center;opacity:.72;}
.ds-live-archive__card::after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,rgba(4,9,14,.08),rgba(4,9,14,.92));}
.ds-live-archive__card>*{position:relative;z-index:1;}
.ds-live-archive__card .ds-live-poster__play{top:43%;}
.ds-live-archive__card strong{font-size:1.1rem;}
.ds-live-archive__card span:last-child{color:#dce8f3;}


/* CORE v6.8 — sidebar hierarchy, biographies discovery, calculators discovery, utility-page gutters */
body .mars-system-sidebar[data-ds-sidebar-version="v68"]{
  padding-top:14px!important;
}
body .mars-system-sidebar[data-ds-sidebar-version="v68"] > .mars-sidebar-search{
  margin-top:0!important;
  margin-bottom:.72rem!important;
}
body .mars-system-sidebar[data-ds-sidebar-version="v68"] .mars-sidebar-title{display:none!important;}

/* Main sections: professional hierarchy. Gold is an accent, not the default text color. */
body .mars-system-sidebar[data-ds-sidebar-version="v68"] details.mars-sidebar-group > summary{
  position:relative!important;
  list-style:none!important;
  padding:.72rem .82rem .72rem 2rem!important;
  min-height:44px!important;
  display:flex!important;
  align-items:center!important;
  color:#edf3f7!important;
  -webkit-text-fill-color:#edf3f7!important;
  background:#0d1c28!important;
  border:1px solid #203747!important;
  border-left:3px solid transparent!important;
  font-size:.96rem!important;
  line-height:1.25!important;
  font-weight:600!important;
  letter-spacing:.005em!important;
  cursor:pointer!important;
}
body .mars-system-sidebar[data-ds-sidebar-version="v68"] details.mars-sidebar-group > summary::-webkit-details-marker{display:none!important;}
body .mars-system-sidebar[data-ds-sidebar-version="v68"] details.mars-sidebar-group > summary::before{
  content:'›';
  position:absolute;
  left:.78rem;
  top:50%;
  transform:translateY(-52%);
  color:#e7bd61;
  font-size:1.05rem;
  font-weight:800;
  transition:transform .16s ease;
}
body .mars-system-sidebar[data-ds-sidebar-version="v68"] details.mars-sidebar-group[open] > summary::before{transform:translateY(-52%) rotate(90deg);}
body .mars-system-sidebar[data-ds-sidebar-version="v68"] details.mars-sidebar-group > summary:hover,
body .mars-system-sidebar[data-ds-sidebar-version="v68"] details.mars-sidebar-group > summary:focus-visible{
  color:#fff!important;-webkit-text-fill-color:#fff!important;background:#173147!important;border-color:#4f6a7e!important;outline:2px solid #e7bd61!important;outline-offset:1px!important;
}
body .mars-system-sidebar[data-ds-sidebar-version="v68"] details.mars-sidebar-group.is-current-group > summary{
  color:#fff!important;-webkit-text-fill-color:#fff!important;background:#3b241d!important;border-left-color:#e7bd61!important;border-color:#71432f!important;
}
body .mars-system-sidebar[data-ds-sidebar-version="v68"] details.mars-sidebar-group nav a,
body .mars-system-sidebar[data-ds-sidebar-version="v68"] details.mars-sidebar-group > a{
  font-size:.9rem!important;
  line-height:1.32!important;
  font-weight:500!important;
  padding:.48rem .72rem .48rem 1rem!important;
  color:#e7edf2!important;
  -webkit-text-fill-color:#e7edf2!important;
}
body .mars-system-sidebar[data-ds-sidebar-version="v68"] details.mars-sidebar-group nav a:hover,
body .mars-system-sidebar[data-ds-sidebar-version="v68"] details.mars-sidebar-group nav a:focus-visible{
  color:#fff!important;-webkit-text-fill-color:#fff!important;background:#18334a!important;
}
body .mars-system-sidebar[data-ds-sidebar-version="v68"] details.mars-sidebar-group nav a[aria-current="page"]{
  color:#fff!important;-webkit-text-fill-color:#fff!important;background:#7d3f29!important;border-left:3px solid #e7bd61!important;font-weight:650!important;
}
body .mars-system-sidebar[data-ds-sidebar-version="v68"] .mars-sidebar-people-v68 > summary::after{
  content:'BIO';
  margin-left:auto;
  padding:.12rem .38rem;
  border-radius:999px;
  background:#203f56;
  color:#cde9f7;
  font-size:.62rem;
  font-weight:800;
  letter-spacing:.08em;
}

/* Calculators: deliberately visible, but visually distinct from navigation groups. */
body .mars-system-sidebar[data-ds-sidebar-version="v68"] .ds-sidebar-calculators-v68,
body .mars-system-sidebar[data-ds-sidebar-version="v68"] .ds-sidebar-calculators-v68:link,
body .mars-system-sidebar[data-ds-sidebar-version="v68"] .ds-sidebar-calculators-v68:visited{
  display:flex!important;
  align-items:center!important;
  min-height:46px!important;
  margin:0 0 .85rem!important;
  padding:.72rem .82rem!important;
  border:1px solid #46748b!important;
  border-left:4px solid #67b8d1!important;
  border-radius:10px!important;
  background:linear-gradient(180deg,#133147,#102a3c)!important;
  color:#d7f3ff!important;
  -webkit-text-fill-color:#d7f3ff!important;
  text-decoration:none!important;
  font-size:.97rem!important;
  font-weight:700!important;
  box-shadow:0 7px 18px rgba(0,0,0,.14)!important;
}
body .mars-system-sidebar[data-ds-sidebar-version="v68"] .ds-sidebar-calculators-v68:hover,
body .mars-system-sidebar[data-ds-sidebar-version="v68"] .ds-sidebar-calculators-v68:focus-visible{
  background:#1b4761!important;color:#fff!important;-webkit-text-fill-color:#fff!important;outline:2px solid #9ee1f5!important;outline-offset:2px!important;
}
body .mars-system-sidebar[data-ds-sidebar-version="v68"] .ds-sidebar-calculators-v68.is-active{
  background:#255b70!important;border-color:#d7f3ff!important;color:#fff!important;-webkit-text-fill-color:#fff!important;
}

/* Bottom learning/reference area requested by the owner. */
body .mars-system-sidebar[data-ds-sidebar-version="v68"] .mars-sidebar-separator-v68{
  height:1px!important;
  margin:1rem .15rem 1.05rem!important;
  background:linear-gradient(90deg,transparent,#526b7c 15%,#526b7c 85%,transparent)!important;
}
body .mars-system-sidebar[data-ds-sidebar-version="v68"] .mars-sidebar-academy{
  margin:.15rem 0 .8rem!important;
  background:#152b3d!important;
  border-color:#4f6b7f!important;
  box-shadow:none!important;
}
body .mars-system-sidebar[data-ds-sidebar-version="v68"] .mars-sidebar-academy__eyebrow{
  color:#c9d9e5!important;-webkit-text-fill-color:#c9d9e5!important;font-size:.74rem!important;font-weight:650!important;letter-spacing:.08em!important;
}
body .mars-system-sidebar[data-ds-sidebar-version="v68"] .mars-sidebar-academy > strong{
  color:#fff!important;-webkit-text-fill-color:#fff!important;font-weight:700!important;
}
body .mars-system-sidebar[data-ds-sidebar-version="v68"] .mars-sidebar-reference-tools-v68{
  margin:0 0 .85rem!important;
  padding:.78rem!important;
  border:1px solid #314b5f!important;
  border-radius:11px!important;
  background:#0a1823!important;
}
body .mars-system-sidebar[data-ds-sidebar-version="v68"] .mars-sidebar-reference-tools-v68__label{
  margin:0 0 .48rem!important;
  color:#aebfca!important;
  font-size:.7rem!important;
  font-weight:700!important;
  letter-spacing:.08em!important;
  text-transform:uppercase!important;
}
body .mars-system-sidebar[data-ds-sidebar-version="v68"] .mars-sidebar-reference-tools-v68 .mars-sidebar-tools{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:.38rem!important;
}
body .mars-system-sidebar[data-ds-sidebar-version="v68"] .mars-sidebar-reference-tools-v68 .mars-sidebar-tools a{
  display:flex!important;align-items:center!important;justify-content:center!important;min-height:42px!important;padding:.45rem .3rem!important;border:1px solid #476176!important;border-radius:8px!important;background:#102230!important;color:#eef5f8!important;-webkit-text-fill-color:#eef5f8!important;text-align:center!important;font-size:.76rem!important;line-height:1.12!important;font-weight:600!important;text-decoration:none!important;
}
body .mars-system-sidebar[data-ds-sidebar-version="v68"] .mars-sidebar-reference-tools-v68 .mars-sidebar-tools a:hover,
body .mars-system-sidebar[data-ds-sidebar-version="v68"] .mars-sidebar-reference-tools-v68 .mars-sidebar-tools a:focus-visible{
  background:#23465e!important;outline:2px solid #e7bd61!important;outline-offset:1px!important;
}

/* Search starts immediately below the header, with a little breathing room. */
body .mars-system-sidebar[data-ds-sidebar-version="v68"] .mars-sidebar-search{
  padding-top:0!important;
}
body .mars-system-sidebar[data-ds-sidebar-version="v68"] .mars-search-box input{
  font-weight:520!important;
}

/* Calculator/tool pages: real gutter between sidebar and content. */
body.ds-calculator-page .mars-portal-main{
  box-sizing:border-box!important;
  padding-left:clamp(2rem,3.2vw,4rem)!important;
  padding-right:clamp(2rem,3.2vw,4rem)!important;
}
body.ds-calculator-page .mars-portal-main > *{
  max-width:1180px;
  margin-left:auto;
  margin-right:auto;
}
@media(max-width:900px){
  body.ds-calculator-page .mars-portal-main{padding-left:clamp(1.15rem,4vw,1.6rem)!important;padding-right:clamp(1.15rem,4vw,1.6rem)!important;}
  body .mars-system-sidebar[data-ds-sidebar-version="v68"] details.mars-sidebar-group > summary{font-size:.94rem!important;}
}

/* V6.9 — external floating menu button owns the page TOC when available */
.ds-page-toc.has-external-toggle .ds-page-toc__toggle{display:none!important}


/* V6.14 — calculator contrast contract + dark-surface readability */
.ds-calculator-page .ds-tool-grid,
.ds-calculator-page .ds-tools-grid{gap:1rem!important;}
.ds-calculator-page a.ds-tool-card,
.ds-calculator-page .ds-tool-grid a.ds-tool-card,
.ds-calculator-page .ds-tools-grid a.ds-tool-card{
  background:#13243b!important;
  border:1px solid #36506b!important;
  color:#f5f8fb!important;
  -webkit-text-fill-color:#f5f8fb!important;
  box-shadow:0 10px 24px rgba(8,18,30,.10)!important;
  text-decoration:none!important;
}
.ds-calculator-page a.ds-tool-card strong,
.ds-calculator-page a.ds-tool-card h2,
.ds-calculator-page a.ds-tool-card h3{
  color:#ffe08a!important;
  -webkit-text-fill-color:#ffe08a!important;
  text-decoration:none!important;
}
.ds-calculator-page a.ds-tool-card p,
.ds-calculator-page a.ds-tool-card span,
.ds-calculator-page a.ds-tool-card small{
  color:#f5f8fb!important;
  -webkit-text-fill-color:#f5f8fb!important;
}
.ds-calculator-page a.ds-tool-card:visited{color:#f5f8fb!important;-webkit-text-fill-color:#f5f8fb!important;}
.ds-calculator-page a.ds-tool-card:hover,
.ds-calculator-page a.ds-tool-card:focus-visible{
  background:#1b3552!important;
  border-color:#f0c967!important;
  outline:3px solid rgba(240,201,103,.42)!important;
  outline-offset:2px!important;
  transform:translateY(-2px);
}
.ds-calculator-page a.ds-tool-card:active{background:#0e1d30!important;}
.ds-auto-contrast-light{color:#f8fbff!important;-webkit-text-fill-color:#f8fbff!important;}
.ds-auto-contrast-dark{color:#152434!important;-webkit-text-fill-color:#152434!important;}


/* === DELTA-SIERRA MARS V6.19 CANONICAL VISUAL CONTRACT === */
:root{
  --ds-mars-shell:#07131f;
  --ds-mars-shell-2:#0b1b2b;
  --ds-mars-sidebar:#071522;
  --ds-mars-paper:#f3f6f9;
  --ds-mars-paper-warm:#fffaf2;
  --ds-mars-ink:#20354f;
  --ds-mars-muted:#5e6f82;
  --ds-mars-gold:#f2c968;
  --ds-mars-copper:#a84c32;
  --ds-mars-line:rgba(255,255,255,.12);
}
body.ds-mars-theme-v619{
  background:var(--ds-mars-shell)!important;
  color:var(--ds-mars-ink);
}
body.ds-mars-theme-v619 .mars-header{
  background:#07111b!important;
  border-bottom:1px solid rgba(242,201,104,.42)!important;
  box-shadow:0 6px 22px rgba(0,0,0,.16)!important;
}
body.ds-mars-theme-v619 .mars-header__inner{
  min-height:72px!important;
  align-items:center!important;
}
body.ds-mars-theme-v619 .ds-mars-home-brand{
  display:grid!important;
  grid-template-columns:54px auto!important;
  gap:.72rem!important;
  align-items:center!important;
  min-width:190px!important;
  text-decoration:none!important;
}
body.ds-mars-theme-v619 .ds-mars-home-brand::before,
body.ds-mars-theme-v619 .ds-mars-home-brand::after{content:none!important;background:none!important;display:none!important;}
body.ds-mars-theme-v619 .ds-mars-home-brand__logo{
  display:block!important;
  width:52px!important;
  height:52px!important;
  object-fit:contain!important;
  border-radius:50%!important;
  flex:0 0 52px!important;
}
body.ds-mars-theme-v619 .ds-mars-home-brand__copy{display:flex!important;flex-direction:column!important;line-height:1!important;}
body.ds-mars-theme-v619 .ds-mars-home-brand__copy small{color:#f3f6fb!important;font-weight:850!important;letter-spacing:.12em!important;font-size:.72rem!important;}
body.ds-mars-theme-v619 .ds-mars-home-brand__copy strong{color:#ef7a4a!important;font-weight:900!important;font-size:1.55rem!important;letter-spacing:.05em!important;}
body.ds-mars-theme-v619 .ds-mars-home-brand__copy em{color:#f3ce75!important;font-style:normal!important;font-weight:750!important;font-size:.55rem!important;letter-spacing:.035em!important;margin-top:.25rem!important;}
body.ds-mars-theme-v619 main.mars-portal-frame{
  background:var(--ds-mars-shell)!important;
}
body.ds-mars-theme-v619 aside.mars-system-sidebar{
  background:var(--ds-mars-sidebar)!important;
  border-right:1px solid rgba(255,255,255,.10)!important;
}
body.ds-mars-theme-v619 .mars-portal-main{
  background:var(--ds-mars-paper)!important;
  color:var(--ds-mars-ink)!important;
}
body.ds-mars-theme-v619.history-book-page .mars-portal-main{
  background:linear-gradient(180deg,#13263d 0%,#081521 100%)!important;
}
body.ds-mars-theme-v619.history-book-page article.people-book,
body.ds-mars-theme-v619.history-book-page .history-book{
  background:linear-gradient(180deg,#fffdf8 0%,#fffaf2 100%)!important;
  color:#26394f!important;
}
body.ds-mars-theme-v619.academy-module-page .mars-portal-main,
body.ds-mars-theme-v619.ds-utility-page .mars-portal-main{
  background:#eef3f7!important;
  color:var(--ds-mars-ink)!important;
}
body.ds-mars-theme-v619 .people-card__visual{
  width:100%!important;
  aspect-ratio:520/735!important;
  object-fit:cover!important;
  object-position:center 34%!important;
  display:block!important;
}
body.ds-mars-theme-v619 .people-selection-note{
  max-width:1120px!important;
  margin:1.2rem auto 2rem!important;
  padding:1.1rem 1.25rem!important;
  background:#fff8e8!important;
  color:#293b50!important;
  border-left:5px solid #c57a35!important;
  border-radius:12px!important;
  line-height:1.65!important;
}
body.ds-mars-theme-v619 .people-selection-note strong{color:#71351f!important;}
@media (max-width:900px){
 body.ds-mars-theme-v619 .mars-header__inner{min-height:64px!important;}
 body.ds-mars-theme-v619 .ds-mars-home-brand{grid-template-columns:44px auto!important;min-width:154px!important;gap:.5rem!important;}
 body.ds-mars-theme-v619 .ds-mars-home-brand__logo{width:42px!important;height:42px!important;}
 body.ds-mars-theme-v619 .ds-mars-home-brand__copy strong{font-size:1.18rem!important;}
 body.ds-mars-theme-v619 .ds-mars-home-brand__copy em{font-size:.48rem!important;}
}


/* V6.19 — calculator cards: match the real DOM article.ds-tool-card > h2 > a */
body.ds-mars-theme-v619.ds-calculator-page .ds-tools-grid > article.ds-tool-card,
body.ds-mars-theme-v619.ds-calculator-page .ds-tool-grid > article.ds-tool-card{
  background:#13243b!important;
  color:#f5f8fb!important;
  border:1px solid rgba(255,224,138,.34)!important;
  border-radius:14px!important;
  box-shadow:none!important;
  transition:background-color .16s ease,border-color .16s ease,transform .16s ease,box-shadow .16s ease!important;
}
body.ds-mars-theme-v619.ds-calculator-page article.ds-tool-card h2,
body.ds-mars-theme-v619.ds-calculator-page article.ds-tool-card h3{
  color:#ffe08a!important;
  -webkit-text-fill-color:#ffe08a!important;
}
body.ds-mars-theme-v619.ds-calculator-page article.ds-tool-card h2 > a,
body.ds-mars-theme-v619.ds-calculator-page article.ds-tool-card h2 > a:link,
body.ds-mars-theme-v619.ds-calculator-page article.ds-tool-card h2 > a:visited,
body.ds-mars-theme-v619.ds-calculator-page article.ds-tool-card h3 > a,
body.ds-mars-theme-v619.ds-calculator-page article.ds-tool-card h3 > a:visited{
  color:#ffe08a!important;
  -webkit-text-fill-color:#ffe08a!important;
  text-decoration:none!important;
  opacity:1!important;
}
body.ds-mars-theme-v619.ds-calculator-page article.ds-tool-card p,
body.ds-mars-theme-v619.ds-calculator-page article.ds-tool-card li,
body.ds-mars-theme-v619.ds-calculator-page article.ds-tool-card span:not(.ds-tip-trigger){
  color:#f5f8fb!important;
  -webkit-text-fill-color:#f5f8fb!important;
}
body.ds-mars-theme-v619.ds-calculator-page article.ds-tool-card:hover{
  background:#182d49!important;
  border-color:#ffe08a!important;
  transform:translateY(-2px)!important;
  box-shadow:0 10px 24px rgba(0,0,0,.18)!important;
}
body.ds-mars-theme-v619.ds-calculator-page article.ds-tool-card h2 > a:hover,
body.ds-mars-theme-v619.ds-calculator-page article.ds-tool-card h2 > a:focus-visible{
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  text-decoration:underline!important;
  text-decoration-thickness:2px!important;
  text-underline-offset:3px!important;
}
body.ds-mars-theme-v619.ds-calculator-page article.ds-tool-card h2 > a:focus-visible{
  outline:3px solid #ffe08a!important;
  outline-offset:4px!important;
  border-radius:4px!important;
}
body.ds-mars-theme-v619.ds-calculator-page article.ds-tool-card h2 > a:active{
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}


/* V6.23 — INFO automatique, respiration visuelle des organisations, bibliothèque Mars */
.ds-auto-glossary-term{border-bottom:1px dotted currentColor;text-decoration:none;cursor:help;text-underline-offset:.18em}
.ds-auto-glossary-term:focus-visible{outline:3px solid #f0b94a;outline-offset:3px;border-radius:.18rem}
.organisation-visual-v623{margin:2.35rem auto;max-width:920px;padding:0;background:transparent}
.organisation-visual-v623 img{display:block;width:100%;height:auto;max-height:820px;object-fit:contain;border-radius:18px;box-shadow:0 20px 55px rgba(5,17,29,.20)}
.organisation-visual-v623--context img{max-height:720px}
.organisation-visual-v623 figcaption{margin:.8rem auto 0;max-width:820px;line-height:1.55;font-size:.94rem}
.org-card__media img{width:100%;aspect-ratio:16/9;object-fit:cover;display:block}
.org-card__media--v623{overflow:hidden;background:#091725}
.mars-library-v623{margin:2.8rem 0;padding:1.15rem 1.2rem 1.3rem;border:1px solid rgba(185,139,56,.34);border-radius:20px;background:linear-gradient(135deg,rgba(244,235,214,.58),rgba(255,255,255,.9));box-shadow:0 14px 40px rgba(28,40,53,.09)}
.mars-library-v623__head{margin:0 0 1rem}.mars-library-v623__eyebrow{margin:0 0 .28rem;font-size:.78rem;font-weight:900;letter-spacing:.11em;text-transform:uppercase;color:#8c5d16}.mars-library-v623 h2{margin:.1rem 0 .35rem;font-size:clamp(1.22rem,2vw,1.65rem);color:#172c40}.mars-library-v623__intro{margin:.3rem 0;color:#425367;max-width:74ch}
.mars-library-v623__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.9rem}.mars-library-v623__card{display:flex;flex-direction:column;text-decoration:none!important;color:#172c40!important;border:1px solid rgba(98,76,42,.22);border-radius:14px;overflow:hidden;background:#fff;transition:transform .16s ease,box-shadow .16s ease}.mars-library-v623__card:hover,.mars-library-v623__card:focus-visible{transform:translateY(-2px);box-shadow:0 10px 28px rgba(25,41,55,.16)}.mars-library-v623__card:focus-visible{outline:3px solid #cf8b25;outline-offset:3px}.mars-library-v623__card img{display:block;width:100%;height:190px;object-fit:cover;background:#0c1722}.mars-library-v623__card:first-child img{object-fit:contain;background:#111}.mars-library-v623__card span{padding:.72rem .8rem .8rem;font-size:.92rem;font-weight:800;line-height:1.35}
@media(max-width:720px){.mars-library-v623{padding:.95rem}.mars-library-v623__grid{grid-template-columns:1fr}.mars-library-v623__card{display:grid;grid-template-columns:112px 1fr;align-items:center}.mars-library-v623__card img{height:112px}.mars-library-v623__card:first-child img{height:112px}.organisation-visual-v623{margin:1.8rem 0}}
/* V6.23 — lisibilité des ouvertures longues */
.people-hero .people-deck,.organisation-hero .dek,.history-book-header .history-dek{max-width:82ch;font-size:clamp(1.03rem,1.35vw,1.16rem);line-height:1.78;letter-spacing:.005em;margin-top:.85rem;margin-bottom:1.25rem}
.people-facts,.org-origin-facts{margin-top:1.25rem;margin-bottom:1.45rem}
.people-editorial-figure--opening{margin-top:2rem;margin-bottom:2.35rem}


/* V6.27 — Mars Library single-Arcadia layout (geometry only; link states live in interactive contract). */
.mars-library-v623__grid{display:flex!important;justify-content:center!important;align-items:stretch!important;gap:0!important}
.mars-library-v623__card{width:min(100%,360px)!important;max-width:360px!important}
.mars-library-v623__card img{width:100%!important;height:auto!important;aspect-ratio:5/6!important;object-fit:cover!important;background:#111!important}
@media(max-width:720px){.mars-library-v623__grid{display:flex!important}.mars-library-v623__card{display:flex!important;flex-direction:column!important;width:min(100%,330px)!important}.mars-library-v623__card img{height:auto!important;aspect-ratio:5/6!important}}


/* === V6.50 CRITICAL LIVE VISUAL FALLBACK === */
html#ds-mars-root body .mars-hero :is(h1,.mars-hero__title){color:#fff!important;-webkit-text-fill-color:#fff!important;background:none!important;-webkit-background-clip:border-box!important;background-clip:border-box!important;opacity:1!important;text-shadow:0 3px 18px rgba(0,0,0,.88),0 1px 3px rgba(0,0,0,.96)!important}
html#ds-mars-root body .mars-hero :is(.mars-lead,.mars-hero__lead,.mars-hero__intro,p) a{color:#9fd8ff!important;-webkit-text-fill-color:#9fd8ff!important;text-decoration-color:currentColor!important}
@media(min-width:1440px){html#ds-mars-root body .mars-header__inner.site-header__actions{width:min(1480px,calc(100% - 64px))!important;max-width:1480px!important;margin-inline:auto!important;padding:.72rem 0!important;display:grid!important;grid-template-columns:minmax(205px,230px) minmax(0,1fr) auto auto!important;grid-template-areas:"brand nav language support"!important;align-items:center!important;gap:.55rem 1rem!important}html#ds-mars-root body .mars-header__inner.site-header__actions>.ds-mars-home-brand{grid-area:brand!important;margin:0!important;position:relative!important;inset:auto!important;transform:none!important}html#ds-mars-root body .mars-header__inner.site-header__actions>.site-nav{grid-area:nav!important;width:100%!important;max-width:none!important;margin:0!important;position:relative!important;inset:auto!important;transform:none!important}html#ds-mars-root body .mars-header__inner.site-header__actions>.site-language-switcher{grid-area:language!important;justify-self:end!important;margin:0!important;position:relative!important;inset:auto!important;transform:none!important}html#ds-mars-root body .mars-header__inner.site-header__actions>.btn-soutien{grid-area:support!important;justify-self:end!important;margin:0!important;position:relative!important;inset:auto!important;transform:none!important}html#ds-mars-root body .mars-header__inner.site-header__actions .site-nav__inner{display:flex!important;justify-content:center!important;flex-wrap:wrap!important;width:100%!important}}


/* SOURCE B: canonical shell-v19, asset URLs reconciled to current paths */
/* DELTA-SIERRA MARS — canonical shell refinement Lot18 — 2026-08-13 */
:root{--dsm-night:#050b12;--dsm-panel:#091522;--dsm-panel2:#0c2032;--dsm-gold:#f1bb4e;--dsm-copper:#c86b3b;--dsm-red:#c93530;--dsm-text:#f5f8fb;--dsm-line:#29465e;--dsm-paper:#fffaf2}
html,body{max-width:100%;overflow-x:hidden}
.mars-header{position:relative!important;z-index:70!important;background:linear-gradient(180deg,#030a11,#071421)!important;border-bottom:1px solid #b9772a!important;color:#fff!important}
.mars-header__inner{width:min(100%,1720px)!important;margin:0 auto!important;padding:12px 18px!important;min-height:106px!important;display:grid!important;grid-template-columns:minmax(250px,310px) minmax(0,1fr) auto auto!important;grid-template-areas:"brand nav lang support"!important;gap:10px 14px!important;align-items:center!important;min-width:0!important}
.mars-header .mars-brand,.mars-header .ds-mars-home-brand{grid-area:brand!important;position:static!important;left:auto!important;top:auto!important;width:auto!important;height:auto!important;min-width:0!important;display:flex!important;align-items:center!important;gap:12px!important;padding:0!important;color:#fff!important;text-decoration:none!important}
.mars-header .ds-mars-home-brand:before{content:"";width:78px!important;height:78px!important;flex:0 0 78px!important;background:url('/mars-assets/img/brand-v615/delta-sierra-mars-mark-v615.png') center/contain no-repeat!important;filter:drop-shadow(0 7px 15px rgba(0,0,0,.45))}
.mars-header .ds-mars-home-brand__copy{display:flex!important;flex-direction:column!important;min-width:0!important;line-height:1!important}.mars-header .ds-mars-home-brand__copy small{color:#f7f8fa!important;font-size:.73rem!important;letter-spacing:.16em!important;font-weight:850!important}.mars-header .ds-mars-home-brand__copy strong{margin-top:5px!important;color:#ec704d!important;font-size:1.9rem!important;letter-spacing:.07em!important}.mars-header .ds-mars-home-brand__copy em{margin-top:6px!important;color:#f1d6a5!important;font-size:.58rem!important;font-style:normal!important;letter-spacing:.07em!important;font-weight:750!important}
.mars-header .mars-brand{flex-direction:column!important;align-items:flex-start!important;justify-content:center!important}.mars-header .mars-brand span{font:850 .72rem/1.1 system-ui,sans-serif!important;letter-spacing:.16em!important;color:#e9b15a!important}.mars-header .mars-brand strong{font:850 1.02rem/1.18 system-ui,sans-serif!important;color:#fff!important}
.mars-header .site-nav{grid-area:nav!important;min-width:0!important;width:100%!important;overflow:visible!important}.mars-header .site-nav__inner{display:flex!important;flex-wrap:wrap!important;align-items:center!important;justify-content:center!important;gap:4px 5px!important;min-width:0!important;width:100%!important;background:rgba(7,20,34,.82)!important;border:1px solid #1f354a!important;border-radius:11px!important;padding:5px!important;overflow:visible!important}.mars-header .site-nav a,.mars-header .site-nav a:visited{flex:0 1 auto!important;min-width:0!important;white-space:nowrap!important;padding:9px 10px!important;border-radius:7px!important;color:#f5f3ef!important;text-decoration:none!important;font:720 clamp(.76rem,.8vw,.9rem)/1.15 system-ui,sans-serif!important}.mars-header .site-nav a:hover,.mars-header .site-nav a:focus-visible{background:#55301f!important;color:#fff!important;outline:2px solid var(--dsm-gold)!important;outline-offset:1px!important}.mars-header .mars-nav-link{background:#192d3e!important;border:1px solid #c99634!important;color:#fff!important}.mars-header .site-language-switcher{grid-area:lang!important;position:relative!important;justify-self:end!important}.mars-header .btn-soutien{grid-area:support!important;white-space:nowrap!important;background:#b92f2b!important;color:#fff!important;border-radius:8px!important;padding:12px 14px!important;text-decoration:none!important;font-weight:850!important;box-shadow:0 8px 20px rgba(137,26,23,.2)!important}.mars-header .btn-soutien:hover{background:#d4433c!important}
.ds-mobile-nav-toggle,.ds-mobile-sidebar-toggle{display:none}
/* Sidebar: one visual grammar, high contrast, navigation only */
.mars-system-sidebar .ds-essential-answer{display:none!important}.mars-system-sidebar:before{display:none!important}.mars-system-sidebar{background:linear-gradient(180deg,#07131f,#091a29)!important;color:#eef3f6!important;border-right:1px solid #29465e!important;box-shadow:10px 0 28px rgba(0,0,0,.12)!important;min-width:0!important}.mars-sidebar-title{color:#fff!important;background:#10283d!important;border:1px solid #29465e!important;border-radius:9px!important;padding:10px 11px!important;letter-spacing:.05em!important;font-weight:850!important}.mars-sidebar-search{min-width:0!important}.mars-search-box,.mars-search-box input{width:100%!important;max-width:100%!important;min-width:0!important}.mars-system-sidebar input[type=search]{display:block!important;width:100%!important;max-width:100%!important;background:#f8f4ec!important;color:#17222d!important;border:1px solid #b97a4d!important;border-radius:9px!important;padding:10px 11px!important;font-size:.9rem!important;white-space:normal!important}.mars-sidebar-search-help{display:none!important}.mars-sidebar-tools{display:grid!important;grid-template-columns:1fr 1fr 1fr!important;gap:6px!important;margin-top:8px!important}.mars-sidebar-tools a,.mars-sidebar-tools a:visited{display:flex!important;align-items:center!important;justify-content:center!important;min-width:0!important;text-align:center!important;background:#10283d!important;color:#fff!important;border:1px solid #36566f!important;border-radius:8px!important;padding:8px 6px!important;font-weight:780!important;font-size:.78rem!important;line-height:1.2!important;text-decoration:none!important}.mars-system-sidebar a,.mars-system-sidebar a:visited{color:#f0f3f5!important;text-decoration:none!important}.mars-system-sidebar a:hover,.mars-system-sidebar a:focus-visible{color:#fff!important;background:#4f2b1d!important;outline:2px solid var(--dsm-gold)!important;outline-offset:0!important}.mars-system-sidebar .is-active,.mars-system-sidebar [aria-current=page]{color:#fff!important;background:linear-gradient(90deg,#71331e,#402317)!important;border-left:4px solid #efb647!important}.mars-system-sidebar details{border-color:#284255!important}.mars-system-sidebar summary{color:#f5dca8!important}.mars-system-sidebar .mars-sidebar-group--risks,.mars-system-sidebar .mars-risks-v20308,.mars-system-sidebar .mars-risks-v20309,.mars-system-sidebar .mars-risks-v20310{background:transparent!important;color:#eef3f6!important;border-color:#553b2d!important}.mars-system-sidebar .mars-sidebar-group--risks summary,.mars-system-sidebar .mars-sidebar-group--risks strong{color:#f0b86b!important}.mars-system-sidebar .mars-academy-card,.mars-system-sidebar .mars-sidebar-academy{border:1px solid #355572!important;border-radius:14px!important;background:linear-gradient(145deg,#102c46,#0a1d2e)!important;box-shadow:0 12px 26px rgba(0,0,0,.2)!important}.mars-system-sidebar .mars-academy-card a,.mars-system-sidebar .mars-sidebar-academy>a{background:#f1c159!important;color:#0b2032!important;font-weight:900!important;border-radius:8px!important;padding:9px 11px!important}
/* Main frame baseline */
.mars-portal-frame{min-width:0!important}.mars-portal-main,.mars-content,.mars-main-content{min-width:0!important;max-width:100%!important}.mars-portal-main img,.mars-content img,.mars-main-content img{max-width:100%!important;height:auto!important}.mars-portal-main table,.mars-content table{max-width:100%!important}
/* immersive home hero */
.mars-hero{position:relative!important;isolation:isolate!important;min-height:560px!important;overflow:hidden!important;border-bottom:2px solid #c99532!important;background-image:linear-gradient(90deg,rgba(3,9,15,.88) 0%,rgba(3,10,17,.72) 36%,rgba(4,11,18,.27) 65%,rgba(4,9,14,.09) 100%)!important;background-size:cover!important;background-position:center 38%!important}.mars-hero:before{content:"";position:absolute;inset:0;z-index:-1;background:radial-gradient(circle at 15% 5%,rgba(255,205,107,.10),transparent 26%),linear-gradient(180deg,rgba(2,7,12,.18),rgba(3,8,12,.05) 55%,rgba(2,7,12,.2));pointer-events:none}.mars-hero__grid{position:relative!important;z-index:2!important;min-height:560px!important;display:flex!important;align-items:center!important;background:transparent!important}.mars-hero__grid>div{max-width:780px!important;padding:52px 0!important}.mars-hero__grid>figure{display:none!important}.mars-hero h1{max-width:760px!important;margin:.2em 0 .25em!important;color:#fff!important;font-size:clamp(3rem,5.5vw,5.3rem)!important;line-height:.96!important;letter-spacing:-.035em!important;text-shadow:0 4px 24px rgba(0,0,0,.8)!important}.mars-hero .mars-kicker{color:#ffd165!important;font-weight:900!important;letter-spacing:.12em!important;text-shadow:0 2px 10px rgba(0,0,0,.7)!important}.mars-hero .mars-lead{max-width:760px!important;color:#f1f5f8!important;font-size:clamp(1rem,1.4vw,1.22rem)!important;line-height:1.65!important;text-shadow:0 2px 14px rgba(0,0,0,.78)!important}.mars-hero__actions{display:flex!important;gap:11px!important;flex-wrap:wrap!important;margin-top:22px!important}.mars-hero__actions a,.mars-hero__actions a:visited{padding:12px 17px!important;border-radius:9px!important;background:#bd322c!important;border:1px solid #db5048!important;color:#fff!important;font-weight:850!important;text-decoration:none!important;box-shadow:0 10px 22px rgba(0,0,0,.22)!important}.mars-hero__actions a:nth-child(2){background:#0d2235!important;border-color:#46637a!important}.mars-hero__actions a:hover,.mars-hero__actions a:focus-visible{outline:3px solid #ffd36e!important;outline-offset:2px!important;transform:translateY(-1px)}
.ds-lot16-media{margin:28px auto!important;max-width:760px!important;border-radius:14px!important;overflow:hidden!important;background:#071420!important;border:1px solid #28445d!important;box-shadow:0 18px 42px rgba(0,0,0,.22)!important}.ds-lot16-media img{display:block!important;width:100%!important;height:auto!important;cursor:zoom-in!important}.ds-lot16-media figcaption{padding:11px 14px!important;color:#d7e7f4!important;font-size:.9rem!important;line-height:1.45!important}
/* Tablet: real reflow, never scaled desktop */
@media(max-width:1180px){
 .mars-header__inner{grid-template-columns:minmax(230px,280px) minmax(0,1fr) auto!important;grid-template-areas:"brand lang support" "nav nav nav"!important;min-height:auto!important}
 .mars-header .site-nav__inner{justify-content:flex-start!important}
}
@media(max-width:1024px){
 .mars-header__inner{grid-template-columns:minmax(0,1fr) auto auto!important;grid-template-areas:"brand lang toggle"!important;padding:9px 12px!important;min-height:auto!important}
 .mars-header .btn-soutien{display:none!important}
 .ds-mobile-nav-toggle{grid-area:toggle!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:44px!important;min-height:44px!important;border:1px solid #91642c!important;border-radius:8px!important;background:#10283d!important;color:#fff!important;font:850 .88rem/1 system-ui,sans-serif!important;cursor:pointer!important}
 .mars-header .site-nav{grid-column:1/-1!important;grid-row:2!important;display:none!important;width:100%!important;margin-top:2px!important;overflow:visible!important}
 .mars-header .site-nav.is-open{display:block!important}
 .mars-header .site-nav__inner{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;width:100%!important;min-width:0!important;gap:5px!important;padding:7px!important}
 .mars-header .site-nav a{display:block!important;width:100%!important;white-space:normal!important;text-align:left!important;font-size:.92rem!important;padding:10px 11px!important}
 .mars-portal-frame{display:block!important;max-width:none!important;width:100%!important;min-width:0!important}
 .mars-system-sidebar{display:block!important;position:fixed!important;z-index:120!important;left:0!important;top:0!important;bottom:0!important;width:min(88vw,340px)!important;max-width:340px!important;height:100dvh!important;max-height:none!important;overflow:auto!important;transform:translateX(-104%)!important;transition:transform .22s ease!important;box-shadow:18px 0 45px rgba(0,0,0,.42)!important}
 .mars-system-sidebar.is-mobile-open{transform:translateX(0)!important}
 .ds-mobile-sidebar-toggle{display:inline-flex!important;align-items:center!important;gap:7px!important;position:sticky!important;top:8px!important;z-index:55!important;margin:8px 8px 12px!important;padding:10px 12px!important;background:#0d2538!important;border:1px solid #9f6b2e!important;color:#fff!important;border-radius:9px!important;font:800 .9rem/1.1 system-ui,sans-serif!important;box-shadow:0 8px 24px rgba(0,0,0,.18)!important;cursor:pointer!important}
 body.ds-sidebar-open:after{content:"";position:fixed;inset:0;background:rgba(0,0,0,.52);z-index:110}
 .mars-portal-main{width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important}
 [class*="grid"]{min-width:0!important}
}
@media(max-width:600px){
 .mars-header__inner{grid-template-columns:minmax(0,1fr) auto!important;grid-template-areas:"brand toggle" "lang lang"!important;gap:7px!important}
 .mars-header .site-language-switcher{grid-area:lang!important;justify-self:start!important;max-width:100%!important}
 .mars-header .mars-brand,.mars-header .ds-mars-home-brand{max-width:calc(100vw - 82px)!important;overflow:hidden!important}
 .mars-header .ds-mars-home-brand:before{width:58px!important;height:58px!important;flex-basis:58px!important}.mars-header .ds-mars-home-brand__copy strong{font-size:1.45rem!important}
 .mars-header .site-nav__inner{grid-template-columns:1fr!important}.mars-header .site-nav a{font-size:.95rem!important}
 .mars-hero{min-height:480px!important;background-position:60% center!important}.mars-hero__grid{min-height:480px!important}.mars-hero__grid>div{padding:36px 0!important}.mars-hero h1{font-size:clamp(2.35rem,11vw,3.7rem)!important}.mars-hero .mars-lead{font-size:1rem!important}
 .mars-sidebar-tools{grid-template-columns:1fr!important}.mars-sidebar-tools a{font-size:.88rem!important}
}
/* Generic EN/history header inherits same identity without legacy absolute layout. */
.ds-mars-branded-header{background:linear-gradient(180deg,#030a11,#071421)!important;border-bottom:1px solid #253d52!important;color:#fff!important}.ds-mars-branded-header .site-header__inner{position:relative!important;min-height:90px!important;padding:12px 18px!important;display:flex!important;align-items:center!important;gap:12px!important}.ds-mars-branded-header .site-header__brand{display:none!important}.ds-mars-branded-header .ds-mars-home-brand{display:flex!important;position:static!important;width:auto!important;height:auto!important}

/* LOT18 QA fixes: one brand only; no intrinsic media may widen a drawer. */
.mars-header .mars-brand{display:none!important}
.mars-system-sidebar img,.mars-system-sidebar svg,.mars-system-sidebar video{max-width:100%!important;height:auto!important}
html body img{max-width:100%!important;height:auto!important}
.site-language-switcher{position:relative!important}
.site-language-switcher:not([open]) .site-language-switcher__panel{display:none!important}
.site-language-switcher__panel{position:absolute!important;right:0!important;left:auto!important;top:calc(100% + 8px)!important;max-width:min(320px,calc(100vw - 24px))!important;z-index:150!important}
.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
@media(max-width:600px){
 .mars-header .ds-mars-home-brand__copy small,.mars-header .ds-mars-home-brand__copy em{display:none!important}
 .mars-header .ds-mars-home-brand__copy strong{font-size:1.3rem!important;line-height:1!important}
 .mars-header .site-language-switcher>summary{max-width:100%!important}
}
@media(max-width:1024px){
 .mars-header__inner{grid-template-columns:minmax(0,1fr) auto!important;grid-template-areas:"brand toggle" "lang lang"!important}
 .mars-header .site-language-switcher{grid-area:lang!important;justify-self:start!important;max-width:100%!important}
 .mars-header .site-nav{grid-row:3!important}
}
.ds-mobile-sidebar-close{display:none!important}
@media(max-width:1024px){
 .ds-mobile-sidebar-close{display:flex!important;align-items:center!important;justify-content:center!important;position:sticky!important;top:0!important;z-index:3!important;width:100%!important;margin:0 0 10px!important;padding:11px 12px!important;border:0!important;border-bottom:1px solid #3b5366!important;background:#10283d!important;color:#fff!important;font:850 .92rem/1 system-ui,sans-serif!important;cursor:pointer!important}
}
.mars-header .ds-mars-home-brand:has(.ds-mars-header-logo):before{display:none!important}
.mars-header .ds-mars-home-brand .ds-mars-header-logo{display:block!important;width:78px!important;height:78px!important;flex:0 0 78px!important;object-fit:contain!important;filter:drop-shadow(0 7px 15px rgba(0,0,0,.45))}
@media(max-width:600px){.mars-header .ds-mars-home-brand .ds-mars-header-logo{width:58px!important;height:58px!important;flex-basis:58px!important}}
@media(max-width:600px){.ds-mobile-nav-toggle{margin-right:8px!important;min-width:64px!important;padding-inline:9px!important}}

/* LOT18 canonical Mars desktop shell — self-contained layout for the public overlay. */
@media(min-width:1025px){
  body.mars-page .mars-portal-frame,body.mars-portal .mars-portal-frame,.mars-portal-frame{
    display:grid!important;grid-template-columns:300px minmax(0,1fr)!important;align-items:start!important;
    width:100%!important;max-width:1600px!important;margin:0 auto!important;min-width:0!important;background:#071522!important;
  }
  .mars-system-sidebar{
    display:block!important;position:sticky!important;top:0!important;align-self:start!important;width:300px!important;max-width:300px!important;
    max-height:100vh!important;overflow:auto!important;transform:none!important;z-index:20!important;
  }
  .mars-portal-main{grid-column:2!important;min-width:0!important;width:100%!important;max-width:none!important;margin:0!important;overflow:visible!important}
}
.mars-system-sidebar{background:#081725!important;color:#eef3f6!important;border-right:1px solid #203d52!important;padding:16px 16px 28px!important;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important}
.mars-sidebar-title{padding:11px 12px!important;margin:0 0 10px!important;background:#10283d!important;border:1px solid #2d4a60!important;border-radius:10px!important;color:#fff!important;font-weight:900!important;letter-spacing:.04em!important}
.mars-sidebar-search{margin:0 0 12px!important}.mars-sidebar-search input{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;padding:10px 11px!important;border:1px solid #b78b59!important;border-radius:10px!important;background:#fff9f1!important;color:#26323c!important;font-size:.94rem!important}
.mars-sidebar-search-help{display:none!important}
.mars-sidebar-tools{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important;margin:8px 0 12px!important}
.mars-sidebar-tools a,.mars-sidebar-tools a:visited{display:flex!important;align-items:center!important;justify-content:center!important;min-height:42px!important;padding:7px 5px!important;border:1px solid #315169!important;border-radius:8px!important;background:#10283d!important;color:#f8f4eb!important;text-decoration:none!important;text-align:center!important;font:800 .78rem/1.15 system-ui,sans-serif!important}
.mars-sidebar-tools a:hover,.mars-sidebar-tools a:focus-visible{background:#57301f!important;border-color:#d49a45!important;color:#fff!important;outline:2px solid #edbd65!important;outline-offset:1px!important}
.mars-sidebar-academy{margin:12px 0 14px!important;padding:14px!important;border:1px solid #315169!important;border-radius:12px!important;background:linear-gradient(145deg,#122c43,#0d2133)!important;color:#eef3f6!important;box-shadow:0 8px 22px rgba(0,0,0,.16)!important}
.mars-sidebar-academy__eyebrow{color:#e3bd73!important;font:850 .72rem/1.2 system-ui,sans-serif!important;letter-spacing:.08em!important;text-transform:uppercase!important}.mars-sidebar-academy strong{display:block!important;margin:5px 0!important;color:#fff!important;font-size:1rem!important}.mars-sidebar-academy p{margin:6px 0 10px!important;color:#dde7ee!important;font-size:.84rem!important;line-height:1.45!important}.mars-sidebar-academy a,.mars-sidebar-academy a:visited{display:inline-flex!important;padding:9px 11px!important;border-radius:8px!important;background:#efbd52!important;color:#172231!important;text-decoration:none!important;font-weight:900!important}
.mars-system-sidebar details{margin:0!important;border-top:1px solid #203d52!important;background:transparent!important}.mars-system-sidebar details:last-of-type{border-bottom:1px solid #203d52!important}
.mars-system-sidebar summary{display:block!important;padding:11px 4px!important;color:#f0c877!important;font:850 .91rem/1.25 system-ui,sans-serif!important;cursor:pointer!important;list-style:none!important}.mars-system-sidebar summary::-webkit-details-marker{display:none!important}.mars-system-sidebar summary::before{content:"▸";display:inline-block;margin-right:7px;color:#db9340!important;transition:transform .15s ease}.mars-system-sidebar details[open]>summary::before{transform:rotate(90deg)}
.mars-system-sidebar nav{padding:0 0 8px 12px!important}.mars-system-sidebar nav a,.mars-system-sidebar nav a:visited,.mars-system-sidebar details>a,.mars-system-sidebar details>a:visited{display:block!important;padding:6px 4px!important;color:#f3f0e9!important;text-decoration:none!important;font:570 .84rem/1.35 system-ui,sans-serif!important;border-radius:5px!important;overflow-wrap:anywhere!important}
.mars-system-sidebar nav a:hover,.mars-system-sidebar nav a:focus-visible,.mars-system-sidebar details>a:hover,.mars-system-sidebar details>a:focus-visible{background:#5a301e!important;color:#fff!important;outline:1px solid #db9c4a!important;outline-offset:0!important}.mars-system-sidebar a.is-current,.mars-system-sidebar a[aria-current="page"]{background:#6a3520!important;color:#fff!important;font-weight:850!important;box-shadow:inset 3px 0 0 #efb44d!important}
.mars-sidebar-library{margin-top:14px!important;padding:13px!important;border-radius:12px!important;background:#10283d!important;border:1px solid #315169!important}.mars-sidebar-library img{display:block!important;width:min(100%,150px)!important;margin:8px auto!important;border-radius:7px!important}.mars-sidebar-library strong{display:block!important;color:#fff!important}.mars-sidebar-library p{color:#dbe5eb!important;font-size:.82rem!important}.mars-sidebar-library a{color:#ffd27a!important;font-weight:800!important}
.mars-portal-main{background:#f5f7f9!important;color:#1a2a37!important}
.site-language-switcher>summary{list-style:none!important}.site-language-switcher>summary::-webkit-details-marker{display:none!important}
/* Shell width invariant: sidebar width includes its padding/border, never overlaps main content. */
.mars-system-sidebar{box-sizing:border-box!important}


/* LOT19 canonical live-contrast + sticky navigation hardening. */
:root{--ds-nav-bg:#071522;--ds-nav-panel:#0b2032;--ds-nav-text:#fffaf0;--ds-nav-muted:#f4e8cf;--ds-nav-accent:#f1b34a;--ds-nav-current:#8b4526;--ds-nav-border:#38566d}
html,body{max-width:100%;overflow-x:hidden!important}
.mars-portal-frame{overflow:visible!important}
.mars-header{background:#06121f!important;color:#fff!important;border-bottom:1px solid #d09a41!important}
.mars-header__inner{background:#06121f!important}
.mars-header .site-nav{background:transparent!important;box-shadow:none!important;border:0!important;min-width:0!important;overflow:visible!important}
.mars-header .site-nav__inner{background:rgba(9,29,47,.88)!important;border:1px solid #314d62!important;border-radius:12px!important;box-shadow:0 10px 26px rgba(0,0,0,.18)!important;padding:6px!important}
.mars-header .site-nav a,.mars-header .site-nav a:link,.mars-header .site-nav a:visited{color:#fffaf0!important;background:transparent!important;text-shadow:none!important;font-weight:760!important;opacity:1!important}
.mars-header .site-nav a:hover,.mars-header .site-nav a:focus-visible{color:#fff!important;background:#5d321f!important;outline:2px solid #efb753!important;outline-offset:1px!important}
.mars-header .site-nav a[aria-current="page"],.mars-header .site-nav a.mars-nav-link[aria-current="page"]{color:#fff!important;background:#1d3766!important;box-shadow:inset 0 -3px 0 #efb64d!important}
.mars-system-sidebar{background:#071827!important;color:#fffaf0!important;border-color:#29475d!important;overscroll-behavior:contain!important;scrollbar-gutter:stable!important}
.mars-system-sidebar summary,.mars-system-sidebar summary:visited,.mars-system-sidebar summary *{color:#ffe3a6!important;opacity:1!important;text-shadow:none!important}
.mars-system-sidebar nav a,.mars-system-sidebar nav a:link,.mars-system-sidebar nav a:visited,.mars-system-sidebar details>a,.mars-system-sidebar details>a:link,.mars-system-sidebar details>a:visited{color:#fffaf0!important;opacity:1!important;text-decoration:none!important}
.mars-system-sidebar nav a:hover,.mars-system-sidebar nav a:focus-visible,.mars-system-sidebar details>a:hover,.mars-system-sidebar details>a:focus-visible{color:#fff!important;background:#633621!important}
.mars-system-sidebar a.is-current,.mars-system-sidebar a[aria-current="page"]{color:#fff!important;background:#814024!important;box-shadow:inset 4px 0 0 #ffc45d!important}
.mars-system-sidebar details[open]>summary{color:#ffd279!important;background:rgba(241,179,74,.07)!important}
.mars-sidebar-title{color:#fff!important}
.mars-sidebar-search input{color:#172431!important;background:#fffaf3!important}
.mars-sidebar-search input::placeholder{color:#586570!important;opacity:1!important}
.mars-sidebar-tools a,.mars-sidebar-tools a:visited{color:#fffaf0!important;background:#0f2b43!important}
.mars-sidebar-academy a,.mars-sidebar-academy a:visited{color:#182333!important;background:#f3c35d!important}
.mars-hero__actions a,.mars-hero__actions a:link,.mars-hero__actions a:visited{color:#fff!important;background:#a63d2e!important;border-color:#c95a43!important}
.mars-hero__actions a+ a,.mars-hero__actions .secondary{color:#172431!important;background:#fffaf3!important;border-color:#f3d5a0!important}
@media(min-width:1281px){
 .mars-header__inner{display:grid!important;grid-template-columns:minmax(245px,300px) minmax(0,1fr) auto auto!important;grid-template-areas:"brand nav lang support"!important;gap:12px!important;align-items:center!important;max-width:1680px!important;margin:0 auto!important;padding:10px 16px!important}
 .mars-header .ds-mars-home-brand{grid-area:brand!important;min-width:0!important}
 .mars-header .site-nav{grid-area:nav!important;display:block!important;position:static!important}
 .mars-header .site-nav__inner{display:flex!important;flex-wrap:wrap!important;align-items:center!important;justify-content:center!important;gap:2px!important}
 .mars-header .site-nav a{padding:9px 9px!important;font-size:.88rem!important;white-space:nowrap!important}
 .mars-header .site-language-switcher{grid-area:lang!important}
 .mars-header .btn-soutien{grid-area:support!important;white-space:nowrap!important}
 .ds-mobile-nav-toggle{display:none!important}
}
@media(min-width:1025px){
 .mars-portal-frame{overflow:visible!important;align-items:start!important}
 .mars-system-sidebar{position:sticky!important;top:0!important;height:100vh!important;max-height:100vh!important;overflow-y:auto!important;overflow-x:hidden!important;align-self:start!important}
}
@media(max-width:1280px){
 .mars-header__inner{display:grid!important;grid-template-columns:minmax(0,1fr) auto auto!important;grid-template-areas:"brand lang toggle" "nav nav nav"!important;gap:8px!important;align-items:center!important;padding:8px 12px!important}
 .mars-header .ds-mars-home-brand{grid-area:brand!important}
 .mars-header .site-language-switcher{grid-area:lang!important}
 .ds-mobile-nav-toggle{grid-area:toggle!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:44px!important;padding:10px 12px!important;border:1px solid #d29d47!important;border-radius:9px!important;background:#132c43!important;color:#fff!important;font-weight:850!important}
 .mars-header .site-nav{grid-area:nav!important;display:none!important;position:static!important;width:100%!important}
 .mars-header .site-nav.is-open{display:block!important}
 .mars-header .site-nav__inner{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:5px!important;width:100%!important}
 .mars-header .site-nav a{display:block!important;padding:11px!important;font-size:.94rem!important;white-space:normal!important}
}
@media(max-width:640px){
 .mars-header__inner{grid-template-columns:minmax(0,1fr) auto!important;grid-template-areas:"brand toggle" "lang lang" "nav nav"!important}
 .mars-header .site-nav__inner{grid-template-columns:1fr!important}
 .mars-header .site-language-switcher{justify-self:start!important}
}
/* LOT19 sticky fix: clipping horizontal overflow must not create a sticky scroll container. */
html,body{overflow-x:clip!important;overflow-y:visible!important}

/* Canonical bilingual Mars identity: keep the English Mars header usable even before JavaScript runs. */
.ds-mars-branded-header .ds-mars-home-brand{
  display:flex!important;align-items:center!important;gap:12px!important;color:#fff!important;text-decoration:none!important;min-width:0!important;
}
.ds-mars-branded-header .ds-mars-home-brand:before{
  content:"";display:block!important;width:72px!important;height:72px!important;flex:0 0 72px!important;
  background:url('/mars-assets/img/brand-v615/delta-sierra-mars-mark-v615.png') center/contain no-repeat!important;
  filter:drop-shadow(0 7px 15px rgba(0,0,0,.45));
}
.ds-mars-branded-header .ds-mars-home-brand__copy{display:flex!important;flex-direction:column!important;min-width:0!important;line-height:1!important}
.ds-mars-branded-header .ds-mars-home-brand__copy small{color:#f7f8fa!important;font:850 .7rem/1 system-ui,sans-serif!important;letter-spacing:.16em!important}
.ds-mars-branded-header .ds-mars-home-brand__copy strong{margin-top:5px!important;color:#ec704d!important;font:850 1.75rem/1 system-ui,sans-serif!important;letter-spacing:.07em!important}
.ds-mars-branded-header .ds-mars-home-brand__copy em{margin-top:6px!important;color:#f1d6a5!important;font:750 .56rem/1.2 system-ui,sans-serif!important;font-style:normal!important;letter-spacing:.07em!important}
.ds-mars-branded-header .site-header__actions{margin-left:auto!important;display:flex!important;align-items:center!important;gap:10px!important;min-width:0!important}
.ds-mars-branded-header + .site-nav{
  position:relative!important;z-index:65!important;background:#071421!important;border-bottom:1px solid #b9772a!important;padding:0 18px 10px!important;
}
.ds-mars-branded-header + .site-nav .site-nav__inner{
  width:min(100%,1720px)!important;margin:0 auto!important;display:flex!important;flex-wrap:wrap!important;align-items:center!important;justify-content:center!important;
  gap:4px 5px!important;min-width:0!important;background:rgba(7,20,34,.82)!important;border:1px solid #1f354a!important;border-radius:11px!important;padding:5px!important;
}
.ds-mars-branded-header + .site-nav a,.ds-mars-branded-header + .site-nav a:visited{
  flex:0 1 auto!important;min-width:0!important;white-space:nowrap!important;padding:9px 10px!important;border-radius:7px!important;
  color:#f5f3ef!important;text-decoration:none!important;font:720 clamp(.76rem,.8vw,.9rem)/1.15 system-ui,sans-serif!important;
}
.ds-mars-branded-header + .site-nav a:hover,.ds-mars-branded-header + .site-nav a:focus-visible{
  background:#55301f!important;color:#fff!important;outline:2px solid var(--dsm-gold,#d2a94e)!important;outline-offset:1px!important;
}
.ds-mars-branded-header + .site-nav .mars-nav-link{background:#192d3e!important;border:1px solid #c99634!important;color:#fff!important}
@media(max-width:1024px){
  .ds-mars-branded-header .site-header__inner{min-height:76px!important;padding:9px 12px!important;gap:8px!important}
  .ds-mars-branded-header + .site-nav{padding:0 10px 8px!important}
  .ds-mars-branded-header + .site-nav .site-nav__inner{justify-content:flex-start!important;overflow-x:auto!important;flex-wrap:nowrap!important;scrollbar-width:thin!important}
}
@media(max-width:600px){
  .ds-mars-branded-header .ds-mars-home-brand:before{width:52px!important;height:52px!important;flex-basis:52px!important}
  .ds-mars-branded-header .ds-mars-home-brand__copy small,.ds-mars-branded-header .ds-mars-home-brand__copy em{display:none!important}
  .ds-mars-branded-header .ds-mars-home-brand__copy strong{font-size:1.25rem!important}
  .ds-mars-branded-header .site-header__actions .btn-soutien{display:none!important}
}


/* SOURCE C: academy prerequisite path v656 */
/* V6.56 — explicit learning-path prerequisites for Space Academy. */
.academy-path-v656{margin:1.05rem 0 1.5rem;padding:.9rem 1rem;border-left:4px solid #b86732;background:rgba(245,239,228,.68);border-radius:0 8px 8px 0;font-size:.94rem;line-height:1.55}
.academy-path-v656 p{margin:.2rem 0}.academy-path-v656 a{font-weight:650}.academy-path-v656 strong{letter-spacing:.01em}
@media(max-width:696px){.academy-path-v656{margin:.85rem 0 1.2rem;padding:.8rem .85rem;font-size:.92rem}}



/* ==========================================================================\n   R91 explicit compatibility closure - reconstructed from current DOM.\n   Purpose: replace ten irrecoverable historical CSS dependencies without\n   impersonating their filenames. Later R73-R82/sitewide CSS remains authoritative.\n   ========================================================================== */
:root{
  --r91-ink:#203347;--r91-muted:#526578;--r91-paper:#fffdf9;--r91-soft:#f3f6f8;
  --r91-line:#c9d4dc;--r91-navy:#0a2134;--r91-blue:#174f7a;--r91-gold:#d99d34;
  --r91-warn:#8a4726;--r91-good:#275f4b;
}
html#ds-mars-root body.academy-module-page{background:#071522;color:var(--r91-ink);font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
html#ds-mars-root body.academy-module-page .academy-portal-main{background:#f5f7f9;color:var(--r91-ink);box-sizing:border-box;min-width:0;padding:clamp(1rem,2vw,2rem)}
html#ds-mars-root body.academy-module-page .academy-wrap{width:min(100%,1120px);margin:0 auto;min-width:0}
html#ds-mars-root body.academy-module-page .academy-course-article{background:var(--r91-paper);border:1px solid #d8e0e6;border-radius:16px;padding:clamp(1rem,2.2vw,2rem);box-shadow:0 12px 34px rgba(17,42,61,.08);overflow-wrap:anywhere}
html#ds-mars-root body.academy-module-page .academy-course-article>header{margin:-.25rem 0 1.4rem;padding:0 0 1.1rem;border-bottom:1px solid #dce4e9}
html#ds-mars-root body.academy-module-page .academy-kicker{margin:0 0 .45rem;color:#9b5a23;font-weight:900;letter-spacing:.09em;text-transform:uppercase;font-size:.79rem}
html#ds-mars-root body.academy-module-page .academy-course-article h1{margin:.15rem 0 .75rem;color:#173451;font-size:clamp(2rem,4vw,3.4rem);line-height:1.02;letter-spacing:-.025em}
html#ds-mars-root body.academy-module-page .academy-course-article h2{margin:2rem 0 .8rem;color:#173b5f;font-size:clamp(1.45rem,2.2vw,2rem);line-height:1.15}
html#ds-mars-root body.academy-module-page .academy-course-article h3{margin:1.55rem 0 .65rem;color:#244967;font-size:clamp(1.15rem,1.5vw,1.42rem);line-height:1.2}
html#ds-mars-root body.academy-module-page .academy-course-article h4{margin:1rem 0 .45rem;color:#31536d;line-height:1.25}
html#ds-mars-root body.academy-module-page .academy-course-article :is(p,li,dd){line-height:1.67}
html#ds-mars-root body.academy-module-page .academy-lead{max-width:78ch;color:#43596c;font-size:clamp(1.05rem,.35vw + 1rem,1.18rem);line-height:1.7}
html#ds-mars-root body.academy-module-page a{overflow-wrap:anywhere}
html#ds-mars-root body.academy-module-page .academy-course-article a{color:#0d619c;text-decoration-thickness:.08em;text-underline-offset:.14em}
html#ds-mars-root body.academy-module-page :is(code,kbd,samp){font-family:ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",monospace}
html#ds-mars-root body.academy-module-page code{background:#eef3f6;color:#17344b;border:1px solid #d1dce3;border-radius:5px;padding:.08em .3em;white-space:normal;overflow-wrap:anywhere}
html#ds-mars-root body.academy-module-page pre{max-width:100%;overflow:auto;background:#0e2639;color:#edf6fc;border-radius:10px;padding:1rem}
html#ds-mars-root body.academy-module-page table{width:100%;border-collapse:collapse;margin:1.2rem 0;background:#fff;font-size:.95rem}
html#ds-mars-root body.academy-module-page th,html#ds-mars-root body.academy-module-page td{border:1px solid #cdd8df;padding:.65rem .7rem;vertical-align:top;text-align:left}
html#ds-mars-root body.academy-module-page th{background:#eaf1f5;color:#173850;font-weight:850}
html#ds-mars-root body.academy-module-page .table-wrap{max-width:100%;overflow-x:auto}

/* Learning path / zero-prerequisite / maturity cards. */
html#ds-mars-root body.academy-module-page :is(.academy-zero-prereq,.academy-check,.academy-note,.academy-depth-note,.academy-deepening,.academy-deep-dive,.academy-practice,.academy-expansion-v646,.academy-concept-completion,.academy-maturity-maxi,.zero-concept){margin:1.15rem 0;padding:1rem 1.05rem;border:1px solid #ccd9e2;border-radius:12px;background:#f8fbfd;box-shadow:0 4px 14px rgba(20,55,78,.04)}
html#ds-mars-root body.academy-module-page .academy-zero-prereq{border-left:5px solid #b86a34;background:#fff9f2}
html#ds-mars-root body.academy-module-page :is(.zero-warning,.academy-warning){margin:.8rem 0;padding:.75rem .85rem;border-left:4px solid #bd6b37;background:#fff5e8;color:#603a21;border-radius:0 8px 8px 0}
html#ds-mars-root body.academy-module-page :is(.zero-plain,.academy-note){color:#304a5f}
html#ds-mars-root body.academy-module-page :is(.zero-mission,.academy-page1-question){margin:1rem 0;padding:.85rem 1rem;background:#eaf4fb;border:1px solid #c4dbea;border-radius:10px;color:#1b4865}
html#ds-mars-root body.academy-module-page :is(.academy-page1-outcomes,.academy-page1-intuition,.academy-page1-fact,.academy-page1-node-index){margin:.85rem 0;padding:.85rem 1rem;border-radius:10px;background:#f4f8fa;border:1px solid #d1dde4}

/* Formula / proof / worked solution grammar. */
html#ds-mars-root body.academy-module-page :is(.academy-formula,.academy-formula-proof,.r75-formula,.r73-formula,.r81-formula,.r82-formula,.r90-formula){margin:1.35rem 0;padding:1rem 1.05rem;border:1px solid #aebfcc;border-radius:12px;background:#f7fbfd;color:#1e3344;box-shadow:0 5px 18px rgba(12,47,70,.05)}
html#ds-mars-root body.academy-module-page :is(.formula-display,.academy-formula-display){margin:.8rem 0;padding:.8rem 1rem;background:#e9f1f5;border-left:4px solid #2e7099;border-radius:6px;color:#142f44;font-weight:750;overflow-wrap:anywhere}
html#ds-mars-root body.academy-module-page :is(.academy-proof,.academy-formula-proof,.academy-solution-reasoning){margin:.8rem 0;border:1px solid #ccd7de;border-radius:9px;overflow:hidden;background:#fff}
html#ds-mars-root body.academy-module-page :is(.academy-proof,.academy-formula-proof,.academy-solution-reasoning) dt{padding:.55rem .75rem;background:#eaf1f5;color:#20445e;font-weight:850}
html#ds-mars-root body.academy-module-page :is(.academy-proof,.academy-formula-proof,.academy-solution-reasoning) dd{margin:0;padding:.65rem .8rem;border-bottom:1px solid #e0e7eb;background:#fff}
html#ds-mars-root body.academy-module-page :is(.academy-calc-steps,.r69-calc-steps,.ds-worked-solution-r22){margin:.8rem 0;padding:.85rem 1rem;background:#f1f6f8;border:1px solid #d0dce3;border-radius:9px}

/* Exercises and corrections must remain visually paired. */
html#ds-mars-root body.academy-module-page .academy-exercise{margin:1rem 0;padding:.95rem 1rem;border:1px solid #d3b27c;border-left:5px solid #c1842e;border-radius:10px;background:#fff9ed;color:#3c3327}
html#ds-mars-root body.academy-module-page .academy-solution{margin:1rem 0 1.35rem;padding:.95rem 1rem;border:1px solid #9fc5b6;border-left:5px solid #397861;border-radius:10px;background:#f2fbf7;color:#244a3b}
html#ds-mars-root body.academy-module-page details.academy-exercise,html#ds-mars-root body.academy-module-page details[class*="guided-solution"],html#ds-mars-root body.academy-module-page details[class*="autonomous-solution"]{margin:.7rem 0;padding:.65rem .8rem;border:1px solid #c6d4dd;border-radius:8px;background:#fff}
html#ds-mars-root body.academy-module-page details>summary{cursor:pointer;font-weight:800;color:#214b68}

/* Figures and zoomable media. */
html#ds-mars-root body.academy-module-page :is(.academy-figure,figure){max-width:100%;margin:1.25rem auto}
html#ds-mars-root body.academy-module-page :is(.academy-figure,figure) img{display:block;max-width:100%;height:auto;margin:0 auto;border-radius:10px}
html#ds-mars-root body.academy-module-page :is(figcaption,.mars-figure-caption){margin:.45rem auto 0;max-width:92%;color:#5b6b78;font-size:.88rem;line-height:1.45;text-align:center}

/* Buttons / download / course pager. */
html#ds-mars-root body.academy-module-page :is(.ds-btn,.academy-download-row a,.ds-course-pager a){display:inline-flex;align-items:center;justify-content:center;gap:.35rem;min-height:42px;padding:.65rem .9rem;border-radius:9px;text-decoration:none;font-weight:820;line-height:1.15}
html#ds-mars-root body.academy-module-page :is(.ds-btn--primary,.academy-download-row a){background:#174f7a;color:#fff;border:1px solid #174f7a}
html#ds-mars-root body.academy-module-page :is(.ds-btn--secondary,.ds-btn--ghost,.ds-course-pager a){background:#fff;color:#214a67;border:1px solid #adc1cf}
html#ds-mars-root body.academy-module-page .academy-download-row{display:flex;gap:.65rem;flex-wrap:wrap;margin:1rem 0 1.3rem}
html#ds-mars-root body.academy-module-page .ds-course-pager{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:.7rem;align-items:center;margin:2rem 0 .5rem;padding-top:1.2rem;border-top:1px solid #d7e0e5}
html#ds-mars-root body.academy-module-page .ds-course-pager__next{justify-self:end;text-align:right}.ds-course-pager__index{text-align:center;font-weight:850;color:#4c6070}

/* Language switcher rebuilt independently of the lost historical contract. */
html#ds-mars-root .site-language-switcher>summary{display:flex;align-items:center;gap:.45rem;min-height:42px;padding:.55rem .7rem;border:1px solid #3b566c;border-radius:8px;background:#10283d;color:#fff;cursor:pointer;list-style:none;font-weight:800}
html#ds-mars-root .site-language-switcher>summary::-webkit-details-marker{display:none}
html#ds-mars-root .site-language-switcher__flags{display:flex;gap:.24rem;align-items:center}
html#ds-mars-root .site-language-switcher__flag,html#ds-mars-root .site-language-switcher__option-flag{display:block;width:24px;height:17px;object-fit:cover;border-radius:2px;box-shadow:0 0 0 1px rgba(255,255,255,.35)}
html#ds-mars-root .site-language-switcher__panel{min-width:230px;padding:.45rem;background:#0b2032;border:1px solid #3b566c;border-radius:10px;box-shadow:0 14px 34px rgba(0,0,0,.35)}
html#ds-mars-root .site-language-switcher__option{display:flex!important;align-items:center;gap:.65rem;padding:.6rem .65rem!important;border-radius:7px;color:#fff!important;text-decoration:none!important}
html#ds-mars-root .site-language-switcher__option:hover,html#ds-mars-root .site-language-switcher__option:focus-visible{background:#57301f!important;outline:2px solid #e8b356;outline-offset:1px}
html#ds-mars-root .site-language-switcher__option-main{display:flex;flex-direction:column;line-height:1.15}.site-language-switcher__option-name{font-weight:800}

/* Footer. */
html#ds-mars-root body.academy-module-page .mars-footer{background:#061521;color:#dce7ee;border-top:1px solid #29485d;padding:1.2rem}
html#ds-mars-root body.academy-module-page .mars-footer a{color:#ffd27b}
html#ds-mars-root body.academy-module-page .mars-footer__box{width:min(100%,1180px);margin:0 auto}

/* Responsive Academy content reflow. */
@media(max-width:1024px){
 html#ds-mars-root body.academy-module-page .academy-portal-main{padding:.8rem}
 html#ds-mars-root body.academy-module-page .academy-course-article{border-radius:12px;padding:1rem}
 html#ds-mars-root body.academy-module-page .ds-course-pager{grid-template-columns:1fr 1fr}.ds-course-pager__index{grid-column:1/-1;grid-row:1}.ds-course-pager__prev{grid-column:1}.ds-course-pager__next{grid-column:2}
}
@media(max-width:600px){
 html#ds-mars-root body.academy-module-page .academy-course-article{padding:.85rem}
 html#ds-mars-root body.academy-module-page table{font-size:.86rem}
 html#ds-mars-root body.academy-module-page th,html#ds-mars-root body.academy-module-page td{padding:.5rem}
 html#ds-mars-root body.academy-module-page .academy-download-row{display:grid;grid-template-columns:1fr}.academy-download-row a{width:100%}
}

/* Print contract reconstructed from current printable DOM. */
@media print{
 @page{size:A4;margin:12mm 12mm 14mm}
 html,body{background:#fff!important;color:#111!important;overflow:visible!important}
 html#ds-mars-root body.academy-module-page{font-size:9.25pt!important;line-height:1.35!important;background:#fff!important}
 html#ds-mars-root body.academy-module-page :is(.mars-header,.mars-system-sidebar,.ds-mobile-nav-toggle,.ds-mobile-sidebar-toggle,.mars-footer,.academy-download-row,.ds-course-pager,.skip-link){display:none!important}
 html#ds-mars-root body.academy-module-page .mars-portal-frame{display:block!important;width:auto!important;max-width:none!important;margin:0!important;background:#fff!important}
 html#ds-mars-root body.academy-module-page .mars-portal-main,html#ds-mars-root body.academy-module-page .academy-portal-main{display:block!important;width:auto!important;max-width:none!important;margin:0!important;padding:0!important;background:#fff!important;color:#111!important}
 html#ds-mars-root body.academy-module-page .academy-wrap,html#ds-mars-root body.academy-module-page .academy-course-article{width:auto!important;max-width:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:#fff!important;color:#111!important}
 html#ds-mars-root body.academy-module-page .academy-course-article>header{margin:0 0 4mm!important;padding:0 0 3mm!important}
 html#ds-mars-root body.academy-module-page .academy-course-article h1{font-size:22pt!important;color:#111!important}.academy-course-article h2{font-size:15pt!important;color:#111!important}.academy-course-article h3{font-size:12pt!important;color:#111!important}
 html#ds-mars-root body.academy-module-page :is(p,li,dd){orphans:3;widows:3}
 html#ds-mars-root body.academy-module-page :is(h1,h2,h3,h4,dt,summary,figcaption){break-after:avoid-page;page-break-after:avoid}
 html#ds-mars-root body.academy-module-page :is(.academy-exercise,.academy-solution,.academy-note,.academy-check,.academy-zero-prereq,.academy-page1-outcomes,.academy-page1-intuition,.academy-page1-fact,.academy-page1-question,.academy-path-v656,figure){break-inside:avoid-page;page-break-inside:avoid}
 html#ds-mars-root body.academy-module-page :is(.academy-formula,.academy-formula-proof,.r75-formula,.r73-formula,.r81-formula,.r82-formula,.r90-formula,.academy-calc-steps){background:#fff!important;color:#111!important;border-color:#9eaab2!important;box-shadow:none!important}
 html#ds-mars-root body.academy-module-page :is(.academy-formula,.r75-formula,.r73-formula,.r81-formula,.r82-formula,.r90-formula){break-inside:auto!important;page-break-inside:auto!important}
 html#ds-mars-root body.academy-module-page :is(.formula-display,.academy-formula-display,code){background:#f3f3f3!important;color:#111!important;border-color:#aaa!important}
 html#ds-mars-root body.academy-module-page a{color:#111!important;text-decoration:none!important}
 html#ds-mars-root body.academy-module-page img{max-width:100%!important;height:auto!important;break-inside:avoid-page}
 html#ds-mars-root body.academy-module-page table{font-size:8pt!important;break-inside:auto}.academy-course-article tr{break-inside:avoid-page}
 details>summary{display:none!important} details>*{display:block!important}
 /* Module 26 FR: print-only densification, preserving HTML exactly. */
 html[lang="fr"] body[data-content-id="mars-space-academy-26"]{font-size:8.9pt!important;line-height:1.31!important}
 html[lang="fr"] body[data-content-id="mars-space-academy-26"] .academy-course-article h2{margin-top:3.4mm!important;margin-bottom:1.8mm!important}
 html[lang="fr"] body[data-content-id="mars-space-academy-26"] .academy-course-article h3{margin-top:2.8mm!important;margin-bottom:1.3mm!important}
 html[lang="fr"] body[data-content-id="mars-space-academy-26"] :is(.academy-formula,.academy-exercise,.academy-solution,.academy-note,.academy-check,.academy-zero-prereq,.r90-canonical-atlas,.r90-parity-matrix){margin-top:2.2mm!important;margin-bottom:2.2mm!important;padding:2.6mm!important}
 html[lang="fr"] body[data-content-id="mars-space-academy-26"] :is(p,ul,ol,dl){margin-top:1.3mm!important;margin-bottom:1.3mm!important}
}

/* R91 QA micro-fixes after first Chromium source render. */
.mars-header__inner{box-sizing:border-box!important}
@media(max-width:600px){
 html#ds-mars-root body.academy-module-page .academy-course-article table{display:block!important;width:100%!important;max-width:100%!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch}
 html#ds-mars-root body.academy-module-page .academy-course-article :is(th,td){min-width:0!important}
}
@media(max-width:600px){
 html#ds-mars-root body.academy-module-page .academy-course-article{overflow-x:clip!important}
 html#ds-mars-root body.academy-module-page .academy-course-article table{contain:inline-size layout paint!important}
}

/* R91 accessibility closure — skip link is visually hidden until keyboard focus. */
.skip-link{
  position:fixed!important;left:12px!important;top:12px!important;z-index:10000!important;
  display:block!important;width:auto!important;height:auto!important;margin:0!important;padding:10px 14px!important;
  overflow:visible!important;clip:auto!important;white-space:nowrap!important;
  border:2px solid #f1bb4e!important;border-radius:8px!important;background:#071522!important;color:#fff!important;
  font:800 .95rem/1.2 system-ui,sans-serif!important;text-decoration:none!important;
  transform:translateY(calc(-100% - 28px))!important;transition:transform .15s ease!important;
}
.skip-link:focus,.skip-link:focus-visible{transform:translateY(0)!important;outline:3px solid #fff!important;outline-offset:2px!important}

/* R91 PACKAGE visual closure — Mars Bible lightbox must be absent from document flow while closed. */
html#ds-mars-root body.academy-module-page .mars-lightbox[aria-hidden="true"]{display:none!important}
html#ds-mars-root body.academy-module-page .mars-lightbox{
  position:fixed!important;inset:0!important;z-index:10050!important;
  display:flex!important;flex-direction:column!important;box-sizing:border-box!important;
  width:100vw!important;height:100dvh!important;margin:0!important;padding:12px!important;
  overflow:hidden!important;background:rgba(2,8,14,.96)!important;color:#fff!important;
}
html#ds-mars-root body.academy-module-page .mars-lightbox__bar{display:flex!important;justify-content:flex-end!important;align-items:center!important;flex:0 0 auto!important;margin:0 0 8px!important}
html#ds-mars-root body.academy-module-page .mars-lightbox__close{
  min-width:44px!important;min-height:44px!important;padding:9px 13px!important;border:1px solid #e0ad4c!important;border-radius:8px!important;
  background:#10283d!important;color:#fff!important;font:850 .92rem/1 system-ui,sans-serif!important;cursor:pointer!important;
}
html#ds-mars-root body.academy-module-page .mars-lightbox__close:hover,html#ds-mars-root body.academy-module-page .mars-lightbox__close:focus-visible{background:#633621!important;outline:3px solid #ffd06b!important;outline-offset:2px!important}
html#ds-mars-root body.academy-module-page .mars-lightbox__stage{display:flex!important;align-items:center!important;justify-content:center!important;flex:1 1 auto!important;min-height:0!important;overflow:auto!important}
html#ds-mars-root body.academy-module-page .mars-lightbox__stage img{display:block!important;max-width:96vw!important;max-height:calc(100dvh - 118px)!important;width:auto!important;height:auto!important;object-fit:contain!important;border-radius:8px!important;box-shadow:0 20px 55px rgba(0,0,0,.55)!important}
html#ds-mars-root body.academy-module-page .mars-lightbox__caption{flex:0 0 auto!important;max-width:min(92vw,1100px)!important;margin:8px auto 0!important;color:#eef4f8!important;font-size:.9rem!important;line-height:1.4!important;text-align:center!important}
html#ds-mars-root body.academy-module-page .mars-bible-zoomable{cursor:zoom-in!important}
html#ds-mars-root body.academy-module-page.mars-lightbox-open{overflow:hidden!important}

/* R91 PACKAGE visual closure — glossary popover must also be absent from document flow while closed. */
html#ds-mars-root body.academy-module-page .mars-glossary-popover[aria-hidden="true"]{display:none!important}
html#ds-mars-root body.academy-module-page .mars-glossary-popover.is-open[aria-hidden="false"]{
  display:block!important;position:fixed!important;z-index:10040!important;box-sizing:border-box!important;
  max-width:min(560px,calc(100vw - 24px))!important;max-height:min(78vh,720px)!important;overflow:auto!important;
  padding:16px!important;border:1px solid #49667c!important;border-radius:14px!important;
  background:#071827!important;color:#f7f5ef!important;box-shadow:0 22px 60px rgba(0,0,0,.52)!important;
}
html#ds-mars-root body.academy-module-page .mars-glossary-popover__head{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:12px!important;margin:0 0 12px!important}
html#ds-mars-root body.academy-module-page .mars-glossary-popover__head h3{margin:.2rem 0 0!important;color:#fff!important}
html#ds-mars-root body.academy-module-page .mars-glossary-popover__eyebrow{margin:0!important;color:#f1bb4e!important;font-size:.72rem!important;font-weight:850!important;letter-spacing:.08em!important;text-transform:uppercase!important}
html#ds-mars-root body.academy-module-page .mars-glossary-popover__close{
  flex:0 0 auto!important;min-width:44px!important;min-height:44px!important;padding:8px 12px!important;border:1px solid #d7a54d!important;border-radius:8px!important;
  background:#10283d!important;color:#fff!important;font:850 1rem/1 system-ui,sans-serif!important;cursor:pointer!important;
}
html#ds-mars-root body.academy-module-page .mars-glossary-popover__close:hover,html#ds-mars-root body.academy-module-page .mars-glossary-popover__close:focus-visible{background:#633621!important;outline:3px solid #ffd06b!important;outline-offset:2px!important}
html#ds-mars-root body.academy-module-page .mars-glossary-popover__body{display:grid!important;gap:10px!important}
html#ds-mars-root body.academy-module-page .mars-glossary-popover__block{padding:10px 12px!important;border:1px solid #29475d!important;border-radius:10px!important;background:#0c2235!important;color:#eef3f6!important}
html#ds-mars-root body.academy-module-page .mars-glossary-popover__block p{margin:.35rem 0 0!important;color:#eef3f6!important}
html#ds-mars-root body.academy-module-page .mars-glossary-popover__label{display:block!important;color:#f3c76e!important;font-weight:850!important}
html#ds-mars-root body.academy-module-page .mars-glossary-popover__links,html#ds-mars-root body.academy-module-page .mars-glossary-popover__related{display:flex!important;flex-wrap:wrap!important;gap:7px!important;margin-top:7px!important}
html#ds-mars-root body.academy-module-page .mars-glossary-popover a{color:#ffd477!important}
@media(max-width:720px){
 html#ds-mars-root body.academy-module-page .mars-glossary-popover.is-open[aria-hidden="false"]{left:12px!important;right:12px!important;top:auto!important;bottom:12px!important;width:auto!important;max-width:none!important;max-height:72dvh!important;padding:14px!important}
}
