:root{
  --asy-header-height: 64px;
  --asy-logo-height: 40px;
}

@media (min-width: 992px){
  :root{
    --asy-header-height: 88px;
    --asy-logo-height: 52px;
  }
}
@media (min-width: 1200px){
  :root{
    --asy-header-height: 96px;
    --asy-logo-height: 60px;
  }
}


/* Header wrapper */
.site-header{
  position: sticky; top: 0; z-index: 1000;
  background: var(--asy-color-primary);
  border-bottom: none;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}

.site-header__inner {
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height: var(--asy-header-height);
  padding-block: var(--asy-space-sm);
}

.site-logo{
  display:flex; align-items:center; 
}

.site-logo img{
  block-size: var(--asy-logo-height);   /* height */
  inline-size: auto;                    /* width auto */
  display:block;
}
.page-header {
  background: var(--asy-color-primary);
  color: #fff;
  padding-block: var(--asy-space-sm);
}

.page-header__title {
  margin: 0;
  line-height: 1.2;
}

.site-header + .page-header {
  border-top: 1px solid rgba(255,255,255,.04);
  border-bottom: 1px solid rgba(0,0,0,.08);
}

@media (max-width: 480px) {
  .page-header { padding-block: .5rem; }
}

/* ==============================================
   Navigation — mobile first
   ============================================== */
.nav{
  --nav-pad: 12px;
  inline-size: 100%;
  max-height: 0;
  overflow: hidden;
  transform-origin: top;
  transform: scaleY(0.95);
  opacity: 0;
  transition: max-height .25s ease, opacity .2s ease, transform .25s ease;
  margin-inline-start: auto;
}
.nav.is-open{ max-height: 70vh; opacity: 1; transform: scaleY(1); }
.asy-nav__link-ico {
  color: var(--asy-header-link-color);
  padding: var(--asy-space-xs);
}
.nav__list{
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: var(--nav-pad) 0;
  margin: 0;
  list-style: none;
}
.nav__link {
  position: relative;
  display: inline-block;
  padding: 10px 8px;
  line-height: 1.4;
  color: var(--asy-header-link-color);
  text-decoration: none;
}

.nav__link::before,
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: var(--asy-header-link-hover-color, #fff);
  transform: scaleX(0);
  transition: transform .30s ease;
}

.nav__link::before {
  top: 0;
  transform-origin: left center;
}

.nav__link::after {
  bottom: 0;
  transform-origin: right center;
}

.nav__link:hover::before,
.nav__link:hover::after,
.nav__link:focus-visible::before,
.nav__link:focus-visible::after {
  transform: scaleX(1);
}

/* CTA in nav */
.nav__cta{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 6px 0 var(--nav-pad);
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--asy-header-link-color);
  text-decoration: none;
  font-weight: 600;
  line-height: 1;
  box-shadow: 0 1px 2px rgba(0,0,0,.08);
  transition: background-color .25s ease, color .25s ease;
}
.nav__cta:hover,
.nav__cta:focus-visible {
  color: var(--asy-header-cta-text-color);
}

/* ==============================================
   Hamburger toggle
   ============================================== */
.nav-toggle{
  inline-size: 40px; block-size: 40px;
  border: 1px solid var(--asy-border, rgba(0,0,0,.12));
  border-radius: 10px;
  background: #fff;
  display: inline-grid; place-items: center;
}
.nav-toggle__bar{
  display: block; inline-size: 18px; block-size: 2px;
  background: currentColor; border-radius: 1px;
}
.nav-toggle__bar + .nav-toggle__bar{ margin-top: 4px; }

/* ==============================================
   Desktop layout (≥ 992px)
   ============================================== */
@media (min-width: 992px){
  .nav-toggle{ display: none; }
  .nav{
    max-height: none !important;
    opacity: 1; transform: none;
    inline-size: auto; overflow: visible;
    display: flex; align-items: center; gap: 18px;
  }
  .site-header__inner{ gap: clamp(1rem, 2vw, 2rem); }
  .nav__list{
    flex-direction: row;
    align-items: center;
    gap: 18px;
    padding: 0; margin: 0;
  }
  .nav__link{ padding: 10px 8px; border-radius: 8px; }
  .nav__cta{ margin: 0 0 0 4px; }
}

/* ==============================================
   Extras
   ============================================== */
.nav__link[aria-current="page"]{
  color: var(--asy-color-primary, #004080);
  font-weight: 700;
}
.hide-lg{ display: inline-block; }
@media (min-width: 992px){ .hide-lg{ display: none; } }