/**
 * Primitive — Link
 *
 * Expected HTML: <a class="ec-link" data-material="water" href="...">Label</a>
 *
 * Material: data-material on the element (defaults to neutral if absent).
 * ec-link--quiet removes the default underline until hover, for links
 * that sit inside already-dense text or navigation.
 */

.ec-link {
	color: var(--ec-material-color);
	text-decoration: underline;
	text-underline-offset: 0.15em;
	transition: color var(--ec-duration-fast) var(--ec-ease-standard);
}

.ec-link:hover {
	color: var(--ec-material-color-strong);
}

.ec-link:focus-visible {
	outline: 2px solid var(--ec-material-color);
	outline-offset: 2px;
}

.ec-link--quiet {
	text-decoration: none;
}

.ec-link--quiet:hover {
	text-decoration: underline;
}

/* Lets a real <button type="submit"> (needed for a POST/nonce action,
   where a plain <a> can't carry a form body) read as .ec-link instead
   of a native button — e.g. Winner Detail's "Mark Failed", which must
   stay a genuine, secondary-feeling action rather than visually
   competing with the primary "Mark Fulfilled" button beside it. */
.ec-button-reset {
	display: inline;
	background: none;
	border: none;
	padding: 0;
	font: inherit;
	cursor: pointer;
}
