
/* Shared public header, matching the Capabilities desktop header. */
:root { --site-header-height: 76px; }
html { scroll-padding-top: calc(var(--site-header-height) + 16px); }
body:has(.unified-header) { margin: 0; }
.unified-header.site-header {
  position: sticky;
  top: 0;
  flex-shrink: 0;
  z-index: 30;
  --header-glass: rgba(255, 255, 255, .72);
  background: transparent;
  border-bottom: 1px solid rgba(226, 232, 240, .65);
  box-shadow: 0 2px 8px rgba(10, 37, 64, .03);

  transition: background-color .2s ease, box-shadow .2s ease;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
}
.unified-header.site-header::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: calc(100% + var(--site-search-height, 0px));
  transition: height .3s cubic-bezier(.22, 1, .36, 1);
  z-index: -1;
  background: var(--header-glass);
  -webkit-backdrop-filter: blur(20px) saturate(145%);
  backdrop-filter: blur(20px) saturate(145%);
  pointer-events: none;
}
.unified-header.site-header.is-scrolled {
  --header-glass: rgba(255, 255, 255, .88);
  box-shadow: 0 4px 20px rgba(10, 37, 64, .08);
}
.has-page-banner .unified-header.site-header,
.home-page .unified-header.site-header {
  margin-bottom: calc(-1 * (var(--site-header-height) + 1px));
}
.home-page .hero { padding-top: calc(var(--site-header-height) + 1px); }
.unified-header .site-nav {
  box-sizing: border-box;
  width: 100%;
  max-width: 1280px;
  height: 76px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.unified-header .site-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.unified-header .site-brand img {
  display: block;
  height: 42px;
  width: auto;
  max-width: 100%;
}
.unified-header .site-nav-links {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  justify-content: center;
  gap: clamp(28px, 3.75vw, 48px);
  margin: 0;
  padding: 0;
}
.unified-header .site-nav-link {
  position: relative;
  padding: 8px 0;
  color: #0a2540;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: normal;
  white-space: nowrap;
  text-decoration: none;
  transition: color .15s ease;
}
.unified-header .site-nav-link:hover,
.unified-header .site-nav-link[aria-current="page"] {
  color: #0077c8;
}
.unified-header .site-nav-link[aria-current="page"] {
  font-weight: 700;
}
.unified-header .site-nav-link[aria-current="page"]::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  border-radius: 2px;
  background: linear-gradient(90deg, #0077c8, #22d3ee, #059669);
}
.unified-header .site-quote {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 10px 22px;
  border: 0;
  border-radius: 6px;
  background: linear-gradient(135deg, #1670f5 0%, #1e9bf0 35%, #22c3d6 70%, #4fd992 100%);
  color: #fff;
  font: 700 14px/1.6 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  letter-spacing: normal;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background .15s ease, box-shadow .15s ease, transform .15s ease;
}
.unified-header .site-quote:hover {
  background: linear-gradient(135deg, #1670f5 0%, #1e9bf0 35%, #22c3d6 70%, #4fd992 100%);
  color: #fff;
  box-shadow: 0 4px 8px rgba(0, 119, 200, .3);
  transform: translateY(-1px);
}
.unified-header .site-menu-toggle {
  display: none;
  padding: 4px;
  border: 0;
  background: none;
  color: #0a2540;
  font: 24px/1.2 sans-serif;
  cursor: pointer;
}
.unified-header :is(a, button):focus-visible {
  outline: 2px solid #0077c8;
  outline-offset: 4px;
}
@media (max-width: 1100px) {
  .unified-header .site-quote { margin-left: auto; }
  .unified-header .site-menu-toggle { display: block; }
  .unified-header .site-nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 16px 24px;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 6px 8px rgba(10, 37, 64, .06);
    flex: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .unified-header .site-nav-links.is-open { display: flex; }
  .unified-header .site-nav-link { display: block; width: fit-content; align-self: flex-start; }
}
@media (max-width: 480px) {
  :root { --site-header-height: 66px; }
  .unified-header .site-nav { height: 66px; padding: 0 16px; gap: 6px; }
  .unified-header .site-brand img { width: 128px; height: auto; }
  .unified-header .site-quote { padding: 10px 12px; font-size: 12px; }
}

/* Compact search disclosure below the navigation. */
.unified-header .site-search-toggle,
.unified-header .site-search-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #0a2540;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.unified-header .site-search-toggle:hover,
.unified-header .site-search-toggle[aria-expanded="true"] { background: #0077c810; color: #0077c8; }
.home-page .unified-header .site-search-toggle { color: #f5f5ef; }
.home-page .unified-header .site-search-toggle:hover,
.home-page .unified-header .site-search-toggle[aria-expanded="true"] { background: #ffffff18; color: #fff; }
.unified-header .site-search-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  box-sizing: border-box;
  padding: 26px 24px 28px;
  background: transparent;
  color: #0a2540;
  border: 0;
  box-shadow: none;
  animation: site-search-reveal .3s cubic-bezier(.22, 1, .36, 1) both;
}
.unified-header .site-search-panel[hidden] { display: none; }
.unified-header .site-search-inner { max-width: 800px; margin: 0 auto; }
.unified-header .site-search-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.unified-header .site-search-heading label { font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.unified-header .site-search-close { width: 32px; height: 32px; color: #64748b; }
.unified-header .site-search-close:hover { background: #f1f5f9; color: #0a2540; }
.unified-header .site-search-form { margin: 0; }
.unified-header .site-search-field {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 7px 8px 7px 20px;
  border: 1px solid #d6e0e9;
  border-radius: 12px;
  background: #f8fafc;
  transition: box-shadow .2s ease, background .2s ease;
}
.unified-header .site-search-field > svg { flex-shrink: 0; color: #64748b; }
.unified-header .site-search-field input {
  box-sizing: border-box;
  display: block;
  flex: 1;
  min-width: 0;
  width: 100%;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: none;
  background: transparent;
  box-shadow: none;
  color: #0a2540;
  font: 400 16px/1.5 'Inter', sans-serif;
}
.unified-header .site-search-field input::placeholder { color: #82909f; opacity: 1; }
.unified-header .site-search-field:has(input:focus) { background: #fff; box-shadow: 0 0 0 4px #0077c80a; }
.unified-header .site-search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  flex-shrink: 0;
  height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 7px;
  background: #0a2540;
  color: #fff;
  font: 600 14px/1.5 'Inter', sans-serif;
  cursor: pointer;
}
.unified-header .site-search-submit:hover { background: #0077c8; }
.unified-header .site-search-panel :is(button,a):focus-visible { outline: 2px solid #0077c8; outline-offset: 3px; }
.unified-header .site-search-hint { margin: 12px 0 0; color: #64748b; font-size: 12px; line-height: 1.6; }
.unified-header .site-search-results { max-height: min(280px, 35dvh); overflow-y: auto; margin-top: 16px; font-size: 14px; }
.unified-header .site-search-results p { margin: 0 0 8px; color: #64748b; }
.unified-header .site-search-results a { display: block; padding: 8px 4px; color: #0077c8; text-decoration: none; }
.unified-header .site-search-results a:hover { background: #f1f5f9; }
@keyframes site-search-reveal { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
@media (max-width: 480px) {
  .unified-header .site-search-toggle { width: 36px; height: 40px; }
  .unified-header .site-search-panel { padding: 18px 16px 22px; }
  .unified-header .site-search-heading label { font-size: 16px; }
  .unified-header .site-search-field { gap: 10px; padding-left: 12px; }
  .unified-header .site-search-submit { padding: 0 12px; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .unified-header .site-search-panel { animation: none; }
}

/* Match the dark Home navigation without creating a nested backdrop root. */
.home-page .unified-header .site-search-panel {
  color: #f5f5ef;
  border: 0;
  box-shadow: none;
}
.home-page .unified-header .site-search-close,
.home-page .unified-header .site-search-hint,
.home-page .unified-header .site-search-field > svg { color: #c3ced3; }
.home-page .unified-header .site-search-close:hover { background: #ffffff15; color: #fff; }
.home-page .unified-header .site-search-field { background: #ffffff08; border-color: #ffffff30; }
.home-page .unified-header .site-search-field:has(input:focus) { background: #ffffff0c; box-shadow: 0 0 0 4px #22d3ee08; }
.home-page .unified-header .site-search-field input { color: #fff; color-scheme: dark; }
.home-page .unified-header .site-search-field input::placeholder { color: #b3c0c8; }
.home-page .unified-header .site-search-submit { background: #f2f1e9; color: #172326; }
.home-page .unified-header .site-search-submit:hover { background: #fff; }

/* Navigation and search share one continuous glass surface. */
.unified-header.site-header.is-search-open { border-bottom-color: transparent; box-shadow: none; }
@media (prefers-reduced-motion: reduce) {
  .unified-header.site-header::before { transition: none; }
}
/* The glass lives on ::before; filtering the header itself clips its extended backdrop. */
.unified-header.site-header {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
