/* Theme toggle and light mode for the homepage, 404 and /diagnostic-booked.

   Dark is the default and is what style.css, responsive.css and
   diagnostic-booked.css draw. Light mode is everything under
   html[data-theme="light"] below, on the Brand System light-surface spec:

     ground #FFFFFF          headings Navy #0F2A44
     body #1A1A1A            muted #5C6672
     Action Blue #2F6FED     section rules, key numbers, links, CTA fill
     #F2F5FA                 alternating rows and callout grounds
     #DDE4EE                 hairlines

   Layout, sizes and copy are identical in both modes; only color changes.
   The reports carry their own copy of these values (they are standalone). */


/* ---------------------------------------------------------------- toggle */

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid #DDE4EE;
  border-radius: 999px;
  background: transparent;
  color: #0F2A44;
  cursor: pointer;
}
.theme-toggle:hover { background: #F2F5FA; }
.theme-toggle:focus-visible { outline: 2px solid #2F6FED; outline-offset: 2px; }
.theme-toggle svg { width: 18px; height: 18px; display: block; }
.theme-toggle .i-moon { display: none; }
html[data-theme="light"] .theme-toggle .i-sun { display: none; }
html[data-theme="light"] .theme-toggle .i-moon { display: block; }

/* homepage nav: sits just before the CTA */
.s8 .theme-toggle { margin-right: -12px; }

/* 404 has no header bar: the toggle sits in the top-right corner */
.theme-toggle--corner { position: absolute; top: 20px; right: 20px; z-index: 5; color: #FFFFFF; border-color: rgba(255,255,255,0.24); }
.theme-toggle--corner:hover { background: rgba(255,255,255,0.08); }
html[data-theme="light"] .theme-toggle--corner { color: #0F2A44; border-color: #DDE4EE; }
html[data-theme="light"] .theme-toggle--corner:hover { background: #F2F5FA; }

@media (max-width: 1024px) {
  .s8 .theme-toggle { margin-right: 8px; }
}
@media (max-width: 560px) {
  .theme-toggle { width: 32px; height: 32px; }
  .theme-toggle svg { width: 16px; height: 16px; }
  .s8 .theme-toggle { margin-right: 8px; }
  /* make room for the toggle between the wordmark and the CTA */
  .s5 { margin: 12px 8px 0; padding: 7px 7px 7px 12px; }
  .s6 { gap: 7px; }
  .s6 svg { width: 20px; height: 20px; }
  .s7 { font-size: 15px; }
  .s10 { padding: 10px 12px; }
}
@media (max-width: 369px) {
  /* below 370px the wordmark, toggle and full CTA no longer fit side by
     side; the logo mark stays and still links home */
  .s5:has(.s10) .s7 { display: none; }
}


/* ------------------------------------------------------------ light mode */

html[data-theme="light"] body { background: #FFFFFF; color: #1A1A1A; }
/* :where() keeps these at the same weight as style.css's own a rule, so
   every button and link class still sets its own color */
:where(html[data-theme="light"]) a { color: #2F6FED; }
:where(html[data-theme="light"]) a:hover { color: #0F2A44; }

/* page ground; the hero glow and noise are dark-ground effects */
html[data-theme="light"] .s1 { background: #FFFFFF; }
html[data-theme="light"] .s2,
html[data-theme="light"] .s3,
html[data-theme="light"] .s4 { display: none; }

/* header */
html[data-theme="light"] .s5 { border: 1px solid #DDE4EE; box-shadow: 0 6px 20px rgba(15,42,68,0.08); }
html[data-theme="light"] .s9 { color: #1A1A1A; }
html[data-theme="light"] .s9:hover { color: #2F6FED; }
html[data-theme="light"] .s10 { color: #FFFFFF; }
html[data-theme="light"] .s10:hover { background: #0F2A44; color: #FFFFFF; }

/* eyebrow labels and emphasis words */
html[data-theme="light"] .s12 { border-color: #DDE4EE; background: transparent; color: #5C6672; }
html[data-theme="light"] .s14 { color: #2F6FED; }
html[data-theme="light"] .s33 { color: #2F6FED; }

/* headings */
html[data-theme="light"] .s13,
html[data-theme="light"] .s27,
html[data-theme="light"] .s34,
html[data-theme="light"] .s40,
html[data-theme="light"] .s50,
html[data-theme="light"] .s57,
html[data-theme="light"] .s70,
html[data-theme="light"] .s81,
html[data-theme="light"] .s86,
html[data-theme="light"] .s93,
html[data-theme="light"] .s97 { color: #0F2A44; }

/* body copy */
html[data-theme="light"] .s15,
html[data-theme="light"] .s28,
html[data-theme="light"] .s37,
html[data-theme="light"] .s38,
html[data-theme="light"] .s41,
html[data-theme="light"] .s51,
html[data-theme="light"] .s71,
html[data-theme="light"] .s78,
html[data-theme="light"] .s83,
html[data-theme="light"] .s88,
html[data-theme="light"] .s90,
html[data-theme="light"] .s94,
html[data-theme="light"] .s98 { color: #1A1A1A; }

/* muted labels and captions */
html[data-theme="light"] .s18,
html[data-theme="light"] .s24,
html[data-theme="light"] .s35,
html[data-theme="light"] .s54,
html[data-theme="light"] .s77,
html[data-theme="light"] .s100,
html[data-theme="light"] .s101,
html[data-theme="light"] .s105,
html[data-theme="light"] .s108 { color: #5C6672; }
html[data-theme="light"] .s101:hover { color: #0F2A44; }

/* primary CTAs: Action Blue fill, white text, no glow */
html[data-theme="light"] .s17,
html[data-theme="light"] .s84 { background: #2F6FED; color: #FFFFFF; box-shadow: none; }
html[data-theme="light"] .s17:hover,
html[data-theme="light"] .s84:hover { background: #0F2A44; color: #FFFFFF; }
html[data-theme="light"] .s91:hover { background: #0F2A44; }
/* secondary button: white fill, navy text, hairline */
html[data-theme="light"] .s95 { background: #FFFFFF; color: #0F2A44; border-color: #DDE4EE; }
html[data-theme="light"] .s95:hover { background: #F2F5FA; color: #0F2A44; }

/* stat strip */
html[data-theme="light"] .s20 { background: #DDE4EE; border-color: #DDE4EE; }
html[data-theme="light"] .s21 { background: #FFFFFF; }
html[data-theme="light"] .s22,
html[data-theme="light"] .s53 { color: #2F6FED; }
html[data-theme="light"] .s23 { color: #0F2A44; }

/* panels and cards */
html[data-theme="light"] .s30 { background: #F2F5FA; border-color: #DDE4EE; }
html[data-theme="light"] .s43 { background: #FFFFFF; border-color: #DDE4EE; color: #1A1A1A; }
html[data-theme="light"] .s43:hover { border-color: #2F6FED; color: #1A1A1A; }
html[data-theme="light"] .s44 { background: #F2F5FA; }
html[data-theme="light"] .s49 { background: #F2F5FA; border: 1px solid #DDE4EE; }
html[data-theme="light"] .s52 { border-top-color: #DDE4EE; }
html[data-theme="light"] .s55 { color: #2F6FED; }
html[data-theme="light"] .s80 { background: #F2F5FA; border-color: #DDE4EE; }
html[data-theme="light"] .s85,
html[data-theme="light"] .s92 { background: #FFFFFF; border-color: #DDE4EE; }

/* Three Mandates rows */
html[data-theme="light"] .mandates,
html[data-theme="light"] .mandate { border-color: #DDE4EE; }

/* the install timeline */
html[data-theme="light"] .s73 { background: #2F6FED; }
html[data-theme="light"] .s75 { background: #FFFFFF; border-color: #2F6FED; color: #2F6FED; }
html[data-theme="light"] .s76 { color: #2F6FED; }

/* footer: the logo's white body turns navy */
html[data-theme="light"] .s103 { background: #DDE4EE; }
html[data-theme="light"] .s107 { color: #0F2A44; }
html[data-theme="light"] .s106 svg path:first-child { fill: #0F2A44; }


/* ---------------------------------------------- /diagnostic-booked, light */

html[data-theme="light"] .db-h1,
html[data-theme="light"] .db-h2 { color: #0F2A44; }
html[data-theme="light"] .db-sub,
html[data-theme="light"] .db-body,
html[data-theme="light"] .db-caption { color: #1A1A1A; }
html[data-theme="light"] .db-body strong,
html[data-theme="light"] .db-caption strong { color: #0F2A44; }
html[data-theme="light"] .db-small { color: #5C6672; }
html[data-theme="light"] .db-when { border-color: #DDE4EE; background: #F2F5FA; color: #0F2A44; }
html[data-theme="light"] .db-tile { border: 1px solid #DDE4EE; box-shadow: 0 8px 24px rgba(15,42,68,0.10); }
html[data-theme="light"] .db-tile[href]:hover { box-shadow: 0 8px 24px rgba(15,42,68,0.16); }
html[data-theme="light"] .db-video { border-color: #DDE4EE; }
html[data-theme="light"] .db-checklist { border-top-color: #DDE4EE; }
html[data-theme="light"] .db-checklist li { color: #1A1A1A; border-bottom-color: #DDE4EE; }
html[data-theme="light"] .db-results { background: #DDE4EE; border-color: #DDE4EE; }
html[data-theme="light"] .db-result { background: #FFFFFF; }
html[data-theme="light"] .db-result-label { color: #0F2A44; }
html[data-theme="light"] .db-result-context { color: #5C6672; }
html[data-theme="light"] .db-quote-text,
html[data-theme="light"] .db-attrib-name { color: #0F2A44; }
html[data-theme="light"] .db-attrib-role { color: #5C6672; }
html[data-theme="light"] .db-testimonials-grid .db-quote { background: #FFFFFF; border-color: #DDE4EE; }
html[data-theme="light"] .db-video-link { color: #0F2A44; border-color: #DDE4EE; }
html[data-theme="light"] .db-video-link:hover { background: #F2F5FA; color: #0F2A44; }
html[data-theme="light"] .db-video-link span { background: #0F2A44; }
html[data-theme="light"] .db-video-link span path { fill: #FFFFFF; }


/* ------------------------------------- light bands, in either mode */
/* Homepage sections marked .band-light sit on the light ground in dark
   mode too, so they take the same colors as light mode. Generated from
   the light-mode rules above; keep the two in step. */

:where(.band-light) a:hover { color: #0F2A44; }
.band-light .s12 { border-color: #DDE4EE; background: transparent; color: #5C6672; }
.band-light .s14 { color: #2F6FED; }
.band-light .s33 { color: #2F6FED; }
.band-light .s13,
.band-light .s27,
.band-light .s34,
.band-light .s40,
.band-light .s50,
.band-light .s57,
.band-light .s70,
.band-light .s81,
.band-light .s86,
.band-light .s93,
.band-light .s97 { color: #0F2A44; }
.band-light .s15,
.band-light .s28,
.band-light .s37,
.band-light .s38,
.band-light .s41,
.band-light .s51,
.band-light .s71,
.band-light .s78,
.band-light .s83,
.band-light .s88,
.band-light .s90,
.band-light .s94,
.band-light .s98 { color: #1A1A1A; }
.band-light .s18,
.band-light .s24,
.band-light .s35,
.band-light .s54,
.band-light .s77,
.band-light .s100,
.band-light .s101 { color: #5C6672; }
.band-light .s101:hover { color: #0F2A44; }
.band-light .s84 { background: #2F6FED; color: #FFFFFF; box-shadow: none; }
.band-light .s17:hover,
.band-light .s84:hover { background: #0F2A44; color: #FFFFFF; }
.band-light .s91:hover { background: #0F2A44; }
.band-light .s95:hover { background: #F2F5FA; color: #0F2A44; }
.band-light .s20 { background: #DDE4EE; border-color: #DDE4EE; }
.band-light .s21 { background: #FFFFFF; }
.band-light .s22,
.band-light .s53 { color: #2F6FED; }
.band-light .s23 { color: #0F2A44; }
.band-light .s30 { background: #F2F5FA; border-color: #DDE4EE; }
.band-light .s43 { background: #FFFFFF; border-color: #DDE4EE; color: #1A1A1A; }
.band-light .s43:hover { border-color: #2F6FED; color: #1A1A1A; }
.band-light .s44 { background: #F2F5FA; }
.band-light .s49 { background: #F2F5FA; border: 1px solid #DDE4EE; }
.band-light .s52 { border-top-color: #DDE4EE; }
.band-light .s55 { color: #2F6FED; }
.band-light .s80 { background: #F2F5FA; border-color: #DDE4EE; }
.band-light .s85,
.band-light .s92 { background: #FFFFFF; border-color: #DDE4EE; }
.band-light .mandates,
.band-light .mandate { border-color: #DDE4EE; }
.band-light .s73 { background: #2F6FED; }
.band-light .s75 { background: #FFFFFF; border-color: #2F6FED; color: #2F6FED; }
.band-light .s76 { color: #2F6FED; }
.band-light .db-h2 { color: #0F2A44; }
.band-light .db-sub,
.band-light .db-body,
.band-light .db-caption { color: #1A1A1A; }
.band-light .db-body strong,
.band-light .db-caption strong { color: #0F2A44; }
.band-light .db-small { color: #5C6672; }
.band-light .db-when { border-color: #DDE4EE; background: #F2F5FA; color: #0F2A44; }
.band-light .db-tile { border: 1px solid #DDE4EE; box-shadow: 0 8px 24px rgba(15,42,68,0.10); }
.band-light .db-tile[href]:hover { box-shadow: 0 8px 24px rgba(15,42,68,0.16); }
.band-light .db-video { border-color: #DDE4EE; }
.band-light .db-checklist { border-top-color: #DDE4EE; }
.band-light .db-checklist li { color: #1A1A1A; border-bottom-color: #DDE4EE; }
.band-light .db-results { background: #DDE4EE; border-color: #DDE4EE; }
.band-light .db-result { background: #FFFFFF; }
.band-light .db-result-label { color: #0F2A44; }
.band-light .db-result-context { color: #5C6672; }
.band-light .db-quote-text,
.band-light .db-attrib-name { color: #0F2A44; }
.band-light .db-attrib-role { color: #5C6672; }
.band-light .db-testimonials-grid .db-quote { background: #FFFFFF; border-color: #DDE4EE; }
.band-light .db-video-link { color: #0F2A44; border-color: #DDE4EE; }
.band-light .db-video-link:hover { background: #F2F5FA; color: #0F2A44; }
.band-light .db-video-link span { background: #0F2A44; }
.band-light .db-video-link span path { fill: #FFFFFF; }
