/* CPF Sem Fronteiras · ajustes da variação "portal" sobre o layout original (style.css) */

/* ---------- logo ---------- */
.htop .logo .csf-logo { display: block; width: auto; height: 46px; border: 0; border-radius: 0; box-shadow: none; }
.foot .foot-logo { display: block; width: 170px; height: auto; margin: 0 auto 14px; }
@media (max-width: 820px) {
  .htop .logo .csf-logo { height: 38px; }
}

/* ---------- selo com o país do visitante ---------- */
.pill.geo { gap: 8px; text-align: center; text-wrap: balance; max-width: calc(100% - 32px); }
.pill.geo .geo-flag { display: block; flex: none; width: 24px; height: auto; aspect-ratio: 3 / 2; border-radius: 3px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25); }
.pill.geo.is-geo { animation: csf-geo-in 0.35s ease both; }
@keyframes csf-geo-in { from { opacity: 0.4; } to { opacity: 1; } }
@media (max-width: 820px) {
  .pill.geo { font-size: 10.5px; letter-spacing: 0.04em; padding: 9px 12px; }
  .pill.geo .geo-flag { width: 20px; }
}

/* ---------- relatório (imagens do PDF, dados fictícios) ---------- */
.rp { margin: 0; font-family: "Inter", system-ui, sans-serif; letter-spacing: 0; }
.rp-stack { position: relative; }
.rp--full .rp-stack { padding: 0 0 0 64px; }
.rp-page {
  position: relative;
  background: #fff;
  border-radius: 12px;
  padding: 22px 22px 18px;
  box-shadow: 0 0 0 1px #e1e6ef, 0 26px 60px rgba(10, 20, 50, 0.28);
  font-size: 11px;
  line-height: 1.4;
  color: #1c2333;
  text-align: left;
}
.rp--full .rp-page:first-child { position: absolute; top: -30px; left: 0; width: 80%; transform: rotate(-3deg); }
.rp--full .rp-page:last-child { position: relative; z-index: 2; margin-top: 120px; }
.rp--cover .rp-page { transform: rotate(-1.2deg); }
.rp-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding-bottom: 10px; border-bottom: 2px solid #c62828; }
.rp-title { display: block; font-size: 15px; font-weight: 800; letter-spacing: 0.06em; color: #0f172a; }
.rp-subtitle { display: block; color: #64748b; font-size: 10.5px; }
.rp-src { font-size: 9.5px; color: #64748b; white-space: nowrap; }
.rp-id { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: center; margin-top: 12px; padding: 10px 12px; border: 1px solid #e2e8f0; border-radius: 8px; }
.rp-id > span { font-size: 8.5px; font-weight: 700; letter-spacing: 0.08em; color: #64748b; }
.rp-id > b { font-size: 11px; }
.rp-blur { display: inline-block; height: 9px; border-radius: 4px; background: linear-gradient(90deg, #cbd5e1, #e2e8f0, #cbd5e1); filter: blur(1.4px); }
.rp-box { margin-top: 12px; border: 1px solid #e2e8f0; border-radius: 9px; padding: 11px 12px; }
.rp-concl { border-left: 3px solid #e09a1a; }
.rp-box small { font-size: 8.5px; font-weight: 700; letter-spacing: 0.1em; color: #64748b; }
.rp-concl-row { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; }
.rp-concl-row b { font-size: 16px; }
.rp-pill { font-size: 9.5px; font-weight: 700; color: #a8610b; background: #fff4e0; border: 1px solid #f6d7a3; border-radius: 99px; padding: 3px 9px; }
.rp-sh { display: flex; align-items: center; gap: 7px; font-size: 10px; font-weight: 800; letter-spacing: 0.08em; color: #0f172a; margin-bottom: 9px; }
.rp-tag { display: inline-grid; place-items: center; min-width: 18px; height: 16px; padding: 0 4px; border-radius: 4px; background: #1e3a8a; color: #fff; font-size: 8.5px; }
.rp-scale { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; }
.rp-r { display: grid; place-items: center; height: 24px; border: 1px solid #e2e8f0; border-radius: 4px; font-weight: 800; font-size: 9.5px; background: #f8fafc; }
.rp-r.g { color: #15803d; }
.rp-r.o { color: #c2560c; }
.rp-r.r { color: #b91c1c; }
.rp-r.on { background: #c2560c; border-color: #c2560c; color: #fff; }
.rp-scale-legend { display: flex; justify-content: space-between; margin-top: 4px; font-size: 8.5px; color: #64748b; }
.rp-bar-row { display: flex; align-items: center; gap: 12px; }
.rp-bar { flex: 1; height: 8px; border-radius: 99px; background: #eef2f7; overflow: hidden; }
.rp-bar i { display: block; height: 100%; border-radius: 99px; background: #d97706; }
.rp-bar-row b { font-size: 20px; color: #1e3a8a; }
.rp-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.rp-tiles div { border: 1px solid #e2e8f0; border-radius: 7px; padding: 7px 8px; }
.rp-tiles small { display: block; font-size: 7.5px; }
.rp-tiles b { display: block; margin-top: 2px; font-size: 13px; color: #1e3a8a; }
.rp-table { width: 100%; border-collapse: collapse; }
.rp-table th { font-size: 8px; letter-spacing: 0.08em; color: #64748b; text-align: left; background: #f8fafc; padding: 5px 7px; }
.rp-table td { padding: 6px 7px; border-top: 1px solid #eef2f7; font-weight: 600; }
.rp-table th:nth-child(2), .rp-table td:nth-child(2) { text-align: center; }
.rp-table th:last-child, .rp-table td:last-child { text-align: right; }
.rp .neg { color: #b91c1c; font-weight: 800; }
.rp .ok { color: #15803d; font-weight: 800; }
.rp-dl { display: grid; grid-template-columns: 1fr auto; margin: 0; }
.rp-dl dt, .rp-dl dd { margin: 0; padding: 5px 2px; border-top: 1px solid #eef2f7; }
.rp-dl dt:first-of-type, .rp-dl dd:first-of-type { border-top: 0; }
.rp-dl dd { text-align: right; font-weight: 700; }
.rp-caption { margin-top: 18px; text-align: center; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.7; }

/* relatório completo na seção do histórico */
.books .photo.csf-report { padding: 34px 0 0; }
.books .photo.csf-report:hover .rp-page:last-child { transform: rotate(-1deg) scale(1.02); }
.books .photo.csf-report .rp-page { transition: transform 0.6s; }

/* capa do relatório na oferta (no lugar das linhas genéricas) */
.report.csf-cover { padding: 22px 22px 110px; }
.report.csf-cover .scan { z-index: 3; }
.report.csf-cover .rp-page { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 20px 50px rgba(0, 0, 0, 0.45); }

@media (max-width: 820px) {
  .books .photo.csf-report { width: 100%; max-width: 440px; padding-top: 0; }
  .rp--full .rp-stack { padding-left: 0; }
  .rp--full .rp-page:first-child { display: none; }
  .rp--full .rp-page:last-child { margin-top: 0; transform: rotate(-1deg); }
  .rp-page { padding: 16px 14px 14px; font-size: 10px; }
  .rp-r { height: 20px; font-size: 8px; }
  .rp-tiles b { font-size: 11.5px; }
  .report.csf-cover { padding: 16px 14px 90px; }
}
