/* changelog: the recorder's log. Each release is a light sheet in the graphite case, headed by a strip of tape with
   the version and date stamped in Plex Mono; changes are log lines with a status code: NEW in saved green,
   IMPROVED in the link green, FIXED in the alarm orange. The version list runs down the case on wide screens. */

main.doc.changelog { 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 26px; border-radius: var(--radius-sm); background: var(--frame); }
.rel-index ul { display: flex; gap: 20px; overflow-x: auto; margin: 0; padding: 10px 14px; list-style: none; }
.rel-index li { flex: none; display: flex; align-items: baseline; gap: 8px; margin: 0; }
.rel-index a { font-family: var(--mono); font-size: 14px; color: var(--vault-ink); text-decoration: none; white-space: nowrap; }
.rel-index a:hover, .rel-index a:focus-visible { color: #4cc27e; text-decoration: underline; text-underline-offset: 3px; }
.rel-index time { font-family: var(--mono); font-size: 12px; color: var(--vault-muted); white-space: nowrap; }

.changelog .release { margin: 0 0 32px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; scroll-margin-top: 24px; }
.rel-head { display: flex; align-items: center; gap: 14px; padding: 10px 16px; background-color: var(--tape); background-image: repeating-linear-gradient(90deg, var(--tick) 0 1px, transparent 1px 10px); background-size: 100% 6px; background-repeat: no-repeat; background-position: 0 0; color: var(--vault-ink); }
.rel-head .ver { font-family: var(--mono); font-size: 20px; color: var(--vault-ink); text-decoration: none; }
.rel-head .ver::before { content: "REL "; font-size: 12px; color: var(--vault-muted); }
.rel-head .ver:hover, .rel-head .ver:focus-visible { color: #4cc27e; }
.rel-head .date { margin-left: auto; font-family: var(--mono); font-size: 13px; color: var(--vault-muted); white-space: nowrap; }

.changelog .entries { list-style: none; margin: 0; padding: 4px 16px 6px; max-width: none; }
.changelog .entry { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 2px 12px; margin: 0; padding: 10px 0; border-bottom: 1px dashed var(--line); line-height: 1.55; }
.changelog .entry:last-child { border-bottom: 0; }
.changelog .kind { align-self: start; margin-top: 3px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
.changelog .kind::before { content: "\25CF\00a0"; }
.entry--new .kind { color: var(--link); }
.entry--improved .kind { color: var(--muted); }
.entry--fixed .kind { color: var(--alarm-text); }
.changelog .from-review { display: inline-block; margin-left: 8px; font-family: var(--mono); font-size: 11px; color: var(--muted); white-space: nowrap; }

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

@media (min-width: 940px) {
  main.doc.changelog { grid-template-columns: 150px minmax(0, 760px); justify-content: center; padding-left: 24px; padding-right: 24px; }
  .rel-index { grid-column: 1; grid-row: 3 / span 200; position: sticky; top: 24px; margin: 0; }
  .rel-index ul { flex-direction: column; gap: 0; overflow: visible; padding: 6px 12px; }
  .rel-index li { justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--bar); }
  .rel-index li:last-child { border-bottom: 0; }
  .changelog .release { grid-column: 2; }
}
