/* Shared public header and footer shell used by every public page. */
.legacy-skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  color: #fff;
  background: var(--theme-primary);
  transform: translateY(-150%);
}

.legacy-skip-link:focus {
  transform: translateY(0);
}

body > .topbar {
  color: #fff;
  background: var(--theme-primary);
  font-size: 13px;
}

body > .topbar .wrap,
body > .nav .wrap {
  display: flex;
  width: min(100% - 48px, 1180px);
  align-items: center;
  justify-content: space-between;
  margin-inline: auto;
}

body > .topbar .wrap {
  min-height: 36px;
}

.topbar-label {
  color: rgb(255 255 255 / 68%);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.topbar-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 12px;
}

.topbar-links a {
  display: inline-flex;
  min-height: 20px;
  align-items: center;
  gap: 7px;
  line-height: 1;
  white-space: nowrap;
}

.topbar-icon {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  fill: none;
  stroke: currentcolor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.topbar-phone {
  font-variant-numeric: tabular-nums;
}

body > .nav {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgb(7 52 81 / 8%);
  background: rgb(255 255 255 / 96%);
  backdrop-filter: blur(14px);
}

body > .nav .wrap {
  min-height: 88px;
}

body > .nav .brand img {
  width: auto;
  height: 50px;
  object-fit: contain;
}

body > .nav .menu {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #31434e;
  font-size: 13px;
  font-weight: 700;
}

body > .nav .menu a {
  position: relative;
  padding: 35px 0;
}

body > .nav .menu a::after {
  position: absolute;
  right: 0;
  bottom: 24px;
  left: 0;
  height: 2px;
  background: var(--theme-accent);
  content: '';
  transform: scaleX(0);
  transition: transform .2s ease;
}

body > .nav .menu a:hover::after,
body > .nav .menu a[aria-current='page']::after {
  transform: scaleX(1);
}

.menu-group {
  position: relative;
  align-self: stretch;
}

.menu-parent-row {
  display: flex;
  height: 100%;
  align-items: center;
}

body > .nav .menu .menu-parent-link {
  display: inline-flex;
  align-items: center;
  padding: 35px 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.menu-submenu-toggle {
  display: inline-grid;
  width: 28px;
  height: 40px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #55707e;
  background: transparent;
  cursor: pointer;
  transition: color .18s ease, background .18s ease;
}

.menu-submenu-toggle:hover,
.menu-submenu-toggle:focus-visible {
  color: var(--theme-accent-dark);
  background: var(--theme-accent-light);
  outline: none;
}

body > .nav .menu .menu-parent-link.menu-submenu-toggle {
  gap: 8px;
  width: auto;
  height: auto;
  border-radius: 6px;
}

.menu-chevron {
  display: grid;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  place-items: center;
  transition: transform .2s ease;
}

.menu-chevron svg,
.submenu-arrow svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentcolor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.75;
}

.menu-group:hover .menu-chevron,
.menu-group:focus-within .menu-chevron,
.menu-group.is-open .menu-chevron {
  transform: rotate(180deg);
}

.menu-group.has-current > .menu-parent-row .menu-parent-link::after {
  transform: scaleX(1);
}

.submenu {
  position: absolute;
  top: calc(100% - 13px);
  right: -18px;
  display: grid;
  min-width: 245px;
  padding: 8px;
  border: 1px solid rgb(7 52 81 / 10%);
  border-radius: 9px;
  visibility: hidden;
  background: rgb(255 255 255 / 99%);
  box-shadow: 0 18px 45px rgb(4 30 46 / 16%);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}

.menu-group:hover > .submenu,
.menu-group:focus-within > .submenu,
.menu-group.is-open > .submenu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

body > .nav .menu .submenu a {
  display: flex;
  min-height: 43px;
  align-items: center;
  justify-content: space-between;
  padding: 9px 11px;
  border-radius: 6px;
  color: #294553;
  gap: 20px;
  transition: color .18s ease, background .18s ease;
}

body > .nav .menu .submenu a::after {
  display: none;
}

body > .nav .menu .submenu a:hover,
body > .nav .menu .submenu a[aria-current='page'] {
  color: var(--theme-accent-dark);
  background: #eef9fd;
}

.submenu-arrow {
  display: grid;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  place-items: center;
  color: #85a4b2;
  transition: color .18s ease, transform .18s ease;
}

body > .nav .menu .submenu a:hover .submenu-arrow,
body > .nav .menu .submenu a[aria-current='page'] .submenu-arrow {
  color: var(--theme-accent-dark);
  transform: translateX(2px);
}

body > .nav .menu-toggle,
body > .nav .menu-button {
  display: none;
}

body > footer {
  margin-top: 96px;
  color: #062b3f;
  background: #dce4e7;
}

body > footer .footer {
  display: grid;
  width: min(100% - 64px, 1320px);
  margin-inline: auto;
  padding: 88px 0 78px;
  align-items: start;
  grid-template-columns: minmax(280px, 1.15fr) minmax(250px, .8fr) minmax(420px, 1.25fr);
  gap: clamp(52px, 7vw, 110px);
  border-top: 2px solid var(--theme-accent);
}

body > footer .footer h4 {
  margin: 0 0 18px;
  color: var(--theme-accent);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .16em;
  text-transform: uppercase;
}

body > footer .footer p,
body > footer .footer li,
body > footer .footer-menu a {
  color: rgb(6 43 63 / 66%);
  font-size: 13px;
  line-height: 1.75;
}

body > footer .footer ul {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 15px;
  list-style: none;
}

body > footer .footer img {
  width: min(180px, 100%);
  height: auto;
  object-fit: contain;
  filter: none;
}

body > footer .footer-brand {
  max-width: 360px;
}

body > footer .footer-brand p {
  margin: 16px 0 28px;
  color: #062b3f;
  font-size: 21px;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -.025em;
}

body > footer .footer-brand-label {
  display: block;
  margin-top: 32px;
  color: var(--theme-accent);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .16em;
  text-transform: uppercase;
}

body > footer .footer-primary-link {
  display: flex;
  max-width: 290px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-top: 1px solid rgb(6 43 63 / 18%);
  border-bottom: 1px solid rgb(6 43 63 / 18%);
  color: #062b3f;
  font-size: 13px;
  font-weight: 700;
}

body > footer .footer-primary-link span {
  color: var(--theme-accent);
}

body > footer .footer-contact li {
  display: grid;
  gap: 2px;
}

body > footer .footer-contact li > span {
  color: rgb(6 43 63 / 52%);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body > footer .footer-contact address {
  color: rgb(6 43 63 / 70%);
  font-style: normal;
}

body > footer .footer-contact a {
  color: #062b3f;
}

body > footer .footer-menu {
  display: grid;
  grid-template-columns: minmax(210px, 1.35fr) minmax(135px, .65fr);
  gap: 38px;
}

body > footer .footer-menu a:hover {
  color: var(--theme-accent);
}

.footer-menu-group {
  display: grid;
  align-content: start;
}

body > footer .footer-menu-group > h4 .footer-menu-parent {
  color: var(--theme-accent);
  font-size: 10px;
  font-weight: 850;
}

.footer-menu-group > div {
  display: grid;
  gap: 9px 20px;
}

.footer-menu-group.footer-menu-site > div {
  grid-template-columns: 1fr 1fr;
}

body > footer .social-links {
  display: flex;
  margin-top: 24px;
  flex-wrap: wrap;
  gap: 8px;
}

body > footer .social-links a {
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border: 1px solid rgb(6 43 63 / 18%);
  border-radius: 50%;
  color: #125f92;
  background: rgb(255 255 255 / 48%);
  transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}

body > footer .social-links a:hover,
body > footer .social-links a:focus-visible {
  border-color: var(--theme-accent);
  color: var(--theme-on-accent, #071f2e);
  background: var(--theme-accent);
  transform: translateY(-2px);
}

body > footer .social-links a:focus-visible {
  outline: 2px solid #062b3f;
  outline-offset: 3px;
}

body > footer .social-icon {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

body > footer .social-icon-fill {
  fill: currentColor;
  stroke: none;
}

body > footer .social-icon-dot {
  fill: currentColor;
  stroke: none;
}

body > footer .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body > footer .copyright {
  display: flex;
  width: min(100% - 64px, 1320px);
  margin-inline: auto;
  padding: 24px 0;
  justify-content: space-between;
  border-top: 1px solid rgb(6 43 63 / 14%);
  color: rgb(6 43 63 / 48%);
  font-size: 10px;
  letter-spacing: .04em;
  gap: 20px;
}

@media (max-width: 900px) {
  body > .nav .wrap {
    position: relative;
    flex-wrap: wrap;
  }

  body > .nav .menu-button {
    display: block;
    width: auto;
    height: auto;
    padding: 8px;
    color: var(--theme-primary);
    font-size: 25px;
    cursor: pointer;
  }

  body > .nav .menu {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px 0;
  }

  body > .nav .menu a {
    padding: 13px 0;
    border-top: 1px solid #e1e8ec;
  }

  .menu-group {
    align-self: auto;
  }

  .menu-parent-row {
    border-top: 1px solid #e1e8ec;
  }

  body > .nav .menu .menu-parent-row a,
  body > .nav .menu .menu-parent-link.menu-submenu-toggle {
    min-height: 48px;
    padding: 10px 0;
    flex: 1;
    border-top: 0;
  }

  .menu-parent-row > .menu-submenu-toggle:not(.menu-parent-link) {
    width: 48px;
    height: 48px;
  }

  body > .nav .menu a::after {
    display: none;
  }

  .submenu {
    position: static;
    display: none;
    min-width: 0;
    padding: 3px 0 8px 15px;
    border: 0;
    border-left: 2px solid #bfe8f7;
    border-radius: 0;
    visibility: visible;
    box-shadow: none;
    opacity: 1;
    transform: none;
    transition: none;
  }

  .menu-group:hover > .submenu,
  .menu-group:focus-within > .submenu {
    display: none;
  }

  .menu-group.is-open > .submenu,
  .menu-group.is-open:hover > .submenu,
  .menu-group.is-open:focus-within > .submenu {
    display: grid;
  }

  body > .nav .menu .submenu a {
    min-height: 42px;
    padding: 9px 10px;
    border-top: 0;
  }

  body > .nav .menu-toggle:checked ~ .menu {
    display: flex;
  }

  body > footer .footer {
    grid-template-columns: 1fr 1fr;
  }

  body > footer .footer-menu {
    padding-top: 30px;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr);
    border-top: 1px solid rgb(255 255 255 / 12%);
  }
}

@media (max-width: 600px) {
  body > .topbar {
    display: none;
  }

  body > footer .footer {
    grid-template-columns: 1fr;
  }

  body > footer .footer-menu {
    grid-template-columns: 1fr 1fr;
  }

  body > footer .copyright {
    align-items: center;
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 420px) {
  body > footer .footer-menu,
  .footer-menu-group.footer-menu-site > div {
    grid-template-columns: 1fr;
  }
}
