/* Paid-User Announcement Banners — standalone stylesheet.
   Loaded directly from base.html (NOT bundle.css) so shipping a copy change
   needs no asset rebuild. Theme-aware via the existing --card/--border/--text
   /--muted tokens from style.css. */

:root {
  --ann-update:#58a6ff;       /* Update — blue  (--thr-blue) */
  --ann-new_feature:#3fb950;  /* New feature — green (--thr-green) */
  --ann-event:#d4a017;        /* Event — amber  (--thr-gold) */
  --ann-emergency:#f85149;    /* Emergency — red (--thr-red) */
  --ann-maintenance:#d9622e;  /* Maintenance — orange (--thr-orange) */
  --ann-tip:#818cf8;          /* Tip / help — indigo (VERSION_COLORS indigo) */
}

.ann-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 0 20px;
}

/* Each type sets --ann-accent, consumed by the pill bg + left accent border. */
.ann-update       { --ann-accent: var(--ann-update); }
.ann-new_feature  { --ann-accent: var(--ann-new_feature); }
.ann-event        { --ann-accent: var(--ann-event); }
.ann-emergency    { --ann-accent: var(--ann-emergency); }
.ann-maintenance  { --ann-accent: var(--ann-maintenance); }
.ann-tip          { --ann-accent: var(--ann-tip); }

.ann-card {
  position: relative;
  background: var(--card, #161b22);
  border: 1px solid var(--border, #30363d);
  border-left: 4px solid var(--ann-accent, var(--border, #30363d));
  border-radius: 10px;
  padding: 14px 16px;
}

.ann-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.ann-pill {
  display: inline-block;
  background: var(--ann-accent, #58a6ff);
  color: #0d1117;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 999px;
}

.ann-ver {
  color: var(--muted, #8b949e);
  font-size: 12px;
  font-weight: 600;
}

.ann-dismiss {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--muted, #8b949e);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  transition: color 0.15s ease;
}
.ann-dismiss:hover { color: var(--text, #e6edf3); }

.ann-title {
  font-weight: 700;
  color: var(--text, #e6edf3);
  margin-bottom: 4px;
}

.ann-body {
  white-space: pre-wrap;            /* preserve admin line breaks, escaped text */
  overflow-wrap: anywhere;          /* wrap long unbroken strings/URLs */
  color: var(--text, #e6edf3);
  line-height: 1.5;
  font-size: 14px;
}

.ann-link {
  display: inline-block;
  margin-top: 8px;
  color: var(--ann-accent, #58a6ff);
  font-weight: 600;
  text-decoration: none;
}
.ann-link:hover { text-decoration: underline; }
