/* PHP emits the header; CSS supplies layout before any script runs. */
body.mhs-active header.site-header.menu-type-custom-header { padding:0!important; }
body.mhs-active header.site-header.menu-type-custom-header .header-block { padding:24px 32px!important; background:#fff; }
body.mhs-active header.site-header.menu-type-custom-header .header-block__row-container { width:100%!important; max-width:none!important; padding:0!important; margin:0!important; }
body.mhs-active header.site-header.menu-type-custom-header .header-block__row--main { display:grid!important; grid-template-columns:minmax(0,1fr) 140px minmax(0,1fr); align-items:center; gap:24px; margin:0!important; }
body.mhs-active header.site-header.menu-type-custom-header .header-block__column { width:auto!important; min-width:0; padding:0!important; }
body.mhs-active header.site-header.menu-type-custom-header .header-block--content-right .header-block__items-row { justify-content:flex-end; }
body.mhs-active header.site-header.menu-type-custom-header .header-block--content-left .header-block__items-row { justify-content:flex-start; }
body.mhs-active header.site-header.menu-type-custom-header .header-block__logo { flex:none!important; justify-self:center; }
body.mhs-active header.site-header.menu-type-custom-header .header-logo { display:block!important; width:140px!important; height:auto!important; }
body.mhs-active header.site-header.menu-type-custom-header .header-logo img { width:100%!important; height:auto!important; max-height:52px; object-fit:contain; }
.mhs-tools, .mhs-overlay { color:#09164f; font-family:inherit; line-height:1.4; }
.mhs-tools, .mhs-tools *, .mhs-overlay, .mhs-overlay * { box-sizing:border-box; }
.mhs-tools { display:flex; align-items:center; gap:18px; width:max-content; }
.mhs-tools a { text-decoration:none!important; box-shadow:none!important; border:0; }
.mhs-tools .mhs-icon { display:inline-flex; align-items:center; justify-content:center; width:44px; height:44px; flex:none; padding:8px; margin:0; background:transparent; color:inherit; border:0; border-radius:0; cursor:pointer; }
.mhs-tools .mhs-icon svg { display:block; width:28px; height:28px; }
.mhs-tools .mhs-mask { display:block; width:28px; height:28px; background:currentColor; -webkit-mask:var(--mhs-icon) center/contain no-repeat; mask:var(--mhs-icon) center/contain no-repeat; }
.mhs-tools .mhs-cta { display:inline-flex; align-items:center; justify-content:center; min-height:44px; white-space:nowrap; padding:12px 22px; margin:0; background:#09164f; color:#fff!important; font:inherit; font-size:14px; }
.mhs-tools :is(a,button,summary):focus-visible, .mhs-overlay :is(a,button,input):focus-visible { outline:3px solid #59bcea; outline-offset:3px; }
.mhs-languages { position:relative; font-size:14px; }
.mhs-languages summary { display:flex; align-items:center; gap:10px; min-height:44px; cursor:pointer; list-style:none; }
.mhs-languages summary::-webkit-details-marker { display:none; }
.mhs-languages ul { position:absolute; z-index:20; top:100%; right:0; padding:8px!important; margin:0!important; min-width:80px; background:#fff; color:#09164f; box-shadow:0 8px 24px #0002; list-style:none; }
.mhs-languages li { padding:0!important; margin:0!important; list-style:none; }
.mhs-languages a { display:block; padding:10px; color:#09164f!important; }
.mhs-languages [aria-current], .mhs-languages a:hover { background:#09164f0b; }
body.mhs-light-header header.site-header.menu-type-custom-header:not(.mhs-scrolled) .header-block { background:transparent!important; }
body.mhs-light-header header.site-header.menu-type-custom-header:not(.mhs-scrolled) .mhs-tools { color:#fff; }
body.mhs-light-header header.site-header.menu-type-custom-header:not(.mhs-scrolled) .header-logo img { filter:brightness(0) invert(1); }
body.mhs-light-header header.site-header.menu-type-custom-header:not(.mhs-scrolled) .mhs-cta { color:#09164f!important; background:#fff; }
@media(max-width:1000px) {
 body.mhs-active header.site-header.menu-type-custom-header .header-block { padding:20px!important; }
 body.mhs-active header.site-header.menu-type-custom-header .header-block__row--main { grid-template-columns:1fr auto; gap:16px; }
 body.mhs-active header.site-header.menu-type-custom-header .header-block--content-left { grid-column:1; grid-row:1; }
 body.mhs-active header.site-header.menu-type-custom-header .header-block__logo { grid-column:2; grid-row:1; justify-self:end; }
 body.mhs-active header.site-header.menu-type-custom-header .header-logo { width:120px!important; }
 body.mhs-active header.site-header.menu-type-custom-header .header-block--content-right,
 body.mhs-active header.site-header.menu-type-custom-header .mhs-left > a { display:none!important; }
}
#mhs-overlay[hidden], #mhs-overlay [hidden] { display:none!important; }
#mhs-overlay { position:fixed; inset:0; z-index:2147483000; margin:0; padding:0; background:#06113b99; overflow:auto; overscroll-behavior:contain; }
#mhs-overlay .mhs-panel { box-sizing:border-box; width:min(460px,calc(100% - 24px)); min-height:100%; margin:0; padding:30px; background:#fff; color:#09164f; box-shadow:10px 0 50px #0002; }
#mhs-overlay .mhs-panel-top { display:flex; align-items:center; justify-content:space-between; gap:16px; border-bottom:1px solid #09164f22; padding-bottom:18px; margin-bottom:16px; }
#mhs-overlay h2 { margin:0; font:inherit; font-size:23px; color:inherit; }
#mhs-overlay button { font:inherit; cursor:pointer; color:inherit; }
#mhs-overlay .mhs-close { width:44px; height:44px; border:0; margin:0; padding:0; background:transparent; font-size:36px; flex:none; }
#mhs-overlay nav ul { position:static; display:block; opacity:1; visibility:visible; transform:none; width:auto; padding:0; margin:0; list-style:none; background:transparent; box-shadow:none; }
#mhs-overlay nav li { position:relative; display:block; float:none; width:auto; padding:0; margin:0; }
#mhs-overlay nav > ul > li { border-bottom:1px solid #09164f22; }
#mhs-overlay nav a { display:block; padding:18px 48px 18px 0; color:inherit; text-decoration:none; font-size:25px; line-height:1.3; border:0; cursor:pointer; }
#mhs-overlay nav ul ul { padding:0 0 12px 14px; }
#mhs-overlay nav ul ul a { font-size:17px; padding-top:12px; padding-bottom:12px; }
#mhs-overlay .mhs-sub-toggle { position:absolute; top:12px; right:0; width:44px; height:44px; padding:0; margin:0; border:0; background:transparent; font-size:25px; }
#mhs-overlay .mhs-search-panel { width:min(620px,calc(100% - 24px)); min-height:0; margin:30px auto; }
#mhs-overlay label { display:block; margin-bottom:10px; }
#mhs-overlay .mhs-search-row { display:flex; gap:10px; }
#mhs-overlay input { min-width:0; width:100%; height:48px; padding:10px; border:1px solid #aaa; background:white; color:#111; font:inherit; }
#mhs-overlay .mhs-search-row button { background:#09164f; color:#fff; border:0; padding:10px 14px; margin:0; }
#mhs-overlay .mhs-drawer-tools { display:flex; width:100%; margin:0 0 16px; gap:10px; }
#mhs-overlay .mhs-drawer-tools .mhs-languages { margin-left:auto; }
#mhs-overlay .mhs-drawer-bottom { display:flex; width:100%; padding-top:24px; }
#mhs-overlay .mhs-drawer-bottom .mhs-cta { width:100%; white-space:normal; text-align:center; }
#mhs-overlay .mhs-drawer-search { margin-top:24px; }
@media(max-width:480px) { #mhs-overlay .mhs-panel { padding:22px; } #mhs-overlay h2 { font-size:20px; } #mhs-overlay nav a { font-size:22px; } #mhs-overlay .mhs-search-row { flex-wrap:wrap; } }

/* Kalium's absolute/sticky header passes pointer events through its wrapper.
   Native links opt back in; our buttons and summary must do so explicitly. */
body.mhs-active header.site-header.menu-type-custom-header .mhs-tools,
body.mhs-active header.site-header.menu-type-custom-header .mhs-tools :is(button,a,details,summary,input,select),
body.mhs-active header.site-header.menu-type-custom-header .mhs-languages ul {
 pointer-events:auto!important;
}
/* The icon graphic belongs to its button/link, not to the content underneath. */
body.mhs-active header.site-header.menu-type-custom-header .mhs-icon :is(svg,svg *,span) { pointer-events:none!important; }
body.mhs-active header.site-header.menu-type-custom-header .mhs-languages summary span { pointer-events:none!important; }

/* Suppress Kalium's decorative link underline only on these controls. */
body.mhs-active .mhs-tools a.mhs-icon,
body.mhs-active .mhs-tools a.mhs-cta,
body.mhs-active .mhs-tools a.mhs-icon:hover,
body.mhs-active .mhs-tools a.mhs-cta:hover {
 text-decoration:none!important; border-bottom:0!important; box-shadow:none!important; background-image:none!important;
}
body.mhs-active .mhs-tools a.mhs-icon::before,
body.mhs-active .mhs-tools a.mhs-icon::after,
body.mhs-active .mhs-tools a.mhs-cta::before,
body.mhs-active .mhs-tools a.mhs-cta::after { content:none!important; display:none!important; }

/* Optional drawer movement. Keep the existing instant mode intact. */
#mhs-overlay.mhs-sliding { background:transparent; transition:background-color .3s ease; }
#mhs-overlay.mhs-sliding.mhs-open { background:#06113b99; }
#mhs-overlay.mhs-sliding #mhs-menu-panel { transform:translateX(-105%); transition:transform .3s cubic-bezier(.22,.61,.36,1); }
#mhs-overlay.mhs-sliding.mhs-open #mhs-menu-panel { transform:translateX(0); }
@media(prefers-reduced-motion:reduce) {
 #mhs-overlay.mhs-sliding,#mhs-overlay.mhs-sliding #mhs-menu-panel { transition:none!important; }
}
