/* article.css — knowledge base articles. Loaded after site.css. */
.art-head { background: var(--paper); border-bottom: 1px solid var(--line-soft); }
.art-head .wrap { padding-block: 4px 36px; }
.art-head h1 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; line-height: 1.12; max-width: 24ch; margin-block: 10px 14px; }
.art-head .lede { font-size: 18px; color: var(--slate); max-width: 62ch; }
.art-layout { display: grid; grid-template-columns: 190px minmax(0, 1fr) 250px; gap: 44px; padding-block: 40px; }
.toc { position: sticky; top: 76px; align-self: start; font-size: 13.5px; display: grid; gap: 4px; }
.toc h2 { font-family: var(--body); font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 6px; }
.toc a { text-decoration: none; color: var(--slate); padding: 5px 0 5px 12px; border-left: 2px solid var(--line); }
.toc a:hover { color: var(--ink); border-left-color: var(--ink); }
.toc a.on { color: var(--blue); border-left-color: var(--blue); font-weight: 700; }
.prose { max-width: 68ch; font-size: 16.5px; line-height: 1.75; color: #1E2632; }
.prose > * + * { margin-top: 18px; }
.prose h2 { font-size: 25px; font-weight: 800; margin-top: 40px; scroll-margin-top: 80px; }
.prose h3 { font-size: 18px; font-weight: 700; margin-top: 28px; }
.prose h2 + *, .prose h3 + * { margin-top: 10px; }
.prose ul, .prose ol { padding-left: 20px; display: grid; gap: 8px; }
.prose li::marker { color: var(--blue); }
.prose strong { color: var(--ink); }
.prose a { color: var(--blue); }
.prose img { display: block; width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--line-soft); }
.prose figure { margin: 24px 0 0; }
.prose figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); display: block; overflow-x: auto; }
.prose th { text-align: left; padding: 10px 14px; background: var(--ground); font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid var(--line); }
.prose td { padding: 10px 14px; border-top: 1px solid var(--line-soft); color: var(--slate); vertical-align: top; }
.prose .note { background: var(--blue-wash); border-radius: var(--r); padding: 16px 18px; font-size: 15px; color: #1C3A78; }
.prose .ref { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 40px; font-size: 14px; color: var(--muted); display: grid; gap: 6px; }
.prose .ref h3 { font-size: 15px; margin: 0; }
.prose .ref p { margin: 0; }
.prose .colour-swatch { display: inline-block; width: 14px; height: 14px; border-radius: 3px; vertical-align: middle; margin-right: 6px; border: 1px solid rgba(0,0,0,.1); }
.aside { align-self: start; position: sticky; top: 76px; display: grid; gap: 12px; }
.aside-card { background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--r); padding: 16px; display: grid; gap: 12px; }
.aside-card h2 { font-family: var(--body); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.aside-card p { font-size: 13.5px; color: var(--slate); }
.aside-links { display: grid; gap: 8px; font-size: 14px; }
.aside-links a { color: var(--slate); text-decoration: none; font-weight: 600; }
.aside-links a:hover { color: var(--blue); }
@media (max-width: 1180px) { .art-layout { grid-template-columns: 190px minmax(0, 1fr); } .aside { grid-column: 2; position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 820px) { .art-layout { grid-template-columns: 1fr; gap: 28px; } .toc, .aside { position: static; grid-column: auto; } .aside { grid-template-columns: 1fr; } }
