/* ClipMundi TV · tema editorial (vermelho, marfim e preto). Carregar DEPOIS de clipmundi.css e tv.css.
 * Só cores: tamanhos, fontes e espaços ficam nos tokens de tv.css (uma só família, Inter; o logotipo mantém o desenho).
 * As cores-base repetem as de editorial.css; mudou lá, mude aqui. --c-* (cadernos) e --cor não são alterados.
 * O mapa claro vem de mapa.js, que reconhece <html data-cm-theme="editorial">. */
:root[data-cm-theme="editorial"] {
  --bg: #F5F1E9; --painel: #FFFCF7; --painel-2: #EBE5DB; --borda: #C5BDB1;
  --texto: #191917; --texto-2: #4C4943; --texto-3: #625D55;
  --destaque: #B9271C; --perigo: #A32020; --ok: #18613D; --aviso: #704800;
  --marca-vermelho: #E63224; --marca-preto: #191917;
}
html[data-cm-theme="editorial"] .tv-body { background: #E2DDD2; }

/* topo e rodapé: filete vermelho da marca */
html[data-cm-theme="editorial"] .tv-topo { border-bottom: 4px solid var(--marca-vermelho); }
html[data-cm-theme="editorial"] .tv-rodape { border-top: 4px solid var(--marca-vermelho); }
html[data-cm-theme="editorial"] .tv-topo .marca-logo { filter: none; }
html[data-cm-theme="editorial"] .tv-topo .marca-nome { font-weight: 800; letter-spacing: -.055em; color: var(--texto); }
html[data-cm-theme="editorial"] .tv-sigla { color: #FFFFFF; background: var(--marca-vermelho); border-color: var(--marca-vermelho); border-radius: 3px; }
html[data-cm-theme="editorial"] .badge { border-radius: 3px; }
html[data-cm-theme="editorial"] .badge.retro { background: #FFF0C7; color: #704800; border: 1px solid #A5792C; }

/* fila: item atual em rosa-claro, rótulo em vermelho escuro (texto escuro nunca sobre vermelho) */
html[data-cm-theme="editorial"] .tv-fila .fi.ativo { background: #FBE9E2; }
html[data-cm-theme="editorial"] .tv-fila .fi.ativo .rot { color: #8B1C15; }

/* créditos do mapa */
html[data-cm-theme="editorial"] .tv :is(.maplibregl-ctrl-attrib, .leaflet-control-attribution) { background: rgba(255,252,247,.92) !important; color: var(--texto-2) !important; }
html[data-cm-theme="editorial"] .tv :is(.maplibregl-ctrl-attrib a, .leaflet-control-attribution a) { color: #8B1C15 !important; }
html[data-cm-theme="editorial"] .tv .maplibregl-ctrl-attrib-button { filter: none; }
