/* /calculadora-simples-nacional/ only. Layout and tokens come from desk-tools.css. */
.sn-page .desk-grid { grid-template-columns: minmax(0, 1fr) minmax(300px, 460px); }
.desk-page p.sn-anexo-hint { margin: -4px 0 0; color: var(--muted); font-size: 0.8rem; line-height: 1.35; }
.sn-page label.sn-check { min-height: 36px; }
.sn-page .desk-kpi b small { font-size: 0.72rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }

.sn-formula {
  margin: 12px 0 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--soft);
  color: var(--body);
  font-size: 0.82rem;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
}
.sn-small { margin: 6px 0 0; color: var(--muted); font-size: 0.8rem; }

.sn-partilha { width: 100%; margin: 12px 0 0; border-collapse: collapse; font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.sn-partilha th, .sn-partilha td { padding: 6px 4px; border-bottom: 1px solid var(--line); text-align: right; }
.sn-partilha th:first-child, .sn-partilha td:first-child { text-align: left; }
.sn-partilha th { color: var(--muted); font-size: 0.74rem; font-weight: 700; }
.sn-partilha tfoot td { border-bottom: 0; font-weight: 800; color: var(--ink); }

.sn-notes { margin: 12px 0 0; padding-left: 18px; color: var(--body); font-size: 0.82rem; line-height: 1.45; }
.sn-notes li + li { margin-top: 4px; }
.sn-alert { margin: 0; padding: 10px 12px; border-radius: 10px; background: #fef2f2; color: var(--red); font-size: 0.9rem; line-height: 1.45; }
.sn-next { margin: 12px 0 0; padding-top: 10px; border-top: 1px dashed var(--line); color: var(--body); font-size: 0.85rem; line-height: 1.45; }
.sn-link {
  margin-left: 4px;
  padding: 2px 10px;
  border: 1px solid var(--blue);
  border-radius: 999px;
  background: transparent;
  color: var(--blue);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}
.sn-link:hover { background: var(--blue); color: #fff; }

.sn-nota { margin-top: 16px; }
.desk-page p.sn-nota-lede { margin: -4px 0 12px; color: var(--body); font-size: 0.88rem; line-height: 1.45; }
.sn-nota-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 460px); gap: 16px; align-items: start; }

/* static 2026 tables in the article body */
.sn-tabelas { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 14px; margin: 14px 0 22px; }
.sn-tabela { width: 100%; margin: 0; border-collapse: collapse; font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.sn-tabela caption { padding: 0 0 6px; font-weight: 800; text-align: left; }
.sn-tabela th, .sn-tabela td { padding: 5px 6px; border-bottom: 1px solid #e3e9f1; text-align: right; }
.sn-tabela th:first-child, .sn-tabela td:first-child, .sn-tabela th:nth-child(2), .sn-tabela td:nth-child(2) { text-align: left; }
.sn-tabela th { color: #64748b; font-size: 0.75rem; }

@media (max-width: 860px) {
  .sn-page .desk-grid, .sn-nota-grid { grid-template-columns: 1fr; }
  .sn-tabelas { grid-template-columns: 1fr; }
}
html[data-theme="dark"] .sn-alert { background: #2a1214; color: #fca5a5; }
html[data-theme="dark"] .sn-tabela th, html[data-theme="dark"] .sn-tabela td { border-color: #2a3548; }
