/* ============================================================
   Trail Conditions — NWS Alert Banner
   Injected by js/nws-alerts.js on every primary page.
   ============================================================ */

/* ── NWS Alert Banner ────────────────────────────────────── */
.nws-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-left: 4px solid var(--banner-border);
  background: var(--banner-bg);
  color: var(--banner-text);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  line-height: 1.4;
  margin-bottom: 12px;
  border-radius: 0 6px 6px 0;
  position: relative;
}

.nws-banner__icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.nws-banner__body {
  flex: 1;
  min-width: 0;
}

.nws-banner__title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.nws-banner__headline {
  opacity: 0.85;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nws-banner__meta {
  margin-top: 4px;
  font-size: 0.78rem;
  opacity: 0.7;
}

.nws-banner__dismiss {
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  opacity: 0.5;
  font-size: 1.1rem;
  padding: 0 0 0 8px;
  flex-shrink: 0;
  line-height: 1;
}

.nws-banner__dismiss:hover { opacity: 1; }

/* Stack multiple alerts */
#nws-alert-banner .nws-banner + .nws-banner { margin-top: -4px; }
