/* «Комиссии сетей USDT сегодня» (/usdt-network-fees/, tools/net-fees.mjs, 11.11.2026).
 * Поверх общего слоя r26, карточки .so-body и стилей гидов (assets/guides.css): только свои блоки с приставкой nf-.
 * Цвета линий — категориальная палитра, проверенная на контраст и различимость при дальтонизме (dataviz validate_palette:
 * тёмная подложка #12121A — все проверки пройдены; светлая #FFFFFF — 3 цвета ниже 3:1, поэтому есть легенда с цифрами
 * и таблица того же графика). Порядок цветов закреплён за сетями и не меняется. */
:root {
  --nf-c1: #3987e5; --nf-c2: #d95926; --nf-c3: #199e70; --nf-c4: #c98500; --nf-c5: #d55181; --nf-c6: #008300;
}
:root[data-theme="light"] {
  --nf-c1: #2a78d6; --nf-c2: #eb6834; --nf-c3: #1baf7a; --nf-c4: #eda100; --nf-c5: #e87ba4; --nf-c6: #008300;
}

/* Таблица: сумма крупно, монета сети и пояснение — второй строкой. */
.so-body .nf-tbl .nf-v { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.so-body .nf-tbl small { font-size: 12px; font-weight: 600; color: var(--r-muted); overflow-wrap: anywhere; }
.so-body .nf-tbl tr.nf-best th { color: var(--r-green); }
.so-body .nf-tbl tr.nf-best th::after { content: ''; display: inline-block; width: 8px; height: 8px; margin-inline-start: 8px; border-radius: 50%; background: var(--r-green); vertical-align: middle; }

/* График. */
.nf-chart { margin: 0 0 14px; padding: 16px 16px 8px; border-radius: 22px; background: var(--r-surface-3); border: 1px solid var(--r-line); }
.nf-svg { display: block; width: 100%; height: auto; font-family: var(--r-font, inherit); }
.nf-grid { stroke: var(--r-line-3); stroke-width: 1; }
.nf-ax { fill: var(--r-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.nf-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.nf-dot { stroke: var(--r-surface-3); stroke-width: 2; }
.nf-hit { fill: transparent; cursor: crosshair; }
.nf-hit:hover { fill: var(--r-hover); }
.nf-line.nf-s1 { stroke: var(--nf-c1); } .nf-dot.nf-s1, .nf-sw.nf-s1 { fill: var(--nf-c1); background: var(--nf-c1); }
.nf-line.nf-s2 { stroke: var(--nf-c2); } .nf-dot.nf-s2, .nf-sw.nf-s2 { fill: var(--nf-c2); background: var(--nf-c2); }
.nf-line.nf-s3 { stroke: var(--nf-c3); } .nf-dot.nf-s3, .nf-sw.nf-s3 { fill: var(--nf-c3); background: var(--nf-c3); }
.nf-line.nf-s4 { stroke: var(--nf-c4); } .nf-dot.nf-s4, .nf-sw.nf-s4 { fill: var(--nf-c4); background: var(--nf-c4); }
.nf-line.nf-s5 { stroke: var(--nf-c5); } .nf-dot.nf-s5, .nf-sw.nf-s5 { fill: var(--nf-c5); background: var(--nf-c5); }
.nf-line.nf-s6 { stroke: var(--nf-c6); } .nf-dot.nf-s6, .nf-sw.nf-s6 { fill: var(--nf-c6); background: var(--nf-c6); }
.nf-chart figcaption { margin-top: 8px; }
.so-body .r-prose .nf-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--r-text-2); }
.so-body .r-prose .nf-legend li { margin: 0; padding: 0; display: inline-flex; align-items: center; gap: 8px; }
.so-body .r-prose .nf-legend li::before { content: none; }
.nf-legend b { color: var(--r-text); font-weight: 700; font-variant-numeric: tabular-nums; }
.nf-sw { display: inline-block; width: 14px; height: 4px; border-radius: 2px; flex: none; }
.so-body .r-prose .nf-chart .gd-note { margin: 8px 0 0; font-size: 13px; }

/* Как считаем, файлы данных. */
.so-body .r-prose .nf-method li { margin-bottom: 8px; }
.so-body .r-prose .nf-files { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.so-body .r-prose .nf-files li { margin: 0; padding: 0; }
.so-body .r-prose .nf-files li::before { content: none; }
.nf-files span { margin-inline-start: 6px; font-size: 13px; color: var(--r-muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

@media (max-width: 640px) {
  .nf-chart { padding: 12px 8px 6px; border-radius: 18px; }
  .nf-ax { font-size: 22px; } /* при ширине графика ~340 px это ≈ 10 px на экране */
  .so-body .r-prose .nf-legend { gap: 6px 14px; font-size: 13px; }
}
