/* ics-card-hover.css (H90, 2026-11-05) - SINGLE SOURCE OF TRUTH for the card hover look.
   Class .ics-card-hover = the whole hover treatment: flat solid pink hard-offset shadow (a plain rectangle behind the card, no torn edge, no dots, no rotation,
   no lift, no transition), same instant simplicity as the header sub-menu hover. Change the look by editing the three tokens or the one rule below.
   The class is added centrally (no per-card edits) by mu-plugins/ics-card-hover.php (ics_card_hover_map(): the one list of card classes).
   Old per-card pink hover rules were removed (this file's previous torn/halftone rules, ics-torn-card.css translateY lift, tear-guard.css black ring on nw/ev cards).
   Keyboard :focus-visible keeps the pink ring (block at the end); the back-layer is hover only. Backup of the previous files: /home/ics7aa219/backups/h90-TS/ (see ROLLBACK.md). */
:root {
	--ics-card-hover-off: 0.875rem;
	--ics-card-hover-bg: var(--ics-pink-brand, #ed1d85);
	--ics-card-hover-ring: var(--ics-pink-brand, #ed1d85);
}
.ics-card-hover { position: relative; isolation: isolate; }
/* H101 DISABLED by owner 2026-11-05 (DISABLE PINK HOVER EVERYWHERE). The flat pink offset hover is OFF on every card. The class .ics-card-hover and the map in mu-plugins/ics-card-hover.php stay as the single place: to re-enable, move the rule below out of this comment.
@media (hover: hover) and (pointer: fine) {
	html body .ics-card-hover.ics-card-hover:hover { transform: none; box-shadow: none; overflow: visible; }
	html body .ics-card-hover.ics-card-hover:hover:not(:focus-visible):not(:has(:focus-visible))::after {
		content: ""; display: block; position: absolute; inset: 0; z-index: -2; pointer-events: none; opacity: 1;
		background: var(--ics-card-hover-bg);
		-webkit-mask: none; mask: none;
		border-radius: inherit;
		transform: translate(var(--ics-card-hover-off), var(--ics-card-hover-off));
	}
}
*/
/* H101: hover keeps no lift, no transform, no shadow, no pink layer. */
html body .ics-card-hover.ics-card-hover:hover, html body .ics-card--panel.ics-card--panel:is(:hover, :focus-visible) { transform: none; box-shadow: none; }

/* ===== Card keyboard focus: on-brand pink, never black (owner 2026-11-04, append-only) =====
   Replaces the black / heading outline on :focus-visible from ics-torn-card.css and the rules above. Pointer taps set no focus-visible. */
html body .ics-torn-card.ics-torn-card:is(.nw-card, .ev-card, .sr-card, .pl-card, .tm-card, .lib-card, a.ics-card, article.ics-card, .ics-step-card):focus-visible,
html body .ics-torn-card.ics-torn-card:has(:focus-visible) { outline: 2px solid var(--ics-card-hover-ring) !important; outline-offset: 3px; }
