/* V6.31 SINGLE AUTHORITATIVE VISUAL CONTRACT */
/* DELTA-SIERRA MARS V6.28 — UNIQUE INTERACTIVE CONTRACT
   SINGLE SOURCE OF TRUTH for every link/button/control state across FR+EN Mars/Space Academy.
   Pages select a semantic role with data-ds-link-role / data-ds-control-role.
   This file is loaded LAST on all 276 HTML pages. Roles are component/surface contracts, never page-local colors. No page-level visual link style is allowed. */
:root{
  --ds-i-focus:#f2c261;
  --ds-i-paper:#fffdf8;
  --ds-i-ink:#17324d;
  --ds-i-link:#154f78;
  --ds-i-link-visited:#5b3f78;
  --ds-i-link-hover:#0c3856;
  --ds-i-dark:#071522;
  --ds-i-dark-2:#102331;
  --ds-i-dark-hover:#173247;
  --ds-i-on-dark:#f5f8fb;
  --ds-i-on-dark-visited:#e9f0f6;
  --ds-i-on-dark-hover:#fff4cf;
  --ds-i-gold:#f2c261;
  --ds-i-copper:#74412e;
  --ds-i-red:#a44331;
  --ds-i-green:#1f653f;
}

/* Every contract-controlled anchor/control shares keyboard visibility and stable opacity. */
#ds-mars-root a[data-ds-link-role],
#ds-mars-root button[data-ds-control-role]{opacity:1!important;visibility:visible!important;box-sizing:border-box!important}
#ds-mars-root a[data-ds-link-role]:focus-visible,
#ds-mars-root button[data-ds-control-role]:focus-visible{outline:3px solid var(--ds-i-focus)!important;outline-offset:3px!important}

/* Reading surface: ordinary editorial/source/caption links. */
#ds-mars-root a[data-ds-link-role="editorial"],
#ds-mars-root a[data-ds-link-role="source"],
#ds-mars-root a[data-ds-link-role="caption"]{color:var(--ds-i-link)!important;-webkit-text-fill-color:var(--ds-i-link)!important;background:transparent!important;text-decoration:underline!important;text-decoration-thickness:.075em!important;text-underline-offset:.16em!important;text-decoration-color:rgba(21,79,120,.68)!important;font-weight:inherit!important}
#ds-mars-root a[data-ds-link-role="editorial"]:visited,
#ds-mars-root a[data-ds-link-role="source"]:visited,
#ds-mars-root a[data-ds-link-role="caption"]:visited{color:var(--ds-i-link-visited)!important;-webkit-text-fill-color:var(--ds-i-link-visited)!important;text-decoration-color:rgba(91,63,120,.75)!important}
#ds-mars-root a[data-ds-link-role="editorial"]:hover,
#ds-mars-root a[data-ds-link-role="editorial"]:focus-visible,
#ds-mars-root a[data-ds-link-role="source"]:hover,
#ds-mars-root a[data-ds-link-role="source"]:focus-visible,
#ds-mars-root a[data-ds-link-role="caption"]:hover,
#ds-mars-root a[data-ds-link-role="caption"]:focus-visible{color:var(--ds-i-link-hover)!important;-webkit-text-fill-color:var(--ds-i-link-hover)!important;text-decoration-color:currentColor!important}

/* Dark editorial surfaces. */
#ds-mars-root a[data-ds-link-role="dark"]{color:var(--ds-i-on-dark)!important;-webkit-text-fill-color:var(--ds-i-on-dark)!important;background:transparent!important;text-decoration:underline!important;text-decoration-color:rgba(245,248,251,.78)!important}
#ds-mars-root a[data-ds-link-role="dark"]:visited{color:var(--ds-i-on-dark-visited)!important;-webkit-text-fill-color:var(--ds-i-on-dark-visited)!important}
#ds-mars-root a[data-ds-link-role="dark"]:hover,#ds-mars-root a[data-ds-link-role="dark"]:focus-visible{color:var(--ds-i-on-dark-hover)!important;-webkit-text-fill-color:var(--ds-i-on-dark-hover)!important;text-decoration-color:currentColor!important}

/* Header, brand, language navigation. */
#ds-mars-root a[data-ds-link-role="header"],#ds-mars-root a[data-ds-link-role="brand"],#ds-mars-root a[data-ds-link-role="language"]{color:#f7f9fb!important;-webkit-text-fill-color:#f7f9fb!important;background:transparent!important;text-decoration:none!important;font-weight:520!important}
#ds-mars-root a[data-ds-link-role="header"]:visited,#ds-mars-root a[data-ds-link-role="brand"]:visited,#ds-mars-root a[data-ds-link-role="language"]:visited{color:#f7f9fb!important;-webkit-text-fill-color:#f7f9fb!important}
#ds-mars-root a[data-ds-link-role="header"]:hover,#ds-mars-root a[data-ds-link-role="header"]:focus-visible,#ds-mars-root a[data-ds-link-role="brand"]:hover,#ds-mars-root a[data-ds-link-role="brand"]:focus-visible,#ds-mars-root a[data-ds-link-role="language"]:hover,#ds-mars-root a[data-ds-link-role="language"]:focus-visible{color:#fff!important;-webkit-text-fill-color:#fff!important;background:#5a2c20!important}
#ds-mars-root a[data-ds-link-role="header"][aria-current="page"],#ds-mars-root a[data-ds-link-role="language"].is-current,#ds-mars-root a[data-ds-link-role="language"][aria-current="page"]{color:#111a21!important;-webkit-text-fill-color:#111a21!important;background:var(--ds-i-gold)!important}

/* Left sidebar: every descendant gets the same explicit contract. */
#ds-mars-root .mars-system-sidebar a[data-ds-link-role="sidebar"],#ds-mars-root .mars-system-sidebar a[data-ds-link-role="sidebar"]:link,#ds-mars-root .mars-system-sidebar a[data-ds-link-role="sidebar"]:visited{color:#e6edf3!important;-webkit-text-fill-color:#e6edf3!important;background:transparent!important;text-decoration:none!important;font-weight:400!important}
#ds-mars-root .mars-system-sidebar a[data-ds-link-role="sidebar"]:hover,#ds-mars-root .mars-system-sidebar a[data-ds-link-role="sidebar"]:focus-visible{color:#fff!important;-webkit-text-fill-color:#fff!important;background:var(--ds-i-dark-hover)!important}
#ds-mars-root .mars-system-sidebar a[data-ds-link-role="sidebar"][aria-current="page"],#ds-mars-root .mars-system-sidebar a[data-ds-link-role="sidebar"].is-active,#ds-mars-root .mars-system-sidebar .is-active>a[data-ds-link-role="sidebar"]{color:#fff!important;-webkit-text-fill-color:#fff!important;background:var(--ds-i-copper)!important;border-left:3px solid #d7ad58!important;font-weight:500!important}
#ds-mars-root .mars-system-sidebar a[data-ds-link-role="sidebar"] *{color:inherit!important;-webkit-text-fill-color:inherit!important}

#ds-mars-root .mars-system-sidebar a[data-ds-link-role="sidebar-tool"],#ds-mars-root .mars-system-sidebar a[data-ds-link-role="sidebar-tool"]:visited{display:flex!important;align-items:center!important;min-height:42px!important;color:#d7f3ff!important;-webkit-text-fill-color:#d7f3ff!important;background:#102a3c!important;border:1px solid #46748b!important;border-radius:9px!important;text-decoration:none!important;font-weight:500!important}
#ds-mars-root .mars-system-sidebar a[data-ds-link-role="sidebar-tool"]:hover,#ds-mars-root .mars-system-sidebar a[data-ds-link-role="sidebar-tool"]:focus-visible{color:#fff!important;-webkit-text-fill-color:#fff!important;background:#23465e!important;border-color:#e7bd61!important}
#ds-mars-root .mars-system-sidebar a[data-ds-link-role="sidebar-tool"].is-active,#ds-mars-root .mars-system-sidebar a[data-ds-link-role="sidebar-tool"][aria-current="page"]{color:#fff!important;-webkit-text-fill-color:#fff!important;background:var(--ds-i-copper)!important;border-color:#e7bd61!important}
#ds-mars-root .mars-system-sidebar a[data-ds-link-role="sidebar-live"],#ds-mars-root .mars-system-sidebar a[data-ds-link-role="sidebar-live"]:visited{display:flex!important;align-items:center!important;gap:.55rem!important;color:#fff!important;-webkit-text-fill-color:#fff!important;background:#3a1318!important;border:1px solid #a63d2e!important;border-radius:10px!important;text-decoration:none!important;font-weight:500!important}
#ds-mars-root .mars-system-sidebar a[data-ds-link-role="sidebar-live"]:hover,#ds-mars-root .mars-system-sidebar a[data-ds-link-role="sidebar-live"]:focus-visible{color:#fff!important;-webkit-text-fill-color:#fff!important;background:#a63d2e!important;border-color:#f5c86b!important}

/* In-article dark contents blocks and floating right TOC. */
#ds-mars-root a[data-ds-link-role="section-toc"],#ds-mars-root a[data-ds-link-role="section-toc"]:visited{display:block!important;color:#eaf3fb!important;-webkit-text-fill-color:#eaf3fb!important;background:#17324e!important;border:1px solid #49627a!important;border-radius:7px!important;padding:.48rem .65rem!important;text-decoration:none!important;font-weight:500!important}
#ds-mars-root a[data-ds-link-role="section-toc"]:hover,#ds-mars-root a[data-ds-link-role="section-toc"]:focus-visible{color:#101820!important;-webkit-text-fill-color:#101820!important;background:var(--ds-i-gold)!important;border-color:#fff1b4!important}
#ds-mars-root a[data-ds-link-role="page-toc"],#ds-mars-root a[data-ds-link-role="page-toc"]:visited{display:block!important;color:#edf3f8!important;-webkit-text-fill-color:#edf3f8!important;background:transparent!important;text-decoration:none!important;font-weight:450!important}
#ds-mars-root a[data-ds-link-role="page-toc"]:hover,#ds-mars-root a[data-ds-link-role="page-toc"]:focus-visible{color:#fff!important;-webkit-text-fill-color:#fff!important;background:#17324a!important}
#ds-mars-root a[data-ds-link-role="page-toc"].is-current{color:#111c26!important;-webkit-text-fill-color:#111c26!important;background:#efc56a!important;border-left:4px solid #fff!important;font-weight:550!important}

/* Buttons and CTA links: roles are explicit, never inferred from page-specific nth-child CSS. */
#ds-mars-root a[data-ds-link-role^="button-"],#ds-mars-root button[data-ds-control-role^="button-"],#ds-mars-root button[data-ds-control-role="primary"],#ds-mars-root button[data-ds-control-role="secondary"],#ds-mars-root button[data-ds-control-role="success"]{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:42px!important;padding:.58rem .82rem!important;border-radius:9px!important;text-decoration:none!important;font-weight:700!important;cursor:pointer!important}
#ds-mars-root a[data-ds-link-role="button-primary"],#ds-mars-root a[data-ds-link-role="button-primary"]:visited,#ds-mars-root button[data-ds-control-role="primary"]{color:#fff!important;-webkit-text-fill-color:#fff!important;background:var(--ds-i-red)!important;border:2px solid #cf725b!important}
#ds-mars-root a[data-ds-link-role="button-secondary"],#ds-mars-root a[data-ds-link-role="button-secondary"]:visited,#ds-mars-root a[data-ds-link-role="button-ghost"],#ds-mars-root a[data-ds-link-role="button-ghost"]:visited,#ds-mars-root button[data-ds-control-role="secondary"]{color:#fff!important;-webkit-text-fill-color:#fff!important;background:#17324d!important;border:2px solid #7091aa!important}
#ds-mars-root a[data-ds-link-role="button-success"],#ds-mars-root a[data-ds-link-role="button-success"]:visited,#ds-mars-root button[data-ds-control-role="success"]{color:#fff!important;-webkit-text-fill-color:#fff!important;background:var(--ds-i-green)!important;border:2px solid #76a88d!important}
#ds-mars-root a[data-ds-link-role^="button-"]:hover,#ds-mars-root a[data-ds-link-role^="button-"]:focus-visible,#ds-mars-root button[data-ds-control-role^="button-"]:hover,#ds-mars-root button[data-ds-control-role^="button-"]:focus-visible,#ds-mars-root button[data-ds-control-role="primary"]:hover,#ds-mars-root button[data-ds-control-role="primary"]:focus-visible,#ds-mars-root button[data-ds-control-role="secondary"]:hover,#ds-mars-root button[data-ds-control-role="secondary"]:focus-visible,#ds-mars-root button[data-ds-control-role="success"]:hover,#ds-mars-root button[data-ds-control-role="success"]:focus-visible{color:#101820!important;-webkit-text-fill-color:#101820!important;background:var(--ds-i-gold)!important;border-color:#fff1b4!important}
#ds-mars-root a[data-ds-link-role="button-support"],#ds-mars-root a[data-ds-link-role="button-support"]:visited{color:#fff!important;-webkit-text-fill-color:#fff!important;background:var(--ds-i-red)!important;border:2px solid #cf725b!important;text-decoration:none!important;font-weight:700!important}
#ds-mars-root a[data-ds-link-role="button-support"]:hover,#ds-mars-root a[data-ds-link-role="button-support"]:focus-visible{color:#101820!important;-webkit-text-fill-color:#101820!important;background:var(--ds-i-gold)!important}

/* Cards. */
#ds-mars-root a[data-ds-link-role="card-light"],#ds-mars-root a[data-ds-link-role="card-light"]:visited,#ds-mars-root a[data-ds-link-role="book"],#ds-mars-root a[data-ds-link-role="book"]:visited{color:#173b59!important;-webkit-text-fill-color:#173b59!important;background:#fff!important;border-color:#c8d3dc!important;text-decoration:none!important}
#ds-mars-root a[data-ds-link-role="card-light"] *,#ds-mars-root a[data-ds-link-role="book"] *{color:inherit!important;-webkit-text-fill-color:inherit!important}
#ds-mars-root a[data-ds-link-role="card-light"]:hover,#ds-mars-root a[data-ds-link-role="card-light"]:focus-visible,#ds-mars-root a[data-ds-link-role="book"]:hover,#ds-mars-root a[data-ds-link-role="book"]:focus-visible{color:#0d2a40!important;-webkit-text-fill-color:#0d2a40!important;border-color:#b28b2b!important}
#ds-mars-root a[data-ds-link-role="card-dark"],#ds-mars-root a[data-ds-link-role="card-dark"]:visited{color:#fff!important;-webkit-text-fill-color:#fff!important;background:var(--ds-i-dark-2)!important;border-color:#536d7f!important;text-decoration:none!important}
#ds-mars-root a[data-ds-link-role="card-dark"] *{color:inherit!important;-webkit-text-fill-color:inherit!important}
#ds-mars-root a[data-ds-link-role="card-dark"]:hover,#ds-mars-root a[data-ds-link-role="card-dark"]:focus-visible{color:#101820!important;-webkit-text-fill-color:#101820!important;background:var(--ds-i-gold)!important}


/* Central navigation at the bottom of canonical pages: explicit dark-surface role. */
#ds-mars-root a[data-ds-link-role="core-nav"],#ds-mars-root a[data-ds-link-role="core-nav"]:visited{color:#edf3f8!important;-webkit-text-fill-color:#edf3f8!important;background:transparent!important;text-decoration:none!important;font-weight:500!important}
#ds-mars-root a[data-ds-link-role="core-nav"]:hover,#ds-mars-root a[data-ds-link-role="core-nav"]:focus-visible{color:#fff!important;-webkit-text-fill-color:#fff!important;background:#173247!important}
#ds-mars-root a[data-ds-link-role="core-nav"][aria-current="page"],#ds-mars-root a[data-ds-link-role="core-nav"].is-current{color:#111c26!important;-webkit-text-fill-color:#111c26!important;background:#efc56a!important;font-weight:650!important}

/* Sources that really live on a dark surface. */
#ds-mars-root a[data-ds-link-role="source-dark"],#ds-mars-root a[data-ds-link-role="source-dark"]:visited{color:#f5f8fb!important;-webkit-text-fill-color:#f5f8fb!important;background:transparent!important;text-decoration:underline!important;text-decoration-color:rgba(245,248,251,.78)!important}
#ds-mars-root a[data-ds-link-role="source-dark"]:hover,#ds-mars-root a[data-ds-link-role="source-dark"]:focus-visible{color:#fff4cf!important;-webkit-text-fill-color:#fff4cf!important;text-decoration-color:currentColor!important}

/* Bottom Mars-book image: the picture is the control; no page-local colors. */
#ds-mars-root a[data-ds-link-role="book-promo"],#ds-mars-root a[data-ds-link-role="book-promo"]:visited{color:#17324d!important;-webkit-text-fill-color:#17324d!important;background:#fff!important;border:2px solid #d9b45c!important;text-decoration:none!important}
#ds-mars-root a[data-ds-link-role="book-promo"]:hover,#ds-mars-root a[data-ds-link-role="book-promo"]:focus-visible{color:#17324d!important;-webkit-text-fill-color:#17324d!important;background:#fff!important;border-color:#74412e!important;box-shadow:0 0 0 4px rgba(242,194,97,.28),0 14px 32px rgba(7,21,34,.22)!important}

/* Footer and skip link. */
#ds-mars-root a[data-ds-link-role="footer"],#ds-mars-root a[data-ds-link-role="footer"]:visited{color:#f5f8fb!important;-webkit-text-fill-color:#f5f8fb!important;text-decoration:underline!important}
#ds-mars-root a[data-ds-link-role="footer"]:hover,#ds-mars-root a[data-ds-link-role="footer"]:focus-visible{color:#fff4cf!important;-webkit-text-fill-color:#fff4cf!important}
#ds-mars-root a[data-ds-link-role="skip"],#ds-mars-root a[data-ds-link-role="skip"]:visited{color:#fff!important;-webkit-text-fill-color:#fff!important;background:#17324d!important;text-decoration:none!important}

/* Runtime/real buttons. */
#ds-mars-root button[data-ds-control-role="info"]{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:1.55rem!important;height:1.55rem!important;padding:0!important;border:1px solid #8a6a2c!important;border-radius:50%!important;background:#fff4dc!important;color:#16232d!important;-webkit-text-fill-color:#16232d!important;font-weight:800!important}
#ds-mars-root button[data-ds-control-role="info"]:hover,#ds-mars-root button[data-ds-control-role="info"]:focus-visible{background:var(--ds-i-gold)!important;color:#101820!important;-webkit-text-fill-color:#101820!important}
#ds-mars-root button[data-ds-control-role="card-dark"]{color:#fff!important;-webkit-text-fill-color:#fff!important;background:var(--ds-i-dark-2)!important;border:1px solid #536d7f!important}
#ds-mars-root button[data-ds-control-role="neutral"]{color:#17232d!important;-webkit-text-fill-color:#17232d!important;background:#fff!important;border:1px solid #718999!important}
#ds-mars-root button:disabled,#ds-mars-root button[aria-disabled="true"]{color:#5c6670!important;-webkit-text-fill-color:#5c6670!important;background:#e9edf1!important;border-color:#aeb8c2!important;cursor:not-allowed!important;opacity:1!important}

/* Search results can be generated after load; class fallback is deliberately inside this unique contract. */
#ds-mars-root .mars-system-sidebar .mars-search-results a,#ds-mars-root .mars-system-sidebar .mars-search-results [role="option"],#ds-mars-root .ds-search-result{color:#17232d!important;-webkit-text-fill-color:#17232d!important;background:#fffaf2!important;border-color:#c8d3dc!important}
#ds-mars-root .mars-system-sidebar .mars-search-results a *,#ds-mars-root .mars-system-sidebar .mars-search-results [role="option"] *{color:inherit!important;-webkit-text-fill-color:inherit!important}
#ds-mars-root .mars-system-sidebar .mars-search-results a:hover,#ds-mars-root .mars-system-sidebar .mars-search-results a:focus-visible,#ds-mars-root .mars-system-sidebar .mars-search-results [role="option"]:hover,#ds-mars-root .mars-system-sidebar .mars-search-results [role="option"]:focus-visible,#ds-mars-root .ds-search-result:hover,#ds-mars-root .ds-search-result:focus-visible{color:#17232d!important;-webkit-text-fill-color:#17232d!important;background:#ffe7a8!important;outline:2px solid #8a3f26!important}

/* No legacy child selector may recolour the text of a contract-controlled interactive component. */
#ds-mars-root a[data-ds-link-role] :is(span,strong,small,em,b,i,h1,h2,h3,h4,h5,h6,p){color:inherit!important;-webkit-text-fill-color:inherit!important}

/* V6.27 hardening for legacy/current-state classes that may still be emitted by older components. */
#ds-mars-root a[data-ds-link-role="header"].is-section-active,
#ds-mars-root a[data-ds-link-role="header"].is-current,
#ds-mars-root a[data-ds-link-role="header"][aria-current="page"]{
  color:#111a21!important;-webkit-text-fill-color:#111a21!important;background:var(--ds-i-gold)!important;
}
#ds-mars-root .mars-system-sidebar a[data-ds-link-role="sidebar"].is-current,
#ds-mars-root .mars-system-sidebar a[data-ds-link-role="sidebar-tool"].is-current{
  color:#fff!important;-webkit-text-fill-color:#fff!important;background:var(--ds-i-copper)!important;border-left:3px solid #d7ad58!important;font-weight:500!important;
}
#ds-mars-root a[data-ds-link-role="section-toc"].is-current{
  color:#101820!important;-webkit-text-fill-color:#101820!important;background:var(--ds-i-gold)!important;border-color:#fff1b4!important;
}
#ds-mars-root [role="button"][data-ds-control-role="image-zoom"]:focus-visible{
  outline:4px solid var(--ds-i-focus)!important;outline-offset:4px!important;border-radius:6px!important;
}


/* DELTA-SIERRA MARS — V6.30 final surface/readability contract — 2026-08-19 */
:root{--ds630-ink:#20354f;--ds630-dark:#0c1b2a;--ds630-lightink:#edf3f7;--ds630-gold:#f3cf78}
#ds-mars-root .mars-source-note[data-ds-text-surface="light"],#ds-mars-root .mars-bible-explainer[data-ds-text-surface="light"],#ds-mars-root .mars-calc-note[data-ds-text-surface="light"]{background:#eef5f9!important;background-image:none!important;color:var(--ds630-ink)!important;-webkit-text-fill-color:var(--ds630-ink)!important;border:1px solid #b9cbd8!important;border-left:4px solid #4f7fa2!important;box-shadow:0 8px 22px rgba(18,45,66,.07)!important;border-radius:12px!important;padding:1rem 1.08rem!important}
#ds-mars-root .mars-bible-caution[data-ds-text-surface="light"]{background:#fff5d8!important;background-image:none!important;color:#3f3218!important;-webkit-text-fill-color:#3f3218!important;border:1px solid #d6b96d!important;border-left:4px solid #a87918!important;border-radius:12px!important;padding:1rem 1.08rem!important}
#ds-mars-root .mars-source-box[data-ds-text-surface="light"]{color:var(--ds630-ink)!important;-webkit-text-fill-color:var(--ds630-ink)!important}
#ds-mars-root .mars-arcadia-box[data-ds-text-surface="dark"]{background:linear-gradient(135deg,#0d2137 0%,#182d4d 54%,#642f2b 100%)!important;color:var(--ds630-lightink)!important;-webkit-text-fill-color:var(--ds630-lightink)!important;border:1px solid #7d5b45!important;box-shadow:0 12px 30px rgba(5,14,24,.22)!important;border-radius:14px!important}
#ds-mars-root :is(.mars-io-grid,.mars-system-flow,.mars-system-relations)[data-ds-text-surface="dark"]{background:linear-gradient(145deg,#0b1a28,#10283c)!important;color:var(--ds630-lightink)!important;-webkit-text-fill-color:var(--ds630-lightink)!important;border:1px solid #38556b!important;border-radius:14px!important;box-shadow:0 10px 25px rgba(4,13,22,.16)!important}
#ds-mars-root :is(.mars-source-note,.mars-bible-explainer,.mars-calc-note,.mars-bible-caution,.mars-source-box)[data-ds-text-surface="light"] :is(h1,h2,h3,h4,h5,p,li,dt,dd,strong,em,span,abbr,small,div){color:inherit!important;-webkit-text-fill-color:inherit!important}
#ds-mars-root :is(.mars-arcadia-box,.mars-io-grid,.mars-system-flow,.mars-system-relations)[data-ds-text-surface="dark"] :is(h1,h2,h3,h4,h5,p,li,dt,dd,strong,em,span,abbr,small,div){color:inherit!important;-webkit-text-fill-color:inherit!important}
#ds-mars-root :is(.mars-arcadia-box,.mars-io-grid,.mars-system-flow,.mars-system-relations)[data-ds-text-surface="dark"] :is(h2,h3,strong){color:#fff1c2!important;-webkit-text-fill-color:#fff1c2!important}
#ds-mars-root .mars-portal-main :is(.mars-longread-book,.mars-book-deepening,.mars-monograph-depth,.mars-deep-dossier,.mars-research-essay,.mars-closing-depth,.mars-depth,.mars-long-chapter,.organisation-book) :is(p,ul,ol,blockquote){max-width:76ch!important}
#ds-mars-root .organisation-book>section>p,#ds-mars-root .organisation-book>section>ul,#ds-mars-root .organisation-book>section>ol{max-width:76ch!important;line-height:1.82!important;margin-top:.9rem!important;margin-bottom:1.12rem!important}
#ds-mars-root .organisation-book>section>h2{margin-top:3rem!important;margin-bottom:1.15rem!important;line-height:1.18!important}#ds-mars-root .organisation-book>section>h3{margin-top:2rem!important;margin-bottom:.8rem!important}
#ds-mars-root .mars-portal-main{padding-left:clamp(1.25rem,2.6vw,2.5rem)!important;padding-right:clamp(1.25rem,2.6vw,2.5rem)!important}
#ds-mars-root .org-card__media--v623{background:#071522!important;display:flex!important;align-items:center!important;justify-content:center!important;overflow:hidden!important}#ds-mars-root .org-card__media--v623 img{width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important;background:#071522!important}
#ds-mars-root .ds-v630-bridge{background:#f7f2e8!important;color:#263d52!important;-webkit-text-fill-color:#263d52!important;border:1px solid #d8c9ac!important;border-radius:12px!important;padding:1rem 1.1rem!important;margin:2.4rem auto!important;max-width:76ch!important}#ds-mars-root .ds-v630-bridge :is(h2,p,li){color:inherit!important;-webkit-text-fill-color:inherit!important}
@media(max-width:760px){#ds-mars-root .mars-portal-main{padding-left:20px!important;padding-right:20px!important}#ds-mars-root .organisation-book>section>h2{margin-top:2.35rem!important}}
/* Generic surface fallback: a declared surface always owns its foreground. */
#ds-mars-root [data-ds-text-surface="light"]{color:var(--ds630-ink)!important;-webkit-text-fill-color:var(--ds630-ink)!important}
#ds-mars-root [data-ds-text-surface="dark"]{color:var(--ds630-lightink)!important;-webkit-text-fill-color:var(--ds630-lightink)!important}
/* Frequently reused callouts get a complete surface, not only an ink color. */
#ds-mars-root .mars-source-box[data-ds-text-surface="light"]{background:#f7fafc!important;background-image:none!important;border:1px solid #c8d5de!important;color:var(--ds630-ink)!important;-webkit-text-fill-color:var(--ds630-ink)!important}
#ds-mars-root .mars-synthesis[data-ds-text-surface="light"]{background:#f4f8fb!important;background-image:none!important;border-color:#bdceda!important;color:var(--ds630-ink)!important;-webkit-text-fill-color:var(--ds630-ink)!important}
#ds-mars-root .mars-synthesis[data-ds-text-surface="dark"]{background:linear-gradient(145deg,#0b1a28,#17334a)!important;border-color:#38556b!important;color:var(--ds630-lightink)!important;-webkit-text-fill-color:var(--ds630-lightink)!important}




/* DELTA-SIERRA MARS V6.31 — FINAL VISUAL SEMANTIC AUTHORITY
   Surface x role x state are resolved here. This file MUST be the last stylesheet.
   Page HTML declares semantics only. It never chooses foreground/background colors. */
:root{
 --ds-v631-paper:#fffdf8;--ds-v631-paper-2:#fff8e9;--ds-v631-ink:#20354f;
 --ds-v631-link:#154f78;--ds-v631-link-visited:#5b3f78;--ds-v631-link-hover:#0c3856;
 --ds-v631-dark:#0b1a28;--ds-v631-dark-2:#10283c;--ds-v631-on-dark:#edf3f7;
 --ds-v631-on-dark-visited:#e7edf3;--ds-v631-on-dark-hover:#fff1c2;--ds-v631-gold:#f2c261;
}
/* A declared surface owns its complete foreground model. Nested opposite surfaces are excluded. */
#ds-mars-root [data-ds-text-surface="light"]{color:var(--ds-v631-ink)!important;-webkit-text-fill-color:var(--ds-v631-ink)!important}
#ds-mars-root [data-ds-text-surface="dark"]{color:var(--ds-v631-on-dark)!important;-webkit-text-fill-color:var(--ds-v631-on-dark)!important}
#ds-mars-root [data-ds-text-surface="light"] :where(h1,h2,h3,h4,h5,h6,p,li,dt,dd,th,td,span,strong,em,b,i,small,label,figcaption,blockquote):not([data-ds-text-surface="dark"] *){color:inherit!important;-webkit-text-fill-color:inherit!important}
#ds-mars-root [data-ds-text-surface="dark"] :where(h1,h2,h3,h4,h5,h6,p,li,dt,dd,th,td,span,strong,em,b,i,small,label,figcaption,blockquote):not([data-ds-text-surface="light"] *){color:inherit!important;-webkit-text-fill-color:inherit!important}

/* Biography long-form is a light reading surface. This closes the pale-on-paper failure seen on Zubrin/Musk. */
#ds-mars-root body.history-book-page .people-book > .people-section[data-ds-text-surface="light"],
#ds-mars-root body.history-book-page .people-book > section.people-section[data-ds-text-surface="light"]{
 background:transparent!important;background-image:none!important;color:var(--ds-v631-ink)!important;-webkit-text-fill-color:var(--ds-v631-ink)!important;
}
#ds-mars-root body.history-book-page .people-book > .people-answer[data-ds-text-surface="light"]{
 background:linear-gradient(135deg,#fff8e9 0%,#fffdf8 72%,#f8fbff 100%)!important;
 border:1px solid #e5d1a6!important;border-left:5px solid #c76a31!important;border-radius:16px!important;padding:1.35rem 1.55rem!important;
 color:var(--ds-v631-ink)!important;-webkit-text-fill-color:var(--ds-v631-ink)!important;
}
#ds-mars-root body.history-book-page .people-book > .people-section[data-ds-text-surface="light"] :where(h2,h3,h4,p,li,td,th,span,strong,em,small){color:var(--ds-v631-ink)!important;-webkit-text-fill-color:var(--ds-v631-ink)!important}
#ds-mars-root body.history-book-page .people-book > .people-section[data-ds-text-surface="light"] h2{color:#17345a!important;-webkit-text-fill-color:#17345a!important}
#ds-mars-root body.history-book-page .people-book > .people-section[data-ds-text-surface="light"] h3{color:#315d89!important;-webkit-text-fill-color:#315d89!important}

/* Organisation narrative sections are paper surfaces unless a nested callout declares dark. */
#ds-mars-root .organisation-book > section[data-ds-text-surface="light"]{background:transparent!important;color:var(--ds-v631-ink)!important;-webkit-text-fill-color:var(--ds-v631-ink)!important}
#ds-mars-root .organisation-book > section[data-ds-text-surface="light"] :where(h2,h3,p,li,td,th,span,strong,em,small):not([data-ds-text-surface="dark"] *){color:inherit!important;-webkit-text-fill-color:inherit!important}
#ds-mars-root .organisation-book > section[data-ds-text-surface="light"] h2{color:#17345a!important;-webkit-text-fill-color:#17345a!important}
#ds-mars-root .organisation-book > section[data-ds-text-surface="light"] h3{color:#315d89!important;-webkit-text-fill-color:#315d89!important}

/* Surface-aware interactive failsafe. Semantic roles remain useful, but an incompatible legacy role cannot make text unreadable. */
#ds-mars-root [data-ds-text-surface="light"] a[data-ds-link-role]:not([data-ds-link-role^="button-"]):not([data-ds-link-role="book"]):not([data-ds-link-role="book-promo"]):not([data-ds-link-role="card-light"]):not([data-ds-link-role="card-dark"]):not([data-ds-text-surface="dark"] *){
 color:var(--ds-v631-link)!important;-webkit-text-fill-color:var(--ds-v631-link)!important;background:transparent!important;text-decoration-color:rgba(21,79,120,.7)!important;
}
#ds-mars-root [data-ds-text-surface="light"] a[data-ds-link-role]:not([data-ds-link-role^="button-"]):not([data-ds-link-role="book"]):not([data-ds-link-role="book-promo"]):not([data-ds-link-role="card-light"]):not([data-ds-link-role="card-dark"]):visited:not([data-ds-text-surface="dark"] *){color:var(--ds-v631-link-visited)!important;-webkit-text-fill-color:var(--ds-v631-link-visited)!important}
#ds-mars-root [data-ds-text-surface="light"] a[data-ds-link-role]:not([data-ds-link-role^="button-"]):not([data-ds-link-role="book"]):not([data-ds-link-role="book-promo"]):not([data-ds-link-role="card-light"]):not([data-ds-link-role="card-dark"]):hover:not([data-ds-text-surface="dark"] *),
#ds-mars-root [data-ds-text-surface="light"] a[data-ds-link-role]:not([data-ds-link-role^="button-"]):not([data-ds-link-role="book"]):not([data-ds-link-role="book-promo"]):not([data-ds-link-role="card-light"]):not([data-ds-link-role="card-dark"]):focus-visible:not([data-ds-text-surface="dark"] *){color:var(--ds-v631-link-hover)!important;-webkit-text-fill-color:var(--ds-v631-link-hover)!important;text-decoration-color:currentColor!important}

#ds-mars-root [data-ds-text-surface="dark"] a[data-ds-link-role]:not([data-ds-link-role^="button-"]):not([data-ds-link-role="book"]):not([data-ds-link-role="book-promo"]):not([data-ds-link-role="card-light"]):not([data-ds-link-role="card-dark"]):not([data-ds-text-surface="light"] *){
 color:var(--ds-v631-on-dark)!important;-webkit-text-fill-color:var(--ds-v631-on-dark)!important;background:transparent!important;text-decoration-color:rgba(237,243,247,.78)!important;
}
#ds-mars-root [data-ds-text-surface="dark"] a[data-ds-link-role]:not([data-ds-link-role^="button-"]):not([data-ds-link-role="book"]):not([data-ds-link-role="book-promo"]):not([data-ds-link-role="card-light"]):not([data-ds-link-role="card-dark"]):visited:not([data-ds-text-surface="light"] *){color:var(--ds-v631-on-dark-visited)!important;-webkit-text-fill-color:var(--ds-v631-on-dark-visited)!important}
#ds-mars-root [data-ds-text-surface="dark"] a[data-ds-link-role]:not([data-ds-link-role^="button-"]):not([data-ds-link-role="book"]):not([data-ds-link-role="book-promo"]):not([data-ds-link-role="card-light"]):not([data-ds-link-role="card-dark"]):hover:not([data-ds-text-surface="light"] *),
#ds-mars-root [data-ds-text-surface="dark"] a[data-ds-link-role]:not([data-ds-link-role^="button-"]):not([data-ds-link-role="book"]):not([data-ds-link-role="book-promo"]):not([data-ds-link-role="card-light"]):not([data-ds-link-role="card-dark"]):focus-visible:not([data-ds-text-surface="light"] *){color:var(--ds-v631-on-dark-hover)!important;-webkit-text-fill-color:var(--ds-v631-on-dark-hover)!important;text-decoration-color:currentColor!important}
#ds-mars-root [data-ds-text-surface="dark"] a[data-ds-link-role] :where(span,strong,small,em,b,i){color:inherit!important;-webkit-text-fill-color:inherit!important}

/* Known callout surfaces are fully owned here, including links. */
#ds-mars-root .mars-source-box[data-ds-text-surface="light"]{background:#f7fafc!important;background-image:none!important;color:var(--ds-v631-ink)!important;-webkit-text-fill-color:var(--ds-v631-ink)!important;border:1px solid #c8d5de!important}
#ds-mars-root :is(.mars-system-relations,.mars-system-flow,.mars-io-grid)[data-ds-text-surface="dark"]{background:linear-gradient(145deg,#0b1a28,#10283c)!important;color:var(--ds-v631-on-dark)!important;-webkit-text-fill-color:var(--ds-v631-on-dark)!important}
#ds-mars-root :is(.mars-system-relations,.mars-system-flow,.mars-io-grid)[data-ds-text-surface="dark"] a{color:var(--ds-v631-on-dark)!important;-webkit-text-fill-color:var(--ds-v631-on-dark)!important}
#ds-mars-root :is(.mars-system-relations,.mars-system-flow,.mars-io-grid)[data-ds-text-surface="dark"] a:hover,
#ds-mars-root :is(.mars-system-relations,.mars-system-flow,.mars-io-grid)[data-ds-text-surface="dark"] a:focus-visible{color:var(--ds-v631-on-dark-hover)!important;-webkit-text-fill-color:var(--ds-v631-on-dark-hover)!important}

/* Footer presentation belongs to the contract, never to inline HTML. */
#ds-mars-root footer strong,#ds-mars-root .mars-footer strong{color:#fff!important;-webkit-text-fill-color:#fff!important}

/* Premium image rule: portrait stays portrait; no blurred side-fill. */
#ds-mars-root .organisation-visual-v623 img{object-fit:contain!important;background:#071522!important}
#ds-mars-root .organisation-visual-v623--portrait{max-width:620px!important}
#ds-mars-root .organisation-visual-v623--portrait img{width:auto!important;max-width:100%!important;margin:0 auto!important;max-height:820px!important}

/* V6.31b — inherited semantic surface variables.
   This is the final authority: nested surfaces redefine variables, so the nearest
   surface automatically wins without page-specific colour rules. */
#ds-mars-root [data-ds-text-surface="light"]{
 --ds-surface-ink:#20354f;--ds-surface-muted:#52647a;
 --ds-surface-link:#154f78;--ds-surface-link-visited:#5b3f78;--ds-surface-link-hover:#0c3856;
 color:var(--ds-surface-ink)!important;-webkit-text-fill-color:var(--ds-surface-ink)!important;
}
#ds-mars-root [data-ds-text-surface="dark"]{
 --ds-surface-ink:#edf3f7;--ds-surface-muted:#d8e4ef;
 --ds-surface-link:#edf3f7;--ds-surface-link-visited:#e7edf3;--ds-surface-link-hover:#fff1c2;
 color:var(--ds-surface-ink)!important;-webkit-text-fill-color:var(--ds-surface-ink)!important;
}
#ds-mars-root [data-ds-text-surface] :where(h1,h2,h3,h4,h5,h6,p,li,dt,dd,th,td,span,strong,em,b,i,small,label,figcaption,blockquote){
 color:var(--ds-surface-ink)!important;-webkit-text-fill-color:var(--ds-surface-ink)!important;
}
#ds-mars-root [data-ds-text-surface] a[data-ds-link-role]:not([data-ds-link-role^="button-"]):not([data-ds-link-role="book"]):not([data-ds-link-role="book-promo"]):not([data-ds-link-role="card-light"]):not([data-ds-link-role="card-dark"]){
 color:var(--ds-surface-link)!important;-webkit-text-fill-color:var(--ds-surface-link)!important;background:transparent!important;text-decoration-color:currentColor!important;
}
#ds-mars-root [data-ds-text-surface] a[data-ds-link-role]:not([data-ds-link-role^="button-"]):not([data-ds-link-role="book"]):not([data-ds-link-role="book-promo"]):not([data-ds-link-role="card-light"]):not([data-ds-link-role="card-dark"]):visited{
 color:var(--ds-surface-link-visited)!important;-webkit-text-fill-color:var(--ds-surface-link-visited)!important;
}
#ds-mars-root [data-ds-text-surface] a[data-ds-link-role]:not([data-ds-link-role^="button-"]):not([data-ds-link-role="book"]):not([data-ds-link-role="book-promo"]):not([data-ds-link-role="card-light"]):not([data-ds-link-role="card-dark"]):hover,
#ds-mars-root [data-ds-text-surface] a[data-ds-link-role]:not([data-ds-link-role^="button-"]):not([data-ds-link-role="book"]):not([data-ds-link-role="book-promo"]):not([data-ds-link-role="card-light"]):not([data-ds-link-role="card-dark"]):focus-visible{
 color:var(--ds-surface-link-hover)!important;-webkit-text-fill-color:var(--ds-surface-link-hover)!important;text-decoration-color:currentColor!important;
}
/* Deliberate hierarchy accents remain surface-aware and centrally controlled. */
#ds-mars-root body.history-book-page .people-book > .people-section[data-ds-text-surface="light"] h2,
#ds-mars-root .organisation-book > section[data-ds-text-surface="light"] h2{color:#17345a!important;-webkit-text-fill-color:#17345a!important}
#ds-mars-root body.history-book-page .people-book > .people-section[data-ds-text-surface="light"] h3,
#ds-mars-root .organisation-book > section[data-ds-text-surface="light"] h3{color:#315d89!important;-webkit-text-fill-color:#315d89!important}
#ds-mars-root :is(.mars-arcadia-box,.mars-io-grid,.mars-system-flow,.mars-system-relations)[data-ds-text-surface="dark"] :is(h2,h3,strong){color:#fff1c2!important;-webkit-text-fill-color:#fff1c2!important}

/* V6.31c — specificity lock.  The semantic contract must beat every historical
   class-based colour rule while still allowing nested surfaces via inherited variables. */
html body #ds-mars-root [data-ds-text-surface="light"][data-ds-text-surface="light"]{
 --ds-surface-ink:#20354f;--ds-surface-link:#154f78;--ds-surface-link-visited:#5b3f78;--ds-surface-link-hover:#0c3856;
}
html body #ds-mars-root [data-ds-text-surface="dark"][data-ds-text-surface="dark"]{
 --ds-surface-ink:#edf3f7;--ds-surface-link:#edf3f7;--ds-surface-link-visited:#e7edf3;--ds-surface-link-hover:#fff1c2;
}
html body #ds-mars-root [data-ds-text-surface][data-ds-text-surface],
html body #ds-mars-root [data-ds-text-surface][data-ds-text-surface] :where(h1,h2,h3,h4,h5,h6,p,li,dt,dd,th,td,span,strong,em,b,i,small,label,figcaption,blockquote,div){
 color:var(--ds-surface-ink)!important;-webkit-text-fill-color:var(--ds-surface-ink)!important;
}
html body #ds-mars-root [data-ds-text-surface][data-ds-text-surface] a[data-ds-link-role]:not([data-ds-link-role^="button-"]):not([data-ds-link-role="book"]):not([data-ds-link-role="book-promo"]):not([data-ds-link-role="card-light"]):not([data-ds-link-role="card-dark"]){
 color:var(--ds-surface-link)!important;-webkit-text-fill-color:var(--ds-surface-link)!important;
}
html body #ds-mars-root [data-ds-text-surface][data-ds-text-surface] a[data-ds-link-role]:not([data-ds-link-role^="button-"]):not([data-ds-link-role="book"]):not([data-ds-link-role="book-promo"]):not([data-ds-link-role="card-light"]):not([data-ds-link-role="card-dark"]):visited{color:var(--ds-surface-link-visited)!important;-webkit-text-fill-color:var(--ds-surface-link-visited)!important}
html body #ds-mars-root [data-ds-text-surface][data-ds-text-surface] a[data-ds-link-role]:not([data-ds-link-role^="button-"]):not([data-ds-link-role="book"]):not([data-ds-link-role="book-promo"]):not([data-ds-link-role="card-light"]):not([data-ds-link-role="card-dark"]):hover,
html body #ds-mars-root [data-ds-text-surface][data-ds-text-surface] a[data-ds-link-role]:not([data-ds-link-role^="button-"]):not([data-ds-link-role="book"]):not([data-ds-link-role="book-promo"]):not([data-ds-link-role="card-light"]):not([data-ds-link-role="card-dark"]):focus-visible{color:var(--ds-surface-link-hover)!important;-webkit-text-fill-color:var(--ds-surface-link-hover)!important}
/* Intentional accents, after the lock. */
html body #ds-mars-root :is(.mars-arcadia-box,.mars-io-grid,.mars-system-flow,.mars-system-relations)[data-ds-text-surface="dark"] :is(h2,h3,strong){color:#fff1c2!important;-webkit-text-fill-color:#fff1c2!important}

/* V6.31d — html root specificity lock (ds-mars-root is the <html> element). */
html#ds-mars-root body [data-ds-text-surface="light"][data-ds-text-surface="light"]{
 --ds-surface-ink:#20354f;--ds-surface-link:#154f78;--ds-surface-link-visited:#5b3f78;--ds-surface-link-hover:#0c3856;
}
html#ds-mars-root body [data-ds-text-surface="dark"][data-ds-text-surface="dark"]{
 --ds-surface-ink:#edf3f7;--ds-surface-link:#edf3f7;--ds-surface-link-visited:#e7edf3;--ds-surface-link-hover:#fff1c2;
}
html#ds-mars-root body [data-ds-text-surface][data-ds-text-surface],
html#ds-mars-root body [data-ds-text-surface][data-ds-text-surface] :where(h1,h2,h3,h4,h5,h6,p,li,dt,dd,th,td,span,strong,em,b,i,small,label,figcaption,blockquote,div){
 color:var(--ds-surface-ink)!important;-webkit-text-fill-color:var(--ds-surface-ink)!important;
}
html#ds-mars-root body [data-ds-text-surface][data-ds-text-surface] a[data-ds-link-role]:not([data-ds-link-role^="button-"]):not([data-ds-link-role="book"]):not([data-ds-link-role="book-promo"]):not([data-ds-link-role="card-light"]):not([data-ds-link-role="card-dark"]){color:var(--ds-surface-link)!important;-webkit-text-fill-color:var(--ds-surface-link)!important}
html#ds-mars-root body [data-ds-text-surface][data-ds-text-surface] a[data-ds-link-role]:not([data-ds-link-role^="button-"]):not([data-ds-link-role="book"]):not([data-ds-link-role="book-promo"]):not([data-ds-link-role="card-light"]):not([data-ds-link-role="card-dark"]):visited{color:var(--ds-surface-link-visited)!important;-webkit-text-fill-color:var(--ds-surface-link-visited)!important}
html#ds-mars-root body [data-ds-text-surface][data-ds-text-surface] a[data-ds-link-role]:not([data-ds-link-role^="button-"]):not([data-ds-link-role="book"]):not([data-ds-link-role="book-promo"]):not([data-ds-link-role="card-light"]):not([data-ds-link-role="card-dark"]):hover,
html#ds-mars-root body [data-ds-text-surface][data-ds-text-surface] a[data-ds-link-role]:not([data-ds-link-role^="button-"]):not([data-ds-link-role="book"]):not([data-ds-link-role="book-promo"]):not([data-ds-link-role="card-light"]):not([data-ds-link-role="card-dark"]):focus-visible{color:var(--ds-surface-link-hover)!important;-webkit-text-fill-color:var(--ds-surface-link-hover)!important}
html#ds-mars-root body :is(.mars-arcadia-box,.mars-io-grid,.mars-system-flow,.mars-system-relations)[data-ds-text-surface="dark"] :is(h2,h3,strong){color:#fff1c2!important;-webkit-text-fill-color:#fff1c2!important}


/* ==========================================================
   V6.32 — RESPONSIVE CLOSURE
   Additive only: no change to V6.31 colour/surface contract.
   ========================================================== */
@media (max-width: 600px) {
  html#ds-mars-root body .mars-bible-status {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: .35rem .45rem !important;
    max-width: 100% !important;
    min-width: 0 !important;
    white-space: normal !important;
  }
  html#ds-mars-root body .mars-bible-status > * {
    min-width: 0 !important;
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
  }

  /* Tables may scroll inside their own reading area, never widen the document. */
  html#ds-mars-root body .mars-portal-main table,
  html#ds-mars-root body .mars-portal-frame table,
  html#ds-mars-root body .people-book table,
  html#ds-mars-root body .organisation-book table,
  html#ds-mars-root body .academy-module-page table,
  html#ds-mars-root body .mars-bible-page table {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior-inline: contain !important;
  }
  html#ds-mars-root body table :is(th,td) {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 360px) {
  html#ds-mars-root,
  html#ds-mars-root body,
  html#ds-mars-root body .mars-portal-frame,
  html#ds-mars-root body .mars-portal-main {
    max-width: 100% !important;
    min-width: 0 !important;
  }

  html#ds-mars-root body .mars-header,
  html#ds-mars-root body .mars-header__inner,
  html#ds-mars-root body .site-header__actions {
    min-width: 0 !important;
    max-width: 100% !important;
  }
  html#ds-mars-root body .mars-header__inner.site-header__actions {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: .42rem .55rem !important;
    padding-inline: .55rem !important;
  }
  html#ds-mars-root body .ds-mars-home-brand {
    flex: 1 1 150px !important;
    min-width: 0 !important;
    max-width: calc(100% - 72px) !important;
    grid-template-columns: 32px minmax(0,1fr) !important;
    gap: .38rem !important;
  }
  html#ds-mars-root body .ds-mars-home-brand__logo {
    width: 32px !important;
    height: 32px !important;
  }
  html#ds-mars-root body .ds-mars-home-brand__copy {
    min-width: 0 !important;
  }
  html#ds-mars-root body .ds-mars-home-brand__copy :is(small,strong,em) {
    max-width: 100% !important;
  }
  html#ds-mars-root body .ds-mars-home-brand__copy em {
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    line-height: 1.15 !important;
  }
  html#ds-mars-root body .site-language-switcher {
    flex: 0 1 auto !important;
    min-width: 0 !important;
    max-width: 64px !important;
  }
  html#ds-mars-root body .site-language-switcher summary {
    min-width: 0 !important;
    max-width: 64px !important;
    padding-inline: .35rem !important;
  }
  html#ds-mars-root body .site-language-switcher__flags {
    display: flex !important;
    flex-wrap: nowrap !important;
    max-width: 52px !important;
    overflow: hidden !important;
  }
  html#ds-mars-root body.academy-module-page :is(
      .mars-header,.mars-header__inner,.mars-portal-frame,.mars-portal-main,
      .mars-bible-shell,.mars-bible-main,.mars-bible-content,.mars-bible-article,
      .academy-module,.academy-shell,.academy-content
  ) {
    min-width: 0 !important;
    max-width: 100% !important;
  }
}

/* V6.32a — language switcher must not contribute hidden-panel width on very small screens. */
html#ds-mars-root body .site-language-switcher:not([open]) > .site-language-switcher__panel {
  display: none !important;
}
@media (max-width: 360px) {
  html#ds-mars-root body .site-language-switcher {
    position: relative !important;
  }
  html#ds-mars-root body .site-language-switcher[open] > .site-language-switcher__panel {
    display: block !important;
    position: absolute !important;
    z-index: 10000 !important;
    top: calc(100% + .35rem) !important;
    right: 0 !important;
    left: auto !important;
    width: min(280px, calc(100vw - 16px)) !important;
    max-width: calc(100vw - 16px) !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }
  html#ds-mars-root body .site-language-switcher__option {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }
}

@media (max-width: 360px) {
  html#ds-mars-root body .site-language-switcher__flags {
    max-width: 44px !important;
    gap: 2px !important;
  }
  html#ds-mars-root body .site-language-switcher__flag {
    width: 20px !important;
    flex: 0 0 20px !important;
  }
  html#ds-mars-root body .site-language-switcher__flag:nth-child(n+3) {
    display: none !important;
  }
}

@media (max-width: 360px) {
  html#ds-mars-root body .site-language-switcher summary .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;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
  }
}

@media (max-width: 360px) {
  html#ds-mars-root body.academy-module-page .academy-course-article :is(p,li,dd,dt,span,strong,code) {
    overflow-wrap: anywhere !important;
    word-break: normal !important;
    min-width: 0 !important;
  }
  html#ds-mars-root body.academy-module-page :is(.academy-check,ul,ol,li) {
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
}


/* ==========================================================
   V6.34 — MOBILE TABLE READABILITY CONTRACT
   Do not squeeze columns until ordinary words split arbitrarily.
   The document remains viewport-bounded; wide tables scroll inside
   their own wrapper. No visual color authority is changed here.
   ========================================================== */
.ds-table-scroll-v634{
  display:block;
  width:100%;
  max-width:100%;
  overflow-x:auto;
  overflow-y:hidden;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior-inline:contain;
  scrollbar-gutter:stable;
  margin:1.25rem 0;
}
.ds-table-scroll-v634 > table{
  display:table !important;
  width:max-content !important;
  min-width:max(100%, 44rem) !important;
  max-width:none !important;
  table-layout:auto !important;
  margin:0 !important;
}
.ds-table-scroll-v634 > table th,
.ds-table-scroll-v634 > table td{
  min-width:8.5rem;
  white-space:normal;
  overflow-wrap:normal !important;
  word-break:normal !important;
  hyphens:auto;
}
.ds-table-scroll-v634 > table th:first-child,
.ds-table-scroll-v634 > table td:first-child{min-width:9.5rem;}
@media(max-width:430px){
  .ds-table-scroll-v634{margin-inline:0;}
  .ds-table-scroll-v634 > table{min-width:46rem !important;}
  .ds-table-scroll-v634 > table th,
  .ds-table-scroll-v634 > table td{min-width:9rem;font-size:.94rem;line-height:1.45;}
}
