/* Nomes completos e resultados separados, sem colunas comprimidas no celular. */
#comparacao-candidatos, #comparacao-resumo, #comparacao-locais, .comparison-local,
.comparison-card, #cv-resumo > *, .cv-table th, .cv-table td { min-width: 0; overflow-wrap: anywhere; }
.comparison-card { line-height: 1.5; }
.comparison-local { padding: 16px 0; border-bottom: 1px solid var(--border); }
.comparison-local > div:first-child > strong { display: block; font-size: .9rem; }
.comparison-local > div:first-child > span { display: block; margin-top: 5px; color: var(--muted); font-size: .76rem; line-height: 1.5; }
.comparison-local-candidates { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; margin-top: 12px; }
.comparison-gap { margin-top: 10px; color: var(--muted); font-size: .75rem; line-height: 1.5; }
.cv-cell-label { display: none; }
.cv-tools { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) auto; align-items: end; gap: 12px; }
.cv-tools > *, .cv-tools input, .cv-tools select, .cv-tools button { min-width: 0; max-width: 100%; }
.cv-tools button { white-space: normal; }
#cv-resumo { grid-template-columns: repeat(3,minmax(0,1fr)); }
#cv-resumo .report-metric p { margin: 8px 0 0; font-size: .78rem; color: var(--muted); line-height: 1.6; }
.cv-table .cv-cell-detail { margin-top: 7px; font-size: .78rem; line-height: 1.6; font-weight: 400; }
.cv-table th small { display: block; margin-top: 7px; font-size: .75rem; color: var(--muted); font-weight: 400; line-height: 1.5; }
@media (max-width: 1000px) {
  .cv-tools { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .cv-tools button { grid-column: 1 / -1; }
}
@media (max-width: 740px) {
  #comparacao-resumo, .comparison-local-candidates, #cv-resumo { grid-template-columns: minmax(0,1fr); }
  .cv-tools { grid-template-columns: minmax(0,1fr); }
  #comparacao-locais { padding-right: 0; }
  #comparacao-candidatos { padding: 12px; scroll-margin-top: 72px; }
  .comparison-card { padding: 14px; text-align: left; white-space: normal; }
  .cv-table-wrap { overflow-x: visible; border: 0; border-radius: 0; }
  .cv-table, .cv-table caption, .cv-table tbody { display: block; width: 100%; }
  .cv-table thead { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .cv-table tbody tr { display: grid; grid-template-columns: minmax(0,1fr); gap: 10px; padding: 12px; margin-bottom: 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
  .cv-table tbody th, .cv-table tbody td { display: block; width: auto; min-width: 0; padding: 12px; text-align: left; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); white-space: normal; }
  .cv-table tbody th { border: 0; padding: 0 0 4px; background: transparent; }
  .cv-table tbody td:nth-child(n+4) { background: var(--surface); }
  .cv-cell-label { display: block; color: var(--muted); font-size: .78rem; line-height: 1.5; }
  .cv-cell-value { display: block; margin-top: 6px; font-size: 1rem; font-weight: 750; line-height: 1.5; }
  #ciclos-lista .intelligence-row { grid-template-columns: minmax(0,1fr); }
  #ciclos-lista .intelligence-score { text-align: left; white-space: normal; overflow-wrap: anywhere; }
}
