/** Professional Standards — button. */

.ps-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--ps-space-2xs);
	/* 44px minimum target for touch (WCAG 2.5.5 / 2.5.8). */
	min-block-size: 2.75rem;
	padding-block: var(--ps-space-2xs);
	padding-inline: var(--ps-space-m);
	border: 0;
	border-radius: var(--ps-radius-pill);
	background-color: var(--ps-primary);
	color: var(--ps-primary-contrast);
	font-family: var(--ps-font-sans);
	font-size: var(--ps-step-0);
	font-weight: var(--ps-weight-bold);
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	/* Only compositor-friendly / cheap properties are transitioned. */
	transition:
		translate var(--ps-duration-fast) var(--ps-ease-out),
		background-color var(--ps-duration-fast) linear,
		color var(--ps-duration-fast) linear,
		box-shadow var(--ps-duration-fast) linear;
}

/*
 * Under the pointer: the site's light orange touch (owner, 2026-10-06), navy
 * words on it (5.4:1). Every variant, every page.
 */
.ps-button:hover {
	background-color: var(--ps-accent);
	color: var(--ps-color-navy);
	translate: 0 -2px;
}

.ps-button:active {
	translate: 0 0;
}

/*
 * Dark variant: for turquoise surfaces (home CTA panel), where the default
 * turquoise button would disappear into the background.
 */
.ps-button--dark {
	background-color: var(--ps-color-navy);
	color: var(--ps-scene-text);
}

.ps-button--dark:hover {
	background-color: var(--ps-accent);
	color: var(--ps-color-navy);
}

/* Outline variant: secondary actions next to a filled button. */
.ps-button--outline {
	box-shadow: inset 0 0 0 1.5px currentColor;
	background-color: transparent;
	color: inherit;
}

.ps-button--outline:hover {
	box-shadow: inset 0 0 0 1.5px var(--ps-accent);
	background-color: var(--ps-color-navy-a20);
	color: inherit;
}
