:root {
  --color-bg: #f7f8fa;
  --color-surface: #ffffff;
  --color-text: #1f2329;
  --color-text-muted: #5a6270;
  --color-border: #e3e6ea;
  --color-primary: #1b8a5a;
  --color-primary-dark: #146b46;
  --color-highlight-bg: #e9f7ef;
  --color-tip-bg: #f0f9ff;
  --color-tip-border: #bae6fd;
  --color-alert-bg: #fff7ed;
  --color-alert-border: #fed7aa;
  --color-example-bg: #f0fdf4;
  --color-example-border: #bbf7d0;
  --radius: 10px;
  --max-width: 880px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

/* ===========================
   ACESSIBILIDADE
=========================== */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-primary);
  color: #fff;
  padding: 8px 16px;
  z-index: 100;
  text-decoration: none;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  top: 0;
}

/* ===========================
   LAYOUT
=========================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ===========================
   HEADER
=========================== */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 32px 0 24px;
  text-align: center;
}

.site-header h1 {
  margin: 0 0 8px;
  font-size: 2rem;
  color: var(--color-primary-dark);
}

.tagline {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

/* ===========================
   NAVEGAÇÃO
=========================== */
.site-nav {
  background: var(--color-primary-dark);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-list {
  display: flex;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.nav-list li a {
  display: block;
  padding: 12px 16px;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.nav-list li a:hover,
.nav-list li a[aria-current="page"] {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

/* ===========================
   MAIN
=========================== */
main.container {
  padding-top: 28px;
  padding-bottom: 60px;
}

.intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 28px;
  color: var(--color-text-muted);
}

/* ===========================
   CALCULADORAS
=========================== */
.calculators {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}

@media (max-width: 720px) {
  .calculators {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 22px;
}

.card h2 {
  margin: 0 0 6px;
  font-size: 1.15rem;
}

.card-desc {
  margin: 0 0 18px;
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
  font-weight: 600;
}

.field input {
  width: 100%;
  padding: 10px 12px;
  font-size: 1rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fffbea;
}

.field input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(27, 138, 90, 0.15);
}

.results {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.result {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--color-bg);
}

.result--highlight {
  background: var(--color-highlight-bg);
  border: 1px solid #bfe7d3;
}

.result-label {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.result-value {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-primary-dark);
}

/* ===========================
   SEÇÕES DE CONTEÚDO
=========================== */
.content-section {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 24px;
}

.content-section h2 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 1.45rem;
  color: var(--color-primary-dark);
}

.content-section h3 {
  font-size: 1.1rem;
  margin-top: 24px;
  margin-bottom: 10px;
  color: var(--color-text);
}

.content-section p {
  margin: 0 0 14px;
}

.content-section ul,
.content-section ol {
  margin: 0 0 14px;
  padding-left: 24px;
}

.content-section li {
  margin-bottom: 6px;
}

/* ===========================
   FÓRMULAS
=========================== */
.formulas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.formula-box {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 14px;
  text-align: center;
}

.formula-box h3 {
  margin: 0 0 8px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.formula-box code {
  font-size: 0.95rem;
  color: var(--color-primary-dark);
  display: block;
}

.formula-highlight {
  background: var(--color-highlight-bg);
  border: 1px solid #bfe7d3;
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 1rem;
  color: var(--color-primary-dark);
  margin: 16px 0;
  text-align: center;
}

/* ===========================
   CAIXAS DE DESTAQUE
=========================== */
.tip-box {
  background: var(--color-tip-bg);
  border-left: 4px solid var(--color-tip-border);
  border-radius: 0 8px 8px 0;
  padding: 14px 16px;
  margin: 18px 0;
  font-size: 0.95rem;
}

.tip-box strong:first-child {
  color: #0369a1;
}

.alert-box {
  background: var(--color-alert-bg);
  border-left: 4px solid var(--color-alert-border);
  border-radius: 0 8px 8px 0;
  padding: 14px 16px;
  margin: 18px 0;
  font-size: 0.95rem;
}

.alert-box strong:first-child {
  color: #c2410c;
}

.example-box {
  background: var(--color-example-bg);
  border: 1px solid var(--color-example-border);
  border-radius: 8px;
  padding: 18px;
  margin: 18px 0;
}

.example-box h3 {
  margin-top: 0;
  font-size: 1rem;
  color: var(--color-primary-dark);
}

/* ===========================
   LISTA DE PASSOS
=========================== */
.steps-list {
  list-style: none;
  padding: 0;
  counter-reset: steps;
}

.steps-list li {
  counter-increment: steps;
  padding: 12px 12px 12px 52px;
  margin-bottom: 12px;
  background: var(--color-bg);
  border-radius: 8px;
  border: 1px solid var(--color-border);
  position: relative;
  line-height: 1.5;
}

.steps-list li::before {
  content: counter(steps);
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
}

/* ===========================
   GRID DE ERROS
=========================== */
.error-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.error-item {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 16px;
}

.error-item h3 {
  margin: 0 0 8px;
  font-size: 0.95rem;
  color: #c2410c;
}

.error-item p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--color-text-muted);
}

/* ===========================
   GRID DE SEGMENTOS
=========================== */
.segment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 16px;
}

.segment-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 18px;
}

.segment-card h3 {
  margin: 0 0 10px;
  font-size: 1rem;
  color: var(--color-primary-dark);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 8px;
}

.segment-card p {
  font-size: 0.92rem;
  margin-bottom: 10px;
}

.segment-example {
  background: var(--color-highlight-bg);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 0.88rem;
  margin: 10px 0;
}

/* ===========================
   TABELA
=========================== */
.table-section {
  margin-bottom: 24px;
}

.table-section h2 {
  margin-top: 0;
}

.table-wrapper {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--color-border);
}

th {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

td:last-child, th:last-child {
  text-align: right;
}

.table-note {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 10px;
  margin-bottom: 0;
}

/* ===========================
   FAQ
=========================== */
.faq-section > p {
  margin-bottom: 20px;
}

.faq-list {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
}

.faq-question {
  font-weight: 600;
  font-size: 0.97rem;
  padding: 14px 16px;
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  cursor: default;
  border-bottom: 1px solid var(--color-border);
}

.faq-answer {
  padding: 14px 16px;
  margin: 0;
  font-size: 0.93rem;
  color: var(--color-text);
  line-height: 1.6;
}

/* ===========================
   ARTIGOS RELACIONADOS
=========================== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.article-card {
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
  overflow: hidden;
}

.article-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 2px 12px rgba(27, 138, 90, 0.1);
}

.article-card-body {
  padding: 16px;
  flex: 1;
}

.article-tag {
  display: inline-block;
  background: var(--color-highlight-bg);
  color: var(--color-primary-dark);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.article-card h3 {
  margin: 0 0 8px;
  font-size: 0.97rem;
  color: var(--color-text);
  line-height: 1.4;
}

.article-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ===========================
   GRID DE CALCULADORAS
=========================== */
.calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.calc-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 16px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.calc-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 2px 12px rgba(27, 138, 90, 0.1);
}

.calc-card-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--color-highlight-bg);
  color: var(--color-primary-dark);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
}

.calc-card-body h3 {
  margin: 0 0 4px;
  font-size: 0.93rem;
  color: var(--color-text);
}

.calc-card-body p {
  margin: 0;
  font-size: 0.83rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

/* ===========================
   RODAPÉ
=========================== */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 28px 0;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  background: var(--color-surface);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin-bottom: 12px;
}

.footer-nav a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.83rem;
}

.footer-nav a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.site-footer p {
  margin: 0;
}

/* ===========================
   BREADCRUMB (páginas internas)
=========================== */
.breadcrumb {
  padding: 10px 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

.breadcrumb a {
  color: var(--color-primary);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  margin: 0 6px;
}

/* ===========================
   BANNER DE PÁGINA EM CONSTRUÇÃO
=========================== */
.coming-soon-banner {
  background: #fef9c3;
  border: 1px solid #fde047;
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 24px;
  font-size: 0.93rem;
  color: #713f12;
  text-align: center;
}

/* ===========================
   RESPONSIVIDADE
=========================== */
/* ===========================
   SITE BRAND (páginas internas)
=========================== */
.site-brand {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--color-primary-dark);
}
.site-brand a {
  color: inherit;
  text-decoration: none;
}

/* ===========================
   CAMPO COM HINT
=========================== */
.field-hint {
  display: block;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--color-text-muted);
  margin-top: 2px;
}

/* ===========================
   FIELDSET DE GRUPO
=========================== */
.field-group {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 14px;
}

.field-group legend {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text-muted);
  padding: 0 6px;
}

.field--inline {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.field--inline label {
  flex: 1;
  margin-bottom: 0;
  font-size: 0.88rem;
  font-weight: 500;
}

.field--inline input {
  width: 90px;
  flex-shrink: 0;
  text-align: right;
  padding: 8px 10px;
}

/* ===========================
   MARKUP DIVISOR
=========================== */
.divisor-section {
  margin-bottom: 24px;
}

.divisor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 20px;
  align-items: start;
}

@media (max-width: 780px) {
  .divisor-grid {
    grid-template-columns: 1fr;
  }
}

.divisor-inputs {
  display: flex;
  flex-direction: column;
}

/* Presets de marketplace */
.marketplace-presets {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
}

.presets-label {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.preset-btn {
  padding: 5px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  background: var(--color-bg);
  color: var(--color-text);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.preset-btn:hover {
  background: var(--color-highlight-bg);
  border-color: var(--color-primary);
  color: var(--color-primary-dark);
}

.preset-btn--clear {
  color: var(--color-text-muted);
}

/* Painel de resultados do divisor */
.divisor-result-panel {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  overflow: hidden;
  position: sticky;
  top: 56px;
}

.divisor-placeholder {
  padding: 32px 20px;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

.divisor-error {
  padding: 20px;
  color: #c2410c;
  font-size: 0.9rem;
  text-align: center;
}

.divisor-output {
  display: flex;
  flex-direction: column;
}

.divisor-main {
  background: var(--color-primary-dark);
  color: #fff;
  padding: 22px 20px;
  text-align: center;
}

.divisor-main-label {
  font-size: 0.88rem;
  opacity: 0.85;
  margin-bottom: 6px;
}

.divisor-main-value {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.divisor-rows {
  padding: 8px 0;
}

.divisor-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 18px;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9rem;
  gap: 12px;
}

.divisor-row:last-child {
  border-bottom: none;
}

.divisor-row span {
  color: var(--color-text-muted);
  flex: 1;
}

.divisor-row strong {
  color: var(--color-text);
  white-space: nowrap;
}

.divisor-row--highlight {
  background: var(--color-highlight-bg);
}

.divisor-row--highlight strong {
  color: var(--color-primary-dark);
}

/* ===========================
   BARRA DE COMPOSIÇÃO DO PREÇO
=========================== */
.pv-bar-wrap {
  padding: 14px 18px 10px;
  border-bottom: 1px solid var(--color-border);
}

.pv-bar {
  display: flex;
  height: 14px;
  border-radius: 7px;
  overflow: hidden;
  margin-bottom: 8px;
}

.pv-bar-cost   { background: #94a3b8; }
.pv-bar-taxes  { background: #f97316; }
.pv-bar-profit { background: #22c55e; }

.pv-bar-legend {
  display: flex;
  gap: 16px;
  font-size: 0.78rem;
  flex-wrap: wrap;
}

.pv-legend-cost,
.pv-legend-taxes,
.pv-legend-profit {
  display: flex;
  align-items: center;
  gap: 5px;
}

.pv-legend-cost::before   { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 2px; background: #94a3b8; }
.pv-legend-taxes::before  { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 2px; background: #f97316; }
.pv-legend-profit::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 2px; background: #22c55e; }

/* ===========================
   STATUS DE META (calc verificar)
=========================== */
.result--ok {
  background: var(--color-highlight-bg);
  border: 1px solid #bfe7d3;
}

.result--ok .result-value {
  color: var(--color-primary-dark);
}

.result--warn {
  background: #fff7ed;
  border: 1px solid #fed7aa;
}

.result--warn .result-value {
  color: #c2410c;
}

/* ===========================
   COMPARATIVO ANTES × DEPOIS
=========================== */
.comparativo-section {
  margin-bottom: 24px;
}

.comparativo-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  margin: 20px 0 16px;
}

@media (max-width: 600px) {
  .comparativo-grid {
    grid-template-columns: 1fr;
  }
  .comparativo-seta {
    text-align: center;
    transform: rotate(90deg);
  }
}

.comparativo-col {
  border: 1px solid var(--color-border);
  border-radius: 10px;
  overflow: hidden;
}

.comparativo-label {
  padding: 10px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.comparativo-pv {
  padding: 16px 16px 8px;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-text);
}

.comparativo-antes .comparativo-pv {
  color: var(--color-text-muted);
}

.comparativo-depois .comparativo-pv {
  color: var(--color-primary-dark);
}

.comparativo-depois--prejuizo .comparativo-pv {
  color: #c2410c;
}

.comparativo-rows {
  padding: 0 0 8px;
}

.comparativo-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 16px;
  font-size: 0.88rem;
  border-top: 1px solid var(--color-border);
  gap: 8px;
}

.comparativo-row span {
  color: var(--color-text-muted);
}

.comparativo-row strong {
  color: var(--color-text);
}

.comparativo-row--delta {
  background: var(--color-alert-bg);
}

.comparativo-row--delta strong {
  color: #c2410c;
}

.comparativo-seta {
  font-size: 1.8rem;
  color: var(--color-text-muted);
  text-align: center;
}

/* Barra desconto */
.desconto-bar-wrap {
  margin-top: 16px;
}

.desconto-bar-label {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}

/* ===========================
   BADGES DE STATUS (simulador)
=========================== */
.sim-status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

.sim-status--ok {
  background: var(--color-highlight-bg);
  color: var(--color-primary-dark);
}

.sim-status--atencao {
  background: #fff7ed;
  color: #c2410c;
}

.sim-status--ruim {
  background: #fef2f2;
  color: #b91c1c;
}

/* ===========================
   DRE — Demonstração do Resultado
=========================== */
.dre-grid .divisor-results {
  min-width: 0;
}

.dre-panel {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  overflow: hidden;
  position: sticky;
  top: 56px;
}

.dre-output {
  display: flex;
  flex-direction: column;
}

.dre-header {
  background: #1e293b;
  color: #f1f5f9;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 16px;
}

.dre-section {
  border-bottom: 2px solid var(--color-border);
}

.dre-section:last-of-type {
  border-bottom: none;
}

.dre-linha {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: center;
  padding: 9px 16px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.85rem;
}

.dre-linha--sub {
  background: #f8fafc;
  color: var(--color-text-muted);
}

.dre-linha--resultado {
  border-bottom: none;
  padding: 11px 16px;
  background: #f1f5f9;
}

.dre-linha--bruto {
  border-left: 4px solid #3b82f6;
}

.dre-linha--op {
  border-left: 4px solid #8b5cf6;
}

.dre-linha--liq {
  border-left: 4px solid #22c55e;
  background: #f0fdf4;
}

.dre-linha--prejuizo {
  border-left: 4px solid #ef4444;
  background: #fef2f2;
}

.dre-receita {
  font-weight: 600;
}

.dre-desc {
  flex: 1;
  min-width: 0;
}

.dre-val {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  min-width: 110px;
  text-align: right;
}

.dre-val--resultado {
  font-size: 0.97rem;
}

.dre-pct {
  white-space: nowrap;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  min-width: 52px;
  text-align: right;
}

.dre-pct--resultado {
  font-size: 0.82rem;
  font-weight: 600;
}

.dre-pos { color: var(--color-primary-dark); }
.dre-neg { color: #b91c1c; }

.dre-bar-section {
  padding: 14px 16px 12px;
  background: #f8fafc;
}

.dre-bar-label {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dre-bar-ir { background: #a78bfa; }

.pv-legend-ir {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.pv-legend-ir::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: #a78bfa;
}

/* ===========================
   RESPONSIVIDADE
=========================== */
@media (max-width: 720px) {
  .site-header h1 {
    font-size: 1.55rem;
  }

  .content-section {
    padding: 20px 16px;
  }

  .content-section h2 {
    font-size: 1.25rem;
  }

  .segment-grid {
    grid-template-columns: 1fr;
  }

  .error-grid {
    grid-template-columns: 1fr;
  }

  .articles-grid {
    grid-template-columns: 1fr;
  }

  .calc-grid {
    grid-template-columns: 1fr;
  }

  .formulas {
    grid-template-columns: 1fr;
  }
}
