/* KBM U13a — canonical Theme V13 navigation + active Home Project Desk visual details.
 * Deliberately page-scoped. Core owns dashboard data; Theme owns header and homepage styling.
 */

/* Mobile drawer P0: all five regions participate in a bounded, scroll-safe column.
   Never create a second mobile menu or move a menu item via JavaScript. */
@media(max-width:1024px){
  body:not(.kbm-b1-global-shell).kbm-theme-core.kbm-theme-header-canonical.kbm-theme-compact-header-mode.kbm-theme-menu-open .kbm-theme-nav--v13{
    position:fixed!important;display:flex!important;flex-direction:column!important;
    inset-block:0!important;inset-inline-start:0!important;inset-inline-end:auto!important;
    width:min(430px,calc(100vw - 12px))!important;max-width:100vw!important;
    height:100dvh!important;max-height:100dvh!important;min-height:0!important;
    margin:0!important;padding:0!important;overflow:hidden!important;
    border:1px solid rgba(12,48,73,.22)!important;
    border-radius:0 0 0 20px!important;
    background:#fff!important;color:#133349!important;
    box-shadow:0 18px 50px rgba(0,16,30,.28)!important;
    isolation:isolate;
  }
  body:not(.kbm-b1-global-shell).kbm-theme-core.kbm-theme-header-canonical.kbm-theme-compact-header-mode .kbm-theme-nav--v13>.kbm-theme-nav__mobile-head{
    display:flex!important;flex:0 0 auto!important;min-height:72px!important;
    margin:0!important;padding:12px 16px!important;
    background:#0b2d43!important;color:#fff!important;border-bottom:1px solid rgba(255,255,255,.18)!important;
    overflow:visible!important;position:relative!important;z-index:1!important;
  }
  body:not(.kbm-b1-global-shell).kbm-theme-core.kbm-theme-header-canonical.kbm-theme-compact-header-mode .kbm-theme-nav--v13 .kbm-theme-nav__mobile-title :is(strong,small){
    color:#fff!important;-webkit-text-fill-color:#fff!important;text-shadow:none!important;
    opacity:1!important;white-space:normal!important;overflow-wrap:break-word!important;
  }
  body:not(.kbm-b1-global-shell).kbm-theme-core.kbm-theme-header-canonical.kbm-theme-compact-header-mode .kbm-theme-nav--v13 .kbm-theme-nav__mobile-title strong{font-size:17px!important;line-height:1.5!important}
  body:not(.kbm-b1-global-shell).kbm-theme-core.kbm-theme-header-canonical.kbm-theme-compact-header-mode .kbm-theme-nav--v13 .kbm-theme-nav__mobile-title small{font-size:12px!important;line-height:1.6!important;color:#dce9ef!important;-webkit-text-fill-color:#dce9ef!important}
  body:not(.kbm-b1-global-shell).kbm-theme-core.kbm-theme-header-canonical.kbm-theme-compact-header-mode .kbm-theme-nav--v13>.kbm-theme-nav__account-card{
    flex:0 0 auto!important;min-width:0!important;max-width:calc(100% - 24px)!important;
    margin:10px 12px 0!important;border-radius:14px!important;background:#f3f7fa!important;
    border-color:#d7e3eb!important;
  }
  body:not(.kbm-b1-global-shell).kbm-theme-core.kbm-theme-header-canonical.kbm-theme-compact-header-mode .kbm-theme-nav--v13 .kbm-theme-nav__account-link{
    min-height:60px!important;padding:9px 13px!important;color:#14354a!important;
  }
  body:not(.kbm-b1-global-shell).kbm-theme-core.kbm-theme-header-canonical.kbm-theme-compact-header-mode .kbm-theme-nav--v13 .kbm-theme-nav__account-copy :is(strong,small){
    color:#14354a!important;-webkit-text-fill-color:#14354a!important;text-shadow:none!important;
  }
  body:not(.kbm-b1-global-shell).kbm-theme-core.kbm-theme-header-canonical.kbm-theme-compact-header-mode .kbm-theme-nav--v13>.kbm-theme-nav__drawer-search{
    flex:0 0 auto!important;min-width:0!important;max-width:100%!important;
    margin:0!important;padding:10px 12px 11px!important;background:#fff!important;
    border-bottom:1px solid #e7edf2!important;overflow:visible!important;
  }
  body:not(.kbm-b1-global-shell).kbm-theme-core.kbm-theme-header-canonical.kbm-theme-compact-header-mode .kbm-theme-nav--v13 .kbm-theme-smart-search--drawer{
    display:grid!important;grid-template-columns:minmax(0,1fr) 46px!important;
    gap:6px!important;width:100%!important;min-width:0!important;
  }
  body:not(.kbm-b1-global-shell).kbm-theme-core.kbm-theme-header-canonical.kbm-theme-compact-header-mode .kbm-theme-nav--v13 .kbm-theme-smart-search--drawer :is(select,input){
    min-width:0!important;max-width:100%!important;height:46px!important;min-height:46px!important;
    border-radius:11px!important;background:#fff!important;color:#18384d!important;
    -webkit-text-fill-color:#18384d!important;font-size:14px!important;
  }
  body:not(.kbm-b1-global-shell).kbm-theme-core.kbm-theme-header-canonical.kbm-theme-compact-header-mode .kbm-theme-nav--v13>.kbm-theme-nav__scroll{
    flex:1 1 auto!important;display:block!important;min-height:0!important;
    width:100%!important;max-height:none!important;max-width:100%!important;
    margin:0!important;padding:10px 12px 16px!important;
    overflow-y:auto!important;overflow-x:hidden!important;
    overscroll-behavior:contain!important;scrollbar-width:thin!important;
    scrollbar-color:#a9becb #f2f5f7!important;background:#fff!important;
    -webkit-overflow-scrolling:touch!important;
  }
  body:not(.kbm-b1-global-shell).kbm-theme-core.kbm-theme-header-canonical.kbm-theme-compact-header-mode .kbm-theme-nav--v13 .kbm-theme-nav__group-title{
    padding:11px 9px 5px!important;margin:5px 0 1px!important;
    color:#577184!important;-webkit-text-fill-color:#577184!important;
    border-top:1px solid #e9eef2!important;font-size:12px!important;
  }
  body:not(.kbm-b1-global-shell).kbm-theme-core.kbm-theme-header-canonical.kbm-theme-compact-header-mode .kbm-theme-nav--v13 .kbm-theme-nav__item{
    display:flex!important;flex-wrap:wrap!important;align-items:center!important;
    width:100%!important;min-width:0!important;max-width:100%!important;
    margin:0 0 4px!important;min-height:48px!important;
    border-radius:12px!important;border:1px solid transparent!important;background:#fff!important;
  }
  body:not(.kbm-b1-global-shell).kbm-theme-core.kbm-theme-header-canonical.kbm-theme-compact-header-mode .kbm-theme-nav--v13 .kbm-theme-nav__link{
    display:flex!important;align-items:center!important;flex:1 1 auto!important;min-width:0!important;
    min-height:48px!important;width:auto!important;max-width:100%!important;
    gap:10px!important;padding:9px 10px!important;font-size:15px!important;
    line-height:1.6!important;font-weight:750!important;color:#183a51!important;
    -webkit-text-fill-color:#183a51!important;opacity:1!important;text-shadow:none!important;
    white-space:normal!important;word-break:normal!important;overflow-wrap:break-word!important;
  }
  body:not(.kbm-b1-global-shell).kbm-theme-core.kbm-theme-header-canonical.kbm-theme-compact-header-mode .kbm-theme-nav--v13 .kbm-theme-nav__item.is-active{
    background:#0d3349!important;border-color:#0d3349!important;
  }
  body:not(.kbm-b1-global-shell).kbm-theme-core.kbm-theme-header-canonical.kbm-theme-compact-header-mode .kbm-theme-nav--v13 .kbm-theme-nav__item.is-active>.kbm-theme-nav__link{
    color:#fff!important;-webkit-text-fill-color:#fff!important;
  }
  body:not(.kbm-b1-global-shell).kbm-theme-core.kbm-theme-header-canonical.kbm-theme-compact-header-mode .kbm-theme-nav--v13 .kbm-theme-nav__icon{
    display:inline-grid!important;place-items:center!important;flex:0 0 34px!important;
    width:34px!important;height:34px!important;min-width:34px!important;
    background:#f1f5f7!important;border-radius:10px!important;color:#14364f!important;
  }
  body:not(.kbm-b1-global-shell).kbm-theme-core.kbm-theme-header-canonical.kbm-theme-compact-header-mode .kbm-theme-nav--v13 .kbm-theme-nav__toggle{
    flex:0 0 42px!important;width:42px!important;min-width:42px!important;min-height:48px!important;
    color:#14364f!important;-webkit-text-fill-color:#14364f!important;
  }
  body:not(.kbm-b1-global-shell).kbm-theme-core.kbm-theme-header-canonical.kbm-theme-compact-header-mode .kbm-theme-nav--v13 .kbm-theme-nav__item.is-active>.kbm-theme-nav__toggle{color:#fff!important;-webkit-text-fill-color:#fff!important}
  body:not(.kbm-b1-global-shell).kbm-theme-core.kbm-theme-header-canonical.kbm-theme-compact-header-mode .kbm-theme-nav--v13 .kbm-theme-submenu{
    position:static!important;max-width:100%!important;width:100%!important;
    margin:0 8px 8px!important;padding:8px!important;background:#eef4f8!important;
    box-shadow:none!important;border-radius:10px!important;
  }
  body:not(.kbm-b1-global-shell).kbm-theme-core.kbm-theme-header-canonical.kbm-theme-compact-header-mode .kbm-theme-nav--v13>.kbm-theme-nav__mobile-actions{
    display:grid!important;flex:0 0 auto!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;margin:0!important;padding:10px 12px max(10px,env(safe-area-inset-bottom))!important;
    background:#fff!important;border-top:1px solid #dce6ed!important;
    position:relative!important;bottom:auto!important;z-index:2!important;
  }
  body:not(.kbm-b1-global-shell).kbm-theme-core.kbm-theme-header-canonical.kbm-theme-compact-header-mode .kbm-theme-nav--v13>.kbm-theme-nav__mobile-actions :is(a,button){
    min-height:46px!important;min-width:0!important;max-width:100%!important;
    border-radius:11px!important;font-size:13px!important;line-height:1.4!important;
    white-space:normal!important;overflow-wrap:break-word!important;
  }
}
@media(max-width:390px){
  body:not(.kbm-b1-global-shell).kbm-theme-core.kbm-theme-header-canonical.kbm-theme-compact-header-mode .kbm-theme-nav--v13>.kbm-theme-nav__mobile-head{min-height:66px!important;padding:8px 12px!important}
  body:not(.kbm-b1-global-shell).kbm-theme-core.kbm-theme-header-canonical.kbm-theme-compact-header-mode .kbm-theme-nav--v13>.kbm-theme-nav__drawer-search{padding:8px 10px!important}
  body:not(.kbm-b1-global-shell).kbm-theme-core.kbm-theme-header-canonical.kbm-theme-compact-header-mode .kbm-theme-nav--v13 .kbm-theme-nav__link{font-size:14px!important}
}
/* Desktop: readable, touch-friendly navigation without over-expanding the single bar. */
@media(min-width:1025px){
  body:not(.kbm-b1-global-shell).kbm-theme-core.kbm-theme-header-canonical .kbm-theme-nav--v13 .kbm-theme-nav__link{
    font-size:clamp(12px,.95vw,14px)!important;line-height:1.6!important;
    min-height:46px!important;padding-inline:clamp(7px,1vw,14px)!important;
    white-space:nowrap!important;
  }
}

/* Canonical Home Project Desk — visual and calculator only; no quote data fabricated. */
body.kbm-gdb01-home #kbm-gdb-home{--kbm-u13-navy:var(--kbm-color-accent,#071a33);--kbm-u13-gold:var(--kbm-color-brand,#ffcc00);--kbm-u13-muted:#536d7f}
body.kbm-gdb01-home #kbm-gdb-home .search-desk.kbm-kasbi-hero{
  border-radius:24px!important;border:1px solid #1d526b!important;
  box-shadow:0 18px 40px rgba(9,45,67,.16)!important;background:var(--kbm-u13-navy)!important;
}
body.kbm-gdb01-home #kbm-gdb-home .kbm-kasbi-hero-visual img{
  object-fit:cover!important;object-position:center!important;filter:saturate(1.06) contrast(1.04)!important;
}
body.kbm-gdb01-home #kbm-gdb-home .kbm-kasbi-hero-visual-caption{background:rgba(8,29,45,.8)!important;border-color:rgba(255,219,114,.35)!important}
body.kbm-gdb01-home #kbm-gdb-home .kbm-kasbi-hero-copy h1{
  font-size:clamp(28px,2.6vw,42px)!important;line-height:1.46!important;letter-spacing:0!important;
  margin-block:12px!important;color:#fff!important;-webkit-text-fill-color:#fff!important;
}
body.kbm-gdb01-home #kbm-gdb-home .kbm-kasbi-hero-copy .hero-summary{
  font-size:clamp(13px,1.08vw,15px)!important;line-height:1.85!important;color:#e6f1f6!important;
}
body.kbm-gdb01-home #kbm-gdb-home .kbm-kasbi-hero-ctas a{
  min-height:46px!important;padding:9px 15px!important;font-size:13px!important;
  line-height:1.6!important;border-radius:13px!important;
}
body.kbm-gdb01-home #kbm-gdb-home .search-form{border-radius:14px!important;min-height:54px!important;box-shadow:0 8px 20px rgba(0,16,28,.15)!important}
body.kbm-gdb01-home #kbm-gdb-home .search-form input{font-size:14px!important;min-height:44px!important}
body.kbm-gdb01-home #kbm-gdb-home .search-scope button{font-size:13px!important;min-height:var(--kbm-control-min,44px)!important;border-radius:10px!important}
body.kbm-gdb01-home #kbm-gdb-home .category{border-radius:16px!important}
body.kbm-gdb01-home #kbm-gdb-home .category h3{font-size:clamp(12px,1.05vw,15px)!important;line-height:1.6!important}
body.kbm-gdb01-home #kbm-gdb-home .listing{border-radius:16px!important;box-shadow:0 8px 23px rgba(8,42,63,.075)!important}
body.kbm-gdb01-home #kbm-gdb-home .listing h3{font-size:clamp(13px,1.03vw,15px)!important}
body.kbm-gdb01-home #kbm-gdb-home .listing-price strong{font-size:clamp(13px,1.05vw,16px)!important}

/* Live rental estimator (Core AJAX service retained): full-width expanding details,
   readable fields, stable result panel, and explicit pending/error UI. */
body.kbm-gdb01-home #kbm-gdb-home .estimate-panel,
body.kbm-gdb01-home #kbm-gdb-home .drivers-panel{
  border-radius:21px!important;border-color:#dce8ee!important;
  box-shadow:0 8px 25px rgba(8,40,60,.065)!important;
}
body.kbm-gdb01-home #kbm-gdb-home .estimate-panel{
  display:grid!important;grid-template-columns:52px minmax(0,1fr) auto!important;
  align-items:center!important;gap:12px!important;padding:19px!important;
}
body.kbm-gdb01-home #kbm-gdb-home .estimate-panel>.tool-icon{
  width:50px!important;height:50px!important;display:grid!important;place-items:center!important;
  border-radius:15px!important;background:#fff2c6!important;color:#6f5206!important;
}
body.kbm-gdb01-home #kbm-gdb-home .estimate-panel h2{font-size:clamp(17px,1.4vw,20px)!important;line-height:1.55!important}
body.kbm-gdb01-home #kbm-gdb-home .estimate-panel>div:nth-child(2)>p{font-size:13px!important;line-height:1.8!important}
body.kbm-gdb01-home #kbm-gdb-home .estimate-panel>.estimate-disclosure{grid-column:3!important;grid-row:1!important;max-width:none!important;width:auto!important;margin:0!important;min-width:0!important}
body.kbm-gdb01-home #kbm-gdb-home .estimate-panel>.estimate-disclosure>summary{
  box-sizing:border-box!important;max-inline-size:100%!important;
  min-height:46px!important;display:inline-flex!important;align-items:center!important;gap:9px!important;
  border-radius:13px!important;background:#123a51!important;color:#fff!important;
  padding:10px 17px!important;font-size:13px!important;font-weight:850!important;
  white-space:nowrap!important;
}
body.kbm-gdb01-home #kbm-gdb-home .estimate-panel>.estimate-disclosure[open]{grid-column:1/-1!important;grid-row:2!important;width:100%!important;margin-top:8px!important}
body.kbm-gdb01-home #kbm-gdb-home .estimate-panel>.estimate-disclosure[open]>summary{margin-bottom:8px!important}
body.kbm-gdb01-home #kbm-gdb-home .kbm-ahc-calc{
  box-sizing:border-box!important;width:100%!important;max-width:100%!important;min-width:0!important;
  border:1px solid #d8e5ed!important;border-radius:17px!important;background:#f7fafc!important;
  padding:clamp(12px,2.3vw,22px)!important;margin:0!important;
}
body.kbm-gdb01-home #kbm-gdb-home .kbm-ahc-calc form{
  display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:13px!important;
}
body.kbm-gdb01-home #kbm-gdb-home .kbm-ahc-calc label{
  display:flex!important;flex-direction:column!important;min-width:0!important;
  gap:7px!important;font-size:13px!important;font-weight:700!important;
  color:#2d4b60!important;
}
body.kbm-gdb01-home #kbm-gdb-home .kbm-ahc-calc :is(input:not([type="checkbox"]),select){
  box-sizing:border-box!important;min-height:48px!important;height:48px!important;width:100%!important;min-width:0!important;
  padding:10px 12px!important;border:1px solid #c6d8e2!important;border-radius:11px!important;
  font-size:15px!important;line-height:1.5!important;background:#fff!important;color:#13354c!important;
}
body.kbm-gdb01-home #kbm-gdb-home .kbm-ahc-calc .kbm-ahc-calc__check{
  display:flex!important;flex-direction:row!important;align-items:center!important;gap:8px!important;
  min-height:48px!important;
}
body.kbm-gdb01-home #kbm-gdb-home .kbm-ahc-calc .kbm-ahc-calc__check input{width:20px!important;height:20px!important;min-height:20px!important;flex:0 0 20px!important}
body.kbm-gdb01-home #kbm-gdb-home .kbm-ahc-calc button[type="submit"]{
  align-self:end!important;min-height:48px!important;height:auto!important;
  border-radius:11px!important;background:#ffd036!important;color:#153149!important;
  font-size:14px!important;font-weight:850!important;padding:10px 14px!important;
}
body.kbm-gdb01-home #kbm-gdb-home .kbm-ahc-calc__result:not(:empty){
  margin-top:14px!important;padding:15px!important;border-radius:13px!important;
  border:1px solid #d4e4ee!important;background:#fff!important;
  color:#163d55!important;font-size:13px!important;line-height:1.85!important;
}
body.kbm-gdb01-home #kbm-gdb-home .kbm-ahc-calc__result.is-loading{background:#f0f5f8!important;color:#325568!important}
body.kbm-gdb01-home #kbm-gdb-home .kbm-ahc-calc__result.is-error{background:#fff1ed!important;color:#833b25!important;border-color:#e8baa9!important}
body.kbm-gdb01-home #kbm-gdb-home .kbm-ahc-calc__result .kbm-ahc-calc__price{display:block!important;font-size:clamp(17px,2vw,23px)!important;font-weight:850!important}
body.kbm-gdb01-home #kbm-gdb-home .kbm-ahc-calc__result .kbm-ahc-calc__range{display:block!important;margin-top:7px!important;font-size:14px!important}
@media(max-width:1024px){
  body.kbm-gdb01-home #kbm-gdb-home .estimate-panel{grid-template-columns:45px minmax(0,1fr)!important;gap:10px!important}
  body.kbm-gdb01-home #kbm-gdb-home .estimate-panel>.estimate-disclosure{grid-column:1/-1!important;grid-row:2!important;justify-self:stretch!important;width:100%!important}
  body.kbm-gdb01-home #kbm-gdb-home .estimate-panel>.estimate-disclosure>summary{width:100%!important;justify-content:center!important}
  body.kbm-gdb01-home #kbm-gdb-home .estimate-panel>.estimate-disclosure[open]{grid-row:2!important}
}
@media(max-width:700px){
  body.kbm-gdb01-home #kbm-gdb-home .search-desk.kbm-kasbi-hero{border-radius:18px!important}
  body.kbm-gdb01-home #kbm-gdb-home .kbm-kasbi-hero-copy h1{font-size:clamp(25px,6vw,32px)!important}
  body.kbm-gdb01-home #kbm-gdb-home .kbm-kasbi-hero-visual{min-height:205px!important;height:205px!important}
  body.kbm-gdb01-home #kbm-gdb-home .search-scope{overflow-x:auto!important;scrollbar-width:none!important;justify-content:flex-start!important;gap:6px!important}
  body.kbm-gdb01-home #kbm-gdb-home .search-scope button{min-height:var(--kbm-touch-target,48px)!important;font-size:12px!important;flex:0 0 auto!important;white-space:nowrap!important}
  body.kbm-gdb01-home #kbm-gdb-home .search-form input{font-size:16px!important;min-height:44px!important}
  body.kbm-gdb01-home #kbm-gdb-home .estimate-panel{padding:15px!important}
  body.kbm-gdb01-home #kbm-gdb-home .kbm-ahc-calc form{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.kbm-gdb01-home #kbm-gdb-home .estimate-panel>.estimate-disclosure{margin:0!important;max-width:100%!important}
}
@media(max-width:440px){
  body.kbm-gdb01-home #kbm-gdb-home .kbm-ahc-calc form{grid-template-columns:minmax(0,1fr)!important}
  body.kbm-gdb01-home #kbm-gdb-home .kbm-kasbi-hero-ctas{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}
  body.kbm-gdb01-home #kbm-gdb-home .kbm-kasbi-hero-ctas a{font-size:12px!important;padding-inline:8px!important}
}
@media(prefers-reduced-motion:reduce){
  body.kbm-gdb01-home #kbm-gdb-home .kbm-kasbi-hero-picture img{transition:none!important;transform:none!important}
}
