/* Документы онлайн-версии (R-75): соглашение, политика, согласие, методика, тарифы, архив редакций.
   Основа — оформление инструкций (.guide в styles.css); здесь — таблицы, оглавление, пометки. */
.doc-body a{color:var(--text);text-underline-offset:2px}
.doc-body h2{scroll-margin-top:84px}
.doc-body h3{font-size:16px;margin:22px 0 8px;scroll-margin-top:84px}
.doc-body p,.doc-body li{max-width:900px;line-height:1.55}
.doc-body section{scroll-margin-top:84px}
.doc-body{counter-reset:doc}
.doc-body h2.n::before{counter-increment:doc;content:counter(doc) ". "}
.doc-meta{color:var(--muted);font-size:13px;margin:0 0 18px;max-width:900px;line-height:1.5}
.doc-toc{border:1px solid var(--line);border-radius:14px;background:var(--surface);padding:12px 18px;max-width:900px;margin:0 0 8px}
.doc-toc ol{margin:6px 0 0;padding-left:20px;columns:2 260px;column-gap:28px}
.doc-toc li{margin-bottom:4px;break-inside:avoid}
.doc-note{border-left:3px solid var(--line);padding:4px 0 4px 12px;color:var(--muted);max-width:900px;line-height:1.5}
.doc-table-wrap{overflow-x:auto;max-width:100%;margin:12px 0 18px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.doc-table{border-collapse:collapse;width:100%;font-size:13px;line-height:1.45}
.doc-table.wide{min-width:640px}
.doc-table th,.doc-table td{padding:8px 10px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}
.doc-table tr:last-child td{border-bottom:0}
.doc-table th{background:var(--surface-2);font-weight:650}
.doc-table td.num,.doc-table th.num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.doc-table td.code{white-space:nowrap;font-weight:650}
.doc-cols{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:12px;max-width:1000px}
.doc-cols>div{border:1px solid var(--line);border-radius:14px;background:var(--surface);padding:10px 16px}
.doc-cols h4{margin:4px 0 6px;font-size:13px;color:var(--muted);font-weight:650}
.doc-cols ul{margin:0;padding-left:18px;font-size:14px}
.doc-cols li{margin-bottom:6px}
.doc-example{border:1px solid var(--line);border-radius:14px;background:var(--surface);padding:12px 18px;max-width:900px;margin:0 0 14px}
.doc-example h3{margin-top:4px}
.doc-example ol{padding-left:20px;margin:6px 0}
.doc-example li{margin-bottom:5px}
.doc-btn{display:inline-block;border:1px solid var(--line);border-radius:10px;padding:7px 14px;text-decoration:none!important;font-weight:650;font-size:13px;background:var(--surface-2);margin:4px 0}
.owner-todo{background:#fff1c7;color:#5f4900;border-radius:4px;padding:0 4px}
body.theme-dark .owner-todo{background:#4a3d0f;color:#ffe49a}
@media(max-width:520px){.doc-toc ol{columns:1}.guide h1{font-size:25px}}
