/* The main site's menu header, shown at the top of the online apps (Zoom Meeting Monitor, Fusion Event Timer, Fusion GLB Viewer and
   Fusion KanBan) so the menu stays the same everywhere. Self-contained: every class starts with fsc-hd and sizes are in px, so the
   apps' own styles (zmm.css, kanban.css) can't change it. A copy lives in src/FusionKanban.Web/wwwroot/css/fsc-header.css; keep both
   identical. The header scrolls away with the page; --fsc-hd-h lets full-height app screens subtract it. */
:root { --fsc-hd-h: 61px; }
.fsc-hd { position: relative; z-index: 40; background: #0d1220; border-bottom: 1px solid #263049; color: #e8edf8;
  font: 400 15px/1.4 "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
.fsc-hd *, .fsc-hd *::before, .fsc-hd *::after { box-sizing: border-box; }
.fsc-hd-in { width: min(1240px, calc(100% - 32px)); margin: 0 auto; min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.fsc-hd-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #e8edf8; flex: none; }
.fsc-hd-brand img { height: 36px; width: auto; display: block; }
.fsc-hd-name { display: block; font-weight: 900; font-size: 19px; letter-spacing: .12em; line-height: 1; color: #e8edf8; }
.fsc-hd-sub { display: block; font-size: 7.5px; letter-spacing: .3em; color: #8f9bb4; font-weight: 600; margin-top: 5px; line-height: 1; }
.fsc-hd-menu { display: flex; align-items: center; gap: 16px; }
.fsc-hd-menu a { color: #c3cde0; text-decoration: none; font-weight: 600; font-size: 13.5px; white-space: nowrap; }
.fsc-hd-menu a:hover, .fsc-hd-menu a[aria-current="page"] { color: #63adff; }
.fsc-hd-menu a.fsc-hd-admin { color: #63adff; border: 1.5px solid #34446a; border-radius: 9px; padding: 6px 13px; }
.fsc-hd-menu a.fsc-hd-admin:hover { background: rgba(29, 139, 240, .14); border-color: #63adff; }
.fsc-hd-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.fsc-hd-burger { display: none; }
.fsc-hd a:focus-visible, .fsc-hd-toggle:focus-visible + .fsc-hd-burger { outline: 3px solid rgba(29, 139, 240, .5); outline-offset: 2px; }
@media (max-width: 1120px) {
  .fsc-hd-burger { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #263049; border-radius: 10px; cursor: pointer; }
  .fsc-hd-burger span, .fsc-hd-burger span::before, .fsc-hd-burger span::after { display: block; width: 20px; height: 2px; background: #e8edf8; border-radius: 2px; position: relative; content: ""; }
  .fsc-hd-burger span::before, .fsc-hd-burger span::after { position: absolute; left: 0; }
  .fsc-hd-burger span::before { top: -6px; } .fsc-hd-burger span::after { top: 6px; }
  .fsc-hd-menu { display: none; position: absolute; top: 60px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #0d1220; border-bottom: 1px solid #263049; padding: 6px 16px 16px; box-shadow: 0 16px 30px rgba(0, 0, 0, .35); }
  .fsc-hd-menu a { padding: 11px 4px; border-bottom: 1px solid #263049; font-size: 15px; }
  .fsc-hd-menu a.fsc-hd-admin { margin-top: 12px; text-align: center; border-bottom: 1.5px solid #34446a; }
  .fsc-hd-toggle:checked ~ .fsc-hd-menu { display: flex; }
}
@media (max-width: 420px) { .fsc-hd-sub { display: none; } }
@media print { .fsc-hd { display: none; } }

/* Light / dark switch (js/fsc-theme.js) and the light version of the header */
.fsc-hd-theme { width: 34px; height: 34px; display: inline-grid; place-items: center; border: 1.5px solid #34446a; border-radius: 9px; background: none; color: #63adff; cursor: pointer; padding: 0; flex: none; }
.fsc-hd-theme:hover { border-color: #63adff; }
.fsc-hd-theme svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fsc-hd-theme .i-moon, .fsc-hd-logo-d { display: none !important; }
/* The logo sits on a white tile in both modes (the original logo, dark "S"). */
.fsc-hd-brand img.fsc-hd-logo-l { display: block !important; background: #fff; border-radius: 9px; padding: 3px; box-shadow: 0 4px 14px rgba(0, 0, 0, .35); }
:root[data-theme="light"] .fsc-hd-theme .i-sun { display: none !important; }
:root[data-theme="light"] .fsc-hd-theme .i-moon { display: block !important; }
:root[data-theme="light"] .fsc-hd-brand img.fsc-hd-logo-l { box-shadow: 0 1px 2px rgba(14, 30, 70, .12); }
:root[data-theme="light"] .fsc-hd { background: #ffffff; color: #12151c; border-bottom-color: #e3e8f0; }
:root[data-theme="light"] .fsc-hd-brand, :root[data-theme="light"] .fsc-hd-name { color: #12151c; }
:root[data-theme="light"] .fsc-hd-sub { color: #5d6675; }
:root[data-theme="light"] .fsc-hd-menu a { color: #2b303b; }
:root[data-theme="light"] .fsc-hd-menu a:hover, :root[data-theme="light"] .fsc-hd-menu a[aria-current="page"] { color: #0b57c9; }
:root[data-theme="light"] .fsc-hd-menu a.fsc-hd-admin, :root[data-theme="light"] .fsc-hd-theme { color: #0b57c9; border-color: #c5d3ea; }
:root[data-theme="light"] .fsc-hd-menu a.fsc-hd-admin:hover { background: #eef4ff; border-color: #1d8bf0; }
@media (max-width: 1120px) {
  .fsc-hd-menu .fsc-hd-theme { margin-top: 12px; }
  :root[data-theme="light"] .fsc-hd-burger { border-color: #e3e8f0; }
  :root[data-theme="light"] .fsc-hd-burger span, :root[data-theme="light"] .fsc-hd-burger span::before, :root[data-theme="light"] .fsc-hd-burger span::after { background: #12151c; }
  :root[data-theme="light"] .fsc-hd-menu { background: #ffffff; border-bottom-color: #e3e8f0; box-shadow: 0 16px 30px rgba(14, 30, 70, .12); }
  :root[data-theme="light"] .fsc-hd-menu a { border-bottom-color: #e3e8f0; }
}
