/* Shared DVMReady header and footer chrome. Keep primary nav content canonical in HTML/source. */
:root {
  --chrome-ink: #1c2729;
  --chrome-navy: #17363b;
  --chrome-muted: #58676b;
  --chrome-line: rgba(28, 39, 41, 0.10);
  --chrome-line-strong: rgba(28, 39, 41, 0.16);
  --chrome-surface: rgba(255, 253, 249, 0.94);
  --chrome-teal: #0f766e;
  --chrome-teal-strong: #0b5b55;
  --chrome-amber: #c98e45;
  --chrome-shadow: 0 18px 44px rgba(20, 33, 47, 0.08);
  --chrome-shadow-soft: 0 8px 18px rgba(20, 33, 47, 0.05);
}

.nav-shell,
.cm-header__bar,
header[style] > div > div {
  position: relative !important;
  border-color: var(--chrome-line) !important;
  background:
    linear-gradient(180deg, rgba(255, 253, 249, 0.96), rgba(255, 252, 248, 0.88)) !important;
  box-shadow: var(--chrome-shadow-soft) !important;
}

.nav-shell::before,
.cm-header__bar::before,
header[style] > div > div::before {
  content: "";
  position: absolute;
  right: 24px;
  bottom: -1px;
  left: 24px;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(15, 118, 110, 0.26), transparent);
  opacity: 0.78;
  pointer-events: none;
}

.site-nav a:not(.nav-cta),
.cm-header__nav a:not(.cm-header__cta):not(.nav-cta),
.shell-desktop-nav a:not(.nav-cta) {
  color: var(--chrome-muted) !important;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease !important;
}

.site-nav a:not(.nav-cta):hover,
.site-nav a:not(.nav-cta):focus-visible,
.site-nav a:not(.nav-cta)[aria-current='page'],
.site-nav a:not(.nav-cta).active,
.cm-header__nav a:not(.cm-header__cta):not(.nav-cta):hover,
.cm-header__nav a:not(.cm-header__cta):not(.nav-cta):focus-visible,
.cm-header__nav a:not(.cm-header__cta):not(.nav-cta)[aria-current='page'],
.shell-desktop-nav a:not(.nav-cta):hover,
.shell-desktop-nav a:not(.nav-cta):focus-visible,
.shell-desktop-nav a:not(.nav-cta)[aria-current='page'] {
  background:
    linear-gradient(90deg, rgba(15, 118, 110, 0.10), rgba(37, 99, 235, 0.07)) !important;
  box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.12) !important;
  color: var(--chrome-ink) !important;
  outline: none !important;
  text-decoration: none !important;
}

.site-nav .nav-cta,
.cm-header__cta,
.cm-header__nav .nav-cta,
.shell-desktop-nav .nav-cta,
a.nav-cta {
  background:
    linear-gradient(180deg, #1c2729 0%, #122024 100%) !important;
  box-shadow: inset 0 3px 0 rgba(201, 142, 69, 0.52), 0 10px 20px rgba(20, 33, 47, 0.12) !important;
  color: #fffdf9 !important;
  text-decoration: none !important;
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta:focus-visible,
.cm-header__cta:hover,
.cm-header__cta:focus-visible,
.cm-header__nav .nav-cta:hover,
.cm-header__nav .nav-cta:focus-visible,
.shell-desktop-nav .nav-cta:hover,
.shell-desktop-nav .nav-cta:focus-visible,
a.nav-cta:hover,
a.nav-cta:focus-visible {
  background:
    linear-gradient(180deg, #122024 0%, #0b171a 100%) !important;
  color: #fffdf9 !important;
  outline: 3px solid rgba(15, 118, 110, 0.28) !important;
  outline-offset: 3px !important;
  text-decoration: none !important;
}

.site-footer,
.cm-footer,
footer.site-footer,
footer[style].site-footer {
  width: 100% !important;
  margin-top: clamp(36px, 5vw, 72px) !important;
  padding: 0 0 28px !important;
  border-top: 0 !important;
  background: transparent !important;
  color: var(--chrome-muted) !important;
  font-family: 'Manrope', system-ui, sans-serif !important;
}

.site-footer > .container.footer-grid,
.site-footer > .footer-shell,
.site-footer .site-footer__panel,
.cm-footer__inner,
footer[style]:not(.site-footer) > div > div[style]:first-child {
  position: relative !important;
  overflow: hidden !important;
  border: 1px solid var(--chrome-line) !important;
  border-radius: 24px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 252, 247, 0.95)) !important;
  box-shadow: var(--chrome-shadow) !important;
}

.site-footer > .container.footer-grid::before,
.site-footer > .footer-shell::before,
.site-footer .site-footer__panel::before,
.cm-footer__inner::before,
footer[style]:not(.site-footer) > div > div[style]:first-child::before {
  content: "";
  position: absolute;
  top: 0;
  right: 28px;
  left: 28px;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(15, 118, 110, 0.24), transparent);
}

.site-footer > .container.footer-grid,
.site-footer .site-footer__primary,
.site-footer .footer-shell .footer-grid {
  display: grid !important;
  gap: 28px !important;
}

.site-footer > .container.footer-grid {
  width: min(calc(100% - 32px), 1180px) !important;
  margin-inline: auto !important;
  padding: 34px !important;
}

.site-footer .site-footer__panel,
.site-footer > .footer-shell {
  padding: 34px !important;
}

.site-footer .footer-brand,
.site-footer .brand-footer,
.site-footer .brand {
  min-width: 0 !important;
}

.site-footer .footer-brand p,
.site-footer .footer-grid p,
.site-footer .site-footer__brand p,
.site-footer p,
.cm-footer__inner p {
  color: var(--chrome-muted) !important;
  line-height: 1.6 !important;
}

.site-footer .footer-brand p,
.site-footer .site-footer__brand p {
  max-width: 34rem !important;
  margin: 12px 0 0 !important;
  font-size: 0.95rem !important;
}

.site-footer .footer-nav,
.site-footer .site-footer__links,
.site-footer .footer-grid {
  min-width: 0 !important;
}

.site-footer .footer-nav {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 24px !important;
}

.site-footer .footer-shell .footer-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.site-footer .footer-nav__group strong,
.site-footer .footer-nav > div strong,
.site-footer .footer-grid strong,
.site-footer .site-footer__links strong {
  display: block !important;
  margin: 0 0 10px !important;
  color: var(--chrome-navy) !important;
  font-size: 0.82rem !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.site-footer .footer-nav__group nav,
.site-footer .footer-nav > div nav,
.site-footer .footer-grid nav,
.site-footer .site-footer__links nav {
  display: grid !important;
  gap: 8px !important;
}

.site-footer .footer-nav__group a,
.site-footer .footer-nav > div a,
.site-footer .footer-grid nav a,
.site-footer .site-footer__links a,
.cm-footer__links a {
  width: fit-content !important;
  min-height: 36px !important;
  border-radius: 999px !important;
  color: var(--chrome-muted) !important;
  font-size: 0.93rem !important;
  font-weight: 650 !important;
  line-height: 1.2 !important;
  padding: 7px 10px !important;
  text-decoration: none !important;
}

.site-footer .footer-nav__group a:hover,
.site-footer .footer-nav__group a:focus-visible,
.site-footer .footer-nav > div a:hover,
.site-footer .footer-nav > div a:focus-visible,
.site-footer .footer-grid nav a:hover,
.site-footer .footer-grid nav a:focus-visible,
.site-footer .site-footer__links a:hover,
.site-footer .site-footer__links a:focus-visible,
.cm-footer__links a:hover,
.cm-footer__links a:focus-visible {
  background:
    linear-gradient(90deg, rgba(15, 118, 110, 0.10), rgba(201, 142, 69, 0.08)) !important;
  color: var(--chrome-ink) !important;
  outline: 2px solid rgba(15, 118, 110, 0.18) !important;
  outline-offset: 2px !important;
  text-decoration: none !important;
}

.site-footer .footer-bottom,
.site-footer .disclaimer,
.site-footer .site-footer__bottom,
.site-footer .site-footer__legal {
  margin-top: 24px !important;
  border-top: 1px solid rgba(15, 118, 110, 0.12) !important;
  padding-top: 18px !important;
  color: #728184 !important;
  font-size: 0.82rem !important;
  line-height: 1.55 !important;
  text-align: left !important;
}

.site-footer .footer-bottom p,
.site-footer .disclaimer p,
.site-footer .site-footer__bottom p,
.site-footer .site-footer__legal p {
  margin: 0 0 8px !important;
  color: #728184 !important;
  font-size: inherit !important;
}

.site-footer .footer-bottom p:last-child,
.site-footer .disclaimer p:last-child,
.site-footer .site-footer__bottom p:last-child,
.site-footer .site-footer__legal p:last-child {
  margin-bottom: 0 !important;
}

.site-footer .site-footer__email,
.site-footer .footer-email-capture {
  border-color: rgba(201, 142, 69, 0.18) !important;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.72), rgba(240, 247, 246, 0.78)) !important;
}

@media (min-width: 760px) {
  .site-footer > .container.footer-grid,
  .site-footer .site-footer__primary {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.6fr) !important;
    align-items: start !important;
  }

  .site-footer .footer-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .site-footer .footer-shell .footer-grid {
    grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 1fr)) !important;
  }

  .site-footer .site-footer__primary--quad {
    grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  .site-footer > .container.footer-grid,
  .site-footer .site-footer__panel,
  .site-footer > .footer-shell {
    width: min(calc(100% - 24px), 1180px) !important;
    border-radius: 20px !important;
    padding: 26px 18px !important;
  }

  .site-footer .footer-nav,
  .site-footer .footer-shell .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .site-nav a:not(.nav-cta),
  .cm-header__nav a:not(.cm-header__cta):not(.nav-cta),
  .shell-desktop-nav a:not(.nav-cta) {
    text-align: center !important;
  }
}
