/* Keep the brand region the same height in both sidebar states. */
#sidebar .logo{position:relative;height:76px}
#sidebar .logo-original{visibility:hidden}
body.sidebar-collapsed #sidebar .logo::after{visibility:hidden}
#sidebar .brand-lockup{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;letter-spacing:0;pointer-events:none}
#sidebar .brand-portrait{display:block;flex:0 0 52px;width:52px;height:52px;background-image:url('/assets/brand/speaking-sprite.png');background-size:200% 100%;background-position:0% 0%;background-repeat:no-repeat}
#sidebar .brand-wordmark{display:block;white-space:nowrap;text-align:center;color:#23262b;font-size:14px;font-weight:650;line-height:18px}
body.sidebar-collapsed #sidebar .brand-portrait{flex-basis:28px;width:28px;height:28px}
body.sidebar-collapsed #sidebar .brand-wordmark{display:none}
#sidebar .logo.is-speaking .brand-portrait{animation:brand-speaking 600ms steps(1,end) infinite}
@keyframes brand-speaking{0%,52%,100%{background-position:0% 0%}53%,99%{background-position:100% 0%}}
@media(max-width:700px){
 body #sidebar .logo,body.sidebar-collapsed #sidebar .logo{height:46px!important;min-width:120px}
 #sidebar .brand-lockup{gap:2px}
 #sidebar .brand-portrait{width:28px;height:28px;flex-basis:28px}
 #sidebar .brand-wordmark{font-size:11px;line-height:14px}
}
@media(prefers-reduced-motion:reduce){#sidebar .logo.is-speaking .brand-portrait{animation:none}}
