/* Public navigation. Keep each section's routes and existing disclosure behavior. */
html[data-nx-public-shell] {
  --nx-shell-surface: #121820;
  --nx-shell-elevated: #161e29;
  --nx-shell-control: #1b2635;
  --nx-shell-line: #2c3745;
  --nx-shell-text: #f4f6fa;
  --nx-shell-muted: #b4c0d0;
  --nx-shell-accent: #82b6ff;
  --nx-shell-action: #2563eb;
  --nx-shell-action-hover: #1d4ed8;
  --nx-shell-height: 64px;
  --nx-shell-max: 76rem;
  --nx-shell-gutter: clamp(16px, 2.4vw, 32px);
  --nx-shell-panel: 25rem;
}
html[data-nx-public-shell="service"]:not(.nx-quote-process) {
  scroll-padding-block-start: calc(var(--nx-shell-height) + 12px);
}
html[data-nx-public-shell] body header.nx-site-header,
html[data-nx-public-shell="business"] .mast {
  --nx-header-height: var(--nx-shell-height);
  --nx-header-base: var(--nx-shell-height);
  --nx-sector-bar: 0px;
  background: var(--nx-shell-surface);
  border-block-end: 1px solid var(--nx-shell-line);
}
html[data-nx-public-shell] body header.nx-site-header #header-inner {
  min-height: var(--nx-shell-height);
  height: var(--nx-shell-height);
}
html[data-nx-public-shell] body header.nx-site-header .nx-header-surface {
  background: var(--nx-shell-surface);
}
html[data-nx-public-shell] body header.nx-site-header .nx-header-row,
html[data-nx-public-shell="business"] .mast .mast-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  gap: clamp(10px, 1.75vw, 24px);
  max-width: var(--nx-shell-max);
  width: 100%;
  min-height: var(--nx-shell-height);
  height: var(--nx-shell-height);
  margin-inline: auto;
  padding-inline: max(var(--nx-shell-gutter), env(safe-area-inset-left, 0px)) max(var(--nx-shell-gutter), env(safe-area-inset-right, 0px));
}
html[data-nx-public-shell="service"] body .nx-sector-spacer,
html[data-nx-public-shell="service"] body header.nx-site-header .nx-service-brand .nx-brand-context {
  display: none;
}
html[data-nx-public-shell] body header.nx-site-header .logo-container,
html[data-nx-public-shell="business"] .mast a.brand {
  display: flex;
  justify-content: center;
  margin: 0;
  height: 48px;
  min-height: 44px;
  width: clamp(118px, 13vw, 146px);
}
html[data-nx-public-shell] body header.nx-site-header .logo-container img,
html[data-nx-public-shell="business"] .mast a.brand img {
  width: 100% !important;
  height: auto;
  max-height: 34px;
  object-fit: contain;
}
html[data-nx-public-shell="bios"] body header.nx-site-header .nx-brand-context {
  color: var(--nx-shell-muted);
  font-size: 11px;
  line-height: 1.2;
}
html[data-nx-public-shell] body header.nx-site-header .nx-header-actions,
html[data-nx-public-shell="business"] .nx-shell-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-inline-start: 0;
}
html[data-nx-public-shell="service"] body header.nx-site-header .nx-header-status {
  display: none;
}
html[data-nx-public-shell] body header.nx-site-header .lang-switcher-btn,
html[data-nx-public-shell] body header.nx-site-header .nx-header-menu,
html[data-nx-public-shell="business"] .mast details > summary {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  align-self: center;
  box-sizing: border-box;
  min-height: 44px;
  min-width: 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--nx-shell-text);
  background: var(--nx-shell-control);
  border: 1px solid var(--nx-shell-line);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 750;
  line-height: 1;
  list-style: none;
}
html[data-nx-public-shell="business"] .mast details > summary::-webkit-details-marker { display: none; }
html[data-nx-public-shell="business"] .mast details > summary::after { content: none; }
html[data-nx-public-shell] body header.nx-site-header .nx-header-menu-label,
.nx-shell-control-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}
.nx-shell-menu-icon {
  width: 19px;
  height: 19px;
  color: var(--nx-shell-text);
}
.nx-shell-menu-icon .nx-shell-close-path,
.mast details[open] .nx-shell-menu-icon .nx-shell-open-path { display: none; }
.mast details[open] .nx-shell-menu-icon .nx-shell-close-path { display: inline; }
html[data-nx-public-shell="service"] body header.nx-site-header .nx-sector-switch[data-sector-nav="header"],
html[data-nx-public-shell="business"] .mast nav.nx-shell-sections {
  position: static;
  display: none;
  min-height: 0;
  width: auto;
  margin: 0 auto;
  padding: 0;
  border: 0;
}
html[data-nx-public-shell] :is(.nx-shell-sections, .nx-sector-switch[data-sector-nav="header"]) :is(.sector-link,.nx-sector-link) {
  position: relative;
  min-height: 44px;
  padding: 0 13px;
  border: 0;
  background: none;
  border-radius: 8px;
  color: var(--nx-shell-muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}
html[data-nx-public-shell] :is(.nx-shell-sections,.nx-sector-switch[data-sector-nav="header"]) :is(.sector-link,.nx-sector-link)[aria-current] {
  color: var(--nx-shell-accent);
  box-shadow: none;
}
html[data-nx-public-shell] :is(.nx-shell-sections,.nx-sector-switch[data-sector-nav="header"]) :is(.sector-link,.nx-sector-link)[aria-current]::after {
  content: "";
  position: absolute;
  inset-inline: 13px;
  inset-block-end: 3px;
  height: 2px;
  border-radius: 1px;
  background: var(--nx-shell-accent);
}
html[data-nx-public-shell="service"] body header.nx-site-header .nx-header-nav {
  position: static;
  display: none;
  visibility: visible;
  pointer-events: auto;
  margin: 0;
  width: auto;
}
.nx-shell-cta { display: none; }
html[data-nx-public-shell="business"] .mast details.mobile-nav {
  display: block;
  position: static;
}
html[data-nx-public-shell="business"] .mast .mast-inner { position: relative; }
html[data-nx-public-shell] body header.nx-site-header #nexx-mobile-menu,
html[data-nx-public-shell="business"] .mast details.mobile-nav > nav {
  position: absolute;
  inset-block-start: calc(100% + 8px);
  inset-inline-start: auto;
  inset-inline-end: max(var(--nx-shell-gutter), calc((100vw - var(--nx-shell-max)) / 2 + var(--nx-shell-gutter)));
  box-sizing: border-box;
  width: min(var(--nx-shell-panel), 100vw - var(--nx-shell-gutter) * 2);
  max-height: calc(100vh - var(--nx-shell-height) - 24px);
  max-height: calc(100dvh - var(--nx-shell-height) - 24px);
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--nx-shell-line);
  border-radius: 14px;
  background: var(--nx-shell-elevated);
  color: var(--nx-shell-text);
  box-shadow: 0 16px 38px rgba(0,0,0,.22);
  scrollbar-color: var(--nx-shell-muted) var(--nx-shell-elevated);
}
html[data-nx-public-shell="business"] .mast details.mobile-nav > nav {
  inset-inline-end: var(--nx-shell-gutter);
  padding: 10px;
  z-index: 5;
}
html[data-nx-public-shell] body header.nx-site-header #nexx-mobile-menu[data-open="true"] { display: block; }
html[data-nx-public-shell] body header.nx-site-header .nx-header-menu-shade[data-open="true"] { display: block; }
html[data-nx-public-shell] body header.nx-site-header #nexx-mobile-menu .nx-header-menu-content {
  padding: 10px;
}
html[data-nx-public-shell="bios"] body header.nx-site-header .nx-header-menu-links { display: grid; }
html[data-nx-public-shell="business"] .mast .mobile-portals,
html[data-nx-public-shell] body header.nx-site-header #nexx-mobile-menu .nx-sector-switch[data-sector-nav="menu"] {
  display: grid;
  grid-template-columns: 1fr;
  padding: 0 0 8px;
  margin: 0 0 8px;
  border: 0;
  border-block-end: 1px solid var(--nx-shell-line);
  gap: 0;
}
html[data-nx-public-shell="business"] .mast .mobile-portals .sector-link,
html[data-nx-public-shell] body header.nx-site-header #nexx-mobile-menu .nx-sector-switch[data-sector-nav="menu"] .nx-sector-link,
html[data-nx-public-shell="business"] .mast .nx-shell-local-links > a {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 7px 10px;
  gap: 8px;
  line-height: 1.3;
  border: 0;
  border-radius: 8px;
  text-align: start;
  text-decoration: none;
  color: var(--nx-shell-text);
  background: transparent;
  font-weight: 700;
}
html[data-nx-public-shell="business"] .mast .mobile-portals .sector-link[aria-current],
html[data-nx-public-shell] body header.nx-site-header #nexx-mobile-menu .nx-sector-switch[data-sector-nav="menu"] .nx-sector-link[aria-current] {
  background: var(--nx-shell-control);
  color: var(--nx-shell-accent);
}
.nx-shell-language-note {
  color: var(--nx-shell-muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  text-align: end;
}
html[data-nx-public-shell="business"] .mast .nx-shell-local-links {
  display: grid;
  gap: 2px;
}
html[data-nx-public-shell="business"] .mast .nx-shell-local-links > .nx-shell-menu-action {
  background: var(--nx-shell-action);
  color: #fff;
  margin-block-start: 4px;
}
html[data-nx-public-shell="business"] .mast .nx-shell-local-links > .nx-shell-menu-action:hover {
  background: var(--nx-shell-action-hover);
  color: #fff;
}
html[data-nx-public-shell] :is(.mast,.nx-site-header) :is(a,button,summary):focus-visible {
  outline: 2px solid var(--nx-shell-accent);
  outline-offset: 2px;
}
@media (hover:hover) {
  html[data-nx-public-shell] :is(.mast,.nx-site-header) :is(.sector-link,.nx-sector-link,.nx-shell-local-links > a):hover {
    color: var(--nx-shell-text);
    background: var(--nx-shell-control);
  }
}
@media (min-width: 960px) {
  html[data-nx-public-shell="service"] body header.nx-site-header .nx-sector-switch[data-sector-nav="header"],
  html[data-nx-public-shell="business"] .mast nav.nx-shell-sections { display: flex; gap: 10px; }
  html[data-nx-public-shell="service"] body header.nx-site-header .nx-header-nav { display: flex; }
  html[data-nx-public-shell="business"] .nx-shell-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding-inline: 14px;
    border-radius: 10px;
    background: var(--nx-shell-action);
    color: #fff;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
  }
  html[data-nx-public-shell="business"] .nx-shell-cta:hover { background: var(--nx-shell-action-hover); }
}
@media (min-width: 1100px) {
  html[data-nx-public-shell="bios"] body header.nx-site-header:not([data-nav-collapsed="true"]) .nx-header-nav {
    flex: 1 1 auto;
    justify-content: center;
    margin-inline: auto;
  }
}
@media (max-width: 479px) {
  html[data-nx-public-shell] { --nx-shell-height: 60px; }
  html[data-nx-public-shell] body header.nx-site-header .nx-header-actions,
  html[data-nx-public-shell="business"] .nx-shell-actions { gap: 6px; }
}

/* Audience destinations can wrap; keep visible text and touch targets intact. */
html[data-nx-public-shell] :is(.nx-shell-sections, .nx-sector-switch[data-sector-nav="header"]) :is(.sector-link,.nx-sector-link) {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding-inline: clamp(6px, 1vw, 13px);
  max-inline-size: 11rem;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: start;
}
html[data-nx-public-shell] :is(.mobile-portals, .nx-sector-switch[data-sector-nav="menu"], .nx-fleet-footer__other) :is(.sector-link,.nx-sector-link,[data-sector]) {
  min-inline-size: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}
.nx-audience-fallback {
  flex: 0 0 auto;
  font-size: .8em;
  font-weight: 650;
}
.nx-bios-home-standalone {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  column-gap: 4px;
  row-gap: 0;
  min-inline-size: 44px;
  min-block-size: 44px;
  padding: 3px 7px;
  color: var(--nx-shell-text, #edf2fa);
  line-height: 1.2;
  text-align: center;
  max-inline-size: 9rem;
}
.nx-bios-home-standalone:focus-visible {
  outline: 2px solid var(--nx-shell-accent, #82b6ff);
  outline-offset: 2px;
  border-radius: 6px;
}
@media (min-width: 1100px) {
  /* The ResizeObserver uses this width to choose desktop vs. the burger.
     Measure the same intrinsic width in both modes instead of measuring a
     full-width flex area on desktop and link contents when collapsed. */
  html[data-nx-public-shell="bios"] body header.nx-site-header .nx-header-nav {
    inline-size: max-content;
  }
  html[data-nx-public-shell="bios"] body header.nx-site-header:not([data-nav-collapsed="true"]) .nx-header-nav {
    flex: 0 0 auto;
  }
}
@media (max-width: 479px) {
  .nx-bios-home-standalone { max-inline-size: 5.5rem; padding-inline: 3px; }
}
