/**
 * Shared tooltip shell for section-tooltip-core.js's EVQTooltipCore engine —
 * split out of public-table.css so any page using the engine (the public
 * table's own hydro/season/profile tooltips, but also any map drawing POI
 * hover tooltips via bindPoiTooltip() in section-details-core.js) can
 * enqueue just this, instead of that file's much larger table-specific
 * bulk. Feature-specific extensions to this shell (e.g. public-table.css's
 * own .evq-tooltip--profile-zoom, used only by the rapide/portage profile
 * bar's own zoom tooltip) stay in their own feature's stylesheet — this file
 * is only the generic shell every tooltip, on any page, starts from.
 *
 * Starts as a plain preview (pointer-events: none — it can't steal the
 * mouseleave that should close it); once the hover delay elapses it "pins"
 * (.evq-tooltip--pinned below) and becomes interactive so its own content —
 * including a nested tooltip trigger — can be hovered into.
 */
.evq-tooltip {
	position: absolute;
	z-index: 1000;
	background: var( --evq-bg );
	border: 1px solid var( --evq-border );
	border-radius: var( --evq-radius );
	box-shadow: 0 6px 20px var( --evq-shadow );
	padding: 12px 14px;
	width: 320px;
	max-width: calc( 100vw - 16px );
	pointer-events: none;
}

.evq-tooltip--pinned {
	pointer-events: auto;
	box-shadow: 0 6px 20px var( --evq-shadow ), 0 0 0 2px var( --evq-accent );
}

.evq-tooltip-title {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: var( --evq-muted );
	margin-bottom: 4px;
}

/* Discreet fill-up bar shown only during the pin countdown — removed the
   moment a tooltip pins (see pin() in section-tooltip-core.js), so a pinned
   tooltip's bottom edge is clean. Track (grayer, always visible so the bar
   reads as progress from frame one) + fill (accent, grows left→right as the
   countdown elapses). Fill's width is driven directly by a rAF loop in JS
   (animateFill()), not a CSS transition — Elementor's frontend.css forces
   `transition-duration: 0s !important` site-wide under
   prefers-reduced-motion, which would otherwise make this functional
   countdown (not just decorative motion) invisible for those users. */
.evq-tooltip-progress {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2px;
	overflow: hidden;
	border-radius: 0 0 var( --evq-radius ) var( --evq-radius );
	background: var( --evq-border );
}

.evq-tooltip-progress-bar {
	display: block;
	height: 100%;
	width: 0;
	background: var( --evq-accent );
}
