.topbar {
  position: relative;
  z-index: 50;
  padding: 0;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(16, 42, 131, 0.12);
}

.topbar .topbar-inner {
  width: min(1440px, calc(100% - 40px));
  min-height: 78px;
  margin: 0 auto;
  padding: 12px 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.topbar .brand {
  width: auto;
  min-width: 0;
  flex: 0 1 auto;
}

.topbar .brand-copy strong {
  font-size: clamp(1.45rem, 2vw, 1.95rem);
  letter-spacing: 0;
}

.topbar .topnav {
  width: auto;
  max-width: none;
  flex: 0 0 auto;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
}

.topbar .topnav a {
  min-height: 42px;
  padding: 10px 9px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.ptfr-home-menu-toggle {
  width: 44px;
  height: 44px;
  padding: 0;
  flex: 0 0 44px;
  display: none;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 6px;
  background: #000091;
  color: #fff;
  font: inherit;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

.ptfr-home-menu-toggle:hover {
  background: #1212a8;
}

.ptfr-home-menu-toggle:focus-visible,
.topbar .topnav a:focus-visible {
  outline: 3px solid #ffca00;
  outline-offset: 2px;
}

@media (max-width: 1120px) {
  .topbar .brand-copy span {
    display: none;
  }

  .topbar .brand-copy strong {
    font-size: 1.35rem;
  }
}

@media (max-width: 980px) {
  .topbar .topbar-inner {
    width: min(100% - 32px, 1440px);
    min-height: 70px;
    padding: 10px 0;
    flex-direction: row;
    align-items: center;
  }

  .topbar .brand {
    width: auto;
    max-width: calc(100% - 64px);
  }

  .ptfr-home-menu-toggle {
    display: inline-flex;
  }

  .topbar .topnav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: 60;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 16px max(16px, calc((100vw - 940px) / 2));
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px !important;
    background: #fff;
    border-top: 1px solid rgba(16, 42, 131, 0.1);
    border-bottom: 1px solid rgba(16, 42, 131, 0.16);
    border-radius: 0;
    box-shadow: 0 12px 24px rgba(22, 22, 22, 0.12);
  }

  .topbar .topnav.is-open {
    display: grid;
  }

  .topbar .topnav a {
    width: 100%;
    min-height: 46px;
    padding: 10px 14px;
    justify-content: flex-start;
    border: 1px solid rgba(16, 42, 131, 0.12);
    border-radius: 6px;
    background: #f7f7fb;
    color: #161616;
  }

  .topbar .topnav a:hover {
    background: #eef1ff;
    color: #000091;
    transform: none;
  }

  .topbar .topnav .ptfr-claire-nav {
    background: #eef1ff;
    color: #000091 !important;
  }
}

@media (max-width: 560px) {
  .topbar .topbar-inner {
    width: calc(100% - 24px);
  }

  .topbar .brand-mark {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .topbar .brand-copy strong {
    font-size: 1.18rem;
  }

  .topbar .topnav {
    max-height: calc(100vh - 70px);
    padding: 12px;
    grid-template-columns: 1fr;
    overflow-y: auto;
  }
}
