/* What's new page (built from CHANGELOG.md by scripts/build_changelog.py). Colours come from site.css so dark mode follows the site. */
.changelog { padding-top: 28px; padding-bottom: 60px; }
.changelog > * { max-width: 900px; }  /* lines up with the header like every other page; the timeline stays 900 wide */
.changelog .crumbs { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.changelog .crumbs i { font-style: normal; opacity: .6; margin: 0 2px; }
.changelog h1 { font-size: var(--title); }
.changelog .sub { color: var(--muted); font-size: var(--intro); margin: 8px 0 26px; max-width: 62ch; }
.changelog .rel { position: relative; padding: 0 0 34px 26px; border-left: 2px solid var(--line); margin-left: 6px; }
.changelog .rel::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--bg); }
.changelog .rel:last-of-type { border-left-color: transparent; padding-bottom: 0; }
.changelog .meta { margin: 0; font-size: 14px; color: var(--muted); display: flex; gap: 10px; align-items: center; }
.changelog .ver { font-weight: 700; font-size: 12.5px; padding: 2px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.changelog .rel h2 { font-size: 24px; margin: 8px 0 8px; scroll-margin-top: 76px; }
.changelog .rel h2 a { color: var(--ink); }
.changelog .rel h2 a:hover { color: var(--accent); text-decoration: none; }
.changelog .summary { font-size: 17px; margin: 0 0 14px; max-width: 64ch; }
.changelog figure { margin: 0 0 16px; }
.changelog figure img { display: block; max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.changelog ul { margin: 0; padding-left: 20px; color: var(--muted); font-size: 15.5px; }
.changelog li { margin: 6px 0; }
.changelog li code { font-size: .88em; }
@media (max-width: 560px) { .changelog .rel { padding-left: 18px; } .changelog .rel h2 { font-size: 21px; } }

/* Stitch "What's new" screen: each release a card on the timeline, the newest with a filled version pill */

.changelog .rel { padding: 0 0 22px 34px; margin-left: 10px; }
.changelog .rel::before { left: -10px; top: 26px; width: 18px; height: 18px; background: var(--surface); border: 5px solid var(--line-strong); box-shadow: 0 0 0 4px var(--bg); }
.changelog .rel:first-of-type::before { border-color: var(--accent); }
.changelog .rel > * { position: relative; }
.changelog .rel { --pad: 26px; }
.changelog .rel > :first-child { margin-top: 0; }
.changelog .rel { background-clip: content-box; }
.changelog .rcard { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px 26px; box-shadow: 0 1px 2px rgba(17,21,28,.03); }
.changelog .meta .kind { margin-left: auto; }
.changelog .ver { font-family: var(--mono); background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); }
.changelog .rel:first-of-type .ver { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.changelog .meta time { font: 500 12.5px/1 var(--mono); }
.changelog .whatlabel { margin: 4px 0 8px; font: 600 11px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.changelog ul { list-style: none; padding: 0; color: var(--ink); }
.changelog li { position: relative; padding-left: 28px; }
.changelog li::before { content: ""; position: absolute; left: 0; top: .2em; width: 18px; height: 18px; border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 12%, var(--surface)) url("/assets/check.svg") center / 11px no-repeat; }
