/* Reading pages use the existing site tokens. */
.content-page { background: var(--paper); }
.content-header, .content-footer { max-width: 1160px; margin: auto; padding: 1.25rem 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.content-header { border-bottom: 1px solid var(--line); }
.content-header nav, .content-footer nav { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; font-size: .88rem; }
.content-header nav a:hover, .content-footer a:hover { color: var(--blue); }
.content-main { max-width: 1160px; padding: 2rem 1.5rem 4rem; margin: auto; }
.breadcrumbs { display: flex; gap: .7rem; font-size: .8rem; color: var(--muted); margin-bottom: 2rem; }
.article-layout { display: grid; grid-template-columns: minmax(0, 820px) minmax(150px, 1fr); gap: 3rem; }
.article-header { margin-bottom: 2rem; }
.article-header h1 { font: 600 clamp(2rem, 4vw, 3.4rem)/1.12 var(--font-display); letter-spacing: -.035em; margin: 0 0 1.5rem; text-wrap: balance; }
.article-header > p { font-size: 1.1rem; line-height: 1.9; max-width: 70ch; }
.article-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.3rem; color: var(--muted); font-size: .78rem; margin-top: 1.35rem; }
.article-meta a { text-decoration: underline; text-underline-offset: 3px; }
.article-toc nav { position: sticky; top: 2rem; font-size: .8rem; line-height: 1.6; }
.article-toc nav > span { font-weight: 600; }
.article-toc ol { list-style: none; padding: 0; border-left: 1px solid var(--line); }
.article-toc li { padding: .45rem 0 .45rem 1rem; }
.article-toc a { color: var(--muted); }
.article-toc a:hover { color: var(--blue); }
.article-section { margin-top: 3rem; scroll-margin-top: 2rem; }
.article-section h2, .related-content h2 { font: 600 1.55rem/1.4 var(--font-display); margin: 0 0 1rem; letter-spacing: -.015em; }
.article-section > p { margin: .9rem 0; line-height: 1.95; }
.article-section a, .release-details a, .direct-download { color: var(--blue-deep); text-decoration: underline; text-underline-offset: 3px; }
.article-section ul, .article-section ol { padding-left: 1.4rem; }
.article-section li { padding-left: .35rem; margin: .7rem 0; }
.article-steps li::marker { color: var(--teal); font-weight: 600; }
.article-sources { font-size: .85rem; color: var(--muted); }
.article-links { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.article-table { overflow-x: auto; margin: 1.4rem 0; border: 1px solid var(--line); border-radius: 10px; }
.article-table table { border-collapse: collapse; text-align: left; width: 100%; font-size: .88rem; line-height: 1.7; }
.article-table th, .article-table td { padding: .8rem 1rem; min-width: 145px; vertical-align: top; border-bottom: 1px solid var(--line); }
.article-table thead { background: var(--blue-tint); }
.article-table tbody th { font-weight: 500; }
.article-table tr:last-child > * { border-bottom: 0; }
.content-downloads { display: flex; gap: 1.3rem; flex-wrap: wrap; margin: 1.7rem 0; }
.content-downloads > div { display: flex; flex-direction: column; align-items: flex-start; gap: .4rem; }
.content-downloads p, .direct-download, .release-details { font-size: .75rem; color: var(--muted); }
.content-downloads .btn { font-size: .86rem; padding: .65rem .9rem; }
.related-content { border-top: 1px solid var(--line); margin-top: 3.5rem; padding-top: 2rem; }
.content-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; }
.content-list > a { display: flex; gap: 1rem; align-items: center; justify-content: space-between; padding: 1.1rem 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.content-list > a > svg { flex-shrink: 0; color: var(--teal); }
.content-list > a:hover { color: var(--blue); }
.content-footer { font-size: .78rem; color: var(--muted); border-top: 1px solid var(--line); padding-block: 2rem; }
.not-found { max-width: 720px; margin: 14vh auto; padding: 2rem; }
.not-found > p { color: var(--teal); font: 500 1.5rem var(--font-mono); }
.not-found h1 { font: 600 2.5rem/1.2 var(--font-display); }
.not-found nav { display: flex; gap: 1.5rem; color: var(--blue); }

@media (max-width: 1000px) { .article-layout { grid-template-columns: minmax(0,1fr); } .article-toc { display: none; } }
@media (max-width: 600px) { .content-header { align-items: flex-start; gap: 1rem; padding: 1rem; } .content-header nav { justify-content: flex-end; gap: .5rem .9rem; font-size: .78rem; } .content-header nav > a:last-child { display: none; } .content-main { padding: 1.4rem 1rem 3rem; } .content-list { grid-template-columns: 1fr; } .article-header h1 { font-size: 2.15rem; } .article-header > p { font-size: 1rem; } .content-footer { flex-direction: column; align-items: flex-start; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
