/* =========================================================
   E-book "Fui demitido. Quanto recebo?"
   Complementa style.css — só componentes próprios do guia (prefixo g-)
   ========================================================= */

/* ---------- Abertura ---------- */
.g-intro { padding-block: clamp(3.5rem, 8vw, 6rem); border-bottom: 1px solid var(--line); }
.g-intro .split { align-items: center; }
.g-intro__title {
  font: 500 clamp(2.3rem, 5.5vw, 3.8rem)/1.12 var(--font-title);
  color: #fff;
}
.g-intro .lead { margin-top: 1.5rem; font-size: 1.15rem; max-width: 34rem; }
.g-intro .muted { margin-top: 1rem; max-width: 34rem; }
.g-intro__actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: .75rem; }

.g-gather { list-style: none; padding: 0; margin: 1.25rem 0 1.5rem; counter-reset: g; }
.g-gather li {
  counter-increment: g;
  display: flex; gap: .9rem; align-items: baseline;
  padding-block: .75rem; border-bottom: 1px solid var(--line);
}
.g-gather li::before { content: counter(g); font: 500 .85rem/1 var(--font-title); color: var(--gold); }

/* ---------- Utilitários ---------- */
.g-small { font-size: .875rem; }
.g-space { margin-top: 1rem; }
.g-read { max-width: 48rem; }
.g-head-wide { max-width: 48rem; }
.g-big { margin: .75rem 0; font-size: 1.35rem; font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; }

/* ---------- Fatos do exemplo ---------- */
.g-facts {
  display: grid; gap: 1px;
  margin-bottom: 1.25rem;
  background: var(--line);
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
@media (min-width: 640px) { .g-facts { grid-template-columns: repeat(3, 1fr); } }
.g-facts > div { padding: 1.25rem 1.5rem; background: var(--bg); }
.g-facts span { display: block; font-size: .8rem; color: var(--muted); }
.g-facts strong { display: block; margin-top: .25rem; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.g-facts__hl strong { color: var(--gold); }

/* ---------- Passos ---------- */
.g-steps { margin-top: 3.5rem; }
.g-step {
  display: grid; gap: .75rem 2rem;
  padding-block: 2.75rem;
  border-top: 1px solid var(--line);
}
@media (min-width: 720px) { .g-step { grid-template-columns: 80px 1fr; } }
.g-step__num { font: 500 2.4rem/1 var(--font-title); color: var(--gold); }
.g-step__body { max-width: 46rem; }
.g-step__caption {
  margin-bottom: .6rem;
  font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
}
.g-step h3 { font: 500 clamp(1.35rem, 2.6vw, 1.7rem)/1.3 var(--font-title); color: #fff; margin-bottom: 1rem; }
.g-step p + p { margin-top: .75rem; }

/* ---------- Conta ---------- */
.g-calc {
  margin: 1.5rem 0;
  padding: .5rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.g-calc p {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .25rem 1.25rem;
  padding-block: .8rem;
}
.g-calc p + p { margin-top: 0; border-top: 1px dashed var(--line); }
.g-calc span { font-size: .9rem; color: var(--muted); }
.g-calc strong { font-variant-numeric: tabular-nums; }
.g-calc .g-calc__result { border-top: 1px solid var(--gold); }
.g-calc__result strong { color: var(--gold); }

.g-takeaway { padding-left: 1rem; border-left: 1px solid var(--gold); }
.g-takeaway strong { color: var(--gold-light); }

/* ---------- Meses ---------- */
.g-months { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1.25rem 0; }
.g-months span {
  padding: .3rem .75rem;
  font-size: .8rem; font-weight: 500;
  border: 1px solid rgba(207, 174, 102, .45); border-radius: 999px;
  color: var(--gold-light);
}

/* ---------- Detalhes (perguntas) ---------- */
details { margin-top: 1.25rem; }
summary {
  display: inline-flex; align-items: center; gap: .6rem;
  padding-block: .4rem;
  font-size: .95rem; font-weight: 500; color: #fff;
  cursor: pointer; list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::before {
  content: "+";
  display: grid; place-items: center;
  width: 1.4rem; height: 1.4rem;
  border: 1px solid var(--gold); border-radius: 50%;
  font-size: .9rem; line-height: 1; color: var(--gold);
  transition: transform .2s;
}
details[open] > summary::before { content: "−"; }
summary:hover { color: var(--gold-light); }
details > p { margin-top: .9rem; font-size: .95rem; color: var(--muted); max-width: 46rem; }

/* ---------- Resumo (recibo) ---------- */
.g-receipt {
  padding: 2rem;
  background: var(--bg);
  border: 1px solid var(--line); border-top: 2px solid var(--gold); border-radius: var(--radius);
}
.g-receipt dl { margin: 1.5rem 0 0; }
.g-receipt dl div { display: flex; justify-content: space-between; gap: 1rem; padding-block: .55rem; font-size: .95rem; }
.g-receipt dt { color: var(--muted); }
.g-receipt dd { font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.g-receipt .g-receipt__sub { margin-top: .5rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.g-receipt__sub dt, .g-receipt__sub dd { color: #fff; font-weight: 600; }
.g-receipt__total {
  margin: 1.25rem 0 1rem; padding: 1.25rem 1.5rem;
  background: rgba(207, 174, 102, .08);
  border: 1px solid rgba(207, 174, 102, .35); border-radius: 8px;
}
.g-receipt__total span { display: block; font-size: .8rem; color: var(--muted); }
.g-receipt__total strong {
  display: block; margin-top: .2rem;
  font: 500 2rem/1.2 var(--font-title); color: var(--gold);
  font-variant-numeric: tabular-nums;
}

/* ---------- Destaque ---------- */
.g-important {
  margin: 2.5rem 0 1rem; padding: 1.75rem 2rem;
  background: rgba(207, 174, 102, .06);
  border-left: 2px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0;
  max-width: 52rem;
}
.g-important h3 { font: 500 1.25rem/1.3 var(--font-title); color: #fff; margin-bottom: .9rem; }
.g-important p + p { margin-top: .75rem; }

/* ---------- Tabela ---------- */
.g-compare { margin-top: 3.5rem; }
.g-table {
  margin-top: 1.25rem; overflow-x: auto;
  border: 1px solid var(--line); border-radius: var(--radius);
}
.g-table table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .92rem; line-height: 1.5; }
.g-table th, .g-table td { padding: 1rem 1.25rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.g-table tbody tr:last-child > * { border-bottom: 0; }
.g-table thead th {
  font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold); background: var(--surface);
}
.g-table tbody th { width: 40%; font-weight: 500; color: #fff; }
.g-table tbody td { color: var(--muted); }

/* ---------- Checklist ---------- */
.g-check { list-style: none; padding: 0; margin: 0 0 3rem; max-width: 52rem; counter-reset: c; }
.g-check li {
  counter-increment: c;
  position: relative;
  padding: 1.25rem 0 1.25rem 3.75rem;
  border-bottom: 1px solid var(--line);
}
.g-check li::before {
  content: counter(c);
  position: absolute; left: 0; top: 1.2rem;
  display: grid; place-items: center;
  width: 2.4rem; height: 2.4rem;
  border: 1px solid var(--gold); border-radius: 50%;
  font: 500 .95rem/1 var(--font-title); color: var(--gold);
}
.g-check strong { display: block; font-size: 1.02rem; }
.g-check span { display: block; margin-top: .2rem; font-size: .92rem; color: var(--muted); }

/* ---------- Prazo ---------- */
.g-deadline { max-width: 52rem; padding-left: 1.5rem; border-left: 1px solid var(--gold); }
.g-deadline h3 { font: 500 1.2rem/1.3 var(--font-title); color: #fff; margin-bottom: .75rem; }
.g-deadline p { color: var(--muted); }
.g-deadline p + p { margin-top: .75rem; }

.g-print { margin-top: 2.5rem; }

/* ---------- Chamada final ---------- */
.g-cta { text-align: center; }
.g-cta .muted { margin: 1rem auto 2rem; max-width: 36rem; }

/* ---------- Rodapé do guia ---------- */
.g-footer { padding-top: 3rem; }
.g-footer__main { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.g-footer__main img { width: 200px; }
.g-footer__main p { line-height: 1.8; }
.g-footer__note { margin: 2rem 0 1rem; max-width: 60rem; line-height: 1.7; }
.g-sources { margin-top: 0; padding-block: .5rem; border-top: 1px solid var(--line); }
.g-sources summary { font-size: .85rem; color: var(--muted); }
.g-sources ul { margin: .75rem 0 0; padding-left: 1.2rem; line-height: 2; }
.g-sources a { border-bottom: 1px solid var(--line); transition: color .2s, border-color .2s; }
.g-sources a:hover { color: #fff; border-color: var(--gold); }
.g-footer__bottom { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.g-footer__bottom a:hover { color: #fff; }

/* ---------- Mobile ---------- */
@media (max-width: 520px) {
  .g-intro__actions .btn { width: 100%; }
  .g-calc { padding-inline: 1rem; }
  .g-calc p { flex-direction: column; }
  .g-receipt { padding: 1.5rem; }
  .g-receipt__total strong { font-size: 1.7rem; }
  .g-important { padding: 1.4rem; }
  .g-check li { padding-left: 3.25rem; }
}

/* ---------- Impressão / PDF ---------- */
@media print {
  :root { --text: #1d2635; --muted: #4f5b6d; --line: #d9dee6; --gold: #8a6a2c; --gold-light: #8a6a2c; --surface: #f5f6f8; --bg: #fff; --bg-alt: #fff; }
  body { background: #fff; color: var(--text); font-size: 11pt; }
  .header, .fab, .g-intro__actions, .g-print, .g-cta, .skip-link, .g-sources, .g-footer__bottom { display: none !important; }
  strong, h1, h2, h3, .g-intro__title, .section__title, .panel__title, .g-step h3,
  .g-important h3, .g-deadline h3, .g-big, .g-table tbody th, summary,
  .g-receipt__sub dt, .g-receipt__sub dd { color: #111 !important; }
  .section, .g-intro { padding-block: 1.25rem; }
  .split { display: block; }
  .split > * + * { margin-top: 1.25rem; }
  .g-step, .g-receipt, .g-important, .g-calc, .g-table, .panel { break-inside: avoid; }
  details > p { display: block; }
  summary::before { display: none; }
  .g-footer__main img { filter: invert(1); }
  .js .reveal { opacity: 1 !important; transform: none !important; }
}
