/* Public header only. The admin shell has independent navigation. */
:root{--site-header-offset:0px}
body>.header .languages{margin-left:auto;flex:none}
@media(min-width:701px){
  body>.header nav[data-header-desktop="false"],body>.header nav>a[data-header-desktop="false"]{display:none}
}
@media(max-width:700px){
  body>.header nav[data-header-mobile="false"],body>.header nav>a[data-header-mobile="false"]{display:none}
}
html:is([data-header-mode=sticky],[data-header-mode=floating]){scroll-padding-top:calc(var(--site-header-offset,116px) + 24px)}
html:is([data-header-mode=sticky],[data-header-mode=floating]) body>.header{
  position:sticky;top:0;z-index:30;background:var(--bg);
  transform:translate3d(0,var(--header-drift,0px),0);
  transition:box-shadow .25s,border-color .25s;
  box-shadow:0 0 0 0 transparent;
}
.header-space{height:0;overflow-anchor:none}
html:is([data-header-mode=sticky],[data-header-mode=floating]) body>.header{overflow-anchor:none;transition:min-height .28s ease,padding .28s ease,gap .28s ease,box-shadow .25s,border-color .25s}
html:is([data-header-mode=sticky],[data-header-mode=floating]) body>.header>.brand{transition:width .28s ease}
@media(min-width:1101px){
  html:is([data-header-mode=sticky],[data-header-mode=floating]) body>.header.is-compact{min-height:94px;padding-block:8px}
  html:is([data-header-mode=sticky],[data-header-mode=floating]) body>.header.is-compact>.brand{width:230px}
}
@media(max-width:1100px){
  html:is([data-header-mode=sticky],[data-header-mode=floating]) body>.header.is-compact{min-height:0;padding-block:6px;row-gap:4px}
  html:is([data-header-mode=sticky],[data-header-mode=floating]) body>.header.is-compact>.brand{width:min(180px,100%)}
  html:is([data-header-mode=sticky],[data-header-mode=floating]) body>.header nav{row-gap:4px}
  :where(html:is([data-header-mode=sticky],[data-header-mode=floating])) body>.header nav>a{display:inline-flex;align-items:center;min-height:32px}
  html:is([data-header-mode=sticky],[data-header-mode=floating]) body>.header .language-switch{transition:min-height .28s ease,padding .28s ease,background .18s,color .18s}
  html:is([data-header-mode=sticky],[data-header-mode=floating]) body>.header.is-compact .language-switch{min-height:44px;padding-block:4px}
}
@media(max-width:700px){
  html:is([data-header-mode=sticky],[data-header-mode=floating]) body>.header.is-compact>.brand{width:min(150px,100%)}
}
html[data-header-mode] body>.header.is-measuring,html[data-header-mode] body>.header.is-measuring>.brand,html[data-header-mode] body>.header.is-measuring .language-switch{transition:none}
html:is([data-header-mode=sticky],[data-header-mode=floating]) body>.header.is-scrolled{
  border-bottom-color:var(--accent);box-shadow:0 12px 28px #0000001c;
}
@media(min-width:1101px){
  body[data-sidebar-motion=floating] .home-sidebar-drawer{top:calc(var(--site-header-offset) + 24px)}
  body[data-sidebar-motion=floating] .home-sidebar-scroll{max-height:calc(100dvh - var(--site-header-offset) - 64px)}
}
@media(prefers-reduced-motion:reduce){html[data-header-mode] body>.header,html[data-header-mode] body>.header>.brand{transition:none}html[data-header-mode] body>.header{transform:none}}
