/* Header movement has one owner: pill CSS; logo/button entrances stay in shared WAAPI. */
@keyframes tg-menu-return {
 from {opacity:0;transform:translateY(12px);}
 to {opacity:1;transform:translateY(0);}
}
@media(min-width:1024px) and (prefers-reduced-motion:no-preference){
 body .header .header-menu.active .header-menu-list {
  animation:tg-menu-return 700ms cubic-bezier(.45,0,.2,1) both;
 }
}
body .header .header-content {align-items:center;}
body .header .header__logo,
body .header .header-menu {align-self:center;margin-block:0;}
/* .allh receives jQuery's stale compact-state height; normal header geometry is explicit. */
body .header:not(.header_background) .header-content {
 height:calc(108 * var(--tg-wide-unit,1px))!important;
 min-height:calc(108 * var(--tg-wide-unit,1px))!important;
 padding-block:0;
}
body .header .header__logo {align-items:center;}
@media(max-width:1023.98px){
 body .header:not(.header_background) .header-content {height:60px!important;min-height:60px!important;}
}
body .header .header-menu .header-menu-list {transition-property:background-color,box-shadow;}
body .header .header-menu .header-menu-list > li > a {transition-property:color,background-color;}
/* No font-dependent wrapping and no late DOM split of the approved two lines. */
body#home #content .item-firstscreen > .page-title-box h1.tg-home-heading {
 font-size:clamp(29px,5.2vw,calc(105 * var(--tg-wide-unit,1px)))!important;
 line-height:1.08;min-height:2.16em;max-width:none;
}
body#home #content .item-firstscreen > .page-title-box h1.tg-home-heading > span {
 display:block;white-space:nowrap;
}
/* Let genuine content determine extra height; old fixed 800/900 minima are removed. */
@media(min-width:1024px){
 body#home #content .item-firstscreen > .page-title-box {
  --tg-home-hero-min:0px;min-height:100svh!important;height:auto;box-sizing:border-box;
 }
 body#home #content .item-firstscreen > .page-title-box > .tg-hero-media {height:100%!important;min-height:0;}
}
@media(prefers-reduced-motion:reduce){
 body .header .header-menu.active .header-menu-list {animation:none;transform:none;}
}
/* Mobile keeps one logo size through all scroll states. Legacy % → px
   transitions otherwise briefly grow the 46px compact image to 108px. */
@media(max-width:1023.98px){
 :root {--tg-mobile-header-top:14px;--tg-mobile-header-safe:88px;}
 body .header,body .header.header_background {padding-block:var(--tg-mobile-header-top)!important;}
 body .header .header-content,body .header.header_background .header-content {
  height:60px!important;min-height:60px!important;padding-block:0!important;align-items:center;
 }
 body .header .header__logo,body .header.header_background .header__logo {
  width:60px!important;height:60px!important;min-width:60px;flex:0 0 60px!important;transform:none!important;
 }
 body .header .header__logo .brand,body .header.header_background .header__logo .brand {
  display:flex;align-items:center;justify-content:center;width:60px!important;height:60px!important;
  padding:0!important;box-sizing:border-box;transform:none!important;transition:background-color 200ms ease;
 }
 body .header .header__logo .brand img,body .header.header_background .header__logo .brand img {
  display:block;width:60px!important;height:60px!important;min-width:60px;max-width:60px;
  object-fit:contain;transform:none!important;transition:none!important;
 }
}
