/*
Theme Name: Torcidabahia
Theme URI: https://www.torcidabahia.com
Author: Torcidabahia
Description: Tema de bloco do Torcidabahia: notícias, jogos, tabelas e a história do Bahia. Visual "matchday" com tema escuro e claro, nas cores do clube.
Requires at least: 7.0
Tested up to: 7.1
Requires PHP: 8.3
Version: 0.3.12
License: GNU General Public License v2 or later
Text Domain: torcidabahia
*/

/* ---------- Cores dos temas (escuro é o padrão) ---------- */
:root,
:root[data-tema="escuro"] {
	--tb-fundo: #071E55;
	--tb-sup: #0D2A69;
	--tb-borda: #1E3F86;
	--tb-texto: #FFFFFF;
	--tb-mudo: #B4C3E0;
	--tb-chip: #163577;
	--tb-azul-texto: #8CC2F0;
	--tb-vermelho-texto: #FF8077;
	--tb-dourado-texto: #FFC300;
	--tb-destaque: rgba(0, 99, 172, .45);
	--tb-leitura: #EEF2FA;
	--tb-foto-vazia: linear-gradient(160deg, #5A6E98, #26407A);
	--tb-sem-foto: radial-gradient(circle at 85% 20%, rgba(0, 99, 172, .9), transparent 55%), radial-gradient(circle at 0% 100%, rgba(218, 37, 29, .6), transparent 55%) #0D2A69;
	--tb-ao-vivo-fundo: #3A1530;
	--tb-ao-vivo-borda: #7E2A3A;
	color-scheme: dark;
}
:root[data-tema="claro"] {
	--tb-fundo: #FFFFFF;
	--tb-sup: #F2F5F8;
	--tb-borda: #D9E1E8;
	--tb-texto: #021135;
	--tb-mudo: #4E5D78;
	--tb-chip: #E0E6EB;
	--tb-azul-texto: #0063AC;
	--tb-vermelho-texto: #B81E16;
	--tb-dourado-texto: #8A6A00;
	--tb-destaque: #DFEBF6;
	--tb-leitura: #1F2A44;
	--tb-foto-vazia: linear-gradient(160deg, #AEB8CA, #6E7A92);
	--tb-sem-foto: radial-gradient(circle at 85% 20%, rgba(255, 255, 255, .22), transparent 50%), radial-gradient(circle at 0% 100%, rgba(218, 37, 29, .75), transparent 55%) #0063AC;
	--tb-ao-vivo-fundo: #FDECEB;
	--tb-ao-vivo-borda: #F3B9B5;
	color-scheme: light;
}

/* Logo: cada tema mostra a sua versão */
.tb-logo { display: flex; align-items: center; }
.tb-logo img { display: block; height: 46px; width: auto; }
.tb-logo .tb-logo-claro { display: none; }
:root[data-tema="claro"] .tb-logo .tb-logo-escuro { display: none; }
:root[data-tema="claro"] .tb-logo .tb-logo-claro { display: block; }
:root[data-tema] .tb-gaveta .tb-logo .tb-logo-escuro { display: block; }
:root[data-tema] .tb-gaveta .tb-logo .tb-logo-claro { display: none; }

/* ---------- Faixa tricolor ---------- */
.tb-faixa { display: flex; height: 5px; }
.tb-faixa span { flex: 1; }
.tb-faixa span:nth-child(1) { background: #0063AC; }
.tb-faixa span:nth-child(2) { background: #FFFFFF; }
.tb-faixa span:nth-child(3) { background: #DA251D; }

/* ---------- Barra do topo ---------- */
.tb-topo { background: #021135; color: #B4C3E0; font-size: 13px; }
.tb-topo__dentro { max-width: 1280px; margin: 0 auto; padding: 8px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.tb-topo__data { flex: none; }
.tb-topo b { color: #fff; }
.tb-topo__acoes { display: flex; align-items: center; gap: 16px; }
.tb-topo__acoes a { color: inherit; }
.tb-topo__acoes a:hover { color: #fff; }
.tb-tema-botao { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 6px 12px 6px 8px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .08); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.tb-tema-botao svg { width: 16px; height: 16px; }
.tb-tema-botao .tb-icone-lua { display: none; }
:root[data-tema="claro"] .tb-tema-botao .tb-icone-sol { display: none; }
:root[data-tema="claro"] .tb-tema-botao .tb-icone-lua { display: inline; }

/* ---------- Cabeçalho ---------- */
.tb-cabecalho { background: var(--tb-fundo); border-bottom: 1px solid var(--tb-borda); position: relative; z-index: 20; }
.tb-cabecalho__dentro { max-width: 1280px; margin: 0 auto; padding: 0 24px; min-height: 76px; display: flex; align-items: center; gap: 40px; }
.tb-menu { display: flex; gap: 30px; align-self: stretch; flex: 1; font-family: "Barlow Condensed", sans-serif; font-size: 20px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.tb-menu > li { list-style: none; display: flex; align-items: center; position: relative; }
.tb-menu { margin: 0; padding: 0; }
.tb-menu > li > a, .tb-menu > li > button { color: var(--tb-mudo); display: flex; align-items: center; gap: 4px; height: 100%; background: none; border: 0; font: inherit; text-transform: inherit; letter-spacing: inherit; cursor: pointer; padding: 0; }
.tb-menu > li > a:hover, .tb-menu > li > button:hover { color: var(--tb-texto); }
.tb-menu > li.ativo > a, .tb-menu > li.ativo > button, .tb-menu > li > button[aria-expanded="true"] { color: var(--tb-texto); box-shadow: inset 0 -3px 0 #DA251D; }
.tb-menu svg { width: 14px; height: 14px; }
.tb-painel { position: absolute; left: 0; right: 0; top: 100%; background: var(--tb-sup); border-bottom: 1px solid var(--tb-borda); box-shadow: 0 24px 40px rgba(0, 0, 0, .25); }
.tb-painel[hidden] { display: none; }
.tb-painel__dentro { max-width: 1280px; margin: 0 auto; padding: 28px 24px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.tb-painel a { background: var(--tb-fundo); border: 1px solid var(--tb-borda); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.tb-painel a:hover { border-color: #0063AC; color: inherit; }
.tb-painel b { font-family: "Barlow Condensed", sans-serif; font-size: 21px; text-transform: uppercase; }
.tb-painel strong { font-family: "Barlow Condensed", sans-serif; font-size: 34px; font-weight: 800; color: var(--tb-dourado-texto); line-height: 1; }
.tb-painel span { font-size: 13px; color: var(--tb-mudo); }
.tb-cabecalho__acoes { display: flex; align-items: center; gap: 10px; }
.tb-botao-icone { width: 44px; height: 44px; border-radius: 12px; background: var(--tb-sup); border: 1px solid var(--tb-borda); color: var(--tb-texto); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.tb-botao-icone svg { width: 19px; height: 19px; }
.tb-botao { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 12px; background: #DA251D; color: #fff !important; font-weight: 700; font-size: 14px; border: 0; cursor: pointer; }
.tb-botao:hover { background: #B81E16; }
.tb-botao--contorno, .wp-block-button.tb-botao--contorno .wp-block-button__link { background: transparent; border: 2px solid #DA251D; color: var(--tb-texto) !important; }
.wp-block-button.tb-botao--contorno { border: 0; background: none; }
.wp-block-button.tb-botao--contorno .wp-block-button__link { padding: 12px 28px; border-radius: 12px; font-weight: 700; }
.tb-botao--contorno:hover { background: rgba(218, 37, 29, .12); }
.tb-so-celular { display: none; }

/* ---------- Gaveta do menu no celular ---------- */
.tb-gaveta { position: fixed; inset: 0; z-index: 60; background: #021135; color: #fff; overflow-y: auto; padding: 0 12px 24px; }
.tb-gaveta[hidden] { display: none; }
.tb-gaveta__topo { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; }
.tb-gaveta nav { display: flex; flex-direction: column; }
.tb-gaveta nav > a, .tb-gaveta nav > button { display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 0 6px; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .1); background: none; color: #fff; font-family: "Barlow Condensed", sans-serif; font-size: 26px; font-weight: 700; text-transform: uppercase; cursor: pointer; text-align: left; }
.tb-gaveta nav svg { width: 22px; height: 22px; flex: none; transition: transform .15s; }
.tb-gaveta nav button[aria-expanded="true"] svg { transform: rotate(180deg); color: #DA251D; }
.tb-gaveta__grupo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 10px 6px 14px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.tb-gaveta__grupo[hidden] { display: none; }
.tb-gaveta__grupo a { background: rgba(255, 255, 255, .07); border-radius: 12px; padding: 12px; font-weight: 700; }
.tb-gaveta__grupo small { display: block; color: #FFC300; font-weight: 700; }
.tb-gaveta__rodape { display: flex; flex-direction: column; gap: 10px; padding-top: 16px; }

/* ---------- Busca ---------- */
.tb-busca { position: fixed; inset: 0; z-index: 70; overflow-y: auto; color: #fff; background: #071E55 radial-gradient(ellipse 80% 50% at 50% 0%, rgba(0, 99, 172, .55), transparent 70%); }
.tb-busca[hidden] { display: none; }
.tb-busca__dentro { max-width: 880px; margin: 0 auto; padding: 40px 24px 64px; display: flex; flex-direction: column; gap: 24px; }
.tb-busca__campo { display: flex; align-items: center; gap: 16px; background: #fff; color: #021135; border-radius: 22px; padding: 8px 10px 8px 24px; box-shadow: 0 30px 60px rgba(2, 17, 53, .45), 0 0 0 6px rgba(0, 99, 172, .35); }
.tb-busca__campo input { flex: 1; min-width: 0; min-height: 56px; border: 0; outline: 0; background: transparent; font: inherit; font-size: 22px; font-weight: 600; color: #021135; }
.tb-busca__campo svg { width: 26px; height: 26px; flex: none; }
.tb-busca__grupo-titulo { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #FFC300; padding: 8px 12px; }
.tb-busca__resultados { background: #0D2A69; border: 1px solid #1E3F86; border-radius: 24px; padding: 10px; }
.tb-busca__resultados:empty { display: none; }
.tb-busca__item { display: block; padding: 12px; border-radius: 14px; font-weight: 600; line-height: 1.35; }
.tb-busca__item:hover, .tb-busca__item[aria-selected="true"] { background: rgba(255, 255, 255, .07); color: #fff; }
.tb-busca__item small { display: block; font-size: 12px; font-weight: 700; color: #FF8077; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.tb-busca mark { background: rgba(255, 195, 0, .22); color: #FFC300; border-radius: 3px; padding: 0 2px; }
.tb-busca__todos { display: flex; justify-content: space-between; padding: 16px 18px; margin-top: 8px; background: #DA251D; border-radius: 14px; font-weight: 700; }
.tb-busca__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tb-busca__chips button { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .08); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.tb-busca__dica { text-align: center; font-size: 13px; color: #B4C3E0; }

/* ---------- Títulos de seção ---------- */
.tb-titulo-secao::before { content: ""; display: block; width: 32px; height: 4px; background: #DA251D; margin-bottom: 8px; }

/* ---------- Cards de notícia ---------- */
.tb-card { background: var(--tb-sup); border: 1px solid var(--tb-borda); border-radius: 20px; overflow: hidden; height: 100%; display: flex; flex-direction: column; }
.tb-card .wp-block-post-featured-image { margin: 0; }
.tb-card .wp-block-post-featured-image img, .tb-sem-foto { aspect-ratio: 16 / 10; width: 100%; height: auto; object-fit: cover; display: block; }
.tb-card__texto { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.tb-card .wp-block-post-title { font-family: Inter, sans-serif; font-size: 17px; font-weight: 700; line-height: 1.3; text-transform: none; margin: 0; }
.tb-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; font-size: 12px; }
.tb-meta .wp-block-post-terms { font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--tb-vermelho-texto); }
.tb-meta .wp-block-post-terms a { color: inherit; }
.tb-meta .wp-block-post-date { color: var(--tb-mudo); }
.tb-meta .wp-block-post-date::before { content: "· "; }
.tb-sem-foto { background: var(--tb-sem-foto); display: flex; align-items: flex-end; padding: 10px 14px; box-sizing: border-box; color: #fff; font-family: "Barlow Condensed", sans-serif; font-weight: 800; font-size: 30px; }
.tb-sem-foto img { width: 34px; height: auto; aspect-ratio: auto; }

/* Grade de notícias: 3 colunas, alinhadas pelo topo */
.tb-grade .wp-block-post-template { gap: 20px; align-items: start; }
.tb-grade .wp-block-post-template > li { height: 100%; }
.tb-grade-4 .wp-block-post-template { gap: 20px; }

/* ---------- Manchete da home ---------- */
.tb-manchete { position: relative; border-radius: 24px; overflow: hidden; min-height: 500px; display: flex; align-items: flex-end; color: #fff; }
.tb-manchete .wp-block-post-featured-image, .tb-manchete .tb-sem-foto { position: absolute; inset: 0; margin: 0; height: 100% !important; aspect-ratio: auto; }
.tb-manchete .wp-block-post-featured-image img { height: 100% !important; aspect-ratio: auto; }
.tb-manchete::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(7, 30, 85, .95)); pointer-events: none; }
.tb-manchete__texto { position: relative; z-index: 1; padding: 36px; display: flex; flex-direction: column; gap: 14px; }
.tb-manchete .wp-block-post-terms { align-self: flex-start; background: #DA251D; color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; }
.tb-manchete .wp-block-post-title { font-size: clamp(2.25rem, 4.5vw, 4rem); line-height: .95; margin: 0; max-width: 760px; }
.tb-manchete .wp-block-post-excerpt { color: #D3DAEA; max-width: 620px; margin: 0; }
.tb-manchete .wp-block-post-excerpt__excerpt { margin: 0; }

/* ---------- Blocos de futebol ---------- */
.tb-placares { max-width: 1280px; margin: 0 auto; padding: 16px 24px 4px; display: flex; gap: 10px; overflow-x: auto; }
.tb-placar { flex: none; display: flex; align-items: center; gap: 10px; background: var(--tb-sup); border: 1px solid var(--tb-borda); border-radius: 12px; padding: 10px 14px; font-size: 13px; }
.tb-placar span { color: var(--tb-mudo); }
.tb-placar--vivo { background: var(--tb-ao-vivo-fundo); border-color: var(--tb-ao-vivo-borda); }
.tb-placar--vivo span:first-child { color: var(--tb-vermelho-texto); font-weight: 700; }
.tb-placar--proximo { background: linear-gradient(135deg, #0063AC, #071E55); border-color: transparent; color: #fff !important; text-decoration: none !important; }
.tb-placar--proximo span { color: #D5DFF0; }
.tb-placar--proximo span:first-child { color: #FFC300; font-weight: 700; }
.tb-placar--proximo:hover { filter: brightness(1.12); }
.tb-coluna-anuncio { display: flex; flex-direction: column; align-items: center; }
/* Desktop: o MPU acompanha a rolagem até o fim da linha (manchete / tabela) */
@media (min-width: 961px) {
	.tb-coluna-anuncio > .tb-anuncio { position: sticky; top: 24px; }
	.tb-linha-tabela > .tb-coluna-anuncio { flex: 0 0 300px !important; }
	/* Coluna sem conteúdo (ex.: Mais lidas vazia) some e a tabela ocupa o espaço */
	.tb-linha-tabela > .wp-block-column:not(.tb-coluna-anuncio) { flex-grow: 1 !important; }
	.tb-linha-tabela > .wp-block-column:not(:has(*)) { display: none; }
}
@media (max-width: 1100px) {
	.tb-linha-tabela { flex-wrap: wrap !important; }
	.tb-linha-tabela > .tb-coluna-anuncio { flex-basis: 100% !important; }
	.tb-linha-tabela > .tb-coluna-anuncio > .tb-anuncio { position: static; }
}
.tb-proximo { background: linear-gradient(180deg, #0063AC, #071E55); color: #fff; border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 20px; box-sizing: border-box; }
.wp-block-column > .tb-proximo { height: 100%; }
.tb-proximo__rotulo { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #FFC300; }
.tb-proximo__times { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; text-align: center; font-family: "Barlow Condensed", sans-serif; font-size: 26px; font-weight: 800; text-transform: uppercase; }
.tb-proximo__times i { font-style: normal; color: #B9CCFF; font-size: 22px; }
.tb-contagem { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; text-align: center; }
.tb-contagem div { background: rgba(255, 255, 255, .1); border-radius: 12px; padding: 12px 0; }
.tb-contagem b { display: block; font-family: "Barlow Condensed", sans-serif; font-size: 30px; color: #FFC300; line-height: 1.1; }
.tb-contagem small { font-size: 11px; color: #B9CCFF; }
.tb-proximo .tb-botao { background: #fff; color: #071E55 !important; margin-top: auto; }
.tb-caixa { background: var(--tb-sup); border: 1px solid var(--tb-borda); border-radius: 20px; padding: 24px; }
.tb-caixa table { width: 100%; border-collapse: collapse; font-size: 14px; }
.tb-caixa th { color: var(--tb-mudo); font-size: 12px; font-weight: 600; text-align: right; padding: 8px 6px; }
.tb-caixa td { padding: 10px 6px; text-align: right; border-top: 1px solid var(--tb-borda); }
.tb-caixa th:nth-child(-n+2), .tb-caixa td:nth-child(-n+2) { text-align: left; }
.tb-caixa tr.bahia td { background: var(--tb-destaque); font-weight: 800; }
.tb-aviso-dados { font-size: 12px; color: var(--tb-mudo); margin: 10px 0 0; }

/* ---------- Anúncios ---------- */
.tb-anuncio { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-inline: auto; }
.tb-anuncio__espaco { max-width: 100%; border-radius: 12px; background: var(--tb-sup); border: 1px dashed var(--tb-borda); display: flex; align-items: center; justify-content: center; color: var(--tb-mudo); font-size: 13px; }
.tb-anuncio__rotulo { font-size: 11px; color: var(--tb-mudo); text-transform: uppercase; letter-spacing: .08em; }
.tb-anuncio--topo { padding-top: 14px; margin-block-start: 0 !important; }
/* Conteúdo mais perto do anúncio de topo (todas as páginas) */
.tb-anuncio--topo + main { margin-block-start: 0 !important; padding-top: 18px !important; }
/* Leaderboard com tamanho exato por tela (o AdSense respeita a largura e a altura do <ins>) */
.tb-ins-topo { display: inline-block; width: 320px; height: 100px; }
@media (min-width: 768px) { .tb-ins-topo { width: 728px; height: 90px; } }
@media (min-width: 1024px) { .tb-ins-topo { width: 970px; height: 90px; } }
.tb-anuncio--grade { height: 100%; justify-content: flex-start; }
/* Lateral da notícia: o arranha-céu acompanha a rolagem até o fim do texto.
   A coluna estica até a altura do artigo e a lateral ocupa a coluna toda, para o sticky ter espaço. */
.wp-block-columns:has(> .wp-block-column > .tb-lateral) { align-items: stretch; }
.wp-block-column:has(> .tb-lateral) { display: flex; flex-direction: column; }
.tb-lateral { flex: 1; display: flex; flex-direction: column; }
.tb-lateral-fixa { position: sticky; top: 24px; z-index: 1; display: flex; flex-direction: column; gap: 16px; }
/* O MPU fica preso no topo enquanto se lê o título; a zona vai até a foto da notícia (medida pelo tema.js). */
.tb-zona-mpu { min-height: var(--tb-zona-mpu, auto); }
.tb-zona-mpu > .tb-anuncio { position: sticky; top: 24px; }
/* WhatsApp na lateral, embaixo do arranha-céu */
.tb-zap-lateral { background: var(--tb-sup); border: 1px solid var(--tb-borda); border-radius: 20px; padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.tb-zap-lateral b { font-family: "Barlow Condensed", sans-serif; font-size: 22px; line-height: 1.05; text-transform: uppercase; }
.tb-zap-lateral p { margin: 0; font-size: 14px; color: var(--tb-mudo); line-height: 1.45; }
.tb-zap-lateral .tb-botao { width: 100%; box-sizing: border-box; }
.tb-zap-lateral__linha { display: flex; align-items: center; gap: 14px; }
.tb-zap-lateral__texto { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.tb-zap-lateral__texto p { font-size: 13px; }
.tb-qr--mini .tb-qr__codigo { width: 96px; height: 96px; padding: 7px; border-radius: 12px; box-shadow: none; border: 1px solid var(--tb-borda); }
@media (max-width: 960px) { .tb-qr--mini { display: none; } }
/* Tela baixa (notebook pequeno): o arranha-céu + WhatsApp não cabem presos; fica só o anúncio. */
/* Tela baixa (notebook, janela menor que 880 px de altura): anúncio + WhatsApp não cabem presos juntos.
   O WhatsApp sai do bloco preso e aparece antes dele, rolando normalmente; o anúncio continua preso. */
.tb-zap-tela-baixa { display: none; }
@media (min-width: 961px) and (max-height: 880px) {
	.tb-lateral-fixa .tb-zap-lateral { display: none; }
	.tb-zap-tela-baixa { display: block; }
}

/* ---------- Notícia ---------- */
.tb-migalhas { font-size: 13px; color: var(--tb-mudo); }
.tb-migalhas a:hover { color: var(--tb-texto); }
.tb-migalhas span { margin: 0 4px; }
.tb-linha-fina { font-size: 20px; line-height: 1.5; color: var(--tb-mudo); margin: 6px 0 0; }
.tb-autor { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; border-top: 1px solid var(--tb-borda); border-bottom: 1px solid var(--tb-borda); flex-wrap: wrap; }
.tb-autor__nome { display: flex; flex-direction: column; font-size: 13px; color: var(--tb-mudo); }
.tb-autor__nome .wp-block-post-author-name { color: var(--tb-texto); font-weight: 700; font-size: 15px; }
.tb-compartilhar { display: flex; gap: 8px; flex-wrap: wrap; }
.tb-compartilhar a, .tb-compartilhar button { min-height: 44px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 12px; background: var(--tb-sup); border: 1px solid var(--tb-borda); color: var(--tb-texto); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.tb-artigo .wp-block-post-content { font-family: "Source Serif 4", Georgia, serif; font-size: 20px; line-height: 1.7; color: var(--tb-leitura); }
.tb-artigo .wp-block-post-content a { color: var(--tb-azul-texto); text-decoration: underline; text-underline-offset: .18em; }
.tb-artigo .wp-block-post-featured-image img { border-radius: 20px; }
.tb-credito { position: relative; }
.tb-credito__texto { position: absolute; right: 14px; bottom: 12px; font-size: 12px; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .8), 0 0 8px rgba(0, 0, 0, .5); }
.tb-tags .wp-block-post-terms { display: flex; flex-wrap: wrap; gap: 8px; }
.tb-tags .wp-block-post-terms a { background: var(--tb-chip); padding: 9px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.tb-tags .wp-block-post-terms__separator { display: none; }
.tb-receba { background: var(--tb-sup); border: 1px solid var(--tb-borda); border-radius: 20px; padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.tb-mais-lidas ol { list-style: none; margin: 0; padding: 0; counter-reset: lidas; }
.tb-mais-lidas li { counter-increment: lidas; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; padding: 12px 0; border-top: 1px solid var(--tb-borda); font-weight: 600; line-height: 1.35; }
.tb-mais-lidas li::before { content: counter(lidas); font-family: "Barlow Condensed", sans-serif; font-size: 30px; font-weight: 800; color: var(--tb-dourado-texto); line-height: 1; }

/* ---------- Paginação ---------- */
.wp-block-query-pagination { gap: 10px; font-weight: 700; align-items: center; flex-wrap: wrap; }
.wp-block-query-pagination-numbers { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.wp-block-query-pagination .page-numbers { box-sizing: border-box; min-width: 46px; height: 46px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; border-radius: 12px; background: var(--tb-sup); border: 1px solid var(--tb-borda); font-family: "Barlow Condensed", sans-serif; font-size: 20px; font-variant-numeric: tabular-nums; transition: border-color .15s, background .15s; }
.wp-block-query-pagination a.page-numbers:hover { border-color: #DA251D; color: var(--tb-texto); background: rgba(218, 37, 29, .14); }
.wp-block-query-pagination .page-numbers.current { background: #DA251D; border-color: #DA251D; color: #fff; box-shadow: 0 6px 18px rgba(218, 37, 29, .35); }
.wp-block-query-pagination .page-numbers.dots { background: none; border: 0; min-width: 0; padding: 0 4px; color: var(--tb-mudo); }
.wp-block-query-pagination-previous,
.wp-block-query-pagination-next { box-sizing: border-box; height: 46px; padding: 0 18px; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; border-radius: 12px; border: 2px solid #DA251D; color: var(--tb-texto); font-size: 15px; }
.wp-block-query-pagination-previous:hover,
.wp-block-query-pagination-next:hover { background: #DA251D; color: #fff; }
.wp-block-query-pagination-previous-arrow, .wp-block-query-pagination-next-arrow { margin: 0; }
@media (max-width: 600px) {
	.wp-block-query-pagination { gap: 8px; }
	.wp-block-query-pagination-numbers { order: -1; width: 100%; }
	.wp-block-query-pagination .page-numbers { min-width: 42px; height: 42px; padding: 0 10px; font-size: 18px; }
}

/* ---------- Newsletter e WhatsApp: faixa de largura total, azul e vermelha ---------- */
.tb-faixa-chamadas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.tb-chamada { display: flex; padding: 56px 48px; }
.tb-chamada__dentro { width: 100%; max-width: 560px; display: flex; flex-direction: column; gap: 16px; }
.tb-chamada--azul { background: linear-gradient(135deg, #0063AC, #071E55); color: #fff; justify-content: flex-end; }
.tb-chamada--vermelha { background: linear-gradient(135deg, #DA251D, #8E140E); color: #fff; justify-content: flex-start; }
.tb-chamada h2 { margin: 0; font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1; color: #fff; }
.tb-chamada p { margin: 0; color: rgba(255, 255, 255, .85); font-size: 16px; }
.tb-chamada form { display: flex; gap: 8px; flex-wrap: wrap; }
.tb-chamada input[type="email"] { flex: 1 1 220px; min-height: 52px; border-radius: 12px; border: 0; padding: 0 16px; font: inherit; background: #fff; color: #021135; }
.tb-chamada .tb-botao { min-height: 52px; padding: 0 26px; font-size: 15px; }
.tb-chamada--azul .tb-botao { background: #DA251D; }
.tb-chamada--vermelha .tb-botao { background: #fff; color: #B81E16 !important; }
.tb-chamada--vermelha .tb-botao:hover { background: #FFE9E7; }
.tb-chamada--vermelha .tb-rotulo { color: #FFD7D3; }
.tb-rotulo svg { width: 18px; height: 18px; flex: none; }
.tb-rotulo { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #FFC300; }
.tb-chamada__dentro--qr { flex-direction: row; align-items: center; gap: 28px; max-width: 640px; }
.tb-chamada__texto { display: flex; flex-direction: column; gap: 16px; flex: 1; min-width: 0; }
.tb-qr { flex: none; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.tb-qr__codigo { width: 148px; height: 148px; padding: 10px; box-sizing: border-box; background: #fff; border-radius: 16px; box-shadow: 0 12px 30px rgba(0, 0, 0, .25); }
.tb-qr__codigo svg { display: block; width: 100%; height: 100%; }
.tb-qr figcaption { max-width: 150px; text-align: center; font-size: 12px; line-height: 1.35; color: rgba(255, 255, 255, .85); }
@media (max-width: 860px) {
	.tb-faixa-chamadas { grid-template-columns: 1fr; }
	.tb-qr { display: none; }
	.tb-chamada { padding: 36px 20px; }
	.tb-chamada--azul, .tb-chamada--vermelha { justify-content: flex-start; }
}

/* ---------- Rodapé ---------- */
.tb-rodape { background: #021135; color: #B4C3E0; font-size: 14px; }
.tb-rodape a { color: inherit; }
.tb-rodape a:hover { color: #fff; }
.tb-rodape__dentro { max-width: 1280px; margin: 0 auto; padding: 48px 24px 28px; display: flex; flex-wrap: wrap; gap: 32px; }
.tb-rodape__marca { flex: 2 1 280px; display: flex; flex-direction: column; gap: 14px; }
.tb-rodape__marca img { height: 40px; width: auto; align-self: flex-start; }
.tb-rodape nav { flex: 1 1 140px; display: flex; flex-direction: column; gap: 10px; }
.tb-rodape nav b { color: #fff; font-family: "Barlow Condensed", sans-serif; font-size: 18px; text-transform: uppercase; }
.tb-rodape__redes { display: flex; gap: 10px; }
.tb-rodape__redes a { width: 44px; height: 44px; border-radius: 12px; background: rgba(255, 255, 255, .08); display: flex; align-items: center; justify-content: center; color: #fff; }
.tb-rodape__redes svg { width: 18px; height: 18px; }
.tb-rodape__base { max-width: 1280px; margin: 0 auto; padding: 20px 24px 28px; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; }
.tb-rodape__privacidade { color: #fff !important; font-weight: 600; }

/* ---------- Acessibilidade ---------- */
.tb-so-leitor { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid #FFC300; outline-offset: 2px; }

/* ---------- Celular ---------- */
@media (max-width: 960px) {
	.tb-menu, .tb-cabecalho__acoes .tb-botao, .tb-topo__social { display: none; }
	.tb-so-celular { display: inline-flex; }
	.tb-so-computador, .tb-coluna-anuncio:has(.tb-so-computador) { display: none !important; }
	.tb-cabecalho__dentro { padding: 8px 12px; min-height: 0; justify-content: space-between; gap: 12px; }
	.tb-logo img { height: 34px; }
	.tb-topo__dentro { padding: 6px 12px; }
	.tb-manchete { min-height: 340px; border-radius: 20px; }
	.tb-manchete__texto { padding: 18px; }
	.tb-manchete .wp-block-post-excerpt { display: none; }
	.tb-painel__dentro { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tb-artigo .wp-block-post-content { font-size: 18px; }
	.tb-chamada { padding: 22px; }
	.tb-chamada h2 { font-size: 28px; }
}

/* Celular: notícias da grade viram linhas (texto à esquerda, foto pequena à direita) */
@media (max-width: 600px) {
	.tb-grade .wp-block-post-template, .tb-grade-4 .wp-block-post-template { gap: 0 !important; }
	.tb-grade .tb-card, .tb-grade-4 .tb-card { flex-direction: row-reverse; align-items: flex-start; gap: 12px; background: none; border: 0; border-bottom: 1px solid var(--tb-borda); border-radius: 0; padding: 14px 0; transform: none; }
	.tb-grade .tb-card .wp-block-post-featured-image, .tb-grade-4 .tb-card .wp-block-post-featured-image { flex: none; width: 112px; }
	.tb-grade .tb-card .wp-block-post-featured-image img, .tb-grade-4 .tb-card .wp-block-post-featured-image img, .tb-grade .tb-sem-foto, .tb-grade-4 .tb-sem-foto { aspect-ratio: 4 / 3; border-radius: 12px; }
	.tb-grade .tb-sem-foto, .tb-grade-4 .tb-sem-foto { width: 112px; font-size: 20px; padding: 6px 8px; flex: none; }
	.tb-grade .tb-card__texto, .tb-grade-4 .tb-card__texto { padding: 0; flex: 1; min-width: 0; }
	.tb-card .wp-block-post-title { font-size: 16px; }
	.tb-celula-anuncio { padding: 16px 0; border-bottom: 1px solid var(--tb-borda); }
	.tb-proximo { padding: 18px; gap: 14px; }
}
@media (max-width: 960px) {
	/* no celular as colunas empilham: o 300×600 sai (o celular terá o anúncio âncora) */
	.tb-lateral-fixa { display: none; }
	.tb-zona-mpu { min-height: 0 !important; }
	.tb-zona-mpu > .tb-anuncio { position: static; }
}
@media (prefers-reduced-motion: no-preference) {
	.tb-card { transition: border-color .15s ease, transform .15s ease; }
	.tb-card:hover { border-color: #0063AC; transform: translateY(-2px); }
}

/* A faixa das chamadas encosta no rodapé (sem o espaço padrão entre blocos) */
.wp-site-blocks > .tb-faixa-chamadas,
.wp-site-blocks > .tb-faixa-chamadas + * { margin-block-start: 0; }

/* ===================== Páginas de futebol e História ===================== */
.tb-pagina-futebol { min-width: 0; }
.tb-pagina-futebol > * + * { margin-block-start: 18px; }
.tb-titulo-pagina { font-size: clamp(2.4rem, 4vw, 3.4rem); margin: 8px 0 0; }
.tb-titulo-bloco { font-size: 30px; margin: 40px 0 14px; }
.tb-pagina-futebol .wp-block-post-content { font-family: "Source Serif 4", Georgia, serif; font-size: 19px; line-height: 1.7; color: var(--tb-leitura); }
.tb-pagina-futebol .wp-block-post-content h2 { font-family: "Barlow Condensed", sans-serif; font-size: 34px; text-transform: uppercase; line-height: 1.05; color: var(--tb-texto); margin: 44px 0 12px; }
.tb-pagina-futebol .wp-block-post-content h2::before { content: ""; display: block; width: 32px; height: 4px; background: #DA251D; margin-bottom: 8px; }
.tb-pagina-futebol .wp-block-post-content > .wp-block-shortcode { font-family: Inter, sans-serif; font-size: 16px; line-height: 1.5; color: var(--tb-texto); }
.tb-anuncio--lista { margin: 24px auto; }
.tb-vazio { padding: 28px; border: 1px dashed var(--tb-borda); border-radius: 16px; color: var(--tb-mudo); text-align: center; font-family: Inter, sans-serif; font-size: 15px; }
.tb-fonte { font-size: 12px; color: var(--tb-mudo); margin-top: 18px; font-family: Inter, sans-serif; }

/* Filtros (temporada, campeonato) */
.tb-filtros { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 0; }
.tb-filtros__rotulo { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--tb-mudo); margin-right: 4px; }
.tb-chip-filtro { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 99px; background: var(--tb-sup); border: 1px solid var(--tb-borda); font-size: 14px; font-weight: 600; }
.tb-chip-filtro:hover { border-color: #DA251D; }
.tb-chip-filtro.is-ativo { background: #DA251D; border-color: #DA251D; color: #fff; }

/* Números da temporada */
.tb-numeros { margin-top: 22px; padding: 20px 24px; border-radius: 20px; background: linear-gradient(135deg, #0063AC, #071E55); color: #fff; }
.tb-numeros__titulo { margin: 0 0 14px; font-family: "Barlow Condensed", sans-serif; font-size: 22px; text-transform: uppercase; letter-spacing: .02em; }
.tb-numeros__titulo::before { content: "★ "; color: #FFC300; }
.tb-numeros dl { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; margin: 0; }
.tb-numeros dl > div { background: rgba(255, 255, 255, .08); border-radius: 12px; padding: 10px 6px; text-align: center; }
.tb-numeros dt { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: #D5DFF0; }
.tb-numeros dd { margin: 2px 0 0; font-family: "Barlow Condensed", sans-serif; font-size: 30px; font-weight: 800; color: #FFC300; line-height: 1.1; }

/* Lista de jogos */
.tb-jogos { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.tb-jogo { display: grid; grid-template-columns: 84px 1fr 44px; align-items: center; gap: 16px; padding: 14px 18px; border-radius: 16px; background: var(--tb-sup); border: 1px solid var(--tb-borda); }
.tb-jogo__data { display: flex; flex-direction: column; text-align: center; border-right: 1px solid var(--tb-borda); padding-right: 14px; }
.tb-jogo__data b { font-family: "Barlow Condensed", sans-serif; font-size: 26px; line-height: 1; }
.tb-jogo__data span { font-size: 12px; color: var(--tb-mudo); text-transform: capitalize; margin-top: 4px; }
.tb-jogo__meio { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tb-jogo__camp { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--tb-azul-texto); }
.tb-jogo__times { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; font-family: "Barlow Condensed", sans-serif; font-size: 22px; font-weight: 700; text-transform: uppercase; }
.tb-jogo__times > span:first-child { text-align: right; }
.tb-jogo__times .is-bahia { color: var(--tb-texto); }
.tb-jogo__times > span:not(.is-bahia):not(.tb-jogo__placar) { color: var(--tb-mudo); }
.tb-jogo__placar { display: inline-flex; align-items: center; gap: 8px; }
.tb-jogo__placar b { display: inline-grid; place-items: center; min-width: 34px; height: 34px; border-radius: 8px; background: var(--tb-fundo); border: 1px solid var(--tb-borda); font-size: 22px; }
.tb-jogo__placar i, .tb-jogo__x { font-style: normal; color: var(--tb-mudo); }
.tb-jogo__estadio { font-size: 12px; color: var(--tb-mudo); text-align: center; }
.tb-jogo__res { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-family: "Barlow Condensed", sans-serif; font-weight: 800; font-size: 18px; color: #fff; justify-self: end; }
.tb-jogo__res--v { background: #1E8E4E; } .tb-jogo__res--e { background: #7A869E; } .tb-jogo__res--d { background: #DA251D; }
.tb-jogo__vivo, .tb-jogo__aviso { font-size: 11px; font-weight: 800; text-transform: uppercase; justify-self: end; }
.tb-jogo__vivo { color: #DA251D; } .tb-jogo__aviso { color: var(--tb-mudo); }

/* Classificação e artilharia */
.tb-classificacao { margin-top: 22px; background: var(--tb-sup); border: 1px solid var(--tb-borda); border-radius: 20px; overflow: hidden; font-family: Inter, sans-serif; }
.tb-classificacao__topo { display: flex; align-items: baseline; justify-content: space-between; padding: 18px 22px 8px; }
.tb-classificacao__topo h2 { margin: 0; font-family: "Barlow Condensed", sans-serif; font-size: 28px; text-transform: uppercase; }
.tb-classificacao__topo span { font-size: 13px; color: var(--tb-mudo); }
.tb-classificacao__rolagem { overflow-x: auto; }
.tb-classificacao table { width: 100%; border-collapse: collapse; font-size: 15px; }
.tb-classificacao th, .tb-classificacao td { padding: 11px 12px; text-align: right; border-top: 1px solid var(--tb-borda); }
.tb-classificacao thead th { font-size: 12px; color: var(--tb-mudo); font-weight: 600; border-top: 0; }
.tb-classificacao th:nth-child(2), .tb-classificacao td:nth-child(2), .tb-classificacao tbody th { text-align: left; }
.tb-classificacao th:first-child, .tb-classificacao td:first-child { width: 44px; text-align: center; }
.tb-classificacao tbody th { font-weight: 600; }
.tb-pos { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; font-weight: 700; font-size: 13px; }
.tb-classificacao tr.g4 .tb-pos { background: #0063AC; color: #fff; }
.tb-classificacao tr.z4 .tb-pos { background: #DA251D; color: #fff; }
.tb-classificacao tr.bahia td, .tb-classificacao tr.bahia th { background: var(--tb-destaque); font-weight: 800; }
.tb-legenda { display: flex; align-items: center; gap: 8px; padding: 12px 22px 16px; margin: 0; font-size: 12px; color: var(--tb-mudo); }
.tb-legenda span { width: 12px; height: 12px; border-radius: 3px; } .tb-legenda span + * { margin-right: 10px; }
.tb-legenda__g4 { background: #0063AC; } .tb-legenda__z4 { background: #DA251D; margin-left: 10px; }

/* Cartões de campeonato / seções */
.tb-cartoes-camp { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-top: 22px; }
.tb-cartao-camp { position: relative; display: flex; flex-direction: column; gap: 6px; min-height: 120px; padding: 18px 20px; border-radius: 18px; background: var(--tb-sup); border: 1px solid var(--tb-borda); overflow: hidden; transition: border-color .15s, transform .15s; font-family: Inter, sans-serif; }
.tb-cartao-camp::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, #0063AC 0 33%, #fff 33% 66%, #DA251D 66%); }
.tb-cartao-camp:hover { border-color: #DA251D; transform: translateY(-2px); }
.tb-cartao-camp__rotulo { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--tb-dourado-texto); }
.tb-cartao-camp b { font-family: "Barlow Condensed", sans-serif; font-size: 26px; text-transform: uppercase; line-height: 1.05; }
.tb-cartao-camp > span:last-child { font-size: 13px; color: var(--tb-mudo); margin-top: auto; }

/* Pessoas (ídolos, técnicos, presidentes) */
.tb-pessoas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 22px; font-family: Inter, sans-serif; }
.tb-pessoas--3 { grid-template-columns: repeat(3, 1fr); }
.tb-pessoa { display: flex; flex-direction: column; gap: 4px; }
.tb-pessoa__foto { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 16px; background: var(--tb-foto-vazia); transition: transform .2s; }
.tb-pessoa:hover .tb-pessoa__foto { transform: scale(1.02); }
.tb-pessoa__nome { margin-top: 8px; font-family: "Barlow Condensed", sans-serif; font-size: 22px; font-weight: 800; text-transform: uppercase; line-height: 1.05; }
.tb-pessoa:hover .tb-pessoa__nome { color: var(--tb-vermelho-texto); }
.tb-pessoa__linha { font-size: 13px; color: var(--tb-mudo); }

/* Ficha */
.tb-ficha { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: 28px; align-items: start; margin-top: 14px; font-family: Inter, sans-serif; }
.tb-ficha__foto { margin: 0; }
.tb-ficha__img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 20px; }
.tb-ficha__foto figcaption { font-size: 12px; color: var(--tb-mudo); margin-top: 6px; }
.tb-ficha__tipo { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--tb-dourado-texto); }
.tb-ficha__tipo::before { content: "★★ "; }
.tb-ficha__nome { margin: 4px 0 0; font-family: "Barlow Condensed", sans-serif; font-size: clamp(2.6rem, 5vw, 4rem); font-weight: 800; font-style: italic; text-transform: uppercase; line-height: .95; }
.tb-ficha__completo { margin: 6px 0 0; font-size: 17px; color: var(--tb-mudo); }
.tb-ficha dl { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 20px 0 0; }
.tb-ficha dl > div { padding: 10px 14px; border-radius: 12px; background: var(--tb-sup); border: 1px solid var(--tb-borda); }
.tb-ficha dt { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--tb-mudo); }
.tb-ficha dd { margin: 2px 0 0; font-weight: 600; }
.tb-ficha__redes { display: flex; gap: 14px; margin: 16px 0 0; font-weight: 700; color: var(--tb-azul-texto); }
.tb-ficha-texto { font-family: "Source Serif 4", Georgia, serif; font-size: 19px; line-height: 1.7; color: var(--tb-leitura); margin-top: 24px; }
.tb-ficha-texto h2 { font-family: "Barlow Condensed", sans-serif; font-size: 30px; text-transform: uppercase; color: var(--tb-texto); }
.tb-botao-linha { display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px; border-radius: 12px; border: 2px solid #DA251D; font-weight: 700; font-size: 14px; font-family: Inter, sans-serif; }
.tb-botao-linha:hover { background: rgba(218, 37, 29, .12); }

/* Artilheiros */
.tb-artilheiros { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-family: Inter, sans-serif; }
.tb-artilheiros li { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 14px; padding: 10px 18px 10px 14px; border-radius: 16px; background: var(--tb-sup); border: 1px solid var(--tb-borda); }
.tb-artilheiros li:first-child { background: linear-gradient(135deg, #0063AC, #071E55); color: #fff; border-color: transparent; }
.tb-artilheiros__pos { font-family: "Barlow Condensed", sans-serif; font-size: 30px; font-weight: 800; color: var(--tb-dourado-texto); text-align: center; }
.tb-artilheiros li:first-child .tb-artilheiros__pos { color: #FFC300; }
.tb-artilheiros a { display: flex; align-items: center; gap: 14px; min-width: 0; }
.tb-artilheiros__foto { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; font-size: 16px !important; padding: 0 !important; justify-content: center; align-items: center !important; }
.tb-artilheiros__nome { display: flex; flex-direction: column; }
.tb-artilheiros__nome b { font-family: "Barlow Condensed", sans-serif; font-size: 24px; text-transform: uppercase; line-height: 1; }
.tb-artilheiros__nome small, .tb-artilheiros__gols small { font-size: 12px; color: var(--tb-mudo); }
.tb-artilheiros li:first-child small { color: #D5DFF0; }
.tb-artilheiros__gols { display: flex; flex-direction: column; align-items: center; }
.tb-artilheiros__gols b { font-family: "Barlow Condensed", sans-serif; font-size: 34px; font-weight: 800; line-height: 1; }

/* Títulos */
.tb-pagina-futebol .wp-block-post-content .tb-titulos { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; font-family: Inter, sans-serif; font-size: 15px; line-height: 1.4; color: var(--tb-texto); }
.tb-titulo-camp { padding: 18px 20px; border-radius: 18px; background: var(--tb-sup); border: 1px solid var(--tb-borda); }
.tb-titulo-camp h3 { margin: 0; font-family: "Barlow Condensed", sans-serif; font-size: 22px; text-transform: uppercase; line-height: 1.05; }
.tb-titulo-camp__total { margin: 4px 0 12px; font-size: 13px; color: var(--tb-dourado-texto); font-weight: 700; }
.tb-titulo-camp__total::before { content: "★ "; }
.tb-titulo-camp ul { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.tb-titulo-camp li { display: inline-flex; align-items: center; min-height: 30px; padding: 0 10px; border-radius: 8px; background: var(--tb-fundo); border: 1px solid var(--tb-borda); font-family: "Barlow Condensed", sans-serif; font-size: 17px; font-weight: 700; }
.tb-titulo-camp li:has(a) { border-color: #DA251D; }
.tb-titulo-camp li a { color: var(--tb-texto); text-decoration: none; }

@media (max-width: 960px) {
	.tb-numeros dl { grid-template-columns: repeat(4, 1fr); }
	.tb-pessoas { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
	.tb-numeros { padding: 16px; }
	.tb-numeros dl { grid-template-columns: repeat(3, 1fr); }
	.tb-numeros dd { font-size: 24px; }
	.tb-jogo { grid-template-columns: 60px 1fr; gap: 12px; padding: 12px; }
	.tb-jogo__data { padding-right: 10px; }
	.tb-jogo__data b { font-size: 22px; }
	.tb-jogo__res, .tb-jogo__vivo, .tb-jogo__aviso { position: absolute; }
	.tb-jogo { position: relative; }
	.tb-jogo__res { top: 10px; right: 10px; width: 24px; height: 24px; font-size: 13px; }
	.tb-jogo__times { font-size: 18px; gap: 8px; }
	.tb-jogo__placar b { min-width: 28px; height: 28px; font-size: 18px; }
	.tb-pessoas, .tb-pessoas--3 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
	.tb-ficha { grid-template-columns: 1fr; }
	.tb-ficha__foto { max-width: 280px; }
	.tb-ficha dl { grid-template-columns: 1fr; }
	.tb-classificacao th, .tb-classificacao td { padding: 10px 8px; }
	.tb-artilheiros li { grid-template-columns: 34px 1fr auto; padding: 10px 12px 10px 8px; }
	.tb-artilheiros__foto { width: 44px; height: 44px; }
}
/* Componentes dentro do conteúdo da página: fonte de interface, não a de leitura */
.tb-pagina-futebol .wp-block-post-content :is(.tb-filtros, .tb-numeros, .tb-bloco-jogos, .tb-classificacao, .tb-cartoes-camp, .tb-pessoas, .tb-artilheiros, .tb-vazio, .tb-fonte, .tb-anuncio) { font-family: Inter, sans-serif; font-size: 16px; line-height: 1.5; }
.tb-pagina-futebol .wp-block-post-content :is(.tb-numeros__titulo, .tb-classificacao__topo h2) { margin: 0 0 14px; font-size: 22px; }
.tb-pagina-futebol .wp-block-post-content .tb-classificacao__topo h2 { margin: 0; font-size: 28px; }
.tb-pagina-futebol .wp-block-post-content :is(.tb-numeros__titulo, .tb-classificacao__topo h2)::before { display: none; }
.tb-pagina-futebol .wp-block-post-content .tb-fonte { font-size: 12px; }
.tb-pagina-futebol .wp-block-post-content .tb-vazio { font-size: 15px; }
.tb-numeros dt { font-size: 10.5px; letter-spacing: .02em; }
.tb-numeros dl > div { padding: 10px 4px; }
.tb-pessoa__foto.tb-sem-foto { background: var(--tb-sem-foto); }
.tb-artilheiros li:first-child { background: var(--tb-sup); color: inherit; border-color: var(--tb-borda); }
.tb-artilheiros:first-of-type li:first-child { background: linear-gradient(135deg, #0063AC, #071E55); color: #fff; border-color: transparent; }
.tb-artilheiros li:first-child small { color: var(--tb-mudo); }
.tb-artilheiros:first-of-type li:first-child small { color: #D5DFF0; }
.tb-pagina-futebol .wp-block-post-content .tb-titulos { align-items: start; }
@media (max-width: 600px) {
	.tb-numeros dl { grid-template-columns: repeat(4, 1fr); gap: 8px; }
	.tb-numeros dd { font-size: 22px; }
	.tb-numeros dt { font-size: 9.5px; }
	.tb-jogo__times { font-size: 16px; }
}
.tb-anuncio__espaco { max-width: 100%; box-sizing: border-box; }
/* Anúncio de verdade (AdSense): sem moldura; se o Google não preencher, some o espaço e o rótulo */
.tb-anuncio__ads { max-width: 100%; box-sizing: border-box; overflow: hidden; }
.tb-anuncio:has(ins.adsbygoogle[data-ad-status="unfilled"]) { display: none; }

/* ===================== Contato ===================== */
.tb-contato { display: flex; flex-direction: column; gap: 22px; margin-top: 22px; font-family: Inter, sans-serif; font-size: 16px; line-height: 1.5; color: var(--tb-texto); }
.tb-contato .tb-rotulo { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: #FFC300; }
.tb-contato .tb-rotulo svg { width: 18px; height: 18px; }
.tb-contato__principal { position: relative; overflow: hidden; padding: 36px 40px; border-radius: 24px; color: #fff; background: radial-gradient(circle at 100% 0%, rgba(218, 37, 29, .55), transparent 45%), linear-gradient(135deg, #0063AC, #071E55); }
.tb-contato__principal::after { content: "★★"; position: absolute; right: 28px; bottom: 6px; font-size: 120px; line-height: 1; color: rgba(255, 255, 255, .06); letter-spacing: -.1em; pointer-events: none; }
.tb-pagina-futebol .wp-block-post-content .tb-contato__principal h2 { margin: 10px 0 6px; color: #fff; font-size: 44px; }
.tb-pagina-futebol .wp-block-post-content .tb-contato__principal h2::before { display: none; }
.tb-contato__principal p { margin: 0; max-width: 560px; color: #D5DFF0; }
.tb-contato__email { display: inline-block; margin: 18px 0 20px; font-family: "Barlow Condensed", sans-serif; font-size: clamp(28px, 4.5vw, 44px); font-weight: 800; color: #fff !important; text-decoration: none !important; border-bottom: 3px solid #DA251D; line-height: 1.1; word-break: break-all; }
.tb-contato__acoes { display: flex; flex-wrap: wrap; gap: 10px; }
.tb-contato .tb-botao svg { width: 18px; height: 18px; }
.tb-contato .tb-botao { text-decoration: none !important; }
.tb-botao--claro { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .3); }
.tb-botao--claro:hover { background: rgba(255, 255, 255, .22); }
.tb-botao--branco { background: #fff; color: #B81E16 !important; }
.tb-botao--branco:hover { background: #FFE9E7; }
.tb-contato__assuntos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.tb-contato__cartao { display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: 18px; background: var(--tb-sup); border: 1px solid var(--tb-borda); color: var(--tb-texto) !important; text-decoration: none !important; transition: border-color .15s, transform .15s; }
.tb-contato__cartao:hover { border-color: #DA251D; transform: translateY(-2px); }
.tb-contato__icone { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(0, 99, 172, .18); color: var(--tb-azul-texto); margin-bottom: 6px; }
.tb-contato__icone svg { width: 22px; height: 22px; }
.tb-contato__cartao b { font-family: "Barlow Condensed", sans-serif; font-size: 24px; text-transform: uppercase; line-height: 1.05; }
.tb-contato__cartao span:not(.tb-contato__icone) { font-size: 14px; color: var(--tb-mudo); }
.tb-contato__cartao em { margin-top: auto; padding-top: 8px; font-style: normal; font-weight: 700; font-size: 14px; color: var(--tb-vermelho-texto); }
.tb-contato__redes { display: grid; grid-template-columns: 1fr; gap: 14px; }
.tb-contato__zap { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 24px; border-radius: 18px; color: #fff; background: linear-gradient(135deg, #DA251D, #8E1610); }
.tb-contato__zap > div { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.tb-contato__zap .tb-rotulo { color: #fff; }
.tb-contato__zap b { font-family: "Barlow Condensed", sans-serif; font-size: 24px; text-transform: uppercase; line-height: 1.1; }
.tb-contato__zap .tb-qr { flex: none; margin: 0; }
.tb-contato__nota { margin: 0; font-size: 13px; color: var(--tb-mudo); }
.tb-contato__nota a { color: var(--tb-azul-texto); }
@media (max-width: 700px) {
	.tb-contato__principal { padding: 26px 22px; }
	.tb-pagina-futebol .wp-block-post-content .tb-contato__principal h2 { font-size: 34px; }
	.tb-contato__assuntos, .tb-contato__redes { grid-template-columns: 1fr; }
	.tb-contato__acoes { flex-direction: column; }
	.tb-contato__acoes .tb-botao { width: 100%; box-sizing: border-box; white-space: nowrap; }
}

/* Artilheiros recentes (sem foto nem ficha) */
.tb-artilheiros-recentes { margin-top: 40px; }
.tb-artilheiros--simples li { padding-top: 6px; padding-bottom: 6px; }
.tb-artilheiros--simples .tb-artilheiros__gols b { font-size: 28px; }

/* Carrossel de destaques (home) */
.tb-carrossel { position: relative; display: grid; border-radius: 24px; overflow: hidden; }
.tb-carrossel__slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s; }
.tb-carrossel__slide.is-ativo { opacity: 1; visibility: visible; }
.tb-carrossel .wp-block-post-featured-image a { display: block; height: 100%; }
.tb-carrossel .wp-block-post-featured-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tb-carrossel .tb-manchete__texto { padding-bottom: 64px; }
.tb-carrossel .wp-block-post-title a, .tb-carrossel .wp-block-post-terms a { color: inherit; text-decoration: none; }
.tb-carrossel__controles { position: absolute; z-index: 2; right: 24px; bottom: 22px; display: flex; align-items: center; gap: 10px; }
.tb-carrossel__seta { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(7,30,85,.55); color: #fff; display: grid; place-items: center; cursor: pointer; padding: 0; }
.tb-carrossel__seta:hover { background: #DA251D; border-color: #DA251D; }
.tb-carrossel__seta svg { width: 18px; height: 18px; transform: rotate(90deg); }
.tb-carrossel__seta--proxima svg { transform: rotate(-90deg); }
.tb-carrossel__pontos { display: flex; gap: 6px; }
.tb-carrossel__ponto { width: 9px; height: 9px; border-radius: 999px; border: 0; padding: 0; background: rgba(255,255,255,.45); cursor: pointer; transition: width .3s, background .3s; }
.tb-carrossel__ponto[aria-current="true"] { width: 26px; background: #FFC300; }
@media (max-width: 960px) {
	.tb-carrossel { border-radius: 20px; }
	.tb-carrossel .tb-manchete__texto { padding-bottom: 58px; }
	.tb-carrossel__controles { right: 14px; bottom: 14px; }
	.tb-carrossel__seta { width: 32px; height: 32px; }
}
@media (prefers-reduced-motion: reduce) { .tb-carrossel__slide { transition: none; } }

/* Carrossel: texto legível em qualquer foto (overlay marinho mais forte embaixo e à esquerda + sombra no texto) */
.tb-carrossel .tb-manchete::after {
	background:
		radial-gradient(ellipse 80% 75% at 12% 88%, rgba(2, 17, 53, .9) 0%, rgba(2, 17, 53, .55) 45%, rgba(2, 17, 53, 0) 78%),
		linear-gradient(to top, rgba(2, 17, 53, .95) 0%, rgba(2, 17, 53, .6) 38%, rgba(2, 17, 53, .12) 70%, rgba(2, 17, 53, .25) 100%),
		linear-gradient(to right, rgba(2, 17, 53, .55) 0%, rgba(2, 17, 53, 0) 60%);
}
.tb-carrossel .wp-block-post-title { text-shadow: 0 1px 3px rgba(0, 0, 0, .7), 0 4px 18px rgba(0, 0, 0, .65), 0 0 40px rgba(0, 0, 0, .45); }
.tb-carrossel .wp-block-post-excerpt { color: rgba(255, 255, 255, .95); text-shadow: 0 1px 3px rgba(0, 0, 0, .75), 0 2px 16px rgba(0, 0, 0, .7); }
.tb-carrossel .wp-block-post-terms { box-shadow: 0 4px 14px rgba(0, 0, 0, .35); }

/* Faixa de placares: próximo jogo sem data marcada */
.tb-placar--proximo.tb-placar--sem-data b { font-weight: 600; }

/* Placares e próximo jogo na barra azul-escura do topo */
.tb-topo .tb-placares { flex: 1; min-width: 0; max-width: none; margin: 0; padding: 0; gap: 8px; scrollbar-width: none; }
.tb-topo .tb-placares::-webkit-scrollbar { display: none; }
.tb-topo .tb-placar { padding: 5px 12px; border-radius: 999px; font-size: 12px; gap: 8px; background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); white-space: nowrap; }
.tb-topo .tb-placar span { color: #8FA3C8; }
.tb-topo .tb-placar b { color: #fff; }
.tb-topo .tb-placar--vivo { background: rgba(218,37,29,.22); border-color: rgba(218,37,29,.55); }
.tb-topo .tb-placar--vivo span:first-child { color: #FF8A84; }
.tb-topo .tb-placar--proximo { background: linear-gradient(135deg, #0063AC, #0A3F8C); border-color: rgba(255,255,255,.18); }
.tb-topo .tb-placar--proximo span { color: #D5DFF0; }
.tb-topo .tb-placar--proximo span:first-child { color: #FFC300; }
@media (max-width: 960px) {
	.tb-topo__dentro { flex-wrap: wrap; row-gap: 8px; }
	.tb-topo .tb-placares { order: 3; flex-basis: 100%; }
}

/* Tabela completa + jogos da rodada lado a lado (página da Série A) */
.tb-tabela-e-rodadas { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.tb-tabela-e-rodadas > * { margin-top: 22px; }
.tb-rodadas { touch-action: pan-y; background: var(--tb-sup); border: 1px solid var(--tb-borda); border-radius: 20px; overflow: hidden; font-family: Inter, sans-serif; }
.tb-rodadas__topo { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--tb-borda); }
.tb-pagina-futebol .wp-block-post-content .tb-rodadas__titulo::before { display: none; }
.tb-pagina-futebol .wp-block-post-content .tb-rodadas__titulo, .tb-rodadas__titulo { margin: 0; font-family: "Barlow Condensed", sans-serif; font-size: 24px; text-transform: uppercase; }
.tb-rodadas__seta { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--tb-borda); background: transparent; color: var(--tb-texto, inherit); display: grid; place-items: center; cursor: pointer; padding: 0; }
.tb-rodadas__seta:hover:not(:disabled) { background: #0063AC; border-color: #0063AC; color: #fff; }
.tb-rodadas__seta:disabled { opacity: .3; cursor: default; }
.tb-rodadas__seta svg { width: 18px; height: 18px; transform: rotate(90deg); }
.tb-rodadas__seta--proxima svg { transform: rotate(-90deg); }
.tb-rodadas__lista { list-style: none; margin: 0; padding: 0; }
.tb-rodadas__jogo { padding: 12px 14px; border-bottom: 1px solid var(--tb-borda); }
.tb-rodadas__jogo:last-child { border-bottom: 0; }
.tb-rodadas__jogo.is-bahia { background: color-mix(in srgb, #0063AC 10%, transparent); }
.tb-rodadas__info { margin: 0 0 6px; text-align: center; font-size: 12px; color: var(--tb-mudo); }
.tb-rodadas__info b { color: #DA251D; text-transform: uppercase; font-size: 11px; }
.tb-rodadas__confronto { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; }
.tb-rodadas__time { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 15px; }
.tb-rodadas__time--casa { justify-content: flex-end; text-align: right; }
.tb-rodadas__nome { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-rodadas__jogo.is-bahia .tb-rodadas__nome { font-weight: 700; }
.tb-rodadas__escudo { width: 28px; height: 28px; object-fit: contain; flex: none; }
.tb-rodadas__escudo--vazio { display: grid; place-items: center; border-radius: 50%; background: var(--tb-borda); font-size: 12px; font-weight: 700; }
.tb-rodadas__placar { display: flex; align-items: center; gap: 6px; font-family: "Barlow Condensed", sans-serif; font-size: 26px; min-width: 64px; justify-content: center; }
.tb-rodadas__placar i { font-style: normal; font-size: 16px; color: var(--tb-mudo); }
.tb-rodadas__jogo.is-vivo .tb-rodadas__placar b { color: #DA251D; }
@media (max-width: 1100px) { .tb-tabela-e-rodadas { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) {
	.tb-rodadas__jogo { padding: 10px 10px; }
	.tb-rodadas__confronto { gap: 6px; }
	.tb-rodadas__time { font-size: 13px; gap: 6px; }
	.tb-rodadas__escudo { width: 22px; height: 22px; }
	.tb-rodadas__placar { font-size: 22px; min-width: 52px; gap: 4px; }
}

/* Classificação: colunas extras só com "Tabela completa" aberta (computador) */
.tb-classificacao__topo { flex-wrap: wrap; gap: 6px 14px; }
.tb-classificacao__expandir { margin-left: auto; display: none; align-items: center; gap: 6px; border: 1px solid var(--tb-borda); background: transparent; color: inherit; border-radius: 999px; padding: 6px 12px; font: 600 13px Inter, sans-serif; cursor: pointer; }
.tb-classificacao__expandir:hover { background: #0063AC; border-color: #0063AC; color: #fff; }
.tb-classificacao__expandir svg { width: 14px; height: 14px; transform: rotate(-90deg); transition: transform .2s; }
.tb-classificacao__expandir[aria-expanded="true"] svg { transform: rotate(90deg); }
.tb-classificacao .tb-col-extra { display: none; }
.tb-forma { display: inline-flex; gap: 4px; vertical-align: middle; }
.tb-forma i { width: 9px; height: 9px; border-radius: 50%; display: block; }
.tb-forma__v { background: #2E9E4F; }
.tb-forma__e { background: #A7B1C2; }
.tb-forma__d { background: #DA251D; }
@media (min-width: 961px) {
	.tb-classificacao__expandir { display: inline-flex; }
	.tb-classificacao.is-expandida .tb-col-extra { display: table-cell; }
	.tb-tabela-e-rodadas:has(.tb-classificacao.is-expandida) { grid-template-columns: minmax(0, 1fr); }
	.tb-classificacao.is-expandida td, .tb-classificacao.is-expandida thead th { text-align: center; }
	.tb-classificacao.is-expandida tbody th, .tb-classificacao.is-expandida thead th:nth-child(2) { text-align: left; }
}

/* Rolagem suave para os links internos (ex.: Receber notícias) */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
#tb-receber { scroll-margin-top: 16px; }

/* Abrir/fechar a tabela completa: colunas e jogos da rodada entram suavemente */
@keyframes tb-aparecer { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes tb-surgir { from { opacity: 0; } to { opacity: 1; } }
.tb-classificacao.is-animando .tb-col-extra { animation: tb-surgir .45s ease both; }
.tb-rodadas.is-animando { animation: tb-aparecer .45s ease both; }
@media (prefers-reduced-motion: reduce) { .tb-classificacao.is-animando .tb-col-extra, .tb-rodadas.is-animando { animation: none; } }
