.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding: 10px 12px;
  border: 1px solid #cad9ef;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #132238;
  font-weight: 700;
  text-decoration: none;
}

.brand img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.menu {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.menu a,
.menu button,
.app-header nav a,
.app-header nav button,
.site-header nav a,
.site-header nav button,
.nav-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #cad9ef;
  border-radius: 999px;
  padding: 7px 12px;
  background: #fff;
  color: #3f5675;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease,
    transform 120ms ease;
}

.app-header nav a:hover,
.app-header nav button:hover,
.site-header nav a:hover,
.site-header nav button:hover,
.menu a:hover,
.menu button:hover,
.nav-pill:hover {
  background: #eff6ff;
  border-color: #8fb6ff;
  color: #1746b5;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.14);
  transform: translateY(-1px);
}

.app-header nav a:focus-visible,
.app-header nav button:focus-visible,
.site-header nav a:focus-visible,
.site-header nav button:focus-visible,
.menu a:focus-visible,
.menu button:focus-visible,
.nav-pill:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.28);
  outline-offset: 3px;
  background: #eff6ff;
  border-color: #2563eb;
  color: #1746b5;
}

.app-header nav a.active,
.app-header nav a[aria-current="page"],
.site-header nav a[aria-current="page"],
.menu a.active,
.menu a[aria-current="page"],
.nav-pill[aria-current="page"] {
  background: #1d5bd8;
  border-color: #1d5bd8;
  color: #fff;
  box-shadow: 0 8px 20px rgba(29, 91, 216, 0.22);
}

.app-header nav a.active:hover,
.app-header nav a[aria-current="page"]:hover,
.site-header nav a[aria-current="page"]:hover,
.menu a.active:hover,
.menu a[aria-current="page"]:hover,
.nav-pill[aria-current="page"]:hover {
  background: #164aad;
  border-color: #164aad;
  color: #fff;
}

.app-header nav a.is-disabled,
.site-header nav a.is-disabled,
.site-header nav button.is-disabled,
.nav-pill.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.site-footer {
  margin: 32px auto 16px;
  padding: 20px;
  color: #425a78;
  font-size: 0.9rem;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  border-top: 1px solid #d8e6fb;
  padding-top: 16px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.site-footer a {
  color: #1746b5;
  font-weight: 700;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: #164aad;
  text-decoration: underline;
}
