:root {
  --apt-header-bg: rgba(247, 246, 243, 0.94);
  --apt-header-border: #d8d2c8;
  --apt-header-link: #185b82;
  --apt-header-link-active: #0f766e;
  --apt-header-surface: #ffffff;
  --apt-header-shadow: 0 8px 24px rgba(15, 35, 65, 0.08);
}

.apt-global-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: var(--apt-header-bg);
  border-bottom: 1px solid var(--apt-header-border);
  backdrop-filter: blur(8px);
}

.apt-global-header__inner {
  width: min(1120px, 92vw);
  margin: 0 auto;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.apt-global-header__brand {
  display: inline-flex;
  align-items: center;
  color: #182220;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.96rem;
  white-space: nowrap;
}

.apt-global-header__brand img {
  display: block;
  height: 72px;
  width: auto;
  max-height: 72px;
  max-width: min(420px, 68vw);
  object-fit: contain;
  filter: drop-shadow(0 2px 10px rgba(18, 32, 44, 0.12));
}

.apt-global-header__nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.9rem;
  flex: 1 1 auto;
  flex-wrap: wrap;
}

.apt-global-header__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--apt-header-link);
  text-decoration: none;
  font-weight: 600;
}

.apt-global-header__nav a:hover,
.apt-global-header__nav a:focus {
  text-decoration: underline;
}

.apt-global-header__nav a.is-active {
  color: var(--apt-header-link-active);
}

.apt-global-header__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.48rem 0.9rem;
  border-radius: 999px;
  background: linear-gradient(120deg, #185b82, #0f766e);
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 700;
  line-height: 1;
}

.apt-global-header__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid #c7d2df;
  border-radius: 10px;
  background: #fff;
  color: var(--apt-header-link);
  cursor: pointer;
}

.apt-global-header__bars {
  position: relative;
  display: inline-block;
  width: 20px;
  height: 14px;
}

.apt-global-header__bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transition: transform 0.18s ease, opacity 0.18s ease, top 0.18s ease;
}

.apt-global-header__bars span:nth-child(1) { top: 0; }
.apt-global-header__bars span:nth-child(2) { top: 6px; }
.apt-global-header__bars span:nth-child(3) { top: 12px; }

.apt-global-header.is-menu-open .apt-global-header__bars span:nth-child(1) {
  top: 6px;
  transform: rotate(45deg);
}

.apt-global-header.is-menu-open .apt-global-header__bars span:nth-child(2) {
  opacity: 0;
}

.apt-global-header.is-menu-open .apt-global-header__bars span:nth-child(3) {
  top: 6px;
  transform: rotate(-45deg);
}

@media (max-width: 760px) {
  .apt-global-header__inner {
    min-height: 58px;
    flex-wrap: wrap;
    align-items: center;
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
  }

  .apt-global-header__toggle {
    display: inline-flex;
  }

  .apt-global-header__nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    margin: 0.3rem 0 0.5rem;
    padding: 0.55rem;
    background: var(--apt-header-surface);
    border: 1px solid var(--apt-header-border);
    border-radius: 14px;
    box-shadow: var(--apt-header-shadow);
  }

  .apt-global-header.is-menu-open .apt-global-header__nav {
    display: flex;
  }

  .apt-global-header__nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    width: 100%;
    padding: 0.45rem 0.55rem;
    border-radius: 10px;
  }

  .apt-global-header__nav a:active {
    background: #f0f6fc;
  }

  .apt-global-header__cta {
    width: 100%;
    justify-content: center;
    border-radius: 10px;
  }
}

/* Accessibility: links inside body text are underlined so they don't rely on color alone. */
main p a:not([class]),
main li a:not([class]),
main td a:not([class]),
article p a:not([class]),
article li a:not([class]) {
  text-decoration: underline;
  text-underline-offset: 2px;
}
