.cyber-weather {
  --weather-accent: #f2b84b;
  --weather-soft: rgba(242, 184, 75, .12);
  position: relative;
  display: grid;
  grid-template-columns: 180px minmax(0, 1.15fr) minmax(300px, .85fr);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 16px;
  background: #171d2b;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

.cyber-weather--calm {
  --weather-accent: #45c7a1;
  --weather-soft: rgba(69, 199, 161, .12);
}

.cyber-weather--elevated {
  --weather-accent: #ff9562;
  --weather-soft: rgba(255, 149, 98, .12);
}

.cyber-weather--storm {
  --weather-accent: #ff626f;
  --weather-soft: rgba(255, 98, 111, .13);
}

.cyber-weather--critical {
  --weather-accent: #ff3f5f;
  --weather-soft: rgba(255, 63, 95, .15);
}

.cyber-weather__bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--weather-accent);
}

.cyber-weather__overview,
.cyber-weather__report,
.cyber-weather__briefing {
  min-width: 0;
  padding: 22px;
}

.cyber-weather__overview,
.cyber-weather__report {
  border-right: 1px solid rgba(255, 255, 255, .08);
}

.cyber-weather__overview {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 14px;
  background: var(--weather-soft);
}

.cyber-weather__eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(230, 237, 246, .7);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.cyber-weather__live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--weather-accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--weather-accent) 18%, transparent);
}

.cyber-weather__score {
  width: 108px;
  height: 108px;
  padding: 8px;
  border-radius: 50%;
  background: conic-gradient(var(--weather-accent) calc(var(--weather-score) * 1%), rgba(255, 255, 255, .09) 0);
}

.cyber-weather__score-inner {
  width: 100%;
  height: 100%;
  display: grid;
  place-content: center;
  text-align: center;
  border-radius: 50%;
  background: #171d2b;
}

.cyber-weather__score strong {
  color: #fff;
  font-size: 32px;
  line-height: 1;
}

.cyber-weather__score span {
  margin-top: 3px;
  color: rgba(230, 237, 246, .55);
  font-size: 10px;
}

.cyber-weather__condition {
  display: inline-flex;
  border: 1px solid color-mix(in srgb, var(--weather-accent) 42%, transparent);
  border-radius: 999px;
  padding: 5px 9px;
  color: rgba(255, 255, 255, .92);
  background: var(--weather-soft);
  font-size: 11px;
  font-weight: 700;
}

.cyber-weather__updated {
  margin: 7px 0 0;
  color: rgba(230, 237, 246, .72);
  font-size: 10px;
}

.cyber-weather__report {
  display: grid;
  align-content: center;
  gap: 13px;
}

.cyber-weather__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.cyber-weather__heading h2,
.cyber-weather__heading p,
.cyber-weather__report h3,
.cyber-weather__summary {
  margin: 0;
}

.cyber-weather__heading h2 {
  color: #fff;
  font-size: 19px;
}

.cyber-weather__heading p {
  margin-top: 4px;
  color: rgba(230, 237, 246, .55);
  font-size: 11px;
}

.cyber-weather__trend {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(255, 255, 255, .06);
  color: rgba(230, 237, 246, .7);
  font-size: 10px;
  text-transform: uppercase;
}

.cyber-weather__trend--improving {
  color: #45c7a1;
}

.cyber-weather__trend--worsening {
  color: #ff7a86;
}

.cyber-weather__report > h3 {
  max-width: 700px;
  color: rgba(255, 255, 255, .94);
  font-size: 23px;
  line-height: 1.2;
}

.cyber-weather__summary {
  color: rgba(230, 237, 246, .72);
  font-size: 13px;
  line-height: 1.55;
}

.cyber-weather__dominant {
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(230, 237, 246, .5);
  font-size: 10px;
  text-transform: uppercase;
}

.cyber-weather__dominant strong {
  color: var(--weather-accent);
  font-size: 11px;
}

.cyber-weather__signals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.cyber-weather__signal {
  min-width: 0;
}

.cyber-weather__signal > div {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 6px;
  color: rgba(230, 237, 246, .62);
  font-size: 9px;
}

.cyber-weather__signal strong {
  color: rgba(255, 255, 255, .82);
  font-weight: 600;
}

.cyber-weather__meter {
  display: block;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
}

.cyber-weather__meter i {
  display: block;
  width: 35%;
  height: 100%;
  border-radius: inherit;
  background: #45c7a1;
}

.cyber-weather__meter--moderate i {
  width: 55%;
  background: #f2b84b;
}

.cyber-weather__meter--high i {
  width: 76%;
  background: #ff9562;
}

.cyber-weather__meter--severe i {
  width: 100%;
  background: #ff626f;
}

.cyber-weather__briefing {
  display: grid;
  align-content: center;
  gap: 12px;
}

.cyber-weather__briefing-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cyber-weather__briefing-head h3 {
  margin: 0;
  color: rgba(255, 255, 255, .88);
  font-size: 13px;
}

.cyber-weather__briefing-head a {
  color: var(--weather-accent);
  font-size: 10px;
}

.cyber-weather__stories {
  display: grid;
}

.cyber-weather__story {
  display: grid;
  grid-template-columns: 6px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid rgba(255, 255, 255, .07);
}

.cyber-weather__severity {
  width: 5px;
  height: 26px;
  border-radius: 999px;
  background: #45c7a1;
}

.cyber-weather__severity--medium {
  background: #f2b84b;
}

.cyber-weather__severity--high {
  background: #ff9562;
}

.cyber-weather__severity--critical {
  background: #ff626f;
}

.cyber-weather__story-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.cyber-weather__story-meta {
  overflow: hidden;
  color: rgba(230, 237, 246, .68);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cyber-weather__story-copy strong {
  display: -webkit-box;
  overflow: hidden;
  color: rgba(255, 255, 255, .82);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.cyber-weather__arrow {
  color: rgba(230, 237, 246, .4);
  font-size: 13px;
}

.cyber-weather__empty {
  margin: 0;
  color: rgba(230, 237, 246, .5);
  font-size: 12px;
}

@media (max-width: 1050px) {
  .cyber-weather {
    grid-template-columns: 160px minmax(0, 1fr);
  }

  .cyber-weather__report {
    border-right: 0;
  }

  .cyber-weather__briefing {
    grid-column: 1 / -1;
    border-top: 1px solid rgba(255, 255, 255, .08);
  }
}

@media (max-width: 680px) {
  .cyber-weather {
    grid-template-columns: 1fr;
  }

  .cyber-weather__overview {
    grid-template-columns: auto 1fr;
    align-items: center;
    justify-items: start;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
  }

  .cyber-weather__eyebrow {
    grid-column: 1 / -1;
  }

  .cyber-weather__score {
    width: 82px;
    height: 82px;
  }

  .cyber-weather__score strong {
    font-size: 25px;
  }

  .cyber-weather__report {
    border-right: 0;
  }

  .cyber-weather__signals {
    grid-template-columns: 1fr;
  }

  .cyber-weather__briefing {
    grid-column: auto;
  }
}
