:root {
  --nts-header-height: 6.25rem;
}

@media (min-width: 1400px) {
  .container {
    max-width: 1680px;
  }
}

.nts-skip-link:focus {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 10000;
  padding: .7rem 1rem;
  background: #fff;
  color: #111;
}

.nts-header--light {border-bottom: 1px solid #E3E3E3;}

.nts-header-top {
    min-height: 60px;
    display: flex;
    align-items: center;
    font-size: 15px;
}

.nts-header-top--light {
  background: #e2f4fd;
  color: #0058a2;
}

.nts-header-top--dark {
  background: linear-gradient(90deg, #003c74, #0058a2);
  color: #fff;
}

.nts-header-top a {
  color: inherit;
}

.nts-header-top a:hover,
.nts-header-top a:focus-visible {
  color: inherit;
  opacity: .8;
}

.nts-header-top__external {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}

.nts-header-top__external svg {
  width: 1.2rem;
  height: 1.2rem;
  flex: none;
}

.nts-header-top__brand {
  display: inline-block;
}

.nts-header-top__logo {
  display: block;
  width: auto;
  max-width: 110px;
  max-height: 40px;
  object-fit: contain;
}

.nts-header-center {
    min-height: 100px;
    display: flex;
    align-items: center;
    font-size: 20px;
}

.nts-header {
  position: relative;
  z-index: 20;
}

.nts-header__row {
  min-height: var(--nts-header-height);
  padding-block: 1rem;
}

.nts-header__brand {
  display: inline-block;
  color: inherit;
  text-decoration: none;
}

.nts-header__logo {
  display: block;
  width: auto;
  max-width: min(100%, 310px);
  max-height: 65px;
}

.nts-header__site-name {
  font-size: 1.5rem;
  font-weight: 700;
}

.nts-header__list,
.nts-header__list .sub-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nts-header__list {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: .75rem 2.5rem;
}

.nts-header__list > li {
  position: relative;
  white-space: nowrap;
}

.nts-header__link {
  display: inline-block;
  padding-block: .5rem;
  color: inherit;
  font-size: 20px;
  font-weight: 600;
  text-decoration: none;
}

.nts-header__link:hover,
.nts-header__link:focus-visible,
.nts-header__link[aria-current="page"] {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: .3em;
}

.nts-header__link.nts-header__link--cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 24px;
  border: 2px solid transparent;
  border-radius: 8px;
  background: var(--nts-accent, var(--color-sky-ft, #009fe3));
  color: #fff;
  line-height: 1.2;
  font-size: 16px;
  font-weight: 400;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

.nts-header__link.nts-header__link--cta:hover,
.nts-header__link.nts-header__link--cta:active {
  background: var(--nts-accent-dark, var(--color-primary-dark-ft, #003c74));
}

.nts-header__link.nts-header__link--cta:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-color: currentColor;
}

.nts-header__submenu-toggle {
  margin-left: .35rem;
  padding: .25rem;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.nts-header__submenu-toggle:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.nts-header__list .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 30;
  min-width: 220px;
  padding: .5rem;
  border-radius: .35rem;
  background: var(--nts-submenu-bg);
  color: var(--nts-submenu-color);
  box-shadow: 0 8px 24px rgb(0 0 0 / 12%);
}

.nts-header__list .sub-menu .nts-header__link {
  display: block;
  padding: .65rem .8rem;
  font-size: 1rem;
}

.nts-header__list > .menu-item-has-children.is-open > .sub-menu,
.nts-header__nav:not(.nts-menu-ready)
  .nts-header__list > .menu-item-has-children:hover > .sub-menu,
.nts-header__nav:not(.nts-menu-ready)
  .nts-header__list > .menu-item-has-children:focus-within > .sub-menu {
  display: block;
}

.nts-header__menu-toggle,
.nts-header__menu-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: .5rem;
  border: 0;
  background: transparent;
  color: var(--nts-accent-dark, var(--color-primary-dark-ft, #003c74));
}

.nts-header--dark .nts-header__menu-toggle {
  color: inherit;
}

.nts-header__menu-toggle:focus-visible,
.nts-header__menu-close:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.nts-header__hamburger,
.nts-header__hamburger::before,
.nts-header__hamburger::after {
  display: block;
  width: 26px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
}

.nts-header__hamburger {
  position: relative;
}

.nts-header__hamburger::before,
.nts-header__hamburger::after {
  position: absolute;
  content: "";
  left: 0;
}

.nts-header__hamburger::before { top: -8px; }
.nts-header__hamburger::after { top: 8px; }

/* Only the backdrop belonging to this menu receives the blur treatment. */
.nts-header__backdrop {
  background: rgb(0 0 0 / 35%);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.nts-header__backdrop.show {
  opacity: 1;
}

@media (min-width: 1200px) {
  .nts-header__offcanvas > .offcanvas-body {
    display: block;
    padding: 0;
  }
}

@media (max-width: 1199.98px) {
  .nts-header__branding {
    min-width: 0;
  }

  .nts-header__branding .nts-header__brand {
    max-width: 100%;
  }

  .nts-header__offcanvas {
    --bs-offcanvas-width: 85vw;
    --bs-offcanvas-bg: #fff;
    --bs-offcanvas-color: var(--nts-accent-dark, var(--color-primary-dark-ft, #003c74));
    --nts-submenu-bg: #fff;
    --nts-submenu-color: var(--bs-offcanvas-color);
    color: var(--bs-offcanvas-color);
    text-align: left;
  }

  .nts-header__offcanvas .offcanvas-header {
    gap: 1rem;
    padding: 1.5rem;
  }

  .nts-header__offcanvas .offcanvas-header .nts-header__brand {
    min-width: 0;
    max-width: calc(100% - 64px);
  }

  .nts-header__menu-close {
    flex: none;
    margin-left: auto;
    font-size: 2.25rem;
    font-weight: 300;
    line-height: 1;
  }

  .nts-header__offcanvas .offcanvas-body {
    padding: 1.5rem;
  }

  .nts-header__list {
    display: block;
  }

  .nts-header__list > li {
    white-space: normal;
    padding-block: .35rem;
  }

  .nts-header__list .nts-header__link {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .nts-header__list > .menu-item-has-children > .nts-header__link {
    max-width: calc(100% - 48px);
  }

  .nts-header__submenu-toggle {
    position: absolute;
    top: .35rem;
    right: 0;
    width: 44px;
    min-height: 44px;
    margin: 0;
  }

  .nts-header__list .sub-menu {
    position: static;
    min-width: 0;
    padding-left: 1rem;
    margin-bottom: .5rem;
    box-shadow: none;
  }
}


.nts-footer__site-logo,
.nts-footer__project-image,
.nts-footer__institutional-logo {
  display: block;
  max-width: 100%;
  height: auto;
}

.nts-footer__menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nts-footer__institutional-link a {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}

.nts-footer__institutional-link svg {
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
  margin-left: .35rem;
  vertical-align: middle;
}
