/**
 * Card action buttons.
 *
 * Every card in the site ends in the same affordance: one short Arabic label and
 * a directional arrow. Rendered as plain text it disappeared into the copy above
 * it — the owner's words were that it "barely appears". These rules turn that
 * affordance into the site's primary button (§17: Deep Green fill, ivory label)
 * so it reads as a control everywhere it appears.
 *
 * The button is decoration on an already-linked card, never a second control:
 * it stays a `<span>` inside the card's single anchor, so there is no nested
 * interactive element and no extra tab stop. Movement and colour still come from
 * the card's own hover state.
 *
 * Loaded last (priority 30) because it restates geometry that each family
 * stylesheet also declares for its own text-link version; the compound selectors
 * at the bottom are the family-scoped variants that would otherwise win on
 * specificity.
 */

/* --------------------------------------------------------------- The button */

.ta-booklet__cta,
.ta-mini__cta,
.ta-journey__cta,
.ta-books-card__cta,
.ta-courses-card__cta,
.ta-spreads-card__cta,
.ta-paths-card__cta,
.ta-cards-branch__cta,
.ta-cards-suit__cta,
.ta-ec-card__cta,
.ta-ec-path__cta,
.ta-ec-disc__cta,
.ta-about-areas__cta,
.ta-commerce-destination__cta,
.ta-ec-disc--media .ta-ec-disc__cta,
.ta-cards-suit--featured .ta-cards-suit__cta,
.ta-spreads-prereq__body .ta-spreads-card__cta,
.ta-ec-card--browser .ta-ec-card__cta,
.ta-learn--learn-hub .ta-ec-card--feature .ta-ec-card__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	align-self: flex-start;
	min-block-size: 48px;
	margin-block-start: auto;
	padding-block: 12px;
	padding-inline: 20px;
	border: 1px solid var(--color-green-900);
	border-radius: 11px;
	background-color: var(--color-green-900);
	color: var(--color-white);
	font-size: 15px;
	font-weight: var(--weight-bold);
	line-height: 1.35;
	text-align: center;
	white-space: nowrap;
	box-shadow: 0 2px 8px rgba(23, 79, 58, 0.16);
	transition:
		background-color var(--duration-interaction, 160ms) var(--ease-interaction, ease),
		border-color var(--duration-interaction, 160ms) var(--ease-interaction, ease),
		box-shadow var(--duration-interaction, 160ms) var(--ease-interaction, ease);
}

/* The four suit cards are horizontal — a 116px cover beside a 168px body — so the
   full label cannot sit on one line inside the card. It wraps within the button
   rather than spilling past the card edge. */
.ta-cards-suit__cta {
	max-inline-size: 100%;
	white-space: normal;
}

/* The whole card is the hit area, so the button follows the card's hover. */
a:hover .ta-booklet__cta,
a:focus-visible .ta-booklet__cta,
a:hover .ta-mini__cta,
a:focus-visible .ta-mini__cta,
a:hover .ta-journey__cta,
a:focus-visible .ta-journey__cta,
a:hover .ta-books-card__cta,
a:focus-visible .ta-books-card__cta,
a:hover .ta-courses-card__cta,
a:focus-visible .ta-courses-card__cta,
a:hover .ta-spreads-card__cta,
a:focus-visible .ta-spreads-card__cta,
a:hover .ta-paths-card__cta,
a:focus-visible .ta-paths-card__cta,
a:hover .ta-cards-branch__cta,
a:focus-visible .ta-cards-branch__cta,
a:hover .ta-cards-suit__cta,
a:focus-visible .ta-cards-suit__cta,
a:hover .ta-ec-card__cta,
a:focus-visible .ta-ec-card__cta,
a:hover .ta-ec-path__cta,
a:focus-visible .ta-ec-path__cta,
a:hover .ta-ec-disc__cta,
a:focus-visible .ta-ec-disc__cta,
a:hover .ta-about-areas__cta,
a:focus-visible .ta-about-areas__cta,
a:hover .ta-commerce-destination__cta,
a:focus-visible .ta-commerce-destination__cta {
	background-color: var(--color-green-950);
	border-color: var(--color-green-950);
	color: var(--color-white);
	box-shadow: 0 6px 16px rgba(23, 79, 58, 0.22);
}

@media (prefers-reduced-motion: reduce) {
	.ta-booklet__cta,
	.ta-mini__cta,
	.ta-journey__cta,
	.ta-books-card__cta,
	.ta-courses-card__cta,
	.ta-spreads-card__cta,
	.ta-paths-card__cta,
	.ta-cards-branch__cta,
	.ta-cards-suit__cta,
	.ta-ec-card__cta,
	.ta-ec-path__cta,
	.ta-ec-disc__cta,
	.ta-about-areas__cta,
	.ta-commerce-destination__cta {
		transition: none;
	}
}
