/* Shared navigation surfaces for every BIMON page. */
body{--header-paper:var(--paper,#f5faff)}
body.library-page,body.community-page{--header-paper:#f4fbff}
body.legal-page{--header-paper:#f4faff}
:root body .site-header,:root body .dashboard-header,:root body .auth-site-header{
  position:sticky;top:0;z-index:50;background:transparent;border-bottom:1px solid transparent;
  backdrop-filter:none;-webkit-backdrop-filter:none;box-shadow:none;
  transition:background-color .2s,border-color .2s;
}
:root body .site-header.is-scrolled,:root body .dashboard-header.is-scrolled,:root body .auth-site-header.is-scrolled,
:root body .site-header:has([aria-expanded="true"]){background:var(--header-paper);border-bottom-color:#ccddfb80}
body .mobile-nav{background:var(--header-paper)}
body .back-top{
  position:fixed;right:max(24px,env(safe-area-inset-right));bottom:calc(24px + env(safe-area-inset-bottom));
  z-index:45;width:50px;height:50px;display:flex;align-items:center;justify-content:center;
  padding:0;border:1px solid #ffffff55;border-radius:50%;background:var(--blue);color:#fff;
  box-shadow:0 5px 20px #0753c52b;cursor:pointer;transition:background .2s,transform .2s;
}
body .back-top:hover{background:var(--blue-deep);transform:translateY(-3px)}
body .back-top svg{width:24px;height:24px;stroke-width:2}
body .back-top:focus-visible{outline:3px solid var(--blue);outline-offset:4px}
.dashboard-header .dashboard-header-inner{width:min(1470px,calc(100% - 96px));height:88px;gap:30px;display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)}
.dashboard-header .brand{justify-self:start}
.dashboard-header .brand-image-dark{width:159px}
.dashboard-header .desktop-nav{margin-left:0}
.dashboard-header .dashboard-header-actions{margin-left:0;justify-self:end}
.dashboard-header #user-menu{top:calc(100% + 18px)}
.dashboard-header .menu-toggle{padding:8px}
.dashboard-page .site-footer{font-size:16px;line-height:1.55}
.dashboard-resource-links{display:flex;flex-wrap:wrap;gap:12px 24px;margin:18px 0 10px}
.dashboard-resource-links a,.dashboard-plan-link{display:inline-flex;align-items:center;min-height:36px;color:var(--blue);font-size:14px}
.dashboard-resource-links a:hover,.dashboard-plan-link:hover{text-decoration:underline;text-underline-offset:4px}
.dashboard-plan-link{margin-top:3px}
.dashboard-heading>.return-site{border:0;padding:8px 0;margin-top:2px;min-height:40px;font-size:14px;white-space:nowrap}
.auth-page{--auth-inset:24px}
.auth-page .auth-site-header{margin:0 calc(-1 * var(--auth-inset));padding:0 43px;height:76px;display:flex;align-items:center}
.auth-site-header .back-to-site{position:static;font-size:17px}
.auth-page .auth-main{padding-top:16px}
@media(max-width:1199px){.dashboard-header .dashboard-header-inner{width:calc(100% - 56px);gap:22px}.dashboard-header .desktop-nav{gap:22px}}
@media(max-width:1000px){.dashboard-header #header-user-name{display:none}.dashboard-header .return-site{display:none}}
@media(min-width:701px) and (max-width:900px){.dashboard-header .brand-image-dark{width:135px}.dashboard-header .dashboard-header-inner{gap:14px}}
@media(max-width:700px){
  body .back-top{width:44px;height:44px;right:max(16px,env(safe-area-inset-right));bottom:calc(16px + env(safe-area-inset-bottom))}
  .dashboard-header .dashboard-header-inner{width:calc(100% - 40px);height:73px;gap:12px;display:flex}
  .dashboard-header .brand-image-dark{width:135px}
  .dashboard-header .dashboard-header-actions{gap:10px;margin-left:auto}
  .dashboard-header #user-menu-toggle{min-height:44px}
  .dashboard-header .menu-toggle{display:flex}
  .auth-page .auth-site-header{height:64px;padding-inline:24px}
  .auth-page .auth-main{padding-top:18px}
}
@media(prefers-reduced-motion:reduce){body .site-header,body .dashboard-header,body .auth-site-header,body .back-top{transition:none}}
@media(max-width:600px){.auth-page{--auth-inset:17px}}
@media(max-width:360px){.auth-page{--auth-inset:12px}}
@media print{body .back-top{display:none!important}:root body .site-header,:root body .dashboard-header,:root body .auth-site-header{position:static}}
