/*
 * The shared AI Use footer item (plan row 1.216a). Plain CSS, outside any @layer, so it wins over
 * utilities that sit in a native cascade layer (Tailwind v4's). Against unlayered utilities,
 * specificity and order still decide, so a site removes the button's layout utilities.
 * Markup: ai-use-item.html. Contract: README.md.
 *
 * Three lines do the work, one per fault that kept recurring (row 1.215):
 *   1. display: inline-block on the baseline. A flex button takes its baseline
 *      from its icon, which sat the item 3px low.
 *   2. line-height: inherit. A button does not inherit it, so the item's line
 *      box differed from its neighbours'.
 *   3. The touch target is a ::before hit area, absolutely positioned. A
 *      min-height on the button changes the line box; this never does.
 * Do not edit a copy. A site that wires check-kit-drift fails a hand edit.
 */
.ai-use-item {
  position: relative;
  display: inline-block;
  vertical-align: baseline;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  font: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: var(--ai-use-color, inherit);
  cursor: pointer;
}

.ai-use-item:hover {
  color: var(--ai-use-color-hover, var(--ai-use-color, inherit));
}

.ai-use-item:focus-visible {
  outline: 2px solid var(--ai-use-focus, currentColor);
  outline-offset: 2px;
}

.ai-use-item::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100%, 24px);
  height: 24px;
  transform: translate(-50%, -50%);
}

@media (pointer: coarse) {
  .ai-use-item::before {
    width: max(100%, 44px);
    height: 44px;
  }
}

.ai-use-item__mark {
  display: inline-block;
  width: 0.9em;
  height: 0.9em;
  margin-inline-end: 0.4em;
  vertical-align: -0.12em;
  fill: currentColor;
}

.ai-use-item__label {
  display: inline;
}
