/* Original Header/ThemedLogo/Logo3D rules, from frontend index.css/media.css/mobile.css.
   Only DOM adapter visibility and isolation from documentation typography are added. */
.topbar > .logo { position: relative; display: flex; gap: .8rem; align-items: center; flex-shrink: 0; line-height: normal; letter-spacing: .2px; }
.topbar > .logo > a { color: inherit; text-decoration: none; }
.sitlogo { display: none; width: 150px; height: 100%; }
[data-theme="light"] .logo-light { display: inline; }
[data-theme="dark"] .logo-dark,
[data-theme="amoled"] .logo-dark,
[data-theme="vice"] .logo-dark,
[data-theme="frost"] .logo-dark,
[data-theme="ember"] .logo-dark { display: inline; }
[data-theme="halloween"] .logo-halloween { display: inline; }
.logo3d { position: relative; display: inline-flex; align-items: center; height: 100%; vertical-align: middle; }
/* The frontend canvas uses normal color-scheme; isolate it from the docs dark root. */
.logo3d__canvas { color-scheme: normal; background: transparent; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); pointer-events: none; opacity: 0; transition: opacity 0.2s ease; }
.logo3d .sitlogo { transition: opacity 0.2s ease; }
.logo3d.is-ready .logo3d__canvas { opacity: 1; }
.logo3d.is-ready .sitlogo { opacity: 0; }
.logo3d.is-ready { cursor: grab; }
.logo3d.is-grabbing { cursor: grabbing; }
.logo-mobile { display: none; width: 36px !important; height: 36px !important; }
@media (max-width: 900px) { .sitlogo { margin: 0 10px; } .topbar > .logo { margin-left: 0; margin-right: auto; } }
@media (max-width: 768px) {
 .topbar > .logo { gap: .4rem; }
 .logo3d { display: none; }
 .logo-mobile { display: inline; width: 30px !important; height: 30px !important; }
}
[data-logo-mobile] .logo3d { display: none; }
[data-logo-mobile] .logo-mobile { display: inline; }
@media (prefers-reduced-motion: reduce) { .logo3d__canvas, .logo3d .sitlogo { transition: none; } }
