/* Meteolab 2027 – skupne kartice aktualnih dnevnih ekstremov */

.ml-current-extremes-head {
  margin-bottom: 14px;
  justify-content: flex-start;
  text-align: left;
}

.ml-current-extremes-head > div {
  margin: 0;
}

.ml-current-extremes-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.ml-current-extreme-card {
  min-width: 0;
  min-height: 245px;
  padding: 19px 14px 17px;
  border: 1px solid rgba(15, 23, 42, .10);
  border-radius: 20px;
  background: linear-gradient(180deg, #fff 0%, #fcfdff 100%);
  box-shadow: 0 12px 34px rgba(41, 72, 98, .075);
  display: grid;
  grid-template-rows: 48px 78px 1fr;
  align-items: center;
  justify-items: center;
  text-align: center;
  overflow: hidden;
}

.ml-current-extreme-card h3 {
  width: 100%;
  min-height: 48px;
  margin: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  color: #334155;
  font-size: .84rem;
  line-height: 1.28;
  font-weight: 650;
  text-wrap: balance;
}

.ml-current-extreme-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  color: #0c6fa7;
}

.ml-current-extreme-icon svg {
  width: 60px;
  height: 60px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ml-current-extreme-card strong {
  width: 100%;
  min-width: 0;
  margin: 0;
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #050505;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

.ml-current-extreme-primary {
  display: block;
  width: 100%;
  color: #050505;
  font-size: clamp(1.45rem, 2.1vw, 2rem);
  line-height: 1.05;
  font-weight: 860;
  letter-spacing: -.025em;
  white-space: nowrap;
}

.ml-current-extreme-secondary,
.ml-current-extreme-time {
  display: block;
  width: 100%;
  margin: 0;
  color: #4e5e6c;
  font-size: .78rem;
  line-height: 1.22;
  font-weight: 680;
  font-style: normal;
  font-variant-numeric: tabular-nums;
}

.ml-current-extreme-time {
  margin-top: 2px;
  white-space: normal;
}

@media (max-width: 1100px) {
  .ml-current-extremes-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .ml-current-extremes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ml-current-extreme-card {
    min-height: 225px;
  }
}

@media (max-width: 430px) {
  .ml-current-extremes-grid {
    grid-template-columns: 1fr;
  }

  .ml-current-extreme-card {
    min-height: 220px;
  }
}
