/* Skillbook palette, Slate (locked 14 November 2026).
   Load this file FIRST in <head>, before nav-menus.css and ink-palette.css.
   Every rule sits in the layer "palette-slate" and is !important; among !important rules the earliest layer wins.
   It only adds what the colour swap (palette-map.cjs) cannot: navy zones, band roles and a few fixes. */
@layer palette-slate {

:root {
  --ps-white: #FFFFFF !important;
  --ps-slate: #E1E7EF !important;
  --ps-line: #C7D0DC !important;
  --ps-navy: #12283A !important;
  --ps-deep: #1A3650 !important;
  --ps-aqua: #45C2C7 !important;
  --ps-aqua-tint: #E4F7F8 !important;
  --ps-teal: #0D6E73 !important;
  --ps-on-navy: #D6DFE6 !important;
  --ps-on-navy-muted: #A8B8C4 !important;
  --ps-on-navy-link: #8FD9DC !important;
  --ps-on-navy-line: rgba(255, 255, 255, 0.16) !important;
  --ps-shape-1: #152E43 !important;
  --ps-shape-2: #1A3650 !important;
  --ps-shape-3: #21425F !important;
}

/* 1. Navy zones: page heroes, footer, closing call to action */
html body :is(.hm-zone-hero, .referral-course > section.hero, .sb-page-hero, .ed-hero, .ed-profile-hero, .footer-zone, .footer-newsletter, .site-footer.legacy-footer) {
  background: var(--ps-navy) !important;
}
html body :is(.referral-course > section.final, .sb-section.sb-coral, .referral-course > .stats) {
  background: var(--ps-deep) !important;
}
html body :is(.hm-zone-hero, .referral-course > section.hero, .sb-page-hero, .ed-hero, .ed-profile-hero, .footer-zone, .referral-course > section.final, .sb-section.sb-coral) {
  --text-heading: #FFFFFF !important;
  --text-body: var(--ps-on-navy) !important;
  --text-meta: var(--ps-on-navy-muted) !important;
  --text-link: var(--ps-on-navy-link) !important;
  --text-label: var(--ps-on-navy-link) !important;
  --control: var(--ps-on-navy) !important;
  --ink-heading: #FFFFFF !important;
  --ink-body: var(--ps-on-navy) !important;
  --ink-meta: var(--ps-on-navy-muted) !important;
  --ink-link: var(--ps-on-navy-link) !important;
  --ink-label: var(--ps-on-navy-link) !important;
  --ink-link-hover: #FFFFFF !important;
  --ink-control: var(--ps-on-navy) !important;
  --ink-line-strong: var(--ps-on-navy-muted) !important;
  --aqua-ink: #FFFFFF !important;
  --aqua-muted: var(--ps-on-navy) !important;
  --aqua-link: var(--ps-on-navy-link) !important;
  --aqua-outline: var(--ps-on-navy) !important;
  --aqua-sand-ink: var(--ps-on-navy-muted) !important;
  --aqua-line: var(--ps-on-navy-line) !important;
  --brand-line: var(--ps-on-navy-line) !important;
  color: var(--ps-on-navy) !important;
}

/* 2. Light surfaces that sit inside a navy zone keep the light-surface text colours */
html body :is(.hm-zone-hero, .referral-course > section.hero, .sb-page-hero, .ed-hero, .ed-profile-hero, .footer-zone, .referral-course > section.final, .sb-section.sb-coral) :is(.aqua-hero-pill, .hpill, .hm-trust, .skb-trust, .ed-credentials > span) {
  --text-heading: #12283A !important;
  --text-body: #3D4856 !important;
  --text-meta: #566172 !important;
  --text-link: #0D6E73 !important;
  --text-label: #0D6E73 !important;
  --control: #3D4856 !important;
  --ink-heading: #12283A !important;
  --ink-body: #3D4856 !important;
  --ink-meta: #566172 !important;
  --ink-link: #0D6E73 !important;
  --ink-label: #0D6E73 !important;
  --ink-link-hover: #0A5A5E !important;
  --ink-control: #3D4856 !important;
  --ink-line-strong: #7C8896 !important;
  --aqua-ink: #12283A !important;
  --aqua-muted: #3D4856 !important;
  --aqua-link: #0D6E73 !important;
  --aqua-outline: #3D4856 !important;
  --aqua-sand-ink: #566172 !important;
  --aqua-line: #C7D0DC !important;
  --brand-line: #C7D0DC !important;
  color: #3D4856 !important;
}

/* 3. Band roles: white is the default, slate marks supporting sections */
html body.home-page :is(.hm-cool-band, .hm-faqs),
html body .referral-course > :is(#audience, [data-course-flow="audience"], #schedule, .course-faq-section) {
  background: var(--ps-white) !important;
}
html body .referral-course > :is(#reviews, #curriculum, #why, #pricing, #career) {
  background: var(--ps-slate) !important;
}
html body.home-page :is(.hm-coaches-zone, .hm-cool-band),
html body .referral-course > .band:not(#reviews, #curriculum, #why, #pricing, #career, .gcert) + .band:not(#reviews, #curriculum, #why, #pricing, #career, .gcert) {
  border-top: 1px solid var(--ps-line) !important;
}
html body .referral-course > section.final { border-top-color: transparent !important; }
html body .referral-course .tick { background: var(--ps-aqua-tint) !important; }

/* 4. Hero details */
html body .hm-zone-hero { padding-bottom: 0 !important; }
html body .hm-hero-mark { opacity: 1 !important; }
html body .hm-hero-mark path:nth-child(1) { fill: var(--ps-shape-2) !important; }
html body .hm-hero-mark path:nth-child(2) { fill: var(--ps-shape-1) !important; }
html body .hm-hero-mark path:nth-child(3) { fill: var(--ps-shape-3) !important; }
html body .hm-hero-mark-5 path { fill: var(--ps-teal) !important; }
html body .hm-zone-hero .hm-title-accent {
  background-image: linear-gradient(transparent 89%, var(--ps-aqua) 89%, var(--ps-aqua) 95%, transparent 95%) !important;
  text-decoration: none !important;
}
html body .hm-zone-hero .hm-title-accent * { text-decoration: none !important; }
html body .referral-course > section.hero .hl {
  background-image: linear-gradient(transparent 86%, var(--ps-aqua) 86%, var(--ps-aqua) 93%, transparent 93%) !important;
}

/* 5. Footer */
html body .site-footer.legacy-footer { border-top-color: var(--ps-aqua) !important; }
html body .footer-zone .lf-newsletter { background: transparent !important; border: 1px solid var(--ps-on-navy-line) !important; }
/* Interim: turns the dark logo white. Replace with a real white logo file when one is available, then delete this rule. */
html body .site-footer .site-footer__logo { filter: brightness(0) invert(1) !important; }

}
