/* Lodestar · Meridian components. Plain CSS over brand/tokens.css: every
   colour, size and radius is a token, so light and dark follow the theme.
   One coral (--accent) button per screen: the next step. The axp- prefix is
   the shared UI-kit class name; the look is Lodestar's. */

/* ---- Button ------------------------------------------------------------ */
.axp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 44px; padding: 0 18px;
  font-family: var(--font-body); font-size: 15px; font-weight: 600; line-height: 1;
  border-radius: var(--radius-md); border: 1px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color 150ms ease-out, border-color 150ms ease-out, color 150ms ease-out;
}
.axp-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.axp-btn:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.axp-btn[disabled], .axp-btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.axp-btn--primary { background: var(--accent); color: var(--on-accent); }
.axp-btn--primary:hover { filter: brightness(1.07); }
.axp-btn--secondary { background: var(--surface-raised); color: var(--ink); border-color: var(--border-control); }
.axp-btn--secondary:hover { background: var(--surface); }
.axp-btn--sea { background: var(--interactive); color: var(--on-interactive); }
.axp-btn--ghost { background: transparent; color: var(--link); padding-inline: 10px; }
.axp-btn--ghost:hover { background: var(--sea-tint); }
.axp-btn--danger { background: var(--danger-tint); color: var(--danger); border-color: var(--danger); }
.axp-btn--danger:hover { filter: brightness(0.97); }
.axp-btn--sm { min-height: 36px; padding: 0 12px; font-size: 14px; }
.axp-btn--block { width: 100%; }

/* ---- StatusChip -------------------------------------------------------- */
.axp-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 9px; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 12px; font-weight: 600; line-height: 1.5;
  white-space: nowrap; border: 1px solid transparent;
}
.axp-chip--success { background: var(--success-tint); color: var(--success); }
.axp-chip--danger  { background: var(--danger-tint);  color: var(--danger); }
.axp-chip--warning { background: var(--warning-tint); color: var(--warning); }
.axp-chip--info    { background: var(--sea-tint);     color: var(--sea); }
.axp-chip--signal  { background: var(--signal-tint);  color: var(--signal-ink); }
.axp-chip--neutral { background: var(--surface); color: var(--ink-muted); border-color: var(--border); }

/* ---- StatTile ---------------------------------------------------------- */
.axp-stat {
  display: grid; align-content: center; gap: var(--space-1);
  min-width: 0; padding: var(--space-3);
  background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.axp-stat__value { font-family: var(--font-mono); font-weight: 500; font-size: 26px; line-height: 1.15; color: var(--ink-heading); font-variant-numeric: tabular-nums; }
.axp-stat__label { font-family: var(--font-body); font-size: 13px; font-weight: 500; color: var(--ink-muted); }

/* ---- Citation ---------------------------------------------------------- */
.axp-cite {
  font-family: var(--font-mono); font-size: .875em; font-weight: 400;
  color: var(--ink-heading); background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 1px 6px; overflow-wrap: anywhere;
}

/* ---- Icon -------------------------------------------------------------- */
.axp-icon, .icon { flex: none; width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.2em; }
