/* KBM Theme Core rc.64 — Post-V8 production hardening */
:root{--kbm-t64-navy:#102f45;--kbm-t64-yellow:#ffca0a;--kbm-t64-border:#e2e8f0}
/* Never expose a blank submenu/toggle row. PHP sanitizes source; CSS is defensive. */
body.kbm-theme-core .kbm-theme-nav__item.has-children:has(.kbm-theme-submenu__grid:empty) .kbm-theme-nav__toggle,
body.kbm-theme-core .kbm-theme-nav__item.has-children:has(.kbm-theme-submenu__grid:empty) .kbm-theme-submenu{display:none!important}
body.kbm-theme-core .kbm-theme-nav__group-title:empty{display:none!important}
body.kbm-theme-core .kbm-theme-nav__item{min-width:0!important}

/* Local visual badge; keep official trustseal destination without fragile remote image. */
body.kbm-theme-core .kbm-theme-footer__enamad--local{display:grid!important;place-items:center!important;width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;padding:0!important;border:1px solid var(--kbm-t64-border)!important;border-radius:12px!important;background:#fff!important;color:#197447!important;overflow:hidden!important}
body.kbm-theme-core .kbm-theme-footer__enamad--local>span{display:grid!important;place-items:center!important;width:24px!important;height:24px!important}
body.kbm-theme-core .kbm-theme-footer__enamad--local svg{width:24px!important;height:24px!important;fill:none!important;stroke:currentColor!important}

/* Archive/footer rhythm: eliminate screenshot-audited dead space without changing data grids. */
body.kbm-theme-core :is(.post-type-archive-kbm_ad,.post-type-archive-kbm_machine_sale,.post-type-archive-kbm_driver,.post-type-archive-kbm_provider) .kbm-theme-main{padding-bottom:18px!important}
body.kbm-theme-core .kbm-theme-footer.kbm-theme-footer--compact{margin-top:14px!important}

/* Focused auth: balanced viewport instead of a narrow card sitting inside a visually empty desktop shell. */
body.kbm-theme-core.kbm-theme-focus-auth .kbm-theme-main,
body.kbm-theme-core.kbm-auth-recode-active .kbm-theme-main{width:100%!important;max-width:none!important;margin:0!important;padding:0!important;min-height:calc(100svh - var(--kbm-header-height,68px))!important}

@media(max-width:1320px){
 body.kbm-theme-core.kbm-theme-header-canonical .kbm-theme-nav__scroll{gap:4px!important;padding-block:8px 12px!important}
 body.kbm-theme-core.kbm-theme-header-canonical .kbm-theme-nav__group-title{margin:6px 4px 2px!important;padding:0 5px!important;font-size:10.5px!important;line-height:1.7!important;color:#718096!important}
 body.kbm-theme-core.kbm-theme-header-canonical .kbm-theme-nav__link{min-height:46px!important;padding:8px 10px!important}
 body.kbm-theme-core.kbm-theme-header-canonical .kbm-theme-nav__toggle{width:42px!important;min-width:42px!important;height:42px!important;border-radius:12px!important}
}
@media(max-width:640px){
 body.kbm-theme-core .kbm-theme-footer.kbm-theme-footer--compact{margin-top:10px!important}
}
