/* Статьи пакета 20261017: схема, таблицы, калькулятор (homade.ru) */
.article-figure{margin:0 0 30px}
.article-figure img{display:block;width:100%;height:auto;border-radius:18px;border:1px solid var(--line);background:#0a0a0c}
.article-figure figcaption{margin-top:8px;font-size:14px;line-height:1.5;color:var(--ink-2)}
.article-figure figcaption a{white-space:nowrap}
.prose dl{display:grid;grid-template-columns:minmax(150px,240px) 1fr;gap:6px 20px;margin:20px 0}
.prose dt{font-weight:600;color:var(--ink)}
.prose dd{margin:0}
@media (max-width:640px){.prose dl{grid-template-columns:1fr}.prose dd{margin-bottom:10px}}
.prose details{border:1px solid var(--line);border-radius:14px;padding:14px 18px;margin:16px 0;background:var(--surface)}
.prose details summary{cursor:pointer;font-weight:600;color:var(--ink)}
.prose blockquote{margin:20px 0;padding:4px 0 4px 18px;border-left:3px solid var(--brass);font-style:italic}
.prose code{font-family:var(--fm,ui-monospace,monospace);font-size:.88em;background:var(--surface-2);border-radius:6px;padding:.1em .35em}
.prose .pre-scroll{max-width:100%;overflow-x:auto;border:1px solid var(--line);border-radius:14px;background:var(--surface-2);margin:20px 0}
.prose .pre-scroll pre{margin:0;padding:14px 18px;white-space:pre;font-size:14px;line-height:1.55}
.prose .pre-scroll pre code{background:none;padding:0}
.art-table caption{caption-side:top;text-align:left;padding:0 0 8px;font-size:14px;color:var(--ink-2)}
.tool{min-width:0;box-sizing:border-box;margin:44px 0 0;border:1px solid var(--line);border-radius:22px;padding:24px;background:var(--surface-2);scroll-margin-top:96px}
.tool h2{margin-top:0}
.tool-note{font-size:15px;color:var(--ink-2)}
.tool .fields{display:grid;gap:14px;grid-template-columns:repeat(auto-fill,minmax(min(220px,100%),1fr));margin-top:16px}
.tool .field{display:flex;flex-direction:column;gap:6px;min-width:0}
.tool .field.long{grid-column:1/-1}
.tool label{font-size:14px;font-weight:600;color:var(--ink)}
.tool input,.tool textarea{width:100%;box-sizing:border-box;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink);padding:10px 12px;font:14px/1.5 var(--fm,ui-monospace,monospace)}
.tool textarea{resize:vertical;white-space:pre;overflow-x:auto}
.tool input:focus,.tool textarea:focus{outline:2px solid var(--accent);outline-offset:1px}
.tool-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}
.tool-actions button{border:1px solid var(--line);border-radius:999px;padding:10px 18px;font:600 15px var(--fb,inherit);background:var(--surface);color:var(--ink);cursor:pointer}
.tool-actions button:not(.secondary){background:var(--accent);border-color:var(--accent);color:#fff}
.tool-actions button:disabled{opacity:.45;cursor:not-allowed}
.tool .error{color:#c0392b;font-weight:600;margin:12px 0 0}
.tool .error:empty{display:none}
.tool .result{margin-top:14px;font-size:15px}
.tool .result dl{display:block;margin:0}
.tool .result dt{border-top:1px solid var(--line);padding-top:8px;margin-top:8px}
.tool .result dd{margin:4px 0 0;min-width:0;overflow-wrap:anywhere}
.tool .table-scroll{overflow-x:auto;border:1px solid var(--line);border-radius:14px;margin:6px 0}
.tool .table-scroll table{margin:0;min-width:480px}
.art-sources{margin-top:40px}
.art-sources ul{padding-left:20px}
.art-sources a{word-break:break-all}
@media (max-width:640px){.tool{padding:18px}}
.tool label,.tool-note,.tool .result{overflow-wrap:anywhere}
.art-note.worked-example{border-left-color:var(--accent)}
