.edaj-weather {
  --edaj-bg: #080b0f;
  --edaj-panel: #111720;
  --edaj-line: #273343;
  --edaj-text: #f3f7fb;
  --edaj-muted: #8d9bad;
  --edaj-current: #20ef45;
  --edaj-avg: #8793a3;
  --edaj-max: #ffc928;
  box-sizing: border-box;
  background: var(--edaj-bg);
  color: var(--edaj-text);
  border: 1px solid var(--edaj-line);
  border-radius: 16px;
  padding: 20px;
  width: 100%;
  font-family: Arial, Helvetica, sans-serif;
}

.edaj-weather *,
.edaj-weather *::before,
.edaj-weather *::after {
  box-sizing: border-box;
}

.edaj-weather__top,
.edaj-weather__hero,
.edaj-weather__legend {
  display: flex;
  align-items: center;
}

.edaj-weather__top {
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.edaj-weather__brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .02em;
}

.edaj-weather__live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--edaj-current);
  box-shadow: 0 0 14px rgba(32, 239, 69, .75);
}

.edaj-weather__status {
  color: var(--edaj-muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.edaj-weather__hero {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: stretch;
  margin-bottom: 12px;
}

.edaj-weather__hero-box,
.edaj-weather__runway,
.edaj-weather__card {
  background: var(--edaj-panel);
  border: 1px solid var(--edaj-line);
  border-radius: 12px;
}

.edaj-weather__hero-box {
  padding: 18px;
  min-width: 0;
}

.edaj-weather__hero-label,
.edaj-weather__card h3 {
  color: #dbe4ee;
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 7px;
}

.edaj-weather__hero-value {
  color: var(--edaj-current);
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.edaj-weather__hero-sub,
.edaj-weather__detail {
  min-height: 18px;
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.35;
}

.edaj-weather__runway {
  display: flex;
  min-width: 145px;
  padding: 14px 18px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.edaj-weather__runway-kicker {
  color: var(--edaj-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 4px;
}

.edaj-weather__runway strong {
  color: var(--edaj-current);
  font-size: 27px;
  white-space: nowrap;
}

.edaj-weather__legend {
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  margin: 6px 0 14px;
  color: var(--edaj-muted);
  font-size: 12px;
}

.edaj-weather__legend span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.edaj-weather__legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.edaj-weather__legend .is-current { background: var(--edaj-current); }
.edaj-weather__legend .is-avg { background: var(--edaj-avg); }
.edaj-weather__legend .is-max { background: var(--edaj-max); }

.edaj-weather__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.edaj-weather__card {
  padding: 14px;
  min-height: 108px;
}

.edaj-weather__value {
  color: var(--edaj-current);
  font-size: clamp(22px, 3vw, 31px);
  font-weight: 800;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.edaj-weather__avg { color: var(--edaj-avg); }
.edaj-weather__max { color: var(--edaj-max); font-weight: 700; }
.edaj-weather__sep { color: #4f5d6e; }

.edaj-weather__error {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid #7c3131;
  border-radius: 8px;
  background: rgba(124, 49, 49, .18);
  color: #ffb8b8;
  font-size: 13px;
}

.edaj-weather.is-error .edaj-weather__live-dot {
  background: #d35b5b;
  box-shadow: none;
}

@media (max-width: 900px) {
  .edaj-weather__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .edaj-weather {
    padding: 12px;
    border-radius: 12px;
  }

  .edaj-weather__top {
    align-items: flex-start;
    flex-direction: column;
  }

  .edaj-weather__hero {
    grid-template-columns: 1fr 1fr;
  }

  .edaj-weather__runway {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .edaj-weather__hero-box {
    padding: 14px;
  }

  .edaj-weather__hero-value {
    font-size: 31px;
  }

  .edaj-weather__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 420px) {
  .edaj-weather__hero,
  .edaj-weather__grid {
    grid-template-columns: 1fr;
  }

  .edaj-weather__runway {
    grid-column: auto;
    grid-row: auto;
  }
}


.edaj-weather.is-stale .edaj-weather__live-dot {
  background: var(--edaj-max);
  box-shadow: 0 0 12px rgba(255, 201, 40, .55);
}

.edaj-weather.is-stale .edaj-weather__status {
  color: var(--edaj-max);
}
