/* Releases and Wiki: what they add to site.css. Written by tools/site/build.py. */
/* The reading pages (releases, wiki, settings, report, 404) in the homepage's look (18 Nov 2026, the redesign Mel
   picked, direction A): one column of type on the page's own paper, hairlines between parts, no glass, no
   gradients, no capitals for labels. site.css holds the bar, the footer, the colours and the type. */
.doc { width: 100%; max-width: var(--container); margin-inline: auto; padding: var(--space-xl) var(--gutter) 0; }
.paper { min-width: 0; }
.kicker { font-size: var(--text-sm); color: var(--color-muted); margin: 0 0 var(--space-xs); }
.prose { max-width: 70ch; font-size: 1.0625rem; line-height: 1.68; overflow-wrap: anywhere; }
.prose h1 { font-size: var(--text-display-s); line-height: 1.04; margin: 0 0 var(--space-lg); max-width: 22ch; }
.prose h2 { font-size: 1.625rem; line-height: 1.2; letter-spacing: -0.015em; margin: var(--space-2xl) 0 var(--space-sm); padding-top: var(--space-lg); border-top: 1px solid var(--color-rule); }
.prose h3 { font-size: 1.1875rem; line-height: 1.3; letter-spacing: -0.01em; margin: var(--space-xl) 0 var(--space-xs); }
.prose p, .prose ul, .prose ol { margin: 0 0 var(--space-md); }
.prose ul, .prose ol { padding-left: var(--space-lg); }
.prose li { margin: var(--space-2xs) 0; }
.prose li::marker { color: var(--color-muted); }
.prose a { color: var(--color-accent); }
.prose strong { font-weight: 650; }
.prose code { font: 500 .88em/1.4 var(--font-mono); padding: 1px 5px; border-radius: 6px; background: var(--color-paper-2); }
.prose pre { overflow-x: auto; padding: var(--space-md); border-radius: 10px; background: var(--color-paper-2); }
.prose pre code { padding: 0; background: none; }
.prose img { max-width: 100%; height: auto; border-radius: 12px; outline: 1px solid color-mix(in oklab, var(--color-ink) 8%, transparent); outline-offset: -1px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 0.9375rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: var(--space-xs) var(--space-md) var(--space-xs) 0; border-bottom: 1px solid var(--color-rule); }
.prose blockquote { margin: 0 0 var(--space-md); padding: var(--space-2xs) 0 var(--space-2xs) var(--space-md); border-left: 2px solid var(--color-rule); color: var(--color-muted); }
.prose hr { border: 0; border-top: 1px solid var(--color-rule); margin: var(--space-xl) 0; }

/* Wiki: the pages listed beside the article on a wide screen, folded above it on a phone. */
.wiki { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: var(--space-2xl); align-items: start; }
.side { position: sticky; top: var(--space-lg); max-height: calc(100dvh - 2 * var(--space-lg)); overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: var(--color-rule) transparent; padding-right: var(--space-xs); }
.side .phone-only { display: none; }
.side h4 { margin: var(--space-lg) 0 var(--space-2xs); font-size: var(--text-sm); font-weight: 650; color: var(--color-muted); }
.side h4:first-of-type { margin-top: 0; }
.side a { display: block; padding: var(--space-2xs) 0; text-decoration: none; font-size: 0.9375rem; color: var(--color-ink-2); }
.side a:hover { color: var(--color-ink); }
.side a.on { color: var(--color-accent); font-weight: 650; }
.pager { display: flex; justify-content: space-between; gap: var(--space-md); flex-wrap: wrap; margin-top: var(--space-2xl); padding-top: var(--space-lg); border-top: 1px solid var(--color-rule); max-width: 70ch; }
.pager a { display: grid; gap: var(--space-3xs); text-decoration: none; max-width: 48%; }
.pager a small { font-size: var(--text-sm); color: var(--color-muted); }
.pager a b { font-weight: 650; color: var(--color-ink); }
.pager a:hover b { color: var(--color-accent); }
.pager a.next { margin-left: auto; text-align: right; }
@media (max-width: 860px) {
  .wiki { grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); }
  .side { position: static; max-height: none; overflow: visible; padding: 0; border-top: 1px solid var(--color-rule); border-bottom: 1px solid var(--color-rule); }
  .side .wide-only { display: none; }
  .side .phone-only { display: block; }
  .side summary { display: flex; align-items: center; justify-content: space-between; min-height: 44px; cursor: pointer; font-weight: 650; list-style: none; }
  .side summary::-webkit-details-marker { display: none; }
  .side details[open] summary { margin-bottom: var(--space-xs); }
  .side details[open] nav { padding-bottom: var(--space-md); }
  .side summary svg { color: var(--color-muted); transition: transform var(--dur-short) var(--ease-out); }
  .side details[open] summary svg { transform: rotate(180deg); }
}

/* Releases: a dropdown that stays in reach down the page, and each version's facts beside its notes. */
.picker { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: var(--space-sm); width: fit-content; max-width: 100%; margin: var(--space-xs) 0; padding: var(--space-xs) 0; background: var(--color-paper); }
.picker label { font-size: var(--text-sm); color: var(--color-muted); }
.select { position: relative; min-width: 0; }
.select select { -webkit-appearance: none; appearance: none; max-width: 100%; min-height: 44px; font: inherit; font-weight: 650; color: var(--color-ink); cursor: pointer;
  background: var(--color-paper); border: 1px solid var(--color-muted); border-radius: 10px; padding: 0 var(--space-2xl) 0 var(--space-md); font-variant-numeric: tabular-nums; }
.select select:hover { border-color: var(--color-ink); }
.select select option { color: initial; }
.select svg { position: absolute; right: var(--space-sm); top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--color-muted); pointer-events: none; }
@media (max-width: 480px) { .picker label { display: none; } }
.release { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: var(--space-2xl); padding: var(--space-2xl) 0; border-top: 1px solid var(--color-rule); scroll-margin-top: 80px; }
.release:first-of-type { border-top: 0; }
.meta { min-width: 0; }
.metacard { position: sticky; top: 76px; display: grid; gap: var(--space-xs); }
.metacard .kick { font-size: var(--text-sm); color: var(--color-muted); }
.release.latest .metacard .kick { color: var(--color-accent); font-weight: 650; }
.metacard .v { font-size: 2.5rem; font-weight: 650; letter-spacing: -0.02em; line-height: 1.05; white-space: nowrap; font-variant-numeric: tabular-nums; }
.metacard .what { font-weight: 600; line-height: 1.35; }
.metacard time { color: var(--color-muted); }
.dl { display: inline-flex; align-items: center; gap: var(--space-xs); justify-self: start; min-height: 44px; margin-top: var(--space-xs); padding: 0 var(--space-md); border-radius: 10px;
  border: 1px solid var(--color-muted); color: var(--color-ink); text-decoration: none; font-weight: 650; transition: border-color var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out); }
.dl svg { width: 20px; height: 20px; flex: none; }
.dl span, .dl small { white-space: nowrap; }
.dl small { font-weight: 400; color: var(--color-muted); font-variant-numeric: tabular-nums; }
.dl:hover { border-color: var(--color-ink); }
.dl:active { transform: translateY(1px); }
.dl.now { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-ink); }
.dl.now small { color: inherit; opacity: .85; }
.dl.now:hover { background: color-mix(in oklab, var(--color-accent) 86%, var(--color-ink)); }
.gh { font-size: var(--text-sm); color: var(--color-muted); justify-self: start; }
.gh:hover { color: var(--color-ink); }
.release .cover { margin: 0 0 var(--space-lg); width: 100%; max-width: 640px; height: auto; border-radius: 12px; display: block; }
/* A major version (x.y, the ones with a release cover) wears its cover's colours (Mel's pick of 25 Oct 2026, kept
   in the redesign on his word of 18 Nov): the card in the cover's gradient, its words white, its button white. */
.release.major .metacard { padding: var(--space-lg); border-radius: var(--radius-card); background: var(--cov); color: var(--color-on-cov); }
.release.major .metacard .v, .release.major .metacard time, .release.major .metacard .what, .release.major .metacard .kick { color: var(--color-on-cov); }
.release.major .metacard .dl { color: var(--color-on-cov); border-color: color-mix(in oklab, var(--color-on-cov) 70%, transparent); background: color-mix(in oklab, var(--color-on-cov) 12%, transparent); }
.release.major .metacard .dl small { color: inherit; opacity: .85; }
.release.major .metacard .dl.now { background: var(--color-on-cov); border-color: var(--color-on-cov); color: var(--color-cov-ink); }
.release.major .metacard .gh { color: color-mix(in oklab, var(--color-on-cov) 85%, transparent); }
@media (max-width: 800px) {
  .release { grid-template-columns: minmax(0, 1fr); gap: var(--space-md); }
  .metacard { position: static; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; column-gap: var(--space-md); }
  .metacard .kick, .metacard .v, .metacard .what, .metacard time { grid-column: 1; }
  .metacard .dl, .metacard .gh { grid-column: 1 / -1; }
}

/* Where is that setting: one section per screen. */
.setpage h2 { font-size: 1.375rem; }
.setpage ul { list-style: none; padding: 0; }
.setpage li { padding: var(--space-xs) 0; border-bottom: 1px solid var(--color-rule); margin: 0; }
.setpage li small { color: var(--color-muted); }

.form { display: grid; gap: 18px; max-width: 70ch; margin-top: 22px; position: relative; }
.form label { display: grid; gap: 6px; font-weight: 620; font-size: 15.5px; }
.form .hint { font-weight: 400; color: var(--muted); font-size: 14.5px; line-height: 1.45; }
.form input, .form select, .form textarea { font: inherit; font-weight: 400; color: var(--ink); background: var(--color-paper); border: 1px solid var(--color-muted);
  border-radius: 10px; padding: 11px 13px; width: 100%; box-sizing: border-box; min-width: 0; }
.form textarea { min-height: 7.5em; resize: vertical; }
.form textarea.log { font: 500 13.5px/1.5 ui-monospace, "SF Mono", Menlo, monospace; min-height: 9em; }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.form .trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form button { justify-self: start; min-height: 48px; font: inherit; font-weight: 650; color: var(--color-accent-ink); background: var(--color-accent); border: 0; border-radius: 12px; padding: 0 var(--space-lg); cursor: pointer; }
.form button:hover { background: color-mix(in oklab, var(--color-accent) 86%, var(--color-ink)); }
.form button[disabled] { opacity: .6; cursor: progress; }
.form .small { font-size: 14px; color: var(--muted); margin: 0; }
.form .small a { color: var(--accent); }
.sent { padding: 16px 18px; border-radius: 16px; border: 1px solid var(--hair); background: var(--chip); font-size: 16px; line-height: 1.55; }
.sent.bad { border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.sent a { color: var(--accent); font-weight: 620; }
.sent button { margin-left: 10px; min-height: 36px; font: inherit; font-size: 14px; color: var(--accent); background: none; border: 1px solid var(--hair); border-radius: 8px; padding: 0 12px; cursor: pointer; }

/* Ask: its look is in site.css (18 Nov 2026), shared with the homepage and the download page. */
