/* The changelog drawn as a window of Lucium (/nouveautes/, /en/changelog/; data/pages.json: "pane": "article", "depth": 2). Its content is
   written by data/changelog.mjs between its markers: the index of the versions (.rel-index), then one article.release per version, newest
   first, with its header (.rel-head: .rel-version, .rel-meta and its pill: « Dernière version », « En préparation ») and its groups
   (.rel-group, .rel-tag). Loaded after assets/article.css. Like it, it writes no colour of its own (design.test.mjs). */

.text-page .page-intro .small { margin-top: 12px; font-size: var(--small-size); }

/* ---------- the index of the versions ---------- */
/* Beside the sidebar, its titles are the index of the versions: this one shows on a phone, and when the sidebar is hidden. */
.text-page .rel-index { display: flex; flex-wrap: wrap; gap: 6px; max-width: var(--wide); margin: 0 0 clamp(32px, 5cqi, 48px); }
.text-page .rel-index a {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--text); font: 600 var(--small-size)/1 var(--font-ui); font-variant-numeric: tabular-nums; text-decoration: none;
}
.text-page .rel-index a:hover { border-color: var(--accent); color: var(--accent-text); }
@media (min-width: 761px) {
  :root:not(.sidebar-hidden) .text-page .rel-index { display: none; }
}

/* ---------- a version: its number and its state, then its groups ---------- */
.text-page .release { max-width: var(--wide); padding-block: clamp(28px, 4cqi, 44px); border-top: 1px solid var(--line); }
.text-page .release:first-of-type { padding-top: 0; border-top: 0; }
.text-page .rel-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 20px; }
.text-page .rel-version { font-size: clamp(30px, 3.4cqi, 40px); line-height: 1.05; font-variant-numeric: tabular-nums; }
.text-page .rel-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0; color: var(--text-2); font-size: var(--meta-size); }
.text-page .rel-intro { font-size: var(--lede-size); line-height: var(--lede-leading); }
.text-page .rel-group + .rel-group, .text-page .rel-intro + .rel-group { margin-top: 28px; }
/* The name of a group (« Ajouts », « Corrections »…), a label above its lines. */
.text-page .rel-tag { margin: 0 0 10px; color: var(--accent-text); font: 650 var(--meta-size)/1.3 var(--font-page); letter-spacing: 0.06em; text-transform: uppercase; }
.text-page .rel-group li + li { margin-top: 0.6em; }

/* The version in preparation is not out yet: it reads as a draft, on the ground of the cards, its edge dashed. */
.text-page .release:has(.rel-meta .pill-off) { padding: clamp(20px, 3cqi, 32px); border: 1px dashed var(--line-strong); border-radius: 14px; background: var(--surface-2); }
.text-page .release:has(.rel-meta .pill-off) + .release { border-top: 0; }
@container (max-width: 560px) {
  .text-page .release:has(.rel-meta .pill-off) { padding: 18px 16px; }
}

/* On a wide page the number of a version stays beside its lines as they scroll (under the toolbar of the window). */
@container (min-width: 900px) {
  .text-page .release { display: grid; grid-template-columns: 10em minmax(0, 1fr); gap: 0 clamp(28px, 4cqi, 48px); }
  .text-page .rel-head { position: sticky; top: 64px; align-self: start; flex-direction: column; align-items: flex-start; margin: 0; }
  .text-page .rel-meta { flex-direction: column; align-items: flex-start; }
}

/* ---------- the way to the download, at the end ---------- */
.text-page .closing { margin-top: clamp(40px, 6cqi, 64px); padding-top: 28px; border-top: 1px solid var(--line); }
.text-page .closing-line { font: var(--display-weight) clamp(24px, 3cqi, 34px)/1.15 var(--font-display); font-stretch: var(--display-stretch); letter-spacing: var(--display-tracking); }
.text-page .closing .cta-row { margin-top: 18px; }
