/* ZK.Header R5: scoped opt-in sticky section. Native T4 remains untouched. */
#t4-header.zk-r5-sticky { position:sticky !important; top:0 !important; z-index:301 !important; }
#t4-header.zk-r5-sticky.zk-r5-opaque { background-color:var(--zk-r5-bg) !important; }
#t4-header.zk-r5-sticky.zk-r5-scrolled.zk-r5-shadow { box-shadow:0 5px 18px rgba(0,0,0,.16); }
#t4-header.zk-r5-sticky.zk-r5-hidden:not(:focus-within) { transform:translateY(-100%); pointer-events:none; }
#t4-header.zk-r5-sticky.zk-r5-transition { transition:transform 180ms ease; }
@media (prefers-reduced-motion:reduce) { #t4-header.zk-r5-sticky.zk-r5-transition { transition:none; } }
/* Never enlarge the image; JS supplies a cap no larger than its normal height. */
#t4-header.zk-r5-sticky.zk-r5-scrolled.zk-r5-shrink .header-block.header-block-4 .header-top .navbar-brand img.zk-r5-image {
  width:auto !important; height:auto !important; max-height:var(--zk-r5-image-cap) !important; object-fit:contain;
}
/* Leave horizontal spacing, menu padding and the R4.2 square-frame algorithm intact. */
#t4-header.zk-r5-sticky.zk-r5-scrolled.zk-r5-pad .header-block.header-block-4 > .header-wrap > .header-top > .container > .row { min-height:0 !important; }
#t4-header.zk-r5-sticky.zk-r5-scrolled.zk-r5-pad .header-block.header-block-4 > .header-wrap > .header-top > .container { padding-block:var(--zk-r5-pad) !important; }
#t4-header.zk-r5-sticky.zk-r5-scrolled.zk-r5-pad .header-block.header-block-4 .header-top .navbar-brand { padding-block:var(--zk-r5-pad) !important; }
@media (min-width:992px) {
 #t4-header.zk-r5-sticky.zk-r5-scrolled.zk-r5-pad .zk-header-r4:is(.zk-header-modern,.zk-header-compact) > .header-wrap > .header-top > .container { padding:0 !important; }
 #t4-header.zk-r5-sticky.zk-r5-scrolled.zk-r5-pad .zk-header-r4:is(.zk-header-modern,.zk-header-compact) > .header-wrap > .header-top > .container > .row > .col-lg-3 { padding:var(--zk-r5-pad) !important; }
 #t4-header.zk-r5-sticky.zk-r5-scrolled.zk-r5-pad .zk-header-r4:is(.zk-header-modern,.zk-header-compact) .header-top .navbar-brand { padding-block:0 !important; }
}
