/* ==========================================================================================================================
   /changelog (built 27 Nov 2026, shipped 1 Dec with Release 24, on Andrej's go).
   A public, search-excluded page that lists what changed in the Machines: the biggest upgrades as cards on a dated rail, the
   small fixes as a compact list by month. Loaded after site-kit.css; uses the kit's section, pill, heading and lede classes and
   the house tokens only. The page colour is the house petrol (as /about); each card takes the colour of the Machine it is about,
   from the same list the menu uses (tools/site-menu.js MACHINES). Burnt orange appears nowhere: nothing here is a buy button.
   ========================================================================================================================== */

/* the page is on the house scheme (<body data-scheme="house">); each card and chip carries its Machine's data-scheme, so every colour comes
   from assets/site-4a.css. .cl-ink is the one neutral: "Every Machine" and "Full Stack" in ink. The focus ring stays petrol (house rule). */
.cl-ink { --mc: var(--ink); --mc-on: var(--cream); --mc-label: var(--ink); --mc-tint: var(--hairline); }
.page-changelog main :is(h1, h2, h3) { text-wrap: balance; }
.page-changelog main :is(p, li) { text-wrap: pretty; }
.page-changelog main { overflow: clip; }

/* ---------- the top ---------- */
.cl-h1 { margin: 0 0 20px; font-family: var(--font-display); font-weight: 400; font-size: clamp(42px, 5.2vw, 62px); line-height: 1.02; letter-spacing: -.014em; color: var(--ink); }
.cl-h1 em { font-style: italic; color: var(--mc-label); }
.cl-jump { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 22px 0 0; padding: 0; list-style: none; }
.cl-jump a, .cl-steps a { display: inline-block; padding: 6px 0; color: var(--ink); font: 600 15px/1.3 var(--font-ui); text-decoration: underline; text-decoration-color: var(--mc-label); text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.cl-jump a:hover { color: var(--mc-label); }
.page-changelog a:focus-visible { outline: 3px solid var(--petrol); outline-offset: 3px; border-radius: 3px; }

/* ---------- the biggest upgrades: a dated rail, one card each ---------- */
.cl-cards { max-width: 940px; margin: 0; padding: 0; list-style: none; display: grid; gap: 22px; }
.cl-item { position: relative; display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 0 32px; }
.cl-item::before { content: ""; position: absolute; left: 166px; top: 0; bottom: -22px; width: 1px; background: var(--keyline); }
.cl-item:last-child::before { bottom: 0; }
.cl-item::after { content: ""; position: absolute; left: 157.5px; top: 21px; box-sizing: border-box; width: 18px; height: 18px; border-radius: 50%; background: var(--mc) padding-box; border: 4px solid var(--stock); }
.cl-when { margin: 0; padding-top: 22px; text-align: right; font: 400 11px/1.4 var(--font-mono); letter-spacing: .06em; color: var(--ink-dim); }
.cl-card { padding: 22px 26px 24px; border: 1px solid var(--keyline); border-top: 4px solid var(--mc); border-radius: var(--r-card); background: var(--k-card); }
.cl-title { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: var(--k-h3); line-height: 1.15; color: var(--ink); }
.cl-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
.cl-tag { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px 4px 9px; border-radius: 999px; background: var(--k-pill-bg, var(--mc-tint)); border: 1px solid var(--k-pill-line, color-mix(in srgb, var(--mc-label) 24%, #fff)); color: var(--k-pill-ink, var(--mc-label)); font: 700 11.5px/1.3 var(--font-ui); letter-spacing: .04em; }
.cl-tag::before { content: ""; flex: 0 0 7px; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.cl-lines { display: grid; gap: 10px; max-width: 66ch; margin: 16px 0 0; padding: 0; list-style: none; }
.cl-lines li { position: relative; padding-left: 20px; font: 400 16px/1.55 var(--font-ui); color: var(--ink-body); }
.cl-lines li::before { content: ""; position: absolute; left: 3px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--mc-label); }

/* ---------- the small fixes, by month ---------- */
.cl-month { margin: 0 0 40px; }
.cl-month:last-child { margin-bottom: 0; }
.cl-month-h { margin: 0 0 6px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); font-family: var(--font-display); font-weight: 400; font-size: var(--k-h3); line-height: 1.15; color: var(--ink); }
ul.cl-small { margin: 0; padding: 0; list-style: none; }
ul.cl-small li { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 0 18px; padding: 13px 0; border-bottom: 1px solid var(--hairline); }
ul.cl-small time { padding-top: 4px; font: 400 11px/1.6 var(--font-mono); letter-spacing: .06em; color: var(--ink-dim); white-space: nowrap; }
ul.cl-small p { margin: 0; font: 400 15.5px/1.55 var(--font-ui); color: var(--ink-body); }
ul.cl-small p b { font-weight: 700; color: var(--ink); }

/* ---------- how an owner gets an update ---------- */
.cl-steps { display: grid; gap: 12px; margin: 0 0 20px; padding: 0; list-style: none; counter-reset: cl; }
.cl-steps li { counter-increment: cl; display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: var(--r-tint); background: var(--paper); border: 1px solid var(--keyline); font: 600 16px/1.45 var(--font-ui); color: var(--ink); }
.cl-steps li::before { content: counter(cl); display: grid; place-items: center; flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%; background: var(--mc); color: var(--mc-on); font: 800 14px/1 var(--font-ui); }
.cl-note { max-width: 640px; margin: 0; font: 400 16px/1.6 var(--font-ui); color: var(--ink-body); }

/* the small list and the update note stay a readable column, on the same left edge as everything else */
.cl-small .k-in > *, .cl-update .k-in > * { max-width: 820px; }

/* ---------- phones: the rail goes, the date sits above its card ---------- */
@media (max-width: 760px) {
  .cl-item { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .cl-item::before, .cl-item::after { display: none; }
  .cl-when { padding: 0; text-align: left; }
  .cl-card { padding: 20px 18px 22px; }
  .cl-lines li { font-size: 15.5px; }
  ul.cl-small li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  ul.cl-small time { padding: 0; }
}

/* ---------- deliverable updates (1 Dec): the latest files at the top, and a "New files" tag on every release ---------- */
.cl-latest { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 22px 0 0; padding: 10px 18px; border: 1px solid var(--keyline); border-radius: 999px; background: var(--k-card); font: 400 15px/1.4 var(--font-ui); color: var(--ink-body); }
.cl-latest-k { font: 400 11px/1.4 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-dim); }
.cl-latest b { font-weight: 700; color: var(--ink); }
.cl-latest a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--mc-label); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.cl-latest a:hover { color: var(--mc-label); }
.cl-files { display: inline-block; padding: 3px 9px; border-radius: 999px; background: var(--petrol); color: var(--cream); font: 700 10.5px/1.3 var(--font-ui); letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.cl-when .cl-files { display: table; margin: 8px 0 0 auto; }
.cl-files--sm { margin-right: 4px; padding: 2px 7px; font-size: 9.5px; vertical-align: 1px; }
@media (max-width: 760px) {
  .cl-when { display: flex; align-items: center; gap: 10px; }
  .cl-when .cl-files { display: inline-block; margin: 0; }
  .cl-latest { border-radius: var(--r-tint); }
}
