/* Meteolab 2027 – besedilna napoved */

.ml-forecast-page .ml-section {
  scroll-margin-top: 90px;
}

.mln-summary,
.mln-five-day,
.mln-full-forecast,
.mln-warning,
.mln-links {
  width: 100%;
  max-width: none;
  margin-bottom: 22px;
}

.mln-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(20px, 2.4vw, 28px);
  border-left: 5px solid #002050;
  background:
    linear-gradient(135deg, rgba(21,130,199,.10), rgba(21,130,199,.025)),
    #fff;
}

.mln-summary h2 {
  max-width: 900px;
  margin: 3px 0 0;
  color: #0f172a;
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  line-height: 1.45;
}

.mln-issued {
  flex: 0 0 220px;
  margin: 0;
  text-align: right;
}

.mln-issued span,
.mln-issued small {
  display: block;
  color: #64748b;
  font-size: .72rem;
}

.mln-issued strong {
  display: block;
  margin: 3px 0;
  color: #334155;
  font-size: .84rem;
}

.mln-five-day,
.mln-full-forecast,
.mln-warning,
.mln-links {
  padding: clamp(20px, 2.4vw, 28px);
}

.mln-days {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 16px;
}

.mln-day {
  min-width: 0;
  padding: 16px 12px;
  border-right: 1px solid rgba(15,23,42,.08);
  background: linear-gradient(180deg, #fff, #f8fbfd);
  text-align: center;
}

.mln-day:last-child {
  border-right: 0;
}

.mln-day header {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 7px;
}

.mln-day header strong {
  color: #0f172a;
  font-size: .88rem;
}

.mln-day header span {
  color: #64748b;
  font-size: .69rem;
}

.mln-day img {
  display: block;
  width: 62px;
  height: 62px;
  margin: 7px auto 5px;
  object-fit: contain;
}

.mln-day-desc {
  min-height: 38px;
  margin: 0 0 8px;
  color: #475569;
  font-size: .73rem;
  font-weight: 700;
  line-height: 1.35;
}

.mln-temp {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  font-variant-numeric: tabular-nums;
}

.mln-temp span {
  color: #2563eb;
  font-size: .83rem;
  font-weight: 750;
}

.mln-temp strong {
  color: #dc2626;
  font-size: 1.04rem;
}

.mln-day-wind {
  min-height: 18px;
  margin: 7px 0 0;
  color: #64748b;
  font-size: .66rem;
}

.mln-day-wind strong {
  color: #334155;
}

.mln-full-forecast .ml-section-head,
.mln-warning .ml-section-head {
  margin-bottom: 14px;
}

.mln-prose {
  max-width: 980px;
  color: #334155;
  font-size: clamp(.96rem, 1.1vw, 1.04rem);
  line-height: 1.72;
}

.mln-prose h3 {
  margin: 24px 0 7px;
  color: #0f172a;
  font-size: 1.05rem;
}

.mln-prose h3:first-child {
  margin-top: 0;
}

.mln-prose p {
  margin: 0;
}

.mln-prose p + p {
  margin-top: 8px;
}

.mln-warning {
  border-left: 5px solid #f59e0b;
  background: linear-gradient(135deg, #fff8e8, #fff);
}

.mln-warning h2 {
  color: #92400e;
}

.mln-warning-text {
  max-width: 980px;
  color: #5f3b0b;
  line-height: 1.65;
}

.mln-warning-text p {
  margin: 0;
}

.mln-warning-text p + p {
  margin-top: 8px;
}

.mln-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.mln-links h2 {
  margin: 0 0 5px;
  color: #0f172a;
  font-size: 1.1rem;
}

.mln-links p {
  max-width: 700px;
  margin: 0;
  color: #64748b;
  line-height: 1.5;
}

.mln-links nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.mln-links a {
  padding: 8px 13px;
  border: 1px solid rgba(21,130,199,.22);
  border-radius: 999px;
  background: #eaf5fc;
  color: #0d5f9c;
  font-size: .76rem;
  font-weight: 800;
  text-decoration: none;
}

.mln-links a:hover {
  border-color: #002050;
  background: #002050;
  color: #fff;
}

@media (max-width: 900px) {
  .mln-days {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: inline mandatory;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }

  .mln-day {
    flex: 0 0 155px;
    scroll-snap-align: start;
  }

  .mln-summary,
  .mln-links {
    align-items: flex-start;
    flex-direction: column;
  }

  .mln-issued {
    flex: none;
    text-align: left;
  }

  .mln-links nav {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .mln-summary,
  .mln-five-day,
  .mln-full-forecast,
  .mln-warning,
  .mln-links {
    padding: 18px;
  }

  .mln-day {
    flex-basis: 145px;
  }

  .mln-prose,
  .mln-warning-text {
    font-size: .95rem;
  }

  .mln-links nav {
    width: 100%;
  }

  .mln-links a {
    flex: 1 1 auto;
    text-align: center;
  }
}


/* V4: hero že vsebuje datum objave, zato je povzetek enostolpčen. */
.mln-summary {
  display: block;
}

.mln-summary-source {
  display: block;
  margin-top: 8px;
  color: #64748b;
  font-size: .72rem;
}


/* V6 – optimizirane petdnevne kartice */
.mln-day {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 226px;
  padding: 16px 14px 14px;
}

.mln-day img {
  width: 64px;
  height: 64px;
  margin: 7px auto 3px;
}

.mln-day-desc {
  min-height: 0;
  margin: 0 0 12px;
  font-size: .76rem;
  line-height: 1.32;
}

.mln-temp {
  margin-top: auto;
  gap: 11px;
}

.mln-temp span,
.mln-temp strong {
  font-size: 1.08rem;
  line-height: 1.1;
  font-weight: 800;
}

.mln-day-wind {
  min-height: 20px;
  margin: 8px 0 0;
  color: #475569;
  font-size: .76rem;
  line-height: 1.3;
}

.mln-day-wind strong {
  color: #0f172a;
  font-weight: 800;
}

@media (max-width: 640px) {
  .mln-day {
    min-height: 214px;
  }

  .mln-temp span,
  .mln-temp strong {
    font-size: 1.02rem;
  }

  .mln-day-wind {
    font-size: .73rem;
  }
}


/* V7 – kompaktnejše petdnevne kartice brez navidezno praznega prostora */
.mln-day {
  min-height: 0;
  height: auto;
  justify-content: flex-start;
  padding: 15px 14px 14px;
}

.mln-day-desc {
  min-height: 0;
  margin-bottom: 10px;
}

.mln-temp {
  margin-top: 0;
}

.mln-day-wind {
  min-height: 0;
  margin-top: 7px;
}

/*
 * Pri dnevih brez vetra kartica ne rezervira prazne vrstice.
 * Vse kartice se višinsko poravnajo po najvišji vsebini v vrstici,
 * vendar brez umetnega prostora med opisom in temperaturami.
 */
.mln-days {
  align-items: stretch;
}

.mln-day {
  align-self: stretch;
}

@media (max-width: 640px) {
  .mln-day {
    min-height: 0;
  }
}


/* V8 – vir pod uradno napovedjo */
.mln-forecast-source {
  margin: 22px 0 0;
  padding-top: 12px;
  border-top: 1px solid rgba(15, 23, 42, .08);
  color: #64748b;
  font-size: .74rem;
  line-height: 1.4;
}
