:root{ 
  --bg-site-header: white;
  --bg-nav-sec-upper-md: var(--repro-blue);
  --shadow-stuck: 0 1px 0px rgba(0,0,0,.09); 
  --mega-top: 0px; /* set by JS via #mega-anchor */
}

#site-header {
  z-index: 1000;
  width: 100vw;
  transform: translateY(0);
  transition: transform 420ms var(--header-ease);
  will-change: transform;
}

/* .site-header a:not(.btn),
.mega a:not(.btn) {
  color: oklch(from var(--coolgray) var(--l900) c h);
}

.site-header a:not(.btn):hover,
.mega a:not(.btn):hover {
  color: oklch(from var(--blue) var(--l700) c h);
}
 */
.btn.t-normal:hover {
  font-weight: normal;
}

.mobile-panel-link {
  background: oklch(from var(--coolgray) var(--l100) c h);
}
.mobile-panel-link:hover {
  color: black !important;
  background: oklch(from var(--coolgray) var(--l200) c h);
}
.mobile-panel-link.btn-success,
.mobile-panel-link.btn-success:hover {
  color: white !important;
}

#header-logo-link { 
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height: 60px; 
  width: 175px; 
}

.bg-blue-green-grad {
  background: rgba(160, 210, 255, 0.5);
  background: linear-gradient(15deg, rgba(160, 210, 255, 0.4) 0%, rgba(223, 242, 179, 0.2) 100%);
}

@media (min-width: 1024px) {
  .site-header {
    display: flex;
    flex-direction: column;
  }
  .nav-sec-upper {
    padding-block: 0.25rem;
    background: var(--bg-nav-sec-upper-md);
  }
}
@media (min-width:1312px){
  :root {
    --header-h: 100px;
    --sticky-top: var(--header-h);
    --header-ease: cubic-bezier(0.22, 1, 0.36, 1);
  }
  #site-header {
    position: fixed;
    height: var(--header-h);
  }
  #site-main {
    margin-top: var(--header-h);
  }
}
#site-header.is-hidden {
  transform: translateY(calc(-100% - 2px));
}

@media (max-width: 1023.98px) {
  :root {
    --header-h: 60px;
  }
}

/* DOM order: primary first; on laptops secondary appears first (top) - visually reversed on laptops up */
.nav-prime-lower { order: 2; }
.nav-sec-upper { order: 1; }

.nav-sec-upper {
  overflow: visible;
  border-bottom: var(--b-thin);
}
.nav-sec-upper-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: end;
}
.nav-sec-upper-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.nav-sec-upper-links > li { position: relative; }
.sec-link,
.events-link {
  border: 0;
  font-size: var(--t-sm);
  font-weight: normal;
  padding-inline: 0.5rem;
  color: oklch(from var(--coolgray) var(--l200) c h);
  background: transparent;
}
.events-link:hover,
.sec-link:hover,
.sec-link:active,
.sec-link[aria-expanded=true] {
  font-weight: normal !important;
  color: white;
  background: transparent;
}

/* Secondary dropdowns */
.dropdown {
  position: absolute; 
  left: 0;
  top: calc(100% + 3px);
  background: #fff; 
  border: var(--b-thin); 
  border-radius: 0.5rem;
  box-shadow: 0 48px 48px rgba(0,0,0,0.05);
  width: 280px;
  overflow: hidden;
  transform-origin: top center;
}
.dropdown-sec { z-index: 50; }
.dropdown-inner { display: grid; }
.events-listing li:nth-child(n+4) {
  display: none;
}

/* Primary row */
.nav-prime-lower button.menu-link {
  height: 60px; 
  border-radius: 0;
  color: oklch(from var(--coolgray) var(--l800) c h);
  font-size: var(--t-sm);
  font-weight: var(--t-semibold);
  white-space: normal;
  padding-inline: 0.75rem;
}
.nav-prime-lower button.menu-link:hover,
.nav-prime-lower button.menu-link:active,
.nav-prime-lower button.menu-link[aria-expanded=true] { color: black; background: transparent; }
.nav-prime-lower-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; column-gap: var(--s-3); min-height: 60px; overflow: visible; }

button.menu-link:hover::after,
button.menu-link[aria-expanded=true]::after {
  content: '';
  position: absolute;
  left: calc(50% - 1rem);
  bottom: 0.625rem;
  width: 2rem;
  border-top: 2px solid currentColor;
  opacity: 0.5;
}

button.sec-link:hover::after,
button.sec-link[aria-expanded=true]::after {
  content: '';
  position: absolute;
  left: calc(50% - 0.5rem);
  bottom: 0;
  width: 1rem;
  border-top: 2px solid currentColor;
  opacity: 0.5;
}


button.menu-link[aria-expanded=true]::after,
button.sec-link[aria-expanded=true]::after {
  opacity: 1;
}

/* Desktop primary menu */
.menu { list-style: none; padding: 0; margin: 0; display: none; align-items: center; }
.menu-item { position:relative; }
.menu-link { border: 0; font-weight: normal; background:transparent; }
@media (min-width: 1024px) { 
  .nav-toggle { display: none; }
  .nav-prime-lower-inner { justify-content: start; }
  .menu { display: flex; min-height: 60px; margin-left: -1rem; gap: .25rem; } 
}

@media (max-width: 1023.9px){
  .nav-sec-upper { display:none; } 
}

/* Mobile Searcher */

#hs_cos_wrapper_site_search_mobile input[type=text] {
  padding: 0.5rem 0.5rem 0.5rem 2rem;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z' fill='black' %3E%3C/path%3E%3C/svg%3E") no-repeat 10px;
  cursor: pointer;
}

/* Megamenu Searcher */
#hs_cos_wrapper_site_search_laptop {
  position: relative;
  margin-right: 0.5rem;
  width: 92px;
  font-size: var(--t-sm);
  background: oklch(from var(--coolgray) var(--l600) c h);
  border-radius: var(--s-tiny);
  transition: width 0.2s;
  &::before {
    content: "Search";
    color: silver;
    display: inline-block;
    left: 2rem;
    position: absolute;
    top: .35em;
  }
  &:focus-within {
    width: 400px;
  }
  input[type=text] {
    min-height: var(--y-form-sm);
    padding: 0.25rem 0.25rem 0.25rem 2rem;
    color: transparent;
    background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z' fill='silver' %3E%3C/path%3E%3C/svg%3E") no-repeat 10px;
    cursor: pointer;
  }
  input:not(:focus-visible)::placeholder {
    color: transparent;
  }
}

#hs_cos_wrapper_site_search_laptop:has(.hs-search-field.hs-search-field--open) {
  width: 400px !important;
}
#hs_cos_wrapper_site_search_laptop input[type=text]:focus,
#hs_cos_wrapper_site_search_laptop:has(.hs-search-field.hs-search-field--open) input[type=text] {
  color: black;
  background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z' fill='black' %3E%3C/path%3E%3C/svg%3E") no-repeat 10px;
  font-weight: normal;
}
.megamenu-search input:focus {
  color: black;
  background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z' fill='black' %3E%3C/path%3E%3C/svg%3E") no-repeat 10px;
  font-weight: normal;
}

#hs_cos_wrapper_site_search_laptop .hs-search-field__suggestions {
  position: absolute;
  transition: box-shadow 0.15s ease-in-out;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, .15),
    0 8px 48px rgba(0, 0, 0, .1);
}
.hs-search-field__suggestions {
  border-radius: 0.5rem;
  display: block;
  margin-top: 1rem;
  background-color: #fff;
  overflow: clip;
  #results-for {
    padding: 0.75rem 1rem;
    font-weight: normal;
    color: oklch(from var(--coolgray) var(--l700) c h);
  }
  a {
    padding: 0.5rem 1rem;
    text-decoration: none;
  }
  a:hover {
    color: black !important;
  }
}
.hs-search-field--open .hs-search-field__suggestions {
  border: var(--b-thin) !important;
}
.hs-search-suggestions__more {
  border-top: var(--b-thin);
}


/* Megamenus */
/* The single fixed frame that holds all panels and carries the shadow */
.mega-frame {
  position: fixed !important;
  left: 0; right: 0;
  top: var(--mega-top, 0px);
  width: 100vw;
  height: 0;                   /* animated */
  overflow: hidden;            /* clip during height tween */
  background: #fff;
  box-shadow: 0 48px 48px rgba(0,0,0,0.05);
  z-index: 40;
}
.mega-frame[hidden] { display:none !important; }

/* Panels live inside the frame; no shadow here (avoid double-shadow) */
.mega-frame .mega {
  position: absolute !important; inset: 0; width: 100%; height: auto; background: var(--bg-site-header);
  box-shadow: none !important; opacity: 0; /* cross-fade */
}
.mega-frame.is-mega-open .mega {
  max-height: calc(100dvh - 116px);
  overflow-y: auto;
}
.mega-frame.is-mega-open .mega::-webkit-scrollbar {
  display: none;
}

.mega-frame .mega::before{ display:none !important; }

/* Megamenu inner layout */
.mega-inner { margin: auto; padding-block: 2rem; }

.mega-panel .sm\:col-1 {
  margin-bottom: var(--s-4);
  border-bottom: var(--b-thin);
  padding-bottom: var(--s-4);
}
@media (min-width: 1024px) {
  .mega-panel .sm\:col-1 {
    margin: 0;
    border-bottom: 0;
    border-right: var(--b-thin);
    padding: 0 var(--s-3) 0 0;
  }
}
.mega-panel ul a:not(:hover) {
  color: oklch(from var(--coolgray) var(--l700) c h);
}

.mega-panel ul {
  list-style-type: none;
  padding: 0;
}

.link-list {
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
  font-size: var(--t-sm);
}
.link-list a {
  text-decoration: none;
  &:not(:hover) {
    color: color: oklch(from var(--gray) var(--l700) c h); 
  }
}
/* .hub-action,
.mega-panel .h5 a,
.link-list a:hover,
.mega-panel .panel-link:hover .panel-link-title {
  color: oklch(from var(--blue) var(--l600) c h);
} */
.link-list a::after {
  content: "\00a0→";
  display: inline;
  letter-spacing: -.2em;
  opacity: 0;
  transition: opacity .5s ease, letter-spacing .2s ease;
}
.link-list a:hover::after, 
.link-list a:focus-visible::after {
  opacity: 1;
  letter-spacing: 0;
}
.hub-action {
  display: inline-flex;
  align-items: center;
  gap: var(--s-tiny);
  white-space: nowrap;
}
a.hub-action.arrow {
  transition: transform .5s ease;
}
.hub:hover .panel-link-title .arrow, 
.hub:focus-visible .panel-link-title .arrow,
a.hub-action:hover .arrow {
  transform: translateX(.3rem);
}

/* Mobile panel */
.mobile-panel[hidden] { display: none !important; }
.mobile-panel{ background: #fff; border-top: var(--b-thin); height: 0; opacity: 0; overflow: hidden; }

.t-sm {
  line-height: inherit;
}