/* ============================================================ */
/* INSTABOOKS — Changelog (/changelog)                           */
/* Builds on main.css. Markup comes from lwl.web.apex.changelog. */
/* ============================================================ */

.changelog-hero {
  padding: 64px 0 24px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.changelog-hero .page-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--ink);
}

.changelog {
  background: var(--section);
  padding: 48px 0 96px;
}

.changelog .container > * {
  max-width: 760px;
}

/* ---------- One release (one day) ---------- */

.release {
  border-top: 2px solid var(--ink);
  padding: 28px 0 32px;
}

.release + .release { margin-top: 8px; }

.release-header time {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-deep);
}

.release-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.4rem, 2.4vw, 1.7rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: 8px 0 0;
  color: var(--ink);
}

/* ---------- Changes ---------- */

.changes {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}

.change {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  align-items: baseline;
  padding: 9px 0;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

.change + .change { border-top: 1px solid var(--line-soft); }

.badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.6;
  padding: 1px 9px;
  border-radius: 999px;
  text-align: center;
  background: var(--section-2);
  color: var(--ink-soft);
}

.change-new .badge {
  background: var(--brand-tint);
  color: var(--brand-deep);
}

.change-fixed .badge {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--muted);
}

.change-text b { color: var(--ink); font-weight: 600; }

.change-text code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--section-2);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--ink);
}

.change-text a {
  color: var(--brand);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.change-text a:hover { color: var(--brand-deep); }

@media (max-width: 560px) {
  .change {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .badge { justify-self: start; }
}
