.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.article-body { width: 100%; min-width: 0; max-width: 820px; }
.article-body > p, .article-body > ul, .article-body > ol { max-width: 760px; }
.article-body li + li { margin-top: .45rem; }
.article-body table { width: 100%; border-collapse: collapse; margin: 1.5rem 0 2.5rem; background: var(--white); font-size: .92rem; }
.article-body th, .article-body td { padding: .75rem; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.article-body th { background: var(--navy-900); color: var(--white); font-family: var(--font-mono); font-size: .75rem; letter-spacing: .03em; }
.table-scroll { width: 100%; max-width: 100%; margin: 1.5rem 0 2.5rem; overflow-x: auto; overscroll-behavior-x: contain; border: 1px solid var(--line); background: var(--white); }
.table-scroll > table { width: 100%; min-width: var(--table-min-width, 680px); margin: 0; }
.table-scroll:focus-visible { outline: 3px solid var(--teal-600); outline-offset: 3px; }
.article-body code, .formula { font-family: var(--font-mono); }
.formula { margin: 1.3rem 0; padding: 1rem; border: 1px solid var(--line); border-left: 4px solid var(--teal-600); background: var(--paper); overflow-x: auto; }
.sidebar { position: sticky; top: 96px; padding: 1.2rem; border-top: 4px solid var(--teal-600); background: var(--navy-900); color: #d8e4e8; }
.sidebar h2 { margin: 0 0 1rem; color: var(--white); font-size: 1.2rem; }
.sidebar ul { margin: 0; padding: 0; list-style: none; }
.sidebar li + li { border-top: 1px solid #365461; }
.sidebar a { display: block; padding: .72rem 0; color: #e7f2f4; }
.source-list { padding-left: 1.2rem; font-size: .92rem; }
.source-list a { overflow-wrap: anywhere; }
.worked-example { margin: 2rem 0; padding: 1.3rem; border: 1px solid var(--blue-700); background: rgba(220,234,240,.6); }
.related-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1px; margin-top: 1.5rem; border: 1px solid var(--line); background: var(--line); }
.related-grid a { display: block; min-height: 100px; padding: 1rem; background: var(--white); color: var(--navy-900); font-weight: 700; }
@media (max-width: 880px) { .content-layout { grid-template-columns: 1fr; } .sidebar { position: static; } }
@media (max-width: 560px) { .article-body table { display: block; overflow-x: auto; } .table-scroll > table { display: table; overflow: visible; } .related-grid { grid-template-columns: 1fr; } }
@media print { .site-header, .site-footer, .breadcrumbs, .sidebar, .related-grid, .hero-actions { display: none !important; } body { background: white; } .page-shell { max-width: none; padding: 0; } }
