body {
  background: var(--bg);
  color: var(--text);
}

/* ─────────────────────────────
   Header
───────────────────────────── */

.rh-header {
  border-bottom: 1px solid var(--border);
  background: var(--panel);
  padding: clamp(18px, 2.5vw, 28px);
}

.rh-header__content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}

.rh-header__titles {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rh-title {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 600;
}

.rh-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Back button stays visible but not dominant */
.rh-back-link {
  text-decoration: none;
  white-space: nowrap;
  opacity: 0.9;
}

/* ─────────────────────────────
   Home fallback
───────────────────────────── */

.rh-home-fallback {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 10px 20px 0;
}

.rh-home-fallback.is-visible {
  display: flex;
}

.rh-home-link {
  font-size: 0.95rem;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding: 2px 0;
}

.rh-home-link:hover {
  color: var(--text);
  border-bottom-color: var(--border);
}

/* ─────────────────────────────
   Label visibility (FIX)
───────────────────────────── */

.label-short {
  display: none;
}

/* ─────────────────────────────
   Main Layout
───────────────────────────── */

.rh-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 48px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 40px;
  align-items: start;
}

/* ─────────────────────────────
   Sidebar / Navigation
───────────────────────────── */

.rh-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 24px;
  align-self: start;
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding-right: 6px;
}

/* Search is utility, not content */
.rh-search {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--muted);
}

.rh-search input {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  background: var(--panel);
  color: var(--text);
}

.rh-search input:focus {
  outline: none;
  border-color: var(--accent);
}

/* ─────────────────────────────
   Navigation Groups
───────────────────────────── */

.rh-nav-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.rh-nav-group-title {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rh-nav-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Navigation should feel secondary */
.rh-nav-item {
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 6px 10px;
  background: transparent;
  color: var(--muted);
  text-align: center;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.rh-nav-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

/* Active item feels anchored, not loud */
.rh-nav-item.is-active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(47, 111, 237, 0.1);
}

/* Empty state */
.rh-nav-empty {
  font-size: 0.8rem;
  color: var(--muted);
  padding: 8px 4px;
}

/* ─────────────────────────────
   Detail Panel (Primary Content)
───────────────────────────── */

.rh-detail {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel);
  padding: clamp(24px, 3vw, 36px);
  min-height: 420px;
}

/* Strong separation between title and content */
.rh-detail__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  margin-bottom: 32px;
}

#release-detail-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 600;
}

#release-detail-date {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

/* ─────────────────────────────
   Changelog List (Reading Mode)
───────────────────────────── */

.rh-changes {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.rh-changes li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Arrow is supportive, not dominant */
.rh-changes li::before {
  content: "→";
  color: var(--muted);
  margin-top: 2px;
  flex-shrink: 0;
  opacity: 0.7;
}

/* ────────────��────────────────
   Responsive
───────────────────────────── */

@media (max-width: 960px) {
  .rh-main {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
  }

  .rh-sidebar {
    position: static;
    max-height: none;
    padding-right: 0;
  }
}

/* ─────────────────────────────
   Ultra‑small screens (FIX)
───────────────────────────── */

@media (max-width: 360px) {
  .label-full {
    display: none;
  }

  .label-short {
    display: inline;
  }

  .rh-subtitle {
    display: none;
  }

  .rh-header__content {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
  }

  .rh-header__titles {
    text-align: center;
  }
}