/* dia5.css — a marca, o botão do tema, a faixa do topo e o bloco do dia 5 (módulo dia5, 04/10/2026).
 * Só variáveis do estilo.css e do tema.css; nenhuma cor fixa fora das variáveis próprias (--d5-*). */
:root { --d5-varre: #9ec2ff; --d5-vem: #1a2540; --d5-vem-linha: #2a3a5c; }
:root[data-theme="light"] { --d5-varre: #2160d8; --d5-vem: #e6ebf3; --d5-vem-linha: #ffffff; }

/* ---------- a marca ---------- */
.d5-logo { display: inline-flex; align-items: center; gap: 6px; line-height: 1; }
.d5-simb { display: inline-flex; width: 20px; height: 20px; flex: none; }
.d5-simb img { width: 100%; height: 100%; display: block; }
.d5-so-claro { display: none !important; }
[data-theme="light"] .d5-so-claro { display: block !important; }
[data-theme="light"] .d5-so-escuro { display: none !important; }
.d5-swm { font: 800 17px/1 var(--fonte); letter-spacing: .04em; color: var(--marca-txt); white-space: nowrap; }
.d5-swm em { font-style: normal; color: var(--marca-w); }
.d5-logo-link { flex: none; display: inline-flex; text-decoration: none; padding: 4px 2px; border-radius: 6px; }
.d5-logo-link:focus-visible { outline: 2px solid var(--azul); outline-offset: 2px; }
.d5-logo--grande .d5-simb { width: 30px; height: 30px; }
.d5-logo--grande .d5-swm { font-size: 26px; }
.d5-logo--mini .d5-simb { width: 14px; height: 14px; }
.d5-logo--mini .d5-swm { font-size: 12px; }

/* ---------- o botão do tema (sol/lua) ---------- */
.d5-tema {
  flex: none; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--btn-bg); border: 1px solid var(--btn-borda); color: var(--txt);
  transition: background .2s, border-color .2s;
}
.d5-tema:hover, .d5-tema:focus-visible { border-color: var(--azul); }
.d5-tema svg { width: 18px; height: 18px; overflow: visible; }
.d5-sol circle { fill: currentColor; }
.d5-raios path { stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; fill: none; }
.d5-lua { fill: currentColor; }
.d5-sol, .d5-lua { transform-origin: 12px 12px; transition: transform .45s cubic-bezier(.3, 1.4, .5, 1), opacity .3s; }
/* no escuro aparece a lua; no claro, o sol */
.d5-sol { opacity: 0; transform: rotate(-90deg) scale(.4); }
[data-theme="light"] .d5-sol { opacity: 1; transform: none; }
[data-theme="light"] .d5-lua { opacity: 0; transform: rotate(90deg) scale(.4); }
[data-theme="light"] .d5-raios { animation: d5Gira 14s linear infinite; transform-origin: 12px 12px; }
.d5-tema--solto { position: fixed; top: 12px; right: 12px; z-index: 70; }
@keyframes d5Gira { to { transform: rotate(360deg); } }

/* ---------- a faixa do topo (discreta) ---------- */
.d5-faixa {
  display: flex; align-items: center; gap: 10px; min-width: 0;
  padding: 7px 8px 7px 10px; border-radius: 999px; font-size: 12.5px; color: var(--txt2);
  background: var(--card); border: 1px solid var(--borda); position: relative; overflow: hidden;
}
.d5-faixa::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 30%, var(--halo) 50%, transparent 70%);
  background-size: 250% 100%; animation: d5Brilho 5s ease-in-out infinite;
}
.d5-faixa__quando { flex: none; font-weight: 800; color: var(--marca-w); text-transform: uppercase; letter-spacing: .05em; font-size: 11px; }
.d5-faixa__giro { flex: 1; min-width: 0; overflow: hidden; }
.d5-faixa__txt { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: transform .38s ease, opacity .38s ease; }
.d5-faixa__txt.sai { transform: translateY(-110%); opacity: 0; }
.d5-faixa__txt.entra { transform: translateY(110%); opacity: 0; transition: none; }
.d5-faixa__ir {
  flex: none; text-decoration: none; font-weight: 700; color: var(--txt); padding: 4px 10px; border-radius: 999px;
  background: var(--btn-bg); border: 1px solid var(--btn-borda); position: relative; z-index: 1;
}
.d5-faixa__ir:hover, .d5-faixa__ir:focus-visible { border-color: var(--azul); }
@keyframes d5Brilho { 0%, 100% { background-position: 120% 0; } 50% { background-position: -20% 0; } }

/* ---------- o bloco do dia 5 ---------- */
.d5 {
  position: relative; overflow: hidden; scroll-margin-top: calc(var(--marca-h) + 8px);
  background: var(--card); border: 1px solid var(--borda); border-radius: calc(var(--raio) + 4px);
  padding: 20px 16px 18px; display: grid; gap: 16px;
}
.d5 > * { min-width: 0; position: relative; }
.d5__brilho {
  position: absolute !important; inset: -40% -20% auto -20%; height: 120%; pointer-events: none;
  background:
    radial-gradient(40% 50% at 15% 30%, color-mix(in srgb, var(--marca-w) 18%, transparent), transparent 70%),
    radial-gradient(45% 55% at 85% 20%, var(--halo), transparent 70%);
  animation: d5Respira 9s ease-in-out infinite alternate;
}
@keyframes d5Respira { from { transform: translate3d(-3%, 0, 0) scale(1); } to { transform: translate3d(3%, 4%, 0) scale(1.08); } }
.d5__cab { display: grid; gap: 8px; justify-items: start; }
.d5__quando {
  display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
  color: var(--marca-w); border: 1px solid color-mix(in srgb, var(--marca-w) 45%, transparent); border-radius: 999px; padding: 4px 10px;
}
.d5-ponto { width: 7px; height: 7px; border-radius: 50%; background: var(--marca-w); position: relative; }
.d5-ponto::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--marca-w); opacity: 0; animation: pulso 2s ease-out infinite; }
.d5__titulo { font-size: 30px; font-weight: 800; letter-spacing: -.025em; line-height: 1.08; }
.d5__titulo span { color: var(--marca-w); }
.d5__lead { margin: 0; font-size: 15.5px; color: var(--txt2); max-width: 60ch; }
.d5__sub { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--txt3); margin-top: 4px; }

/* a amostra do mapa */
.d5-mapa { display: grid; gap: 12px; border: 1px solid var(--borda); border-radius: var(--raio); padding: 0 0 12px; background: var(--bg2); overflow: hidden; }
.d5-fita { overflow: hidden; background: var(--marca-w); color: #fff; font-weight: 800; font-size: 13px; letter-spacing: .01em; }
[data-theme="dark"] .d5-fita { color: #1a0f07; }
.d5-fita__trilho { display: flex; width: max-content; animation: d5Fita 22s linear infinite; }
.d5-fita__trilho span { padding: 8px 28px 8px 0; white-space: nowrap; }
.d5-fita__trilho span::before { content: "●"; margin: 0 12px 0 0; opacity: .7; font-size: 9px; vertical-align: 2px; }
@keyframes d5Fita { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.d5-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; }
.d5-mapa__par { display: grid; gap: 12px; padding: 0 12px; }
.d5-mapa__lado { margin: 0; position: relative; min-width: 0; background: var(--card); border: 1px solid var(--borda); border-radius: 12px; padding: 12px; }
.d5-selo {
  display: inline-block; font-size: 15px; font-weight: 800; letter-spacing: .02em; padding: 5px 12px; border-radius: 8px;
  background: var(--txt); color: var(--card); margin-bottom: 8px;
}
.d5-selo--2026 { background: var(--marca-w); color: #fff; }
[data-theme="dark"] .d5-selo--2026 { color: #1a0f07; }
.d5-mapa__quem { margin: 0 0 8px; font-size: 13px; color: var(--txt2); }
.d5-mapa__quem b { color: var(--txt); }
.d5-mapa__total { display: inline-block; margin-top: 2px; }
.d5-mapa__total b { font-size: 16px; }
.d5-mapa__alvo { min-height: 120px; }
/* o mapa de 2022 com as cores da página */
#mod-dia5 .swm-mapa {
  --m-surface: var(--card); --m-text: var(--txt); --m-text2: var(--txt2); --m-borda: var(--card);
  --m-linha: var(--borda); --m-semdado: var(--bg2); --m-foco: var(--txt); font-family: var(--fonte);
}
#mod-dia5 .swm-mapa__titulo { font-size: 14px; font-weight: 700; }
/* o lado de 2026: silhueta, sem dado, esmaecida, com o brilho que varre */
.d5-mapa__lado--2026 { display: flex; flex-direction: column; }
.d5-mapa__vem { position: relative; display: flex; align-items: center; justify-content: center; min-height: 160px; margin-top: 30px; }
.d5-esq { display: grid; gap: 8px; margin-top: 14px; }
.d5-esq i { display: block; height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--d5-vem) 0%, var(--borda) 50%, var(--d5-vem) 100%); background-size: 200% 100%; animation: d5Esq 1.8s ease-in-out infinite; }
.d5-esq i:nth-child(2) { width: 82%; animation-delay: .2s; } .d5-esq i:nth-child(3) { width: 64%; animation-delay: .4s; }
@keyframes d5Esq { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.d5-vem { width: 100%; height: auto; display: block; filter: blur(.6px); }
.d5-vem__ras polygon { fill: var(--d5-vem); stroke: var(--d5-vem-linha); stroke-width: 1.4; animation: d5Ra 4.2s ease-in-out infinite; animation-delay: calc(var(--k) * .35s); }
@keyframes d5Ra { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
.d5-vem__varre { animation: d5Varre 3.6s ease-in-out infinite; }
@keyframes d5Varre { from { transform: translateX(0); } to { transform: translateX(1400px); } }
.d5-vem__ano {
  position: absolute; font-size: 64px; font-weight: 800; letter-spacing: -.04em; color: var(--txt);
  opacity: .14; pointer-events: none; user-select: none;
}
.d5-vem__vazio { width: 100%; aspect-ratio: 1000 / 590; border-radius: 10px; background: var(--d5-vem); }
.d5-mapa__lado--2026 figcaption { font-size: 12.5px; color: var(--txt3); margin-top: 6px; }

/* os estudos */
.d5-estudos { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.d5-estudo {
  display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; padding: 12px;
  border-radius: 12px; background: var(--card2); border: 1px solid var(--borda);
  opacity: 0; transform: translateY(10px);
  transition: opacity .5s ease, transform .5s ease, border-color .4s ease, box-shadow .4s ease;
  transition-delay: calc(var(--i) * 90ms);
}
.d5--visto .d5-estudo { opacity: 1; transform: none; }
.d5-estudo--vez { border-color: var(--marca-w); box-shadow: 0 0 0 3px color-mix(in srgb, var(--marca-w) 18%, transparent); transition-delay: 0s; }
.d5-estudo b { display: block; font-size: 15px; font-weight: 800; }
.d5-estudo span { display: block; font-size: 13.5px; color: var(--txt2); margin-top: 2px; }
.d5-estudo__ic { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--marca-w) 14%, var(--card2)); color: var(--marca-w); }
.d5-estudo__ic svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.d5-ic-ponteiro { transform-origin: 16px 17px; animation: d5Ponteiro 4s ease-in-out infinite; }
@keyframes d5Ponteiro { 0% { transform: rotate(-40deg); } 50% { transform: rotate(80deg); } 100% { transform: rotate(-40deg); } }
.d5-ic-onda { transform-origin: 16px 29px; animation: d5Onda 2.2s ease-out infinite; }
@keyframes d5Onda { from { transform: scale(.4); opacity: 1; } to { transform: scale(3.4); opacity: 0; } }
.d5-ic-cursor { fill: currentColor; animation: d5Cursor 3s ease-in-out infinite; }
@keyframes d5Cursor { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(11px); } }
.d5-ic-mais { animation: d5Mais 3s ease-in-out infinite; transform-origin: 22px 10px; }
@keyframes d5Mais { 0%, 100% { opacity: .35; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.1); } }
.d5-ic-elo1 { animation: d5Elo1 3s ease-in-out infinite; }
.d5-ic-elo2 { animation: d5Elo2 3s ease-in-out infinite; }
@keyframes d5Elo1 { 0%, 100% { transform: translateX(-2px); } 50% { transform: translateX(1px); } }
@keyframes d5Elo2 { 0%, 100% { transform: translateX(2px); } 50% { transform: translateX(-1px); } }
.d5-ic-b1, .d5-ic-b2, .d5-ic-b3, .d5-ic-b4 { transform-box: fill-box; transform-origin: bottom; animation: d5Barra 3.2s ease-in-out infinite; }
.d5-ic-b2 { animation-delay: .4s; } .d5-ic-b3 { animation-delay: .8s; } .d5-ic-b4 { animation-delay: 1.2s; }
@keyframes d5Barra { 0%, 100% { transform: scaleY(.55); } 50% { transform: scaleY(1); } }

/* os anúncios da SWM (em 3 pontos da página; um por vez, com rotação suave) */
.d5-slot { position: relative; }
.d5-slot--pagina { max-width: 1240px; width: 100%; margin: 0 auto; }
.d5-slot--pagina .d5-roda { max-width: 980px; margin: 0 auto; width: 100%; }
.d5-roda { display: grid; }
.d5-ad {
  grid-area: 1 / 1; align-self: center; display: block; position: relative; text-decoration: none; color: var(--txt);
  border-radius: 12px; overflow: hidden; border: 1px solid var(--borda); background: var(--card);
  opacity: 0; visibility: hidden; transform: scale(.985); transition: opacity .7s ease, transform .7s ease, visibility 0s linear .7s;
}
.d5-ad--vez { opacity: 1; visibility: visible; transform: none; transition: opacity .7s ease, transform .7s ease, visibility 0s; }
.d5-ad:focus-visible { outline: 2px solid var(--azul); outline-offset: 2px; }
.d5-ad picture, .d5-ad img { display: block; width: 100%; height: auto; }
.d5-ad__caixa { display: block; position: relative; aspect-ratio: 16 / 9; background: var(--bg2); }
.d5-ad__caixa--pe { aspect-ratio: 9 / 16; }
.d5-ad__caixa iframe, .d5-ad__caixa video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; display: block; pointer-events: none; }
.d5-ad--pe { justify-self: center; width: 100%; max-width: 340px; }
.d5-ad__rodape { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 9px 12px; font-size: 13px; border-top: 1px solid var(--borda); background: var(--card); }
.d5-ad__tit { flex: 1 1 110px; min-width: 0; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.d5-ad__ir { flex: none; margin-left: auto; font-weight: 800; color: var(--marca-w); }
.d5-ad:hover .d5-ad__ir span { display: inline-block; transform: translateX(3px); transition: transform .2s; }
.d5-roda__pontos { display: flex; justify-content: center; gap: 6px; margin-top: 8px; }
.d5-roda__pontos i { width: 6px; height: 6px; border-radius: 50%; background: var(--borda); transition: background .3s, width .3s; }
.d5-roda__pontos i.ativo { background: var(--marca-w); width: 16px; border-radius: 99px; }
/* no meio do resultado, no celular: a peça em pé fica menor, para não empurrar a leitura */
@media (max-width: 719px) {
  .d5-slot--pagina .d5-ad--banner, .d5-slot--pagina .d5-ad--pe { justify-self: center; width: 100%; max-width: 250px; }
}

/* o chamado */
.d5-chama { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding-top: 4px; }
.d5-chama__volte {
  margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -.02em;
  background: linear-gradient(90deg, var(--txt) 0%, var(--marca-w) 50%, var(--txt) 100%); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: d5Texto 4s linear infinite;
}
@keyframes d5Texto { from { background-position: 200% 0; } to { background-position: 0 0; } }
.d5-chama__siga { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--txt2); }
.d5-chama__redes { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.d5-rede {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 38px; height: 38px; padding: 0 12px;
  border-radius: 999px; text-decoration: none; color: var(--txt); font-weight: 700; font-size: 13px;
  background: var(--btn-bg); border: 1px solid var(--btn-borda);
}
.d5-rede--ic { width: 38px; padding: 0; }
.d5-rede svg { width: 18px; height: 18px; fill: currentColor; }
.d5-rede:hover, .d5-rede:focus-visible { border-color: var(--marca-w); }

/* ---------- telas maiores ---------- */
@media (min-width: 720px) {
  .d5 { padding: 28px 28px 24px; gap: 20px; }
  .d5__titulo { font-size: 42px; }
  .d5__lead { font-size: 17px; }
  .d5-mapa__par { grid-template-columns: 1fr 1fr; align-items: start; padding: 0 16px; }
  .d5-estudos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .d5-estudo:last-child { grid-column: 1 / -1; }
  .d5-chama { flex-direction: row; align-items: center; justify-content: space-between; }
  .d5-vem__ano { font-size: 96px; }
}
@media (min-width: 1100px) {
  .d5-estudos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .d5-estudo:last-child { grid-column: auto; }
  .d5-estudo:nth-child(4) { grid-column: 1 / span 1; }
}
@media (max-width: 560px) {
  .d5-faixa { border-radius: 14px; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; column-gap: 8px; row-gap: 1px; padding: 8px 8px 8px 12px; }
  .d5-faixa__quando { grid-column: 1; grid-row: 1; }
  .d5-faixa__giro { grid-column: 1; grid-row: 2; }
  .d5-faixa__ir { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
}
@media (max-width: 420px) {
  /* a faixa da página é estreita: a marca fica só com a sigla (o símbolo sai) e faz as vezes do nome por extenso */
  .d5-logo-link + .marca__txt .marca__nome, .d5-logo-link + .marca__txt .marca__nome + .sep { display: none; }
  .d5-logo-link + .marca__txt .aovivo + .sep { display: none; }
  .marca .d5-simb { display: none; }
  .marca .d5-swm { font-size: 15px; }
  .d5-tema { width: 32px; height: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .d5-estudo { opacity: 1; transform: none; }
  .d5-fita__trilho { animation: none; }
}

/* site6: o botão que leva à aba dos estudos */
.d5-ir { margin: 18px 0 6px; text-align: center; }
.d5-ir__bt { display: inline-block; padding: 12px 20px; border-radius: 999px; font-weight: 800; text-decoration: none;
  color: var(--txt); background: var(--btn-bg); border: 1px solid var(--btn-borda); }
.d5-ir__bt:hover, .d5-ir__bt:focus-visible { filter: brightness(1.1); }
