/* Reading pages inherit the site's palette, typography and spacing. */
.article-layout{grid-template-columns:minmax(0,1fr) 264px;gap:48px;align-items:start}
.prose{min-width:0;overflow-wrap:anywhere}
.prose .chapter-heading{margin-top:76px;padding-top:32px;border-top:1px solid var(--line);font-size:27px;line-height:1.6;font-weight:500;letter-spacing:-.5px}
.prose .chapter-heading:first-child{margin-top:0}
.prose h3{line-height:1.7;font-size:20px;font-weight:500;margin-top:34px}
.prose h2,.prose h3,.prose h4{scroll-margin-top:32px}
.prose [tabindex="-1"]:focus{outline:none}
.table-scroll{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;margin:24px 0;border:1px solid var(--line)}
.table-scroll:focus-visible{outline:2px solid var(--muted);outline-offset:4px}
.prose .table-scroll table{margin:0;border-style:hidden;min-width:480px;font-size:13px;line-height:1.9}
.prose .table-scroll th{white-space:nowrap}
.language-notice{padding:16px 20px;background:var(--surface);color:var(--muted);font-size:13px;line-height:1.8;border-left:2px solid var(--muted)}
.toc{top:24px;padding-top:0;border:1px solid var(--line);background:var(--card)}
.toc summary{cursor:pointer;list-style:none}
.toc summary::-webkit-details-marker{display:none}
.toc summary:focus-visible{outline:2px solid var(--muted);outline-offset:-3px}
.toc-title{display:flex;align-items:center;gap:12px;padding:17px 16px;font-size:12px;font-weight:500}
.toc-title:before{content:'+';font-family:var(--mono);font-size:16px;color:var(--muted)}
.toc-panel[open]>.toc-title:before{content:'−'}
.toc-title .mono{margin-left:auto;color:var(--muted);font-size:10px;white-space:nowrap}
.toc-scroll{max-height:calc(100dvh - 110px);overflow-y:auto;overscroll-behavior:contain;padding:0 12px 12px;scrollbar-width:thin;border-top:1px solid var(--line)}
.toc-group{border-bottom:1px solid var(--line)}
.toc-group:last-child{border-bottom:0}
.toc-group>summary{display:flex;align-items:center;gap:5px;padding:3px 0}
.toc-group>summary:before{content:'›';flex:0 0 12px;font-size:17px;text-align:center;color:var(--muted);transition:transform .15s}
.toc-group[open]>summary:before{transform:rotate(90deg)}
.toc a{display:block;margin:0;padding:9px 8px;border-left:2px solid transparent;font-size:12px;line-height:1.8;color:var(--muted)}
.toc-group>summary>a{flex:1;margin:0;padding-left:6px}
.toc a:hover,.toc a.active{color:var(--ink);background:var(--surface);border-left-color:var(--ink)}
.toc-sections{padding:0 0 8px 20px}
.toc-sections a{font-size:11px;padding:6px 8px}
@media(max-width:1100px){.article-layout{gap:30px;grid-template-columns:minmax(0,1fr) 230px}}
@media(max-width:760px){.article-layout{display:flex;gap:28px}.toc{position:sticky;top:0;z-index:5;order:-1;width:100%;box-shadow:0 5px 12px color-mix(in srgb,var(--bg) 80%,transparent)}.toc-scroll{max-height:55dvh}.toc a{display:block;margin:0}.prose .chapter-heading{font-size:23px;margin-top:54px;padding-top:24px}.prose h3{font-size:18px}.prose h2,.prose h3,.prose h4{scroll-margin-top:80px}.toc-title{padding:13px 14px}.article-head h1{line-height:1.5}.prose .table-scroll table{font-size:12px}}
@media print{.toc{display:none}.article-layout{display:block}.table-scroll{overflow:visible;border:0}.prose .table-scroll table{min-width:0;font-size:9pt}.prose .chapter-heading{break-before:page}.prose .chapter-heading:first-child{break-before:auto}.language-notice{display:none}}
