*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:#06182d;color:#eef5ff;font-family:Arial,Helvetica,sans-serif}body{padding:10px;font-size:14px}.top{height:145px;border:1px solid #0e5b92;border-radius:18px;background:linear-gradient(90deg,#06172b,#0a2038 55%,#07182b);display:flex;align-items:center;justify-content:space-between;padding:20px 28px;box-shadow:0 0 0 1px #071f39 inset}.brand{display:flex;align-items:center;gap:18px}.logo{width:92px;height:92px;border:2px solid #8db6d2;border-radius:50%;display:grid;place-items:center;font-weight:900;font-size:21px;background:#183c59}.eyebrow{letter-spacing:2px;color:#a7c8df;font-size:13px}.title{font-size:48px;font-weight:900;line-height:1}.title span{font-size:24px;color:#a7c8df}.subtitle{color:#91abc0;margin-top:6px}.head-right{display:flex;align-items:center;gap:10px}.route-badge{border:1px solid #7292aa;border-radius:8px;padding:7px 11px;text-align:center;font-size:16px;font-weight:900;line-height:.9}.route-text{font-size:11px;font-weight:800;line-height:1.25}.slogan{font-style:italic;color:#f1c46a;font-size:18px;margin:0 12px}.clock{text-align:right;font-size:13px}.clock b{display:block;font-size:34px;line-height:1.05}.clock small{color:#57df72;font-weight:800}.clock i{display:inline-block;width:9px;height:9px;background:#20e66a;border-radius:50%;margin-right:4px}.grid{display:grid;grid-template-columns:24% 38% 38%;grid-template-rows:295px 380px;gap:14px;margin-top:14px}.card{border:1px solid #0b5c92;border-radius:17px;background:#071e36;overflow:hidden;min-width:0}.card h2{font-size:16px;letter-spacing:1.3px;margin:0;padding:14px;border-bottom:1px solid #123e62}.status-card{grid-column:1}.status{margin:12px;border-radius:14px;padding:20px;display:flex;gap:15px;align-items:center}.status.normal{background:linear-gradient(135deg,#079c40,#10c94e)}.status-icon{width:46px;height:60px;border:2px solid #d8f7e2;border-radius:50%;display:grid;place-items:center;font-size:28px;font-weight:900}.status strong{font-size:24px}.status p{margin:7px 0 0;line-height:1.3}.meta{padding:12px 14px;border-top:1px solid #153b5c;display:flex;justify-content:space-between;gap:10px;color:#9cb5ca}.meta b{color:#eef5ff;text-align:right}.hero{position:relative;background:linear-gradient(120deg,#0a2943,#082a32 55%,#0a1b30);background-image:linear-gradient(120deg,rgba(3,18,31,.82),rgba(4,26,39,.62)),url('https://images.unsplash.com/photo-1500534623283-312aade485b7?auto=format&fit=crop&w=1600&q=80');background-size:cover;background-position:center}.hero-content{position:absolute;left:24px;right:24px;bottom:24px}.pill{border:1px solid #b8d8ef;border-radius:14px;padding:5px 10px;font-size:11px;font-weight:900}.source{color:#8fd0f0;font-weight:900;letter-spacing:1px;margin-top:14px}.hero h1{font-size:34px;margin:8px 0}.hero p{font-size:16px;line-height:1.35;margin:0;max-width:95%}.hero small{color:#a7bccb}.slide{position:absolute;right:16px;top:16px;border:1px solid #9ab7cd;border-radius:15px;padding:5px 9px}.news-card{overflow:hidden}.news-card #news{height:calc(100% - 50px);overflow:auto}.news{padding:12px 14px;border-top:1px solid #173d5d;display:grid;grid-template-columns:105px 36px 1fr;gap:9px}.news:first-child{border-top:0}.news-date{font-size:10px;color:#a8c1d5}.news-icon{font-size:22px}.news-text{line-height:1.35}.news-km{color:#6ff08c;font-size:11px;margin-top:4px}.map-card{grid-column:1/3;position:relative}.map-card h2 small{font-size:10px;color:#89a5b9;font-weight:400}.map-card #map{height:calc(100% - 49px);background:#102a42}.map-legend{position:absolute;bottom:12px;left:12px;background:#061b30dd;padding:8px 12px;border-radius:9px;font-size:10px;z-index:500}.map-legend span{display:inline-block;width:25px;height:4px;margin:0 4px 2px 8px}.map-legend .g{background:#15dd65}.map-legend .y{background:#ffd21c}.map-legend .o{background:#ff8a17}.map-legend .r{background:#ff3434}.weather-card{grid-column:3}.weather-place{color:#9bd3ee;font-size:11px;font-weight:900;padding:16px 14px 0;letter-spacing:1px}.weather-main{display:flex;align-items:center;justify-content:space-between;padding:4px 14px}.weather-icon{font-size:54px}.weather-main b{font-size:42px}.weather-desc{padding:0 14px 20px}.weather-stats{border-top:1px solid #1b4668;padding:18px 14px;line-height:1.7;color:#b4c9d8}.legend-card{grid-column:3;grid-row:2}.legend-list{padding:5px 14px}.legend-list>div{display:grid;grid-template-columns:36px 1fr;column-gap:8px;padding:7px 0}.legend-list .li{grid-row:span 2;width:29px;height:29px;border-radius:50%;display:grid;place-items:center;color:#fff;font-style:normal;font-weight:900;font-size:15px}.legend-list b{font-size:12px}.legend-list small{font-size:9px;color:#a8b9c8}.green{background:#078b42}.yellow{background:#b88a00}.orange{background:#e66b0b}.red{background:#e42f35}.purple{background:#7434df}.blue{background:#159bd3}.gray{background:#8a9299}footer{padding:13px 5px;color:#8ea7bb;font-size:11px}footer span{float:right}@media(max-width:1100px){.top{height:auto}.head-right{display:none}.grid{grid-template-columns:1fr 1fr;grid-template-rows:auto}.status-card,.hero,.news-card,.map-card,.weather-card,.legend-card{grid-column:auto;grid-row:auto}.map-card{min-height:420px}}@media(max-width:700px){.grid{grid-template-columns:1fr}.title{font-size:38px}.title span{font-size:18px}.logo{width:70px;height:70px}.grid{grid-template-rows:auto}.map-card{min-height:360px}}

/* V1.1 WEB - refinamento de layout */
html,body{width:100%;overflow-x:hidden}
.grid{grid-template-columns:minmax(0,24%) minmax(0,38%) minmax(0,38%);grid-template-rows:285px minmax(360px,1fr);gap:12px}
.map-card{grid-column:1/3;min-width:0}
.map-card #map{min-height:0}
.right-stack{grid-column:3;grid-row:2;display:grid;grid-template-rows:minmax(180px,1fr) minmax(180px,1fr);gap:12px;min-height:0}
.weather-card,.legend-card{min-height:0}
.legend-list>div{padding:5px 0}
@media(max-width:1100px){
 .head-right{display:none}
 .grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:auto}
 .status-card,.hero,.news-card,.map-card,.right-stack{grid-column:auto;grid-row:auto}
 .map-card{min-height:420px}
 .right-stack{grid-template-rows:auto auto}
}
@media(max-width:700px){
 .grid{grid-template-columns:1fr}
 .map-card{min-height:360px}
 .right-stack{grid-column:1;grid-template-rows:auto auto}
}

/* V1.2 - logo oficial e melhor aproveitamento visual do mapa */
.logo{overflow:hidden;background:transparent;border:0}
.logo img{width:100%;height:100%;object-fit:contain;display:block}

/* V1.3 - alinhamento final: mapa ocupa integralmente sua área */
.grid{
  grid-template-columns:minmax(0,1fr) minmax(0,1.55fr) minmax(300px,1fr);
}
.map-card{
  grid-column:1/3;
  width:100%;
}
.map-card #map{
  width:100%;
  height:calc(100% - 49px);
  min-height:0;
}
.right-stack{
  width:100%;
}
.logo{
  width:92px;
  height:92px;
  flex:0 0 92px;
  border:0;
  background:transparent;
}
.logo img{
  width:100%;
  height:100%;
  object-fit:contain;
}
@media(max-width:1100px){
  .grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .map-card{grid-column:auto}
}
@media(max-width:700px){
  .grid{grid-template-columns:1fr}
  .logo{width:70px;height:70px;flex-basis:70px}
}

/* V1.5 - mapa estendido para harmonizar o layout WEB */
@media(min-width:1101px){
  .grid{
    grid-template-columns:minmax(0,24%) minmax(0,42%) minmax(0,34%);
    grid-template-rows:285px minmax(360px,1fr);
  }
  .map-card{
    grid-column:1/3;
    width:100%;
  }
  .right-stack{
    grid-column:3;
    width:100%;
  }
}

/* V1.6 - harmonização do espaço entre mapa e coluna direita */
.grid{
  grid-template-columns:minmax(0,24%) minmax(0,42%) minmax(0,34%);
  grid-template-rows:295px minmax(380px,1fr);
}
.map-card{
  grid-column:1/3;
  width:100%;
}
.right-stack{
  grid-column:3;
  width:100%;
  margin:0;
}
@media(max-width:1100px){
  .grid{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  }
}
@media(max-width:700px){
  .grid{
    grid-template-columns:1fr;
  }
}

/* =========================================================
   V1.7 - RESPONSIVO MULTITELA
   Desktop / notebook / tablet / celular
   ========================================================= */

*,
*::before,
*::after{box-sizing:border-box}

html,body{
  width:100%;
  min-width:0;
  max-width:100%;
  overflow-x:hidden;
}

body{
  margin:0;
  min-height:100vh;
}

img,svg,video,canvas{
  max-width:100%;
}

/* Desktop: aproveita a largura disponível sem criar rolagem horizontal */
.grid{
  width:100%;
  max-width:100%;
  min-width:0;
  grid-template-columns:minmax(250px,24%) minmax(420px,42%) minmax(260px,34%);
  grid-template-rows:minmax(250px,30vh) minmax(390px,1fr);
  gap:12px;
}

.card,
.map-card,
.hero,
.news-card,
.status-card,
.right-stack{
  min-width:0;
  max-width:100%;
}

/* Mapa acompanha a altura disponível */
.map-card{
  min-height:clamp(360px,48vh,680px);
}

.map-card #map{
  width:100%;
  height:100%;
  min-height:clamp(330px,43vh,620px);
}

/* Coluna direita ocupa o espaço sem deixar buraco */
.right-stack{
  min-height:0;
  display:grid;
  grid-template-rows:minmax(170px,1fr) minmax(170px,1fr);
  gap:12px;
}

/* Notebooks e monitores menores */
@media (max-width: 1400px){
  .grid{
    grid-template-columns:minmax(230px,25%) minmax(360px,41%) minmax(240px,34%);
    grid-template-rows:minmax(230px,29vh) minmax(350px,1fr);
    gap:10px;
  }

  .map-card{
    min-height:clamp(330px,47vh,560px);
  }

  .map-card #map{
    min-height:clamp(300px,42vh,510px);
  }
}

/* Tablets / telas 768-1100 */
@media (max-width:1100px){
  .grid{
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    grid-template-rows:auto;
    gap:10px;
  }

  .status-card,
  .hero,
  .news-card,
  .map-card,
  .right-stack{
    grid-column:auto;
    grid-row:auto;
  }

  .status-card{grid-column:1}
  .hero{grid-column:2}
  .news-card{grid-column:1 / -1}

  .map-card{
    grid-column:1 / -1;
    min-height:clamp(360px,55vh,600px);
  }

  .map-card #map{
    min-height:clamp(340px,50vh,560px);
  }

  .right-stack{
    grid-column:1 / -1;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    grid-template-rows:auto;
    gap:10px;
  }

  .head-right{
    min-width:0;
  }
}

/* Celular grande / retrato */
@media (max-width:767px){
  html,body{
    font-size:14px;
  }

  body{
    width:100%;
    padding:0;
  }

  .grid{
    display:flex;
    flex-direction:column;
    width:100%;
    gap:8px;
  }

  .status-card,
  .hero,
  .news-card,
  .map-card,
  .right-stack{
    width:100%;
    max-width:100%;
  }

  .status-card{order:1}
  .hero{order:2}
  .news-card{order:3}
  .map-card{
    order:4;
    min-height:55vw;
    max-height:none;
  }

  .map-card #map{
    height:55vw;
    min-height:300px;
    max-height:520px;
  }

  .right-stack{
    order:5;
    display:flex;
    flex-direction:column;
    gap:8px;
  }

  .weather-card,
  .legend-card{
    width:100%;
    min-height:0;
  }

  /* Cabeçalho compacto para celular */
  .header,
  header{
    max-width:100%;
    min-width:0;
  }

  .head-right{
    display:none;
  }

  .logo{
    flex:0 0 auto;
  }

  .logo img{
    width:100%;
    height:100%;
    object-fit:contain;
  }

  /* Textos longos não estouram a tela */
  h1,h2,h3,p,.post,.hero-text,.news-text{
    max-width:100%;
    overflow-wrap:anywhere;
    word-break:normal;
  }

  .post{
    grid-template-columns:minmax(58px,72px) minmax(0,1fr);
  }
}

/* Celulares estreitos */
@media (max-width:480px){
  html,body{
    font-size:13px;
  }

  .grid{
    gap:7px;
  }

  .map-card{
    min-height:72vw;
  }

  .map-card #map{
    height:72vw;
    min-height:280px;
  }

  .right-stack{
    gap:7px;
  }
}

/* Celulares muito estreitos */
@media (max-width:360px){
  .map-card #map{
    height:78vw;
    min-height:260px;
  }
}

/* Orientação paisagem em celular: aproveita a largura */
@media (max-width:900px) and (orientation:landscape){
  .grid{
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  }

  .status-card{grid-column:1}
  .hero{grid-column:2}
  .news-card{grid-column:1 / -1}
  .map-card{grid-column:1 / -1}

  .right-stack{
    grid-column:1 / -1;
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  }

  .map-card #map{
    height:52vh;
    min-height:280px;
  }
}

/* Evita que o Leaflet crie largura extra */
.leaflet-container{
  width:100%;
  max-width:100%;
}

/* =========================================================
   V1.9 - LAYOUT OFICIAL / 2 LINHAS
   Linha 1: Situação | Destaque | Últimas EPR
   Linha 2: Mapa | Meteorologia | Legenda
   ========================================================= */

@media (min-width:1101px){
  html,body{
    height:100%;
    min-height:100%;
  }

  body{
    height:100vh;
    min-height:0;
    overflow:hidden;
    padding:8px;
    display:flex;
    flex-direction:column;
  }

  .top{
    flex:0 0 clamp(105px,13vh,145px);
    height:auto;
    min-height:105px;
    padding:14px 24px;
  }

  .grid{
    flex:1 1 auto;
    height:auto;
    min-height:0;
    margin-top:10px;
    display:grid;
    grid-template-columns:minmax(0,24%) minmax(0,42%) minmax(0,34%);
    grid-template-rows:minmax(220px,30%) minmax(0,70%);
    gap:10px;
  }

  /* LINHA 1 */
  .status-card{
    grid-column:1;
    grid-row:1;
  }

  .hero{
    grid-column:2;
    grid-row:1;
  }

  .news-card{
    grid-column:3;
    grid-row:1;
  }

  /* LINHA 2 */
  .map-card{
    grid-column:1 / 3;
    grid-row:2;
    min-height:0;
    height:100%;
  }

  .map-card #map{
    width:100%;
    height:calc(100% - 49px);
    min-height:0;
  }

  /* Meteorologia + legenda, lado a lado */
  .right-stack{
    grid-column:3;
    grid-row:2;
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    grid-template-rows:1fr;
    gap:10px;
    min-width:0;
    min-height:0;
    height:100%;
  }

  .right-stack .weather-card,
  .right-stack .legend-card{
    grid-column:auto;
    grid-row:1;
    width:100%;
    height:100%;
    min-width:0;
    min-height:0;
  }

  .right-stack .weather-card{
    overflow:hidden;
  }

  .right-stack .legend-card{
    overflow:hidden;
  }

  /* compactação para que tudo permaneça em uma única janela */
  .status-card .status{
    margin:10px;
    padding:14px;
  }

  .status strong{
    font-size:clamp(18px,1.8vw,24px);
  }

  .status p{
    font-size:clamp(11px,1vw,14px);
  }

  .meta{
    padding:9px 12px;
    font-size:12px;
  }

  .hero-content{
    left:20px;
    right:20px;
    bottom:18px;
  }

  .hero h1{
    font-size:clamp(25px,2.3vw,34px);
  }

  .hero p{
    font-size:clamp(12px,1.05vw,16px);
  }

  .news{
    padding:9px 10px;
    grid-template-columns:78px 28px minmax(0,1fr);
    gap:7px;
    font-size:12px;
  }

  .right-stack .card h2{
    padding:11px 10px;
    font-size:13px;
    letter-spacing:1px;
  }

  .weather-place{
    padding:12px 10px 0;
    font-size:10px;
  }

  .weather-main{
    padding:3px 10px;
  }

  .weather-icon{
    font-size:40px;
  }

  .weather-main b{
    font-size:clamp(26px,2.5vw,40px);
  }

  .weather-desc{
    padding:0 10px 12px;
    font-size:11px;
  }

  .weather-stats{
    padding:11px 10px;
    font-size:11px;
    line-height:1.5;
  }

  .legend-list{
    padding:3px 9px;
  }

  .legend-list>div{
    grid-template-columns:28px 1fr;
    column-gap:6px;
    padding:4px 0;
  }

  .legend-list .li{
    width:25px;
    height:25px;
    font-size:12px;
  }

  .legend-list b{
    font-size:10px;
  }

  .legend-list small{
    font-size:8px;
  }

  footer{
    flex:0 0 20px;
    height:20px;
    padding:5px 4px 0;
    font-size:10px;
  }
}

/* Monitores menores: preserva as três colunas, mas compacta ainda mais */
@media (min-width:1101px) and (max-height:850px){
  .top{
    flex-basis:100px;
    min-height:100px;
    padding:10px 18px;
  }

  .logo{
    width:72px;
    height:72px;
    flex-basis:72px;
  }

  .title{
    font-size:38px;
  }

  .title span{
    font-size:20px;
  }

  .grid{
    margin-top:8px;
    gap:8px;
    grid-template-rows:minmax(200px,31%) minmax(0,69%);
  }

  .card h2{
    padding:10px 12px;
    font-size:13px;
  }
}

/* Tablet e celular: mantém responsividade, sem forçar altura de TV */
@media (max-width:1100px){
  html,body{
    height:auto;
    min-height:100%;
  }

  body{
    min-height:100vh;
    overflow-x:hidden;
    overflow-y:auto;
  }

  .grid{
    height:auto;
    min-height:0;
  }

  .right-stack{
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    grid-template-rows:auto;
  }

  .right-stack .weather-card,
  .right-stack .legend-card{
    grid-column:auto;
    grid-row:auto;
  }
}

@media (max-width:767px){
  .right-stack{
    display:flex;
    flex-direction:column;
  }
}

/* =========================================================
   V2.0 - AJUSTE FINO DE LEITURA E ENCAIXE
   Situação Atual + Meteorologia + Legenda
   ========================================================= */

@media (min-width:1101px){

  /* --- CARD SITUAÇÃO ATUAL --- */
  .status-card > h2{
    padding:10px 12px;
    font-size:13px;
    line-height:1.15;
    letter-spacing:1.1px;
    white-space:nowrap;
  }

  .status-card .status{
    margin:9px 10px;
    padding:11px 12px;
    min-height:82px;
    gap:11px;
    border-radius:12px;
  }

  .status-card .status-icon{
    width:42px;
    height:52px;
    flex:0 0 42px;
    font-size:24px;
  }

  .status-card .status strong{
    display:block;
    font-size:clamp(18px,1.45vw,23px);
    line-height:1.05;
  }

  .status-card .status p{
    margin-top:5px;
    font-size:11px;
    line-height:1.22;
  }

  .status-card .meta{
    min-height:30px;
    padding:7px 10px;
    gap:7px;
    font-size:10px;
    line-height:1.15;
  }

  .status-card .meta span{
    white-space:nowrap;
  }

  .status-card .meta b{
    font-size:10px;
    line-height:1.15;
    max-width:65%;
    overflow-wrap:anywhere;
  }

  /* --- METEOROLOGIA --- */
  .right-stack .weather-card > h2{
    padding:10px 11px;
    font-size:12px;
    line-height:1.1;
    letter-spacing:1px;
  }

  .right-stack .weather-place{
    padding:11px 11px 0;
    font-size:10px;
    letter-spacing:1px;
  }

  .right-stack .weather-main{
    padding:2px 11px;
  }

  .right-stack .weather-icon{
    font-size:39px;
    line-height:1;
  }

  .right-stack .weather-main b{
    font-size:clamp(28px,2.1vw,36px);
    line-height:1;
    white-space:nowrap;
  }

  .right-stack .weather-desc{
    padding:4px 11px 12px;
    font-size:10px;
    line-height:1.2;
  }

  .right-stack .weather-stats{
    padding:10px 11px;
    font-size:10px;
    line-height:1.45;
  }

  /* --- LEGENDA --- */
  .right-stack .legend-card > h2{
    padding:10px 11px;
    font-size:12px;
    line-height:1.1;
    letter-spacing:1px;
  }

  .right-stack .legend-list{
    padding:3px 9px;
  }

  .right-stack .legend-list > div{
    grid-template-columns:25px minmax(0,1fr);
    column-gap:6px;
    padding:4px 0;
    line-height:1.05;
  }

  .right-stack .legend-list .li{
    width:24px;
    height:24px;
    font-size:12px;
  }

  .right-stack .legend-list b{
    font-size:10px;
    line-height:1.1;
  }

  .right-stack .legend-list small{
    font-size:8px;
    line-height:1.05;
  }
}

/* Monitores mais baixos: compacta sem sacrificar a leitura */
@media (min-width:1101px) and (max-height:850px){
  .status-card .status{
    min-height:76px;
    padding:9px 11px;
  }

  .status-card .status-icon{
    width:38px;
    height:48px;
    flex-basis:38px;
    font-size:22px;
  }

  .status-card .meta{
    min-height:27px;
    padding:6px 9px;
    font-size:9.5px;
  }

  .status-card .meta b{
    font-size:9.5px;
  }

  .right-stack .weather-place{
    padding-top:9px;
  }

  .right-stack .weather-stats{
    padding-top:8px;
    padding-bottom:8px;
  }

  .right-stack .legend-list > div{
    padding:3px 0;
  }
}

/* Evita corte de texto nos cards quando a largura ficar menor */
@media (min-width:1101px){
  .status-card,
  .weather-card,
  .legend-card{
    overflow:hidden;
  }

  .status-card .meta,
  .weather-card *,
  .legend-card *{
    box-sizing:border-box;
  }
}

/* =========================================================
   V2.1 - CORREÇÃO CIRÚRGICA DO CARD SITUAÇÃO ATUAL
   Ajusta somente a área inferior do primeiro card da linha 1.
   ========================================================= */
@media (min-width:1101px){
  .status-card > h2{
    padding:8px 12px;
    font-size:12px;
    line-height:1.1;
  }

  .status-card .status{
    margin:7px 10px;
    padding:9px 11px;
    min-height:68px;
    gap:9px;
  }

  .status-card .status-icon{
    width:38px;
    height:46px;
    flex:0 0 38px;
    font-size:22px;
  }

  .status-card .status strong{
    font-size:clamp(17px,1.3vw,21px);
    line-height:1;
  }

  .status-card .status p{
    margin-top:4px;
    font-size:10px;
    line-height:1.15;
  }

  .status-card .meta{
    min-height:22px;
    height:22px;
    padding:4px 10px;
    gap:5px;
    font-size:9px;
    line-height:1;
  }

  .status-card .meta span,
  .status-card .meta b{
    font-size:9px;
    line-height:1;
  }

  .status-card .meta b{
    max-width:66%;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
}

/* =========================================================
   V2.2 - REFINO DE LEITURA METEOROLOGIA + LEGENDA
   Aumenta os elementos visuais e tipografia sem alterar a estrutura.
   ========================================================= */
@media (min-width:1101px){
  .right-stack .weather-card > h2{
    padding:12px 13px;
    font-size:14px;
    letter-spacing:1.05px;
  }

  .right-stack .weather-place{
    padding:16px 13px 2px;
    font-size:12px;
    letter-spacing:1.15px;
  }

  .right-stack .weather-main{
    padding:8px 13px 7px;
  }

  .right-stack .weather-icon{
    font-size:54px;
  }

  .right-stack .weather-main b{
    font-size:clamp(34px,2.6vw,44px);
  }

  .right-stack .weather-desc{
    padding:5px 13px 18px;
    font-size:12px;
    line-height:1.35;
  }

  .right-stack .weather-stats{
    padding:16px 13px;
    font-size:12px;
    line-height:1.8;
    min-height:120px;
  }

  .right-stack .legend-card > h2{
    padding:12px 13px;
    font-size:14px;
    letter-spacing:1.05px;
  }

  .right-stack .legend-list{
    padding:7px 12px;
  }

  .right-stack .legend-list > div{
    grid-template-columns:31px minmax(0,1fr);
    column-gap:8px;
    padding:6px 0;
    line-height:1.1;
  }

  .right-stack .legend-list .li{
    width:29px;
    height:29px;
    font-size:14px;
  }

  .right-stack .legend-list b{
    font-size:12px;
    line-height:1.15;
  }

  .right-stack .legend-list small{
    font-size:9px;
    line-height:1.1;
  }
}

/* Monitores mais baixos: mantém o ganho de leitura sem cortar conteúdo. */
@media (min-width:1101px) and (max-height:850px){
  .right-stack .weather-card > h2,
  .right-stack .legend-card > h2{
    padding:10px 11px;
    font-size:13px;
  }

  .right-stack .weather-place{
    padding:11px 11px 1px;
    font-size:11px;
  }

  .right-stack .weather-main{
    padding:4px 11px 4px;
  }

  .right-stack .weather-icon{
    font-size:46px;
  }

  .right-stack .weather-main b{
    font-size:clamp(30px,2.4vw,40px);
  }

  .right-stack .weather-desc{
    padding:3px 11px 11px;
    font-size:11px;
  }

  .right-stack .weather-stats{
    padding:11px;
    font-size:11px;
    line-height:1.55;
    min-height:90px;
  }

  .right-stack .legend-list{
    padding:4px 10px;
  }

  .right-stack .legend-list > div{
    grid-template-columns:28px minmax(0,1fr);
    padding:4px 0;
  }

  .right-stack .legend-list .li{
    width:26px;
    height:26px;
    font-size:13px;
  }

  .right-stack .legend-list b{
    font-size:11px;
  }

  .right-stack .legend-list small{
    font-size:8.5px;
  }
}
