/* R6 brand palette: midnight blue, warm performance yellow, ice neutrals. */

body.ma-launch-final.ma-editorial-rebuild {
  --er-black: #06131f;
  --er-charcoal: #0a1d2b;
  --er-charcoal-soft: #102a3a;
  --er-paper: #f2f4f3;
  --er-paper-bright: #fbfcfa;
  --er-ink: #081b2a;
  --er-ink-soft: #46545f;
  --er-white: #ffffff;
  --er-white-soft: rgba(246, 249, 251, 0.84);
  --er-white-muted: rgba(224, 232, 238, 0.72);
  --er-red: #f6c735;
  --er-red-action: #f6c735;
  --er-red-dark: #dfad1e;
  --er-signal: #f6c735;
  --er-signal-soft: #f7e5a2;
  --er-yellow-ink: #795900;
  --er-line-dark: rgba(8, 27, 42, 0.17);
  --er-line-light: rgba(226, 236, 242, 0.19);
  --er-shadow: 0 30px 82px rgba(3, 13, 22, 0.24);
  --er-shadow-soft: 0 18px 44px rgba(3, 13, 22, 0.1);
  --er-shadow-action: 0 14px 34px rgba(246, 199, 53, 0.2);
  --ma-black-soft: var(--er-black);
  --ma-charcoal-sport: var(--er-charcoal);
  --ma-ink-sport: var(--er-ink);
  --ma-red-deep: var(--er-red-action);
  --ma-red-burnt: var(--er-red-dark);
  --ma-brand-yellow: var(--er-red);
  --ma-brand-lime: var(--er-red);
  --ma-final-red: var(--er-red);
  background: var(--er-black) !important;
}

body.ma-launch-final.ma-editorial-rebuild ::selection {
  color: var(--er-black) !important;
  background: var(--er-red-action) !important;
}

body.ma-launch-final.ma-editorial-rebuild :focus-visible {
  outline-color: #ffd85a !important;
}

/* Header: midnight depth without a black bar. */
body.ma-launch-final.ma-editorial-rebuild .ma-header .ma-topbar {
  background: rgba(6, 19, 31, 0.66) !important;
  border-bottom-color: rgba(229, 238, 243, 0.11) !important;
}

body.ma-launch-final.ma-editorial-rebuild .ma-nav {
  background: linear-gradient(180deg, rgba(6, 19, 31, 0.84), rgba(6, 19, 31, 0)) !important;
}

body.ma-launch-final.ma-editorial-rebuild .ma-header.is-solid .ma-nav,
body.ma-launch-final.ma-editorial-rebuild.ma-has-scrolled-once .ma-header:not(.is-hidden) .ma-nav {
  background: rgba(6, 19, 31, 0.95) !important;
  border-bottom-color: rgba(229, 238, 243, 0.12) !important;
}

body.ma-launch-final.ma-editorial-rebuild .ma-menu-panel {
  background: rgba(6, 19, 31, 0.985) !important;
}

/* Yellow is the action colour; dark text keeps every command accessible. */
body.ma-launch-final.ma-editorial-rebuild .ma-btn--primary,
body.ma-launch-final.ma-editorial-rebuild .ma-btn--primary:visited,
body.ma-launch-final.ma-editorial-rebuild .ma-back-to-top {
  color: var(--er-black) !important;
  background: var(--er-red-action) !important;
  border-color: var(--er-red-action) !important;
  box-shadow: var(--er-shadow-action) !important;
}

body.ma-launch-final.ma-editorial-rebuild .ma-btn--primary:hover,
body.ma-launch-final.ma-editorial-rebuild .ma-btn--primary:focus-visible,
body.ma-launch-final.ma-editorial-rebuild .ma-back-to-top:hover,
body.ma-launch-final.ma-editorial-rebuild .ma-back-to-top:focus-visible {
  color: var(--er-black) !important;
  background: #ffd451 !important;
  border-color: #ffd451 !important;
  box-shadow: 0 16px 38px rgba(246, 199, 53, 0.25) !important;
}

/* Hero images gain blue depth while faces stay natural and readable. */
body.ma-launch-final.ma-editorial-rebuild .ma-hero__media {
  filter: saturate(1.04) contrast(1.08) brightness(1.16) !important;
}

body.ma-launch-final.ma-editorial-rebuild .ma-hero__overlay {
  background:
    radial-gradient(circle at 78% 32%, rgba(246, 199, 53, 0.105) 0%, rgba(246, 199, 53, 0.035) 18%, rgba(246, 199, 53, 0) 40%),
    linear-gradient(90deg, rgba(6, 19, 31, 0.98) 0%, rgba(6, 19, 31, 0.87) 35%, rgba(6, 19, 31, 0.25) 66%, rgba(6, 19, 31, 0.065) 100%),
    linear-gradient(0deg, rgba(6, 19, 31, 0.8) 0%, rgba(6, 19, 31, 0.07) 55%, rgba(6, 19, 31, 0.17) 100%) !important;
}

body.ma-launch-final.ma-editorial-rebuild .ma-hero::after {
  background: var(--er-red) !important;
}

/* Deep surfaces and image fallbacks stay recognisably blue, not charcoal-black. */
body.ma-launch-final.ma-editorial-rebuild .ma-media-card,
body.ma-launch-final.ma-editorial-rebuild .ma-media-card.is-image-missing,
body.ma-launch-final.ma-editorial-rebuild .ma-proof-feature__portrait {
  background: #0d2435 !important;
}

body.ma-launch-final.ma-editorial-rebuild .ma-media-card.is-image-missing {
  background: linear-gradient(135deg, #102a3a, #071725) !important;
}

html body.ma-site-body.ma-launch-final.ma-editorial-rebuild .ma-final-pathways .ma-route-card::before {
  color: rgba(121, 89, 0, 0.16) !important;
}

body.ma-launch-final.ma-editorial-rebuild .ma-section--deep,
body.ma-launch-final.ma-editorial-rebuild .ma-section--contact,
body.ma-launch-final.ma-editorial-rebuild .ma-footer,
body.ma-launch-final.ma-editorial-rebuild .ma-proof-feature,
body.ma-launch-final.ma-editorial-rebuild .ma-quote-slab,
body.ma-launch-final.ma-editorial-rebuild .ma-case-strip,
body.ma-launch-final.ma-editorial-rebuild .ma-read-panel,
body.ma-launch-final.ma-editorial-rebuild .ma-download-card,
body.ma-launch-final.ma-editorial-rebuild .ma-article-end {
  background-color: var(--er-black) !important;
}

/* Light surfaces use dark amber for small labels instead of low-contrast yellow. */
body.ma-launch-final.ma-editorial-rebuild .ma-section--ivory .ma-eyebrow,
body.ma-launch-final.ma-editorial-rebuild .ma-section--proof .ma-eyebrow,
body.ma-launch-final.ma-editorial-rebuild .ma-form-shell .ma-eyebrow,
body.ma-launch-final.ma-editorial-rebuild .ma-section--ivory .ma-route-card__eyebrow,
body.ma-launch-final.ma-editorial-rebuild .ma-section--proof .ma-route-card__eyebrow,
body.ma-launch-final.ma-editorial-rebuild .ma-section--ivory .ma-insight-card > span,
body.ma-launch-final.ma-editorial-rebuild .ma-section--proof .ma-insight-card > span,
body.ma-launch-final.ma-editorial-rebuild .ma-flow-result .ma-flow-result__kicker,
body.ma-launch-final.ma-editorial-rebuild .ma-flow-read__result .ma-flow-result__kicker,
body.ma-launch-final.ma-editorial-rebuild.ma-page-article .ma-article__aside a {
  color: var(--er-yellow-ink) !important;
}

body.ma-launch-final.ma-editorial-rebuild .ma-quote-slab footer {
  color: rgba(246, 249, 251, 0.7) !important;
}

body.ma-launch-final.ma-editorial-rebuild .ma-role-picker button:hover,
body.ma-launch-final.ma-editorial-rebuild .ma-role-picker button.is-active {
  color: var(--er-white) !important;
  background: rgba(246, 199, 53, 0.13) !important;
  border-color: var(--er-red) !important;
}

body.ma-launch-final.ma-editorial-rebuild .ma-field-card input:focus,
body.ma-launch-final.ma-editorial-rebuild .ma-field-card textarea:focus {
  box-shadow: 0 1px 0 var(--er-red-action), 0 4px 0 rgba(246, 199, 53, 0.13) !important;
}

body.ma-launch-final.ma-editorial-rebuild .ma-read-dock {
  border-left-color: var(--er-red) !important;
  background: rgba(6, 19, 31, 0.95) !important;
}

body.ma-launch-final.ma-editorial-rebuild.ma-page-article .ma-article-hero {
  background:
    radial-gradient(circle at 82% 18%, rgba(246, 199, 53, 0.1), transparent 30%),
    linear-gradient(145deg, var(--er-black), var(--er-charcoal)) !important;
}

@media (max-width: 760px) {
  body.ma-launch-final.ma-editorial-rebuild .ma-hero__media {
    filter: saturate(1.04) contrast(1.06) brightness(1.23) !important;
  }

  body.ma-launch-final.ma-editorial-rebuild .ma-hero__overlay {
    background:
      radial-gradient(circle at 72% 17%, rgba(246, 199, 53, 0.105) 0%, rgba(246, 199, 53, 0.025) 24%, rgba(246, 199, 53, 0) 43%),
      linear-gradient(0deg, rgba(6, 19, 31, 0.99) 0%, rgba(6, 19, 31, 0.86) 44%, rgba(6, 19, 31, 0.19) 77%, rgba(6, 19, 31, 0.055) 100%),
      linear-gradient(90deg, rgba(6, 19, 31, 0.77) 0%, rgba(6, 19, 31, 0.43) 52%, rgba(6, 19, 31, 0.05) 100%) !important;
  }
}
