/* The spec page (spec.html, written by tools/spec_page.py --site): about.css's prose, with the sections listed beside it. */
.spec .spec-layout { display: grid; grid-template-columns: 240px minmax(0, 900px); gap: 48px; justify-content: center; padding: 0 5vw; }
.spec .prose { max-width: 900px; margin: 0; padding: 5vh 0 90px; }
.spec .prose .kicker { font: 600 12.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent2); }
.spec .prose .note { color: var(--muted); border-left: 2px solid var(--accent2); padding-left: 16px; margin: 22px 0 34px; }
.spec .prose h2 { scroll-margin-top: 20px; border-top: 1px solid var(--line); padding-top: 40px; }
.spec .prose h3 { scroll-margin-top: 20px; color: var(--text); }
.spec .prose h4 { font-size: 16px; margin: 26px 0 8px; color: var(--text); }
.spec .prose pre.text { color: #cfcec8; }
.spec .prose code { white-space: normal; }
.spec .prose a { color: var(--accent); }
.spec .toc { position: sticky; top: 0; align-self: start; max-height: 100vh; overflow-y: auto; padding: 5vh 0 40px; display: flex; flex-direction: column; gap: 2px; }
.spec .toc a { display: flex; gap: 10px; padding: 6px 10px; border-radius: 8px; color: var(--muted); font-size: 14px; }
.spec .toc a b { font: 600 12px var(--mono); color: var(--faint); min-width: 18px; padding-top: 2px; }
.spec .toc a:hover { color: var(--text); background: #ffffff08; text-decoration: none; }
.spec .toc a.on { color: var(--text); background: #8ea2ff14; }
.spec .toc a.on b { color: var(--accent2); }
@media (max-width: 1000px) {
  .spec .spec-layout { grid-template-columns: 1fr; }
  .spec .toc { display: none; }
}
