body {
  font-family: FiraSans, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--silk-bg);
  color: var(--silk-text-primary);
  margin: 0;
  font-weight: lighter;
  transition: background-color 0.2s, color 0.2s;
}

pre {
  font-family: Fantasque;
  background-color: var(--silk-surface) !important;
  padding: 0.5em !important;
  margin: 0 !important;
  font-size: 14px;
  text-align: left;
}

code {
  font-family: Fantasque;
  background-color: var(--silk-surface) !important;
  padding: 0 !important;
  margin: 0 !important;
  font-size: 14px;
}

html {
  margin: 0;
}

#header {
  height: 50px;
  background-color: var(--silk-nav-bg);
  width: 100%;
  position: relative;
  padding: 0;
  display: flex;
  align-items: stretch;
}

#header > div {
  display: inline-flex;
  align-items: stretch;
}

.menu {
  height: 50px;
  padding: 0;
  margin: 0;
  display: inline-flex;
  align-items: stretch;
}

/* ── Nav item ── */
.menu-item {
  height: 50px;
  padding: 0 14px;
  margin: 0;
  color: var(--silk-text-nav);
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  position: relative;
  box-sizing: border-box;
  border-bottom: 3px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.menu-item a {
  color: var(--silk-text-nav) !important;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 100%;
}

/* Back-button item gets a right separator */
.menu-item--back {
  padding: 0 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  margin-right: 4px;
}

#filter .menu-item {
  margin-right: 0;
  border-bottom: none;
}

/* ── Hover ── */
.selectable-menu-item {
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.selectable-menu-item:hover {
  background-color: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  color: #ffffff !important;
  border-bottom-color: rgba(255, 255, 255, 0.4);
}

.selectable-menu-item:hover a {
  color: #ffffff !important;
}

/* ── Active (selected) ── */
.menu-item-selected {
  border-bottom-color: #ffffff;
  color: #ffffff !important;
  font-weight: 500;
}

.menu-item-selected a {
  color: #ffffff !important;
}

/* ── Table-cell layout kept for backward compat ── */
.menu-item-outer {
  display: flex !important;
  align-items: center;
  height: 100%;
}

.menu-item-inner {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

a:visited {
  color: var(--silk-text-primary);
}

a {
  color: var(--silk-text-primary);
  text-decoration: none;
}

#filter {
  height: 50px;
  position: absolute;
  right: 0;
  display: inline-flex;
  align-items: center;
}

.description {
  font-style: italic;
  font-size: 14px;
  margin-bottom: 5px;
}

/* Lucide icon helper */
.silk-icon {
  width: 16px;
  height: 16px;
  vertical-align: middle;
  display: inline-block;
  flex-shrink: 0;
}