/* linkit.css — generated by bin/build-css.php from src/css/. Don't edit; edit the sources and rebuild. */

/* ── src/css/settings/_tokens.css ── */

/* ==========================================================================
   SETTINGS — design tokens
   Every token is prefixed --linkit- so a site can override it, e.g.
   :root { --linkit-radius-button: 8px; }

   Colours are read from the shared names every one of my plugins and the
   site can set (--fg, --bg, --muted, --line, --accent; core sets
   them from the Panel's appearance settings). After the comma is what
   applies on a site that sets none of them: a light page with blue links.
   With core, the accent follows the page's colour (--core-color-accent).
   ========================================================================== */

:root {
	/* Colour */
	--linkit-text: var(--fg, #1a1a1a);
	--linkit-muted: var(--muted, #666);
	--linkit-line: var(--line, #e5e5e5);
	--linkit-accent: var(--accent, var(--core-color-accent, #0b5fff));

	/* Buttons */
	--linkit-button-background: color-mix(in srgb, var(--linkit-text) 4%, var(--bg, #fff));
	--linkit-button-border: var(--linkit-line);
	--linkit-button-text: var(--linkit-text);

	/* Space */
	--linkit-space-l: 1.5rem;

	/* Shape */
	--linkit-radius-button: 999px;            /* pill */

	/* Measures */
	--linkit-touch-target: 3rem;              /* minimum height of a button */
}

/* ── src/css/components/_linkit-buttons.css ── */

/* ==========================================================================
   COMPONENT — c-linkit-buttons
   Links as buttons: one full-width button per link.
   ========================================================================== */

.c-linkit-buttons {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.c-linkit-buttons__link {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: var(--linkit-touch-target);
	padding: 0.75rem var(--linkit-space-l);
	border: 1px solid var(--linkit-button-border);
	border-radius: var(--linkit-radius-button);
	background: var(--linkit-button-background);
	color: var(--linkit-button-text);
	font-weight: 600;
	line-height: 1.3;
	text-align: center;
	text-decoration: none;
}

.c-linkit-buttons__link:hover {
	border-color: var(--linkit-accent);
	color: var(--linkit-accent);
	text-decoration: none;
}

.c-linkit-buttons__link:focus-visible {
	outline: 3px solid var(--linkit-accent);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: no-preference) {
	.c-linkit-buttons__link {
		transition: border-color 150ms ease-out, color 150ms ease-out, transform 150ms ease-out;
	}

	.c-linkit-buttons__link:hover {
		transform: translateY(-1px);
	}
}

/* ── src/css/components/_linkit-row.css ── */

/* ==========================================================================
   COMPONENT — c-linkit-row
   Links in a compact row of text links. Placement comes from the parent (mix).
   ========================================================================== */

.c-linkit-row {
	display: inline-flex;
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.c-linkit-row__link {
	color: var(--linkit-muted);
}

.c-linkit-row__link:hover {
	color: var(--linkit-text);
}

/* ── src/css/utilities/_linkit-visually-hidden.css ── */

/* ==========================================================================
   UTILITY — u-linkit-visually-hidden
   Text for screen readers only, e.g. "(opens in a new tab)".
   !important is fine here: a utility must always win.
   ========================================================================== */

.u-linkit-visually-hidden {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	overflow: hidden !important;
	clip-path: inset(50%) !important;
	white-space: nowrap !important;
	border: 0 !important;
}
