/* Mobile-first press feedback — pairs with press_effects.js (.is-pressed) */

.prod-card,
.home-quick-action,
.home-section-row,
.fleet-card,
.mi-card,
.btn,
.mi-tool-btn,
.mi-status-header,
.prod-back,
.mi-cal-clear,
.mi-cal-apply,
a[href],
button:not(:disabled),
[role="button"]:not([aria-disabled="true"]) {
  touch-action: manipulation;
}

/* Card-style navigation targets */
.prod-card.is-pressed,
.home-quick-action.is-pressed,
.home-section-row.is-pressed,
.fleet-card.is-pressed,
.mi-card.is-pressed {
  transform: scale(0.96);
  filter: brightness(0.93);
  box-shadow: inset 0 0 0 9999px rgba(0, 0, 0, 0.05);
}

.prod-card.is-pressed::before,
.mi-card.is-pressed::before {
  opacity: 1;
}

/* Primary buttons and icon tool buttons */
.btn.is-pressed,
.mi-tool-btn.is-pressed,
.mi-cal-apply.is-pressed,
.mi-status-header.is-pressed,
button.is-pressed:not(:disabled) {
  transform: scale(0.96);
  filter: brightness(0.92);
}

.mi-tool-btn.is-pressed,
.mi-cal-clear.is-pressed {
  background: var(--surface2);
  border-color: var(--border-hover);
}

/* Text links */
.prod-back.is-pressed,
a.is-pressed:not(.btn):not(.prod-card):not(.home-quick-action):not(.home-section-row):not(.mi-card) {
  opacity: 0.65;
}

/* Keep :active as a fallback; hover enhancements only on desktop fine pointers */
@media (hover: hover) and (pointer: fine) {
  .prod-card:active,
  .home-quick-action:active,
  .home-section-row:active,
  .fleet-card:active,
  .mi-card:active,
  .btn:active,
  .mi-tool-btn:active,
  .mi-status-header:active {
    transform: scale(0.96);
    filter: brightness(0.93);
  }
}
