/*
Theme Name: Giro do Mercado
Description: Notícias do mercado de apostas, cassino e loteria no Brasil. Paleta verde-pinho + âmbar, títulos serifados, home com feature-hero + grade densa por vertical.
Version: 2.0
Author: Giro do Mercado
Author URI: https://girodomercado.com
Text Domain: regbrief
*/

:root {
  --ink: #16201B;
  --paper: #FBFCFA;
  --bg: #F2F4EF;
  --line: #DBE0D7;
  --muted: #6B746D;
  --accent: #1E6E4B;
  --accent-dark: #155238;
  --on-accent: #ffffff;
  --graphite: #143026;
  --graphite-2: #1B3A2C;
  --amber: #B4770F;
  --serif: Georgia, 'Iowan Old Style', 'Times New Roman', serif;
  --mono: ui-monospace, 'SF Mono', Menlo, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, 'Helvetica Neue', Arial, sans-serif; background: var(--bg); color: var(--ink); line-height: 1.55; font-size: 18.5px; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1360px; margin: 0 auto; padding: 0 32px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; letter-spacing: -0.3px; }

/* ===== Faixa superior fina ===== */
.topstrip { background: var(--graphite); height: 6px; }

/* ===== Header: busca + logo central + utilidades ===== */
.masthead { background: var(--paper); border-bottom: 1px solid var(--line); }
.masthead .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding: 28px 32px; }
.masthead .head-search { justify-self: start; }
.masthead .head-utility { justify-self: end; }
.head-search { display: flex; align-items: center; gap: 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 15px 18px; flex: 1 1 260px; min-width: 0; max-width: 340px; color: var(--muted); font-size: 17px; }
.head-search svg { flex-shrink: 0; width: 19px; height: 19px; }
.logo { font-family: var(--serif); font-weight: 700; font-size: 40px; letter-spacing: -0.8px; white-space: nowrap; flex-shrink: 0; text-align: center; }
.logo em { font-style: normal; color: var(--accent); }
.logo .logo-tag { display: block; font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: 2.4px; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.head-utility { display: flex; align-items: center; gap: 22px; flex-shrink: 0; }
.head-links { display: flex; gap: 20px; font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }
.head-links a { color: var(--accent); white-space: nowrap; }
.head-links a:hover { color: var(--accent-dark); }

/* ===== Faixa "Urgente" abaixo do header (manchete mais recente) ===== */
.breaking-strip { border-bottom: 1px solid var(--line); background: var(--paper); }
.breaking-strip .wrap { display: flex; align-items: center; gap: 14px; padding: 12px 32px; overflow: hidden; }
.breaking-strip .btag { font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: #fff; background: var(--amber); padding: 5px 10px; border-radius: 4px; flex-shrink: 0; }
.breaking-strip a.btxt { font-size: 16.5px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.breaking-strip a.btxt:hover { color: var(--accent-dark); }

/* ===== Category nav ===== */
.topnav { background: var(--paper); border-bottom: 1px solid var(--line); }
.topnav .wrap { display: flex; justify-content: space-between; align-items: center; }
.topnav ul { display: flex; flex-wrap: wrap; list-style: none; }
.topnav a { display: block; padding: 21px 19px; font-family: -apple-system, Arial, sans-serif; font-size: 18.5px; font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; color: var(--ink); }
.topnav a:hover, .topnav .current a { border-color: var(--ink); }
.topnav .more { position: relative; }
.topnav .more > a::after { content: ' \25BE'; }
.topnav .more-menu { display: none; position: absolute; top: 100%; right: 0; background: var(--graphite); border-bottom: 3px solid var(--accent); box-shadow: 0 12px 24px rgba(0,0,0,.18); min-width: 240px; z-index: 40; padding: 12px 0; }
.topnav .more:hover .more-menu { display: block; }
.topnav .more-menu a { display: block; padding: 13px 22px; border: none; font-weight: 500; font-size: 16px; color: #fff; }
.topnav .more-menu a:hover { color: var(--accent); }

/* ===== Faixa de 3 anúncios (estilo iGB) ===== */
.pub-strip-3 { background: var(--bg); padding: 16px 0; }
.pub-strip-3 .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pub-strip-3 .pub-mini { position: relative; aspect-ratio: 970/250; background: var(--paper); border: 1px solid var(--line); border-radius: 4px; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 14.5px; overflow: hidden; }
.pub-strip-3 .pub-mini img { width: 100%; height: 100%; object-fit: cover; }
.pub-strip-3 .pub-i { position: absolute; top: 8px; right: 8px; width: 19px; height: 19px; border-radius: 50%; background: rgba(255,255,255,.85); color: var(--muted); font-size: 11px; display: flex; align-items: center; justify-content: center; }
@media (max-width: 760px) { .pub-strip-3 .wrap { grid-template-columns: 1fr; } }

/* ===== Home hero: feature grande + 2 secundárias + rail Últimas ===== */
.home-hero { display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: 34px; margin: 34px 0 50px; align-items: start; }
@media (max-width: 980px) { .home-hero { grid-template-columns: 1fr 1fr; } .home-hero .hh-rail { grid-column: 1 / -1; border-left: none; padding-left: 0; border-top: 1px solid var(--line); padding-top: 18px; } }
@media (max-width: 640px) { .home-hero { grid-template-columns: 1fr; } }
.hh-kick { font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--accent); display: inline-block; margin-bottom: 9px; }
.hh-media { position: relative; border-radius: 6px; overflow: hidden; aspect-ratio: 16/9; background: var(--graphite); display: block; margin-bottom: 16px; }
.hh-media img { width: 100%; height: 100%; object-fit: cover; }
.hh-media .ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.3); font-size: 80px; font-family: var(--serif); font-weight: 700; }
.hh-lead h1 { font-size: 41px; line-height: 1.12; margin-bottom: 12px; }
.hh-lead h1 a:hover { color: var(--accent-dark); }
.hh-dek { font-size: 18px; color: var(--muted); line-height: 1.5; margin-bottom: 12px; max-width: 52ch; }
.hh-mid { display: flex; flex-direction: column; gap: 28px; }
.hh-story .hh-media { aspect-ratio: 16/10; margin-bottom: 12px; }
.hh-story h3 { font-size: 23px; line-height: 1.22; margin-bottom: 6px; }
.hh-story h3 a:hover { color: var(--accent-dark); }
.hh-story .hh-sdek { font-size: 16px; color: var(--muted); line-height: 1.45; }
.hh-rail { border-left: 1px solid var(--line); padding-left: 26px; }
.hh-rail .rail-head { font-family: var(--mono); font-size: 13.5px; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.feat-item { display: block; padding: 15px 0; border-bottom: 1px solid var(--line); }
.feat-item:last-child { border-bottom: none; }
.feat-item .fcat { font-family: var(--mono); font-size: 12.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 5px; }
.feat-item h3 { font-size: 18.5px; line-height: 1.3; font-weight: 600; font-family: -apple-system, 'Helvetica Neue', Arial, sans-serif; margin-bottom: 6px; }
.feat-item h3:hover { color: var(--accent-dark); }
.feat-item .ftime { font-family: var(--mono); font-size: 13px; color: var(--muted); }

/* ===== Radar strip (substitui a marquise dos outros sites) ===== */
.radarstrip { background: var(--graphite-2); color: #d8dce3; font-size: 16px; }
.radarstrip .wrap { display: flex; align-items: center; gap: 14px; padding: 12px 32px; flex-wrap: wrap; }
.radarstrip .tag { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: 13px; flex-shrink: 0; }
.radarstrip a { color: #d8dce3; }
.radarstrip a:hover { color: #fff; text-decoration: underline; }
.radarstrip .dot { color: #5b6472; margin: 0 4px; }

/* ===== Page shell / grid ===== */
.main-grid { display: grid; grid-template-columns: 1fr 340px; gap: 44px; margin: 36px 0 52px; align-items: start; }
@media (max-width: 900px) { .main-grid { grid-template-columns: 1fr; } }

.section-head { display: flex; align-items: baseline; gap: 14px; margin: 10px 0 20px; }
.section-head h2 { font-size: 28px; }
.section-head .rule { flex: 1; height: 1px; background: var(--line); }
.section-head .more { font-size: 14px; font-weight: 700; color: var(--accent-dark); text-transform: uppercase; letter-spacing: .6px; font-family: -apple-system, Arial, sans-serif; }

/* ===== Radar list (index.php / author.php) ===== */
.radar-list { display: flex; flex-direction: column; }
.radar-row { display: grid; grid-template-columns: 44px 108px 1fr; gap: 20px; align-items: start; padding: 22px 0; border-bottom: 1px solid var(--line); }
.radar-row:first-child { padding-top: 0; }
.radar-row .n { font-family: Georgia, serif; font-size: 34px; font-weight: 700; color: var(--line); line-height: 1; }
.radar-thumb { width: 108px; height: 80px; border-radius: 3px; overflow: hidden; position: relative; flex-shrink: 0; background: var(--graphite); }
.radar-thumb img { width: 100%; height: 100%; object-fit: cover; }
.radar-thumb .ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.35); font-size: 28px; font-family: Georgia, serif; }
.cat-badge { position: absolute; top: 7px; left: 7px; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: #fff; padding: 3px 7px; border-radius: 2px; font-family: -apple-system, Arial, sans-serif; line-height: 1.4; }

/* ===== Manchete principal (usada no index/author, maior que os itens do Radar) ===== */
.hero-feature { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 0; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; margin-bottom: 8px; background: var(--paper); }
@media (max-width: 760px) { .hero-feature { grid-template-columns: 1fr; } }
.hero-feature .hf-media { position: relative; aspect-ratio: 16/10; background: var(--graphite); overflow: hidden; }
.hero-feature .hf-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-feature .hf-media .ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.3); font-size: 70px; font-family: Georgia, serif; }
.hero-feature .hf-body { padding: 30px 32px; display: flex; flex-direction: column; justify-content: center; }
.hero-feature .hf-body h2 { font-size: 33px; line-height: 1.22; margin-bottom: 12px; }
.hero-feature .hf-body h2 a:hover { color: var(--accent-dark); }
.hero-feature .hf-dek { color: var(--muted); font-size: 18px; margin-bottom: 14px; line-height: 1.5; }
.radar-body .cat-tag { display: inline-block; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--accent-dark); font-family: var(--mono); margin-bottom: 5px; }
.radar-body h3 { font-size: 23px; line-height: 1.3; margin-bottom: 5px; }
.radar-body h3 a:hover { color: var(--accent-dark); }
.radar-body .dek { color: var(--muted); font-size: 17px; margin-bottom: 7px; }
.byline { font-family: -apple-system, Arial, sans-serif; font-size: 15px; color: var(--muted); }
.byline b { color: var(--ink); }

/* ===== Painéis de categoria (colunas tipo masonry: cada painel termina onde o conteúdo acaba, sem esticar até a coluna mais alta) ===== */
.panel-grid { columns: 3; column-gap: 22px; }
@media (max-width: 900px) { .panel-grid { columns: 1; } }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; break-inside: avoid; margin-bottom: 22px; }
.panel-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 14px; padding: 14px 18px; border-bottom: 2px solid var(--ink); }
.panel-head h3 { font-size: 17px; text-transform: uppercase; letter-spacing: .6px; font-family: -apple-system, Arial, sans-serif; }
.panel-head a { font-size: 12.5px; color: var(--accent-dark); font-weight: 700; text-transform: uppercase; font-family: -apple-system, Arial, sans-serif; white-space: nowrap; flex-shrink: 0; }
.panel-list { padding: 8px 18px 16px; }
.panel-item { display: grid; grid-template-columns: 62px 1fr; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.panel-item:last-child { border-bottom: none; }
.panel-item .pthumb { width: 62px; height: 62px; border-radius: 3px; overflow: hidden; position: relative; background: var(--graphite); flex-shrink: 0; }
.panel-item .pthumb img { width: 100%; height: 100%; object-fit: cover; }
.panel-item .pthumb .ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.35); font-size: 17px; font-family: Georgia, serif; }
.panel-item h4 { font-size: 17.5px; font-weight: 600; line-height: 1.3; font-family: Georgia, serif; }
.panel-item h4:hover { color: var(--accent-dark); }
.panel-item .pdate { font-size: 13.5px; color: var(--muted); font-family: -apple-system, Arial, sans-serif; margin-top: 4px; }
.panel-empty { padding: 16px; color: var(--muted); font-size: 15px; grid-column: 1 / -1; }
.related-list .panel-item { grid-template-columns: 76px 1fr; }
.related-list .panel-item .pthumb { width: 76px; height: 76px; }

/* ===== Sidebar ===== */
.sidebar .box { background: var(--paper); border: 1px solid var(--line); border-radius: 4px; margin-bottom: 24px; }
.sidebar .box-head { font-family: -apple-system, Arial, sans-serif; font-size: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; padding: 14px 18px; border-bottom: 2px solid var(--ink); }
.sidebar .box-body { padding: 16px 18px; }
.reg-item { padding: 11px 0; border-bottom: 1px solid var(--line); }
.reg-item:last-child { border-bottom: none; }
.reg-item .rname { font-weight: 700; font-size: 16.5px; }
.reg-item .rdesc { font-size: 15px; color: var(--muted); margin-top: 3px; }
.mostread { display: flex; gap: 11px; padding: 11px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.mostread:last-child { border-bottom: none; }
.mostread .n { font-family: Georgia, serif; font-weight: 700; color: var(--accent-dark); font-size: 17px; flex-shrink: 0; width: 20px; }
.mostread h4 { font-size: 16px; font-family: Georgia, serif; font-weight: 600; line-height: 1.3; }
.mostread h4:hover { color: var(--accent-dark); }

.newsletter-box .box-body { text-align: left; }
.newsletter-box p { font-size: 15.5px; color: var(--muted); margin-bottom: 12px; }
.newsletter-box form { display: flex; flex-direction: column; gap: 9px; }
.newsletter-box input { padding: 11px 12px; border: 1px solid var(--line); border-radius: 3px; font-size: 15px; }
.newsletter-box button { padding: 11px 12px; background: var(--accent); color: var(--on-accent); border: none; border-radius: 3px; font-weight: 700; font-size: 14.5px; text-transform: uppercase; letter-spacing: .5px; cursor: pointer; }
.newsletter-box button:hover { background: var(--accent-dark); color: #fff; }

/* ===== Ad slot ===== */
.pubspot { display: flex; flex-direction: column; align-items: center; margin: 20px 0; }
.pubspot .pub-tag { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: 5px; font-family: -apple-system, Arial, sans-serif; }
.pubspot .pub-cta { display: flex; align-items: center; justify-content: center; width: 100%; max-width: var(--pub-w); height: var(--pub-h); background: var(--paper); border: 1px dashed var(--line); color: var(--muted); font-size: 14px; }
.pubspot .pub-creative img { max-width: var(--pub-w); max-height: var(--pub-h); margin: 0 auto; }
#pub-leaderboard-top { margin: 0; }
#pub-leaderboard-top .pub-cta, #pub-leaderboard-top .pub-creative img { height: 36px; max-width: 100%; border: none; background: var(--bg); }

/* ===== Single article ===== */
.single-wrap .kicker-pill { display: inline-block; background: var(--accent); color: var(--on-accent); font-size: 13.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; padding: 5px 12px; border-radius: 2px; font-family: -apple-system, Arial, sans-serif; margin-bottom: 16px; }
.single-wrap h1 { font-size: 46px; line-height: 1.18; margin-bottom: 12px; }
.single-wrap .subtitle { font-size: 21.5px; color: var(--muted); font-family: Georgia, serif; font-style: italic; margin-bottom: 18px; }
.single-meta { display: flex; gap: 18px; font-size: 15.5px; color: var(--muted); font-family: -apple-system, Arial, sans-serif; padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 22px; flex-wrap: wrap; }
.single-meta b { color: var(--ink); }
.summary-box { background: #E8F1EB; border-left: 4px solid var(--accent); padding: 16px 20px; margin-bottom: 26px; font-size: 17.5px; }
.summary-box .sb-label { display: block; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--accent-dark); margin-bottom: 6px; font-family: -apple-system, Arial, sans-serif; }
.lead-thumb { aspect-ratio: 16/9; border-radius: 3px; overflow: hidden; margin-bottom: 24px; background: var(--graphite); position: relative; }
.lead-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lead-caption { font-size: 13px; color: #6b6b6b; line-height: 1.5; margin: -16px 0 24px; }
.lead-thumb .ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.3); font-size: 60px; font-family: Georgia, serif; }
.img-credit { font-size: 13.5px; color: var(--muted); margin: -16px 0 24px; font-style: italic; }
.post-body { font-size: 20px; line-height: 1.75; }
.post-body p { margin-bottom: 22px; }
.post-body a { color: var(--accent-dark); text-decoration: underline; }
.post-body h2 { font-size: 28px; margin: 30px 0 16px; }
.source-note { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 15.5px; color: var(--muted); }
.source-note a { color: var(--accent-dark); }

.author-box { display: flex; gap: 16px; align-items: center; margin-top: 36px; padding: 20px; background: var(--paper); border: 1px solid var(--line); border-radius: 4px; }
.author-box img { border-radius: 50%; }
.author-box .an { font-weight: 700; font-size: 17.5px; }
.author-box .ad { font-size: 15.5px; color: var(--muted); margin-top: 3px; }
.author-box a.an-link:hover { color: var(--accent-dark); }

.related { margin-top: 38px; }
.related h3 { font-size: 21.5px; margin-bottom: 14px; }
.related-list .panel-item { display: flex; gap: 12px; align-items: center; }

/* ===== Author archive header ===== */
.author-header { display: flex; gap: 22px; align-items: center; padding: 32px 0; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.writer-avatar img { border-radius: 50%; }
.writer-kicker { font-size: 13.5px; text-transform: uppercase; letter-spacing: 1px; color: var(--accent-dark); font-weight: 700; font-family: -apple-system, Arial, sans-serif; }
.author-header h1 { font-size: 34px; margin: 5px 0 7px; }
.author-bio { font-size: 17px; color: var(--muted); max-width: 580px; }

/* ===== Archive title ===== */
.archive-title { font-size: 34px; margin: 32px 0 6px; }
.archive-title span { color: var(--accent-dark); }

/* ===== Row list (index.php / author.php) ===== */
.row-list .radar-row .n { display: none; }
.row-list .radar-row { grid-template-columns: 108px 1fr; }

/* ===== Newsletter footer band ===== */
.footer-newsletter { background: var(--graphite); color: #fff; padding: 34px 0; }
.footer-newsletter .wrap { display: flex; justify-content: space-between; align-items: center; gap: 26px; flex-wrap: wrap; }
.footer-newsletter h2 { font-size: 25px; color: #fff; }
.footer-newsletter p { font-size: 16px; color: #a9b0bd; margin-top: 5px; font-family: -apple-system, Arial, sans-serif; }
.footer-newsletter form { display: flex; gap: 9px; flex-shrink: 0; }
.footer-newsletter input { padding: 12px 14px; border: none; border-radius: 3px; min-width: 240px; font-size: 15px; }
.footer-newsletter button { padding: 12px 18px; background: var(--accent); color: var(--on-accent); border: none; border-radius: 3px; font-weight: 700; text-transform: uppercase; font-size: 14px; letter-spacing: .5px; cursor: pointer; }
.footer-newsletter button:hover { background: #fff; }

/* ===== Footer ===== */
.site-footer { background: #14192200; padding: 44px 0 22px; border-top: 1px solid var(--line); }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 28px; }
@media (max-width: 800px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
.site-footer h5 { font-family: -apple-system, Arial, sans-serif; font-size: 14px; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); margin-bottom: 14px; }
.site-footer ul { list-style: none; font-size: 16.5px; }
.site-footer li { margin-bottom: 9px; }
.site-footer li a:hover { color: var(--accent-dark); }
.fbrand { font-family: Georgia, serif; font-weight: 700; font-size: 24px; }
.fbrand em { font-style: normal; color: var(--accent-dark); }
.copyright { display: flex; justify-content: space-between; font-size: 15px; color: var(--muted); padding-top: 18px; border-top: 1px solid var(--line); flex-wrap: wrap; gap: 6px; }
.copyright .age { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border: 1px solid var(--line); border-radius: 50%; font-size: 10px; font-weight: 700; margin-right: 8px; vertical-align: middle; }

/* Consistencia com os sites de esporte (pacote SEO 14/07/2026) */
.post-body a { font-weight: 600; text-underline-offset: 2px; }
