
/* DELTA-SIERRA MARS — FINAL CORE v2 — accessibility, glossary/search and Academy mobile zoom */
.ds-sr-only{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}
.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;}
