/* Content pages: /install, /changelog, /contact, /privacy, 404. Uses the design tokens from system.css. */

/* system.css sizes every `main > section` to one screen (landing-page rhythm). Content pages flow instead. */
main.page > section.section { height: auto; min-height: 0; display: block; }
main.page > section.section > .wrap { height: auto; }
main.page > section.page-head { padding: calc(var(--nav) + var(--s-8)) 0 var(--s-7); }
main.page > section.page-block { padding: var(--s-8) 0; border-top: 1px solid var(--line); }
.page-head h1 { max-width: 20ch; }
.measure { max-width: 68ch; }
.back-link { color: var(--muted); text-decoration: none; }
.back-link:hover { color: var(--ink); }
.nav__link[aria-current="page"] { color: var(--action); }

/* Copy boxes (same look as the home page install block) */
.cmd { display: grid; gap: var(--s-3); justify-items: start; margin-top: var(--s-3); }
.cmd > pre { justify-self: stretch; margin: 0; padding: var(--s-3) var(--s-4); border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); font: 500 13.5px/1.6 var(--font-mono); color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.cmd__row { display: flex; align-items: center; gap: var(--s-3); }
.cmd__tip { font-size: var(--t-small); color: var(--ink); }

/* Lists */
.checks-list, .steps { display: grid; gap: var(--s-3); padding-left: 1.25em; margin: 0; }
.checks-list { list-style: disc; }
.steps { list-style: decimal; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.checks-list li::marker { color: var(--action); }
.steps li { padding-left: var(--s-2); }
.steps li::marker { font-weight: 600; color: var(--action); }

/* Downloads */
.dl-grid { display: grid; gap: var(--s-5); grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.dl-card { display: grid; gap: var(--s-4); align-content: start; scroll-margin-top: calc(var(--nav) + var(--s-4)); }
.dl-card h3 { font-size: var(--t-card); font-weight: 500; }
.dl-card .btn { justify-self: start; }
.dl-size { font-weight: 400; opacity: 0.8; }
.dl-note { padding: var(--s-3); border-left: 3px solid var(--action); background: var(--surface); border-radius: var(--r-sm); }
.dl-more { display: grid; gap: var(--s-2); list-style: none; padding: 0; margin: 0; }
.dl-more a { color: var(--ink); text-underline-offset: 3px; }
.sha { margin: 0; font-size: var(--t-small); color: var(--muted); overflow-wrap: anywhere; }
.sha code { font: 500 12px/1.5 var(--font-mono); color: var(--ink); }

/* Changelog list */
.cl-month__h { font-size: var(--t-lead); font-weight: 500; color: var(--muted); margin-bottom: var(--s-3); }
.cl-list { list-style: none; padding: 0; margin: 0; display: grid; }
.cl-item { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: var(--s-4); padding-block: var(--s-4); border-top: 1px solid var(--line); }
.cl-item__meta { display: flex; flex-direction: column; gap: var(--s-2); align-items: flex-start; }
.cl-item__h { font-size: var(--t-body); font-weight: 600; }
.cl-item__h a { color: var(--ink); text-decoration: none; }
.cl-item__h a:hover { text-decoration: underline; text-underline-offset: 3px; }
.cl-item__sum { color: var(--muted); max-width: 72ch; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 639px) { .cl-item { grid-template-columns: 1fr; gap: var(--s-2); } .cl-item__meta { flex-direction: row; align-items: center; } }

/* Release notes */
.rel { display: grid; gap: var(--s-4); padding-top: var(--s-5); border-top: 1px solid var(--line); scroll-margin-top: calc(var(--nav) + var(--s-4)); }
.rel__head h2 { font-size: var(--t-card); font-weight: 500; }

/* Rendered Markdown and long-form text */
.prose { max-width: 76ch; line-height: 1.65; overflow-wrap: anywhere; }
.prose > * + * { margin-top: var(--s-3); }
.prose :is(h2, h3, h4, h5, h6) { margin-top: var(--s-6); font-weight: 600; line-height: 1.3; }
.prose h2 { font-size: var(--t-card); font-weight: 500; }
.prose :is(h3, h4) { font-size: var(--t-body); }
.prose :is(h5, h6) { font-size: var(--t-small); text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.prose :is(ul, ol) { padding-left: 1.25em; display: grid; gap: var(--s-2); }
.prose a { color: var(--action); text-underline-offset: 3px; }
.prose code { font: 500 0.88em/1.4 var(--font-mono); background: var(--surface); padding: 0.1em 0.35em; border-radius: 4px; }
.prose pre { padding: var(--s-3) var(--s-4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); overflow-x: auto; }
.prose pre code { background: none; padding: 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: var(--t-small); display: block; overflow-x: auto; }
.prose :is(th, td) { border: 1px solid var(--line); padding: var(--s-2) var(--s-3); text-align: left; vertical-align: top; }
.prose blockquote { border-left: 3px solid var(--line); padding-left: var(--s-4); color: var(--muted); }
.prose img { max-width: 100%; height: auto; }

/* Contact */
.contact-grid { display: grid; gap: var(--s-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.card-h { font-size: var(--t-card); font-weight: 500; line-height: 1.3; }
.contact-note { margin-top: var(--s-6); }

/* Footer on content pages */
.site-footer { padding-block: var(--s-8, 64px) var(--s-6); border-top: 1px solid var(--line); }
.site-footer .footer__legal { margin-top: var(--s-7, 48px); display: flex; flex-wrap: wrap; gap: var(--s-3); }
.site-footer .footer__legal small { flex-basis: 100%; font-size: var(--t-label); color: var(--muted); line-height: 1.5; }

/* Jump links to each gateway */
.pill-row { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.pill-row .pill { text-decoration: none; color: var(--ink); }
