/* Shared compact header based on books.html logo dimensions. */
html:has(.qs-site-header){scroll-padding-top:100px!important}
body > .qs-site-header .qs-header-inner{display:flex!important;align-items:center!important;justify-content:space-between!important;width:min(1240px,calc(100% - 32px))!important;max-width:1240px!important;min-height:86px!important;margin:0 auto!important;padding:10px 0!important;gap:16px!important}
body > .qs-site-header .qs-brand{display:flex!important;align-items:center!important;flex:0 0 auto!important;width:clamp(155px,22vw,265px)!important;max-width:265px!important;min-width:0!important;margin:0!important}
body > .qs-site-header .qs-brand img{display:block!important;width:100%!important;max-width:265px!important;height:auto!important;max-height:70px!important;object-fit:contain!important;object-position:left center!important;filter:none!important}
body > .qs-site-header .qs-header-actions{flex:0 0 auto!important;margin:0!important}
.kc-mobile-slogan{display:none!important}
@media(min-width:1241px){body > .qs-site-header .qs-primary-nav{display:flex!important;flex-wrap:nowrap!important;gap:7px!important;margin:0!important}body > .qs-site-header .qs-primary-nav > a,body > .qs-site-header .qs-explore > summary{padding-inline:10px!important;font-size:13px!important}body > .qs-site-header .qs-explore-links{left:auto!important;right:0!important;max-height:65vh;overflow:auto}}
@media(max-width:1240px){body > .qs-site-header .qs-primary-nav:not(.is-open){display:none!important}body > .qs-site-header .qs-primary-nav.is-open{display:flex!important;max-height:calc(100dvh - 86px);overflow:auto}body > .qs-site-header .qs-menu-toggle{display:block!important}}
@media(max-width:780px){body > .qs-site-header .qs-brand{width:clamp(145px,43vw,210px)!important}body > .qs-site-header .qs-brand img{max-height:56px!important}body > .qs-site-header .qs-header-inner{gap:8px!important;min-height:76px!important}}

/* Larger brand artwork, preserving the compact single-row header. */
body > .qs-site-header .qs-brand{width:clamp(290px,30vw,420px)!important;max-width:420px!important;flex:0 1 auto!important}
body > .qs-site-header .qs-brand img{max-width:100%!important;max-height:none!important;height:auto!important}
body > .qs-site-header .qs-header-inner{min-height:92px!important;gap:12px!important}
@media(min-width:1241px){body > .qs-site-header .qs-primary-nav{flex:0 0 auto!important}body > .qs-site-header .qs-header-actions{flex:0 0 auto!important}}
@media(max-width:1240px){body > .qs-site-header .qs-brand{width:clamp(250px,48vw,420px)!important}body > .qs-site-header .qs-primary-nav.is-open{max-height:calc(100dvh - 92px)}}
@media(max-width:780px){body > .qs-site-header .qs-header-inner{min-height:76px!important;gap:8px!important}body > .qs-site-header .qs-brand{width:min(62vw,340px)!important;min-width:0!important;flex-shrink:1!important}body > .qs-site-header .qs-header-actions{gap:6px!important}body > .qs-site-header .qs-search-trigger span,body > .qs-site-header .qs-search-trigger kbd{display:none!important}}
