/*
 * Release notes / changelog page (/releases).
 * Reuses the site design tokens defined in site.css :root
 * (--brand-navy #25323D, --brand-amber #C9843E, --brand-line, --radius, fonts).
 */

/* ---- Page head ---- */
.rel-head {
  padding: 72px 0 28px;
  background: var(--brand-navy);
  color: var(--brand-white);
}
.rel-head .eyebrow {
  color: var(--brand-amber);
}
.rel-head h1 {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin: 10px 0 12px;
  letter-spacing: -0.01em;
  color: var(--brand-white);
}
.rel-head p {
  max-width: 60ch;
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
}
.rel-head p a {
  color: var(--brand-white);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--brand-amber);
}
.rel-head p a:hover { color: var(--brand-amber); }

/* ---- Body / empty state ---- */
.rel-body {
  padding: 48px 0 80px;
  background: var(--brand-surface);
}
.rel-empty {
  max-width: 640px;
  margin: 24px auto;
  padding: 40px 28px;
  text-align: center;
  background: var(--brand-white);
  border: 1px solid var(--brand-line);
  border-radius: 14px;
  color: var(--brand-ink);
}
.rel-empty a {
  color: var(--brand-amber);
  font-weight: 600;
  text-decoration: none;
}
.rel-empty a:hover { text-decoration: underline; }

/* ---- Timeline ---- */
.rel-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  max-width: 780px;
}
/* The vertical spine — sits under the row of markers. */
.rel-timeline::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 7px;
  width: 2px;
  background: var(--brand-line);
}
.rel-entry {
  position: relative;
  padding: 0 0 26px 40px;
}
.rel-entry:last-child { padding-bottom: 0; }

.rel-marker {
  position: absolute;
  left: 0;
  top: 22px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--brand-white);
  border: 3px solid var(--brand-amber);
  box-shadow: 0 0 0 4px var(--brand-surface);
}

/* ---- Entry card ---- */
.rel-card {
  background: var(--brand-white);
  border: 1px solid var(--brand-line);
  border-radius: 14px;
  padding: 22px 24px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.rel-card:hover {
  border-color: rgba(201, 132, 62, 0.5);
  box-shadow: 0 10px 30px -18px rgba(37, 50, 61, 0.4);
  transform: translateY(-2px);
}
.rel-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 12px;
}
.rel-version {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--brand-navy);
  margin: 0;
}
.rel-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.rel-date {
  margin-left: auto;
  font-size: 0.85rem;
  color: #5A6870;
  white-space: nowrap;
}

/* ---- Badges ---- */
.rel-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.4;
}
.rel-badge-security {
  background: #FBE9E7;
  color: #B0322A;
}
.rel-badge-migration {
  background: #FBF0E2;
  color: #8A5A22;
}
.rel-badge-channel {
  background: var(--pill-neutral-bg, #EEF0F2);
  color: var(--pill-neutral-text, #5A6870);
}

/* ---- Notes ---- */
.rel-notes {
  color: var(--brand-ink);
  font-size: 0.97rem;
  line-height: 1.65;
}
.rel-notes p { margin: 0 0 8px; }
.rel-notes p:last-child { margin-bottom: 0; }
.rel-notes-list {
  margin: 0;
  padding-left: 1.2em;
}
.rel-notes-list li { margin: 0 0 6px; }
.rel-notes-list li:last-child { margin-bottom: 0; }
.rel-notes-muted { color: #7A868E; font-style: italic; }

.rel-notes-link {
  display: inline-block;
  margin-top: 14px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--brand-amber);
  text-decoration: none;
}
.rel-notes-link:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .rel-head { padding: 56px 0 24px; }
  .rel-body { padding: 32px 0 56px; }
  .rel-entry { padding-left: 32px; }
  .rel-date { margin-left: 0; width: 100%; }
  .rel-card { padding: 18px 18px; }
}
