/* KBIBLE UI update: bright sage + ivory light palette, compact nav, visible login, smaller Shalomi */
html[data-mode="light"],html[data-color-mode="light"],html[data-bible-color-mode="light"] {
  --bg:#f5f7ed!important;
  --bg-raised:#eef4e8!important;
  --surface:#fffdf6!important;
  --surface-up:#ffffff!important;
  --text:#20372c!important;
  --muted:#4c6256!important;
  --border:#c7d9c7!important;
  --shadow-color:133 20% 49%!important;
  color-scheme:light;
}
html[data-mode="light"] body.kb-home-page,
html[data-mode="light"] body {background-color:#f5f7ed;color:#20372c}
html[data-mode="light"] body.kb-home-page .header,
html[data-mode="light"] body.kb-home-page .header-inner {background-color:rgba(254,253,246,.94);color:#20372c}
html[data-mode="light"] body.kb-home-page .hero {background:transparent!important}
html[data-mode="light"] body.kb-home-page .hero-title,
html[data-mode="light"] body.kb-home-page .hero-title * {
 color:#20372c!important;-webkit-text-fill-color:#20372c!important;
 text-shadow:none!important;filter:none!important;
}
html[data-mode="light"] body.kb-home-page .hero-desc,
html[data-mode="light"] body.kb-home-page .hero-eyebrow {color:#486153!important;opacity:1!important;text-shadow:none!important}
html[data-mode="light"] body.kb-home-page .svc-card,
html[data-mode="light"] body.kb-home-page .hero-membership-card,
html[data-mode="light"] body.kb-home-page .home-notice-item {background:#fffef9!important;border-color:#cddcca!important;box-shadow:0 9px 28px rgba(40,75,52,.08)}
html[data-mode="light"] body.kb-home-page .svc-title,
html[data-mode="light"] body.kb-home-page .home-notice-title {color:#20372c!important}
html[data-mode="light"] body.kb-home-page .svc-desc {color:#4a6254!important}
html[data-mode="light"] body.kb-home-page .header-nav a,
html[data-mode="light"] body.kb-home-page .kb-menu-label {color:#294c3c!important}
html[data-mode="light"] body.kb-home-page .kb-services-menu[open] .kb-menu-label {background:#e8f3e8}
html[data-mode="light"] body.kb-home-page .hdr-login {color:#214536!important;background:#f2faef!important;border-color:#a9c7b2!important}
/* Make the login LABEL visible again; the previous mobile i18n css clips it. */
body.kb-home-page .header .hdr-login {display:inline-flex!important;align-items:center;justify-content:center;gap:0!important;min-height:38px!important;min-width:58px!important;white-space:nowrap;font-weight:750!important;overflow:visible!important}
body.kb-home-page .header .hdr-login span:first-child {display:none!important}
body.kb-home-page .header .hdr-login span:last-child {position:static!important;width:auto!important;height:auto!important;max-width:none!important;margin:0!important;padding:0!important;overflow:visible!important;clip:auto!important;clip-path:none!important;white-space:nowrap!important;visibility:visible!important;font-size:13px!important;line-height:1.2!important;color:inherit!important}
body.kb-home-page .header .header-actions {gap:6px!important}
/* Desktop compact services dropdown */
.kb-services-menu {position:relative;display:inline-block;font-family:inherit;}
.kb-services-menu .kb-menu-label {list-style:none;display:inline-flex;align-items:center;gap:6px;justify-content:center;cursor:pointer;min-height:38px;padding:7px 11px;border-radius:11px;border:1px solid var(--border,#384e43);font-weight:760;font-size:.85rem;color:var(--text,#e4eadd);background:var(--surface,#15281f);white-space:nowrap}
.kb-services-menu summary::-webkit-details-marker{display:none}
.kb-services-menu[open] .kb-menu-label{border-color:var(--accent,#67b590)}
.kb-services-list{position:absolute;top:calc(100% + 8px);left:0;z-index:250;width:min(335px,86vw);max-height:min(72vh,640px);overflow:auto;display:grid;gap:5px;padding:11px;background:var(--surface,#14231d);box-shadow:0 18px 45px rgba(0,0,0,.24);border-radius:16px;border:1px solid var(--border,#44594e)}
.header-nav .kb-services-list a{white-space:normal!important;display:block;padding:10px 12px;border-radius:9px;font-size:.86rem!important;line-height:1.5;color:var(--text,#eef0ed)!important}
.header-nav.kb-nav-ready{gap:8px;flex-wrap:nowrap}
.header-nav.kb-nav-ready>a{font-size:.82rem!important;font-weight:750!important;white-space:nowrap;padding:8px!important}
.kb-global-links{display:flex;align-items:center;gap:10px;max-width:100%;overflow:visible;flex-wrap:wrap}
.kb-global-links>a,.kb-global-links .kb-services-list a{font-size:.85rem;font-weight:750;color:var(--text,#dce9db);text-decoration:none;padding:7px;display:block}
/* Mobile drawer keeps existing open/close, but folds services into one section. */
.kb-drawer-services{padding:7px 4px}
.kb-drawer-services>summary{cursor:pointer;list-style:none;padding:15px;border:1px solid var(--border,#4a4a4a);border-radius:14px;color:var(--text,#fff);font-weight:760;font-size:1.05rem}
.kb-drawer-services>summary::-webkit-details-marker{display:none}
.kb-drawer-services>div{display:grid;gap:5px;padding:10px 0}
.kb-drawer-primary{font-weight:780!important}
@media(max-width:760px){
 body.kb-home-page .header .header-inner{gap:6px!important}
 body.kb-home-page .header .header-actions{margin-left:0!important;gap:4px!important}
 body.kb-home-page .header .hdr-login{min-width:53px!important;padding:7px 6px!important;border-radius:9px!important}
 body.kb-home-page .header .hdr-register{display:none!important} /* Sign up moves into the mobile drawer. */
 body.kb-home-page .kb-ui-language.kb-ui-language--header{margin-left:auto!important;margin-right:0!important}
 body.kb-home-page .header .btn-menu{flex-shrink:0!important;min-width:36px!important;height:38px!important}
 .kb-services-menu{display:block}
 .kb-services-menu .kb-menu-label{width:100%;justify-content:space-between}
 .kb-services-list{position:static;width:100%;box-shadow:none;border:0;max-height:none;background:transparent}
}
@media(max-width:380px){
 body.kb-home-page .header .header-wordmark-top{font-size:.95rem!important;letter-spacing:0!important}
 body.kb-home-page .header .header-logo{width:28px!important;height:28px!important}
 body.kb-home-page .header .hdr-login{min-width:50px!important;padding:6px 4px!important}
 body.kb-home-page .header .hdr-login span:last-child{font-size:12px!important}
}
/* Shalomi overlay icon is smaller and doesn't cover CTAs/navigation. */
#kb-shalom-root .kb-shalom-launcher,
body .kb-shalom-launcher {width:62px!important;height:62px!important;min-width:62px!important;min-height:62px!important;max-width:62px!important;max-height:62px!important;right:12px!important;bottom:max(90px,calc(env(safe-area-inset-bottom,0px) + 78px))!important;border-radius:50%!important;}
#kb-shalom-root .kb-shalom-launcher img {width:55px!important;height:55px!important;max-width:55px!important;max-height:55px!important;object-fit:contain!important;}
#kb-shalom-root .kb-shalom-launcher__label{display:none!important}
#kb-shalom-root .kb-shalom-panel {max-width:min(95vw,460px)}
@media(max-width:640px){#kb-shalom-root .kb-shalom-launcher,body .kb-shalom-launcher {width:52px!important;height:52px!important;min-width:52px!important;min-height:52px!important;max-width:52px!important;max-height:52px!important;right:10px!important;bottom:calc(env(safe-area-inset-bottom,0px) + 86px)!important}#kb-shalom-root .kb-shalom-launcher img{width:46px!important;height:46px!important}}
