.mod-weather {
  --mod-weather-surface: #f7fafb;
  --mod-weather-panel: #ffffff;
  --mod-weather-panel-strong: #eaf4f7;
  --mod-weather-border: rgba(24, 50, 68, 0.12);
  --mod-weather-border-soft: rgba(24, 50, 68, 0.08);
  --mod-weather-text: #173445;
  --mod-weather-muted: #60788a;
  --mod-weather-accent: #2d708d;
  --mod-weather-shadow: 0 12px 28px rgba(15, 31, 44, 0.08);
  display: block;
  width: 100%;
  box-sizing: border-box;
  color: var(--mod-weather-text);
}

.mod-weather__panel {
  width: 100%;
  box-sizing: border-box;
  background: linear-gradient(180deg, var(--mod-weather-panel) 0%, var(--mod-weather-surface) 100%);
  border: 1px solid var(--mod-weather-border);
  border-radius: 1rem;
  box-shadow: var(--mod-weather-shadow);
  padding: 1rem;
}

.mod-weather__panel--card {
  padding: 0;
  overflow: hidden;
}

.mod-weather__hero {
  padding: 1rem;
  background:
    radial-gradient(circle at top right, rgba(45, 112, 141, 0.16), transparent 42%),
    linear-gradient(180deg, rgba(45, 112, 141, 0.1), rgba(45, 112, 141, 0.03));
}

.mod-weather__header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: flex-start;
}

.mod-weather__heading {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.mod-weather__title,
.mod-weather__location,
.mod-weather__date,
.mod-weather__condition,
.mod-weather__temperature,
.mod-weather__forecast-label,
.mod-weather__forecast-condition,
.mod-weather__forecast-temp,
.mod-weather__provider,
.mod-weather__meta,
.mod-weather__message,
.mod-weather__debug,
.mod-weather__metric,
.mod-weather__section-title,
.mod-weather__forecast-detail {
  margin: 0;
}

.mod-weather__title {
  font-size: 1.16rem;
  font-weight: 700;
  line-height: 1.2;
}

.mod-weather__location {
  color: var(--mod-weather-muted);
}

.mod-weather__date,
.mod-weather__meta,
.mod-weather__provider,
.mod-weather__metric,
.mod-weather__forecast-detail,
.mod-weather__forecast-condition {
  color: var(--mod-weather-muted);
  font-size: 0.92rem;
}

.mod-weather__summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
  margin-top: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.66);
}

.mod-weather__summary--compact {
  padding: 0.75rem 0.8rem;
}

.mod-weather__summary--card {
  background: rgba(255, 255, 255, 0.75);
}

.mod-weather__summary-icon {
  flex: 0 0 3.5rem;
  width: 3.5rem;
}

.mod-weather__summary-icon--card {
  flex-basis: 4rem;
  width: 4rem;
}

.mod-weather__summary-icon img,
.mod-weather__forecast-icon {
  display: block;
  width: 100%;
  height: auto;
}

.mod-weather__summary-main {
  flex: 1 1 12rem;
  min-width: 0;
}

.mod-weather__condition {
  font-weight: 700;
}

.mod-weather__temperature {
  margin-top: 0.15rem;
  font-size: 1.45rem;
  font-weight: 700;
}

.mod-weather__metrics,
.mod-weather__forecast-meta,
.mod-weather__forecast-temp {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.mod-weather__metrics {
  justify-content: flex-end;
  flex: 1 1 12rem;
}

.mod-weather__wind-badge {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  background: rgba(45, 112, 141, 0.08);
  color: var(--mod-weather-text);
  font-size: 0.88rem;
  font-weight: 700;
}

.mod-weather__wind-badge--forecast {
  font-size: 0.8rem;
}

.mod-weather__forecast {
  margin-top: 1rem;
}

.mod-weather__forecast--card {
  padding: 1rem;
  margin-top: 0;
}

.mod-weather__section-title {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mod-weather-muted);
}

.mod-weather__forecast-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.mod-weather--forecast-grid .mod-weather__forecast-list {
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
}

.mod-weather--forecast-cards .mod-weather__forecast-list {
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}

.mod-weather__forecast-item {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.85rem;
  border: 1px solid var(--mod-weather-border-soft);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.82);
}

.mod-weather__forecast-top {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
}

.mod-weather__forecast-label {
  font-weight: 700;
}

.mod-weather__forecast-icon {
  width: 2.4rem;
}

.mod-weather__forecast-temp span:first-child {
  font-weight: 700;
}

.mod-weather__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--mod-weather-border-soft);
}

.mod-weather__footer--card {
  padding: 0 1rem 1rem;
  margin-top: 0;
  border-top: 0;
}

.mod-weather__message {
  color: var(--mod-weather-muted);
}

.mod-weather__debug {
  margin-top: 0.65rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid rgba(123, 54, 54, 0.18);
  border-radius: 0.75rem;
  background: rgba(123, 54, 54, 0.08);
  color: #7b3636;
}

.mod-weather--compact .mod-weather__panel {
  padding: 0.85rem;
}

.mod-weather--compact .mod-weather__title {
  font-size: 1.02rem;
}

.mod-weather--compact .mod-weather__summary {
  gap: 0.65rem;
}

.mod-weather--compact .mod-weather__summary-icon {
  flex-basis: 2.8rem;
  width: 2.8rem;
}

.mod-weather--compact .mod-weather__temperature {
  font-size: 1.22rem;
}

.mod-weather--compact .mod-weather__forecast-item {
  padding: 0.7rem;
}

.mod-weather--card .mod-weather__title {
  font-size: 1.24rem;
}

.mod-weather--card .mod-weather__forecast-item {
  background: rgba(255, 255, 255, 0.9);
}

.mod-weather--wind-colours .wind-calm {
  background: rgba(132, 169, 189, 0.18);
}

.mod-weather--wind-colours .wind-light {
  background: rgba(91, 170, 132, 0.18);
}

.mod-weather--wind-colours .wind-moderate {
  background: rgba(218, 188, 96, 0.2);
}

.mod-weather--wind-colours .wind-fresh {
  background: rgba(228, 150, 78, 0.2);
}

.mod-weather--wind-colours .wind-strong {
  background: rgba(216, 107, 80, 0.2);
}

.mod-weather--wind-colours .wind-gale {
  background: rgba(185, 76, 89, 0.22);
}

.mod-weather--wind-colours .wind-f0,
.mod-weather--wind-colours .wind-f1,
.mod-weather--wind-colours .wind-f2,
.mod-weather--wind-colours .wind-f3,
.mod-weather--wind-colours .wind-f4,
.mod-weather--wind-colours .wind-f5,
.mod-weather--wind-colours .wind-f6,
.mod-weather--wind-colours .wind-f7plus {
  border: 1px solid rgba(23, 52, 69, 0.08);
}

@media (max-width: 600px) {
  .mod-weather__summary,
  .mod-weather__metrics,
  .mod-weather__footer {
    align-items: flex-start;
  }

  .mod-weather__summary,
  .mod-weather__metrics {
    justify-content: flex-start;
  }
}
