/* Singapore-wide summary strip: PSI, wind and average PM2.5 cards */

.summary-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 14px;
  width: 100%;
  max-width: 760px;
  margin: 18px auto 0;
}

.summary-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  min-height: 150px;
  padding: 18px 16px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.summary-label {
  display: inline-block;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.2;
  white-space: nowrap;
}

.summary-card strong {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.95;
  font-family: "Segoe UI", "Helvetica Neue", sans-serif;
}

.summary-card strong.metric-unavailable {
  font-size: 0.85rem;
  letter-spacing: 0;
  line-height: 1.25;
}

.summary-card small {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.summary-card .band {
  margin-top: 4px;
  align-self: flex-start;
}

/* Severity colours */

.summary-card[data-band="good"] {
  background: #edf7f1;
  border-color: rgba(68, 122, 111, 0.28);
  color: #1c4339;
}

.summary-card[data-band="moderate"] {
  background: #f9f2d7;
  border-color: rgba(167, 123, 42, 0.28);
  color: #4b3d17;
}

.summary-card[data-band="unhealthy"] {
  background: #fbd8bf;
  border-color: rgba(210, 96, 38, 0.55);
  color: #4a2d28;
}

.summary-card[data-band="very-unhealthy"] {
  background: #e6c3dc;
  border-color: rgba(121, 40, 98, 0.6);
  color: #4a1030;
}

.summary-card[data-band="hazardous"] {
  background: #1f2d33;
  border-color: rgba(255, 255, 255, 0.18);
  color: #f3f7f8;
}

.summary-card[data-band="good"] .summary-label,
.summary-card[data-band="good"] small,
.summary-card[data-band="good"] strong,
.summary-card[data-band="good"] .band,
.summary-card[data-band="moderate"] .summary-label,
.summary-card[data-band="moderate"] small,
.summary-card[data-band="moderate"] strong,
.summary-card[data-band="moderate"] .band,
.summary-card[data-band="unhealthy"] .summary-label,
.summary-card[data-band="unhealthy"] small,
.summary-card[data-band="unhealthy"] strong,
.summary-card[data-band="unhealthy"] .band,
.summary-card[data-band="very-unhealthy"] .summary-label,
.summary-card[data-band="very-unhealthy"] small,
.summary-card[data-band="very-unhealthy"] strong,
.summary-card[data-band="very-unhealthy"] .band,
.summary-card[data-band="hazardous"] .summary-label,
.summary-card[data-band="hazardous"] small,
.summary-card[data-band="hazardous"] strong,
.summary-card[data-band="hazardous"] .band {
  color: inherit;
}

.summary-card[data-band="hazardous"] .band {
  color: #fff7f7;
}

@media (max-width: 700px) {
  .summary-strip {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }
}

@media (max-width: 560px) {
  .summary-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .summary-card:nth-child(1),
  .summary-card:nth-child(3) {
    grid-column: span 1;
    order: 1;
  }

  .summary-card.summary-card--wind {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 100%;
    order: 3;
  }

  .summary-card:nth-child(3) {
    order: 2;
  }
}

@media (max-width: 400px) {
  .summary-card .band {
    padding: 7px 8px;
    font-size: 0.76rem;
    letter-spacing: 0;
  }
}
