/* ─────────────────────────────────────────────────────────────────
   css/a11y-violation-overlay.css

   Phase E WYSIWYG polish — visuals for a11y-violation-overlay.js.
   Red ring + corner badge ⚠️ on tiles that violate the board's
   enforced accessibility rules. Pill in topbar toggles the overlay.
   ───────────────────────────────────────────────────────────────── */

/* Topbar pill, off-state inherits .topbar-btn-outline (amber on hover).
   Active state turns red so it reads as "diagnostic on". */
.topbar-a11y-check-btn {
  font-size: 13px;
  letter-spacing: 0.01em;
}
.topbar-a11y-check-btn[aria-pressed="true"] {
  background: #DC2626;          /* red-600 */
  color: #fff;
  border-color: #DC2626;
}
.topbar-a11y-check-btn[aria-pressed="true"]:hover {
  background: #B91C1C;          /* red-700 */
  border-color: #B91C1C;
  color: #fff;
}

/* Tiles that flunk a rule — only painted when overlay is on. */
body.a11y-overlay-on .tile.a11y-violation {
  outline: 3px solid #DC2626;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.18);
  position: relative;
  z-index: 1;
}

/* The corner badge. Anchored top-right so it doesn't clash with the
   existing top-left delete-X button. */
.tile-a11y-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #DC2626;
  color: #fff;
  font-size: 14px;
  line-height: 24px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  cursor: help;
  user-select: none;
  /* Above tile contents but below modals. */
  z-index: 2;
}

/* Tooltip is browser-native via title="". No JS popover needed —
   keeps the overlay diagnostic, not interactive. */
