ncvic-site-header { display: contents; }

.ncvic-global-header,
.ncvic-global-header * {
  box-sizing: border-box;
}

.ncvic-global-header {
  --ncvic-header-height: 104px;
  --ncvic-header-compact-surface: #4976b5;
  --ncvic-header-mobile-surface: #4770a8;
  --ncvic-header-report-surface: #2c4a82;
  --ncvic-header-report-hover-surface: #243f70;
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--ncvic-header-height);
  color: #fff;
  /* This is the exact local-font stack used by the production landing header. */
  font-family: "Avenir Next", "Avenir", "Nunito Sans", system-ui, sans-serif;
  transition: height .5s ease, background-color .5s ease, box-shadow .5s ease;
}

.ncvic-global-header.is-scrolled {
  --ncvic-header-height: 72px;
  background: var(--ncvic-header-compact-surface);
  box-shadow: 0 2px 24px rgba(0, 0, 0, .2);
}

.ncvic-global-header.is-menu-open {
  background: var(--ncvic-header-mobile-surface);
}

/* Theme variants change only surface tokens; layout and navigation stay shared. */
ncvic-site-header[data-ncvic-header-theme="midnight"] .ncvic-global-header {
  --ncvic-header-compact-surface: #17345c;
  --ncvic-header-mobile-surface: #17345c;
  --ncvic-header-report-surface: #31588f;
  --ncvic-header-report-hover-surface: #294978;
}

.ncvic-global-header__bar {
  position: relative;
  z-index: 2;
  width: min(100%, 1280px);
  height: 100%;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.ncvic-global-header__logo {
  flex: 0 0 auto;
  display: block;
  width: 148px;
  height: 72px;
  padding: 0;
  transition: width .35s ease, height .35s ease;
}

.ncvic-global-header.is-scrolled .ncvic-global-header__logo {
  width: 108px;
  height: 52px;
}

.ncvic-global-header__logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ncvic-global-header__links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

:where(.ncvic-global-header a,
  .ncvic-global-header button,
  .ncvic-global-header summary) {
  font: inherit;
}

.ncvic-global-header__link,
.ncvic-global-header summary {
  border: 0;
  padding: 0;
  color: rgba(255, 255, 255, .7);
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .025em;
  line-height: 20px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color .2s ease;
  list-style: none;
}

.ncvic-global-header summary::-webkit-details-marker { display: none; }
.ncvic-global-header__link:hover,
.ncvic-global-header summary:hover,
.ncvic-global-header details[open] > summary { color: #fff; }

.ncvic-global-header details {
  position: relative;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
}
.ncvic-global-header summary {
  display: block;
  gap: 0;
}
.ncvic-global-header summary::after { content: none; }
.ncvic-global-header details a { text-decoration: none; }
.ncvic-global-header__menu {
  position: absolute;
  top: calc(100% + 14px);
  left: -14px;
  min-width: 218px;
  margin: 0;
  padding: 8px;
  border-radius: 9px;
  background: rgba(18, 35, 68, .98);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .35);
}

.ncvic-global-header__menu--wide {
  left: 50%;
  display: flex;
  width: min(520px, calc(100vw - 32px));
  transform: translateX(-50%);
}

.ncvic-global-header__menu a {
  display: block;
  padding: 9px 11px;
  border-radius: 6px;
  color: rgba(255, 255, 255, .8);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: normal;
  line-height: 20px;
  text-decoration: none;
}

.ncvic-global-header__tools-audiences {
  display: flex;
  flex: 0 0 186px;
  flex-direction: column;
  gap: 2px;
  padding: 6px;
}

.ncvic-global-header__tools-audiences button {
  width: 100%;
  border: 0;
  padding: 8px 12px;
  border-radius: 6px;
  color: rgba(255, 255, 255, .65);
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  text-align: left;
  cursor: pointer;
}

.ncvic-global-header__tools-audiences button[aria-selected="true"] {
  color: #fff;
  background: rgba(255, 255, 255, .12);
}

.ncvic-global-header__tools-divider {
  flex: 0 0 1px;
  margin: 6px 0;
  background: rgba(255, 255, 255, .1);
}

.ncvic-global-header__tools-panels {
  flex: 1 1 auto;
  min-width: 0;
  padding: 6px;
}

.ncvic-global-header__tools-panels > [hidden] {
  display: none;
}

.ncvic-global-header__tools-panels a,
.ncvic-global-header__tools-disabled {
  display: block;
  width: 100%;
  padding: 8px 12px;
  border-radius: 6px;
}

.ncvic-global-header__tools-panels strong {
  display: block;
  color: rgba(255, 255, 255, .9);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.ncvic-global-header__tools-disabled {
  cursor: default;
  opacity: .4;
}

.ncvic-global-header__menu a:hover,
.ncvic-global-header__menu a:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, .1);
}

.ncvic-global-header__menu small {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, .45);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 16.5px;
}

.ncvic-global-header__report {
  flex: 0 0 auto;
  display: inline-block;
  padding: 10px 20px;
  border-radius: 11px;
  color: #fff;
  background: var(--ncvic-header-report-surface);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: normal;
  line-height: 20px;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s ease;
}

.ncvic-global-header__report:hover { background: var(--ncvic-header-report-hover-surface); }

.ncvic-global-header__toggle {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border: 0;
  padding: 9px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.ncvic-global-header__toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 2px;
  background: currentColor;
  transition: transform .25s ease, opacity .2s ease;
}

.ncvic-global-header.is-menu-open .ncvic-global-header__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ncvic-global-header.is-menu-open .ncvic-global-header__toggle span:nth-child(2) { opacity: 0; }
.ncvic-global-header.is-menu-open .ncvic-global-header__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.ncvic-global-header__mobile {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--ncvic-header-mobile-surface);
}

.ncvic-global-header.is-menu-open .ncvic-global-header__mobile { display: block; }

.ncvic-global-header__mobile-panel {
  min-height: 100%;
  padding: calc(var(--ncvic-header-height) + 28px) 32px max(48px, env(safe-area-inset-bottom));
}

.ncvic-global-header__mobile-panel[hidden] { display: none; }
.ncvic-global-header__mobile-panel > [hidden] { display: none; }

.ncvic-global-header__mobile-panel > a,
.ncvic-global-header__mobile-panel > button:not(.ncvic-global-header__mobile-back) {
  display: block;
  width: 100%;
  border: 0;
  padding: 14px 0;
  color: #fff;
  background: transparent;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: normal;
  line-height: 48px;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.ncvic-global-header__mobile-label {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, .4);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 20px;
  text-transform: uppercase;
}

.ncvic-global-header__mobile-back {
  position: absolute;
  top: max(18px, env(safe-area-inset-top));
  left: 20px;
  border: 0;
  padding: 10px 12px;
  color: rgba(255, 255, 255, .7);
  background: transparent;
  font-size: 15px;
  font-weight: 600;
  line-height: 24px;
  cursor: pointer;
}

.ncvic-global-header__mobile-back span {
  display: inline-block;
  margin-right: 4px;
  font-size: 26px;
  line-height: 18px;
  vertical-align: -2px;
}

.ncvic-global-header__mobile-panel > .ncvic-global-header__report,
.ncvic-global-header__mobile-report-float {
  width: auto;
  padding: 16px 28px;
  border-radius: 8px;
  color: #2c8c33;
  background: #68ea77;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .3);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 28px;
  text-decoration: none;
}

.ncvic-global-header__mobile-panel > .ncvic-global-header__report {
  display: inline-block;
  margin-top: 40px;
}

.ncvic-global-header__mobile-panel--resources > a,
.ncvic-global-header__mobile-disabled {
  display: block;
  padding: 16px 0;
  text-decoration: none;
}

.ncvic-global-header__mobile-panel--resources > a { color: #fff; }

.ncvic-global-header__mobile-panel--resources strong,
.ncvic-global-header__mobile-panel--resources small { display: block; }

.ncvic-global-header__mobile-panel--resources strong {
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
}

.ncvic-global-header__mobile-panel--resources small {
  margin-top: 4px;
  color: rgba(255, 255, 255, .5);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
}

.ncvic-global-header__mobile-disabled { opacity: .35; }

.ncvic-mobile-menu-open,
.ncvic-mobile-menu-open body { overflow: hidden; }

.ncvic-global-header__mobile a:focus-visible,
.ncvic-global-header__mobile button:focus-visible {
  outline: 0;
  box-shadow: none;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.ncvic-global-header__mobile-panel > .ncvic-global-header__report:focus-visible {
  text-decoration: none;
  filter: brightness(.9);
}

.ncvic-global-header__mobile-report-float {
  display: none;
}

.ncvic-header-spacer { height: 104px; }

html {
  scroll-padding-top: 88px;
}

:where(input, select, textarea, button, [tabindex]):not([tabindex="-1"]) {
  scroll-margin-top: 88px;
}

.ncvic-global-header a:focus-visible,
.ncvic-global-header button:focus-visible,
.ncvic-global-header summary:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

@media (max-width: 1100px) {
  .ncvic-global-header__links { gap: 14px; }
  .ncvic-global-header__link,
  .ncvic-global-header summary { font-size: 13px; }
}

@media (max-width: 639px) {
  .ncvic-global-header.is-menu-open {
    transition: height .5s ease, box-shadow .5s ease;
  }
  .ncvic-global-header__bar { padding: 0 22px; }
  .ncvic-global-header__links,
  .ncvic-global-header__bar > .ncvic-global-header__report { display: none; }
  .ncvic-global-header__toggle { display: block; }
  .ncvic-global-header.is-menu-open .ncvic-global-header__bar { pointer-events: none; }
  .ncvic-global-header.is-menu-open .ncvic-global-header__toggle { pointer-events: auto; }
  .ncvic-global-header.is-menu-open .ncvic-global-header__logo { visibility: hidden; }
  .ncvic-global-header__mobile-report-float {
    position: fixed;
    right: 20px;
    bottom: max(24px, env(safe-area-inset-bottom));
    display: block;
  }
  .ncvic-global-header.is-menu-open .ncvic-global-header__mobile-report-float { display: none; }
}

@media (min-width: 640px) {
  .ncvic-global-header.has-overflow-items .ncvic-global-header__toggle { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  .ncvic-global-header,
  .ncvic-global-header * { transition: none !important; }
}
