.global-navigation {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--global-height-nav);
  background: #fff;
  border-bottom: 1px solid #eaeaea;
}

.feds-topnav-wrapper {
  height: 100%;
}

.feds-topnav {
  display: flex;
  align-items: center;
  height: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 16px;
  gap: 4px;
}

.feds-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #2c2c2c;
  margin-right: 8px;
  flex-shrink: 0;
}

.feds-brand:hover {
  color: #2c2c2c;
}

.feds-brand-image {
  width: 24px;
  height: 24px;
  display: block;
}

.feds-brand-label {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.feds-nav {
  display: none;
  align-items: stretch;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feds-navItem {
  position: relative;
  display: flex;
  align-items: stretch;
}

.feds-navLink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  color: #2c2c2c;
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}

.feds-navLink:hover,
.feds-navItem.is-open > .feds-navLink,
.feds-navLink[aria-current="page"] {
  color: #2c2c2c;
  background: #f8f8f8;
}

.feds-navLink svg {
  width: 10px;
  height: 10px;
  transition: transform 0.15s ease;
}

.feds-navItem.is-open > .feds-navLink svg {
  transform: rotate(180deg);
}

.feds-popup {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  background: #fff;
  border: 1px solid #eaeaea;
  box-shadow: 0 8px 16px rgb(0 0 0 / 12%);
  padding: 16px 0;
  z-index: 220;
}

.feds-navItem.is-open > .feds-popup {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
}

.feds-popup.wide {
  min-width: 560px;
  grid-template-columns: 1fr 1fr;
  padding: 20px;
}

.feds-popup a {
  display: block;
  padding: 8px 20px;
  color: #2c2c2c;
  text-decoration: none;
  font-size: 14px;
}

.feds-popup a:hover {
  background: #f5f5f5;
  color: #2c2c2c;
}

.feds-popup strong {
  display: block;
  padding: 8px 20px 4px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #686868;
}

.feds-nav-wrapper {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  height: 100%;
  position: relative;
}

.feds-icon-button {
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #2c2c2c;
}

.feds-icon-button:hover {
  background: #f5f5f5;
}

.feds-signIn {
  color: #2c2c2c;
  text-decoration: none;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 4px;
}

.feds-signIn:hover {
  background: #f5f5f5;
  color: #2c2c2c;
}

.feds-toggle {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  cursor: pointer;
  margin-left: auto;
}

.feds-toggle span,
.feds-toggle span::before,
.feds-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: #2c2c2c;
  position: relative;
}

.feds-toggle span::before,
.feds-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.feds-toggle span::before { top: -6px; }
.feds-toggle span::after { top: 6px; }

.feds-localnav {
  position: fixed;
  top: var(--global-height-nav);
  left: 0;
  right: 0;
  z-index: 150;
  height: var(--feds-localnav-height);
  background: #fff;
  border-bottom: 1px solid #eaeaea;
}

.feds-localnav-inner {
  display: flex;
  align-items: center;
  height: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 16px;
  gap: 8px;
  overflow-x: auto;
}

.feds-localnav-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #2c2c2c;
  font-weight: 700;
  font-size: 15px;
  margin-right: 8px;
  white-space: nowrap;
}

.feds-localnav-brand img,
.feds-localnav-brand svg {
  width: 22px;
  height: 22px;
}

.feds-localnav-links {
  display: none;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 4px;
}

.feds-localnav-links a {
  color: #2c2c2c;
  text-decoration: none;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 4px;
  white-space: nowrap;
}

.feds-localnav-links a:hover,
.feds-localnav-links a[aria-current="page"] {
  background: #f5f5f5;
  color: #2c2c2c;
}

.feds-localnav-cta {
  margin-left: auto;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

.feds-localnav-cta .con-button {
  white-space: nowrap;
}

.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgb(0 0 0 / 45%);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 16px 16px;
}

.search-overlay.is-open {
  display: flex;
}

.search-panel {
  width: min(720px, 100%);
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 16px 40px rgb(0 0 0 / 18%);
  padding: 16px;
}

.search-panel form {
  display: flex;
  gap: 8px;
}

.search-panel input {
  flex: 1;
  border: 1px solid #d4d4d4;
  border-radius: 4px;
  padding: 12px 14px;
  font: inherit;
  font-size: 16px;
}

.search-panel input:focus {
  outline: 2px solid #378ef0;
  border-color: #378ef0;
}

.apps-panel {
  display: none;
  position: absolute;
  top: calc(100% + 1px);
  right: 8px;
  width: 320px;
  background: #fff;
  border: 1px solid #eaeaea;
  box-shadow: 0 8px 16px rgb(0 0 0 / 12%);
  padding: 16px;
  z-index: 230;
}

.apps-panel.is-open {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.apps-panel a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: #2c2c2c;
  font-size: 12px;
  padding: 10px 6px;
  border-radius: 8px;
}

.apps-panel a:hover {
  background: #f5f5f5;
}

.app-swatch {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
}

.mobile-drawer {
  display: none;
}

@media (max-width: 1199px) {
  .mobile-drawer {
    display: block;
    position: fixed;
    top: var(--global-height-nav);
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    z-index: 190;
    overflow: auto;
    transform: translateX(-100%);
    transition: transform 0.22s ease;
  }

  body.nav-open .mobile-drawer {
    transform: none;
  }

  .mobile-drawer a,
  .mobile-drawer button.drawer-link {
    display: flex;
    width: 100%;
    text-align: left;
    padding: 16px;
    border: 0;
    border-bottom: 1px solid #eee;
    background: #fff;
    color: #2c2c2c;
    text-decoration: none;
    font: inherit;
    font-size: 16px;
    cursor: pointer;
  }
}

@media (min-width: 1200px) {
  .feds-nav {
    display: flex;
  }

  .feds-toggle,
  .mobile-drawer {
    display: none;
  }

  .feds-localnav-links {
    display: flex;
  }

  .feds-brand-label {
    display: none;
  }
}
