:root {
  color-scheme: light;
  --surface: #f1f2f4 !important;
  --text: #11172a !important;
  --muted: #5c616c !important;
  --border: #d9dce2 !important;
  --link: #30384c !important;
  --callout-bg: #e9eef9 !important;
  --card-bg: #ffffff !important;
  --surface-muted: #e7e9ed !important;
  --shadow-soft: 0 1px 2px rgb(12 18 38 / .05), 0 4px 14px rgb(12 18 38 / .05) !important;
}

html { scroll-padding-top: 84px; }
body { padding-top: 64px; }

.global-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: 64px;
  background: rgb(255 255 255 / .96);
  border-bottom: 1px solid #d9dce2;
  box-shadow: 0 1px 8px rgb(12 18 38 / .07);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.global-nav__inner {
  width: min(100%, 1180px);
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.global-nav__brand {
  flex: none;
  color: #060b3a !important;
  font: 650 .82rem/1 system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.global-nav__brand span { color: #1d4ed8; }

.global-nav__links {
  min-width: 0;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.global-nav__links::-webkit-scrollbar { display: none; }

.global-nav__links a {
  flex: none;
  padding: 9px 10px;
  border-radius: 7px;
  color: #4f5563 !important;
  font: 550 .75rem/1 system-ui, -apple-system, "Segoe UI", sans-serif;
  text-decoration: none;
  white-space: nowrap;
}

.global-nav__links a:hover,
.global-nav__links a:focus-visible {
  color: #060b3a !important;
  background: #eef1f7;
}

.global-nav__links a[aria-current="page"] {
  color: #1d4ed8 !important;
  background: #e9eef9;
}

@media (max-width: 760px) {
  body { padding-top: 56px; }
  html { scroll-padding-top: 76px; }
  .global-nav { height: 56px; }
  .global-nav__inner { gap: 12px; padding: 0 14px; }
  .global-nav__brand { font-size: .72rem; }
  .global-nav__links a { padding: 8px; font-size: .7rem; }
}

@media print {
  body { padding-top: 0; }
  .global-nav { display: none; }
}
