/* Only applied when the replacement header is enabled. */
body #header,body #header-wrap,body .header-wrapper,body #top-bar,body .header-bg-container{display:none!important}
body.admin-bar .kfh-shell{top:32px}body .kfh-shell{position:sticky;top:0;z-index:9990;background:#fff;box-shadow:0 4px 24px #15374712;font-family:inherit;width:100%}body .kfh-shell *{box-sizing:border-box}body .kfh-inner{max-width:1440px;padding:12px 20px;margin:auto;display:flex;align-items:center;gap:20px;min-height:86px}.kfh-logo{display:flex;flex-direction:column;flex:none;text-decoration:none!important;max-width:185px}.kfh-logo img{max-width:175px;max-height:70px;width:auto;height:auto;object-fit:contain}.kfh-logo strong{font-size:35px;color:#078f8a;line-height:1}.kfh-logo strong span{color:#f05b20}.kfh-logo small{font-size:10px;color:#516270}.kfh-desktop{display:flex;align-items:center;justify-content:center;flex:1;gap:7px;min-width:0}.kfh-navitem{position:relative}.kfh-navlink{display:flex;align-items:center;gap:7px;border-radius:12px;background:var(--kfh-tint);padding:11px 10px;color:#19344b!important;text-decoration:none!important;font-weight:800;font-size:13px;white-space:nowrap;transition:transform .15s}.kfh-navlink:hover{transform:translateY(-2px)}.kfh-emoji{font-size:20px;line-height:1.2;display:inline-flex;align-items:center;justify-content:center;flex:none}.kfh-icon-img{height:23px;width:23px;object-fit:contain;flex:none}.kfh-mega{position:absolute;left:50%;top:calc(100% + 9px);transform:translateX(-50%);width:min(620px,90vw);padding:20px;border:1px solid #e9edf0;background:#fff;border-radius:18px;box-shadow:0 22px 50px #123b4b28;visibility:hidden;opacity:0;pointer-events:none;transition:opacity .15s;z-index:9995}.kfh-navitem:hover .kfh-mega,.kfh-navitem:focus-within .kfh-mega{visibility:visible;opacity:1;pointer-events:auto}.kfh-mega:before{content:"";position:absolute;height:12px;top:-12px;left:0;right:0}.kfh-mega-head{display:flex;justify-content:space-between;gap:10px;align-items:center;border-bottom:1px solid #eef1f4;padding-bottom:13px;margin-bottom:13px}.kfh-mega-head strong{font-size:17px;color:#16344b}.kfh-mega-head a{font-size:12px;color:#ef3b79!important}.kfh-mega-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.kfh-mega-grid>a{display:flex;align-items:center;gap:9px;padding:10px;border-radius:10px;color:#243e50!important;font-size:12px;font-weight:700;text-decoration:none!important;min-width:0}.kfh-mega-grid>a:hover{background:#f3f9fa}.kfh-mega-grid>a span:last-child{overflow-wrap:anywhere}.kfh-right{display:flex;align-items:center;gap:10px}.kfh-search{border:1px solid #dfe7ec;border-radius:30px;display:flex;align-items:center;margin:0;min-width:155px;width:185px;height:41px;padding:0 6px 0 13px}.kfh-search input,.kfh-mobile-search input{border:0!important;box-shadow:none!important;background:transparent!important;margin:0!important;padding:0!important;min-width:0;width:100%;height:100%;font-size:12px}.kfh-search button,.kfh-mobile-search button{background:transparent!important;color:#17354c!important;box-shadow:none!important;border:0!important;margin:0!important;padding:0 8px!important;font-size:26px;line-height:1}.kfh-account .kf-avatar-wrap{z-index:10000}.kfh-toggle{display:none}.kfh-mobile{display:none}
@media(max-width:1250px){.kfh-inner{gap:12px;padding:10px 14px}.kfh-navlink{font-size:11px;padding:10px 7px;gap:4px}.kfh-navlink .kfh-emoji{font-size:16px}.kfh-search{width:145px;min-width:120px}.kfh-logo img{max-width:145px}}
@media(max-width:1020px){.kfh-desktop{display:none}.kfh-inner{min-height:72px;justify-content:space-between}.kfh-toggle{display:flex;flex-direction:column;gap:5px;justify-content:center;width:43px;height:43px;padding:10px;border:1px solid #e5edf0;background:#fff;border-radius:11px;cursor:pointer}.kfh-toggle span{height:2px;width:100%;background:#15354a;border-radius:3px}.kfh-logo{margin-right:auto}.kfh-search{display:none}.kfh-mobile:not([hidden]){display:block;padding:8px 18px 20px;max-height:calc(100dvh - 85px);overflow-y:auto;border-top:1px solid #e9eef2;background:#fff}.kfh-mobile-search{display:flex;align-items:center;height:44px;border:1px solid #e2ebf0;border-radius:12px;margin:8px 0 14px;padding:0 12px}.kfh-mobile-group{border-bottom:1px solid #eaf0f3}.kfh-mobile-line{display:flex;align-items:center;gap:8px}.kfh-mobile-line>a{display:flex;align-items:center;gap:12px;flex:1;padding:14px 8px;color:#18354c!important;font-weight:800;text-decoration:none!important}.kfh-expand{background:#f1f6f8!important;color:#1b4a5b!important;border-radius:10px!important;width:40px;height:36px;padding:0!important;box-shadow:none!important;font-size:22px!important;margin:0!important}.kfh-expand[aria-expanded=true]{transform:rotate(180deg)}.kfh-mobile-children:not([hidden]){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:6px 4px 16px}.kfh-mobile-children>a{display:flex;align-items:center;gap:8px;background:#f7fafb;border-radius:10px;padding:11px 8px;font-size:12px;color:#2a4a5d!important;text-decoration:none!important;font-weight:650;min-width:0}.kfh-mobile-children>a .kfh-emoji{font-size:17px}}
@media(max-width:480px){body.admin-bar .kfh-shell{top:0}.kfh-logo img{max-width:145px;max-height:55px}.kfh-account .kf-avatar-dropdown>summary span:not(.kf-avatar-chevron){display:none}.kfh-mobile-children:not([hidden]){grid-template-columns:1fr}}

/* v1.1 mobile drill-down navigation */
@media(max-width:1020px){
.kfh-mobile:not([hidden]){display:block;padding:0;max-height:calc(100dvh - 75px);overflow-y:auto;overscroll-behavior:contain}
.kfh-mobile [data-kfh-view][hidden]{display:none!important}
.kfh-mobile-top{height:58px;display:flex;align-items:center;justify-content:center;position:relative;border-bottom:1px solid #e8edf0;background:#fff;padding:0 54px}
.kfh-mobile-top strong{font-size:15px;color:#253449;font-weight:800;text-align:center}
.kfh-mobile-close,.kfh-mobile-back{position:absolute;top:8px;width:42px;height:42px;border:0!important;background:transparent!important;color:#253449!important;box-shadow:none!important;padding:0!important;font-size:27px!important;line-height:1!important}
.kfh-mobile-close{right:9px}.kfh-mobile-back{left:9px}
.kfh-mobile-search{margin:12px 15px}
.kfh-mobile-row{border-bottom:1px solid #edf0f2}
.kfh-mobile-row>a,.kfh-mobile-forward{display:flex!important;align-items:center!important;gap:12px!important;width:100%!important;min-height:53px!important;padding:12px 16px!important;background:#fff!important;border:0!important;border-radius:0!important;box-shadow:none!important;text-align:left!important;color:#253449!important;text-decoration:none!important;font-size:14px!important;font-weight:600!important;line-height:1.35!important;margin:0!important}
.kfh-mobile-row>a span:nth-child(2),.kfh-mobile-forward>span:nth-child(2){flex:1}
.kfh-mobile-row .kfh-chevron{margin-left:auto;color:#7e8a95;font-size:24px;font-weight:400}
.kfh-mobile-row .kfh-emoji{font-size:19px}.kfh-mobile-row .kfh-icon-img{height:22px;width:22px}
.kfh-mobile-all{display:flex;justify-content:space-between;align-items:center;margin:12px 14px 8px;padding:15px 14px;border-radius:10px;background:#faf7f3;color:#8b603d!important;text-decoration:none!important;font-size:12px;font-weight:800}
.kfh-mobile-all span{font-size:20px}
}

/* v1.2: isolated full-viewport mobile drawer, no leaking page underneath */
@media (max-width:1020px){
 html.kfh-menu-open,html.kfh-menu-open body{overflow:hidden!important;overscroll-behavior:none!important}
 body .kfh-shell{z-index:999990!important}
 body .kfh-shell .kfh-mobile:not([hidden]){position:fixed!important;inset:0!important;top:0!important;left:0!important;right:0!important;bottom:0!important;width:100vw!important;width:100dvw!important;height:100vh!important;height:100dvh!important;max-height:none!important;min-height:0!important;margin:0!important;padding:0!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain!important;background:#fff!important;box-shadow:none!important;border:0!important;z-index:999999!important;display:block!important;transform:none!important;visibility:visible!important;opacity:1!important}
 body .kfh-shell .kfh-mobile[hidden]{display:none!important}
 .kfh-mobile,.kfh-mobile *{box-sizing:border-box!important}
 .kfh-mobile [data-kfh-view][hidden]{display:none!important}
 .kfh-mobile [data-kfh-view]:not([hidden]){display:block!important;min-height:100%;width:100%;background:#fff}
 .kfh-mobile .kfh-mobile-top{position:sticky!important;top:0!important;z-index:4!important;display:flex!important;height:64px!important;min-height:64px!important;width:100%!important;padding:0 58px!important;margin:0!important;align-items:center!important;justify-content:center!important;background:#fff!important;border:0!important;border-bottom:1px solid #e8edf0!important;border-radius:0!important;box-shadow:none!important}
 .kfh-mobile .kfh-mobile-top strong{font-size:16px!important;line-height:1.3!important;color:#253449!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .kfh-mobile .kfh-mobile-close,.kfh-mobile .kfh-mobile-back{position:absolute!important;top:10px!important;width:44px!important;height:44px!important;min-height:44px!important;display:flex!important;align-items:center!important;justify-content:center!important;margin:0!important;padding:0!important;background:transparent!important;border:0!important;border-radius:10px!important;box-shadow:none!important;color:#253449!important;font-size:27px!important;line-height:1!important;cursor:pointer!important}
 .kfh-mobile .kfh-mobile-close{right:10px!important}.kfh-mobile .kfh-mobile-back{left:10px!important}
 .kfh-mobile .kfh-mobile-search{height:46px!important;margin:14px 16px!important;padding:0 12px!important;width:calc(100% - 32px)!important;display:flex!important;align-items:center!important;border:1px solid #e2ebf0!important;border-radius:12px!important;background:#fff!important}
 .kfh-mobile .kfh-mobile-search input{flex:1!important;min-width:0!important;width:100%!important;max-width:none!important;height:100%!important;font-size:14px!important;line-height:normal!important}
 .kfh-mobile .kfh-mobile-search button{flex:none!important;width:38px!important;height:38px!important;min-height:38px!important;padding:0!important;margin:0!important;background:transparent!important;border:0!important;box-shadow:none!important}
 .kfh-mobile .kfh-mobile-row{display:block!important;width:100%!important;margin:0!important;padding:0!important;border:0!important;border-bottom:1px solid #edf0f2!important;background:#fff!important}
 .kfh-mobile .kfh-mobile-row>a,.kfh-mobile .kfh-mobile-row>.kfh-mobile-forward{display:flex!important;align-items:center!important;gap:12px!important;width:100%!important;min-height:58px!important;height:auto!important;padding:14px 18px!important;margin:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:#fff!important;color:#253449!important;text-decoration:none!important;text-transform:none!important;letter-spacing:normal!important;font-size:14px!important;font-weight:650!important;line-height:1.4!important;text-align:left!important;white-space:normal!important;cursor:pointer!important}
 .kfh-mobile .kfh-mobile-row>a:hover,.kfh-mobile .kfh-mobile-forward:hover{background:#f7fafb!important}
 .kfh-mobile .kfh-mobile-row .kfh-emoji,.kfh-mobile .kfh-mobile-row .kfh-icon-img{flex:0 0 24px!important;width:24px!important;height:24px!important;max-width:24px!important;font-size:21px!important;object-fit:contain!important}
 .kfh-mobile .kfh-mobile-row>a>span:nth-child(2),.kfh-mobile .kfh-mobile-forward>span:nth-child(2){flex:1 1 auto!important;min-width:0!important;overflow-wrap:anywhere!important}
 .kfh-mobile .kfh-chevron{flex:0 0 auto!important;margin-left:auto!important;font-size:23px!important;line-height:1!important}
 .kfh-mobile .kfh-mobile-all{display:flex!important;align-items:center!important;justify-content:space-between!important;min-height:48px!important;margin:14px 16px 8px!important;padding:12px 14px!important;background:#faf7f3!important;border:0!important;border-radius:11px!important;color:#8b603d!important;text-decoration:none!important;font-size:13px!important;font-weight:800!important}
}

/* v1.2.1: compact guest sign-in button only; preserve all other header styles. */
@media(max-width:1020px){
 body:not(.logged-in) .kfh-shell .kfh-account{flex:0 0 auto!important;max-width:130px!important;min-width:0!important;}
 body:not(.logged-in) .kfh-shell .kfh-account a,
 body:not(.logged-in) .kfh-shell .kfh-account button{display:inline-flex!important;align-items:center!important;justify-content:center!important;max-width:130px!important;width:auto!important;min-width:0!important;min-height:0!important;height:auto!important;padding:8px 10px!important;margin:0!important;border-radius:12px!important;font-size:11px!important;line-height:1.25!important;text-align:center!important;white-space:normal!important;box-shadow:none!important;}
 body:not(.logged-in) .kfh-shell .kfh-inner{gap:8px!important;}
}
@media(max-width:480px){body:not(.logged-in) .kfh-shell .kfh-account{max-width:118px!important;}body:not(.logged-in) .kfh-shell .kfh-account a,body:not(.logged-in) .kfh-shell .kfh-account button{max-width:118px!important;padding:7px 8px!important;font-size:10px!important;}}

/* v1.2.2: guest button has a short mobile label; target actual auth shortcode markup. */
.kfh-guest-mobile{display:none!important}
@media(max-width:1020px){
 body:not(.logged-in) .kfh-shell .kfh-account,body:not(.logged-in) .kfh-shell .kf-avatar-guest{width:auto!important;min-width:0!important;max-width:none!important;flex:0 0 auto!important}
 body:not(.logged-in) .kfh-shell .kf-avatar-guest>a.kf-avatar-login{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:auto!important;max-width:none!important;min-width:0!important;min-height:0!important;height:34px!important;padding:0 11px!important;margin:0!important;border-radius:11px!important;font-size:12px!important;line-height:1!important;white-space:nowrap!important;letter-spacing:0!important;box-shadow:none!important}
 body:not(.logged-in) .kfh-shell .kfh-guest-desktop{display:none!important}
 body:not(.logged-in) .kfh-shell .kfh-guest-mobile{display:inline!important;font-size:12px!important;line-height:1!important}
}
@media(max-width:480px){body .kfh-shell .kfh-inner{padding-left:12px!important;padding-right:12px!important;gap:8px!important}}

/* v1.2.3: fluid compact desktop and early mobile switch, without altering drawer behavior */
@media (min-width:1021px){
 body .kfh-shell .kfh-inner{width:100%;max-width:1440px;gap:clamp(6px,.8vw,12px);padding:10px clamp(10px,1.2vw,18px);min-width:0;min-height:72px}
 body .kfh-shell .kfh-logo{min-width:0;max-width:clamp(112px,12vw,155px)}
 body .kfh-shell .kfh-logo img{max-width:100%;max-height:57px}
 body .kfh-shell .kfh-desktop{gap:clamp(2px,.35vw,5px);min-width:0;flex:1 1 auto}
 body .kfh-shell .kfh-navlink{font-size:clamp(10px,.83vw,12px);padding:9px clamp(4px,.55vw,8px);gap:4px;border-radius:10px;line-height:1.2}
 body .kfh-shell .kfh-navlink .kfh-emoji{font-size:clamp(14px,1.15vw,17px)}
 body .kfh-shell .kfh-navlink .kfh-icon-img{width:17px;height:17px}
 body .kfh-shell .kfh-right{gap:clamp(4px,.6vw,8px);min-width:0;flex:0 0 auto}
 body .kfh-shell .kfh-search{min-width:0;width:clamp(110px,12vw,160px);height:36px;padding-left:10px}
 body .kfh-shell .kfh-account{flex:0 0 auto;min-width:0}
 body:not(.logged-in) .kfh-shell .kf-avatar-guest>a.kf-avatar-login{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:auto!important;min-width:0!important;max-width:155px!important;min-height:0!important;height:36px!important;padding:0 10px!important;margin:0!important;border-radius:13px!important;font-size:11px!important;line-height:1.15!important;white-space:nowrap!important;box-shadow:none!important}
 body:not(.logged-in) .kfh-shell .kfh-guest-desktop{font-size:11px!important;white-space:nowrap!important}
}
/* The mobile layout begins before the six category links become cramped. */
@media (min-width:1021px) and (max-width:1220px){
 body .kfh-shell .kfh-desktop{display:none!important}
 body .kfh-shell .kfh-toggle{display:flex!important;flex-direction:column;gap:5px;justify-content:center;width:40px;height:40px;padding:10px;border:1px solid #e5edf0;background:#fff;border-radius:11px;cursor:pointer;flex:0 0 40px}
 body .kfh-shell .kfh-toggle span{height:2px;width:100%;background:#15354a;border-radius:3px}
 body .kfh-shell .kfh-inner{justify-content:space-between}
 body .kfh-shell .kfh-logo{margin-right:auto}
 body .kfh-shell .kfh-search{display:none!important}
 body .kfh-shell .kfh-mobile:not([hidden]){display:block!important}
}
@media (max-width:1020px){
 body .kfh-shell .kfh-inner{width:100%;min-width:0;gap:8px!important}
 body .kfh-shell .kfh-logo{min-width:0;flex:0 1 auto}
 body .kfh-shell .kfh-right{flex:0 0 auto;min-width:0}
}
@media (max-width:390px){
 body .kfh-shell .kfh-inner{padding-left:8px!important;padding-right:8px!important;gap:6px!important}
 body .kfh-shell .kfh-logo img{max-width:115px!important;max-height:48px!important}
 body .kfh-shell .kfh-toggle{width:36px;height:36px;flex:0 0 36px;padding:8px}
 body:not(.logged-in) .kfh-shell .kf-avatar-guest>a.kf-avatar-login{height:32px!important;padding:0 7px!important;font-size:11px!important}
}

/* Live search: scoped to the existing header only */
body .kfh-shell .kfh-live-search{position:relative;overflow:visible}
body .kfh-shell .kfh-live-results{position:absolute;top:calc(100% + 8px);right:0;width:min(390px,calc(100vw - 24px));max-height:min(420px,60dvh);overflow-y:auto;background:#fff;border:1px solid #e4ebef;border-radius:14px;box-shadow:0 15px 40px #142d452a;z-index:10020;padding:6px;text-align:left}
body .kfh-shell .kfh-live-results[hidden]{display:none!important}
body .kfh-shell .kfh-live-result{display:flex!important;align-items:center;gap:10px;padding:9px!important;color:#19344b!important;text-decoration:none!important;font-size:13px!important;font-weight:650!important;line-height:1.35!important;border-radius:9px;white-space:normal!important}
body .kfh-shell .kfh-live-result:hover,body .kfh-shell .kfh-live-result:focus{background:#f0f8f8!important}
body .kfh-shell .kfh-live-result img{width:44px;height:44px;flex:0 0 44px;object-fit:cover;border-radius:7px}
body .kfh-shell .kfh-live-empty{padding:13px;color:#65788a;font-size:13px}
body .kfh-shell .kfh-live-all{display:block!important;width:100%!important;height:auto!important;padding:11px!important;margin:4px 0 0!important;border-radius:9px!important;background:#edf7f7!important;color:#087b80!important;text-align:center!important;font-size:12px!important;font-weight:750!important;line-height:1.4!important;box-shadow:none!important}
@media(max-width:1020px){body .kfh-shell .kfh-mobile-search .kfh-live-results{left:0;right:0;width:100%;max-height:50dvh}}
