#tic-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid var(--scalar-border-color, #e5e5e5);
  background: var(--scalar-background-1, #f9f8f6);
  font-family: var(--scalar-font, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
}

/* Push page content below the fixed bar */
body {
  padding-top: 41px;
}

.tic-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 100%;
  height: 40px;
  padding: 0 16px;
}

.tic-topbar-brand {
  display: flex;
  align-items: center;
  color: var(--scalar-color-1, #1f1f1f);
  text-decoration: none;
}

.tic-topbar-brand:hover {
  color: var(--scalar-color-accent, #357a6b);
}

.tic-topbar-logo {
  height: 28px;
  width: 28px;
  border-radius: 6px;
}

/* Light mode: show dark bg logo, hide light bg */
.light-mode .tic-topbar-logo--dark { display: none; }
.light-mode .tic-topbar-logo--light { display: block; }

/* Dark mode: show light bg logo, hide dark bg */
.dark-mode .tic-topbar-logo--light { display: none; }
.dark-mode .tic-topbar-logo--dark { display: block; }

.tic-topbar-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.tic-topbar-links a {
  color: var(--scalar-color-2, #525252);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.15s;
}

.tic-topbar-links a:hover {
  color: var(--scalar-color-accent, #357a6b);
}
