/* Announcement strip */

.aj-strip {
  position: relative;
  z-index: calc(var(--aj-z-header) + 1);
  background: var(--aj-grad-deep);
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--aj-fs-xs);
  text-align: center;
}

.aj-strip__in {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--aj-2);
  min-height: 38px;
  padding: var(--aj-2) var(--aj-gutter);
  flex-wrap: wrap;
}

.aj-strip a {
  color: var(--aj-aqua);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 246, 213, 0.4);
}

.aj-strip a:hover {
  color: var(--aj-cyan);
}

.aj-strip svg {
  width: 15px;
  height: 15px;
  color: var(--aj-aqua);
  flex: none;
}

/* Header */

.aj-header {
  position: sticky;
  top: 0;
  z-index: var(--aj-z-header);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition:
    border-color var(--aj-t) var(--aj-ease),
    box-shadow var(--aj-t) var(--aj-ease),
    background var(--aj-t) var(--aj-ease);
}

.aj-header.is-stuck {
  border-bottom-color: var(--aj-line-soft);
  box-shadow: 0 4px 24px rgba(10, 17, 40, 0.06);
}

.aj-header__in {
  display: flex;
  align-items: center;
  gap: var(--aj-4);
  height: var(--aj-header-h);
  max-width: var(--aj-maxw-wide);
  margin-inline: auto;
  padding-inline: var(--aj-gutter);
}

.aj-brand {
  display: flex;
  align-items: center;
  gap: var(--aj-3);
  margin-right: auto;
  text-decoration: none;
  color: var(--aj-ink);
  transition: transform var(--aj-t) var(--aj-ease-spring);
}

.aj-brand:hover {
  transform: scale(1.02);
  color: var(--aj-ink);
}

.aj-brand__mark {
  flex: none;
  width: 42px;
  height: 42px;
}

.aj-brand__mark svg,
.aj-brand__mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.aj-brand__txt {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.aj-brand__name {
  font-family: var(--aj-font-display);
  font-size: 1.32rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.aj-brand__sub {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--aj-muted-soft);
}

@media (min-width: 1024px) {
  .aj-brand__mark { width: 50px; height: 50px; }
  .aj-brand__name { font-size: 1.5rem; }
}

/* Desktop nav */

.aj-nav {
  display: none;
}

@media (min-width: 1024px) {
  .aj-nav {
    display: flex;
    align-items: center;
    gap: var(--aj-1);
  }
}

.aj-nav ul {
  display: flex;
  align-items: center;
  gap: var(--aj-1);
  list-style: none;
  margin: 0;
  padding: 0;
}

.aj-nav li {
  margin: 0;
  position: relative;
}

.aj-nav a {
  display: block;
  padding: 0.6rem 0.9rem;
  border-radius: var(--aj-r-pill);
  font-family: var(--aj-font-display);
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--aj-ink);
  text-decoration: none;
  transition: background var(--aj-t-fast) var(--aj-ease), color var(--aj-t-fast) var(--aj-ease);
}

.aj-nav a:hover {
  background: var(--aj-surface-2);
  color: var(--aj-teal);
}

.aj-nav .current-menu-item > a,
.aj-nav .current_page_item > a {
  color: var(--aj-teal);
  background: var(--aj-surface-2);
}

/* Submenu */

.aj-nav .sub-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 240px;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  padding: var(--aj-2);
  background: #fff;
  border: 1px solid var(--aj-line-soft);
  border-radius: var(--aj-r-lg);
  box-shadow: var(--aj-sh-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--aj-t) var(--aj-ease);
}

.aj-nav li:hover > .sub-menu,
.aj-nav li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.aj-nav .sub-menu a {
  border-radius: var(--aj-r-sm);
  padding: 0.65rem 0.85rem;
  font-weight: 600;
}

/* Header actions */

.aj-hact {
  display: flex;
  align-items: center;
  gap: var(--aj-2);
}

.aj-iconbtn {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  background: var(--aj-surface);
  border: 1px solid var(--aj-line-soft);
  border-radius: var(--aj-r);
  color: var(--aj-ink);
  transition: all var(--aj-t-fast) var(--aj-ease);
}

.aj-iconbtn:hover {
  background: var(--aj-surface-2);
  color: var(--aj-teal);
  border-color: var(--aj-line);
}

.aj-iconbtn svg {
  width: 21px;
  height: 21px;
}

.aj-iconbtn__count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  border-radius: var(--aj-r-pill);
  background: var(--aj-sun);
  color: var(--aj-ink);
  font-family: var(--aj-font-display);
  font-size: 0.68rem;
  font-weight: 800;
  border: 2px solid #fff;
}

.aj-hact .aj-btn {
  display: none;
}

@media (min-width: 1024px) {
  .aj-hact .aj-btn {
    display: inline-flex;
  }
}

.aj-burger {
  display: grid;
}

@media (min-width: 1024px) {
  .aj-burger {
    display: none;
  }
}

.aj-burger__lines {
  position: relative;
  width: 20px;
  height: 14px;
}

.aj-burger__lines span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--aj-t) var(--aj-ease), opacity var(--aj-t-fast) var(--aj-ease);
}

.aj-burger__lines span:nth-child(1) { top: 0; }
.aj-burger__lines span:nth-child(2) { top: 6px; }
.aj-burger__lines span:nth-child(3) { top: 12px; }

.aj-burger[aria-expanded="true"] .aj-burger__lines span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.aj-burger[aria-expanded="true"] .aj-burger__lines span:nth-child(2) {
  opacity: 0;
}

.aj-burger[aria-expanded="true"] .aj-burger__lines span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile drawer */

.aj-drawer {
  position: fixed;
  inset: 0;
  z-index: var(--aj-z-drawer);
  visibility: hidden;
  pointer-events: none;
}

.aj-drawer[data-open="true"] {
  visibility: visible;
  pointer-events: auto;
}

.aj-drawer__veil {
  position: absolute;
  inset: 0;
  background: rgba(10, 17, 40, 0.44);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity var(--aj-t) var(--aj-ease);
}

.aj-drawer[data-open="true"] .aj-drawer__veil {
  opacity: 1;
}

.aj-drawer__panel {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(400px, 90vw);
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: var(--aj-sh-xl);
  transform: translateX(100%);
  transition: transform var(--aj-t-slow) var(--aj-ease-out);
  overscroll-behavior: contain;
}

.aj-drawer[data-open="true"] .aj-drawer__panel {
  transform: translateX(0);
}

.aj-drawer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--aj-4);
  padding: var(--aj-4) var(--aj-5);
  border-bottom: 1px solid var(--aj-line-soft);
}

.aj-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: var(--aj-5);
  -webkit-overflow-scrolling: touch;
}

.aj-drawer__body ul {
  list-style: none;
  margin: 0 0 var(--aj-5);
  padding: 0;
}

.aj-drawer__body li {
  margin: 0;
}

.aj-drawer__body > ul > li > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--aj-4) var(--aj-2);
  border-bottom: 1px solid var(--aj-line-soft);
  font-family: var(--aj-font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--aj-ink);
  text-decoration: none;
  /* Each item slides in on a stagger set from JS */
  opacity: 0;
  transform: translateX(16px);
  transition: opacity var(--aj-t) var(--aj-ease), transform var(--aj-t) var(--aj-ease);
}

.aj-drawer[data-open="true"] .aj-drawer__body > ul > li > a {
  opacity: 1;
  transform: none;
  transition-delay: calc(var(--i, 0) * 42ms + 90ms);
}

.aj-drawer__body .sub-menu {
  padding-left: var(--aj-4);
  margin: 0;
}

.aj-drawer__body .sub-menu a {
  display: block;
  padding: var(--aj-3) var(--aj-2);
  font-size: var(--aj-fs-sm);
  font-weight: 600;
  color: var(--aj-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--aj-line-soft);
}

.aj-drawer__foot {
  padding: var(--aj-5);
  padding-bottom: max(var(--aj-5), env(safe-area-inset-bottom));
  border-top: 1px solid var(--aj-line-soft);
  background: var(--aj-surface);
  display: grid;
  gap: var(--aj-3);
}

.aj-drawer__contact {
  display: grid;
  gap: var(--aj-2);
  font-size: var(--aj-fs-sm);
}

.aj-drawer__contact a {
  display: flex;
  align-items: center;
  gap: var(--aj-2);
  color: var(--aj-muted);
  text-decoration: none;
  font-weight: 600;
}

.aj-drawer__contact svg {
  width: 17px;
  height: 17px;
  color: var(--aj-teal-300);
}

/* Mobile bottom action bar. This is what makes the site feel like an app. */

.aj-tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: calc(var(--aj-z-header) - 1);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid var(--aj-line-soft);
  padding-bottom: env(safe-area-inset-bottom);
  transform: translateY(110%);
  transition: transform var(--aj-t-slow) var(--aj-ease-out);
}

.aj-tabbar.is-on {
  transform: translateY(0);
}

@media (min-width: 1024px) {
  .aj-tabbar {
    display: none;
  }
}

.aj-tabbar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 60px;
  padding: var(--aj-2) var(--aj-1);
  color: var(--aj-muted);
  font-family: var(--aj-font-display);
  font-size: 0.66rem;
  font-weight: 700;
  text-decoration: none;
  transition: color var(--aj-t-fast) var(--aj-ease);
}

.aj-tabbar a svg {
  width: 22px;
  height: 22px;
  transition: transform var(--aj-t) var(--aj-ease-spring);
}

.aj-tabbar a:active svg {
  transform: scale(0.86);
}

.aj-tabbar a.is-active {
  color: var(--aj-teal);
}

.aj-tabbar a.is-cta {
  color: var(--aj-teal);
}

.aj-tabbar a.is-cta svg {
  color: var(--aj-teal);
}

/* Give the page room so the bar never covers the footer */
@media (max-width: 1023px) {
  body.has-tabbar {
    padding-bottom: calc(60px + env(safe-area-inset-bottom));
  }
}

/* Footer */

.aj-footer {
  background: var(--aj-grad-deep);
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--aj-fs-sm);
  position: relative;
  overflow: hidden;
}

.aj-footer__wave {
  display: block;
  width: 100%;
  height: auto;
  color: var(--aj-ink);
}

.aj-footer__in {
  max-width: var(--aj-maxw);
  margin-inline: auto;
  padding: var(--aj-9) var(--aj-gutter) var(--aj-6);
  display: grid;
  gap: var(--aj-7);
}

@media (min-width: 760px) {
  .aj-footer__in {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: var(--aj-6);
  }
}

@media (min-width: 1024px) {
  .aj-footer__in {
    grid-template-columns: 1.6fr 1fr 1fr 1.1fr;
  }
}

.aj-footer h4 {
  color: #fff;
  font-size: var(--aj-fs-sm);
  letter-spacing: var(--aj-track-wide);
  text-transform: uppercase;
  margin-bottom: var(--aj-4);
}

.aj-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.aj-footer li + li {
  margin-top: var(--aj-3);
}

.aj-footer a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color var(--aj-t-fast) var(--aj-ease);
}

.aj-footer a:hover {
  color: var(--aj-aqua);
}

.aj-footer__brand {
  display: flex;
  align-items: center;
  gap: var(--aj-3);
  margin-bottom: var(--aj-4);
  color: #fff;
  text-decoration: none;
}

.aj-footer__brand svg,
.aj-footer__brand img {
  width: 48px;
  height: 48px;
}

.aj-footer__brand span {
  font-family: var(--aj-font-display);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
}

.aj-footer__contact li {
  display: flex;
  gap: var(--aj-3);
  align-items: flex-start;
}

.aj-footer__contact svg {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: var(--aj-aqua);
}

.aj-social {
  display: flex;
  gap: var(--aj-2);
  margin-top: var(--aj-5);
}

.aj-social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--aj-r);
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  transition: all var(--aj-t) var(--aj-ease);
}

.aj-social a:hover {
  background: var(--aj-aqua);
  color: var(--aj-ink);
  border-color: transparent;
  transform: translateY(-3px);
}

.aj-social svg {
  width: 20px;
  height: 20px;
}

.aj-footer__legal {
  max-width: var(--aj-maxw);
  margin-inline: auto;
  padding: var(--aj-5) var(--aj-gutter) var(--aj-7);
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  display: flex;
  flex-wrap: wrap;
  gap: var(--aj-3) var(--aj-5);
  align-items: center;
  justify-content: space-between;
  font-size: var(--aj-fs-xs);
  color: rgba(255, 255, 255, 0.5);
}

.aj-footer__legal nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--aj-4);
}

@media (max-width: 1023px) {
  .aj-footer__legal {
    padding-bottom: calc(var(--aj-7) + 60px);
  }
}
