/* changelog: the take sheet. Each release opens on a slate (the control-room navy with the clapper stripe, version
   and date in Overpass Mono like a timecode), then its changes are listed on the white wall below. New in cobalt,
   Improved in ink, Fixed on the warm sunken tone. Tally red stays reserved for recording. */

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: 1px solid var(--line); }
.rel-index ul { display: flex; gap: 20px; 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(--font-time); font-weight: 700; font-size: 15px; color: var(--brand-ink); 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-family: var(--font-time); font-size: 12px; color: var(--muted); white-space: nowrap; }

.changelog .release { margin: 0 0 36px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; scroll-margin-top: 24px; }
.rel-head { position: relative; display: flex; align-items: baseline; gap: 16px; padding: 16px 20px 24px; background: var(--stage); color: var(--on-stage); }
.rel-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: var(--clapper); }
.rel-head .ver { font-family: var(--font-time); font-weight: 700; font-size: 26px; line-height: 1; color: var(--on-stage); text-decoration: none; }
.rel-head .ver::before { content: "TAKE "; font-size: 12px; font-weight: 600; letter-spacing: 0.1em; color: var(--on-stage-2); vertical-align: 4px; }
.rel-head .ver:hover, .rel-head .ver:focus-visible { color: var(--focus-stage); }
.rel-head .date { margin-left: auto; font-family: var(--font-time); font-size: 13px; color: var(--on-stage-2); white-space: nowrap; }

.changelog .entries { list-style: none; margin: 0; padding: 4px 20px 8px; max-width: none; }
.changelog .entry { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 4px 14px; margin: 0; padding: 12px 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: 2px 8px; border-radius: var(--radius-xs); font-size: 12px; font-weight: 700; line-height: 1.5; }
.entry--new .kind { background: var(--brand-soft); color: var(--brand-ink); }
.entry--improved .kind { border: 1px solid var(--line-strong); color: var(--ink); }
.entry--fixed .kind { background: var(--sunken); color: var(--ink-2); }
.changelog .from-review { display: inline-block; margin-left: 8px; font-size: 12px; color: var(--ink-2); white-space: nowrap; }

@media (max-width: 560px) {
  .rel-head { padding: 14px 14px 22px; }
  .changelog .entries { padding: 4px 14px 6px; }
  .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; border-left: 3px solid var(--stage); }
  .rel-index li { justify-content: space-between; padding: 7px 0 7px 12px; }
  .changelog .release { grid-column: 2; }
}
