/* Compact weather cards for the landing aside */

.hub-weather-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  align-items: stretch;
  width: 19.5rem;
  max-width: 100%;
}

.hub-weather-card {
  position: relative;
  aspect-ratio: 3 / 4.15;
  min-height: 0;
  margin: 0;
  padding: 0.55rem 0.5rem 0.55rem;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.16);
  background: #2a3340 center / cover no-repeat;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

.hub-weather-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.22) 0%, rgba(0, 0, 0, 0.42) 55%, rgba(0, 0, 0, 0.52) 100%);
  z-index: -1;
  pointer-events: none;
}

.hub-weather-card__head {
  width: 100%;
  position: relative;
  padding-right: 0.95rem;
}

.hub-weather-card__place {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.15;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75);
}

.hub-weather-card__time {
  margin-top: 0.12rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  opacity: 0.95;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}

.hub-weather-card__globe {
  position: absolute;
  top: 0;
  right: 0;
  width: 1rem;
  height: 1rem;
  color: #fff;
  opacity: 0.9;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.7));
}

.hub-weather-card__globe:hover {
  opacity: 1;
  color: #fff;
}

.hub-weather-card__globe svg {
  width: 1rem;
  height: 1rem;
}

.hub-weather-card__glyph {
  width: 2.75rem;
  height: 2.75rem;
  object-fit: contain;
  margin: 0.35rem 0 0.2rem;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

.hub-weather-card__temp {
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.15;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75);
}

.hub-weather-card__desc {
  margin-top: 0.15rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75);
}

.hub-weather-card__stats {
  margin-top: auto;
  padding-top: 0.35rem;
  width: 100%;
  text-align: left;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.35;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75);
}

.hub-weather-default {
  grid-column: 1 / -1;
  margin: 0.1rem 0 0;
  font-size: 0.75rem;
  color: var(--hub-muted, #6c757d);
}

@media (max-width: 991px) {
  .hub-weather-stack {
    width: min(22rem, 100%);
  }
}
