:root {
  --accent: #0d6efd;
  --card-bg: #f8f9fa;
  --border: #dce2e8;
  --text: #1f2933;
  --muted: #556070;
  font-family: 'Source Sans Pro', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.6;
}

a {
  color: var(--accent);
}

.site-header,
.site-footer {
  padding: 1.5rem;
  background: #0f172a;
  color: #fff;
}

.site-header h1,
.site-header h2,
.site-header p {
  margin: 0.25rem 0;
}

main {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.5rem;
}

.pass-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  list-style: none;
  padding: 0;
}

.pass-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  background: var(--card-bg);
}

.pass-card h3 {
  margin-top: 0;
}

.status-card,
.weather-card,
.info-card,
.snapshot-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  background: var(--card-bg);
}

.status-card h2,
.weather-card h2 {
  margin-top: 0;
}

.status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.status-row div {
  flex: 1;
  min-width: 200px;
}

.weather-metrics {
  list-style: none;
  padding: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.weather-metrics li {
  margin-bottom: 0.25rem;
}

.alerts-list,
.hourly-list,
.reason-list {
  list-style: disc;
  padding-left: 1.5rem;
}

.reason-list {
  margin: 0.5rem 0 1rem;
}

.hero {
  margin-bottom: 2rem;
}

.hero p {
  max-width: 50ch;
}

.contact-list,
.inline-list {
  list-style: none;
  padding: 0;
}

.contact-list li,
.inline-list li {
  margin-bottom: 0.5rem;
}

.error-text {
  color: #b42318;
  font-weight: 600;
}

.monitoring-badge {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  font-size: 0.9rem;
  color: var(--muted);
}

.snapshot-header h2 {
  margin: 0 0 0.25rem;
}

.snapshot-columns {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.inference-column,
.weather-column {
  flex: 1;
  min-width: 260px;
}

.inference-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.inference-block {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem;
  background: #fff;
}

.inference-label {
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.inference-level {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
}

.inference-action {
  font-weight: 600;
  margin: 0;
}

.data-note {
  font-size: 0.85rem;
  color: var(--muted);
}

.weather-icon {
  display: inline-block;
  margin-right: 0.4rem;
  font-size: 1.1rem;
  line-height: 1;
  vertical-align: -0.1rem;
}

#weather-summary {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.conditions-panel {
  margin: 0.75rem 0 1rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  font-size: 0.9rem;
  color: var(--muted);
}

.conditions-panel summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  list-style: none;
}

.conditions-panel summary::-webkit-details-marker {
  display: none;
}

.conditions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 0.75rem;
  margin-top: 0.75rem;
  color: var(--text);
}

.conditions-key {
  font-weight: 600;
  color: var(--muted);
}

.conditions-value {
  color: var(--text);
}

.weather-column h4 {
  margin-bottom: 0.35rem;
}

.error-text {
  margin-top: 0.75rem;
}

@media (max-width: 640px) {
  main {
    padding: 1rem;
  }

  .monitoring-badge {
    justify-content: flex-start;
    flex-direction: column;
  }

  .conditions-grid {
    grid-template-columns: 1fr;
  }
}
