/* Escopo exclusivo — bloco de resultado CLT x PJ */

.clt-pj-result-stack {
  margin-bottom: 12px;
}

.clt-pj-result-card {
  display: grid;
  gap: 16px;
  padding: 18px 16px;
}

.clt-pj-result-card .clt-pj-primary-result {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.clt-pj-result-card .clt-pj-equivalence-value {
  font-size: clamp(1.75rem, 4.5vw, 2.35rem);
}

.clt-pj-result-card .clt-pj-equivalence-statement {
  margin: 0 0 8px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.clt-pj-result-card .clt-pj-hero-amount {
  margin: 4px 0 6px;
}

.clt-pj-result-complement {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.45;
}

.clt-pj-quick-summary .clt-pj-summary-cards {
  margin: 0;
}

.clt-pj-quick-summary .timeline-arrow {
  display: none;
}

.clt-pj-equivalence-index {
  padding: 14px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.clt-pj-equivalence-index.is-positive {
  border-color: color-mix(in srgb, #059669 35%, var(--line));
  background: color-mix(in srgb, #059669 6%, var(--surface));
}

.clt-pj-equivalence-index.is-caution {
  border-color: color-mix(in srgb, #ca8a04 35%, var(--line));
  background: color-mix(in srgb, #ca8a04 6%, var(--surface));
}

.clt-pj-equivalence-index.is-negative {
  border-color: color-mix(in srgb, #dc2626 35%, var(--line));
  background: color-mix(in srgb, #dc2626 6%, var(--surface));
}

.clt-pj-equivalence-index-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.clt-pj-equivalence-index-head h3 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 800;
}

.clt-pj-equivalence-index-pct {
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 800;
  line-height: 1.1;
}

.clt-pj-equivalence-index p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--muted);
}

.clt-pj-diff-badge {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.45;
}

.clt-pj-diff-badge.is-positive {
  background: color-mix(in srgb, #059669 10%, var(--surface));
  color: color-mix(in srgb, #059669 80%, var(--text));
}

.clt-pj-diff-badge.is-neutral {
  background: color-mix(in srgb, #ca8a04 10%, var(--surface));
  color: color-mix(in srgb, #a16207 85%, var(--text));
}

.clt-pj-diff-badge.is-negative {
  background: color-mix(in srgb, #dc2626 10%, var(--surface));
  color: color-mix(in srgb, #dc2626 80%, var(--text));
}

.clt-pj-simulation-config {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--soft) 40%, var(--surface));
}

.clt-pj-simulation-config h3 {
  margin: 0 0 10px;
  font-size: 0.9rem;
  font-weight: 800;
}

.clt-pj-config-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.clt-pj-config-col h4 {
  margin: 0 0 6px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.clt-pj-config-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 4px;
}

.clt-pj-config-list li {
  font-size: 0.8125rem;
  line-height: 1.4;
}

.clt-pj-auto-analysis {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--primary) 25%, var(--line));
  background: color-mix(in srgb, var(--primary) 5%, var(--surface));
}

.clt-pj-auto-analysis h3 {
  margin: 0 0 6px;
  font-size: 0.9rem;
  font-weight: 800;
}

.clt-pj-auto-analysis p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.45;
}

.clt-pj-result-cta {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.45;
  font-style: italic;
}

.clt-pj-calculation-details {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 12px 12px;
  background: var(--surface);
}

.clt-pj-calculation-details summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 12px 0;
  list-style: none;
}

.clt-pj-calculation-details summary::-webkit-details-marker {
  display: none;
}

.clt-pj-calculation-details summary::before {
  content: "▶ ";
  font-size: 0.7rem;
  color: var(--muted);
}

.clt-pj-calculation-details[open] summary::before {
  content: "▼ ";
}

.clt-pj-calculation-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.clt-pj-calculation-step {
  display: grid;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--soft) 35%, var(--surface));
}

.clt-pj-calculation-step strong {
  font-size: 0.8125rem;
}

.clt-pj-calculation-step span {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
}

.clt-pj-calculation-step em {
  font-style: normal;
  font-weight: 700;
  color: var(--text);
}

.clt-pj-transparency-note {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.45;
  padding-top: 4px;
  border-top: 1px solid var(--line);
}

@media (max-width: 719px) {
  .clt-pj-config-grid {
    grid-template-columns: 1fr;
  }

  .clt-pj-result-card {
    padding: 14px 12px;
  }
}
