/* [signin-header] The public site's header, for the app's sign-in screen. The server puts the same rendered _header.html
   used on every site page inside <div class="site-top"> (main.spa, signed-out requests only). These are site.css's header
   rules, scoped to .site-top so they can't touch the app and the app's own styles can't change the header. Keep in step
   with the header section of site.css. */
.site-top {
  --surface-0:#111418; --surface-1:#181c22; --surface-2:#1f242c; --rule:#262c36; --field:#465062;
  --ink:#e6e9ef; --ink-2:#a3acbb; --ink-3:#8b94a6; --accent:#4f9ccb; --caution:#cf9a2e;
  --st-font:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  --st-display:"Segoe UI Variable Display","SF Pro Display",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  --st-ease:cubic-bezier(.2,.7,.2,1);
  position:sticky; top:0; z-index:60; font:16px/1.6 var(--st-font); color:var(--ink);
}
:root[data-theme="light"] .site-top {
  --surface-0:#f2f3f6; --surface-1:#ffffff; --surface-2:#f4f5f8; --rule:#e4e7ec; --field:#8e97a8;
  --ink:#1b212c; --ink-2:#5b6474; --ink-3:#626b7d; --accent:#135baf; --caution:#8a5a00;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .site-top {
    --surface-0:#f2f3f6; --surface-1:#ffffff; --surface-2:#f4f5f8; --rule:#e4e7ec; --field:#8e97a8;
    --ink:#1b212c; --ink-2:#5b6474; --ink-3:#626b7d; --accent:#135baf; --caution:#8a5a00;
  }
}
.site-top *, .site-top *::before, .site-top *::after { box-sizing:border-box; }
.site-top .skip { position:absolute; left:-999px; } .site-top .skip:focus { left:16px; top:12px; z-index:30; background:var(--surface-1); padding:8px 12px; }
.site-top .top { background:color-mix(in srgb, var(--surface-0) 82%, transparent); -webkit-backdrop-filter:blur(14px) saturate(1.4); backdrop-filter:blur(14px) saturate(1.4); border-bottom:1px solid var(--rule); }
.site-top .wrap { max-width:1168px; margin:0 auto; padding:10px clamp(16px, 4vw, 32px); display:flex; align-items:center; gap:8px 20px; flex-wrap:wrap; min-height:64px; }
.site-top .brand { display:flex; align-items:center; gap:10px; color:var(--ink); text-decoration:none; font:650 18px var(--st-display); margin-right:auto; padding:0; }
.site-top .brand svg { width:26px; height:26px; display:block; }
.site-top .pill { font-size:11px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; color:var(--caution); border:1px solid currentColor; border-radius:999px; padding:2px 9px; line-height:1.4; }
.site-top nav { display:flex; gap:4px 18px; flex-wrap:wrap; margin:0; padding:0; background:none; border:0; position:static; width:auto; }
.site-top nav a { position:relative; display:inline; color:var(--ink-2); text-decoration:none; font-size:14px; padding:10px 0; background:none; border:0; transition:color .16s var(--st-ease); }
.site-top nav a::after { content:""; position:absolute; left:0; right:0; bottom:0; height:2px; background:var(--ink); transform:scaleX(0); transform-origin:left; transition:transform .22s var(--st-ease); }
.site-top nav a:hover, .site-top nav a[aria-current] { color:var(--ink); }
.site-top nav a:hover::after, .site-top nav a[aria-current]::after { transform:scaleX(1); }
.site-top .btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:36px; padding:4px 12px; border:1px solid var(--field); border-radius:10px; background:transparent; color:var(--ink); font:600 14px var(--st-font); text-decoration:none; cursor:pointer; }
.site-top .btn:hover { background:var(--surface-2); border-color:var(--ink-3); }
.site-top #theme { display:none; }   /* the site's theme switch needs site.js; the app has its own */
.site-top a:focus-visible { outline:2px solid var(--accent); outline-offset:3px; border-radius:3px; }
@media (max-width: 700px) { .site-top nav { order:3; width:100%; } }
/* phone header: one row of brand, theme and call to action, then one scrolling row of links (mirrors site.css) */
@media (max-width: 700px) {
  .site-top .wrap { min-height:0; padding-top:8px; padding-bottom:0; gap:4px 10px; }
  .site-top .pill { display:none; }
  .site-top nav { flex-wrap:nowrap; gap:0 20px; overflow-x:auto; scrollbar-width:none; -webkit-overflow-scrolling:touch;
    margin:0 calc(-1 * clamp(16px, 4vw, 32px)); padding:0 clamp(16px, 4vw, 32px); width:auto; flex:1 0 100%; }
  .site-top nav::-webkit-scrollbar { display:none; }
  .site-top nav { justify-content:space-between; gap:0 10px; }
  .site-top nav a { white-space:nowrap; padding:12px 0; font-size:13px; }
}
/* the sign-in screen fills the window below the header instead of under it */
body .site-top ~ #app .login-wrap, body:has(.site-top) .login-wrap { min-height:calc(100vh - 65px); min-height:calc(100dvh - 65px); }
