/* Long-form pages: /updates, /roadmap and the legal documents. Loaded after site.css, so every token,
   font and component there applies. No inline styles anywhere — the CSP is style-src 'self', which is why
   the progress bars are native <progress> elements rather than a div with a width on it. */

.doc { padding-bottom: 64px; }
.doc-head { padding-block: clamp(28px, 6vw, 64px) 22px; max-width: 720px; }
.doc-head h1 { font-size: clamp(2.1rem, 6vw, 3rem); margin: 0 0 14px; }
.doc-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px;
  margin: 18px 0 0; color: var(--muted); font-size: .9rem;
}
.doc-meta a { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); text-decoration: none; }
.doc-meta a span { text-decoration: underline; }
.doc-meta a:hover span { text-decoration-thickness: 2px; }
.doc-meta svg { width: 15px; height: 15px; }

/* Prose: the rendered markdown. Everything inside is goldmark's output, so the selectors are plain tags. */
.prose { max-width: 70ch; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font: 600 1.45rem/1.3 var(--serif); margin: 34px 0 10px; }
.prose h3 {
  font: 500 .78rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: .09em;
  color: var(--accent); margin: 26px 0 8px;
}
.prose h4 { font: 600 1.05rem/1.4 var(--sans); margin: 20px 0 6px; }
.prose p, .prose li { color: var(--text); text-wrap: pretty; }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin: 5px 0; }
.prose li::marker { color: var(--muted); }
.prose a { color: var(--accent); text-underline-offset: 2px; }
.prose code {
  font: 400 .86em/1.5 var(--mono); background: var(--accent-soft); color: var(--text);
  padding: 1px 5px; border-radius: 5px;
}
.prose pre {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 16px; overflow-x: auto;
}
.prose pre code { background: none; padding: 0; }
.prose blockquote {
  margin: 0 0 16px; padding: 2px 0 2px 16px; border-left: 3px solid var(--accent-soft);
  color: var(--muted); font-style: italic;
}
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 28px 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: .94rem; }
.prose th, .prose td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.prose th { font: 500 .74rem/1.2 var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }

/* /updates: one article per release. */
.release { padding-block: 10px 6px; border-top: 1px solid var(--border); }
.release:first-of-type { border-top: 0; }
.release h2 {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px;
  margin: 28px 0 14px; font: 700 1.6rem/1.2 var(--serif); scroll-margin-top: 20px;
}
.release h2 time { color: var(--muted); font: 400 .82rem/1 var(--mono); }
.release .prose h3 { margin-top: 20px; }

/* /roadmap. */
.bar {
  appearance: none; -webkit-appearance: none; border: 0;
  display: block; width: 100%; max-width: 420px; height: 8px; margin: 18px 0 0;
  border-radius: 999px; background: var(--accent-soft); color: var(--accent); overflow: hidden;
}
.bar-total { height: 12px; max-width: 520px; }
.bar::-webkit-progress-bar { background: var(--accent-soft); border-radius: 999px; }
.bar::-webkit-progress-value {
  background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 999px;
}
.bar::-moz-progress-bar { background: var(--accent); border-radius: 999px; }

.rm-section { padding-block: 26px 4px; border-top: 1px solid var(--border); }
.rm-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.rm-head h2 { margin: 0; font: 600 1.3rem/1.3 var(--serif); scroll-margin-top: 20px; }
.rm-head .pill { display: inline-flex; align-items: center; gap: 5px; }
.rm-head .pill svg { width: 14px; height: 14px; }
.rm-count { color: var(--muted); font: 400 .8rem/1 var(--mono); }
.rm-section .bar { margin-top: 12px; }
.rm-list { list-style: none; margin: 14px 0 0; padding: 0; }
.rm-item { display: flex; gap: 10px; align-items: baseline; padding: 5px 0; max-width: 72ch; }
.rm-box {
  flex: none; width: 17px; height: 17px; border: 1px solid var(--border); border-radius: 5px;
  display: inline-grid; place-items: center; font-size: .72rem; color: var(--muted);
  background: var(--surface); translate: 0 3px;
}
.rm-item.is-done .rm-box { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.rm-item.is-done .rm-text { color: var(--muted); }
.rm-text code { font: 400 .85em/1.5 var(--mono); background: var(--accent-soft); padding: 1px 5px; border-radius: 5px; }
.rm-note { margin: 10px 0 0; color: var(--muted); font-size: .88rem; max-width: 70ch; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (prefers-reduced-motion: no-preference) {
  .bar::-webkit-progress-value { transition: inline-size .4s ease; }
}

/* News: the listing and one post. */
.news-item { padding: 22px 0; border-bottom: 1px solid var(--border); }
.news-item:last-of-type { border-bottom: 0; }
.news-item h2 { margin: 0 0 6px; font: 600 1.28rem/1.3 var(--serif); }
.news-item h2 a { color: inherit; text-decoration: none; }
.news-item h2 a:hover { color: var(--accent); }
.news-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
  margin: 0 0 8px; color: var(--muted); font-size: .82rem;
}
.news-source::before { content: "·"; margin-right: .5rem; }
.news-summary { margin: 0 0 8px; }
.news-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin: 8px 0 0; }

/* The label that says a machine wrote the first draft. Quiet, but never hidden: it is on the listing,
   the post and every entry of the feed. */
.ai-label {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .15rem .5rem; border: 1px solid var(--border); border-radius: 999px;
  color: var(--muted); font-size: .72rem; white-space: nowrap;
}
.ai-label svg { width: 12px; height: 12px; }

.news-foot { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--border); }
.news-cite { margin: 0 0 8px; color: var(--muted); font-size: .88rem; overflow-wrap: anywhere; }
.news-cite svg { width: 13px; height: 13px; vertical-align: -2px; }
.news-tool { margin: 8px 0 0; font-size: .9rem; }
