/* Shared handbook layout. The WordPress theme retains its own website header. */
#kbc-handbook-page{position:relative;clear:both;width:100%;max-width:none;margin:0;padding:0}
#kbc-hub.kbc-layout{--kbc-sticky-top:12px;position:relative;display:block;width:100%;max-width:none;margin:0}
#kbc-hub.kbc-layout .kbc-sidebar{grid-column:1;grid-row:1 / span 2;align-self:start;position:sticky;top:var(--kbc-sticky-top);z-index:10;max-height:calc(100vh - var(--kbc-sticky-top) - 12px);max-height:calc(100dvh - var(--kbc-sticky-top) - 12px);overflow-y:auto;overscroll-behavior:contain;border:0;border-right:1px solid var(--line);background:#f8f6fa;scrollbar-width:thin}
#kbc-hub.kbc-layout .kbc-sidebar .kbc-side-inner{padding:26px 18px 24px}
#kbc-hub.kbc-layout .kbc-sidebar .brand{gap:9px;align-items:center;font-size:1.12rem;white-space:normal;margin-bottom:25px}
#kbc-hub.kbc-layout .kbc-sidebar .kbc-handbook-title{font-size:1.5rem;line-height:1.25}
#kbc-hub.kbc-layout .kbc-sidebar .brand img{flex:0 0 38px;width:38px;height:44px}
#kbc-hub.kbc-layout .kbc-sidebar .brand small{font-size:.75rem;letter-spacing:.06em;line-height:1.5;margin-top:7px}
#kbc-hub.kbc-layout .kbc-sidebar nav{display:flex;flex-direction:column;align-items:stretch;gap:6px;width:100%;margin:0;padding:0}
#kbc-hub.kbc-layout .kbc-sidebar nav a{display:flex;align-items:center;gap:9px;min-height:44px;padding:10px 11px;border-radius:6px;font-size:.96rem;line-height:1.4;white-space:normal;text-align:left}
#kbc-hub.kbc-layout .kbc-sidebar nav a:hover,#kbc-hub.kbc-layout .kbc-sidebar nav a[aria-current=location]{background:#ede6f3;text-decoration:none}
#kbc-hub.kbc-layout .kbc-sidebar nav a[aria-current=location]{box-shadow:inset 3px 0 var(--purple)}
#kbc-hub.kbc-layout .kbc-sidebar nav .btn{justify-content:center;color:#fff;margin:8px 0 0}
#kbc-hub.kbc-layout .kbc-sidebar nav .btn:hover,#kbc-hub.kbc-layout .kbc-sidebar nav .btn[aria-current=location]{background:#321749;color:#fff}
#kbc-hub.kbc-layout .kbc-sidebar .kbc-chapter-links a{font-size:.88rem;font-weight:400;padding:9px 8px;align-items:flex-start}
#kbc-hub.kbc-layout .kbc-chapter-links a span{font-size:.77rem;line-height:1.8;font-weight:700;color:var(--gold);flex:0 0 20px}
#kbc-hub.kbc-layout .kbc-nav-label{font-size:.77rem;letter-spacing:.08em;text-transform:uppercase;color:var(--gold);font-weight:700;margin:27px 10px 10px}
#kbc-hub.kbc-layout .kbc-menu-toggle{min-height:44px;padding:9px 12px;border:1px solid var(--purple);background:#fff;color:var(--purple);font-size:.88rem;font-weight:700;line-height:1.4}
#kbc-hub.kbc-layout>#kbc-main{display:grid;grid-template-columns:236px minmax(0,1fr);align-items:start;min-width:0;width:100%;max-width:none;margin:0;padding:0}
#kbc-hub.kbc-layout .kbc-hero-shell{grid-column:2;grid-row:1;min-width:0}
#kbc-hub.kbc-layout .kbc-content-shell{grid-column:2;grid-row:2;min-width:0}
#kbc-hub.kbc-layout>.footer{min-width:0;margin:0}
#kbc-hub.kbc-layout .wrap{width:calc(100% - 64px);max-width:none;margin-inline:auto}
#kbc-hub.kbc-layout .hero{grid-template-columns:minmax(0,1.6fr) minmax(200px,.6fr);gap:28px}
#kbc-hub.kbc-layout .hero-art{margin-inline:0}
#kbc-hub.kbc-layout .hero-art img{max-width:300px}
#kbc-hub.kbc-layout .prose{max-width:880px}
#kbc-hub.kbc-layout [id]{scroll-margin-top:calc(var(--kbc-sticky-top) + 16px)}
#kbc-hub.kbc-layout .skip{grid-column:1;z-index:50}
#kbc-hub.kbc-layout>.skip:not(:focus){clip-path:inset(50%);width:1px;height:1px;overflow:hidden;white-space:nowrap;left:0;top:0;padding:0}
@media(min-width:1041px) and (max-width:1450px){
  #kbc-hub.kbc-layout>#kbc-main{grid-template-columns:216px minmax(0,1fr)}
  #kbc-hub.kbc-layout .wrap{width:calc(100% - 44px)}
  #kbc-hub.kbc-layout .topic-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  #kbc-hub.kbc-layout .plan-layout{grid-template-columns:1fr}
  #kbc-hub.kbc-layout .section-head{align-items:flex-start;flex-direction:column;gap:12px}
  #kbc-hub.kbc-layout .hero{grid-template-columns:minmax(0,1fr) 190px;gap:20px}
  #kbc-hub.kbc-layout h1{font-size:clamp(2.5rem,3.8vw,3.75rem)}
  #kbc-hub.kbc-layout .model-shell{grid-template-columns:1fr}
}
@media(max-width:1040px){
  #kbc-hub.kbc-layout>#kbc-main{display:block}
  #kbc-hub.kbc-layout .kbc-sidebar{position:relative;top:auto;max-height:none;overflow:visible;border-right:0;border-bottom:1px solid var(--line)}
  #kbc-hub.kbc-layout .kbc-sidebar .kbc-side-inner{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:14px;padding:15px 22px}
  #kbc-hub.kbc-layout .kbc-sidebar .brand{margin:0;max-width:300px}
  #kbc-hub.kbc-layout #kbc-handbook-links{grid-column:1 / -1}
  #kbc-hub.kbc-layout .kbc-sidebar .kbc-primary-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  #kbc-hub.kbc-layout .kbc-sidebar .kbc-chapter-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  #kbc-hub.kbc-layout .kbc-sidebar nav .btn{margin:0}
  #kbc-hub.kbc-layout .plan-layout{grid-template-columns:1fr}
  #kbc-hub.kbc-layout .wrap{width:calc(100% - 44px)}
}
@media(max-width:760px){
  #kbc-hub.kbc-layout .wrap{width:calc(100% - 32px)}
  #kbc-hub.kbc-layout .hero{grid-template-columns:1fr;gap:12px}
  #kbc-hub.kbc-layout .hero-art img{max-width:225px}
  #kbc-hub.kbc-layout .kbc-sidebar .kbc-side-inner{padding:12px 16px}
  #kbc-hub.kbc-layout .kbc-sidebar .brand{font-size:1rem}
  #kbc-hub.kbc-layout .kbc-sidebar .kbc-handbook-title{font-size:1.2rem}
  #kbc-hub.kbc-layout .kbc-sidebar .brand small{font-size:.75rem}
  #kbc-hub.kbc-layout .kbc-sidebar .brand img{width:31px;flex-basis:31px;height:38px}
  #kbc-hub.kbc-layout .kbc-menu-toggle{max-width:110px;font-size:.84rem}
}
@media(max-width:420px){#kbc-hub.kbc-layout .kbc-sidebar .kbc-primary-links,#kbc-hub.kbc-layout .kbc-sidebar .kbc-chapter-links{grid-template-columns:1fr}}
@media print{
  #kbc-handbook-page{width:100%!important;left:0!important;margin:0!important}
  #kbc-hub.kbc-layout>#kbc-main{display:block}
  #kbc-hub.kbc-layout .kbc-sidebar{display:none!important}
  #kbc-hub.kbc-layout .wrap{width:100%}
  #kbc-hub.kbc-layout .prose{max-width:none}
}
