/* Shared navigation shell for every D-MASH page. */
.home-header .nav-wrap { min-height: 76px; }
main > section[id] { scroll-margin-top: 88px; }
.home-header-links { display: flex; gap: 1.5rem; margin-left: auto; }
.home-menu-button {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  border: 1px solid var(--border);
  padding: 0.7rem 1rem;
  border-radius: 10px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  font: 600 0.88rem "Manrope", sans-serif;
  cursor: pointer;
}
.home-menu-button svg { width: 18px; height: 18px; }
.home-menu-button:hover { background: rgba(255, 255, 255, 0.09); }
.home-menu-button:focus-visible,
.home-sidebar a:focus-visible,
.home-sidebar-close:focus-visible,
.shark-screen-tabs button:focus-visible,
.shark-screen-link:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
body.sidebar-open { overflow: hidden; }
.home-sidebar {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(420px, 100%);
  max-width: 100%;
  max-height: none;
  height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  border-left: 1px solid var(--border);
  color: var(--text);
  background: #0c1425;
  box-shadow: -20px 0 80px rgba(0, 0, 0, 0.3);
}
.home-sidebar::backdrop { background: rgba(3, 7, 15, 0.65); }
.home-sidebar[open] .home-sidebar-inner { animation: sidebarEnter 0.24s ease-out; }
.home-sidebar-inner { display: flex; flex-direction: column; min-height: 100%; padding: 1.5rem 1.8rem; }
.home-sidebar-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.home-sidebar-top h2 { font-size: 1rem; letter-spacing: -0.02em; }
.home-sidebar-close { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--border); border-radius: 9px; background: transparent; color: var(--text); cursor: pointer; }
.home-sidebar-close svg { width: 18px; height: 18px; }
.home-sidebar-group { padding: 1.2rem 0 0.5rem; }
.home-sidebar-group > p { font: 500 0.65rem "JetBrains Mono", monospace; letter-spacing: 0.08em; text-transform: uppercase; color: #798cab; margin: 0 0 0.6rem; }
.home-sidebar-links { display: grid; gap: 0.2rem; }
.home-sidebar-links a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: #c8d2e8; padding: 0.55rem 0.75rem; margin-inline: -0.75rem; border-radius: 7px; font-size: 0.9rem; font-weight: 500; }
.home-sidebar-links a span { color: #6981a7; font: 400 0.62rem "JetBrains Mono", monospace; }
.home-sidebar-links a:hover,
.home-sidebar-links a.is-current { color: #fff; background: rgba(108, 125, 255, 0.12); text-decoration: none; }
.home-sidebar-links a.is-current span { color: #9daaff; }
.home-sidebar-footer { margin-top: auto; padding-top: 1.5rem; }
.home-sidebar-footer .btn { width: 100%; }
.home-sidebar-legal { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1rem; }
.home-sidebar-legal a { font-size: 0.68rem; color: #8497b8; }
.home-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; clip: rect(0,0,0,0); overflow: hidden; white-space: nowrap; border: 0; }
@keyframes sidebarEnter { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }


.home-header-links a[aria-current="page"],
.home-header-links a.is-current { color: var(--text); }
.home-sidebar-legal a[aria-current="page"] { color: var(--text); }
.site-header { background: rgba(7, 13, 28, 0.92); }
.site-footer { background: #080e1a; }
.site-footer .footer-brand { display: inline-flex; color: var(--text); }
.site-footer p { color: var(--muted); }
.site-footer .footer-legal { color: #72809f; }
.admin-sidebar { top: 76px; height: calc(100dvh - 76px); }
@media (max-width: 900px) {
  .home-header-links { display: none; }
  .home-menu-button { margin-left: auto; }
  .home-header .nav-wrap > .btn-small { display: none; }
}
@media (max-width: 640px) {
  .home-sidebar-inner { padding: 1.2rem 1.5rem; }
  .home-menu-button { padding: 0.7rem 0.9rem; }
}
@media (max-width: 760px) {
  .admin-sidebar { height: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .home-sidebar[open] .home-sidebar-inner { animation: none; }
}
