/* KB Business Portal 21.6.309 — scoped mobile accessibility and compactness. */
@media(max-width:760px){
  .kbbp-app{--kbbp-mobile-dock-space:calc(90px + env(safe-area-inset-bottom,0px));}
  .kbbp-app .kbbp-main{padding-bottom:calc(108px + env(safe-area-inset-bottom,0px))!important;min-width:0;}
  .kbbp-app .kbbp-mobile-dock{box-sizing:border-box;bottom:calc(7px + env(safe-area-inset-bottom,0px));min-height:65px;max-height:84px;padding:5px 5px;z-index:9990;}
  .kbbp-app .kbbp-mobile-dock .kbbp-dock-link{min-height:55px;line-height:1.2;}
  .kbbp-app .kbbp-dock-more-panel{max-height:min(58dvh,460px)!important;overflow-y:auto!important;overscroll-behavior:contain;scrollbar-width:thin;width:min(335px,calc(100vw - 26px));right:0;gap:7px;grid-template-columns:repeat(2,minmax(0,1fr));padding:13px 12px 16px;}
  .kbbp-app .kbbp-dock-more-title{grid-column:1/-1;min-width:0;color:#41546c!important;font-size:13px;font-weight:800;margin:8px 0 0;}
  .kbbp-app .kbbp-dock-more-panel a{display:flex;align-items:center;overflow-wrap:anywhere;min-width:0;min-height:44px;color:#153451!important;background:#edf3fa!important;font-size:13px;line-height:1.25;}
  .kbbp-app .kbbp-dock-more-panel a[aria-current=page]{background:#f0dfb9!important;color:#132d43!important;}
  .kbbp-app .kbbp-topbar{min-height:0!important;}
  .kbbp-app .kbbp-hero{padding:16px!important;}
  .kbbp-app .kbbp-hero h2{font-size:clamp(21px,5.5vw,27px)!important;line-height:1.2!important;}
  .kbbp-app .kbbp-focus-grid{gap:9px!important;}
  .kbbp-app .kbbp-focus-card{padding:12px!important;min-height:0!important;}
  /* Ensure dark cards cannot inherit unreadable near-black content. */
  .kbbp-app :is(.kbbp-focus-card,.kbbp-dark-card,.kbbp-dossier-card,.kbbp-card-dark)[style*="background"] :is(h2,h3,h4,strong){color:inherit;}
  .kbbp-app .kbbp-dock-more-panel :is(a,summary):focus-visible,.kbbp-app .kbbp-mobile-dock :is(a,summary):focus-visible{outline:3px solid #f0c675;outline-offset:2px;}
  .kbbp-app .kbbp-mobile-dock+*{scroll-margin-bottom:110px;}
}
@media(max-width:410px){
 .kbbp-app .kbbp-dock-more-panel{grid-template-columns:repeat(2,minmax(0,1fr));}
 .kbbp-app .kbbp-hero-actions{gap:7px!important;}
 .kbbp-app .kbbp-hero-actions .kbbp-btn{font-size:12px!important;}
}
@media(prefers-reduced-motion:reduce){.kbbp-app .kbbp-mobile-dock *{scroll-behavior:auto!important;transition:none!important;}}
