/* Painel Meteorológico. Mobile-first a partir de 360 x 640. */

@font-face {
  font-family: 'Archivo';
  src: url('vendor/fontes/archivo-latin-standard-normal.woff2') format('woff2');
  font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  src: url('vendor/fontes/archivo-latin-ext-standard-normal.woff2') format('woff2');
  font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --mar: #17303B; --nevoa: #DCE5E6;
  --fundo: #17303B; --sup: #1F3D4A; --sup2: #264856; --linha: #2E5161;
  --texto: #DCE5E6; --fraco: #A9BEC3;
  --chuva: #3DB5AE; --chuva-txt: #5CC9C2; --rajada: #E3B23C; --rajada-txt: #EBC15A;
  --fria: #6F9BE0; --quente: #E0676A; --alerta-fundo: #5A1E22;
  --noite: rgba(0, 0, 0, .28); --nuvem: 220, 229, 230;
  --m-ecmwf: #6F9BE0; --m-aifs: #B7A3E8; --m-gfs: #E0676A; --m-icon: #E3B23C; --m-ukmo: #8FD18A;
  --foco: #F2D16B;
  --nav-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-tema="escuro"]) {
    --fundo: #DCE5E6; --sup: #EEF3F3; --sup2: #E3EBEC; --linha: #B9C8CB;
    --texto: #17303B; --fraco: #40606B;
    --chuva: #1E8F8A; --chuva-txt: #136B67; --rajada: #D9A21B; --rajada-txt: #7A5A00;
    --fria: #2457A6; --quente: #C8373A; --alerta-fundo: #F6D9DA;
    --noite: rgba(23, 48, 59, .10); --nuvem: 64, 96, 107;
    --m-ecmwf: #2457A6; --m-aifs: #6A4FB3; --m-gfs: #C8373A; --m-icon: #9A7100; --m-ukmo: #2E7D32;
    --foco: #2457A6;
    color-scheme: light;
  }
}
:root[data-tema="claro"] {
  --fundo: #DCE5E6; --sup: #EEF3F3; --sup2: #E3EBEC; --linha: #B9C8CB;
  --texto: #17303B; --fraco: #40606B;
  --chuva: #1E8F8A; --chuva-txt: #136B67; --rajada: #D9A21B; --rajada-txt: #7A5A00;
  --fria: #2457A6; --quente: #C8373A; --alerta-fundo: #F6D9DA;
  --noite: rgba(23, 48, 59, .10); --nuvem: 64, 96, 107;
  --m-ecmwf: #2457A6; --m-aifs: #6A4FB3; --m-gfs: #C8373A; --m-icon: #9A7100; --m-ukmo: #2E7D32;
  --foco: #2457A6;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--fundo); color: var(--texto);
  font-family: 'Archivo', system-ui, sans-serif; font-size: 16px; line-height: 1.4;
  font-variant-numeric: tabular-nums; overflow-x: hidden;
  padding-bottom: var(--safe-b);
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--foco); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pular { position: absolute; left: -999px; }
.pular:focus { left: 8px; top: 8px; z-index: 50; background: var(--sup); padding: 8px; }
[hidden] { display: none !important; }

/* ---------- topo ---------- */
.topo {
  display: flex; align-items: stretch; gap: 8px;
  padding: calc(4px + var(--safe-t)) 16px 2px; min-height: 50px;
}
.local {
  flex: 1; min-width: 0; text-align: left; background: none; border: 0; padding: 4px 0; min-height: 44px;
  display: flex; flex-direction: column; justify-content: center;
}
.local-nome { font-weight: 660; font-stretch: 106%; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.local-nome::after { content: ''; display: inline-block; width: 8px; height: 8px; margin-left: 8px; border-right: 2px solid var(--fraco); border-bottom: 2px solid var(--fraco); transform: translateY(-3px) rotate(45deg); }
.local-hora { color: var(--fraco); font-size: 11px; line-height: 1.2; }
.local-hora.atrasado { color: var(--quente); font-weight: 600; }
.atualizar {
  min-height: 44px; min-width: 44px; padding: 0 14px; border-radius: 22px;
  border: 1.5px solid var(--linha); background: var(--sup); font-weight: 600; font-stretch: 90%;
}
.atualizar[aria-busy="true"] { opacity: .6; }
.atualizar { padding: 0; width: 44px; display: inline-flex; align-items: center; justify-content: center; align-self: center; }
.atualizar svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.atualizar[aria-busy="true"] svg { animation: girar 1s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }
.agora { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; line-height: 1; flex: none; }
.agora .rot-agora { font-size: 11px; font-weight: 600; color: var(--fraco); margin-bottom: 2px; }
.agora b { font-size: 26px; font-weight: 650; letter-spacing: -.02em; }
.agora small { font-size: 12px; color: var(--fraco); margin-top: 3px; white-space: nowrap; }
.cabeca { position: sticky; top: 0; z-index: 20; background: var(--fundo); }

.puxar { position: fixed; left: 50%; top: 64px; z-index: 30; transform: translate(-50%, 0); opacity: 0; pointer-events: none;
  padding: 8px 14px; border-radius: 18px; background: var(--sup2, var(--sup)); color: var(--texto); font-size: 14px; transition: opacity .12s; will-change: transform; }
.aba.entra { animation: aba-entra .16s ease-out; }
.aba.entra-dir { animation: aba-dir .2s ease-out; }
.aba.entra-esq { animation: aba-esq .2s ease-out; }
@keyframes aba-entra { from { opacity: .4; } to { opacity: 1; } }
@keyframes aba-dir { from { opacity: .5; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes aba-esq { from { opacity: .5; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
html { overscroll-behavior-y: none; }
body { overflow-x: hidden; }
button, a, [role="button"] { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.faixa-aviso:empty { display: none; }
.faixa-aviso { margin: 0 16px 6px; padding: 8px 12px; border-left: 4px solid var(--rajada); background: var(--sup); font-size: 14px; }
.faixa-aviso.erro { border-left-color: var(--quente); }

/* ---------- primeira tela ---------- */
.primeira { padding: 0 16px; }
.alerta {
  display: flex; gap: 10px; align-items: center; width: 100%; min-height: 44px; margin: 2px 0 2px; padding: 4px 10px;
  border: 0; border-left: 5px solid var(--quente); background: var(--alerta-fundo); text-align: left; font-weight: 640; font-size: 15px; font-stretch: 88%; line-height: 1.2;
}
.alerta.indisponivel { border-left-color: var(--fraco); background: var(--sup); font-weight: 500; }
.frase {
  font-size: 26px; line-height: 1.1; font-weight: 720; font-stretch: 112%; margin: 4px 0 6px;
  min-height: 2.24em; letter-spacing: -.01em; text-wrap: balance;
}
.linha-dado {
  display: grid; grid-template-columns: 76px 1fr; gap: 0 10px; align-items: baseline;
  padding: 5px 0; border-top: 1px solid var(--linha);
}
.linha-dado .rot { font-size: 14px; font-weight: 600; font-stretch: 85%; color: var(--fraco); }
.linha-dado .val { font-size: 22px; font-weight: 650; }
.linha-dado .sub { grid-column: 2; font-size: 15px; color: var(--fraco); }
.linha-dado.chuva .rot { color: var(--chuva-txt); }
.linha-dado.chuva .val strong { color: var(--chuva-txt); font-weight: 700; }
.linha-dado.rajada .rot, .linha-dado.rajada .val strong { color: var(--rajada-txt); }
.temps { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 4px 0 2px; border-top: 1px solid var(--linha); }
.temps .tmin { color: var(--fria); font-weight: 680; font-size: 22px; }
.temps .tmax { color: var(--quente); font-weight: 680; font-size: 22px; }
.confianca {
  min-height: 44px; padding: 0 12px; border-radius: 22px; border: 1.5px solid var(--linha); background: none;
  font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; gap: 8px;
}
.confianca .nivel { display: inline-flex; gap: 2px; }
.confianca .nivel i { width: 6px; height: 14px; background: var(--linha); display: block; }
.confianca[data-n="alta"] .nivel i, .confianca[data-n="média"] .nivel i:nth-child(-n+2), .confianca[data-n="baixa"] .nivel i:first-child { background: var(--texto); }
.ausente { color: var(--fraco); font-style: italic; font-weight: 500 !important; font-size: 16px !important; }
.marca { display: inline-block; font-size: 12px; font-weight: 600; font-stretch: 85%; padding: 1px 6px; border-radius: 4px; border: 1px solid currentColor; vertical-align: 2px; margin-left: 4px; }
.marca.medido { color: var(--texto); background: var(--sup2); }
.marca.previsao { color: var(--fraco); }
.marca.radar { color: var(--chuva-txt); }
.marca.oficial { color: var(--quente); }


/* ---------- resumo do dia (primeira coisa da tela) ---------- */
.resumo { padding: 6px 0 10px; }
.resumo-topo { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 0 0 4px; }
.resumo-quando { margin: 0; font-size: 13px; color: var(--fraco); min-width: 0; }
.resumo-topo .confianca .nivel i { width: 5px; height: 11px; }
.resumo-topo .confianca { min-height: 28px; font-size: 11px; padding: 0 9px; gap: 5px; white-space: nowrap; flex: none; border-width: 1px; }
.resumo-ceu { display: flex; align-items: center; gap: 10px; }
.icone-ceu { width: 36px; height: 36px; flex: none; }
.icone-ceu .tr { fill: none; stroke: var(--texto); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.icone-ceu .nuvem { fill: var(--fundo); }
.icone-ceu .gota { stroke: var(--chuva); stroke-width: 2.6; stroke-linecap: round; }
.resumo-ceu .cond { font-size: 19px; font-weight: 680; font-stretch: 104%; line-height: 1.15; }
.resumo-temp { display: grid; grid-template-columns: 1fr 1fr 1fr; margin: 10px 0 8px; }
.bloco-t { display: flex; flex-direction: column; }
.bloco-t small { font-size: 12px; color: var(--fraco); font-weight: 560; }
.bloco-t b { font-size: 24px; line-height: 1.05; font-weight: 640; letter-spacing: -.02em; }
.bloco-t.chuva b { color: var(--chuva-txt); }
.resumo-chuva { display: grid; grid-template-columns: 1fr; gap: 2px; }
.resumo-chuva strong { font-size: 16px; font-weight: 680; }
.resumo-chuva .det { font-size: 14px; color: var(--fraco); }
.medidor { display: block; height: 4px; border-radius: 2px; background: var(--sup2); overflow: hidden; margin: 0 0 6px; }
.medidor i { display: block; height: 100%; background: var(--chuva); border-radius: 2px; }
.linha-rajada { display: flex; align-items: center; gap: 8px; padding: 8px 0 4px; border-top: 1px solid var(--linha); }
.linha-rajada .raj { font-size: 14px; }
.linha-rajada .rot { color: var(--fraco); }
.linha-rajada strong { color: var(--rajada-txt); font-weight: 680; font-size: 15px; }
.linha-rajada .raj-det { color: var(--fraco); }
.linha-rajada .raj { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* navegação discreta: sem barra colorida, ponto pequeno no item ativo */
:root[data-visual] .nav { background: var(--fundo); }
:root[data-visual] .nav button { font-size: 13px; font-weight: 500; font-stretch: 95%; letter-spacing: .01em; }
:root[data-visual] .nav button[aria-current="page"] { color: var(--texto); font-weight: 650; }
:root[data-visual] .nav button[aria-current="page"]::before { content: ''; position: absolute; top: auto; bottom: 5px; left: calc(50% - 2px); right: auto; width: 4px; height: 4px; border-radius: 50%; background: var(--ponto); }
:root[data-visual] { --nav-h: 56px; }
:root[data-visual] .atualizar { background: none; font-weight: 560; font-size: 15px; }
:root[data-visual] .alerta { border-left-width: 3px; font-weight: 600; font-size: 14px; border-radius: 0 6px 6px 0; }

/* A: Grafite. Neutro, sem cartão, números em três colunas. */
:root[data-visual="a"] .resumo-temp { border-top: 1px solid var(--linha); border-bottom: 1px solid var(--linha); padding: 8px 0; }
:root[data-visual="a"] .bloco-t + .bloco-t { padding-left: 12px; border-left: 1px solid var(--linha); }
:root[data-visual="a"] .bloco-t.min b { color: var(--fria); }
:root[data-visual="a"] .bloco-t.max b { color: var(--quente); }


/* ========== Visual Grafite (escolhido em 2026-11-03) ========== */
:root[data-visual="a"] { --fundo: #111315; --sup: #1A1D20; --sup2: #23272B; --linha: #2C3136; --texto: #ECEEF0; --fraco: #9BA4AC; --chuva: #4DA8DA; --chuva-txt: #6BB8E3; --rajada: #D9B45A; --rajada-txt: #E2C474; --fria: #7FA8E8; --quente: #EE8A6A; --alerta-fundo: #3A2420; --noite: rgba(0,0,0,.3); --nuvem: 225, 229, 233; --foco: #ECEEF0; --ponto: #ECEEF0; color-scheme: dark; }
@media (prefers-color-scheme: light) { :root[data-visual="a"]:not([data-tema="escuro"]) { --fundo: #F4F5F6; --sup: #FFFFFF; --sup2: #ECEEF0; --linha: #DDE1E4; --texto: #15181B; --fraco: #5D666E; --chuva: #1F7FC0; --chuva-txt: #155F91; --rajada: #B98A1C; --rajada-txt: #7A5A00; --fria: #2B5FB3; --quente: #C4492B; --alerta-fundo: #FBE3DC; --noite: rgba(20,24,28,.06); --nuvem: 70, 78, 86; --foco: #15181B; --ponto: #15181B; color-scheme: light; } }
:root[data-visual="a"][data-tema="claro"] { --fundo: #F4F5F6; --sup: #FFFFFF; --sup2: #ECEEF0; --linha: #DDE1E4; --texto: #15181B; --fraco: #5D666E; --chuva: #1F7FC0; --chuva-txt: #155F91; --rajada: #B98A1C; --rajada-txt: #7A5A00; --fria: #2B5FB3; --quente: #C4492B; --alerta-fundo: #FBE3DC; --noite: rgba(20,24,28,.06); --nuvem: 70, 78, 86; --foco: #15181B; --ponto: #15181B; color-scheme: light; }

/* ---------- Faixa do Céu ---------- */
.ceu { margin: 4px -16px 0; position: relative; }
.ceu canvas { display: block; width: 100%; height: 120px; touch-action: pan-y; }
.ceu-info { min-height: 22px; padding: 2px 16px 0; font-size: 14px; color: var(--fraco); }
.ceu-info b { color: var(--texto); font-weight: 600; }

/* ---------- seções de detalhe ---------- */
.detalhes, #semana-conteudo, #modelos-conteudo, #elnino-conteudo { padding: 0 16px; }
.titulo-aba { font-size: 24px; font-stretch: 112%; font-weight: 720; margin: 8px 16px 8px; }
.secao { padding: 18px 0 8px; border-top: 6px solid var(--sup); margin-top: 14px; }
.secao h2 { font-size: 19px; font-stretch: 105%; font-weight: 700; margin: 0 0 4px; }
.secao .fonte { font-size: 13px; color: var(--fraco); margin: 2px 0 8px; }
.secao p { margin: 6px 0; }
.nota { font-size: 14px; color: var(--fraco); }

/* lista por hora: rolagem horizontal só aqui */
.horas { display: flex; overflow-x: auto; gap: 0; margin: 0 -16px; padding: 0 16px 6px; scroll-snap-type: x proximity; scroll-padding-left: 16px; overscroll-behavior-x: contain; touch-action: pan-x pan-y; }
.hora { flex: 0 0 64px; scroll-snap-align: start; padding: 6px 4px; border-right: 1px solid var(--linha); text-align: center; font-size: 15px; }
.hora .h { font-weight: 650; }
.hora .p { color: var(--chuva-txt); font-weight: 600; }
.hora .mm { color: var(--chuva-txt); }
.hora .g { color: var(--rajada-txt); font-weight: 650; }
.hora .barra { height: 34px; display: flex; align-items: flex-end; justify-content: center; }
.hora .barra i { width: 18px; background: var(--chuva); display: block; min-height: 1px; }
.hora.noite { background: var(--noite); }
.seta { display: inline-block; width: 18px; height: 18px; vertical-align: -4px; }

/* medições agora: grade de blocos */
.medicoes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 10px 0 4px; }
.medicoes.chuvas { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.med { background: var(--sup); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.med-nome { font-size: 12px; color: var(--fraco); }
.med-v { font-size: 22px; font-weight: 650; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chuvas .med-v { font-size: 17px; }
.med.vazio .med-v { color: var(--fraco); font-weight: 400; }
.med-nota { font-size: 11.5px; color: var(--fraco); line-height: 1.3; }
.med-tit { font-size: 14px; font-weight: 650; margin: 14px 0 0; }
.med-det { margin-top: 10px; font-size: 14px; }
.med-det summary { min-height: 44px; display: flex; align-items: center; color: var(--fraco); }
.med-det-t { font-weight: 600; margin: 8px 0 2px; }
.med-det ul { margin: 0; padding-left: 18px; color: var(--fraco); }


/* meteograma */
.paineis { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.chip { min-height: 44px; padding: 0 14px; border-radius: 22px; border: 1.5px solid var(--linha); background: none; font-size: 15px; }
.chip[aria-pressed="true"] { background: var(--texto); color: var(--fundo); border-color: var(--texto); font-weight: 600; }
.leitura { position: sticky; top: 0; z-index: 3; background: var(--fundo); min-height: 44px; font-size: 14px; padding: 4px 0; border-bottom: 1px solid var(--linha); }
.leitura b { font-weight: 650; }
.grafico { margin: 8px 0 14px; }
.grafico h3 { font-size: 16px; margin: 0 0 2px; font-weight: 650; }
.grafico .leg { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--fraco); margin: 2px 0; }
.grafico .leg span::before { content: ''; display: inline-block; width: 14px; height: 3px; background: var(--c, currentColor); vertical-align: 4px; margin-right: 5px; }
.grafico .leg span.tracejado::before { background: repeating-linear-gradient(90deg, var(--c) 0 4px, transparent 4px 7px); }
.grafico .leg span.ponto::before { width: 7px; height: 7px; border-radius: 50%; vertical-align: 1px; }
.grafico .leg span.faixa::before { height: 10px; opacity: .35; vertical-align: 0; }
.rolar { overflow-x: auto; overflow-y: hidden; margin: 0 -16px; padding: 0 16px; touch-action: pan-x pan-y; overscroll-behavior-x: contain; }
.rolar .u-wrap { touch-action: pan-x pan-y; }
.uplot { font-family: 'Archivo', sans-serif; }
.u-axis { color: var(--fraco); }
.explica { font-size: 14px; color: var(--fraco); border-left: 3px solid var(--linha); padding-left: 10px; }

/* tabelas */
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 8px 6px 8px 0; border-bottom: 1px solid var(--linha); vertical-align: top; }
th { font-weight: 600; color: var(--fraco); font-size: 14px; }
td.n, th.n { text-align: right; }
.tabela-rolar { overflow-x: auto; margin: 0 -16px; padding: 0 16px; touch-action: pan-x pan-y; }

/* períodos de amanhã */
.periodos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; }
.periodo { padding: 10px 8px 10px 0; border-bottom: 1px solid var(--linha); }
.periodo:nth-child(odd) { border-right: 1px solid var(--linha); }
.periodo:nth-child(even) { padding-left: 10px; }
.periodo h3 { margin: 0; font-size: 16px; }
.periodo .p { color: var(--chuva-txt); font-weight: 650; }
.periodo .g { color: var(--rajada-txt); font-weight: 650; }

/* semana */
.dias { list-style: none; margin: 0 -16px; padding: 0; }
.dia { border-bottom: 1px solid var(--linha); }
.dia > button {
  width: 100%; min-height: 76px; text-align: left; background: none; border: 0; padding: 10px 16px;
  display: grid; grid-template-columns: 50px 1fr; gap: 2px 10px; align-items: center;
}
.dia .dn { font-weight: 700; font-stretch: 90%; font-size: 16px; line-height: 1.1; grid-row: span 3; align-self: start; padding-top: 2px; }
.dia .dn small { display: block; font-weight: 500; color: var(--fraco); font-size: 14px; }
.dia .resumo { font-weight: 650; font-size: 16px; }
.dia .nums { font-size: 15px; display: flex; gap: 10px; flex-wrap: wrap; grid-column: 2; }
.dia .nums .p { color: var(--chuva-txt); font-weight: 600; }
.dia .nums .g { color: var(--rajada-txt); font-weight: 600; }
.dia .nums .t { white-space: nowrap; }
.dia .cf { grid-column: 2; font-size: 14px; color: var(--fraco); }
.dia .exp { padding: 0 16px 12px; }
.dia.longe .resumo::after { content: ' (confiança menor)'; font-weight: 500; color: var(--fraco); font-size: 14px; }
.tmin { color: var(--fria); }
.tmax { color: var(--quente); }

/* barras de probabilidade (El Niño e semana) */
.pbar { display: grid; grid-template-columns: 46px 1fr; align-items: center; gap: 8px; margin: 6px 0; font-size: 14px; }
.pbar .trilho { display: flex; height: 26px; background: var(--sup); }
.pbar .trilho i { display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 13px; font-weight: 650; overflow: hidden; color: #fff; }
.pbar .ln { background: #2457A6; }
.pbar .ne { background: #5C7A84; }
.pbar .en { background: #C8373A; }
.mini-tab { width: 100%; }
.mini-tab td.p { color: var(--chuva-txt); font-weight: 600; text-align: right; }
.mini-tab td.g { color: var(--rajada-txt); font-weight: 600; text-align: right; }

/* mapa */
.mapa { height: 340px; margin: 8px -16px; background: var(--sup); touch-action: pan-y; position: relative; }
.mapa.leaflet-container, .mapa .leaflet-pane, .mapa .leaflet-tile { touch-action: pan-y !important; }
.mapa-dica { position: absolute; inset: 0; z-index: 900; display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px;
  background: rgba(0,0,0,.45); color: #fff; font-weight: 600; font-size: 15px; opacity: 0; transition: opacity .2s; pointer-events: none; }
.mapa-dica.ver { opacity: 1; }
.camadas { display: flex; gap: 6px; overflow-x: auto; margin: 4px -16px 8px; padding: 0 16px 4px; touch-action: pan-x pan-y; overscroll-behavior-x: contain; scrollbar-width: none; }
.camadas::-webkit-scrollbar { display: none; }
.camadas button { flex: none; min-height: 38px; padding: 0 13px; border-radius: 19px; border: 1.5px solid var(--linha); background: none; font-size: 14px; color: var(--fraco); }
.camadas button[aria-checked="true"] { background: var(--texto); color: var(--fundo); border-color: var(--texto); font-weight: 600; }
.mapa-titulo { margin: 4px 0 6px; font-weight: 600; font-size: 15px; }
.mapa-barra { height: 8px; border-radius: 4px; max-width: 360px; }
.mapa-rotulos { display: flex; justify-content: space-between; max-width: 360px; font-size: 12px; color: var(--fraco); margin: 2px 0 4px; }
.mapa-controles [hidden] { display: none; }
.mapa-controles { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 6px 0; }
.mapa-controles button, .botao-link {
  min-height: 44px; padding: 0 14px; border-radius: 22px; border: 1.5px solid var(--linha); background: var(--sup);
  display: inline-flex; align-items: center; text-decoration: none; font-weight: 600;
}
.leaflet-container { font-family: 'Archivo', sans-serif; background: var(--sup); }

/* rodapé */
.rodape { padding: 18px 16px 24px; margin-top: 18px; border-top: 6px solid var(--sup); font-size: 14px; color: var(--fraco); }
.rodape .oficial { color: var(--texto); font-weight: 600; font-size: 15px; }
.acoes-rodape { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.acoes-rodape > * { min-height: 44px; padding: 0 14px; border-radius: 22px; border: 1.5px solid var(--linha); background: none; display: inline-flex; align-items: center; text-decoration: none; }
.perigo { border-color: var(--quente) !important; color: var(--quente); }

/* navegação entre os dias: logo abaixo do topo, fixa junto com ele */
.nav {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--fundo); border-bottom: 1px solid var(--linha); height: 44px;
}
.nav button {
  background: none; border: 0; min-height: 44px; font-size: 14px; font-weight: 560; font-stretch: 88%;
  color: var(--fraco); position: relative; padding: 0 2px;
}
.nav button[aria-current="page"] { color: var(--texto); font-weight: 720; }

/* diálogos */
dialog { border: 0; padding: 0; background: var(--fundo); color: var(--texto); width: min(520px, 100vw); max-width: 100vw; max-height: 92vh; margin: auto auto 0; }
dialog::backdrop { background: rgba(10, 20, 26, .6); }
.dlg { padding: 16px 16px calc(16px + var(--safe-b)); display: flex; flex-direction: column; gap: 10px; }
.dlg h2 { margin: 0; font-stretch: 108%; }
.dlg input { min-height: 48px; padding: 0 12px; border: 1.5px solid var(--linha); background: var(--sup); border-radius: 6px; width: 100%; }
.largo { min-height: 48px; border-radius: 24px; border: 1.5px solid var(--texto); background: var(--texto); color: var(--fundo); font-weight: 650; }
.largo.secundario { background: none; color: var(--texto); border-color: var(--linha); }
.resultados { list-style: none; margin: 0; padding: 0; }
.resultados button { width: 100%; min-height: 48px; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--linha); padding: 6px 0; }
.resultados small { color: var(--fraco); display: block; }

/* desempenho e movimento */
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* telas maiores */

/* ---------- chance de chuva por hora (gráfico padrão da primeira tela) ---------- */
.troca { display: flex; gap: 6px; margin: 10px 0 6px; }
.troca button { min-height: 36px; padding: 0 10px; border-radius: 18px; border: 1px solid var(--linha); background: none; font-size: 13px; color: var(--fraco); }
.troca button[aria-pressed="true"] { color: var(--texto); border-color: var(--texto); font-weight: 600; }
.chance-barras { position: relative; display: flex; align-items: flex-end; height: 96px; gap: 2px; padding-top: 14px; border-bottom: 1px solid var(--linha); }
.chance-barras .guia { position: absolute; left: 0; right: 0; border-top: 1px dashed var(--linha); pointer-events: none; }
.chance-barras .g50 { bottom: 41px; }
.chance-barras .g100 { bottom: 82px; }
.barra-c { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; background: none; border: 0; padding: 0; position: relative; min-width: 0; }
.barra-c i { display: block; width: 100%; max-width: 12px; background: var(--chuva); border-radius: 2px 2px 0 0; }
.barra-c i.sem { background: repeating-linear-gradient(135deg, var(--linha) 0 2px, transparent 2px 5px); opacity: .6; }
.barra-c span { order: -1; font-size: 10px; font-weight: 650; color: var(--chuva-txt); white-space: nowrap; line-height: 1.2; flex: none; }
.barra-c i { flex: none; }
.barra-c.agora::after { content: ''; position: absolute; bottom: -5px; width: 4px; height: 4px; border-radius: 50%; background: var(--texto); }
.chance-eixo { display: flex; gap: 2px; margin-top: 6px; }
.chance-eixo span { flex: 1; min-width: 0; font-size: 11px; color: var(--fraco); white-space: nowrap; overflow: visible; }
.chance-info { margin: 6px 0 0; font-size: 14px; min-height: 20px; }
.chance-fonte { margin: 2px 0 0; font-size: 12px; color: var(--fraco); }

.barra-c i.medido { background: var(--texto); }
.chance-barras.temp .barra-c i { background: var(--quente); opacity: .85; }
.chance-barras.temp .barra-c span { color: var(--quente); }
.resumo-chuva.chovendo strong { color: var(--chuva-txt); }

/* ---------- painel do El Niño ---------- */
.enso-painel { padding: 4px 0 10px; }
.enso-status { font-size: 20px; font-weight: 700; font-stretch: 104%; margin: 4px 0 2px; line-height: 1.2; }
.enso-intensidade { margin: 0 0 10px; color: var(--quente); font-weight: 600; }
.enso-grade { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--linha); }
.enso-bloco { padding: 10px 8px 10px 0; border-bottom: 1px solid var(--linha); display: flex; flex-direction: column; gap: 1px; }
.enso-bloco:nth-child(even) { padding-left: 12px; border-left: 1px solid var(--linha); }
.enso-bloco small { font-size: 13px; color: var(--fraco); }
.enso-bloco b { font-size: 28px; font-weight: 650; letter-spacing: -.02em; }
.enso-bloco.destaque b { color: var(--quente); }
.enso-bloco .sub { font-size: 13px; color: var(--fraco); }
.enso-bloco .marca { align-self: flex-start; margin: 4px 0 0; }
.enso-regioes { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 10px; }
.enso-regioes div { display: flex; flex-direction: column; font-size: 12px; color: var(--fraco); }
.enso-regioes b { font-size: 17px; color: var(--texto); font-weight: 650; }
.enso-diario { display: flex; align-items: flex-end; gap: 2px; height: 70px; margin-top: 12px; border-bottom: 1px solid var(--linha); }
.enso-diario i { flex: 1; display: block; border-radius: 2px 2px 0 0; }
.enso-diario i.q { background: var(--quente); }
.enso-diario i.f { background: var(--fria); }

.enso-tri { margin-top: 12px; }
.enso-tri td:first-child { font-weight: 650; }

.troca-horas { margin-left: auto; display: inline-flex; border: 1px solid var(--linha); border-radius: 18px; overflow: hidden; }
.troca-horas button { border: 0; border-radius: 0; padding: 0 10px; }
.troca-horas button[aria-pressed="true"] { background: var(--sup2); }
.troca { flex-wrap: nowrap; }
.troca button { white-space: nowrap; flex: none; padding: 0 9px; }
.troca { gap: 4px; }
.troca-horas button { padding: 0 7px; }
.troca-horas { flex: none; }
.troca-horas button { font-size: 12px; padding: 0 8px; }

/* Um só padrão para celular e computador: a mesma coluna, a mesma ordem e os mesmos tamanhos.
   Em telas largas a coluna fica centralizada com 720 px; nada muda de lugar. */
@media (min-width: 760px) {
  .cabeca > .topo, .nav, main, .faixa-aviso { max-width: 720px; margin-left: auto; margin-right: auto; }
  .mapa { margin: 8px 0; border-radius: 8px; overflow: hidden; }
  .camadas, .horas, .rolar, .tabela-rolar { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
}

/* temperatura agora no resumo de hoje (acima do céu); no topo só quando o resumo sai da tela */
.resumo-agora { display: flex; align-items: baseline; gap: 8px; margin: 2px 0 2px; }
.resumo-agora b { font-size: 40px; font-weight: 640; letter-spacing: -.03em; line-height: 1; }
.resumo-agora .rot-agora { font-size: 13px; color: var(--fraco); font-weight: 600; }
.resumo-agora .sens-agora { margin-left: auto; font-size: 14px; color: var(--fraco); font-weight: 600; }
.resumo-agora .sens-agora b { font-size: 22px; color: var(--texto); letter-spacing: -.02em; }
.bloco-t .sens-max { margin-top: 2px; font-size: 11.5px; }
.agora.oculto { visibility: hidden; }

.resumo-chuva .det.resto { font-size: 16px; font-weight: 600; color: var(--chuva-txt); }
.detalhes > *, #semana-conteudo > *, #modelos-conteudo > *, #elnino-conteudo > * { min-width: 0; }
/* no computador, a faixa de horas rola dentro da própria coluna, sem invadir a vizinha */
@media (min-width: 720px) {
  .detalhes .horas, .detalhes .rolar, .detalhes .tabela-rolar { margin: 0; padding: 0 0 6px; }
}
.mapa-escuro { filter: invert(1) hue-rotate(180deg) brightness(.95) contrast(.9) saturate(.6); }
/* alertas discretos: só um ponto e o texto na cor do alerta, sem faixa preenchida */
:root[data-visual] .alerta {
  background: none; border: 0; border-radius: 0; padding: 0; min-height: 40px; gap: 8px;
  font-size: 13px; font-weight: 550; color: var(--quente);
}
:root[data-visual] .alerta::before { content: ''; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--quente); }
:root[data-visual] .alerta::after { content: '›'; margin-left: auto; color: var(--fraco); font-size: 16px; }
:root[data-visual] .alerta.indisponivel { color: var(--fraco); font-weight: 500; }
:root[data-visual] .alerta.indisponivel::before { background: var(--fraco); }

/* Fluidez: seções fora da tela não são diagramadas nem pintadas até chegarem perto (o navegador guarda o tamanho). */
.detalhes > .secao, #semana-conteudo > .secao, #modelos-conteudo > .secao, #elnino-conteudo > .secao { content-visibility: auto; contain-intrinsic-size: auto 420px; }
.fontes-lista { list-style: none; margin: 4px 0 0; padding: 0; font-size: 14px; color: var(--fraco); }
.fontes-lista li { padding: 6px 0; border-bottom: 1px solid var(--linha); }
.fontes-lista b { color: var(--texto); font-weight: 600; }

/* gráfico de barras por hora (chuva e temperatura): eixo à esquerda, linha pontilhada na hora atual */
.grafbarras { margin-top: 14px; }
.gb-corpo, .gb-rodape { display: grid; grid-template-columns: 34px 1fr; }
.gb-y { position: relative; height: 132px; }
.gb-y span { position: absolute; right: 6px; transform: translateY(50%); font-size: 9.5px; line-height: 1; color: var(--fraco); white-space: nowrap; font-variant-numeric: tabular-nums; }
.gb-area { position: relative; height: 132px; display: flex; align-items: flex-end; gap: 2px; border-bottom: 1px solid var(--linha); }
.gb-guia { position: absolute; left: 0; right: 0; border-top: 1px solid var(--linha); opacity: .55; pointer-events: none; }
.gb-agora { position: absolute; left: 0; right: 0; border-top: 1.5px dashed var(--texto); opacity: .75; pointer-events: none; z-index: 1; }
.gb-barra { flex: 1; min-width: 0; height: 100%; display: flex; align-items: flex-end; justify-content: center; background: none; border: 0; padding: 0; position: relative; }
.gb-barra i { display: block; width: 100%; max-width: 14px; border-radius: 2px 2px 0 0; background: var(--chuva); transition: opacity .12s; }
.grafbarras.temp .gb-barra i { background: var(--quente); opacity: .85; }
.gb-barra i.medido { background: var(--texto); }
.gb-barra i.sem { background: repeating-linear-gradient(135deg, var(--linha) 0 2px, transparent 2px 5px); opacity: .6; }
.gb-barra.gb-atual::after { content: ''; position: absolute; bottom: -5px; width: 4px; height: 4px; border-radius: 50%; background: var(--texto); }
.gb-barra.sel i { outline: 2px solid var(--texto); outline-offset: 1px; }
.gb-x { display: flex; gap: 2px; margin-top: 6px; }
.gb-x span { flex: 1; min-width: 0; font-size: 11px; color: var(--fraco); white-space: nowrap; overflow: visible; }

/* Pressão atmosférica: destaque no topo de "Medições agora" */
.pressao { background: var(--sup2); border-radius: 10px; padding: 12px 12px 6px; margin: 4px 0 12px; border-left: 4px solid var(--linha); }
.pressao.sinal-forte { border-left-color: var(--quente); }
.pressao.sinal-confirma { border-left-color: var(--chuva); }
.pressao.sinal-mudanca { border-left-color: var(--rajada); }
.pressao.sinal-firme { border-left-color: var(--fria); }
.pr-topo { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.pr-topo .med-nome { flex-basis: 100%; }
.pr-v { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pr-tend { font-size: 14px; font-weight: 640; color: var(--fraco); }
.pr-tend.caindo { color: var(--quente); }
.pr-tend.subindo { color: var(--fria); }
.pr-lista { display: grid; grid-template-columns: 1fr auto; gap: 3px 12px; margin: 10px 0 6px; font-size: 14px; }
.pr-lista dt { color: var(--fraco); }
.pr-lista dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.pr-sinal { margin: 8px 0 4px; font-size: 15px; line-height: 1.35; }
.pressao .grafico { margin-top: 8px; }

/* Risco de temporal: linha clicável abaixo da rajada, só para risco moderado ou alto */
.linha-temporal { display: flex; align-items: center; gap: 6px; width: 100%; margin: 4px 0 2px; padding: 5px 8px; border: 0; border-radius: 6px;
  background: var(--sup2); color: var(--texto); font: inherit; font-weight: 640; font-size: 13px; line-height: 1.25; text-align: left; border-left: 3px solid var(--rajada); }
.linha-temporal.alto { border-left-color: var(--quente); background: var(--alerta-fundo); }
.linha-temporal .raio { width: 13px; height: 13px; flex: none; fill: var(--rajada); }
.linha-temporal.alto .raio { fill: var(--quente); }

.linha-temporal .lt-txt { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 6px; }
.linha-temporal .lt-txt small { font-size: 12px; font-weight: 500; color: var(--fraco); }
.lt-avisos { margin: 0 0 10px; padding-left: 18px; }
.lt-avisos li { margin: 0 0 6px; }

/* Placar de acerto da véspera: última linha de "Previsto x medido", toca para ver o detalhe */
.linha-placar { display: flex; align-items: center; width: 100%; margin: 10px 0 2px; padding: 7px 8px; border: 0; border-radius: 6px;
  background: var(--sup2); color: var(--texto); font: inherit; font-weight: 560; font-size: 13px; line-height: 1.3; text-align: left; border-left: 3px solid var(--linha); }
.linha-placar .lt-txt { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 6px; }
.linha-placar .lt-txt small { font-size: 12px; font-weight: 500; color: var(--fraco); }

/* ---------- aba Globo: cena 3D ocupa a tela abaixo do topo; a interface flutua sobre ela ---------- */
.aba-globo { padding: 0; }
.globo { position: relative; width: 100%; height: 70vh; background: #04060b; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; color: #eceef0; }
.globo-canvas { display: block; width: 100%; height: 100%; outline: none; cursor: grab; }
.globo-canvas:active { cursor: grabbing; }
.globo-topo { position: absolute; left: 0; right: 0; top: 0; padding: 10px 12px 0; pointer-events: none; }
.globo-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; pointer-events: auto; padding-bottom: 6px; }
.globo-chips::-webkit-scrollbar { display: none; }
.globo-chips button { flex: none; min-height: 36px; padding: 0 11px; border-radius: 18px; border: 1px solid rgba(255,255,255,.22); background: rgba(10,14,22,.62); color: #dfe4ea; font-size: 13px; font-weight: 560; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.globo-chips button[aria-checked="true"] { background: #eceef0; color: #0b0f16; border-color: #eceef0; font-weight: 680; }
.globo-botoes { position: absolute; right: 10px; top: 56px; display: flex; flex-direction: column; gap: 8px; z-index: 2; }
.globo-botoes button { width: 36px; height: 36px; padding: 0; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); background: rgba(10,14,22,.5); color: #dfe4ea; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.globo-botoes svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.globo-botoes svg .cheio { fill: currentColor; stroke: none; }
.globo-botoes button::before { content: ''; position: absolute; inset: -4px; } /* área de toque de 44 px */
.globo-botoes button { position: relative; }
.globo-aviso { position: absolute; left: 12px; right: 12px; top: 58px; margin: 0; padding: 10px 14px; border-radius: 10px; background: rgba(10,14,22,.78); color: #eceef0; font-size: 14px; max-width: 420px; }
.globo-aviso.grave { border-left: 3px solid #ee8a6a; }
.globo-rodape { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 12px calc(8px + var(--safe-b)); background: linear-gradient(to top, rgba(4,6,11,.92), rgba(4,6,11,.55) 70%, rgba(4,6,11,0)); pointer-events: none; }
.globo-rodape > * { pointer-events: auto; }
.globo-legenda-texto { margin: 0 0 4px; font-size: 13px; color: #dfe4ea; }
.globo-barra { height: 8px; border-radius: 4px; background: #333; max-width: 420px; }
.globo-rotulos { display: flex; justify-content: space-between; max-width: 420px; font-size: 11px; color: #b7c0c9; margin-top: 2px; }
.globo-unidade { font-size: 11px; color: #b7c0c9; }
.globo-linha { display: flex; align-items: center; gap: 10px; margin: 6px 0 2px; }
.globo-hora { min-width: 64px; font-size: 14px; font-weight: 650; font-variant-numeric: tabular-nums; }
.globo-faixa { flex: 1; min-width: 0; accent-color: #eceef0; height: 28px; margin: 0; }
.globo-tocar { min-height: 34px; padding: 0 12px; border-radius: 17px; border: 1px solid rgba(255,255,255,.3); background: rgba(10,14,22,.6); color: #eceef0; font-size: 13px; font-weight: 600; }
.globo-tocar[aria-pressed="true"] { background: #eceef0; color: #0b0f16; }
.globo-notas { display: flex; flex-wrap: wrap; gap: 2px 12px; margin-top: 2px; }
.globo-notas p { margin: 0; font-size: 11.5px; color: #aab3bd; }
.globo-ciclones { color: #ff9a8a !important; font-weight: 600; }
.globo-painel { z-index: 6; position: absolute; left: 12px; right: 12px; bottom: 150px; max-width: 420px; margin: 0 auto; padding: 12px 14px; border-radius: 12px; background: rgba(10,14,22,.86); color: #eceef0; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.12); }
.globo-painel-topo { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; color: #b7c0c9; }
.globo-painel-topo b { color: #eceef0; font-weight: 640; }
.globo-fechar { min-width: 36px; min-height: 36px; border: 0; background: none; color: #dfe4ea; font-size: 22px; line-height: 1; }
.globo-frase { margin: 4px 0 2px; font-size: 19px; font-weight: 700; font-stretch: 108%; line-height: 1.2; }
.globo-numeros { margin: 0; font-size: 15px; font-weight: 560; }
.globo-quando { margin: 4px 0 6px; font-size: 12.5px; color: #b7c0c9; }
.globo-detalhe { min-height: 36px; padding: 0 14px; border-radius: 18px; border: 1px solid rgba(255,255,255,.3); background: none; color: #eceef0; font-size: 13px; font-weight: 600; }
.tabela-detalhe { width: 100%; border-collapse: collapse; font-size: 14px; }
.tabela-detalhe th { text-align: left; font-weight: 560; color: var(--fraco); padding: 5px 8px 5px 0; vertical-align: top; width: 46%; }
.tabela-detalhe td { padding: 5px 0; border-bottom: 1px solid var(--linha); }
@media (min-width: 760px) { .globo { border-radius: 0 0 10px 10px; } }
.globo-btn-espaco[aria-pressed="true"] { background: #eceef0 !important; color: #0b0f16 !important; }
.globo-espaco { position: absolute; left: 0; right: 0; top: 52px; padding: 0 12px; pointer-events: none; }
.globo-espaco > * { pointer-events: auto; }
.globo-espaco .globo-chips button[aria-pressed="true"] { background: #eceef0; color: #0b0f16; border-color: #eceef0; font-weight: 680; }
.globo-espaco-nota { margin: 2px 0 0; font-size: 11.5px; color: #aab3bd; max-width: 300px; }
.globo-rotulo { position: absolute; left: 0; top: 0; padding: 2px 8px; border-radius: 10px; background: rgba(10,14,22,.75); color: #ffd166; font-size: 12px; font-weight: 650; border: 1px solid rgba(255,209,102,.5); margin: -28px 0 0 -16px; white-space: nowrap; pointer-events: auto; }
button.globo-rotulo { cursor: pointer; }
.globo-rotulo-planeta { color: #dfe4ea; border-color: rgba(255,255,255,.2); margin: 0 0 0 -20px; pointer-events: none; }
.globo-cidades { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.globo-cidade { position: absolute; left: 0; top: 0; margin: -7px 0 0 6px; padding-left: 8px; font-size: 12px; font-weight: 600; color: #f3f5f8; text-shadow: 0 0 3px #000, 0 1px 2px #000; white-space: nowrap; }
.globo-cidade::before { content: ''; position: absolute; left: 0; top: 5px; width: 5px; height: 5px; border-radius: 50%; background: #fff; box-shadow: 0 0 2px #000; }
.globo-relogio { font-size: 12px; color: #b7c0c9; font-variant-numeric: tabular-nums; margin: 2px 0 0; }
.globo-sistema-controles { position: absolute; left: 12px; right: 12px; bottom: 16px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; pointer-events: none; }
.globo-sistema-controles > * { pointer-events: auto; }
.globo-velocidades button { font-size: 12px; }
.globo-data-sistema { margin: 0; font-size: 13px; color: #dfe4ea; font-variant-numeric: tabular-nums; text-shadow: 0 1px 2px #000; }
.globo.com-espaco .globo-botoes { top: 108px; }

/* menu "Ver mais": seções fora da barra principal (Avisos, Globo, El Niño, Modelos) */
.nav #btn-mais[data-avisos]::after { content: ''; position: absolute; top: 11px; right: calc(50% - 38px); width: 7px; height: 7px; border-radius: 50%; background: var(--quente); }
.mais-lista { display: flex; flex-direction: column; gap: 8px; }
.mais-item { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 56px; padding: 10px 14px; border: 1.5px solid var(--linha); border-radius: 10px; background: var(--sup); color: var(--texto); text-align: left; }
.mais-item b { font-size: 16px; font-weight: 680; }
.mais-item span { font-size: 13px; color: var(--fraco); }
.mais-item[aria-current="page"] { border-color: var(--texto); }
.mais-item.com-aviso span { color: var(--quente); font-weight: 600; }

/* aba Avisos */
#avisos-conteudo { padding: 0 16px 8px; }
.aviso-card { border-left: 3px solid var(--quente); background: var(--sup); border-radius: 0 8px 8px 0; padding: 12px 14px; margin: 10px 0; }
.aviso-card.grave { background: var(--alerta-fundo); }
.aviso-card h2 { font-size: 17px; margin: 0 0 4px; font-weight: 700; }
.aviso-card .quando { margin: 0; color: var(--fraco); font-size: 14px; }
.aviso-card details { margin-top: 8px; }
.aviso-card summary { color: var(--fraco); font-size: 14px; min-height: 32px; display: flex; align-items: center; cursor: pointer; }
.aviso-card details p { margin: 6px 0; }
.avisos-vazio { font-size: 17px; font-weight: 600; margin: 12px 0 4px; }
.avisos-outros { margin-top: 14px; }
.avisos-outros summary { color: var(--fraco); min-height: 44px; display: flex; align-items: center; cursor: pointer; }
.avisos-outros li { margin: 6px 0; }
