/* Method & sources — the readable sheet. */
body.world-body.docs-body { background: var(--sheet-ground); color: var(--sheet-ink); }
body.world-body.docs-body .world-main { color: var(--sheet-ink); }
body.world-body.docs-body .world-footer { color: var(--sheet-muted); border-top-color: var(--sheet-rule); }
.docs-head { max-width: 980px; margin-bottom: 28px; }
.docs-head h1 { margin: 0; font-size: clamp(36px, 4.6vw, 60px); line-height: 1.02; letter-spacing: -.045em; font-weight: 500; }
.docs-lede { max-width: 820px; color: var(--sheet-muted); font-size: 15px; }
.docs-grid { display: grid; grid-template-columns: 210px minmax(0, 860px); gap: 44px; align-items: start; }
.docs-toc { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 2px; border-left: 1px solid var(--sheet-rule); padding-left: 14px; }
.docs-toc a { color: var(--sheet-muted); text-decoration: none; font-size: 13px; padding: 4px 0; }
.docs-toc a:hover { color: var(--sheet-accent); }
.docs-article { min-width: 0; }
.docs-article section { margin-bottom: 38px; }
.docs-article h2 { margin: 0 0 10px; font-size: 24px; font-weight: 500; letter-spacing: -.03em; }
.docs-article h3 { margin: 18px 0 6px; font-size: 15px; font-weight: 600; }
.docs-article p, .docs-article li { color: var(--t-soft); font-size: 13px; line-height: 1.65; }
.docs-article ul { padding-left: 18px; }
.docs-article li { margin-bottom: 6px; }
.docs-article code { font-family: "IBM Plex Mono", monospace; font-size: 13px; background: var(--t-ov2); padding: 1px 4px; border-radius: 3px; }
.docs-table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 12px 0 16px; }
.docs-table th { text-align: left; color: var(--sheet-muted); font-size: 12px; letter-spacing: normal; border-bottom: 1px solid var(--sheet-rule); padding: 0 8px 7px; }
.docs-table td { border-bottom: 1px solid var(--t-rule); padding: 8px; vertical-align: top; color: var(--t-soft); }
.docs-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.formula { background: var(--t-code-bg); color: var(--t-code-ink); border-radius: 7px; padding: 14px 16px; font-family: "IBM Plex Mono", monospace; font-size: 12px; line-height: 1.7; overflow-x: auto; margin: 12px 0 16px; }
.docs-meta { color: var(--sheet-muted); font-size: 12px; border-top: 1px solid var(--sheet-rule); padding-top: 9px; }
.source-ledger { display: flex; flex-direction: column; }
.source-ledger-row { display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 16px; align-items: start; border-top: 1px solid var(--sheet-rule); padding: 11px 0; }
.source-ledger-row > div:first-child { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.source-ledger-row strong { font-size: 12px; }
.source-key { color: var(--sheet-muted); font-family: "IBM Plex Mono", monospace; font-size: 12px; }
.source-ledger-meta { display: flex; flex-wrap: wrap; gap: 10px; color: var(--sheet-muted); font-size: 12px; justify-content: flex-end; }
.source-error { grid-column: 1 / -1; color: #831c1e; font-size: 12px; margin: 2px 0 0; }
.source-kind { display: inline-block; padding: 1px 5px; border-radius: 3px; font-size: 12px; letter-spacing: normal; }
.source-live { color: #07502a; background: #dcfae5; }
.source-error-kind, .source-error { color: #831c1e; background: #ffedea; }
.source-cached, .source-reference { color: #713f12; background: #fffbeb; }
.source-modeled, .source-proxy { color: #0d4553; background: #e7f1f2; }
.coverage-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 12px 0 16px; }
.coverage-grid div { border-top: 1px solid var(--sheet-rule); padding-top: 8px; }
.coverage-grid span { display: block; color: var(--sheet-muted); font-size: 12px; letter-spacing: normal; }
.coverage-grid strong { display: block; font-size: 22px; margin-top: 3px; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) {
  .docs-grid { grid-template-columns: 1fr; }
  .docs-toc { position: static; flex-direction: row; flex-wrap: wrap; border-left: 0; border-top: 1px solid var(--sheet-rule); padding-left: 0; padding-top: 10px; }
  .docs-toc a { padding-right: 12px; }
  .coverage-grid { grid-template-columns: 1fr 1fr; }
  .docs-table { min-width: 620px; }
  .docs-article { overflow-x: auto; }
}
