/* changelog: a galley proof. Each release is a proof slip pinned on the cream page with the site's hard offset
   shadow; the version sits in the margin like a slug, and every change carries its proof mark: sage tick for New,
   plum for Improved, yellow pencil for Fixed. A sticky slug list on wide screens, a ruled strip on phones. */

main.doc.changelog { max-width: 1060px; display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 40px; align-items: start; }
.changelog > h1, .changelog > .lede { grid-column: 1 / -1; }

.rel-index { margin: 4px 0 28px; border-block: 1.5px dashed var(--rule); }
.rel-index ul { display: flex; gap: 22px; overflow-x: auto; margin: 0; padding: 10px 0; list-style: none; }
.rel-index li { flex: none; display: flex; align-items: baseline; gap: 8px; margin: 0; }
.rel-index a { font-family: var(--head); font-weight: 700; font-size: 17px; font-variant-numeric: tabular-nums; color: var(--plum-text); text-decoration: none; white-space: nowrap; }
.rel-index a:hover, .rel-index a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.rel-index time { font-size: 13px; color: var(--muted); white-space: nowrap; }

.changelog .release { margin: 0 0 36px; padding: 20px 22px 8px; background: var(--white); border: 1.5px solid var(--ink); border-radius: 4px; box-shadow: var(--shadow); scroll-margin-top: 24px; }
.rel-head { display: flex; align-items: baseline; gap: 14px; padding-bottom: 12px; border-bottom: 1.5px dashed var(--rule); }
.rel-head .ver { font-family: var(--head); font-weight: 800; font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; color: var(--ink); text-decoration: none; }
.rel-head .ver::before { content: "v"; font-weight: 600; color: var(--plum-text); margin-right: 1px; }
.rel-head .ver:hover, .rel-head .ver:focus-visible { color: var(--plum-text); }
.rel-head .date { margin-left: auto; font-size: 13px; color: var(--muted); white-space: nowrap; }

.changelog .entries { list-style: none; margin: 0; padding: 0; max-width: none; }
.changelog .entry { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 4px 14px; margin: 0; padding: 11px 0; border-bottom: 1px solid var(--line); line-height: 1.55; }
.changelog .entry:last-child { border-bottom: 0; }
.changelog .kind { justify-self: start; align-self: start; margin-top: 2px; padding: 1px 8px; border-radius: 3px; font-size: 12px; font-weight: 700; letter-spacing: 0.03em; line-height: 1.6; }
.entry--new .kind { background: var(--sage-tint); color: var(--sage); }
.entry--new .kind::before { content: "\2713\00a0"; }
.entry--improved .kind { background: var(--plum-tint); color: var(--plum-text); }
.entry--fixed .kind { background: var(--tag); color: var(--on-tag); }
.changelog .from-review { display: inline-block; margin-left: 8px; font-size: 12px; font-style: italic; color: var(--plum-text); white-space: nowrap; }

@media (max-width: 560px) {
  .changelog .release { padding: 16px 14px 4px; }
  .changelog .entry { grid-template-columns: minmax(0, 1fr); }
}

@media (min-width: 940px) {
  main.doc.changelog { grid-template-columns: 150px minmax(0, 1fr); }
  .rel-index { grid-column: 1; grid-row: 3 / span 200; position: sticky; top: 24px; margin: 0; border: 0; }
  .rel-index ul { flex-direction: column; gap: 0; overflow: visible; padding: 0; }
  .rel-index li { justify-content: space-between; padding: 7px 0; border-bottom: 1.5px dashed var(--rule); }
  .changelog .release { grid-column: 2; }
}
