/* Shared by the marketing site and Quick Checks. */
.site-header, .site-footer {
  --shell-text: #edf3fc;
  --shell-muted: #a0aec2;
  --shell-mint: #6ef2c2;
  --shell-line: #304153;
  background: #080d14;
  color: var(--shell-text);
  font: .875rem/1.5 Arial, Helvetica, system-ui, sans-serif;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #080d14f7;
  border-bottom: 1px solid #243143;
  backdrop-filter: blur(16px);
}
.site-header .container, .site-footer .container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: max(clamp(1.25rem, 3vw, 2.5rem), env(safe-area-inset-left), env(safe-area-inset-right));
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 80px; }
.site-header .brand, .site-footer .brand { display: inline-flex; align-items: center; flex: none; min-height: 44px; }
.site-header .brand img, .site-footer .brand img { display: block; width: 182px; height: auto; }
.brand-contrast { display: none; font-size: 1.5rem; font-weight: 700; }
#navigation { display: flex; align-items: center; gap: 1.25rem; }
#navigation > a:not(.button), .nav-capabilities > summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: .5rem;
  color: #c3cddd;
}
#navigation > a[aria-current="page"] { color: var(--shell-mint); }
#navigation > .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: 44px;
  padding: .7rem 1rem;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--shell-mint);
  color: #09241c;
  font: inherit;
  line-height: 1.4;
  font-weight: 700;
  text-align: center;
}
#navigation > .button:hover { background: #98f6d4; }
.menu-toggle { display: none; }
.nav-capabilities { position: relative; flex-shrink: 0; }
.nav-capabilities > summary { cursor: pointer; list-style: none; padding: .75rem 0; }
.nav-capabilities > summary::-webkit-details-marker { display: none; }
.nav-capabilities > summary::after { content: '⌄'; margin-left: .25rem; }
.nav-capabilities[open] > summary::after { content: '⌃'; }
.capability-menu {
  position: absolute;
  top: calc(100% + .75rem);
  left: -1rem;
  width: 19rem;
  padding: .75rem;
  background: #101823;
  border: 1px solid var(--shell-line);
  border-radius: 8px;
  box-shadow: 0 16px 35px #0006;
}
.capability-menu a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 44px; padding: .6rem .75rem; }
.capability-menu a:hover, .capability-menu a[aria-current="page"] { background: #193128; color: var(--shell-mint); }
.site-footer { border-top: 1px solid var(--shell-line); padding-block: 2rem; }
.footer-top { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2rem; }
.footer-top > div > p { color: var(--shell-muted); margin-top: .75rem; }
.footer-label { font: .75rem/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; color: var(--shell-muted); margin-bottom: .5rem; }
.footer-top nav a { display: flex; align-items: center; gap: .5rem; min-height: 44px; }
.footer-bottom {
  border-top: 1px solid var(--shell-line);
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .25rem 1.25rem;
  font-size: .75rem;
  line-height: 1.7;
  color: var(--shell-muted);
}
.footer-legal { display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
.footer-legal a { display: inline-flex; align-items: center; min-height: 44px; color: var(--shell-text); }
@media (max-width: 64rem) {
  .site-header { position: relative; }
  .nav-wrap { flex-wrap: wrap; gap: 0; min-height: 76px; }
  [data-menu-ready] .menu-toggle {
    display: flex;
    gap: .75rem;
    align-items: center;
    background: none;
    border: 1px solid #64778b;
    border-radius: 5px;
    min-height: 44px;
    padding: .6rem .75rem;
  }
  [data-menu-ready] .menu-toggle:hover { background: #19382e; border-color: var(--shell-mint); }
  #navigation { width: 100%; flex-direction: column; align-items: stretch; gap: .35rem; padding: .75rem; }
  [data-menu-ready] #navigation {
    display: none;
    max-height: max(6rem, calc(100svh - 5.5rem));
    overflow-y: auto;
    overscroll-behavior: contain;
    scroll-padding: .5rem;
  }
  [data-menu-ready] #navigation.is-open { display: flex; }
  #navigation > a { flex-shrink: 0; }
  #navigation > .button { align-self: flex-start; }
  .capability-menu { position: static; width: auto; margin: .25rem 0 .5rem; box-shadow: none; }
  .nav-capabilities > summary { justify-content: space-between; }
}
@media (max-width: 48rem) {
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
  .footer-top > div { grid-column: 1/-1; }
}
@media (max-width: 24rem) {
  .site-header .brand img { width: 160px; }
  .nav-wrap { gap: .5rem; padding-block: .5rem; }
}
@media (forced-colors: active) {
  .brand-image { display: none !important; }
  .brand-contrast { display: inline; color: CanvasText; }
  #navigation > .button { border-color: ButtonText; }
}
@media print {
  .site-header, .site-footer { display: none; }
}

/* The public sites share one light palette, header and theme control. */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f8fa;
  --surface: #fff;
  --raised: #edf3f6;
  --text: #142b3a;
  --muted: #465e70;
  --line: #bdcdd6;
  --mint: #076348;
  --cyan: #185f88;
  --amber: #825409;
  --focus: #17658e;
  --light-accent-surface: #e4f3eb;
  --light-control-border: #617c8b;
}
.header-controls { display: flex; align-items: center; gap: .5rem; }
.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  color: var(--shell-text);
  background: transparent;
  border: 1px solid #64778b;
  border-radius: 6px;
}
.theme-toggle[hidden] { display: none; }
.theme-toggle:hover { background: var(--shell-hover, #19382e); border-color: var(--shell-mint); }
.theme-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .theme-sun, .site-header .brand .brand-image-light, .site-footer .brand .brand-image-light { display: none; }
:root[data-theme="dark"] .theme-toggle .theme-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .theme-moon { display: none; }
:root[data-theme="light"] :is(.site-header, .site-footer) {
  --shell-text: var(--text);
  --shell-muted: var(--muted);
  --shell-mint: var(--mint);
  --shell-line: var(--line);
  --shell-hover: var(--light-accent-surface);
  background: var(--surface);
}
:root[data-theme="light"] .site-header { background: #fffffff5; border-color: var(--line); }
:root[data-theme="light"] :is(.site-header, .site-footer) .brand .brand-image { display: none; }
:root[data-theme="light"] :is(.site-header, .site-footer) .brand .brand-image-light { display: block; }
:root[data-theme="light"] :is(#navigation > a:not(.button), .nav-capabilities > summary) { color: var(--muted); }
:root[data-theme="light"] #navigation > a[aria-current="page"] { color: var(--shell-mint); }
:root[data-theme="light"] #navigation > .button { color: #fff; }
:root[data-theme="light"] #navigation > .button:hover { background: #084d3a; }
:root[data-theme="light"] .capability-menu { background: var(--surface); box-shadow: 0 16px 35px #23435622; }
:root[data-theme="light"] .capability-menu a:is(:hover, [aria-current="page"]),
:root[data-theme="light"] [data-menu-ready] .menu-toggle:hover { background: var(--shell-hover); }
:root[data-theme="light"] :is(.theme-toggle, .menu-toggle) { border-color: var(--light-control-border); }
@media (min-width: 64.001rem) {
  .nav-wrap { gap: .75rem; }
  #navigation { margin-left: auto; gap: clamp(.65rem, 1.35vw, 1.25rem); }
}
@media (min-width: 64.001rem) and (max-width: 71rem) {
  .site-header .brand img { width: 150px; }
  #navigation > .button { gap: .5rem; padding-inline: .75rem; }
}
@media (max-width: 24rem) {
  .site-header .brand img { width: 142px; }
  .header-controls { gap: .375rem; }
  [data-menu-ready] .menu-toggle { gap: .375rem; padding-inline: .5rem; }
}
