.slide-meteo { padding: 1rem 1.25rem; }
.slide-meteo p { margin: 0; }

.wx-head { margin-bottom: .5rem; opacity: .85; font-size: .95rem; }

.wx-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: .75rem;
}
@media (min-width: 768px) {
  .wx-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
}

.wx-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  padding: .75rem .9rem;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
  line-height: 1.25rem;
}

.wx-card b { font-size: 1.05rem; font-weight: 700; }

.wx-extra {
  margin-top: .75rem;
  font-size: .95rem;
  padding: .75rem .9rem;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(0,0,0,.03), rgba(0,0,0,.01));
  border: 1px solid rgba(0,0,0,.06);
}


# css box contenedor text
<style>
.wx-card {
    background:#fff;
    border:1px solid #e6e9ef;
    border-radius:16px;
    box-shadow:0 2px 10px rgba(20,28,38,.06);
    overflow:hidden;
    margin:16px 0;
}
.wx-head {
    padding:12px 16px;
    font-weight:600;
    font-size:1rem;
    background:linear-gradient(135deg,#0a4f8f 0%, #2978b5 70%);
    color:#fff;
}
.wx-body {
    padding:14px 16px;
}
.scroll-box {
		height:300px;
    overflow-y:auto;
    line-height:1.4;
    font-size:15px;
}
.scroll-box::-webkit-scrollbar {
    width:8px;
}
.scroll-box::-webkit-scrollbar-thumb {
    background:#cbd5e1;
    border-radius:4px;
}
.scroll-box::-webkit-scrollbar-thumb:hover {
    background:#94a3b8;
}
</style>



# css caixa resum d ahir
<style>
/* mateixa caixa de 300px i scroll que a la resta */
.scroll-box{
  height:300px;
  overflow:auto;
  overscroll-behavior:contain;
}

.image-row{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:8px;
  margin-bottom:10px;
}

.responsive-image{
  width:100%;
  height:auto;           /* 🔹 Deixa que l’alçada s’ajusti sola */
  object-fit:contain;    /* 🔹 Mostra la imatge sencera */
  border-radius:10px;
  border:1px solid #e6e9ef;
  background:#f7f9fc;
}

</style>



/* --- Taules de dades (pluja, històric) --- */
table.wx-table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  min-width:520px;
  font-size:15px;
}
.wx-table thead th{
  position:sticky; top:0; z-index:1;
  background:#f7f9fc; color:#111827;
  text-align:left; font-weight:600;
  padding:10px 12px; border-bottom:1px solid #e5e7eb;
}
.wx-table tbody td{
  padding:10px 12px;
  border-bottom:1px solid #f0f2f7;
  white-space:nowrap;
}
.wx-table tbody tr:nth-child(odd){ background:#fff; }
.wx-table tbody tr:nth-child(even){ background:#fafbff; }
.wx-table tbody tr:hover{ background:#f0f6ff; }

/* --- Previsió: carrusel horitzontal --- */
.prevision-container{
  border:1px solid #e6e9ef; border-radius:12px; padding:8px;
  background:#f7f9fc; margin-bottom:8px;
}
.scroll-x{
  display:flex; gap:8px; align-items:stretch;
  overflow-x:auto; overflow-y:hidden;
  -webkit-overflow-scrolling:touch;
  scroll-snap-type:x mandatory;
  overscroll-behavior-x:contain;
  padding-bottom:6px;
  min-height:120px;
}
.scroll-x > *{ flex:0 0 auto; scroll-snap-align:start; }
.scroll-x img{ display:block; height:100px; width:auto; }

@media (max-width:640px){
  .scroll-x img{ height:90px; }
}




#meteogerama
.scroll-box {
  overflow-y: auto;
  overscroll-behavior: contain;
  line-height: 1.4;
  font-size: 15px;
}
.scroll-box::-webkit-scrollbar {
  width: 8px;
}
.scroll-box::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
.scroll-box::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}
.wx-note {
  font-size: .9rem;
  opacity: .8;
  margin: 6px 0;
}

/* Scroll només per al meteograma */
.scroll-box-meteograma {
  height: 610px;
  overflow-y: auto;
  line-height: 1.4;
  font-size: 15px;
}

.scroll-box-meteograma::-webkit-scrollbar {
  width: 8px;
}
.scroll-box-meteograma::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
.scroll-box-meteograma::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

html, body { overflow-x: hidden; }
