/* URSPT Premium 2026 — V8 final header/accessibility stabilization */
:root{
  --v8-header-top:78px;
  --v8-nav:54px;
  --v8-header-top-compact:68px;
  --v8-nav-compact:48px;
}

/* Header is deliberately two rows on desktop: identity/actions + full-width navigation. */
.site-header,.site-header.is-scrolled{height:auto!important;min-height:0!important;overflow:visible!important;background:rgba(255,255,255,.985)!important;}
.site-header__top{background:#fff;border-bottom:1px solid #eceef1;}
.site-header__toprow{height:var(--v8-header-top);display:flex;align-items:center;justify-content:space-between;gap:28px;transition:height .22s ease;}
.site-shell.is-scrolled .site-header__toprow{height:var(--v8-header-top-compact);}
.site-brand__mark{width:54px!important;height:54px!important;border-radius:15px!important;}
.site-brand__copy strong{font-size:20px!important;}
.site-brand__copy small{font-size:10.5px!important;line-height:1.4!important;max-width:220px!important;}
.header-actions{gap:10px!important;}
.header-contact{height:44px;padding:0 17px;border:1px solid #d7dce2;border-radius:999px;display:inline-flex;align-items:center;gap:9px;font-size:12px;font-weight:800;background:#fff;color:#161c24;}
.header-contact:hover,.header-contact:focus-visible{border-color:#111720;background:#111720;color:#fff;}
.header-contact .urspt-icon{width:16px;}
.header-action{width:44px!important;height:44px!important;}
.header-menu-trigger{display:none!important;}

.site-header__navrow{height:var(--v8-nav);background:#fff;border-bottom:1px solid rgba(9,14,22,.12);transition:height .22s ease;position:relative;z-index:420;}
.site-shell.is-scrolled .site-header__navrow{height:var(--v8-nav-compact);}
.site-header__navinner{height:100%;display:flex;align-items:stretch;}
.mega-nav--header{height:100%!important;width:100%!important;background:transparent!important;border:0!important;position:static!important;box-shadow:none!important;}
.mega-nav--header .mega-nav__list{height:100%!important;width:100%!important;display:flex!important;align-items:stretch!important;justify-content:space-between!important;gap:4px!important;overflow:visible!important;}
.mega-nav--header .mega-nav__item{height:100%!important;flex:0 0 auto!important;position:static!important;}
.mega-nav--header .mega-nav__toggle,.mega-nav--header .mega-nav__direct{height:100%!important;padding:0 10px!important;font-size:12px!important;line-height:1.15!important;font-weight:760!important;color:#222933!important;white-space:nowrap!important;border-radius:0!important;}
.mega-nav--header .mega-nav__toggle:hover,.mega-nav--header .mega-nav__toggle:focus-visible,.mega-nav--header .mega-nav__item.is-open>.mega-nav__toggle,.mega-nav--header .mega-nav__direct:hover,.mega-nav--header .mega-nav__direct:focus-visible{background:#111720!important;color:#fff!important;}

/* Mega panels are viewport-wide, not constrained by a menu item's width. */
.mega-panel{position:absolute!important;left:0!important;right:0!important;top:100%!important;width:100%!important;max-width:none!important;max-height:calc(100vh - 118px)!important;overflow:auto!important;background:#f7f5ef!important;box-shadow:0 32px 80px rgba(8,13,20,.22)!important;z-index:410!important;}
.mega-panel__inner{width:min(1420px,calc(100vw - 56px))!important;grid-template-columns:minmax(210px,.72fr) minmax(0,2.3fr) minmax(210px,.68fr)!important;gap:36px!important;padding:30px 0 34px!important;}
.mega-panel__intro h2{font-size:30px!important;max-width:12ch!important;}
.mega-panel__links{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px 16px!important;align-content:start!important;}
.mega-panel__group--wide{grid-column:1/-1!important;}
.mega-panel__primary{min-height:52px!important;grid-template-columns:26px minmax(0,1fr) 18px!important;padding:5px 7px!important;}
.mega-panel__primary strong{font-size:12.5px!important;line-height:1.3!important;}
.mega-panel__subgrid{grid-template-columns:repeat(3,minmax(0,1fr))!important;padding-left:32px!important;gap:6px!important;}
.mega-panel__subgrid a{font-size:11.5px!important;min-height:40px!important;}
.mega-panel__rail>a{min-height:132px!important;}

@media(max-width:1320px){
  .mega-nav--header .mega-nav__toggle,.mega-nav--header .mega-nav__direct{padding-inline:7px!important;font-size:11px!important;}
  .mega-panel__inner{grid-template-columns:190px minmax(0,1fr)!important;}
  .mega-panel__rail{display:none!important;}
}

/* Do not crush desktop navigation. Switch to the already polished drawer instead. */
@media(max-width:1180px){
  :root{--v8-header-top:76px;--v8-header-top-compact:70px;}
  .site-header__navrow{display:none!important;}
  .header-menu-trigger{display:flex!important;}
  .site-brand__copy small{display:block!important;}
  .header-contact{display:inline-flex;}
}

@media(max-width:760px){
  :root{--v8-header-top:72px;--v8-header-top-compact:72px;}
  .site-header,.site-header.is-scrolled{height:auto!important;}
  .site-header__toprow{height:72px!important;}
  .site-brand__mark{width:46px!important;height:46px!important;}
  .site-brand__copy strong{font-size:17px!important;}
  .site-brand__copy small{display:none!important;}
  .header-contact{display:none!important;}
}
