/* ============================================================
   Currency Badge — source-traceable regulatory-text metadata
   Uses v13.css design tokens; no new colour or font dependencies.
   ============================================================ */

.badge-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  line-height: 1.7;
  color: var(--ink-dim);
  margin: 0.5rem 0 0;
  padding: 0.6rem 0;
  border-top: 1px solid var(--line);
}

/* Status pill */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.1em;
  font-weight: 500;
  padding: 0.2rem 0.55rem;
  border-radius: 3px;
  text-transform: uppercase;
  flex: none;
}

.badge-pill.is-force {
  background: rgba(91, 155, 213, 0.12);
  color: var(--accent);
  border: 1px solid rgba(91, 155, 213, 0.3);
}

.badge-pill.is-pending {
  background: rgba(217, 160, 54, 0.12);
  color: #d9a036;
  border: 1px solid rgba(217, 160, 54, 0.3);
}

.badge-pill.is-transitional {
  background: rgba(233, 237, 243, 0.06);
  color: var(--ink-dim);
  border: 1px solid var(--line-strong);
}

/* Separator dot */
.badge-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--line-strong);
  flex: none;
}

/* Version text — explicit, not hover-revealed */
.badge-version {
  color: var(--ink);
  font-weight: 500;
}

/* EUR-Lex link */
.badge-source {
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}
.badge-source:hover {
  text-decoration: underline;
}

/* Checked date */
.badge-checked {
  color: var(--ink-dim);
}

/* Update-pending note — shown when the diff fails */
.badge-pending-note {
  color: #d9a036;
  font-style: italic;
}

/* "Not an official publication" disclaimer — tiny, always present */
.badge-disclaim {
  display: block;
  width: 100%;
  margin-top: 0.2rem;
  font-family: var(--mono);
  font-size: 0.52rem;
  letter-spacing: 0.06em;
  color: var(--ink-dim);
  opacity: 0.65;
  line-height: 1.6;
}
.badge-disclaim a {
  color: var(--ink-dim);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Compact variant — for list pages and table rows */
.badge-wrap.is-compact {
  gap: 0.4rem 0.7rem;
  font-size: 0.56rem;
  padding: 0.3rem 0;
  border-top: none;
}
.badge-wrap.is-compact .badge-pill {
  font-size: 0.5rem;
  padding: 0.1rem 0.4rem;
}
.badge-wrap.is-compact .badge-disclaim {
  display: none;
}

/* Light theme overrides */
html[data-theme="light"] .badge-pill.is-force {
  background: rgba(91, 155, 213, 0.08);
}
html[data-theme="light"] .badge-pill.is-pending {
  background: rgba(217, 160, 54, 0.08);
}