/* Approved artwork. Theme variants share the original silhouette and lettering. */
.brand-logo { position:relative; display:inline-block; vertical-align:middle; flex-shrink:0; }
.brand-artwork { display:block; width:100%; height:100%; object-fit:contain; }
.brand-artwork--dark, .brand-artwork--compact { display:none; }
html[data-theme="dark"] .brand-artwork--light { display:none; }
html[data-theme="dark"] .brand-artwork--dark { display:block; }
.sidebar .brand-artwork--light { display:none; }
.sidebar .brand-artwork--dark { display:block; }
.brand-logo.brand-logo--full { width:104px; height:80px; }
.brand:has(.brand-logo--full) { height:108px; padding:16px 18px; }
.brand .brand-logo.brand-logo--full { width:86px; height:66px; }
.brand:has(.brand-logo--full) a { gap:10px; }
.brand:has(.brand-logo--full) b { font-size:14px; }
.public-brand .brand-logo.brand-logo--full { width:94px; height:72px; flex:0 0 94px; }
.login-brand--approved { flex-direction:column; align-items:center; text-align:center; gap:16px; }
.welcome-login-page .login-brand--approved .brand-logo.brand-logo--full { width:190px; height:147px; }
.brand-page-transition[hidden] { display:none!important; }
.brand-page-transition { position:fixed; inset:0; z-index:1100; display:flex; flex-direction:column;
    align-items:center; justify-content:center; gap:20px; background:var(--bg,#f4f6f1); pointer-events:none; }
.brand-page-transition .brand-logo { width:120px; height:104px; }
.brand-welcome-logo { display:none; }
.brand-page-transition--welcome { pointer-events:auto; }
.brand-page-transition--welcome .brand-welcome-logo { display:block; }
/* Keep the static original visible while the page and animated SVG are preparing. */
.brand-page-transition--preparing .brand-welcome-logo { visibility:visible; }
.brand-page-transition--welcome .brand-navigation-logo { display:none; }
.brand-welcome-logo .brand-logo.brand-logo--full {
    width:min(540px,82vw); height:auto; aspect-ratio:700 / 540;
}
@media(min-width:821px) {
    .mobile-nav-toggle:checked~.sidebar .brand-logo--full .brand-artwork--light,
    .mobile-nav-toggle:checked~.sidebar .brand-logo--full .brand-artwork--dark { display:none; }
    .mobile-nav-toggle:checked~.sidebar .brand-logo--full .brand-artwork--compact { display:block; }
    .mobile-nav-toggle:checked~.sidebar .brand .brand-logo.brand-logo--full { width:42px; height:42px; }
}
@media(max-width:600px) {
    .public-brand .brand-logo.brand-logo--full { width:96px; height:auto; aspect-ratio:700 / 540; flex:0 0 96px; }
    .public-nav .public-brand:has(.brand-logo--full) { flex-direction:column; align-items:flex-start; gap:4px; }
    .public-nav .public-brand>span:last-child { max-width:100%; }
    /* The logo's flex axis is vertical in the public header; reserve its actual height. */
    .public-nav .public-brand .brand-logo.brand-logo--full { flex:0 0 auto; }
    .welcome-login-page .login-brand--approved .brand-logo.brand-logo--full {
        width:min(208px,64vw); height:auto; aspect-ratio:700 / 540;
    }
    .mobile-header-context .brand-logo { width:40px; height:40px; flex:0 0 40px; }
    .brand-page-transition .brand-logo { width:96px; height:84px; }
}
@media(max-width:390px) {
    .mobile-header-context .brand-logo { width:36px; height:36px; flex-basis:36px; }
}
@media print {
    .brand-page-transition { display:none!important; }
    .brand-logo .brand-artwork--light { display:block!important; }
    .brand-logo .brand-artwork--dark, .brand-logo .brand-artwork--compact { display:none!important; }
}
