/* E-Safe Tools • AirNow AQI
   Front end typography and tokens matched to E-Safe Tools • Public Safety & Alerts.
   All selectors are scoped to .esafe-aqi to prevent styling bleed into other shortcodes. */

.esafe-aqi {
  --esafe-aqi-primary: #1e5476;
  --esafe-aqi-text: #15394f;
  --esafe-aqi-muted: #235a7d;
  --esafe-aqi-border: #d4dee6;
  --esafe-aqi-soft: #d7e4ec;
  --esafe-aqi-bg: #ffffff;

  font-family: "Newsreader", Georgia, serif;
  color: var(--esafe-aqi-text);
}

.esafe-aqi a {
  color: inherit;
  text-decoration: none;
}

.esafe-aqi a:hover {
  text-decoration: none;
}

.esafe-aqi-section {
  margin: 18px 0 28px 0;
}

.esafe-aqi-section-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 14px 0;
  padding: 0;
  color: var(--esafe-aqi-text);
}

.esafe-aqi-section-summary {
  margin-top: -10px;
  margin-bottom: 14px;
  font-size: 13.5px;
  color: var(--esafe-aqi-muted);
  line-height: 1.35;
  opacity: 0.95;
  max-width: 980px;
}

.esafe-aqi-card {
  background: var(--esafe-aqi-bg);
  border: 1px solid var(--esafe-aqi-border);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  padding: 14px;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.esafe-aqi-card:hover {
  background: var(--esafe-aqi-soft);
  border-color: var(--esafe-aqi-border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.esafe-aqi-card-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: var(--esafe-aqi-text);
  line-height: 1.25;
}

.esafe-aqi-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 12.5px;
  color: var(--esafe-aqi-muted);
  opacity: 0.9;
}

.esafe-aqi-meta-item {
  display: inline-block;
}

.esafe-aqi-card-area {
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 8px 0;
  color: var(--esafe-aqi-primary);
}

.esafe-aqi-aqirow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 8px 0;
}

.esafe-aqi-number {
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  margin: 0;
  color: var(--esafe-aqi-text);
}

.esafe-aqi-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
}

.esafe-aqi-neutral {
  background: var(--esafe-aqi-bg);
  border: 1px solid var(--esafe-aqi-border);
  color: var(--esafe-aqi-muted);
}

.esafe-aqi-card-summary {
  font-size: 14px;
  margin: 0;
  color: var(--esafe-aqi-muted);
  line-height: 1.35;
}

.esafe-aqi-controls {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--esafe-aqi-border);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.esafe-aqi-control-btn {
  height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--esafe-aqi-border);
  background: var(--esafe-aqi-bg);
  color: var(--esafe-aqi-primary);
  font-size: 12.5px;
  line-height: 34px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.esafe-aqi-control-btn:hover {
  background: var(--esafe-aqi-soft);
}

.esafe-aqi-control-btn:focus {
  outline: 2px solid var(--esafe-aqi-soft);
  outline-offset: 2px;
}

.esafe-aqi-control-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.esafe-aqi-control-btn-primary {
  background: var(--esafe-aqi-primary);
  border-color: var(--esafe-aqi-primary);
  color: #ffffff;
}

.esafe-aqi-control-btn-primary:hover {
  background: var(--esafe-aqi-text);
  border-color: var(--esafe-aqi-text);
}

.esafe-aqi-zipwrap {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.esafe-aqi-zip {
  height: 34px;
  width: 92px;
  border-radius: 8px;
  border: 1px solid var(--esafe-aqi-border);
  padding: 0 10px;
  font-size: 12.5px;
  color: var(--esafe-aqi-text);
}

.esafe-aqi-foot {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--esafe-aqi-muted);
  opacity: 0.9;
}

.esafe-aqi-debug {
  background: var(--esafe-aqi-bg);
  border: 1px solid var(--esafe-aqi-border);
  border-radius: 8px;
  padding: 14px;
  color: var(--esafe-aqi-muted);
  font-size: 12.5px;
  white-space: pre;
  margin: 0 0 14px 0;
}
