/* What's new (whats-new.html, generated by tools/build-blog.mjs from content/whats-new/releases.md).
   Its own file so a change here does not re-version site.css for every blog page.
   One release per row: version and date in a narrow column that stays in view, notes beside it. */

.rel-list { max-width: 920px; padding-top: 18px; }
.rel {
  display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 8px 40px;
  padding: 44px 0; border-top: 1px solid var(--border-soft);
}
.rel:first-child { border-top: 0; }
.rel:target .rel-version a { background: var(--accent); color: #fff; }

.rel-head { align-self: start; position: sticky; top: 96px; }
.rel-version { font-size: 1rem; letter-spacing: 0; line-height: 1.4; }
.rel-version a {
  display: inline-block; font-family: var(--mono); font-weight: 700; color: var(--accent);
  background: var(--accent-soft); border-radius: 999px; padding: 3px 12px;
}
.rel-version a:hover { text-decoration: none; background: var(--accent); color: #fff; }
.rel-head time { display: block; margin-top: 10px; color: var(--text-3); font-size: 0.88rem; }

.rel-body > :first-child { margin-top: 0; }
.rel-title { font-size: clamp(1.3rem, 2.6vw, 1.6rem); font-weight: 700; line-height: 1.25; letter-spacing: -0.02em; }

/* "### New / Improved / Fixed" are labels, not headings to read: small caps with a colour dot.
   The dot carries the colour so the text keeps its contrast in both themes. */
.prose .rel-kind {
  display: flex; align-items: center; gap: 9px; margin-top: 1.9em;
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2);
}
.rel-kind::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--text-3); flex: none; }
.rel-kind-new::before { background: var(--green); }
.rel-kind-improved::before { background: var(--blue); }
.rel-kind-fixed::before { background: var(--amber); }
.prose .rel-kind + * { margin-top: 0.6em; }
.rel-body li + li { margin-top: 0.55em; }

@media (max-width: 760px) {
  .rel { grid-template-columns: 1fr; padding: 34px 0; }
  .rel-head { position: static; display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
  .rel-head time { margin-top: 0; }
}
