/* Hub rail (option B): fixed left nav under the shared header, on every hub page.
   The header's grid button shows/hides it. Wide (1101 px+): beside the page. Narrow: hidden, opens over the page. */
.hub-rail { position: fixed; left: 0; top: 52px; bottom: 0; width: 220px; z-index: 20; overflow-y: auto;
  padding: 10px 12px 14px; background: var(--hdr); border-right: 1px solid var(--hdr-line); display: flex; flex-direction: column; gap: 2px; }
.hub-rail .rail-h { margin: 16px 10px 6px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #7d8d85; }
.hub-rail .rail-h:first-child { margin-top: 6px; }
.hub-rail a { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 8px; border-left: 3px solid transparent;
  color: #c7d2cb; text-decoration: none; font-weight: 600; font-size: 15px; }
.hub-rail a[hidden] { display: none; }
.hub-rail a svg { flex: none; color: #9fb0a7; }
.hub-rail a:hover { background: rgba(255,255,255,.05); color: #fff; }
.hub-rail a[aria-current] { background: rgba(255,255,255,.07); color: #fff; border-left-color: #FFD62E; }
.hub-rail a[aria-current] svg { color: #FFD62E; }
.hub-rail .x { margin-left: auto; display: flex; color: #6f8078; }
.hub-rail .admin { margin-top: auto; }
body.has-rail { padding-left: 220px; }
body.has-rail .hdr, body.has-rail .va-banner { margin-left: -220px; }
body.has-rail.rail-off { padding-left: 0; }
body.has-rail.rail-off .hdr, body.has-rail.rail-off .va-banner { margin-left: 0; }
body.rail-off .hub-rail { display: none; }
@media (max-width: 1100px) {
  body.has-rail { padding-left: 0; } body.has-rail .hdr, body.has-rail .va-banner { margin-left: 0; }
  .hub-rail { display: none; box-shadow: 0 12px 32px rgba(0,0,0,.4); }
  body.rail-open .hub-rail { display: flex; }
}
@media print { .hub-rail { display: none !important; } body.has-rail { padding-left: 0; } body.has-rail .hdr, body.has-rail .va-banner { margin-left: 0; } }
/* Update notice (upper right) */
.hub-upd { position: fixed; top: 62px; right: 16px; z-index: 50; width: min(340px, calc(100vw - 32px)); padding: 14px 16px; border-radius: 12px;
  background: var(--hdr); color: #fff; border: 1px solid #FFD62E; box-shadow: 0 12px 32px rgba(0,0,0,.4); display: flex; flex-direction: column; gap: 6px; }
.hub-upd b { font-size: 15px; padding-right: 24px; }
.hub-upd p { margin: 0; color: #c7d2cb; font-size: 14px; }
.hub-upd small { color: #7d8d85; }
.hub-upd .go { align-self: flex-start; margin-top: 4px; }
.hub-upd .x { position: absolute; top: 6px; right: 8px; background: none; border: 0; color: #9fb0a7; font-size: 20px; cursor: pointer; line-height: 1; padding: 4px; }
