/* Página de cada concurso (single-resultados.php) */
.rs-wrap > * + * { margin-top: 20px; }
.rs-muted { color: var(--text-muted); font-weight: 400; font-size: .95rem; }
.rs-sm { font-size: .95rem !important; }
.rs-note { font-size: .82rem; color: var(--text-muted); margin: 8px 0 0; line-height: 1.55; }
.rs-link { color: var(--primary); font-weight: 700; text-decoration: none; }
.rs-link:hover { text-decoration: underline; }
.rs-sec h2, .rs-lead h2 { font-size: clamp(1.05rem, 2vw, 1.25rem); margin: 0 0 12px; color: var(--primary); }
.rs-lead p { margin: 0; line-height: 1.8; font-size: 1.02rem; }
.rs-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.rs-fact { font-size: .9rem; color: var(--text-muted); }
.rs-fact strong { color: var(--text); }
.rs-result .loteria-name { font-size: 1.2rem; margin: 0; }
.rs-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.qf-faixas-table th[scope="row"], .rs-ins th[scope="row"] { text-align: left; font-weight: 700; }
.rs-ins { width: 100%; border-collapse: collapse; }
.rs-ins th, .rs-ins td { padding: 10px 12px; vertical-align: top; }
.rs-ins td:nth-child(2) { font-weight: 800; white-space: nowrap; }
.rs-bullets { margin: 14px 0 6px; padding-left: 20px; line-height: 1.75; }
.rs-locais { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.rs-locais li { background: var(--bg); border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px; font-size: .88rem; }

/* CTA "Ganhou?" */
.rs-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; background: linear-gradient(135deg, var(--primary), #1d6b46); color: #fff; border-radius: 16px; padding: 20px 22px; border: 1px solid rgba(255,255,255,.12); }
.rs-cta-body { flex: 1 1 280px; min-width: 0; }
.rs-cta-title { font-size: 1.2rem; font-weight: 800; margin: 0 0 4px; line-height: 1.25; }
.rs-cta-text { margin: 0; opacity: .92; line-height: 1.55; }
.rs-cta-prazo { margin: 8px 0 0; font-size: .85rem; font-weight: 700; color: #ffe08a; }
.rs-cta-act { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; flex: 0 1 auto; }
.rs-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 12px 22px; border-radius: 12px; font-weight: 800; text-decoration: none; text-align: center; }
.rs-btn-cta { background: #ffd24a; color: #20270f; box-shadow: 0 2px 0 rgba(0,0,0,.18); }
.rs-btn-cta:hover { background: #ffdc72; }
.rs-btn-cta:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.rs-cta-guia { color: #fff; font-size: .88rem; text-decoration: underline; text-underline-offset: 3px; min-height: 32px; display: inline-flex; align-items: center; }
.rs-cta-aviso { font-size: .72rem; opacity: .75; max-width: 34ch; line-height: 1.4; }
.rs-cta--mini { margin-top: 18px; padding: 14px 16px; background: var(--bg); color: var(--text); border: 1px solid var(--border); }
.rs-cta--mini .rs-cta-title { font-size: 1rem; margin: 0; }
.rs-cta--mini .rs-cta-aviso { opacity: .7; }

/* Vizinhos / navegação */
.rs-viz { list-style: none; margin: 0; padding: 0; }
.rs-viz li { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; padding: 10px 4px; border-bottom: 1px solid var(--border); align-items: center; font-size: .92rem; }
.rs-viz li:last-child { border-bottom: 0; }
.rs-viz a { color: var(--primary); font-weight: 700; text-decoration: none; }
.rs-viz a:hover { text-decoration: underline; }
.rs-viz li.is-atual { background: var(--bg); font-weight: 800; border-radius: 8px; padding-left: 10px; padding-right: 10px; }
.rs-viz-d, .rs-viz-s { color: var(--text-muted); font-size: .85rem; white-space: nowrap; }
.rs-pn { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.rs-pn-a { display: inline-flex; align-items: center; min-height: 48px; padding: 12px 20px; background: var(--surface, #fff); border: 1px solid var(--border); border-radius: 12px; color: var(--primary); font-weight: 800; text-decoration: none; }
.rs-pn-a:hover { border-color: var(--primary); }

/* FAQ */
.rs-faq details { border-bottom: 1px solid var(--border); }
.rs-faq summary { cursor: pointer; font-weight: 700; padding: 14px 28px 14px 0; position: relative; list-style: none; min-height: 48px; display: flex; align-items: center; font-size: .96rem; }
.rs-faq summary::-webkit-details-marker { display: none; }
.rs-faq summary::after { content: "+"; position: absolute; right: 4px; font-size: 22px; font-weight: 400; color: var(--text-muted); }
.rs-faq details[open] summary::after { content: "–"; }
.rs-faq summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.rs-faq details p { margin: 0 0 14px; line-height: 1.7; }

.rs-more-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 8px 20px; }
.rs-more-list a { display: block; padding: 10px 0; color: var(--primary); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--border); line-height: 1.4; }
.rs-more-list a:hover { text-decoration: underline; }
.rs-fonte { font-size: .8rem; color: var(--text-muted); line-height: 1.6; }
.rs-fonte a { color: var(--primary); }

@media (max-width: 600px) {
  .rs-cta { padding: 16px; }
  .rs-cta-act { width: 100%; }
  .rs-btn-cta { width: 100%; }
  .rs-viz li { grid-template-columns: 1fr auto; }
  .rs-viz-s { grid-column: 1 / -1; margin-top: -6px; }
}

/* Cabeçalhos de linha legíveis (o estilo base de <th> é para o cabeçalho da tabela) */
.qf-faixas-table { table-layout: auto; }
.qf-faixas-table tbody th, .rs-ins tbody th {
  background: transparent; text-transform: none; letter-spacing: 0; font-family: inherit;
  font-size: .92rem; font-weight: 700; color: var(--text); white-space: normal; overflow-wrap: anywhere; text-align: left;
}
.qf-faixas-table th:nth-child(1), .qf-faixas-table td:nth-child(1) { width: auto; }
.qf-faixas-table th:nth-child(2), .qf-faixas-table td:nth-child(2), .qf-faixas-table th:nth-child(3), .qf-faixas-table td:nth-child(3) { width: auto; }
.rs-ins td { font-size: .9rem; }
@media (max-width: 600px) { .qf-faixas-table th, .qf-faixas-table td, .rs-ins th, .rs-ins td { padding: 10px 8px; } }
.qf-faixas-table tbody th, .rs-ins tbody th { border-bottom: 1px solid var(--border); } .qf-faixas-table th:nth-child(1) { min-width: 118px; }
