/* Load after shared.css. This shell keeps the official identity and replaces
   icon-only navigation with an explicit menu, without duplicate header CTAs. */
@media (max-width:700px) {
  body.fnx-site.fnx-home .fnx-stage-bridge {
    display:grid;
    grid-template-columns:minmax(0,1fr);
    gap:10px;
  }
  body.fnx-site.fnx-home .fnx-stage-bridge>p { flex:none; }
}
body.fnx-site .fnx-header {
  gap: clamp(24px, 3vw, 48px);
}

.fnx-header .fnx-nav {
  gap: clamp(22px, 2.7vw, 42px);
}

.fnx-header .fnx-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 12px 0;
  font-size: 15px;
}

.fnx-header .fnx-nav a::after {
  bottom: 4px;
}

.fnx-header .fnx-header-actions {
  flex-shrink: 0;
  gap: 0;
}

body.fnx-site .fnx-header .fnx-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 88px;
  min-height: 44px;
  height: auto;
  padding: 10px 20px !important;
  border: 1px solid var(--fnx-navy);
  background: transparent;
  color: var(--fnx-navy);
  font: 500 15px/1.4 var(--fnx-sans);
  cursor: pointer;
  transition: color .18s ease, background-color .18s ease;
}

.fnx-js body.fnx-site .fnx-header .fnx-menu-toggle {
  display: inline-flex;
}

body.fnx-site .fnx-header .fnx-menu-toggle:hover,
body.fnx-site .fnx-header .fnx-menu-toggle[aria-expanded="true"] {
  color: var(--fnx-paper);
  background: var(--fnx-navy);
}

.fnx-header :is(a, button):focus-visible,
.fnx-dialog :is(a, button):focus-visible,
.fnx-nojs-menu :is(a, summary):focus-visible {
  outline: 2px solid var(--fnx-navy);
  outline-offset: 5px;
}

.fnx-nojs-menu summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  cursor: pointer;
  font-weight: 500;
}

.fnx-nojs-menu nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: inherit;
  text-underline-offset: 5px;
}

body.fnx-site .fnx-dialog.fnx-menu {
  width: min(900px, calc(100% - 48px));
  max-height: calc(100dvh - 48px);
  padding: clamp(24px, 3.5vw, 48px);
}

.fnx-dialog .fnx-dialog-top {
  align-items: center;
  padding-bottom: 20px;
}

.fnx-dialog .fnx-dialog-top p {
  margin: 0;
  font: 500 20px/1.3 var(--fnx-sans);
  letter-spacing: -.02em;
}

.fnx-dialog .fnx-dialog-top button {
  min-width: 64px;
  min-height: 44px;
  padding: 10px 0 10px 14px;
  text-align: right;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.fnx-dialog .fnx-dialog-top button:hover {
  text-decoration-thickness: 2px;
}

.fnx-menu-content {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 48px;
  padding-top: 28px;
}

.fnx-menu .fnx-menu-content > nav {
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 0;
}

.fnx-menu .fnx-menu-content > nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  width: fit-content;
  max-width: 100%;
  padding: 3px 0;
  font: 400 clamp(27px, 3.2vw, 38px)/1.25 var(--fnx-sans);
  letter-spacing: -.035em;
}

.fnx-menu .fnx-menu-content a:hover {
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
}

.fnx-menu .fnx-menu-content a[aria-current] {
  color: var(--fnx-navy);
  text-decoration: underline;
  text-decoration-color: var(--fnx-gold);
  text-underline-offset: 7px;
}

.fnx-menu .fnx-menu-audiences {
  display: grid;
  gap: 0;
  padding: 0;
  border: 0;
}

.fnx-menu .fnx-menu-audiences p {
  margin: 6px 0 12px;
  color: var(--fnx-muted);
  font: 400 12px/1.5 var(--fnx-mono);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.fnx-menu .fnx-menu-audiences a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 0;
  font: 400 17px/1.4 var(--fnx-sans);
}

.fnx-menu-search {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--fnx-line);
}

.fnx-menu-search button {
  width: 100%;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid var(--fnx-navy);
  border-radius: 0;
  background: var(--fnx-navy);
  color: var(--fnx-paper);
  font: 500 16px/1.4 var(--fnx-sans);
  cursor: pointer;
}

.fnx-menu-search button:hover {
  background: #193454;
}

.fnx-menu-search p {
  margin: 10px 0 0;
  color: var(--fnx-muted);
  font: 400 14px/1.5 var(--fnx-sans);
}

.fnx-search .fnx-search-results {
  margin-top: 6px;
}

.fnx-search .fnx-search-result {
  grid-template-columns: 70px minmax(0, 1fr);
}

/* Older result rendering may still append an arrow; it is not a control. */
.fnx-search-result > span[aria-hidden="true"]:last-child {
  display: none;
}

.fnx-search .fnx-search-all {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 20px;
  padding: 10px 0;
  font-weight: 500;
}

.fnx-search .fnx-search-all:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.fnx-footer .fnx-footer-top {
  align-items: center;
  padding-bottom: 44px;
}

.fnx-footer .fnx-footer-top h2 {
  font: 400 clamp(30px, 3.5vw, 52px)/1.1 var(--fnx-sans);
  letter-spacing: -.035em;
}

.fnx-footer .fnx-footer-top .fnx-eyebrow {
  margin-bottom: 18px;
}

.fnx-footer .fnx-footer-cta {
  display: inline-flex;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid #ffffff80;
  font: 500 16px/1.4 var(--fnx-sans);
}

.fnx-footer .fnx-footer-cta:hover {
  background: var(--fnx-paper);
  color: var(--fnx-navy);
  text-decoration: none;
}

.fnx-footer :is(a, button):focus-visible {
  outline: 2px solid #e0bd88;
  outline-offset: 5px;
}

@media (max-width: 1100px) {
  .fnx-header .fnx-nav {
    gap: 22px;
  }
}

@media (max-width: 900px) {
  .fnx-header .fnx-nav {
    display: none;
  }

  .fnx-header .fnx-header-actions {
    margin-left: auto;
  }
}

@media (max-width: 600px) {
  body.fnx-site .fnx-header {
    gap: 20px !important;
  }

  body.fnx-site .fnx-header .fnx-menu-toggle {
    min-width: 84px;
    min-height: 44px;
    padding: 10px 18px !important;
  }

  body.fnx-site .fnx-dialog.fnx-menu {
    width: calc(100% - 24px);
    max-height: calc(100dvh - 24px);
    padding: 22px;
  }

  .fnx-menu-content {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding-top: 20px;
  }

  .fnx-menu .fnx-menu-content > nav {
    gap: 0;
  }

  .fnx-menu .fnx-menu-content > nav a {
    min-height: 44px;
    font-size: 28px;
  }

  .fnx-menu-services {
    padding-top: 20px;
    border-top: 1px solid var(--fnx-line);
  }

  .fnx-menu .fnx-menu-audiences p {
    margin-top: 0;
  }

  .fnx-menu-search {
    margin-top: 18px;
    padding-top: 18px;
  }

  .fnx-search .fnx-search-result {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .fnx-footer .fnx-footer-cta {
    margin-top: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fnx-header .fnx-menu-toggle {
    transition: none;
  }
}
