/* Buttons: the one CTA system for the site. Every CTA uses .tv-base-btn plus a variant.
 * Secondary buttons switch to the dark-surface colours automatically inside .surface--dark.
 * The header CTA is its own exception and is styled in main.css. */

.button-group {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

.tv-base-btn {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	height: 48px;
	padding: 14.5px var(--space-24);
	border: 1px solid transparent;
	border-radius: var(--radius-sm);
	background: transparent;
	color: var(--color-primary);
	font-family: var(--font-family);
	font-size: var(--font-size-body-sm);
	font-style: normal;
	font-weight: var(--font-weight-bold);
	line-height: 120%;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, opacity 180ms ease;
}

/* Chevron only: a square 48px button */
.tv-base-btn--icon {
	width: 48px;
	padding: 0;
}

.tv-base-btn:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

/* Primary: mint fill. The hover ring is a box-shadow, so it adds no width and nothing shifts. */
.tv-base-btn--primary {
	background: var(--color-accent);
	color: var(--color-on-accent);
}

.tv-base-btn--primary:hover {
	box-shadow: 0 0 0 1px var(--color-accent);
}

/* Secondary: outline on light surfaces, filled on hover */
.tv-base-btn--secondary {
	border-color: var(--color-primary);
	color: var(--color-primary);
}

.tv-base-btn--secondary:hover {
	background: var(--color-primary);
	color: var(--color-accent);
}

/* Secondary on dark: mint outline, white fill on hover */
.surface--dark .tv-base-btn--secondary {
	border-color: var(--color-accent);
	color: var(--color-accent);
}

.surface--dark .tv-base-btn--secondary:hover {
	background: var(--color-surface);
	border-color: var(--color-on-primary);
	color: var(--color-primary);
}

/* Disabled: faded and not clickable, on any variant */
.tv-base-btn:disabled,
.tv-base-btn[aria-disabled="true"] {
	opacity: 0.5;
	pointer-events: none;
	cursor: default;
}
