/* Chrome shared by every page: the top banner, the language switch, and the
   handful of rules that make RTL and small screens behave. */

:root {
  --bg-0: #0f0a1a;
  --bg-1: #1a1420;
  --bg-2: #2a1f38;
  --line: #3d2f52;
  --gold: #d4af37;
  --ink: #e0d5f0;
  --muted: #9580b0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(15, 10, 26, 0.85);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 500;
}

.topbar .brand {
  color: var(--gold);
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  letter-spacing: 0.5px;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}

.lang-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.15s;
}

.lang-btn:hover { color: var(--ink); border-color: var(--line); }
.lang-btn.on { color: var(--gold); border-color: var(--gold); }
.lang-sep { color: var(--line); }

/* Hebrew reads right-to-left; the arrows in button labels are already
   written the correct way round per language, so nothing else to mirror. */
[dir="rtl"] body { text-align: right; }
[dir="rtl"] .topbar { flex-direction: row-reverse; }

@media (max-width: 700px) {
  .topbar { padding: 8px 14px; }
  .topbar .brand { font-size: 16px; }
}
