/* ==========================================================================
   Ajudo — Simulador de Financiamento (estilos específicos)
   Reusa o painel de resultado do padrão (skeleton, result-total, rows,
   rational). Sem estilos próprios além desse bloco compartilhado.
   ========================================================================== */

.preview-label {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.rescisao-result-wrap { position: sticky; top: calc(var(--header-h) + 16px); }

.rescisao-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  color: var(--ink-soft);
  background: var(--paper-deep);
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 56px) 24px;
}
.rescisao-empty svg { width: 44px; height: 44px; opacity: 0.55; }
.rescisao-empty p { max-width: 30ch; font-size: 0.95rem; }

.rescisao-skeleton {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--card);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop), var(--shadow-md);
  padding: clamp(20px, 3vw, 28px);
  animation: skeletonFadeIn 0.18s ease;
}
.rescisao-skeleton[hidden] { display: none; }
.skel-block {
  background: linear-gradient(90deg, var(--paper-deep) 25%, var(--line) 50%, var(--paper-deep) 75%);
  background-size: 200% 100%;
  border-radius: var(--radius);
  animation: shimmer 1.2s infinite ease-in-out;
}
.skel-total  { height: 80px; }
.skel-row    { height: 18px; }
.skel-row.w75 { width: 75%; }
.skel-row.w60 { width: 60%; }
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
@keyframes skeletonFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.rescisao-result {
  background: var(--card);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop), var(--shadow-md);
  padding: clamp(20px, 3vw, 28px);
}
.rescisao-result.is-entering { animation: resultReveal 0.3s ease; }
@keyframes resultReveal {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.result-total {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--green-deep);
  color: var(--paper);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 20px;
}
.result-total-label {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--mustard);
}
.result-total strong {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.2rem);
  font-weight: 700;
  line-height: 1.15;
}
.result-total-sub { font-size: 0.84rem; color: rgba(248, 243, 232, 0.75); }

.result-group-title {
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  margin: 18px 0 8px;
}
.result-rows { list-style: none; display: flex; flex-direction: column; }
.result-rows li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  font-size: 0.95rem;
  padding: 8px 2px;
  border-bottom: 1.5px dashed var(--line);
}
.result-rows li:last-child { border-bottom: none; }
.result-rows .row-label { color: var(--ink); }
.result-rows .row-value { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }

.result-fgts {
  background: var(--paper-deep);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px 12px;
  margin-top: 18px;
}
.result-fgts-note { font-size: 0.84rem; color: var(--ink-soft); margin: 0; }

.result-actions { margin-top: 20px; }

/* Seção "Entenda os cálculos" */
.rescisao-rational {
  margin-top: 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.rescisao-rational[hidden] { display: none; }
.rescisao-rational > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 18px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  background: var(--paper-deep);
  user-select: none;
}
.rescisao-rational > summary::-webkit-details-marker { display: none; }
.rescisao-rational > summary .rational-icon { display: flex; align-items: center; gap: 7px; }
.rescisao-rational > summary .rational-icon svg { width: 16px; height: 16px; opacity: 0.7; flex-shrink: 0; }
.rational-chevron { width: 16px; height: 16px; color: var(--ink-soft); transition: transform 0.2s ease; flex-shrink: 0; }
.rescisao-rational[open] .rational-chevron { transform: rotate(180deg); }
.rational-body { padding: 0 18px 18px; background: var(--paper-deep); display: flex; flex-direction: column; }
.rational-item { border-top: 1.5px dashed var(--line); padding: 14px 0 2px; }
.rational-item:first-child { border-top: none; padding-top: 18px; }
.rational-item h4 { font-family: var(--font-body); font-size: 0.84rem; font-weight: 700; color: var(--ink); margin-bottom: 5px; }
.rational-item p { font-size: 0.84rem; color: var(--ink-soft); line-height: 1.55; margin-bottom: 10px; }

@media (max-width: 860px) {
  .rescisao-result-wrap { position: static; }
}
