/* Space Academy visual owner contract R10-R4-R1 */
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,clamp(1.25rem,2.6vw,3rem)) 3rem!important;background:#eef2f5!important;color:#20354f!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;padding:clamp(1.35rem,2.6vw,2.4rem)!important;background:#fffdf8!important;border:1px solid rgba(81,105,121,.28)!important;box-shadow:0 14px 38px rgba(16,35,49,.08)!important}
body.academy-module-page .academy-course-article{min-width:0;max-width:100%;color:#20354f}
body.academy-module-page .academy-wrap h1{font-size:clamp(2rem,2.8vw,2.8rem)!important;line-height:1.08!important;max-width:30ch!important;color:#102b3c!important;margin-top:.2rem!important}
body.academy-module-page .academy-wrap h2{font-size:clamp(1.36rem,1.65vw,1.72rem)!important;line-height:1.20!important;color:#153d57!important;margin-top:2.15rem!important;margin-bottom:.72rem!important;border-top:1px solid #ddcaa8!important;padding-top:.82em!important}
body.academy-module-page .academy-wrap h3{font-size:clamp(1.08rem,1.28vw,1.32rem)!important;line-height:1.25!important;color:#7b3824!important;margin-top:1.5em!important}
body.academy-module-page .academy-wrap :is(p,li){font-size:1rem!important;line-height:1.72!important}
body.academy-module-page :is(.academy-note,.academy-exercise,.academy-solution){border-left:5px solid #b86c35!important;padding:14px 18px!important;margin:20px 0!important;background:#fff1d7!important;color:#20354f!important;border-radius:0 10px 10px 0!important}
body.academy-module-page .academy-solution{border-color:#417346!important;background:#eef8ed!important}
body.academy-module-page .academy-formula{font-family:ui-monospace,SFMono-Regular,Consolas,monospace!important;background:#102b3c!important;color:#fff!important;padding:15px!important;border-radius:8px!important;overflow-x:auto!important;white-space:pre-wrap!important;overflow-wrap:normal!important;word-break:normal!important}
body.academy-module-page .academy-sources{margin-top:2rem;padding:1rem 1.2rem;border-radius:12px;background:#f2f5f7;border:1px solid rgba(81,105,121,.28)}
body.academy-module-page .academy-download-row{display:flex;gap:.7rem;flex-wrap:wrap;align-items:center;margin:1rem 0 1.4rem}
.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,#17324d)!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border-color:#31536f!important}.ds-btn--secondary:hover,.ds-btn--secondary:focus-visible{background:var(--ds-btn-navy-hover,#0f2538)!important;border-color:var(--ds-btn-gold,#f5c86b)!important}
.ds-btn--current{background:var(--ds-btn-gold,#f5c86b)!important;color:#101820!important;-webkit-text-fill-color:#101820!important;border-color:#7d5a16!important}
.ds-btn--success{background:var(--ds-btn-green,#176b45)!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border-color:#0b4b2f!important}.ds-btn--success:hover,.ds-btn--success:focus-visible{background:var(--ds-btn-green-hover,#0e5133)!important;border-color:var(--ds-btn-gold,#f5c86b)!important}
.ds-btn--ghost{background:#fff!important;color:#17324d!important;-webkit-text-fill-color:#17324d!important;border-color:#8ca0b2!important}
.ds-btn:focus-visible{outline:4px solid var(--ds-btn-gold,#f5c86b)!important;outline-offset:3px!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}
body.ds-academy-hub-page .mars-portal-main{padding:clamp(1.35rem,2.4vw,2.75rem) var(--ds-page-gutter,clamp(1.25rem,2.6vw,3rem)) 3rem!important;background:#eef3f7!important;color:#20354f!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}
body.ds-academy-hub-page .ds-academy-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:1rem;margin:1.2rem auto}
body.ds-academy-hub-page .ds-academy-card{padding:1rem;border:1px solid rgba(81,105,121,.4);border-radius:12px;background:#fffaf2!important;color:#17232d!important;box-shadow:0 6px 18px rgba(16,35,49,.06)}
body.ds-academy-hub-page .ds-academy-card a{color:#5b291b!important;-webkit-text-fill-color:#5b291b!important}
@media(max-width:900px){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}}
@media(max-width:760px){body.academy-module-page .academy-wrap{padding:18px 16px!important}body.academy-module-page .academy-wrap h1{font-size:clamp(1.72rem,8.6vw,2.08rem)!important;max-width:none!important}body.ds-academy-hub-page .ds-academy-grid{grid-template-columns:1fr}}

/* Academy header parity: exact canonical header contract, scoped to Academy. */
/* Delta-Sierra Mars — canonical header contract v1 — 2026-08-30
   Single visual owner for the Mars shell outside Space Academy. */
body.ds-mars-theme-v619:is(.academy-module-page,.ds-academy-hub-page) .skip-link{
  position:fixed!important;left:12px!important;top:8px!important;z-index:2147483647!important;
  padding:.65rem .9rem!important;border-radius:.5rem!important;background:#fff!important;color:#071018!important;
  font-weight:800!important;box-shadow:0 4px 18px rgba(0,0,0,.28)!important;
  transform:translateY(-180%)!important;transition:transform .12s ease!important;
}
body.ds-mars-theme-v619:is(.academy-module-page,.ds-academy-hub-page) .skip-link:focus,
body.ds-mars-theme-v619:is(.academy-module-page,.ds-academy-hub-page) .skip-link:focus-visible{
  transform:translateY(0)!important;left:12px!important;
}
body.ds-mars-theme-v619:is(.academy-module-page,.ds-academy-hub-page) .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;color:#fff!important;
}
body.ds-mars-theme-v619:is(.academy-module-page,.ds-academy-hub-page) .mars-header__inner{
  min-height:72px!important;align-items:center!important;
}
body.ds-mars-theme-v619:is(.academy-module-page,.ds-academy-hub-page) .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:is(.academy-module-page,.ds-academy-hub-page) .ds-mars-home-brand::before,
body.ds-mars-theme-v619:is(.academy-module-page,.ds-academy-hub-page) .ds-mars-home-brand::after{
  content:none!important;background:none!important;display:none!important;
}
body.ds-mars-theme-v619:is(.academy-module-page,.ds-academy-hub-page) .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:is(.academy-module-page,.ds-academy-hub-page) .ds-mars-home-brand__copy{
  display:flex!important;flex-direction:column!important;line-height:1!important;
}
body.ds-mars-theme-v619:is(.academy-module-page,.ds-academy-hub-page) .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:is(.academy-module-page,.ds-academy-hub-page) .ds-mars-home-brand__copy strong{
  margin-top:0!important;color:#ef7a4a!important;font-weight:900!important;font-size:1.55rem!important;letter-spacing:.05em!important;
}
body.ds-mars-theme-v619:is(.academy-module-page,.ds-academy-hub-page) .ds-mars-home-brand__copy em{
  margin-top:.25rem!important;color:#f3ce75!important;font-style:normal!important;font-weight:750!important;
  font-size:.55rem!important;letter-spacing:.035em!important;
}
/* mars-ui-v20303.js creates this control. It belongs to the mobile breakpoint only. */
body.ds-mars-theme-v619:is(.academy-module-page,.ds-academy-hub-page) .site-nav-mobile-toggle{
  display:none!important;
}
@media (max-width:900px){
  body.ds-mars-theme-v619:is(.academy-module-page,.ds-academy-hub-page) .mars-header__inner{min-height:64px!important;}
  body.ds-mars-theme-v619:is(.academy-module-page,.ds-academy-hub-page) .ds-mars-home-brand{
    grid-template-columns:44px auto!important;min-width:154px!important;gap:.5rem!important;
  }
  body.ds-mars-theme-v619:is(.academy-module-page,.ds-academy-hub-page) .ds-mars-home-brand__logo{width:42px!important;height:42px!important;}
  body.ds-mars-theme-v619:is(.academy-module-page,.ds-academy-hub-page) .ds-mars-home-brand__copy strong{font-size:1.18rem!important;}
  body.ds-mars-theme-v619:is(.academy-module-page,.ds-academy-hub-page) .ds-mars-home-brand__copy em{font-size:.48rem!important;}
}
@media (max-width:760px){
  body.ds-mars-theme-v619:is(.academy-module-page,.ds-academy-hub-page) .site-nav-mobile-toggle{
    display:flex!important;width:100%!important;align-items:center!important;justify-content:center!important;gap:.5rem!important;
    padding:.7rem .85rem!important;border:1px solid #c9d5e7!important;border-radius:10px!important;
    background:#fff!important;color:#0f315c!important;font-weight:800!important;font-size:14px!important;cursor:pointer!important;
  }
}

/* Canonical header layout ownership: neutralize legacy cascade divergence. */
body.ds-mars-theme-v619:is(.academy-module-page,.ds-academy-hub-page) .site-nav-mobile-toggle{display:none!important}
body.ds-mars-theme-v619:is(.academy-module-page,.ds-academy-hub-page) .ds-mobile-nav-toggle{display:none!important}
body.ds-mars-theme-v619:is(.academy-module-page,.ds-academy-hub-page) .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;
}
body.ds-mars-theme-v619:is(.academy-module-page,.ds-academy-hub-page) .mars-header .site-nav a,
body.ds-mars-theme-v619:is(.academy-module-page,.ds-academy-hub-page) .mars-header .site-nav a:link,
body.ds-mars-theme-v619:is(.academy-module-page,.ds-academy-hub-page) .mars-header .site-nav a:visited{
  color:#fffaf0!important;background:transparent!important;text-shadow:none!important;font-weight:760!important;
  padding:9px 9px!important;font-size:.88rem!important;white-space:nowrap!important;text-decoration:none!important;border-radius:7px!important;
}
body.ds-mars-theme-v619:is(.academy-module-page,.ds-academy-hub-page) .mars-header .site-nav a[aria-current="page"]{
  color:#fff!important;background:#1d3766!important;box-shadow:inset 0 -3px 0 #efb64d!important;
}
@media (min-width:1281px){
  body.ds-mars-theme-v619:is(.academy-module-page,.ds-academy-hub-page) .mars-header__inner.site-header__actions{
    box-sizing:border-box!important;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 lang support"!important;align-items:center!important;gap:.55rem 1rem!important;
  }
  body.ds-mars-theme-v619:is(.academy-module-page,.ds-academy-hub-page) .mars-header__inner>.ds-mars-home-brand{grid-area:brand!important;margin:0!important}
  body.ds-mars-theme-v619:is(.academy-module-page,.ds-academy-hub-page) .mars-header__inner>.site-nav{grid-area:nav!important;display:block!important;width:100%!important;min-width:0!important;margin:0!important}
  body.ds-mars-theme-v619:is(.academy-module-page,.ds-academy-hub-page) .mars-header__inner>.site-language-switcher{grid-area:lang!important;justify-self:end!important;margin:0!important}
  body.ds-mars-theme-v619:is(.academy-module-page,.ds-academy-hub-page) .mars-header__inner>.btn-soutien{grid-area:support!important;justify-self:end!important;margin:0!important;white-space:nowrap!important}
  body.ds-mars-theme-v619:is(.academy-module-page,.ds-academy-hub-page) .mars-header .site-nav__inner{display:flex!important;justify-content:center!important;align-items:center!important;flex-wrap:wrap!important;gap:4px 6px!important;width:100%!important}
}
@media (max-width:1280px){
  body.ds-mars-theme-v619:is(.academy-module-page,.ds-academy-hub-page) .mars-header__inner.site-header__actions{
    box-sizing:border-box!important;width:100%!important;max-width:none!important;margin:0!important;padding:8px 12px!important;
    display:grid!important;grid-template-columns:minmax(0,1fr) auto auto auto!important;
    grid-template-areas:"brand lang support toggle" "nav nav nav nav"!important;gap:8px!important;align-items:center!important;
  }
  body.ds-mars-theme-v619:is(.academy-module-page,.ds-academy-hub-page) .mars-header__inner>.ds-mars-home-brand{grid-area:brand!important}
  body.ds-mars-theme-v619:is(.academy-module-page,.ds-academy-hub-page) .mars-header__inner>.site-language-switcher{grid-area:lang!important;justify-self:end!important}
  body.ds-mars-theme-v619:is(.academy-module-page,.ds-academy-hub-page) .mars-header__inner>.btn-soutien{grid-area:support!important;justify-self:end!important;white-space:nowrap!important}
  body.ds-mars-theme-v619:is(.academy-module-page,.ds-academy-hub-page) .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;
  }
  body.ds-mars-theme-v619:is(.academy-module-page,.ds-academy-hub-page) .mars-header .site-nav{grid-area:nav!important;display:none!important;position:static!important;width:100%!important}
  body.ds-mars-theme-v619:is(.academy-module-page,.ds-academy-hub-page) .mars-header .site-nav.is-open{display:block!important}
  body.ds-mars-theme-v619:is(.academy-module-page,.ds-academy-hub-page) .mars-header .site-nav__inner{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:5px!important;width:100%!important}
}
@media (max-width:640px){
  body.ds-mars-theme-v619:is(.academy-module-page,.ds-academy-hub-page) .mars-header__inner.site-header__actions{
    grid-template-columns:minmax(0,1fr) auto!important;grid-template-areas:"brand toggle" "lang lang" "support support" "nav nav"!important;
  }
  body.ds-mars-theme-v619:is(.academy-module-page,.ds-academy-hub-page) .mars-header__inner>.site-language-switcher{justify-self:start!important}
  body.ds-mars-theme-v619:is(.academy-module-page,.ds-academy-hub-page) .mars-header__inner>.btn-soutien{justify-self:start!important}
  body.ds-mars-theme-v619:is(.academy-module-page,.ds-academy-hub-page) .mars-header .site-nav__inner{grid-template-columns:1fr!important}
}

/* Normalize inherited page-level differences inside the canonical header. */
html#ds-mars-root body.ds-mars-theme-v619:is(.academy-module-page,.ds-academy-hub-page){margin:0!important}
html#ds-mars-root body.ds-mars-theme-v619:is(.academy-module-page,.ds-academy-hub-page) .mars-header .site-nav__inner{
  box-sizing:border-box!important;width:100%!important;max-width:100%!important;margin:0!important;
}
html#ds-mars-root body.ds-mars-theme-v619:is(.academy-module-page,.ds-academy-hub-page) .site-language-switcher{
  position:relative!important;width:auto!important;min-width:0!important;max-width:none!important;margin:0!important;
}
html#ds-mars-root body.ds-mars-theme-v619:is(.academy-module-page,.ds-academy-hub-page) .site-language-switcher>summary{
  box-sizing:border-box!important;display:flex!important;align-items:center!important;justify-content:center!important;
  min-width:0!important;max-width:none!important;min-height:40px!important;padding:7px 9px!important;
  border:1px solid #314d62!important;border-radius:9px!important;background:#0d2236!important;color:#fff!important;cursor:pointer!important;
}
html#ds-mars-root body.ds-mars-theme-v619:is(.academy-module-page,.ds-academy-hub-page) .site-language-switcher__flags{
  display:flex!important;align-items:center!important;flex-wrap:nowrap!important;gap:4px!important;max-width:none!important;overflow:visible!important;
}
html#ds-mars-root body.ds-mars-theme-v619:is(.academy-module-page,.ds-academy-hub-page) .site-language-switcher__flag{
  width:20px!important;height:14px!important;flex:0 0 20px!important;display:block!important;
}
html#ds-mars-root body.ds-mars-theme-v619:is(.academy-module-page,.ds-academy-hub-page) .btn-soutien{
  box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;
  min-height:42px!important;padding:9px 13px!important;border:1px solid #cf725b!important;border-radius:8px!important;
  background:#b92f2b!important;color:#fff!important;-webkit-text-fill-color:#fff!important;text-decoration:none!important;
  font:800 14px/1.2 system-ui,sans-serif!important;white-space:nowrap!important;margin:0!important;
}
@media(max-width:640px){
  html#ds-mars-root body.ds-mars-theme-v619:is(.academy-module-page,.ds-academy-hub-page) .site-language-switcher>summary{min-height:36px!important;padding:6px 8px!important}
  html#ds-mars-root body.ds-mars-theme-v619:is(.academy-module-page,.ds-academy-hub-page) .btn-soutien{font-size:13px!important;min-height:40px!important;padding:8px 12px!important}
}
html#ds-mars-root body.ds-mars-theme-v619:is(.academy-module-page,.ds-academy-hub-page) .mars-header__inner.site-header__actions .site-nav__inner{
  gap:.28rem .42rem!important;
}
html#ds-mars-root body.ds-mars-theme-v619:is(.academy-module-page,.ds-academy-hub-page) .mars-header__inner.site-header__actions .site-nav__inner a,
html#ds-mars-root body.ds-mars-theme-v619:is(.academy-module-page,.ds-academy-hub-page) .mars-header__inner.site-header__actions .site-nav__inner a:link,
html#ds-mars-root body.ds-mars-theme-v619:is(.academy-module-page,.ds-academy-hub-page) .mars-header__inner.site-header__actions .site-nav__inner a:visited{
  box-sizing:border-box!important;display:flex!important;align-items:center!important;min-height:38px!important;
  font-weight:520!important;
}

/* Final authoritative breakpoints: beat historical page-specific header patches. */
@media (max-width:1280px){
  html#ds-mars-root body.ds-mars-theme-v619:is(.academy-module-page,.ds-academy-hub-page) .mars-header .mars-header__inner.site-header__actions{
    box-sizing:border-box!important;width:100%!important;max-width:none!important;min-width:0!important;margin:0!important;padding:8px 12px!important;
    display:grid!important;grid-template-columns:minmax(0,1fr) auto auto auto!important;
    grid-template-areas:"brand lang support toggle" "nav nav nav nav"!important;gap:8px!important;align-items:center!important;
  }
  html#ds-mars-root body.ds-mars-theme-v619:is(.academy-module-page,.ds-academy-hub-page) .mars-header .ds-mars-home-brand{
    grid-area:brand!important;display:grid!important;grid-template-columns:44px minmax(0,1fr)!important;gap:.5rem!important;
    min-width:154px!important;max-width:none!important;flex:none!important;margin:0!important;
  }
  html#ds-mars-root body.ds-mars-theme-v619:is(.academy-module-page,.ds-academy-hub-page) .mars-header .ds-mars-home-brand__logo{width:42px!important;height:42px!important;}
  html#ds-mars-root body.ds-mars-theme-v619:is(.academy-module-page,.ds-academy-hub-page) .mars-header .site-language-switcher{grid-area:lang!important;justify-self:end!important;}
  html#ds-mars-root body.ds-mars-theme-v619:is(.academy-module-page,.ds-academy-hub-page) .mars-header .btn-soutien{grid-area:support!important;justify-self:end!important;}
  html#ds-mars-root body.ds-mars-theme-v619:is(.academy-module-page,.ds-academy-hub-page) .mars-header .ds-mobile-nav-toggle{grid-area:toggle!important;display:inline-flex!important;}
  html#ds-mars-root body.ds-mars-theme-v619:is(.academy-module-page,.ds-academy-hub-page) .mars-header .site-nav{grid-area:nav!important;display:none!important;width:100%!important;max-width:none!important;margin:0!important;}
  html#ds-mars-root body.ds-mars-theme-v619:is(.academy-module-page,.ds-academy-hub-page) .mars-header .site-nav.is-open{display:block!important;}
}
@media (max-width:640px){
  html#ds-mars-root body.ds-mars-theme-v619:is(.academy-module-page,.ds-academy-hub-page) .mars-header .mars-header__inner.site-header__actions{
    display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;
    grid-template-areas:"brand toggle" "lang lang" "support support" "nav nav"!important;gap:8px!important;padding:8px 12px!important;
  }
  html#ds-mars-root body.ds-mars-theme-v619:is(.academy-module-page,.ds-academy-hub-page) .mars-header .ds-mars-home-brand{
    grid-template-columns:44px minmax(0,1fr)!important;min-width:154px!important;max-width:none!important;gap:.5rem!important;
  }
  html#ds-mars-root body.ds-mars-theme-v619:is(.academy-module-page,.ds-academy-hub-page) .mars-header .ds-mars-home-brand__logo{width:42px!important;height:42px!important;}
  html#ds-mars-root body.ds-mars-theme-v619:is(.academy-module-page,.ds-academy-hub-page) .mars-header .site-language-switcher{grid-area:lang!important;justify-self:start!important;max-width:none!important;}
  html#ds-mars-root body.ds-mars-theme-v619:is(.academy-module-page,.ds-academy-hub-page) .mars-header .btn-soutien{grid-area:support!important;justify-self:start!important;}
  html#ds-mars-root body.ds-mars-theme-v619:is(.academy-module-page,.ds-academy-hub-page) .mars-header .ds-mobile-nav-toggle{grid-area:toggle!important;justify-self:end!important;}
}

body.academy-module-page .academy-wrap a:not(.ds-btn),body.ds-academy-hub-page .mars-portal-main a:not(.ds-btn){color:#7b3824!important;-webkit-text-fill-color:#7b3824!important;text-decoration-thickness:.08em;text-underline-offset:.15em}
.ds-btn--primary{background:#a63d2e!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border-color:#7d2f24!important}
.ds-btn--primary:visited{color:#fff!important;-webkit-text-fill-color:#fff!important}.ds-btn--primary:hover,.ds-btn--primary:focus-visible{background:#7f2f24!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border-color:var(--ds-btn-gold,#f5c86b)!important}

/* R47 pedagogical technical map */
.ds-tech-map{margin:.8rem 0 0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.55rem;align-items:stretch}
.ds-tech-map__node{position:relative;padding:.72rem .62rem;border:1px solid rgba(93,148,180,.48);border-radius:.65rem;background:linear-gradient(180deg,rgba(9,38,57,.97),rgba(13,51,72,.97));color:#f8fafc;font-size:.86rem;line-height:1.28;text-align:center;box-shadow:0 6px 20px rgba(0,0,0,.18)}
.ds-tech-map__node strong{display:block;color:#fff;font-size:.91rem;margin-bottom:.18rem}.ds-tech-map__node span{display:block;color:#d7e7f1}
.ds-tech-map__arrow{display:flex;align-items:center;justify-content:center;color:#d86d3d;font-size:1.35rem;font-weight:800}
.ds-tech-map--chain{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) auto minmax(0,1fr) auto minmax(0,1fr)}
@media(max-width:696px){.ds-tech-map,.ds-tech-map--chain{grid-template-columns:1fr}.ds-tech-map__arrow{transform:rotate(90deg);height:1rem}.ds-tech-map__node{font-size:.9rem;padding:.72rem}}
@media print{.ds-tech-map,.ds-tech-map--chain{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:4mm;break-inside:avoid}.ds-tech-map__arrow{display:none}.ds-tech-map__node{background:#f3f6f8!important;color:#111!important;border:1px solid #777!important;box-shadow:none!important}.ds-tech-map__node strong,.ds-tech-map__node span{color:#111!important}}

/* R47 formula lesson integration */
@media screen{
  html#ds-mars-root body.mars-site.academy-module-page .academy-formula--lesson{padding:1rem 1.1rem!important;border:1px solid #66839a!important;border-radius:10px!important;background:#102b3c!important;overflow:visible!important;white-space:normal!important}
  html#ds-mars-root body.mars-site.academy-module-page .academy-formula--lesson .formula-display{display:block;margin:0 0 .85rem;padding:.7rem .8rem;border-radius:7px;background:#0a2232!important;color:#fff!important;-webkit-text-fill-color:#fff!important;overflow-x:auto;font-weight:700}
  html#ds-mars-root body.mars-site.academy-module-page .academy-formula--lesson .academy-proof,
  html#ds-mars-root body.mars-site.academy-module-page .academy-formula--lesson .academy-proof dt,
  html#ds-mars-root body.mars-site.academy-module-page .academy-formula--lesson .academy-proof dd{color:#f8fafc!important;-webkit-text-fill-color:#f8fafc!important;background:transparent!important;white-space:normal!important}
  html#ds-mars-root body.mars-site.academy-module-page .academy-formula--lesson .academy-proof dt{font-weight:800;margin-top:.6rem;color:#d9edf7!important;-webkit-text-fill-color:#d9edf7!important}
}
@media print{
  html#ds-mars-root body.mars-site.academy-module-page .academy-formula--lesson{background:#fff!important;color:#111!important;border:1px solid #777!important;break-inside:avoid-page}
  html#ds-mars-root body.mars-site.academy-module-page .academy-formula--lesson .formula-display,
  html#ds-mars-root body.mars-site.academy-module-page .academy-formula--lesson .academy-proof,
  html#ds-mars-root body.mars-site.academy-module-page .academy-formula--lesson .academy-proof dt,
  html#ds-mars-root body.mars-site.academy-module-page .academy-formula--lesson .academy-proof dd{background:#fff!important;color:#111!important;-webkit-text-fill-color:#111!important}
}

/* R49 print contract: interactive course navigation is intentionally omitted from manuals to prevent navigation-only pages. */
@media print{
  .ds-course-pager{display:none!important}
  .academy-module-page h2,.academy-module-page h3{break-after:avoid-page}
}

/* R49 source appendix compaction: keep citation links together and avoid lone-source final pages. */
@media print{
  .academy-module-page article > h2:last-of-type{font-size:12pt!important;line-height:1.2!important;margin:3mm 0 1mm!important;break-after:avoid-page!important}
  .academy-module-page article > h2:last-of-type + ul{font-size:8.6pt!important;line-height:1.18!important;margin:0!important;padding-left:5mm!important;break-inside:avoid-page!important}
  .academy-module-page article > h2:last-of-type + ul li{margin:.4mm 0!important}
}

/* DS ACADEMY 59-VISUAL-CARDS — 2026-09-18 */
body.ds-academy-hub-page .mars-portal-main{
  background:
    radial-gradient(circle at 78% 5%,rgba(220,91,43,.18),transparent 28rem),
    radial-gradient(circle at 18% 32%,rgba(22,93,139,.16),transparent 32rem),
    linear-gradient(180deg,#07131f 0%,#06111c 54%,#071622 100%)!important;
  color:#dfeaf2!important;
}
body.ds-academy-hub-page .mars-portal-main>h1{color:#f7fbff!important;text-shadow:0 3px 18px rgba(0,0,0,.28)!important}
body.ds-academy-hub-page .mars-portal-main>.eyebrow{color:#ff8a43!important;font-weight:900!important;letter-spacing:.12em!important}
body.ds-academy-hub-page .mars-portal-main>.lead{color:#c8d7e2!important;max-width:76ch!important}
body.ds-academy-hub-page .ds-academy-portal-visual{
  background:#0b1b29!important;border:1px solid rgba(255,139,67,.32)!important;
  box-shadow:0 20px 48px rgba(0,0,0,.28)!important;border-radius:18px!important;
  padding:.7rem!important;max-width:540px!important;margin:1.35rem auto 2rem!important;
}
body.ds-academy-hub-page .ds-academy-portal-visual img{border-radius:12px!important;display:block!important;width:100%!important;height:auto!important}
body.ds-academy-hub-page .ds-academy-portal-visual figcaption{color:#aebfcb!important;font-size:.9rem!important;padding:.65rem .35rem .15rem!important}
body.ds-academy-hub-page .ds-academy-grid{
  display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:1.15rem!important;max-width:1180px!important;margin:1.5rem auto 2.25rem!important;
  align-items:stretch!important;
}
body.ds-academy-hub-page .ds-academy-card{
  position:relative!important;isolation:isolate!important;overflow:hidden!important;
  min-height:330px!important;padding:1.05rem 1.05rem 1.1rem!important;
  display:flex!important;flex-direction:column!important;justify-content:flex-end!important;
  border:1px solid rgba(100,164,203,.36)!important;border-radius:16px!important;
  background-color:#0a1b29!important;
  background-image:
    linear-gradient(180deg,rgba(2,8,14,.02) 0%,rgba(2,9,16,.08) 28%,rgba(4,14,23,.67) 55%,rgba(4,15,25,.96) 78%,rgba(4,15,25,.995) 100%),
    var(--academy-card-bg)!important;
  background-position:center!important;background-size:cover!important;background-repeat:no-repeat!important;
  color:#edf5fa!important;
  box-shadow:0 12px 30px rgba(0,0,0,.28)!important;
  transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease!important;
}
body.ds-academy-hub-page .ds-academy-card::after{
  content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  border-radius:inherit;box-shadow:inset 0 0 0 1px rgba(255,255,255,.035);
}
body.ds-academy-hub-page .ds-academy-card:hover,
body.ds-academy-hub-page .ds-academy-card:focus-within{
  transform:translateY(-4px)!important;border-color:rgba(255,139,67,.72)!important;
  box-shadow:0 18px 38px rgba(0,0,0,.38),0 0 0 1px rgba(255,139,67,.12)!important;
}
body.ds-academy-hub-page .ds-academy-card>*{position:relative;z-index:1}
body.ds-academy-hub-page .ds-academy-card .ds-module-num{
  position:absolute!important;top:1rem!important;left:1rem!important;margin:0!important;
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  width:2.4rem!important;height:2.4rem!important;border-radius:999px!important;
  background:linear-gradient(135deg,#ff7a32,#bd4525)!important;color:#fff!important;
  font-weight:950!important;letter-spacing:.04em!important;box-shadow:0 6px 18px rgba(0,0,0,.28)!important;
  border:1px solid rgba(255,193,145,.55)!important;
}
body.ds-academy-hub-page .ds-academy-card h2{
  margin:0 0 .58rem!important;font-size:clamp(1.06rem,1.25vw,1.24rem)!important;
  line-height:1.18!important;text-wrap:balance!important;text-shadow:0 2px 10px rgba(0,0,0,.65)!important;
}
body.ds-academy-hub-page .ds-academy-card h2 a{
  color:#fff!important;-webkit-text-fill-color:#fff!important;text-decoration:none!important;
}
body.ds-academy-hub-page .ds-academy-card h2 a::after{content:"  →";color:#ff9a4b!important;font-weight:950!important;white-space:nowrap!important}
body.ds-academy-hub-page .ds-academy-card h2 a:hover,
body.ds-academy-hub-page .ds-academy-card h2 a:focus-visible{color:#ffd6b4!important;-webkit-text-fill-color:#ffd6b4!important}
body.ds-academy-hub-page .ds-academy-card>p:not(.ds-module-num){
  margin:0!important;color:#cad8e2!important;font-size:.94rem!important;line-height:1.48!important;
  text-shadow:0 1px 8px rgba(0,0,0,.72)!important;
}
body.ds-academy-hub-page .ds-academy-card :is(.mars-term,.ds-core-info-trigger){color:#e8f3fa!important;border-bottom-color:#78badd!important}
body.ds-academy-hub-page .mars-portal-main>section{
  color:#dfeaf2!important;background:#0a1a28!important;border:1px solid rgba(94,151,188,.25)!important;
  border-radius:15px!important;padding:1rem 1.2rem!important;margin-top:1.3rem!important;
}
body.ds-academy-hub-page .mars-portal-main>section h2{color:#fff!important;margin-top:0!important}
body.ds-academy-hub-page .mars-portal-main>section a{color:#ff9a4b!important;-webkit-text-fill-color:#ff9a4b!important}
@media(max-width:1050px){body.ds-academy-hub-page .ds-academy-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:760px){
  body.ds-academy-hub-page .ds-academy-grid{grid-template-columns:1fr!important;gap:1rem!important}
  body.ds-academy-hub-page .ds-academy-card{min-height:300px!important}
  body.ds-academy-hub-page .ds-academy-portal-visual{max-width:100%!important}
}
@media(prefers-reduced-motion:reduce){body.ds-academy-hub-page .ds-academy-card{transition:none!important}}


/* DS ACADEMY PREMIUM CARD SYSTEM V3 — 2026-09-18
   Purpose: image-forward premium catalog without touching course routes/content. */
html#ds-mars-root body.ds-academy-hub-page .mars-portal-main{
  background:
    radial-gradient(circle at 83% 3%,rgba(224,91,38,.20),transparent 32rem),
    radial-gradient(circle at 15% 28%,rgba(17,85,132,.18),transparent 34rem),
    linear-gradient(180deg,#07131f 0%,#06111c 52%,#071622 100%)!important;
  color:#e7f1f7!important;
}
html#ds-mars-root body.ds-academy-hub-page .mars-portal-main>h1{
  max-width:1180px!important;margin:.28rem auto .55rem!important;color:#fff!important;
  font-size:clamp(2rem,3vw,3.45rem)!important;line-height:1.04!important;letter-spacing:-.025em!important;
}
html#ds-mars-root body.ds-academy-hub-page .mars-portal-main>.eyebrow,
html#ds-mars-root body.ds-academy-hub-page .mars-portal-main>.lead{
  max-width:1180px!important;margin-left:auto!important;margin-right:auto!important;
}
html#ds-mars-root body.ds-academy-hub-page .mars-portal-main>.lead{
  font-size:clamp(1rem,1.25vw,1.15rem)!important;line-height:1.6!important;color:#c9d9e4!important;margin-bottom:1.1rem!important;
}
html#ds-mars-root body.ds-academy-hub-page .ds-academy-highlights{
  max-width:1180px;margin:0 auto 1.25rem;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.7rem;
}
html#ds-mars-root body.ds-academy-hub-page .ds-academy-highlights>div{
  min-width:0;padding:.85rem .9rem;border-radius:12px;background:linear-gradient(180deg,rgba(11,31,47,.92),rgba(8,24,37,.96));
  border:1px solid rgba(73,142,184,.32);box-shadow:0 8px 24px rgba(0,0,0,.16);
}
html#ds-mars-root body.ds-academy-hub-page .ds-academy-highlights strong{display:block;color:#ff8a43;font-size:.96rem;line-height:1.2;margin-bottom:.2rem}
html#ds-mars-root body.ds-academy-hub-page .ds-academy-highlights span{display:block;color:#c8d7e2;font-size:.81rem;line-height:1.35}

html#ds-mars-root body.ds-academy-hub-page .ds-academy-portal-visual{
  position:relative!important;overflow:hidden!important;max-width:1180px!important;margin:0 auto 1.55rem!important;padding:0!important;
  aspect-ratio:1600/632!important;border-radius:18px!important;background:#07131f!important;
  border:1px solid rgba(255,141,71,.42)!important;box-shadow:0 22px 48px rgba(0,0,0,.32)!important;
}
html#ds-mars-root body.ds-academy-hub-page .ds-academy-portal-visual::after{
  content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,rgba(4,14,23,.34),transparent 46%,rgba(4,14,23,.08));
}
html#ds-mars-root body.ds-academy-hub-page .ds-academy-portal-visual img{
  width:100%!important;height:100%!important;object-fit:cover!important;object-position:center 56%!important;border-radius:0!important;
}
html#ds-mars-root body.ds-academy-hub-page .ds-academy-portal-visual figcaption{
  position:absolute!important;left:1rem!important;bottom:.9rem!important;z-index:2!important;margin:0!important;max-width:min(720px,82%)!important;
  padding:.62rem .78rem!important;border-radius:9px!important;background:rgba(4,14,23,.72)!important;backdrop-filter:blur(7px);
  color:#f3f8fb!important;-webkit-text-fill-color:#f3f8fb!important;font-size:.88rem!important;line-height:1.4!important;border:1px solid rgba(255,255,255,.10)!important;
}

html#ds-mars-root body.ds-academy-hub-page .ds-academy-grid{
  display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:1rem!important;
  max-width:1180px!important;margin:0 auto 2rem!important;align-items:stretch!important;
}
html#ds-mars-root body.ds-academy-hub-page .ds-academy-card{
  position:relative!important;isolation:isolate!important;overflow:hidden!important;min-height:392px!important;
  padding:228px 1rem 1.05rem!important;display:flex!important;flex-direction:column!important;justify-content:flex-start!important;
  background:#081722!important;color:#edf5fa!important;border:1px solid rgba(85,159,201,.34)!important;border-radius:15px!important;
  box-shadow:0 12px 28px rgba(0,0,0,.27)!important;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease!important;
}
html#ds-mars-root body.ds-academy-hub-page .ds-academy-card::before{
  content:"";position:absolute;z-index:0;left:0;right:0;top:0;height:212px;
  background-image:linear-gradient(180deg,rgba(3,11,18,.02) 40%,rgba(8,23,34,.96) 100%),var(--academy-card-bg)!important;
  background-size:cover!important;background-position:center!important;background-repeat:no-repeat!important;
  border-bottom:1px solid rgba(255,139,67,.24);
}
html#ds-mars-root body.ds-academy-hub-page .ds-academy-card::after{
  content:"";position:absolute;inset:0;z-index:0;pointer-events:none;border-radius:inherit;
  background:linear-gradient(135deg,rgba(255,255,255,.035),transparent 42%);box-shadow:inset 0 0 0 1px rgba(255,255,255,.02);
}
html#ds-mars-root body.ds-academy-hub-page .ds-academy-card>*{position:relative;z-index:1}
html#ds-mars-root body.ds-academy-hub-page .ds-academy-card:hover,
html#ds-mars-root body.ds-academy-hub-page .ds-academy-card:focus-within{
  transform:translateY(-5px)!important;border-color:rgba(255,139,67,.78)!important;
  box-shadow:0 20px 42px rgba(0,0,0,.38),0 0 0 1px rgba(255,139,67,.10)!important;
}
html#ds-mars-root body.ds-academy-hub-page .ds-academy-card .ds-module-num{
  position:absolute!important;z-index:3!important;top:14px!important;left:14px!important;margin:0!important;
  display:inline-flex!important;align-items:center!important;justify-content:center!important;width:auto!important;min-width:2.35rem!important;height:2.35rem!important;
  padding:0 .58rem!important;border-radius:9px!important;background:#ff7b33!important;color:#101820!important;-webkit-text-fill-color:#101820!important;
  font-size:.93rem!important;font-weight:950!important;letter-spacing:.04em!important;border:1px solid rgba(255,211,178,.6)!important;box-shadow:0 7px 18px rgba(0,0,0,.26)!important;
}
html#ds-mars-root body.ds-academy-hub-page .ds-academy-card .ds-module-num::after{
  content:"MODULE";margin-left:.48rem;color:#101820!important;-webkit-text-fill-color:#101820!important;font-size:.62rem;font-weight:800;letter-spacing:.12em;
}
html#ds-mars-root body.ds-academy-hub-page .ds-academy-card h2{
  margin:0 0 .58rem!important;font-size:clamp(1.05rem,1.28vw,1.28rem)!important;line-height:1.16!important;letter-spacing:-.01em!important;text-wrap:balance!important;
}
html#ds-mars-root body.ds-academy-hub-page .ds-academy-card h2 a{
  color:#fff!important;-webkit-text-fill-color:#fff!important;text-decoration:none!important;
}
html#ds-mars-root body.ds-academy-hub-page .ds-academy-card h2 a::after{
  content:"  →"!important;color:#ff9148!important;font-weight:950!important;white-space:nowrap!important;
}
html#ds-mars-root body.ds-academy-hub-page .ds-academy-card>p:not(.ds-module-num){
  margin:0!important;color:#b9cbd6!important;-webkit-text-fill-color:#b9cbd6!important;font-size:.88rem!important;line-height:1.47!important;
  display:-webkit-box!important;-webkit-line-clamp:3!important;-webkit-box-orient:vertical!important;overflow:hidden!important;
}
html#ds-mars-root body.ds-academy-hub-page .ds-academy-card h2 a:hover,
html#ds-mars-root body.ds-academy-hub-page .ds-academy-card h2 a:focus-visible{color:#ffd2b4!important;-webkit-text-fill-color:#ffd2b4!important}
html#ds-mars-root body.ds-academy-hub-page .mars-portal-main>section{
  max-width:1180px!important;background:linear-gradient(180deg,#0a1b29,#081722)!important;border:1px solid rgba(82,148,189,.27)!important;
}

@media(max-width:1120px){
  html#ds-mars-root body.ds-academy-hub-page .ds-academy-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  html#ds-mars-root body.ds-academy-hub-page .ds-academy-highlights{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:760px){
  html#ds-mars-root body.ds-academy-hub-page .mars-portal-main{padding-left:12px!important;padding-right:12px!important}
  html#ds-mars-root body.ds-academy-hub-page .ds-academy-grid{grid-template-columns:1fr!important;gap:.9rem!important}
  html#ds-mars-root body.ds-academy-hub-page .ds-academy-card{min-height:368px!important;padding-top:218px!important}
  html#ds-mars-root body.ds-academy-hub-page .ds-academy-card::before{height:202px}
  html#ds-mars-root body.ds-academy-hub-page .ds-academy-highlights{grid-template-columns:1fr 1fr;gap:.55rem}
  html#ds-mars-root body.ds-academy-hub-page .ds-academy-portal-visual{aspect-ratio:16/9!important;border-radius:14px!important}
  html#ds-mars-root body.ds-academy-hub-page .ds-academy-portal-visual figcaption{font-size:.76rem!important;left:.55rem!important;bottom:.55rem!important;max-width:88%!important}
}
@media(max-width:430px){
  html#ds-mars-root body.ds-academy-hub-page .ds-academy-highlights{grid-template-columns:1fr}
  html#ds-mars-root body.ds-academy-hub-page .ds-academy-card{min-height:350px!important;padding:205px .9rem .95rem!important}
  html#ds-mars-root body.ds-academy-hub-page .ds-academy-card::before{height:190px}
  html#ds-mars-root body.ds-academy-hub-page .ds-academy-card .ds-module-num::after{display:none}
}
@media(prefers-reduced-motion:reduce){html#ds-mars-root body.ds-academy-hub-page .ds-academy-card{transition:none!important}}


/* SPACE ACADEMY PREMIUM V4 CLOSEOUT — 2026-09-18
   Compact content-driven cards: keep the 16:9 visual dominant, remove artificial
   equal-height dead zones under short descriptions, preserve 3/2/1 responsive grid. */
html#ds-mars-root body.ds-academy-hub-page .ds-academy-grid{align-items:start!important}
html#ds-mars-root body.ds-academy-hub-page .ds-academy-card{
  min-height:0!important;height:auto!important;padding:214px 1rem .9rem!important;
}
html#ds-mars-root body.ds-academy-hub-page .ds-academy-card::before{height:198px!important}
html#ds-mars-root body.ds-academy-hub-page .ds-academy-card h2{margin-bottom:.42rem!important}
html#ds-mars-root body.ds-academy-hub-page .ds-academy-card>p:not(.ds-module-num){line-height:1.42!important;-webkit-line-clamp:3!important}
@media(max-width:760px){
  html#ds-mars-root body.ds-academy-hub-page .ds-academy-card{min-height:0!important;height:auto!important;padding:204px .95rem .85rem!important}
  html#ds-mars-root body.ds-academy-hub-page .ds-academy-card::before{height:188px!important}
}
@media(max-width:430px){
  html#ds-mars-root body.ds-academy-hub-page .ds-academy-card{min-height:0!important;height:auto!important;padding:194px .9rem .8rem!important}
  html#ds-mars-root body.ds-academy-hub-page .ds-academy-card::before{height:178px!important}
}

/* RC4 — localized asset fallback: premium neutral surface when no --academy-card-bg is assigned. */
html#ds-mars-root body.ds-academy-hub-page .ds-academy-card:not([style*="--academy-card-bg"])::before{
  background-image:
    radial-gradient(circle at 78% 20%,rgba(255,123,51,.26),transparent 34%),
    linear-gradient(145deg,#102f45 0%,#071722 58%,#0d2535 100%)!important;
}

/* RC4 — visited-state closure for Academy card links. */
html#ds-mars-root body.ds-academy-hub-page .ds-academy-card h2 a:visited{color:#fff!important;-webkit-text-fill-color:#fff!important;}
