/* ONYX 1.4.18: opt-in transparent-to-solid sticky header.
   Loaded last, only for an eligible ONYX Hero; legacy modes unchanged. */
/* A measured ease-in-out (rather than the original front-loaded .34s
   curve) makes the surface *arrive* and *leave* gradually. Keep text,
   shadow, blur and border in phase; no frame-by-frame scroll hijacking. */
body.onyx-header-reveal-active {
  --onyx-header-fade-duration:.56s;
  --onyx-header-fade-ease:cubic-bezier(.42,0,.58,1);
}
body.onyx-header-reveal-active .onyx-site-header {
  transition:background-color var(--onyx-header-fade-duration) var(--onyx-header-fade-ease),
    border-color var(--onyx-header-fade-duration) var(--onyx-header-fade-ease),
    box-shadow var(--onyx-header-fade-duration) var(--onyx-header-fade-ease),
    backdrop-filter var(--onyx-header-fade-duration) var(--onyx-header-fade-ease),
    -webkit-backdrop-filter var(--onyx-header-fade-duration) var(--onyx-header-fade-ease);
}
body.onyx-header-reveal-active .onyx-site-header .onyx-brand,
body.onyx-header-reveal-active .onyx-site-header .nav-link,
body.onyx-header-reveal-active .onyx-site-header .onyx-menu-toggle span {
  transition:color var(--onyx-header-fade-duration) var(--onyx-header-fade-ease),
    text-shadow var(--onyx-header-fade-duration) var(--onyx-header-fade-ease),
    background-color var(--onyx-header-fade-duration) var(--onyx-header-fade-ease),
    border-color var(--onyx-header-fade-duration) var(--onyx-header-fade-ease);
}
/* Avoid the tiny vertical "jump" caused by legacy scroll-dependent
   navbar padding. This applies only while the opt-in effect is active. */
body.onyx-style-clean.onyx-header-reveal-active .onyx-site-header .onyx-navbar,
body.onyx-style-clean.onyx-header-reveal-active .onyx-site-header.is-scrolled .onyx-navbar {
  padding:.64rem 0;
}
body.onyx-header-reveal-active:not(.onyx-style-clean) .onyx-site-header .onyx-navbar,
body.onyx-header-reveal-active:not(.onyx-style-clean) .onyx-site-header.is-scrolled .onyx-navbar {
  padding:.85rem 0;
}
body.onyx-header-reveal-active .onyx-site-header:not(.is-scrolled),
body.onyx-header-reveal-active.onyx-style-clean.onyx-clean-header-follows-hero .onyx-site-header:not(.is-scrolled) {
  background:transparent;
  border-bottom-color:transparent;
  box-shadow:none;
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
}
body.onyx-header-reveal-active .onyx-site-header:not(.is-scrolled) .onyx-brand,
body.onyx-header-reveal-active .onyx-site-header:not(.is-scrolled) .onyx-brand:hover,
body.onyx-header-reveal-active .onyx-site-header:not(.is-scrolled) .onyx-navbar .nav-link,
body.onyx-header-reveal-active.onyx-style-clean.onyx-clean-header-follows-hero .onyx-site-header:not(.is-scrolled) .onyx-navbar .nav-link,
body.onyx-header-reveal-active.onyx-style-clean.onyx-clean-header-follows-hero .onyx-site-header:not(.is-scrolled) .onyx-brand {
  color:var(--onyx-reveal-top-ink,#fff);
  text-shadow:0 1px 5px rgba(0,0,0,.35);
}
body.onyx-header-reveal-active .onyx-site-header:not(.is-scrolled) .onyx-navbar .nav-link:hover,
body.onyx-header-reveal-active .onyx-site-header:not(.is-scrolled) .onyx-navbar .current-menu-item>.nav-link,
body.onyx-header-reveal-active .onyx-site-header:not(.is-scrolled) .onyx-navbar .current_page_item>.nav-link {
  color:var(--onyx-reveal-top-ink,#fff);
  text-decoration:none;
  text-underline-offset:4px;
}
body.onyx-header-reveal-active .onyx-site-header:not(.is-scrolled) .onyx-menu-toggle {
  border-color:color-mix(in srgb,var(--onyx-reveal-top-ink,#fff) 50%,transparent);
}
body.onyx-header-reveal-active .onyx-site-header:not(.is-scrolled) .onyx-menu-toggle span,
body.onyx-header-reveal-active.onyx-style-clean.onyx-clean-header-follows-hero .onyx-site-header:not(.is-scrolled) .onyx-menu-toggle span {
  background:var(--onyx-reveal-top-ink,#fff);
}
/* Classic ONYX retains the site-color surface below the transparent Hero. */
body.onyx-header-reveal-active:not(.onyx-style-clean) .onyx-site-header.is-scrolled {
  background:var(--onyx-site-color,#0b1420);
  border-bottom:1px solid color-mix(in srgb,var(--onyx-site-foreground,#fff) 16%,transparent);
  box-shadow:0 4px 20px rgba(0,0,0,.15);
  backdrop-filter:blur(16px);
}
body.onyx-header-reveal-active:not(.onyx-style-clean) .onyx-site-header.is-scrolled .onyx-brand,
body.onyx-header-reveal-active:not(.onyx-style-clean) .onyx-site-header.is-scrolled .onyx-navbar .nav-link {
  color:var(--onyx-site-foreground,#fff);
}
/* ONYX Clean reveals a legible white surface after the scroll threshold. */
body.onyx-style-clean.onyx-header-reveal-active .onyx-site-header.is-scrolled,
body.onyx-style-clean.onyx-clean-header-follows-hero.onyx-header-reveal-active .onyx-site-header.is-scrolled {
  background:rgba(255,255,255,.97);
  border-bottom:1px solid var(--clean-line,#e4e6eb);
  box-shadow:0 4px 20px rgba(23,36,54,.09);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
}
body.onyx-style-clean.onyx-header-reveal-active .onyx-site-header.is-scrolled .onyx-brand,
body.onyx-style-clean.onyx-header-reveal-active .onyx-site-header.is-scrolled .onyx-brand:hover,
body.onyx-style-clean.onyx-clean-header-follows-hero.onyx-header-reveal-active .onyx-site-header.is-scrolled .onyx-brand {
  color:var(--clean-ink,#202b37);
  text-shadow:none;
}
body.onyx-style-clean.onyx-header-reveal-active .onyx-site-header.is-scrolled .onyx-navbar .nav-link,
body.onyx-style-clean.onyx-clean-header-follows-hero.onyx-header-reveal-active .onyx-site-header.is-scrolled .onyx-navbar .nav-link,
body.onyx-style-clean.onyx-clean-header-follows-hero.onyx-header-reveal-active .onyx-site-header.is-scrolled .navbar-collapse .nav-link {
  color:var(--clean-ink,#202b37);
  text-shadow:none;
}
body.onyx-style-clean.onyx-header-reveal-active .onyx-site-header.is-scrolled .onyx-navbar .nav-link:hover,
body.onyx-style-clean.onyx-header-reveal-active .onyx-site-header.is-scrolled .onyx-navbar .current-menu-item>.nav-link,
body.onyx-style-clean.onyx-header-reveal-active .onyx-site-header.is-scrolled .onyx-navbar .current_page_item>.nav-link {
  color:var(--clean-link,#175abb);
}
body.onyx-style-clean.onyx-header-reveal-active .onyx-site-header.is-scrolled .onyx-menu-toggle {
  border-color:color-mix(in srgb,var(--clean-ink,#202b37) 40%,transparent);
}
body.onyx-style-clean.onyx-header-reveal-active .onyx-site-header.is-scrolled .onyx-menu-toggle span,
body.onyx-style-clean.onyx-clean-header-follows-hero.onyx-header-reveal-active .onyx-site-header.is-scrolled .onyx-menu-toggle span {
  background:var(--clean-ink,#202b37);
}
/* A collapsed mobile menu is opaque even when the top bar is transparent. */
@media(max-width:991.98px){
 body.onyx-style-clean.onyx-header-reveal-active .onyx-site-header .onyx-navbar .navbar-collapse {
   background:rgba(255,255,255,.99);
   border:1px solid var(--clean-line,#e4e6eb);
 }
 body.onyx-style-clean.onyx-header-reveal-active .onyx-site-header .onyx-navbar .navbar-collapse .nav-link,
 body.onyx-style-clean.onyx-header-reveal-active .onyx-site-header:not(.is-scrolled) .onyx-navbar .navbar-collapse .nav-link {
   color:var(--clean-ink,#202b37);
   text-shadow:none;
 }
 body.onyx-header-reveal-active:not(.onyx-style-clean) .onyx-site-header .navbar-collapse {
   background:var(--onyx-site-color,#0b1420);
   border-color:color-mix(in srgb,var(--onyx-site-foreground,#fff) 18%,transparent);
 }
 body.onyx-header-reveal-active:not(.onyx-style-clean) .onyx-site-header .navbar-collapse .nav-link {
   color:var(--onyx-site-foreground,#fff);
   text-shadow:none;
 }
}
body.onyx-style-clean.onyx-header-reveal-active .onyx-site-header .dropdown-menu{
 background:#fff;border-color:var(--clean-line,#e4e6eb)
}
body.onyx-style-clean.onyx-header-reveal-active .onyx-site-header .dropdown-item{
 color:var(--clean-ink,#202b37);text-shadow:none
}
body.onyx-header-reveal-active .onyx-brand-logo {transition:filter var(--onyx-header-fade-duration) var(--onyx-header-fade-ease)}
body.onyx-header-reveal-active .onyx-site-header:not(.is-scrolled) .onyx-brand-logo{
 filter:drop-shadow(0 1px 3px rgba(0,0,0,.32))
}
@media(prefers-reduced-motion:reduce){
 body.onyx-header-reveal-active .onyx-site-header,
 body.onyx-header-reveal-active .onyx-site-header .onyx-brand,
 body.onyx-header-reveal-active .onyx-site-header .onyx-navbar .nav-link,
 body.onyx-header-reveal-active .onyx-brand-logo {transition:none}
}


/* ONYX 1.4.20: non-sticky reveal is ALWAYS transparent.
   It scrolls off the page rather than turning opaque. This rule wins over
   scroll-state and Clean-Hero overrides, without affecting sticky reveal. */
body.onyx-header-nonsticky.onyx-header-reveal-active .onyx-site-header,
body.onyx-style-clean.onyx-header-nonsticky.onyx-header-reveal-active .onyx-site-header,
body.onyx-style-clean.onyx-clean-header-follows-hero.onyx-header-nonsticky.onyx-header-reveal-active .onyx-site-header,
body.onyx-style-clean.onyx-header-nonsticky.onyx-header-reveal-active .onyx-site-header.is-scrolled,
body.onyx-style-clean.onyx-clean-header-follows-hero.onyx-header-nonsticky.onyx-header-reveal-active .onyx-site-header.is-scrolled {
  position:absolute;
  background:transparent;
  border-bottom-color:transparent;
  box-shadow:none;
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
}
body.onyx-header-nonsticky.onyx-header-reveal-active .onyx-site-header.is-scrolled .onyx-brand,
body.onyx-style-clean.onyx-header-nonsticky.onyx-header-reveal-active .onyx-site-header.is-scrolled .onyx-brand,
body.onyx-style-clean.onyx-clean-header-follows-hero.onyx-header-nonsticky.onyx-header-reveal-active .onyx-site-header.is-scrolled .onyx-brand,
body.onyx-header-nonsticky.onyx-header-reveal-active .onyx-site-header.is-scrolled .onyx-navbar .nav-link,
body.onyx-style-clean.onyx-header-nonsticky.onyx-header-reveal-active .onyx-site-header.is-scrolled .onyx-navbar .nav-link,
body.onyx-style-clean.onyx-clean-header-follows-hero.onyx-header-nonsticky.onyx-header-reveal-active .onyx-site-header.is-scrolled .onyx-navbar .nav-link {
  color:var(--onyx-reveal-top-ink,#fff);
  text-shadow:0 1px 5px rgba(0,0,0,.35);
}
body.onyx-header-nonsticky.onyx-header-reveal-active .onyx-site-header.is-scrolled .onyx-menu-toggle span,
body.onyx-style-clean.onyx-header-nonsticky.onyx-header-reveal-active .onyx-site-header.is-scrolled .onyx-menu-toggle span,
body.onyx-style-clean.onyx-clean-header-follows-hero.onyx-header-nonsticky.onyx-header-reveal-active .onyx-site-header.is-scrolled .onyx-menu-toggle span {
  background:var(--onyx-reveal-top-ink,#fff);
}

/* Original editorial demos retain a translucent photo header. A light/dark
   tint prevents bright image details from swallowing the navigation labels. */
body:is(.onyx-editorial-nav-mode,.onyx-editorial-nav-forma,.onyx-editorial-nav-coast,.onyx-editorial-nav-table).onyx-header-reveal-active{
 --onyx-demo-top-ink:#fff;--onyx-demo-top-tint:rgba(0,0,0,.29);
}
body.onyx-editorial-nav-ritual.onyx-header-reveal-active{
 --onyx-demo-top-ink:#34292f;--onyx-demo-top-tint:rgba(255,255,255,.78);
}
body:is(.onyx-editorial-nav-mode,.onyx-editorial-nav-forma,.onyx-editorial-nav-ritual,.onyx-editorial-nav-coast,.onyx-editorial-nav-table).onyx-header-reveal-active .onyx-site-header:not(.is-scrolled){
 background:var(--onyx-demo-top-tint)!important;
}
body:is(.onyx-editorial-nav-mode,.onyx-editorial-nav-forma,.onyx-editorial-nav-ritual,.onyx-editorial-nav-coast,.onyx-editorial-nav-table).onyx-header-reveal-active .onyx-site-header:not(.is-scrolled) :is(.onyx-brand,.onyx-navbar .nav-link){
 color:var(--onyx-demo-top-ink)!important;text-shadow:none!important;
}
body:is(.onyx-editorial-nav-mode,.onyx-editorial-nav-forma,.onyx-editorial-nav-ritual,.onyx-editorial-nav-coast,.onyx-editorial-nav-table).onyx-header-reveal-active .onyx-site-header:not(.is-scrolled) .onyx-menu-toggle span{
 background:var(--onyx-demo-top-ink)!important;
}
@media(max-width:991.98px){
 body:is(.onyx-editorial-nav-mode,.onyx-editorial-nav-forma,.onyx-editorial-nav-ritual,.onyx-editorial-nav-coast,.onyx-editorial-nav-table).onyx-header-reveal-active .onyx-site-header .onyx-navbar .navbar-collapse{
  background:#fff!important;
 }
 body:is(.onyx-editorial-nav-mode,.onyx-editorial-nav-forma,.onyx-editorial-nav-ritual,.onyx-editorial-nav-coast,.onyx-editorial-nav-table).onyx-header-reveal-active .onyx-site-header .onyx-navbar .navbar-collapse .nav-link{
  color:var(--clean-ink,#17283f)!important;text-shadow:none!important;
 }
}
