/*
Theme Name: Quatro Folhas
Theme URI: https://quatrofolhas.online
Author: Quatro Folhas Team
Author URI: https://quatrofolhas.online
Description: Tema oficial do portal Quatro Folhas - Resultados de Loterias Brasileiras
Version: 1.3.2
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: quatro-folhas
Domain Path: /languages
*/

/* ========================================
   QUATRO FOLHAS - THEME STYLES
   ======================================== */

:root {
  --primary: #1a3f29;
  --primary-light: #2d5b3e;
  --primary-hover: #153422;
  --accent: #d4af37;
  --accent-light: #f0d060;
  --danger: #c0392b;
  --bg: #f4f5f0;
  --surface: #ffffff;
  --text: #1e2922;
  --text-muted: #5a6b61;
  --border: #dde3d8;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 4px rgba(26,63,41,0.10);
  --shadow-md: 0 4px 16px rgba(26,63,41,0.13);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body { 
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; 
  background: var(--bg); 
  color: var(--text); 
  font-size: 14px; 
  line-height: 1.5; 
  min-width: 320px; 
}

a { color: var(--primary); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--primary-light); }

img { max-width: 100%; height: auto; }

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  clip: auto;
  width: auto;
  height: auto;
  margin: 12px;
  padding: 10px 14px;
  background: #fff;
  color: var(--primary);
  border-radius: var(--radius-sm);
  z-index: 1000;
}

.skip-link {
  left: 0;
  top: 0;
}

/* ========================================
   HEADER
   ======================================== */
.site-header { 
  background: var(--primary); 
  color: #fff; 
  padding: 0; 
  position: sticky; 
  top: 0; 
  z-index: 100; 
  box-shadow: 0 2px 8px rgba(0,0,0,0.18); 
}

.header-inner { 
  max-width: 1100px; 
  margin: 0 auto; 
  padding: 0 20px; 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  height: 56px; 
  gap: 16px; 
}

.logo { 
  display: flex; 
  align-items: center; 
  gap: 8px; 
  text-decoration: none; 
  color: #fff; 
  flex-shrink: 0; 
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-mark-image {
  width: 160px;
  max-width: 160px;
  height: 34px;
  overflow: hidden;
}

.logo-mark-image img,
.logo-image {
  display: block;
  width: auto !important;
  max-width: 160px !important;
  height: 34px !important;
  max-height: 34px !important;
  object-fit: contain;
}

.logo-mark-image img.custom-logo,
.custom-logo-link img,
.logo img {
  width: auto !important;
  max-width: 160px !important;
  height: 34px !important;
  max-height: 34px !important;
  object-fit: contain;
}

.logo-icon { width: 32px; height: 32px; }

.logo-text {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #fff;
}

.main-nav,
.main-nav-list {
  display: flex;
  gap: 4px;
}

.main-nav-list,
.mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a,
.main-nav-list a {
  color: rgba(255,255,255,0.85); 
  text-decoration: none; 
  font-size: 13px; 
  padding: 6px 10px; 
  border-radius: var(--radius-sm); 
  transition: background 0.15s, color 0.15s; 
  white-space: nowrap; 
}

.main-nav a:hover,
.main-nav-list a:hover,
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a,
.main-nav-list .current-menu-item > a,
.main-nav-list .current_page_item > a {
  background: rgba(255,255,255,0.12); 
  color: #fff; 
}

.header-search { 
  display: flex; 
  align-items: center; 
  background: rgba(255,255,255,0.12); 
  border-radius: 20px; 
  padding: 4px 12px; 
  gap: 6px; 
  border: 1px solid rgba(255,255,255,0.15); 
  margin-left: auto;
}

.header-search input { 
  background: none; 
  border: none; 
  outline: none; 
  color: #fff; 
  font-size: 13px; 
  width: 140px; 
}

.header-search input::placeholder { color: rgba(255,255,255,0.5); }
.header-search button { display: none; }

.mobile-nav {
  display: none;
  padding: 8px 20px 16px;
  background: var(--primary);
  border-top: 1px solid rgba(255,255,255,0.08);
}

.mobile-nav a,
.mobile-nav-list a {
  display: block;
  padding: 10px 0;
  color: #fff;
}

.qf-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.82);
}

.qf-breadcrumbs a,
.qf-breadcrumbs a:link,
.qf-breadcrumbs a:visited,
.qf-breadcrumbs a:active,
.page-header .qf-breadcrumbs a,
.page-header .qf-breadcrumbs a:link,
.page-header .qf-breadcrumbs a:visited,
.page-header .qf-breadcrumbs a:active,
.page-header--post .qf-breadcrumbs a,
.page-header--post .qf-breadcrumbs a:link,
.page-header--post .qf-breadcrumbs a:visited,
.page-header--post .qf-breadcrumbs a:active {
  color: #fff !important;
  text-decoration: none;
}

.qf-breadcrumbs a:hover,
.qf-breadcrumbs a:focus,
.page-header .qf-breadcrumbs a:hover,
.page-header .qf-breadcrumbs a:focus,
.page-header--post .qf-breadcrumbs a:hover,
.page-header--post .qf-breadcrumbs a:focus {
  color: var(--accent) !important;
  text-decoration: underline;
}

.qf-breadcrumbs .sep {
  color: var(--accent) !important;
  font-weight: 700;
}

.qf-breadcrumbs span:last-child,
.qf-breadcrumbs [aria-current="page"] {
  color: #fff !important;
}

.mobile-menu-toggle { display: none; }

/* ========================================
   LAYOUT
   ======================================== */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

.section { padding: 28px 0; }

.section-header { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  margin-bottom: 16px; 
  border-bottom: 2px solid var(--primary); 
  padding-bottom: 8px; 
}

.section-title { 
  font-size: 16px; 
  font-weight: 700; 
  color: var(--primary); 
  letter-spacing: -0.3px; 
}

.ver-todos { 
  font-size: 12px; 
  color: var(--primary); 
  font-weight: 600; 
  text-decoration: none; 
  border: 1px solid var(--primary); 
  border-radius: 20px; 
  padding: 3px 10px; 
  transition: background 0.15s; 
}

.ver-todos:hover { background: var(--primary); color: #fff; }

/* ========================================
   HERO
   ======================================== */
.hero { 
  background: linear-gradient(135deg, var(--primary) 60%, var(--primary-light) 100%); 
  color: #fff; 
  padding: 28px 0 24px; 
}

.hero-inner { 
  max-width: 1100px; 
  margin: 0 auto; 
  padding: 0 20px; 
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 24px; 
  align-items: center; 
}

.hero-copy h2 { 
  font-size: 24px; 
  font-weight: 800; 
  margin-bottom: 6px; 
  letter-spacing: -0.5px; 
  line-height: 1.2; 
}

.hero-copy p { 
  color: rgba(255,255,255,0.8); 
  font-size: 14px; 
  margin-bottom: 16px; 
}

.btn-hero { 
  background: var(--accent); 
  color: var(--primary); 
  font-weight: 700; 
  font-size: 14px; 
  padding: 10px 24px; 
  border: none; 
  border-radius: 24px; 
  cursor: pointer; 
  transition: background 0.15s, transform 0.1s; 
  display: inline-flex; 
  align-items: center; 
  gap: 6px; 
  text-decoration: none;
}

.btn-hero:hover { 
  background: var(--accent-light); 
  transform: translateY(-1px); 
  color: var(--primary);
}

.hero-card { 
  background: rgba(255,255,255,0.13); 
  border: 1px solid rgba(255,255,255,0.2); 
  border-radius: var(--radius); 
  padding: 18px 20px; 
  backdrop-filter: blur(2px); 
}

.hero-card-label { 
  font-size: 11px; 
  color: rgba(255,255,255,0.6); 
  text-transform: uppercase; 
  letter-spacing: 0.8px; 
  margin-bottom: 4px; 
}

.hero-card-title { 
  font-size: 15px; 
  font-weight: 700; 
  margin-bottom: 10px; 
}

.hero-card-row { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
}

.hero-concurso { 
  font-size: 12px; 
  color: rgba(255,255,255,0.7); 
}

.hero-data { 
  font-size: 14px; 
  font-weight: 700; 
}

.hero-prize-label { 
  font-size: 11px; 
  color: rgba(255,255,255,0.6); 
  text-align: right; 
}

.hero-prize { 
  font-size: 26px; 
  font-weight: 800; 
  color: var(--accent); 
  letter-spacing: -1px; 
  text-align: right; 
}

.badge-acumulou { 
  margin-top: 10px; 
  display: inline-flex; 
  align-items: center; 
  gap: 5px; 
  background: var(--accent); 
  color: var(--primary); 
  font-size: 11px; 
  font-weight: 800; 
  padding: 4px 12px; 
  border-radius: 12px; 
  text-transform: uppercase; 
  letter-spacing: 0.5px; 
}

/* ========================================
   CARDS - PRÓXIMOS SORTEIOS
   ======================================== */
.grid-3 { 
  display: grid; 
  grid-template-columns: repeat(3, 1fr); 
  gap: 14px; 
}

.card { 
  background: var(--surface); 
  border-radius: var(--radius); 
  box-shadow: var(--shadow); 
  border: 1px solid var(--border); 
  padding: 14px 16px; 
  transition: box-shadow 0.15s, transform 0.12s; 
}

.card:hover { 
  box-shadow: var(--shadow-md); 
  transform: translateY(-2px); 
}

.card-header-row { 
  display: flex; 
  justify-content: space-between; 
  align-items: flex-start; 
  margin-bottom: 10px; 
}

.loteria-name { 
  font-size: 15px; 
  font-weight: 700; 
  color: var(--primary); 
}

.loteria-concurso { 
  font-size: 11px; 
  color: var(--text-muted); 
  margin-top: 1px; 
}

.prize-box { text-align: right; }

.prize-label { 
  font-size: 10px; 
  color: var(--text-muted); 
  text-transform: uppercase; 
  letter-spacing: 0.5px; 
}

.prize-val { 
  font-size: 16px; 
  font-weight: 800; 
  color: var(--primary); 
}

.prize-val.big { font-size: 18px; }

.card-footer-row { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  margin-top: 10px; 
}

.badge { 
  font-size: 10px; 
  font-weight: 700; 
  padding: 3px 9px; 
  border-radius: 10px; 
  display: inline-flex; 
  align-items: center; 
  gap: 4px; 
  text-transform: uppercase; 
  letter-spacing: 0.3px; 
}

.badge-green { 
  background: #e7f5ee; 
  color: #1a6b3a; 
  border: 1px solid #b6dfc9; 
}

.badge-blue { 
  background: #e8f0fb; 
  color: #1a3f7a; 
  border: 1px solid #b6c8ee; 
}

.badge-amber { 
  background: #fdf5e0; 
  color: #7a5a00; 
  border: 1px solid #e8d07a; 
}

.card-date { 
  font-size: 11px; 
  color: var(--text-muted); 
}

.btn-link { 
  font-size: 12px; 
  color: var(--primary); 
  font-weight: 600; 
  background: none; 
  border: none; 
  cursor: pointer; 
  display: flex; 
  align-items: center; 
  gap: 3px; 
  padding: 0; 
}

.btn-link:hover { 
  color: var(--primary-light); 
  text-decoration: underline; 
}

.arrow { font-size: 10px; }

/* ========================================
   RESULTADOS
   ======================================== */
.result-card { 
  background: var(--surface); 
  border-radius: var(--radius); 
  box-shadow: var(--shadow); 
  border: 1px solid var(--border); 
  padding: 16px; 
  margin-bottom: 14px; 
  transition: box-shadow 0.15s; 
}

.result-card:hover { box-shadow: var(--shadow-md); }

.result-top { 
  display: flex; 
  justify-content: space-between; 
  align-items: flex-start; 
  margin-bottom: 12px; 
}

.bolas { 
  display: flex; 
  flex-wrap: wrap; 
  gap: 7px; 
  margin-bottom: 12px; 
}

.bola { 
  width: 36px; 
  height: 36px; 
  border-radius: 50%; 
  background: var(--primary); 
  color: #fff; 
  font-size: 13px; 
  font-weight: 700; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  box-shadow: 0 2px 6px rgba(26,63,41,0.22); 
  border: 2px solid var(--primary-light); 
  transition: transform 0.1s; 
}

.bola:hover { transform: scale(1.1); }

.bola-mega { background: linear-gradient(135deg, #1a3f29 60%, #2d7a50); }
.bola-quina { background: linear-gradient(135deg, #9b1a1a 60%, #c0392b); }
.bola-lotofacil { background: linear-gradient(135deg, #7a3f9b 60%, #a05bc4); }
.bola-lotomania { background: linear-gradient(135deg, #e67e22 60%, #f39c12); }
.bola-timemania { background: linear-gradient(135deg, #1a5a3f 60%, #2d8a60); }
.bola-dupla-sena { background: linear-gradient(135deg, #8b1a4a 60%, #b0396b); }
.bola-dia-de-sorte { background: linear-gradient(135deg, #d4af37 60%, #f0d060); color: var(--primary); }
.bola-super-sete { background: linear-gradient(135deg, #3a5a8b 60%, #5a8ac0); }

.result-bottom { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
}

.prize-text { 
  font-size: 14px; 
  color: var(--text-muted); 
}

.prize-text strong { 
  color: var(--primary); 
  font-size: 15px; 
}

/* ========================================
   FERRAMENTAS
   ======================================== */
.tools-grid { 
  display: grid; 
  grid-template-columns: repeat(4, 1fr); 
  gap: 14px; 
}

.tool-card { 
  background: var(--surface); 
  border-radius: var(--radius); 
  box-shadow: var(--shadow); 
  border: 1px solid var(--border); 
  padding: 18px 14px; 
  text-align: center; 
  transition: box-shadow 0.15s, transform 0.12s; 
  cursor: pointer; 
  text-decoration: none;
  display: block;
}

.tool-card:hover { 
  box-shadow: var(--shadow-md); 
  transform: translateY(-2px); 
}

.tool-icon { 
  width: 44px; 
  height: 44px; 
  border-radius: 50%; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  margin: 0 auto 10px; 
  font-size: 20px; 
}

.tool-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.tool-icon-green { background: #e7f5ee; }
.tool-icon-blue { background: #e8f0fb; }
.tool-icon-amber { background: #fdf5e0; }
.tool-icon-red { background: #fdecea; }

.tool-title { 
  font-size: 13px; 
  font-weight: 700; 
  color: var(--primary); 
  margin-bottom: 4px; 
}

.tool-desc { 
  font-size: 11px; 
  color: var(--text-muted); 
  line-height: 1.4; 
}

/* ========================================
   RANKING
   ======================================== */
.ranking-card { 
  background: var(--surface); 
  border-radius: var(--radius); 
  box-shadow: var(--shadow); 
  border: 1px solid var(--border); 
  padding: 20px; 
}

.states-row { 
  display: flex; 
  gap: 16px; 
  justify-content: space-around; 
  align-items: flex-end; 
}

.state-item { text-align: center; }

.state-bar-wrap { 
  display: flex; 
  align-items: flex-end; 
  justify-content: center; 
  height: 60px; 
  margin-bottom: 6px; 
}

.state-bar { 
  width: 28px; 
  background: var(--primary); 
  border-radius: 4px 4px 0 0; 
  opacity: 0.85; 
  transition: opacity 0.2s; 
}

.state-bar:hover { opacity: 1; }

.state-code { 
  font-size: 12px; 
  font-weight: 700; 
  color: var(--primary); 
}

.state-count { 
  font-size: 11px; 
  color: var(--text-muted); 
}

.map-placeholder { 
  background: #eef2ec; 
  border-radius: 8px; 
  height: 120px; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  color: var(--text-muted); 
  font-size: 12px; 
  margin-bottom: 16px; 
  border: 1px dashed var(--border); 
}

.stats-map-wrap {
  background: linear-gradient(180deg, #f3f7f1 0%, #eef3ea 100%);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 18px;
}

.stats-map {
  width: 100%;
  height: auto;
  display: block;
}

.stats-map-real {
  max-height: 560px;
}

.stats-map-real #features path {
  stroke: rgba(255,255,255,0.9);
  stroke-width: 1.25;
  transition: filter 0.18s ease, transform 0.18s ease, fill-opacity 0.18s ease, stroke 0.18s ease;
  transform-box: fill-box;
  transform-origin: center;
  cursor: pointer;
}

.stats-map-real #features path:hover,
.stats-map-real #features path:focus {
  fill-opacity: 1 !important;
  stroke: var(--accent);
  filter: drop-shadow(0 8px 18px rgba(26, 63, 41, 0.2));
}

.stats-map-state {
  cursor: pointer;
  transition: transform 0.18s ease;
  transform-origin: center;
}

.stats-map-state rect {
  stroke: rgba(26, 63, 41, 0.12);
  stroke-width: 2;
  transition: stroke 0.18s ease, stroke-width 0.18s ease, filter 0.18s ease;
}

.stats-map-state:hover,
.stats-map-state:focus-within {
  transform: translateY(-3px);
}

.stats-map-state:hover rect,
.stats-map-state:focus-within rect {
  stroke: var(--accent);
  stroke-width: 3;
  filter: drop-shadow(0 8px 16px rgba(26, 63, 41, 0.14));
}

.stats-map-code {
  font-size: 16px;
  font-weight: 800;
  fill: #173625;
  letter-spacing: 0.5px;
}

.stats-map-count {
  font-size: 12px;
  font-weight: 700;
  fill: rgba(23, 54, 37, 0.78);
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer { 
  background: var(--primary); 
  color: rgba(255,255,255,0.8); 
  padding: 32px 0 16px; 
  margin-top: 12px; 
}

.footer-grid { 
  display: grid; 
  grid-template-columns: 2fr 1fr 1fr 1fr; 
  gap: 24px; 
  margin-bottom: 24px; 
}

.footer-logo { 
  font-size: 18px; 
  font-weight: 700; 
  color: var(--accent); 
  margin-bottom: 8px; 
}

.footer-desc { 
  font-size: 12px; 
  line-height: 1.6; 
}

.footer-col h4 { 
  font-size: 12px; 
  font-weight: 700; 
  color: var(--accent); 
  text-transform: uppercase; 
  letter-spacing: 0.8px; 
  margin-bottom: 10px; 
}

.footer-col a { 
  display: block; 
  font-size: 12px; 
  color: rgba(255,255,255,0.7); 
  text-decoration: none; 
  margin-bottom: 6px; 
  transition: color 0.15s; 
}

.footer-col a:hover { color: var(--accent); }

.footer-bottom { 
  border-top: 1px solid rgba(255,255,255,0.12); 
  padding-top: 14px; 
  text-align: center; 
  font-size: 11px; 
  color: rgba(255,255,255,0.45); 
}

/* ========================================
   PAGE CONTENT
   ======================================== */
.page-header {
  background: linear-gradient(135deg, var(--primary) 60%, var(--primary-light) 100%);
  color: #fff;
  padding: 40px 0 32px;
  margin-bottom: 24px;
}

.page-header h1 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
}

.page-header p {
  color: rgba(255,255,255,0.8);
  font-size: 14px;
}

.page-content {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: 24px;
  margin-bottom: 24px;
}

.page-content h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}

.page-content h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  margin: 20px 0 12px;
}

.page-content p {
  margin-bottom: 12px;
  line-height: 1.7;
}

.page-content ul,
.page-content ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.page-content li {
  margin-bottom: 8px;
}

/* ========================================
   LOTERIA PAGES
   ======================================== */
.loteria-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.loteria-nav a {
  padding: 8px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.15s;
}

.loteria-nav a:hover,
.loteria-nav a.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.loteria-hero {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: 24px;
  margin-bottom: 24px;
  text-align: center;
}

.loteria-hero .loteria-name {
  font-size: 24px;
  margin-bottom: 8px;
}

.loteria-hero .proximo-sorteio {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.loteria-hero .estimativa {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
}

/* ========================================
   CALCULADORAS
   ======================================== */
.calculadora-form {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  background: var(--surface);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
}

.btn-calcular {
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 32px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s;
}

.btn-calcular:hover {
  background: var(--primary-hover);
}

.resultado-calculo {
  background: var(--surface);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}

.resultado-calculo .valor {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
}

.resultado-calculo .label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ========================================
   PAGINATION
   ======================================== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

/* paginate_links() com type='list' gera <ul class="page-numbers"><li><a>...</a></li></ul> */
.pagination ul.page-numbers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pagination ul.page-numbers li {
  list-style: none;
  margin: 0;
}

.pagination a,
.pagination span {
  display: inline-block;
  padding: 8px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
}

.pagination a:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.pagination .current {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ========================================
   TABLES
   ======================================== */
.table-base,
.qf-faixas-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  border-spacing: 0;
}

.table-base thead,
.qf-faixas-table thead {
  border-bottom: 2px solid var(--border);
}

.table-base th,
.table-base td,
.qf-faixas-table th,
.qf-faixas-table td {
  padding: 10px 12px;
  text-align: left;
  vertical-align: middle;
}

.table-base th,
.qf-faixas-table th {
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.table-base td,
.qf-faixas-table td {
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.table-base tbody tr:last-child td,
.qf-faixas-table tbody tr:last-child td {
  border-bottom: none;
}

.qf-faixas-table th:nth-child(1),
.qf-faixas-table td:nth-child(1) {
  width: 28%;
}

.qf-faixas-table th:nth-child(2),
.qf-faixas-table td:nth-child(2) {
  width: 22%;
  text-align: center;
}

.qf-faixas-table th:nth-child(3),
.qf-faixas-table td:nth-child(3) {
  width: 50%;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.page-content > .table-base,
.page-content > .qf-faixas-table {
  margin-top: 8px;
}

.page-content .table-base th,
.page-content .table-base td,
.page-content .qf-faixas-table th,
.page-content .qf-faixas-table td {
  display: table-cell;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  
  .main-nav { display: none; }
  .main-nav-list { display: none; }
  
  .mobile-menu-toggle { 
    display: flex; 
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
  }
  
  .mobile-menu-toggle svg {
    width: 20px;
    height: 20px;
    stroke: #fff;
  }
  
  .header-inner {
    height: auto;
    min-height: 56px;
    flex-wrap: wrap;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .header-search {
    order: 4;
    width: 100%;
    margin-left: 0;
  }

  .logo-mark-image {
    width: 128px;
    max-width: 128px;
    height: 30px;
  }

  .logo-mark-image img,
  .logo-image,
  .logo-mark-image img.custom-logo,
  .custom-logo-link img,
  .logo img {
    max-width: 128px !important;
    height: 30px !important;
    max-height: 30px !important;
  }

  .header-search input { width: 100%; }
  .states-row { gap: 8px; }
  
  .loteria-nav {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  
  .loteria-nav a {
    white-space: nowrap;
  }

  .mobile-nav-list {
    display: grid;
    gap: 2px;
  }
}

@media (max-width: 480px) {
  .tools-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  
  .hero-prize {
    font-size: 20px;
  }
}

/* ========================================
   ADMIN NOTICES
   ======================================== */
.qf-admin-notice {
  background: #fff;
  border-left: 4px solid var(--primary);
  padding: 12px 16px;
  margin: 20px 0;
  box-shadow: var(--shadow);
}

.qf-admin-notice.success {
  border-left-color: #1a6b3a;
}

.qf-admin-notice.error {
  border-left-color: var(--danger);
}

.qf-admin-notice.warning {
  border-left-color: var(--accent);
}

/* ========================================
   FINAL OVERRIDES
   ======================================== */
nav.qf-breadcrumbs,
nav.qf-breadcrumbs span,
nav.qf-breadcrumbs [aria-current="page"] {
  color: #fff !important;
}

nav.qf-breadcrumbs a,
nav.qf-breadcrumbs a:link,
nav.qf-breadcrumbs a:visited,
nav.qf-breadcrumbs a:active {
  color: #fff !important;
  text-decoration: none !important;
}

nav.qf-breadcrumbs a:hover,
nav.qf-breadcrumbs a:focus-visible {
  color: var(--accent) !important;
  text-decoration: underline !important;
}

nav.qf-breadcrumbs .sep {
  color: var(--accent) !important;
}

.page-content table.table-base,
.page-content table.qf-faixas-table,
.seo-content-wrap table.table-base,
.seo-content-wrap table.qf-faixas-table {
  width: 100% !important;
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  table-layout: fixed !important;
}

.page-content table.table-base th,
.page-content table.table-base td,
.page-content table.qf-faixas-table th,
.page-content table.qf-faixas-table td,
.seo-content-wrap table.table-base th,
.seo-content-wrap table.table-base td,
.seo-content-wrap table.qf-faixas-table th,
.seo-content-wrap table.qf-faixas-table td {
  display: table-cell !important;
  padding: 12px 14px !important;
  vertical-align: middle !important;
}

.page-content table.qf-faixas-table th:nth-child(1),
.page-content table.qf-faixas-table td:nth-child(1),
.seo-content-wrap table.qf-faixas-table th:nth-child(1),
.seo-content-wrap table.qf-faixas-table td:nth-child(1) {
  width: 30% !important;
}

.page-content table.qf-faixas-table th:nth-child(2),
.page-content table.qf-faixas-table td:nth-child(2),
.seo-content-wrap table.qf-faixas-table th:nth-child(2),
.seo-content-wrap table.qf-faixas-table td:nth-child(2) {
  width: 24% !important;
  text-align: center !important;
}

.page-content table.qf-faixas-table th:nth-child(3),
.page-content table.qf-faixas-table td:nth-child(3),
.seo-content-wrap table.qf-faixas-table th:nth-child(3),
.seo-content-wrap table.qf-faixas-table td:nth-child(3) {
  width: 46% !important;
  text-align: right !important;
  font-variant-numeric: tabular-nums !important;
}

.probability-note {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 14px 16px;
  margin-bottom: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #f7faf7;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
}

.resultado-probabilidade {
  text-align: left;
}

.resultado-calculo-erro {
  border-color: #d95c45;
}

.probability-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.probability-metric {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
}

.probability-metric span {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.probability-metric strong {
  font-size: 18px;
  color: var(--primary);
}

.probability-summary {
  margin-top: 18px;
}

.probability-extra {
  margin-top: 10px;
  color: var(--text-muted);
}

.probability-comparisons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.probability-comparison {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
}

.probability-comparison strong {
  display: block;
  color: var(--primary);
  margin-bottom: 6px;
}

.probability-comparison p {
  margin: 0;
  color: var(--text-muted);
}

.tool-card-featured {
  border-color: rgba(23, 91, 53, 0.25);
  box-shadow: 0 16px 40px rgba(23, 91, 53, 0.08);
}

.probability-page-content {
  border: 1px solid rgba(23, 91, 53, 0.12);
  box-shadow: 0 20px 50px rgba(23, 91, 53, 0.08);
}

.probability-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.probability-eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(23, 91, 53, 0.08);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.probability-badge {
  min-width: 180px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #f8fbf8 0%, #eef5ef 100%);
  text-align: center;
}

.probability-badge strong {
  display: block;
  color: var(--primary);
  font-size: 16px;
  margin-bottom: 4px;
}

.probability-badge span {
  color: var(--text-muted);
  font-size: 13px;
}

.probability-form-wrap {
  background: linear-gradient(180deg, #fbfcfa 0%, #f4f7f3 100%);
}

.probability-form-group {
  margin-bottom: 0;
}

.probability-inline-form {
  display: flex;
  gap: 12px;
  align-items: center;
}

.probability-inline-form input {
  flex: 0 0 180px;
}

.resultado-probabilidade {
  text-align: left;
  border-width: 1px;
  border-color: rgba(218, 170, 46, 0.7);
  box-shadow: 0 12px 30px rgba(20, 50, 31, 0.06);
}

.probability-headline {
  text-align: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.probability-headline .valor {
  font-size: clamp(36px, 5vw, 54px);
  line-height: 1;
  margin: 10px 0 12px;
}

.probability-summary {
  max-width: 760px;
  margin: 0 auto;
  color: var(--text);
}

.probability-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.probability-metric {
  padding: 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.probability-metric-primary {
  background: linear-gradient(180deg, #173f29 0%, #1f5d39 100%);
  border-color: #173f29;
}

.probability-metric span {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.probability-metric strong {
  display: block;
  color: var(--primary);
  font-size: 24px;
  line-height: 1.2;
}

.probability-metric-primary span,
.probability-metric-primary strong {
  color: #fff;
}

.probability-extra-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.probability-extra {
  padding: 16px 18px;
  background: #fafbf9;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.probability-extra span {
  display: block;
  margin-bottom: 6px;
  color: var(--text-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.probability-extra strong {
  color: var(--primary);
  font-size: 18px;
  line-height: 1.4;
}

.probability-highlight {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: rgba(218, 170, 46, 0.1);
  color: var(--text);
}

.probability-section-title {
  margin: 22px 0 14px;
  font-size: 18px;
  color: var(--primary);
}

.probability-comparisons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 0;
}

.probability-comparison {
  height: 100%;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.probability-comparison strong {
  display: block;
  margin-bottom: 8px;
  color: var(--primary);
  font-size: 15px;
}

.probability-comparison p {
  margin: 0;
  color: var(--text);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .probability-hero,
  .probability-inline-form {
    flex-direction: column;
    align-items: stretch;
  }

  .probability-badge,
  .probability-inline-form input,
  .probability-inline-form .btn-calcular {
    width: 100%;
  }

  .probability-metrics,
  .probability-extra-grid,
  .probability-comparisons {
    grid-template-columns: 1fr;
  }
}

.probability-form-grid {
  display: grid !important;
  grid-template-columns: 1.1fr 1fr auto;
  gap: 16px;
  align-items: end;
}

.probability-form-actions {
  margin-bottom: 0;
}

.btn-calcular-full {
  width: 100%;
}

#probability-result .probability-cards-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

#probability-result .probability-card {
  display: block !important;
  padding: 20px !important;
  background: #ffffff !important;
  border: 1px solid #dfe6dc !important;
  border-radius: 16px !important;
  box-shadow: 0 8px 20px rgba(18, 43, 28, 0.06) !important;
}

#probability-result .probability-card span {
  display: block !important;
  margin-bottom: 8px !important;
  font-size: 11px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  color: #6f7d72 !important;
}

#probability-result .probability-card strong {
  display: block !important;
  font-size: 28px !important;
  line-height: 1.2 !important;
  color: #163c28 !important;
}

#probability-result .probability-card-primary {
  background: linear-gradient(180deg, #163c28 0%, #1e5a37 100%) !important;
  border-color: #163c28 !important;
}

#probability-result .probability-card-primary span,
#probability-result .probability-card-primary strong {
  color: #ffffff !important;
}

#probability-result .probability-extra-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

#probability-result .probability-extra {
  display: block !important;
  padding: 18px !important;
  background: #f8faf7 !important;
  border: 1px solid #dfe6dc !important;
  border-radius: 16px !important;
}

#probability-result .probability-extra span {
  display: block !important;
  margin-bottom: 8px !important;
  font-size: 11px !important;
  text-transform: uppercase !important;
  color: #6f7d72 !important;
}

#probability-result .probability-extra strong {
  display: block !important;
  color: #163c28 !important;
  font-size: 20px !important;
  line-height: 1.4 !important;
}

#probability-result .probability-highlight {
  margin-top: 18px !important;
  padding: 16px 18px !important;
  background: #fff7e5 !important;
  border: 1px solid #f0d17f !important;
  border-radius: 16px !important;
  color: #4e3d12 !important;
}

#probability-result .probability-comparisons {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 14px !important;
}

#probability-result .probability-comparison {
  display: block !important;
  padding: 20px !important;
  background: #ffffff !important;
  border: 1px solid #dfe6dc !important;
  border-radius: 16px !important;
  box-shadow: 0 8px 20px rgba(18, 43, 28, 0.05) !important;
}

#probability-result .probability-comparison strong {
  display: block !important;
  margin-bottom: 10px !important;
  font-size: 17px !important;
  color: #163c28 !important;
}

#probability-result .probability-comparison p {
  margin: 0 !important;
  color: #37483d !important;
  line-height: 1.7 !important;
}

@media (max-width: 900px) {
  .probability-form-grid,
  #probability-result .probability-cards-grid,
  #probability-result .probability-extra-grid,
  #probability-result .probability-comparisons {
    grid-template-columns: 1fr !important;
  }
}

/* ========================================
   QUATRO FOLHAS V6 — EDITORIAL REFRESH
   Shared visual layer for the existing
   WordPress templates and data components.
   ======================================== */

:root {
  --primary: #123f29;
  --primary-light: #236344;
  --primary-hover: #0d2d1d;
  --accent: #f7cd3b;
  --accent-light: #ffda58;
  --bg: #f6f6ee;
  --surface: #fffdf5;
  --text: #143c28;
  --text-muted: #617364;
  --border: #d6e0d4;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 22px rgba(20, 60, 40, .07);
  --shadow-md: 0 16px 38px rgba(20, 60, 40, .12);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "DM Sans", "Segoe UI", system-ui, sans-serif;
}

body:not(.wp-admin) {
  background-image:
    linear-gradient(rgba(20, 60, 40, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 60, 40, .025) 1px, transparent 1px);
  background-size: 32px 32px;
}

.site-header {
  background: rgba(18, 63, 41, .96);
  border-bottom: 1px solid rgba(231, 242, 226, .15);
  box-shadow: 0 8px 24px rgba(13, 45, 29, .14);
  backdrop-filter: blur(14px);
}

.header-inner {
  max-width: 1200px;
  height: 70px;
  padding-left: 24px;
  padding-right: 24px;
}

.logo {
  gap: 11px;
}

.logo-text {
  color: #fffdf5;
  font-family: "Fraunces", Georgia, serif;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -.04em;
}

.logo-mark-icon svg,
.logo-icon {
  height: 36px;
  width: 36px;
}

.logo-mark-icon svg rect {
  fill: var(--accent);
}

.logo-mark-icon svg path {
  stroke: var(--primary) !important;
}

.logo-mark-icon svg circle {
  fill: var(--primary);
}

.main-nav,
.main-nav-list {
  align-items: center;
  gap: 5px;
}

.main-nav a,
.main-nav-list a {
  border: 1px solid transparent;
  border-radius: 999px;
  color: #c3d8bd;
  font-size: 12px;
  padding: 9px 11px;
}

.main-nav a:hover,
.main-nav-list a:hover,
.main-nav .current-menu-item > a,
.main-nav-list .current-menu-item > a {
  background: rgba(247, 205, 59, .1);
  border-color: rgba(247, 205, 59, .25);
  color: var(--accent);
}

/* WordPress menus with sub-items */
.main-nav-list > .menu-item {
  position: relative;
}

.main-nav-list .menu-item-has-children > a::after {
  border: solid currentColor;
  border-width: 0 1px 1px 0;
  content: "";
  display: inline-block;
  margin: 0 0 3px 7px;
  padding: 3px;
  transform: rotate(45deg);
  vertical-align: middle;
}

.main-nav-list .sub-menu {
  background: var(--primary);
  border: 1px solid rgba(195, 216, 189, .24);
  border-radius: 12px;
  box-shadow: 0 18px 30px rgba(5, 27, 16, .22);
  display: block;
  left: 0;
  list-style: none;
  margin: 0;
  min-width: 210px;
  opacity: 0;
  padding: 7px;
  pointer-events: none;
  position: absolute;
  top: calc(100% + 8px);
  transform: translateY(-4px);
  transition: opacity .16s ease, transform .16s ease;
  visibility: hidden;
  z-index: 30;
}

.main-nav-list .menu-item:hover > .sub-menu,
.main-nav-list .menu-item:focus-within > .sub-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}

.main-nav-list .sub-menu .menu-item {
  position: relative;
}

.main-nav-list .sub-menu .sub-menu {
  left: calc(100% + 7px);
  top: -7px;
}

.main-nav-list .sub-menu a {
  border-radius: 8px;
  display: block;
  padding: 10px 11px;
  white-space: normal;
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav-list,
.mobile-nav-list .sub-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav-list .menu-item {
  border-bottom: 1px solid rgba(195, 216, 189, .14);
}

.mobile-nav-list .menu-item:last-child {
  border-bottom: 0;
}

.mobile-nav-list .sub-menu {
  border-left: 1px solid rgba(247, 205, 59, .38);
  margin: 0 0 8px 10px;
  padding-left: 13px;
}

.mobile-nav-list .sub-menu a {
  color: #a9c5a8;
  font-size: 13px;
  padding: 10px 0;
}

.header-search {
  background: transparent;
  border: 1px solid rgba(195, 216, 189, .3);
  border-radius: 999px;
  height: 36px;
  padding: 0 13px;
}

.header-search input {
  color: #fffdf5;
  font-size: 12px;
  width: 132px;
}

.header-search input::placeholder {
  color: #9ab29c;
}

.mobile-menu-toggle {
  background: transparent;
  border: 1px solid rgba(195, 216, 189, .35);
  border-radius: 9px;
  color: #fffdf5;
  height: 38px;
  width: 40px;
}

.mobile-nav {
  background: var(--primary);
  border-bottom: 1px solid rgba(195, 216, 189, .2);
  box-shadow: 0 14px 30px rgba(13, 45, 29, .18);
  padding: 12px 24px 20px;
}

.mobile-nav a {
  border-bottom: 1px solid rgba(195, 216, 189, .14);
  color: #dbe8d8;
  display: block;
  font-size: 14px;
  padding: 14px 0;
}

.home .hero,
.page-template-template-home .hero {
  background:
    radial-gradient(circle at 80% 0%, rgba(247, 205, 59, .13), transparent 31%),
    linear-gradient(135deg, #123f29 0%, #164d32 100%);
  min-height: 520px;
  overflow: hidden;
  padding: 76px 0 86px;
  position: relative;
}

.home .hero::after,
.page-template-template-home .hero::after {
  border: 1px solid rgba(247, 205, 59, .12);
  border-radius: 50%;
  content: "";
  height: 480px;
  pointer-events: none;
  position: absolute;
  right: -130px;
  top: -250px;
  width: 480px;
}

.hero-inner {
  max-width: 1200px;
  gap: 70px;
  min-height: 360px;
  padding-left: 24px;
  padding-right: 24px;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-copy::before {
  background: var(--accent);
  content: "";
  display: inline-block;
  height: 1px;
  margin: 0 13px 4px 0;
  width: 40px;
}

.hero-copy h1 {
  color: #fffdf5;
  display: inline;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(46px, 5vw, 74px);
  font-weight: 600;
  letter-spacing: -.065em;
  line-height: .99;
}

.hero-copy h2 {
  color: #fffdf5;
  font-family: "Fraunces", Georgia, serif;
}

.hero-copy p {
  color: #c3d8bd;
  font-size: 16px;
  line-height: 1.65;
  margin-top: 27px;
  max-width: 500px;
}

.hero-actions {
  margin-top: 28px;
}

.btn-hero,
.btn-hero-sec {
  border-radius: 999px;
  min-height: 46px;
  padding: 0 20px;
}

.btn-hero {
  background: var(--accent);
  color: var(--primary);
}

.btn-hero:hover {
  background: var(--accent-light);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-hero-sec {
  border-color: rgba(226, 238, 219, .5);
  color: #fffdf5;
}

.btn-hero-sec:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-card {
  background: linear-gradient(145deg, rgba(37, 99, 70, .9), rgba(22, 77, 50, .9));
  border: 1px solid rgba(207, 226, 202, .32);
  border-radius: 24px;
  box-shadow: 0 24px 56px rgba(5, 27, 16, .2);
  min-height: 292px;
  padding: 29px 30px;
  position: relative;
  transform: rotate(1deg);
  z-index: 1;
}

.hero-card::before {
  border: 1px solid rgba(207, 226, 202, .2);
  border-radius: 24px;
  content: "";
  inset: -12px;
  pointer-events: none;
  position: absolute;
}

.hero-card-label,
.hero-concurso,
.hero-prize-label {
  color: #a9c5a8;
  font-family: "Space Mono", monospace;
  font-size: 9px;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.hero-card-title {
  color: #fffdf5;
  font-family: "Fraunces", Georgia, serif;
  font-size: 31px;
  letter-spacing: -.04em;
  margin: 8px 0 28px;
}

.hero-card-row {
  border-top: 1px solid rgba(207, 226, 202, .2);
  padding-top: 23px;
}

.hero-data {
  color: #fffdf5;
  font-size: 14px;
  margin-top: 6px;
}

.hero-prize {
  color: var(--accent);
  font-family: "Fraunces", Georgia, serif;
  font-size: 34px;
}

.badge-acumulou {
  background: var(--accent);
  border-radius: 999px;
  color: var(--primary);
  font-family: "Space Mono", monospace;
  font-size: 9px;
  margin-top: 27px;
  padding: 9px 13px;
}

.container {
  max-width: 1200px;
  padding-left: 24px;
  padding-right: 24px;
}

.home .section,
.page-template-template-home .section {
  padding: 74px 0;
}

.section-header {
  align-items: flex-end;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
  padding-bottom: 13px;
}

.section-title {
  color: var(--text);
  font-family: "Fraunces", Georgia, serif;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -.045em;
}

.ver-todos {
  border: 1px solid #82a487;
  border-radius: 999px;
  color: var(--primary-light);
  padding: 7px 12px;
}

.ver-todos:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--accent);
}

.grid-3 {
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: none;
  min-height: 190px;
  padding: 20px;
}

.card:hover,
.result-card:hover,
.tool-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.loteria-name,
.card h3,
.result-card h3 {
  color: var(--text);
  font-family: "Fraunces", Georgia, serif;
}

.home-main-layout {
  gap: 48px;
  grid-template-columns: minmax(0, 1fr) 290px;
}

.results-grid {
  gap: 16px;
}

.result-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: none;
  padding: 20px;
  transition: box-shadow .2s ease, transform .2s ease;
}

.result-card .bola,
.result-card .bolas .bola {
  border-width: 2px;
  box-shadow: 0 4px 8px rgba(20, 60, 40, .12);
}

.home-artigo-card {
  border-bottom-color: var(--border);
  padding: 15px 0;
}

.home-artigo-card:hover {
  opacity: 1;
  transform: translateX(4px);
}

.home-artigo-cat,
.aside-tool-name {
  color: var(--primary-light);
  font-family: "Space Mono", monospace;
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.home-artigo-title {
  color: var(--text);
  font-family: "Fraunces", Georgia, serif;
  font-size: 17px;
  line-height: 1.2;
  margin-top: 6px;
}

.aside-tools {
  gap: 8px;
}

.aside-tool {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
}

.aside-tool:hover {
  background: var(--surface);
  box-shadow: var(--shadow);
}

.aside-tool-icon {
  align-items: center;
  background: var(--sage, #e6f0dd);
  border-radius: 10px;
  color: var(--primary-light);
  display: inline-flex;
  font-family: "Space Mono", monospace;
  font-size: 16px;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.aside-tool:nth-child(2) .aside-tool-icon { background: #f9edbc; color: #8f7105; }
.aside-tool:nth-child(3) .aside-tool-icon { background: #f3dfdf; color: #a62d63; }
.aside-tool:nth-child(4) .aside-tool-icon { background: #dce9ed; color: #27759c; }
.aside-tool:nth-child(5) .aside-tool-icon { background: #e9e4f4; color: #66529c; }

.section-editorial {
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.editorial-block {
  max-width: 840px;
  padding: 15px 0;
}

.editorial-title {
  color: var(--text);
  font-family: "Fraunces", Georgia, serif;
  font-size: 30px;
  letter-spacing: -.04em;
  text-transform: none;
}

.editorial-body p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.8;
}

.editorial-disclaimer {
  background: #f9edbc;
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
  color: #665514 !important;
  padding: 13px 16px;
}

.editorial-links {
  gap: 10px 24px;
}

.editorial-links a {
  color: var(--primary-light);
  font-size: 12px;
}

.site-footer {
  background: var(--primary-hover);
  color: #c3d8bd;
  padding: 58px 0 25px;
}

.footer-logo {
  color: var(--surface);
  font-family: "Fraunces", Georgia, serif;
  font-size: 23px;
  font-weight: 600;
}

.footer-desc {
  color: #95b39a;
  font-size: 12px;
  line-height: 1.6;
  max-width: 300px;
  margin-top: 16px;
}

.footer-grid {
  gap: 56px;
}

.footer-col h4 {
  color: var(--accent);
  font-family: "Space Mono", monospace;
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.footer-col a {
  color: #c3d8bd;
  font-size: 12px;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top-color: #2a6546;
  color: #709277;
  font-family: "Space Mono", monospace;
  font-size: 9px;
  letter-spacing: .05em;
  margin-top: 44px;
  padding-top: 18px;
}

@media (max-width: 980px) {
  .main-nav {
    gap: 0;
  }

  .main-nav a,
  .main-nav-list a {
    padding-left: 7px;
    padding-right: 7px;
  }

  .hero-inner {
    gap: 40px;
  }
}

@media (max-width: 900px) {
  .home-main-layout {
    grid-template-columns: 1fr;
  }

  .home-col-aside {
    gap: 24px;
  }
}

@media (max-width: 700px) {
  .header-inner {
    height: 62px;
    padding-left: 18px;
    padding-right: 18px;
  }

  .main-nav,
  .header-search {
    display: none;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-nav {
    padding-left: 18px;
    padding-right: 18px;
  }

  .home .hero,
  .page-template-template-home .hero {
    min-height: auto;
    padding: 58px 0 64px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-copy h1 {
    font-size: clamp(46px, 14vw, 66px);
  }

  .hero-card {
    margin: 0 11px;
    min-height: 260px;
    padding: 23px;
  }

  .container {
    padding-left: 18px;
    padding-right: 18px;
  }

  .home .section,
  .page-template-template-home .section {
    padding: 58px 0;
  }

  .section-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .section-title {
    font-size: 34px;
  }

  .grid-3,
  .results-grid,
  .home-col-aside {
    grid-template-columns: 1fr;
  }

  .home-col-aside {
    display: grid;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }
}

/* ========================================
   V6.2 — PADRONIZAÇÃO DAS PÁGINAS INTERNAS
   ======================================== */

/* Moldura de páginas */
.page-header,
body .page-header-artigos {
  background:
    radial-gradient(circle at 84% 0%, rgba(247, 205, 59, .13), transparent 30%),
    linear-gradient(135deg, #123f29 0%, #236344 100%);
  border: 0;
  color: #fffdf5;
  margin-bottom: 0;
  padding: 52px 0 46px;
}

.page-header h1,
body .page-header-artigos .page-title {
  color: #fffdf5;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 600;
  letter-spacing: -.055em;
  line-height: 1.02;
  margin: 14px 0 12px;
}

.page-header p,
body .page-header-artigos .page-description {
  color: #c3d8bd;
  font-size: 15px;
  line-height: 1.65;
  margin: 0;
  max-width: 680px;
}

.page-header .breadcrumbs,
body .page-header-artigos .breadcrumbs {
  color: #a9c5a8;
  font-family: "Space Mono", monospace;
  font-size: 10px;
  letter-spacing: .04em;
  margin-bottom: 0;
}

.page-header .breadcrumbs a,
body .page-header-artigos .breadcrumbs a {
  color: var(--accent);
}

.page-header .breadcrumbs .sep,
body .page-header-artigos .breadcrumbs .sep {
  color: #a9c5a8;
}

.page-header .breadcrumbs span:last-child,
body .page-header-artigos .breadcrumbs .current {
  color: #fffdf5;
}

.page-content {
  border-radius: 18px;
  box-shadow: none;
  line-height: 1.75;
  padding: 28px;
}

.page-content h2,
.page-content h3 {
  color: var(--text);
  font-family: "Fraunces", Georgia, serif;
  letter-spacing: -.03em;
}

.page-content h2 {
  border-bottom: 1px solid var(--border);
  font-size: 26px;
  line-height: 1.2;
  padding-bottom: 14px;
}

.page-content h3 {
  font-size: 20px;
}

.page-content a {
  color: var(--primary-light);
}

.page-content a:hover {
  color: var(--primary);
}

/* Componentes compartilhados */
.badge {
  border-radius: 999px;
  font-family: "Space Mono", monospace;
  font-size: 9px;
  letter-spacing: .04em;
  padding: 7px 10px;
}

.btn,
.btn-link,
.btn-calcular,
.calc-btn {
  border-radius: 999px;
  font-weight: 700;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.btn-primary,
.btn-calcular,
.calc-btn {
  background: var(--primary);
  border-color: var(--primary);
  color: #fffdf5;
}

.btn-primary:hover,
.btn-calcular:hover,
.calc-btn:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn-link {
  color: var(--primary-light);
}

.btn-link:hover {
  color: var(--primary);
}

.tools-grid {
  gap: 16px;
}

.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: none;
  min-height: 150px;
  padding: 20px;
  transition: box-shadow .2s ease, transform .2s ease;
}

.tool-card:hover {
  border-color: #9fbaa0;
}

.tool-icon {
  border-radius: 11px;
  font-family: "Space Mono", monospace;
  font-size: 16px;
  height: 40px;
  width: 40px;
}

.tool-title {
  color: var(--text);
  font-family: "Fraunces", Georgia, serif;
  font-size: 18px;
  margin-top: 15px;
}

.tool-desc {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.45;
}

/* Página hub */
.hub-section {
  margin-bottom: 54px;
}

.hub-section-header {
  align-items: flex-end;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  margin-bottom: 22px;
  padding-bottom: 13px;
}

.hub-section-header h2 {
  color: var(--text);
  font-family: "Fraunces", Georgia, serif;
  font-size: 30px;
  letter-spacing: -.04em;
  margin: 0;
}

.hub-ver-mais {
  border: 1px solid #82a487;
  border-radius: 999px;
  color: var(--primary-light);
  font-size: 12px;
  font-weight: 700;
  padding: 7px 12px;
}

.hub-ver-mais:hover {
  background: var(--primary);
  color: var(--accent);
}

.hub-tools {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(5, 1fr);
}

.hub-tool {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 15px;
  border-top: 3px solid var(--primary-light) !important;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  min-height: 158px;
  padding: 18px;
  transition: box-shadow .2s ease, transform .2s ease;
}

.hub-tool:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.hub-tool-icon {
  align-items: center;
  background: #e6f0dd;
  border-radius: 10px;
  color: var(--primary-light);
  display: inline-flex;
  font-family: "Space Mono", monospace;
  font-size: 17px;
  height: 38px;
  justify-content: center;
  margin-bottom: 19px;
  width: 38px;
}

.hub-tool:nth-child(2) .hub-tool-icon { background: #dce9ed; color: #27759c; }
.hub-tool:nth-child(3) .hub-tool-icon { background: #f9edbc; color: #8f7105; }
.hub-tool:nth-child(4) .hub-tool-icon { background: #f3dfdf; color: #a62d63; }
.hub-tool:nth-child(5) .hub-tool-icon { background: #e9e4f4; color: #66529c; }

.hub-tool-name,
.hub-lot-nome {
  color: var(--text);
  font-family: "Fraunces", Georgia, serif;
  font-size: 18px;
  font-weight: 600;
}

.hub-tool-desc,
.hub-artigo-data {
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.45;
  margin-top: 6px;
}

.hub-results-grid {
  gap: 16px;
}

.hub-lot-table {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.hub-lot-head,
.hub-lot-row {
  padding: 13px 17px;
}

.hub-lot-head {
  background: #edf3e9;
  color: var(--text-muted);
  font-family: "Space Mono", monospace;
  font-size: 9px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.hub-lot-row {
  border-top-color: var(--border);
}

.hub-lot-row:hover {
  background: #fbfcf6;
}

.hub-lot-link {
  color: var(--primary-light);
  font-size: 12px;
  font-weight: 700;
}

.hub-artigos-grid {
  gap: 16px;
}

.hub-artigo-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 15px;
  overflow: hidden;
  transition: box-shadow .2s ease, transform .2s ease;
}

.hub-artigo-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.hub-artigo-body {
  padding: 18px;
}

.hub-artigo-cat {
  color: var(--primary-light);
  font-family: "Space Mono", monospace;
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hub-artigo-title {
  color: var(--text);
  font-family: "Fraunces", Georgia, serif;
  font-size: 20px;
  line-height: 1.15;
  margin-top: 8px;
}

/* Páginas de loteria e resultados */
.loteria-nav {
  background: rgba(255, 253, 245, .78);
  border: 1px solid var(--border);
  border-radius: 14px;
  gap: 6px;
  padding: 6px;
}

.loteria-nav a {
  border: 0;
  border-radius: 9px;
  color: var(--text-muted);
  font-size: 11px;
  padding: 9px 12px;
}

.loteria-nav a:hover,
.loteria-nav a.active {
  background: var(--primary);
  color: var(--accent);
}

.loteria-hero {
  background:
    radial-gradient(circle at 100% 0, rgba(247, 205, 59, .13), transparent 35%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: none;
  padding: 34px;
}

.loteria-hero .loteria-name {
  color: var(--text);
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(32px, 4vw, 46px);
  letter-spacing: -.05em;
}

.loteria-hero .proximo-sorteio {
  color: var(--text-muted);
}

.loteria-hero .estimativa {
  color: var(--primary-light);
  font-family: "Fraunces", Georgia, serif;
  font-size: 42px;
}

.prize-box {
  background: #f8f4da;
  border: 1px solid #eadb8a;
  border-radius: 12px;
  padding: 10px 14px;
}

.prize-label {
  color: #776316;
  font-family: "Space Mono", monospace;
  font-size: 9px;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.prize-val,
.prize-val.big {
  color: var(--primary);
  font-family: "Fraunces", Georgia, serif;
}

.result-card {
  border-radius: 17px;
}

.result-top {
  border-bottom-color: var(--border);
  padding-bottom: 18px;
}

.result-top .loteria-name {
  font-size: 21px;
}

.result-bottom {
  border-top-color: var(--border);
  padding-top: 15px;
}

.table-base,
.qf-faixas-table {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.table-base th,
.qf-faixas-table th {
  background: #edf3e9;
  color: var(--primary);
  font-family: "Space Mono", monospace;
  font-size: 9px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.table-base td,
.qf-faixas-table td {
  font-size: 12px;
}

/* Calculadoras */
.calc-nav {
  background: var(--primary);
  border-radius: 16px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 30px;
  padding: 8px;
}

.calc-nav-item {
  align-items: center;
  border-radius: 11px;
  color: #c3d8bd;
  display: flex;
  gap: 10px;
  padding: 11px 14px;
}

.calc-nav-item:hover {
  background: rgba(247, 205, 59, .12);
  color: var(--accent);
}

.calc-nav-icon {
  align-items: center;
  background: rgba(247, 205, 59, .15);
  border-radius: 8px;
  color: var(--accent);
  display: inline-flex;
  font-family: "Space Mono", monospace;
  font-size: 11px;
  height: 31px;
  justify-content: center;
  width: 36px;
}

.calc-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  margin-bottom: 24px;
  overflow: hidden;
}

.calc-header {
  align-items: flex-start;
  background: #edf3e9;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 15px;
  padding: 24px 28px;
}

.calc-header-icon {
  align-items: center;
  border-radius: 11px;
  color: var(--primary) !important;
  display: inline-flex;
  flex: 0 0 42px;
  font-family: "Space Mono", monospace;
  font-size: 12px;
  height: 42px;
  justify-content: center;
}

.calc-title {
  color: var(--text);
  font-family: "Fraunces", Georgia, serif;
  font-size: 26px;
  letter-spacing: -.035em;
  margin: 0 0 6px;
}

.calc-desc {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.55;
  margin: 0;
  max-width: 720px;
}

.calc-body {
  padding: 28px;
}

.calc-form,
.calculadora-form {
  background: #f3f6ed;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
}

.calc-fields {
  gap: 14px;
}

.calc-field label,
.form-group label {
  color: var(--text);
  font-family: "Space Mono", monospace;
  font-size: 10px;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.calc-field input,
.calc-field select,
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--surface);
  border: 1px solid #b9cab9;
  border-radius: 9px;
  color: var(--text);
  min-height: 43px;
}

.calc-field input:focus,
.calc-field select:focus,
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(35, 99, 68, .12);
  outline: 0;
}

.calc-result {
  background: #fffdf5;
  border: 1px solid #eadb8a;
  border-radius: 14px;
  margin-top: 18px;
  padding: 22px;
}

.calc-result-destaque {
  background: var(--primary);
  border-radius: 12px;
  color: #fffdf5;
  padding: 20px;
}

.calc-result-label,
.calc-result-tipo,
.cri-label {
  color: var(--text-muted);
  font-family: "Space Mono", monospace;
  font-size: 9px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.calc-result-destaque .calc-result-label,
.calc-result-destaque .calc-result-tipo {
  color: #a9c5a8;
}

.calc-result-valor {
  color: var(--accent);
  font-family: "Fraunces", Georgia, serif;
  font-size: 38px;
  letter-spacing: -.05em;
}

.calc-result-grid {
  gap: 10px;
  margin-top: 14px;
}

.qf-investment-summary {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 12px;
}

.qf-investment-summary > div {
  background: #f3f6ed;
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 14px;
}

.qf-investment-summary > div > div:first-child {
  color: var(--text-muted) !important;
  font-family: "Space Mono", monospace;
  font-size: 9px !important;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.qf-investment-summary > div > div:last-child {
  color: var(--primary) !important;
  font-family: "Fraunces", Georgia, serif;
  font-size: 24px !important;
  line-height: 1.1;
  margin-top: 7px;
}

.calc-result-item,
.calc-comparativo {
  background: #f3f6ed;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px;
}

.cri-valor {
  color: var(--primary);
  font-family: "Space Mono", monospace;
  font-size: 13px;
  font-weight: 700;
}

/* Conferência de bilhete */
.cb-layout,
.tax-layout,
.arc-layout,
.post-layout {
  align-items: start;
  gap: 24px;
}

.cb-main,
.tax-main,
.arc-main,
.post-main-content {
  min-width: 0;
}

.cb-sidebar,
.tax-sidebar,
.arc-sidebar,
.post-sidebar {
  min-width: 0;
}

.cb-form-card {
  padding: 28px;
}

.cb-form-title {
  color: var(--text);
  font-family: "Fraunces", Georgia, serif;
  font-size: 28px;
  letter-spacing: -.04em;
}

.cb-form-desc,
.cb-hint {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.6;
}

.cb-fields {
  gap: 14px;
}

.cb-field input,
.cb-field select {
  background: #fffdf5;
  border: 1px solid #b9cab9;
  border-radius: 9px;
  min-height: 44px;
}

.cb-field input:focus,
.cb-field select:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(35, 99, 68, .12);
  outline: 0;
}

.cb-step {
  align-items: flex-start;
  background: #f3f6ed;
  border: 1px solid var(--border);
  border-radius: 11px;
  color: var(--text-muted);
  display: flex;
  gap: 10px;
  padding: 13px;
}

.cb-step-num {
  align-items: center;
  background: var(--primary);
  border-radius: 50%;
  color: var(--accent);
  display: inline-flex;
  flex: 0 0 25px;
  font-family: "Space Mono", monospace;
  font-size: 11px;
  height: 25px;
  justify-content: center;
}

.conf-result-card {
  background: var(--surface);
  border: 2px solid var(--accent);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.conf-result-header {
  background: #fff8d6;
  border-bottom-color: #eadb8a;
}

.conf-acertos-num {
  color: var(--primary);
  font-family: "Fraunces", Georgia, serif;
}

/* Sidebar e tabelas de resultados */
.sidebar-widget,
.arc-side-card,
.next-draw-widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 15px;
  box-shadow: none;
}

.widget-title,
.sidebar-title,
.error-section-title {
  color: var(--text);
  font-family: "Fraunces", Georgia, serif;
  font-size: 21px;
  letter-spacing: -.03em;
}

.sidebar-links a,
.arc-side-tool,
.cb-side-link {
  border-bottom-color: var(--border);
  color: var(--primary-light);
  font-size: 12px;
  padding: 11px 0;
}

.sidebar-links a:hover,
.arc-side-tool:hover,
.cb-side-link:hover {
  color: var(--primary);
  padding-left: 4px;
}

.arc-filter-bar,
.search-form-box,
.error-search-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: none;
  padding: 18px;
}

.arc-search-form input,
.search-form-main input,
.error-search-form input {
  background: #fffdf5;
  border: 1px solid #b9cab9;
  border-radius: 999px;
  min-height: 42px;
}

.arc-chip,
.arc-sbtn,
.chip,
.chip-loteria {
  background: #eef3e9;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 11px;
}

.arc-chip:hover,
.arc-chip-ativo,
.arc-sbtn:hover,
.arc-sbtn-ativo,
.chip:hover,
.chip-loteria:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--accent);
}

.arc-grid,
.search-results,
.error-results-grid {
  gap: 16px;
}

.arc-vazio,
.search-empty,
.empty-state-artigos {
  background: var(--surface);
  border: 1px dashed #a9c5a8;
  border-radius: 16px;
  color: var(--text-muted);
  padding: 42px 24px;
  text-align: center;
}

.search-result-card,
.error-result-card,
.shortcut-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 15px;
  box-shadow: none;
}

.search-result-card:hover,
.error-result-card:hover,
.shortcut-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.src-type-badge,
.src-loteria {
  font-family: "Space Mono", monospace;
  font-size: 9px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.src-title,
.error-404-badge {
  color: var(--text);
  font-family: "Fraunces", Georgia, serif;
}

/* Estatísticas, mapa e páginas editoriais */
.ranking-card,
.state-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.ranking-card {
  padding: 18px;
}

.state-bar-wrap {
  background: #e4ecdf;
  border-radius: 999px;
}

.state-bar {
  background: var(--primary-light);
  border-radius: inherit;
}

.tax-header-inner {
  background:
    radial-gradient(circle at 100% 0, rgba(247, 205, 59, .14), transparent 32%),
    var(--primary);
  border-radius: 18px;
  color: #fffdf5;
  padding: 32px;
}

.tax-header-text h1,
.post-body h1,
.post-body h2,
.post-body h3,
.seo-block h2,
.seo-block h3 {
  color: var(--text);
  font-family: "Fraunces", Georgia, serif;
  letter-spacing: -.04em;
}

.tax-editorial,
.seo-content-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 17px;
  padding: 28px;
}

/* Artigos */
body .section-artigos {
  max-width: 1200px;
  padding-bottom: 74px;
}

body .posts-grid-artigos {
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
}

body .post-card-artigos {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: none;
}

body .post-card-artigos:hover {
  border-color: #9fbaa0;
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

body .post-card-content {
  padding: 20px;
}

body .post-card-title {
  color: var(--text);
  font-family: "Fraunces", Georgia, serif;
  font-size: 21px;
  letter-spacing: -.025em;
  line-height: 1.15;
}

body .post-category,
body .post-date,
body .post-reading-time,
body .post-updated {
  color: var(--text-muted);
  font-family: "Space Mono", monospace;
  font-size: 9px;
  letter-spacing: .03em;
}

body .post-card-link,
body .post-category-badge {
  color: var(--primary-light);
  font-weight: 700;
}

body .post-main-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
}

body .post-body {
  color: var(--text);
  font-size: 16px;
  line-height: 1.85;
  padding: 30px;
}

body .post-body p,
body .post-body ul,
body .post-body ol {
  max-width: 760px;
}

body .post-disclaimer {
  background: #f9edbc;
  border-left-color: var(--accent);
  color: #665514;
}

/* Breakpoints para os layouts que tinham pouca cobertura */
@media (max-width: 1020px) {
  .hub-tools {
    grid-template-columns: repeat(3, 1fr);
  }

  .tax-layout,
  .arc-layout,
  .post-layout {
    grid-template-columns: minmax(0, 1fr) 250px;
  }
}

@media (max-width: 820px) {
  .hub-tools {
    grid-template-columns: repeat(2, 1fr);
  }

  .calc-nav {
    grid-template-columns: 1fr;
  }

  .tax-layout,
  .arc-layout,
  .post-layout,
  .cb-layout {
    grid-template-columns: 1fr;
  }

  .tax-sidebar,
  .arc-sidebar,
  .post-sidebar,
  .cb-sidebar {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body .posts-grid-artigos {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .page-header,
  body .page-header-artigos {
    padding: 42px 0 38px;
  }

  .page-header h1,
  body .page-header-artigos .page-title {
    font-size: 38px;
  }

  .page-content,
  .cb-form-card,
  .calc-body,
  .tax-editorial,
  .seo-content-wrap {
    padding: 20px;
  }

  .hub-tools,
  .hub-results-grid,
  body .posts-grid-artigos {
    grid-template-columns: 1fr;
  }

  .hub-section-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
  }

  .loteria-nav {
    border-radius: 12px;
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .loteria-nav a {
    flex: 0 0 auto;
  }

  .loteria-hero {
    padding: 24px 18px;
  }

  .loteria-hero .estimativa {
    font-size: 34px;
  }

  .calc-header {
    padding: 20px;
  }

  .calc-title {
    font-size: 23px;
  }

  .calc-body {
    padding: 18px;
  }

  .calc-fields,
  .calc-result-grid,
  .qf-investment-summary {
    grid-template-columns: 1fr !important;
  }

  .tax-sidebar,
  .arc-sidebar,
  .post-sidebar,
  .cb-sidebar {
    display: flex;
    flex-direction: column;
  }

  .result-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .result-top .prize-box {
    width: 100%;
  }

  body .post-body {
    padding: 22px 20px;
  }
}
