/*
 * Tarot Arabi — homepage
 *
 * Homepage-only composition. Global primitives (buttons, cards, badges, forms,
 * the shell, the type scale) stay in their own layers and are reused unchanged.
 * Loaded on the front page only (see inc/assets.php).
 *
 * The visual system, in five rules:
 *
 *   1. ONE page background. The whole homepage body sits on Warm Ivory
 *      #FAF8F3 and every normal section is transparent. White is reserved for
 *      objects that need to be distinct — the value strip, course cards, book
 *      cards, path panels, the cards inside the green section, FAQ rows. No
 *      alternating background stripes, no second beige, no off-white bands.
 *   2. One deliberate green break. The Free Content + Tarot Library section is
 *      the only full-width Deep Green surface in the body, which is what makes
 *      it read as a chapter break instead of another band.
 *   3. One spacing rhythm: 96–112px desktop, 64–80px mobile, with the closing
 *      section allowed a little more.
 *   4. One alignment system: every section shares the container and the same
 *      inline-start text edge, with the section action on the opposite edge.
 *   5. Radius is hierarchical, not uniform: media 16–26, cards 16–18, panels
 *      16–22, buttons 12, chips 14.
 */

.ta-home {
	/* The single homepage base surface. */
	background-color: var(--color-ivory);

	/*
	 * The hero plane's darkest tone. Deliberately deeper than --color-green-950 so
	 * white hero type holds over the placeholder as well as over a photograph;
	 * every other green on the page is a token.
	 */
	--ta-hero-deep: #0c2a1f;

	/* The green storytelling band's own air. Internal to that band. */
	--home-section-space-lg: clamp(72px, 8vw, 120px);
}

/*
 * Every normal section is transparent on the one base. Only the green section
 * sets its own surface.
 *
 * Major-section rhythm: ONE canonical gap, owned by the section BELOW it. A
 * transparent section therefore carries no vertical padding of its own, so the
 * rendered gap at a boundary is the token and nothing else — never a sum of two
 * paddings, and identical at every boundary on this page.
 *
 * The two bands (the hero and the green section) keep their own padding: that is
 * the band's surface and air, which sits INSIDE the section, not in the gap.
 */
.ta-home__section,
.ta-home__why,
.ta-home__courses,
.ta-home__books,
.ta-home__paths,
.ta-home__sarah,
.ta-home__faq,
.ta-home__closing {
	padding-block: 0;
	background-color: transparent;
}

/* One owner per boundary: the gap belongs to the section that follows. */
.ta-home > .ta-hero ~ * {
	margin-block-start: var(--ta-section-gap);
}

/* The deep-green band follows the Learning Paths surface directly: the colour
   change is the transition, so the ivory gap would only postpone it. */
.ta-home > .ta-hero ~ .ta-home__free {
	margin-block-start: 0;
}

/* The page's last section hands the same gap to the footer. */
.ta-home__closing {
	margin-block-end: var(--ta-section-gap);
}

/* ====================================================== Typography levels */

.ta-eyebrow {
	margin: 0 0 14px;
	color: var(--color-gold-action);
	font-family: var(--font-body);
	/* Desktop 15–16px, phones 14px: clearly readable, still subordinate. */
	font-size: clamp(14px, 1.15vw, 16px);
	font-weight: var(--weight-bold);
	line-height: 1.45;
}

/* On the one Deep Green section, and only there. */
.ta-eyebrow--on-deep {
	color: var(--color-gold);
}

.ta-h2 {
	margin: 0;
	color: var(--color-heading);
	font-family: var(--font-heading);
	font-size: clamp(30px, 3.2vw, 46px);
	font-weight: var(--weight-bold);
	line-height: 1.16;
	text-wrap: balance;
}

.ta-h3 {
	margin: 0;
	color: var(--color-heading);
	font-family: var(--font-heading);
	font-size: clamp(20px, 1.8vw, 26px);
	font-weight: var(--weight-bold);
	line-height: var(--leading-heading);
}

.ta-lead {
	margin: var(--space-5) 0 0;
	max-inline-size: 58ch;
	color: var(--color-text-muted);
	font-family: var(--font-body);
	font-size: clamp(18px, 1.35vw, 20px);
	font-weight: var(--weight-regular);
	line-height: 1.8;
}

/* Shared heading block: one text edge, one action on the far edge. */
.ta-section-head {
	max-inline-size: var(--container-heading);
	margin-block-end: var(--space-12);
}

.ta-section-head--row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--space-6) var(--space-10);
	max-inline-size: none;
}

.ta-section-head--row .ta-section-head__text {
	max-inline-size: var(--container-heading);
}

/*
 * The section action is a real button sitting on the opposite edge at the same
 * baseline as the heading block — never a naked text link floating far away.
 */
.ta-section-head__action {
	flex: 0 0 auto;
	margin-block-end: var(--space-1);
}

/* On the green section. */
.ta-section-head--on-deep .ta-h2 {
	color: var(--color-white);
}

.ta-section-head--on-deep .ta-lead {
	color: rgba(255, 255, 255, 0.8);
}

/* ======================================================== Button language */

/*
 * The homepage secondary is a quiet white button with Deep Green text and a
 * subtle Deep Green border, and the on-green button is its inverse. Both reuse
 * the locked button primitive's structure, sizes, focus ring and hover lift, and
 * both are scoped to `.ta-home`, so no global component changes.
 */
.ta-home .ta-button--secondary {
	background-color: var(--color-surface);
	border-color: rgba(23, 79, 58, 0.18);
	color: var(--color-green-900);
	box-shadow: none;
}

.ta-home .ta-button--secondary:hover {
	background-color: var(--color-surface);
	border-color: var(--color-green-900);
	color: var(--color-green-900);
	box-shadow: var(--shadow-interactive);
}

.ta-home .ta-button--secondary:active {
	background-color: var(--color-sage-100);
	border-color: var(--color-green-900);
	color: var(--color-green-900);
}

.ta-home .ta-button--secondary:focus-visible {
	outline-color: var(--color-green-900);
}

/* Warm-white fill, Deep Green text — for use on the Deep Green surfaces. */
.ta-home .ta-button--on-warm {
	background-color: var(--color-ivory);
	border-color: var(--color-ivory);
	color: var(--color-green-900);
	box-shadow: none;
}

.ta-home .ta-button--on-warm:hover {
	background-color: var(--color-white);
	border-color: var(--color-white);
	color: var(--color-green-900);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.ta-home .ta-button--on-warm:active {
	background-color: var(--color-white);
	border-color: var(--color-white);
	color: var(--color-green-900);
}

.ta-home .ta-button--on-warm:focus-visible {
	outline-color: var(--color-white);
}

/* ================================================================== Hero */

.ta-hero {
	position: relative;
	display: grid;
	align-content: center;
	/* Cinematic, not full-bleed: generous on desktop, far shorter on phones (see
	   the responsive blocks). Never 100vh — that overshoots on laptops. */
	min-block-size: clamp(780px, 86vh, 900px);
	/* Deliberately asymmetrical: more room above than below settles the copy
	   slightly below the mathematical centre, which is what makes the
	   composition read as editorial rather than as a centred website banner. */
	padding-block: clamp(112px, 9vw, 128px) clamp(64px, 6vw, 88px);
	overflow: hidden;
	background-color: #0c2a1f;
	color: var(--color-white);
}

.ta-hero__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.ta-hero__bg-picture {
	display: block;
	inline-size: 100%;
	block-size: 100%;
}

.ta-hero__bg-image {
	display: block;
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
	/* Never mirrored in RTL: a portrait keeps its own left and right. */
	object-position: var(--ta-hero-focal-x, 50%) var(--ta-hero-focal-y, 42%);
}

.ta-hero__bg-wash {
	position: absolute;
	inset: 0;
	background-image: linear-gradient(150deg, var(--ta-hero-deep) 0%, var(--color-green-800) 42%, var(--color-green-900) 100%);
}

/* Background detail only, never a competing design element. */
.ta-hero__bg-texture {
	position: absolute;
	inset: 0;
	inline-size: 100%;
	block-size: 100%;
	color: var(--color-gold);
	opacity: 0.08;
}

/*
 * Two tonal layers, not a stock dark gradient.
 *
 * The directional layer is a deep-green editorial wash that is opaque behind the
 * copy column and melts into the brand green before it reaches Sarah, so the
 * photograph keeps its light on the subject side instead of being uniformly
 * dimmed. The short bottom layer only settles the lower edge. The header is a
 * solid surface in this theme, so no top band is needed — that band was what made
 * the treatment read as a generic overlay.
 *
 * Stops are tuned to keep the copy column at ≥4.5:1 over the brightest part of
 * the photograph: ~0.86 through the first third, ~0.76 at the column's far edge.
 */
.ta-hero__scrim {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(to left, rgba(12, 42, 31, 0.9) 0%, rgba(12, 42, 31, 0.86) 30%, rgba(23, 79, 58, 0.76) 50%, rgba(23, 79, 58, 0.4) 72%, rgba(23, 79, 58, 0.1) 90%, rgba(23, 79, 58, 0) 100%),
		linear-gradient(to top, rgba(12, 42, 31, 0.24) 0%, rgba(12, 42, 31, 0) 32%);
}

html[dir="ltr"] .ta-hero__scrim {
	background-image:
		linear-gradient(to right, rgba(12, 42, 31, 0.9) 0%, rgba(12, 42, 31, 0.86) 30%, rgba(23, 79, 58, 0.76) 50%, rgba(23, 79, 58, 0.4) 72%, rgba(23, 79, 58, 0.1) 90%, rgba(23, 79, 58, 0) 100%),
		linear-gradient(to top, rgba(12, 42, 31, 0.24) 0%, rgba(12, 42, 31, 0) 32%);
}

.ta-hero__inner {
	position: relative;
	z-index: 1;
	display: grid;
	/* The copy column is an editorial measure (~41% of the wide container); the
	   photograph owns the remaining frame instead of being a background accident. */
	grid-template-columns: minmax(0, 590px) minmax(0, 1fr);
}

.ta-hero__body {
	grid-column: 1;
}

.ta-hero__eyebrow {
	margin: 0 0 20px;
	color: var(--color-gold);
	font-size: clamp(14px, 1.05vw, 15px);
	font-weight: var(--weight-bold);
	line-height: 1.45;
}

.ta-hero__title {
	margin: 0;
	color: var(--color-white);
	font-size: clamp(40px, 4.45vw, 64px);
	line-height: 1.08;
	max-inline-size: 580px;
}

.ta-hero__lead {
	margin: 22px 0 0;
	max-inline-size: 520px;
	color: rgba(255, 255, 255, 0.88);
	font-size: clamp(18px, 1.35vw, 20px);
	line-height: 1.75;
}

.ta-hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	/* Grouped tightly: the pair reads as one decision, not two offers. */
	gap: 14px var(--space-5);
	margin-block-start: 30px;
}

.ta-hero .ta-button {
	min-block-size: 54px;
}

.ta-hero .ta-button--primary {
	background-color: var(--color-white);
	border-color: var(--color-white);
	color: var(--color-green-900);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
}

.ta-hero .ta-button--primary:hover {
	background-color: var(--color-surface-warm);
	border-color: var(--color-surface-warm);
	color: var(--color-green-900);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.ta-hero .ta-button--primary:active {
	background-color: var(--color-ivory);
	border-color: var(--color-ivory);
	color: var(--color-green-900);
}

.ta-hero .ta-button--primary:focus-visible {
	outline-color: var(--color-white);
	box-shadow: var(--focus-ring);
}

/*
 * Secondary action: a quiet editorial link, not a second button. One line of
 * text and a directional arrow, no fill, no border, no glass — the primary
 * action keeps the only solid shape in the row.
 */
.ta-hero__secondary {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
	min-block-size: 44px;
	color: rgba(255, 255, 255, 0.86);
	font-size: clamp(15px, 1.1vw, 16px);
	font-weight: var(--weight-bold);
	line-height: 1.4;
	text-decoration: none;
	transition: color 160ms ease;
}

.ta-hero__secondary:hover {
	color: var(--color-white);
}

.ta-hero__secondary:focus-visible {
	outline: 2px solid var(--color-white);
	outline-offset: 4px;
	border-radius: 2px;
}

.ta-hero__secondary-icon {
	display: inline-flex;
	transition: transform 160ms ease;
}

.ta-hero__secondary:hover .ta-hero__secondary-icon {
	transform: translateX(-3px);
}

html[dir="ltr"] .ta-hero__secondary:hover .ta-hero__secondary-icon {
	transform: translateX(3px);
}

/* Quiet credibility line under the actions — plain text, no capsule. */
.ta-hero__credibility {
	margin: 22px 0 0;
	color: rgba(255, 255, 255, 0.68);
	font-size: clamp(13px, 1vw, 14px);
	font-weight: var(--weight-medium);
	line-height: var(--leading-meta);
	max-inline-size: 520px;
}

/* ============================================================ Why section */

/* Transparent, and no surrounding card. It is the first body section. Its own
   spacing is owned by the shared section rules above. */

.ta-why__grid {
	display: grid;
	gap: var(--space-16);
	grid-template-columns: minmax(0, 54fr) minmax(0, 46fr);
	grid-template-areas: "content media";
	align-items: center;
}

.ta-why__content {
	grid-area: content;
}

.ta-why__media {
	grid-area: media;
	position: relative;
	transform: translateY(34px);
}

.ta-why__shape {
	position: absolute;
	inset-block-start: 30px;
	inset-block-end: -24px;
	inset-inline-start: 26px;
	inset-inline-end: -20px;
	z-index: 0;
	border-radius: var(--radius-3xl);
	background-color: var(--color-sage-100);
}

.ta-why__frame {
	position: relative;
	z-index: 1;
}

.ta-why__benefits {
	display: grid;
	gap: clamp(26px, 2.4vw, 34px);
	margin: clamp(34px, 3vw, 42px) 0 0;
	padding: 0;
	list-style: none;
}

/* Numbered editorial sequence, separated by spacing rather than rules. */
.ta-why__benefit {
	display: grid;
	grid-template-columns: auto auto minmax(0, 1fr);
	align-items: start;
	gap: var(--space-3) var(--space-5);
	margin-block-start: 0;
}

.ta-why__benefit-stage {
	align-self: center;
	color: var(--color-text-muted);
	font-family: var(--font-latin);
	font-size: 13px;
	font-weight: var(--weight-bold);
	opacity: 1;
}

.ta-why__benefit-icon {
	align-self: center;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	inline-size: 44px;
	block-size: 44px;
	border-radius: var(--radius-md);
	background-color: var(--color-sage-100);
	color: var(--color-green-900);
}

.ta-why__benefit--emphasis {
	padding: var(--space-5);
	margin-inline: calc(var(--space-5) * -1);
	border-radius: var(--radius-lg);
	background-color: rgba(221, 233, 225, 0.55);
}

.ta-why__benefit--emphasis .ta-why__benefit-icon {
	background-color: var(--color-surface);
}

.ta-why__benefit-title {
	margin: 0;
	color: var(--color-heading);
	font-family: var(--font-body);
	font-size: clamp(17px, 1.25vw, 19px);
	font-weight: var(--weight-bold);
	line-height: var(--leading-heading);
}

.ta-why__benefit-text {
	margin: var(--space-2) 0 0;
	max-inline-size: 52ch;
	color: var(--color-text-muted);
	font-size: clamp(16px, 1.05vw, 17px);
	line-height: var(--leading-body);
}

/* ======================================================== Media component */

.ta-media {
	position: relative;
	display: block;
	overflow: hidden;
	border: var(--border-card);
	background-image: linear-gradient(150deg, var(--color-sage-100) 0%, var(--color-surface-warm) 100%);
}

.ta-media__image {
	display: block;
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
	transition: transform var(--duration-standard) var(--ease-interaction);
}

.ta-media__texture {
	position: absolute;
	inset: 0;
	inline-size: 100%;
	block-size: 100%;
	color: var(--color-green-900);
	opacity: 0.07;
}

/* Ratios belong to the variant, so real artwork never changes the layout. */
.ta-media--why {
	aspect-ratio: 4 / 3;
	border-radius: 26px;
	box-shadow: var(--shadow-md);
}

/* Taller editorial frame beside the Why copy on desktop only. */
@media (min-width: 1024px) {
	.ta-why__frame .ta-media--why {
		aspect-ratio: 4 / 5;
	}
}

.ta-media--portrait {
	aspect-ratio: 4 / 5;
	border-radius: 26px;
	box-shadow: var(--shadow-md);
}

.ta-media--course {
	/* Landscape for every course card: one visual language, no portrait media. */
	aspect-ratio: 16 / 9;
	border-radius: 18px;
}

.ta-media--feature {
	/* The flagship shelf card is a wide editorial frame, not a portrait poster. */
	aspect-ratio: 16 / 10;
	border-radius: 0;
}

.ta-media--book {
	aspect-ratio: 3 / 4;
	border-radius: 16px;
	box-shadow: 0 8px 22px rgba(23, 79, 58, 0.1);
}

.ta-media--final {
	/* Wide editorial frame for the closing panel, never a portrait. */
	aspect-ratio: 5 / 4;
	border-radius: clamp(24px, 2vw, 28px);
}

.ta-media--card {
	aspect-ratio: 2 / 3;
	border-radius: 14px;
}

.ta-media--guide {
	aspect-ratio: 3 / 2;
	border-radius: 18px;
}

.ta-media--path {
	aspect-ratio: 16 / 10;
	border-radius: 0;
	border: none;
}

/* ------------------------------------------------- Development marker */

.ta-dev-marker {
	position: absolute;
	inset-block-start: var(--space-4);
	inset-inline-start: var(--space-4);
	z-index: 3;
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
	/* Stay inside the frame even in a narrow card, so a long entity title wraps
	   instead of spilling out of the media it belongs to. */
	max-inline-size: calc(100% - (var(--space-4) * 2));
	padding: 6px 10px;
	border: 1px solid rgba(198, 161, 91, 0.5);
	border-radius: var(--radius-pill);
	background-color: rgba(12, 42, 31, 0.6);
	color: var(--color-gold);
	font-size: 12px;
	line-height: 1;
	pointer-events: none;
}

.ta-media .ta-dev-marker,
.ta-course .ta-dev-marker,
.ta-book .ta-dev-marker,
.ta-stage .ta-dev-marker,
.ta-tarot__media .ta-dev-marker,
.ta-guide-lead .ta-dev-marker {
	border-color: rgba(23, 79, 58, 0.22);
	background-color: rgba(255, 255, 255, 0.74);
	color: var(--color-green-900);
}

/* ================================================================= Badges */

.ta-badges {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-2);
	margin: var(--space-4) 0 0;
	padding: 0;
	list-style: none;
}

/*
 * Product badges — one metadata family.
 *
 * Every factual product attribute (PDF, شهادة, وصول دائم, مسجّلة, كتاب مطبوع,
 * باكييج, مستوى) is metadata. None of them is a button, a promotion or a pricing
 * marker, so none of them may wear an action-like brass outline.
 *
 * Two quiet surfaces only: a neutral plate and one sage emphasis plate. Same
 * size, radius, border weight and alignment across both.
 *
 * The brass came from the shared component variants — `--certificate` uses
 * --border-secondary (brass), `--bundle` uses --border-accent over a gold-soft
 * fill, and `--level` used the same gold fill. Those variant names stay in the
 * markup because they carry real meaning; only their surface is unified, and it
 * is unified here rather than in the shared component so other surfaces that
 * legitimately use it are untouched.
 */
.ta-home .ta-badge {
	min-block-size: 28px;
	padding-block: 0;
	padding-inline: 10px;
	border: 1px solid var(--color-border);
	border-radius: 8px;
	background-color: var(--color-surface);
	color: var(--color-green-900);
	font-size: 13px;
	font-weight: var(--weight-bold);
	line-height: 1;
}

/* The single emphasis surface, for values that signal "more is included".
   No accent border, no brass text. */
.ta-home .ta-badge--bundle,
.ta-home .ta-badge--level,
.ta-home .ta-badge--physical {
	background-color: var(--color-sage-100);
	border-color: transparent;
	color: var(--color-green-900);
}

/*
 * Badges are not controls. There is deliberately no `:hover` rule for them and
 * none may be added: hovering a card must never restyle its badges, and no badge
 * may lift, flash or animate independently of the card that owns it.
 */

/* ================================================================ Courses */

/*
 * Card contract, applied to every single-destination card on this page.
 *
 *   .ta-<card>            the grid/flex cell. Static: it never moves.
 *   .ta-<card>__link      the ONE interactive root. Its box fills the cell and is
 *                         never transformed, so the pointer can never fall out
 *                         of its own hover target and oscillate.
 *   .ta-card-surface      everything visual — border, radius, background, shadow
 *                         — and the only thing that moves on hover.
 *   .ta-card-cta          visual-only call to action. It is a span, never a link
 *                         or button, so no parent hover can impersonate a real
 *                         button hover and there is no second tab stop.
 */
.ta-card-surface {
	display: grid;
	transition:
		transform var(--duration-interaction) var(--ease-interaction),
		box-shadow var(--duration-interaction) var(--ease-interaction),
		border-color var(--duration-interaction) var(--ease-interaction);
}

.ta-card-cta {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
	min-block-size: 42px;
	margin-block-start: var(--space-2);
	padding-inline: var(--space-4);
	border: none;
	border-radius: var(--radius-sm);
	/* Level 3 of the homepage CTA hierarchy: a soft Sage surface that belongs to
	   the card rather than a browser-style outlined button. */
	background-color: var(--color-sage-100);
	color: var(--color-green-900);
	font-family: var(--font-body);
	font-size: var(--text-sm);
	font-weight: var(--weight-bold);
	line-height: 1.4;
	transition: background-color var(--duration-interaction) var(--ease-interaction);
	/* Never lifts, scales or shadows itself: the card owns the interaction. */
}

.ta-card-cta--primary {
	/* The stronger card action: flagship course, path emphasis, lead guide. */
	background-color: var(--color-green-900);
	color: var(--color-white);
}

.ta-card-cta__icon {
	display: inline-flex;
	align-items: center;
}

.ta-card-cta .ta-icon--directional {
	transition: transform var(--duration-interaction) var(--ease-interaction);
}

/* The card arrow shifts on card hover — a card-level refinement, not a hover on
   the affordance itself. */
.ta-course__link:hover .ta-card-cta .ta-icon--directional,
.ta-stage__link:hover .ta-card-cta .ta-icon--directional,
.ta-guide-lead__link:hover .ta-card-cta .ta-icon--directional {
	transform: translateX(-4px);
}

html[dir="ltr"] .ta-course__link:hover .ta-card-cta .ta-icon--directional,
html[dir="ltr"] .ta-stage__link:hover .ta-card-cta .ta-icon--directional,
html[dir="ltr"] .ta-guide-lead__link:hover .ta-card-cta .ta-icon--directional {
	transform: translateX(4px);
}

/* 7 / 5: the flagship anchors, the two secondaries stack beside it. */
.ta-courses {
	display: grid;
	gap: 28px;
}

.ta-courses__stack {
	display: grid;
	gap: var(--space-6);
	/* Both secondary cards settle to the same height regardless of how their
	   titles wrap. */
	grid-auto-rows: 1fr;
}

.ta-course {
	display: block;
}

.ta-course__link {
	display: block;
	border-radius: var(--radius-lg);
	color: inherit;
	text-decoration: none;
}

.ta-course__link:focus-visible {
	outline: var(--focus-outline-width) solid var(--color-green-900);
	outline-offset: 3px;
}

.ta-course .ta-card-surface {
	border: var(--border-card);
	border-radius: var(--radius-lg);
	background-color: var(--color-surface);
	box-shadow: var(--shadow-sm);
}

.ta-course--flagship .ta-card-surface {
	grid-template-rows: auto 1fr;
	overflow: hidden;
}

/* The link sits between the grid cell and the card surface, so BOTH must fill the
   cell: otherwise the surface's `block-size: 100%` resolves against the link's
   natural height and the card stops matching its grid row. */
.ta-courses__stack .ta-course {
	display: grid;
	min-block-size: 0;
}

.ta-courses__stack .ta-course__link {
	display: grid;
	block-size: 100%;
}

.ta-courses__stack .ta-course .ta-card-surface {
	/* Tablet and up: the media side keeps its own narrow track so the copy is
	   never squeezed. The phone block collapses this to one column. */
	grid-template-columns: clamp(180px, 36%, 210px) minmax(0, 1fr);
	grid-template-rows: minmax(0, 1fr);
	gap: var(--space-6);
	padding: var(--space-6);
	align-items: center;
}

.ta-course__media {
	overflow: hidden;
}

.ta-courses__stack .ta-course__visual {
	/* One compact visual unit: the image and its factual badges travel together
	   and are never stretched or spread apart. */
	display: flex;
	flex-direction: column;
	align-items: stretch;
	align-self: start;
	min-inline-size: 0;
}

.ta-courses__stack .ta-course__visual .ta-badges {
	/* Sits directly under the image, close enough to read as its caption row. A
	   slightly tighter pill rhythm than elsewhere on purpose: in this narrow
	   column it keeps every approved badge on one line, so both secondary cards
	   carry an identical visual module and their media sit at the same offset. */
	margin-block-start: 11px;
	max-inline-size: 100%;
	gap: 6px;
}

.ta-courses__stack .ta-badge {
	padding-inline: 9px;
}

.ta-courses__stack .ta-course__media {
	block-size: auto;
	min-block-size: 0;
	border-radius: var(--radius-md);
}

.ta-courses__stack .ta-course__media .ta-media {
	/* Landscape, never portrait and never stretched to the card's height. */
	aspect-ratio: 4 / 3;
	block-size: auto;
}

.ta-course__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--space-3);
	padding: var(--space-6);
}

.ta-courses__stack .ta-course__body {
	/* Stretches so the CTA can be pushed to the card's bottom edge; the media
	   beside it stays centred because the card's own align-items is centre. */
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	align-self: stretch;
	gap: 0;
	padding: 0;
}

.ta-course__note {
	margin: 0;
	color: var(--color-gold-action);
	font-size: clamp(13px, 1vw, 14px);
	font-weight: var(--weight-bold);
	line-height: var(--leading-meta);
}

.ta-course__title {
	margin: 0;
	color: var(--color-heading);
	font-family: var(--font-heading);
	font-size: clamp(20px, 1.7vw, 27px);
	font-weight: var(--weight-bold);
	line-height: 1.25;
}

.ta-courses__stack .ta-course__title {
	font-size: clamp(22px, 1.55vw, 24px);
	/* Natural two-line wrapping, with room to breathe above the copy. */
	line-height: 1.35;
	margin-block-end: 0;
}

.ta-course__text {
	margin: 0;
	color: var(--color-text-muted);
	font-size: clamp(15px, 1.05vw, 17px);
	line-height: var(--leading-body);
}

.ta-course .ta-badges {
	margin-block-start: 0;
}

.ta-course__body .ta-card-cta {
	/* Bottom-aligned so every course card closes the same way. */
	margin-block-start: auto;
}

.ta-course__link:hover .ta-card-surface {
	transform: translateY(-3px);
	box-shadow: var(--shadow-interactive);
}

.ta-course__link:focus-visible .ta-card-surface {
	border-color: rgba(23, 79, 58, 0.35);
	box-shadow: var(--shadow-interactive);
}

.ta-course__link:hover .ta-media__image {
	transform: scale(1.025);
}

/* Flagship inline-start, the two secondary cards stacked inline-end. Below this
   the section stacks rather than forcing a two-column balance onto a tight width. */
/*
 * Desktop: flagship inline-start, the two secondary cards stacked inline-end, and
 * the two columns EXACTLY the same height.
 *
 * The equality is structural, not measured: `align-items: stretch` makes both
 * grid children fill the single row, and the stack's two `1fr` rows split that
 * same height between its cards. Nothing is hardcoded and nothing is measured in
 * script — whichever side needs more room sets the row and the other stretches
 * to it, so the difference is 0 rather than "close".
 */
@media (min-width: 1200px) {
	.ta-courses {
		/* 53 / 47: the flagship stays the dominant card, but the secondary column
		   gains the width its larger media needs. */
		grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
		gap: 28px;
		align-items: stretch;
	}

	.ta-courses__stack {
		grid-template-rows: repeat(2, minmax(0, 1fr));
		grid-auto-rows: auto;
		block-size: 100%;
		min-block-size: 0;
	}

	.ta-courses__stack .ta-course .ta-card-surface {
		/* Two columns, media side first in the DOM so the media track is listed
		   first. The copy keeps the wider track. */
		grid-template-columns: clamp(195px, 41%, 214px) minmax(0, 1fr);
		grid-template-rows: minmax(0, 1fr);
		gap: 26px;
		padding: clamp(24px, 2vw, 28px);
		align-items: center;
		block-size: 100%;
	}

	.ta-courses__stack .ta-course__visual {
		align-self: center;
	}

	/* The card's own padding insets the media side on desktop. */
	.ta-courses__stack .ta-course__media .ta-media {
		/* The larger desktop media keeps the same landscape ratio. */
		aspect-ratio: 4 / 3;
	}
}

/* ================================================================== Books */

/*
 * No section band. Contrast comes from a single contained white editorial panel
 * behind the shelf, on the same Warm Ivory page.
 */
.ta-books__grid {
	display: grid;
	grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
	gap: var(--space-16);
	grid-template-areas: "intro shelf";
	align-items: center;
}

.ta-books__intro {
	grid-area: intro;
}

.ta-books__all {
	margin-block-start: var(--space-8);
}

.ta-books__shelf {
	grid-area: shelf;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--space-6);
	align-items: start;
	margin: 0;
	padding: clamp(28px, 3vw, 44px);
	list-style: none;
	background-color: var(--color-surface);
	border: 1px solid rgba(23, 79, 58, 0.08);
	border-radius: 22px;
	box-shadow: 0 12px 34px rgba(23, 79, 58, 0.06);
}

.ta-book {
	display: block;
}

.ta-book__link {
	display: block;
	border-radius: 16px;
	color: inherit;
	text-decoration: none;
}

.ta-book__link:focus-visible {
	outline: var(--focus-outline-width) solid var(--color-green-900);
	outline-offset: 3px;
}

.ta-book .ta-card-surface {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--space-2);
}

.ta-book__cover {
	display: block;
	inline-size: 100%;
}

.ta-book__title {
	margin: var(--space-2) 0 0;
	color: var(--color-heading);
	font-family: var(--font-heading);
	font-size: clamp(17px, 1.25vw, 20px);
	font-weight: var(--weight-bold);
	line-height: 1.3;
}

.ta-book__text {
	margin: 0;
	color: var(--color-text-muted);
	font-size: clamp(14px, 1vw, 15px);
	line-height: var(--leading-body);
}

.ta-book .ta-badges {
	margin-block-start: 0;
}

.ta-book__cover .ta-media--book {
	box-shadow: 0 6px 18px rgba(23, 79, 58, 0.1);
	transition: transform var(--duration-standard) var(--ease-interaction), box-shadow var(--duration-standard) var(--ease-interaction);
}

/* Small rise, no rotation: the covers stay straight in a row. The cover moves
   inside the anchor, so the card's own hit area is unaffected. */
.ta-book__link:hover .ta-media--book,
.ta-book__link:focus-visible .ta-media--book {
	transform: translateY(-5px);
	box-shadow: 0 14px 30px rgba(23, 79, 58, 0.14);
}

/* ========================================================= Learning paths */

.ta-paths {
	position: relative;
}

/* Progression rule behind the three panels. */
.ta-paths__line {
	position: absolute;
	inset-block-start: 42%;
	inset-inline: 12%;
	block-size: 1px;
	background-image: linear-gradient(to left, transparent 0%, rgba(23, 79, 58, 0.22) 12%, rgba(23, 79, 58, 0.22) 88%, transparent 100%);
	/* Draws from the reading edge outward, after the panels have settled. */
	transform-origin: 100% 50%;
}

html[dir="ltr"] .ta-paths__line {
	transform-origin: 0 50%;
}

@keyframes ta-line-draw-x {
	from {
		transform: scaleX(0);
	}

	to {
		transform: scaleX(1);
	}
}

@keyframes ta-line-draw-y {
	from {
		transform: scaleY(0);
	}

	to {
		transform: scaleY(1);
	}
}

/*
 * The connector is part of the same motion language: it keys off the wrapper's
 * own reveal hook, draws once in ~600ms and is never replayed. It stays in the
 * base stylesheet rather than the reveal block because the rule that hides
 * blocks is not what should own a line that merely draws.
 */
.ta-js .ta-paths.is-revealed .ta-paths__line {
	animation: ta-line-draw-x 600ms var(--ta-ease-entrance) both;
}

.ta-paths__stages {
	position: relative;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--space-8);
	margin: 0;
	padding: 0;
	list-style: none;
}

.ta-stage {
	display: block;
}

.ta-stage__link {
	display: block;
	block-size: 100%;
	border-radius: 18px;
	color: inherit;
	text-decoration: none;
}

.ta-stage__link:focus-visible {
	outline: var(--focus-outline-width) solid var(--color-green-900);
	outline-offset: 3px;
}

/* Each path is a white panel: media on top, content below. */
.ta-stage .ta-card-surface {
	border: 1px solid rgba(23, 79, 58, 0.08);
	border-radius: 18px;
	background-color: var(--color-surface);
	box-shadow: 0 8px 24px rgba(23, 79, 58, 0.06);
	overflow: hidden;
}

.ta-stage__media {
	overflow: hidden;
}

.ta-stage__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--space-2);
	padding: clamp(24px, 2.2vw, 32px);
}

.ta-stage__stage {
	margin: 0;
	color: var(--color-gold-action);
	font-family: var(--font-latin);
	font-size: 13px;
	font-weight: var(--weight-bold);
	line-height: 1;
}

.ta-stage__title {
	margin: 0;
	color: var(--color-heading);
	font-family: var(--font-heading);
	font-size: clamp(19px, 1.5vw, 23px);
	font-weight: var(--weight-bold);
	line-height: var(--leading-heading);
}

.ta-stage__text {
	margin: 0;
	color: var(--color-text-muted);
	font-size: clamp(15px, 1.05vw, 16px);
	line-height: var(--leading-body);
}

/* The middle path carries a small Deep Green emphasis. */
.ta-stage--emphasis .ta-card-surface {
	border-color: rgba(23, 79, 58, 0.28);
	box-shadow: 0 16px 38px rgba(23, 79, 58, 0.13);
}

.ta-stage--emphasis .ta-stage__stage {
	display: inline-flex;
	align-items: center;
	padding: 4px 10px;
	border-radius: var(--radius-pill);
	background-color: var(--color-green-900);
	color: var(--color-white);
}

.ta-stage__link:hover .ta-card-surface {
	transform: translateY(-3px);
	box-shadow: 0 16px 36px rgba(23, 79, 58, 0.12);
}

.ta-stage__link:focus-visible .ta-card-surface {
	border-color: rgba(23, 79, 58, 0.35);
	box-shadow: 0 16px 36px rgba(23, 79, 58, 0.12);
}

.ta-stage__link:hover .ta-media__image {
	transform: scale(1.02);
}

/* ================================================== Free content (on green) */

/*
 * The one full-width Deep Green section in the body. Everything inside it is
 * either warm-white copy or a white card, so the contrast is entirely in the
 * section rather than in another band.
 */
.ta-home__free {
	padding-block: var(--home-section-space-lg);
	background-color: var(--color-green-900);
	color: var(--color-white);
}

.ta-home__free .ta-h2 {
	color: var(--color-white);
}

.ta-home__free .ta-lead {
	color: rgba(255, 255, 255, 0.8);
}

/* Guides and the library side by side, never two stacked components. */
.ta-free__grid {
	display: grid;
	grid-template-columns: minmax(0, 58fr) minmax(0, 42fr);
	gap: clamp(32px, 4vw, 56px);
	align-items: start;
}

.ta-free__guides {
	display: grid;
	gap: var(--space-6);
}

/* The dominant guide: one large white editorial card. */
.ta-guide-lead {
	display: block;
}

.ta-guide-lead__link {
	display: block;
	border-radius: 18px;
	color: inherit;
	text-decoration: none;
}

.ta-guide-lead__link:focus-visible {
	outline: var(--focus-outline-width) solid var(--color-white);
	outline-offset: 3px;
}

.ta-guide-lead .ta-card-surface {
	border-radius: 18px;
	background-color: var(--color-surface);
	color: var(--color-text);
	overflow: hidden;
}

.ta-guide-lead__media {
	overflow: hidden;
}

.ta-guide-lead__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--space-3);
	padding: clamp(24px, 2.4vw, 34px);
}

.ta-guide-lead__label {
	margin: 0;
	color: var(--color-gold-action);
	font-size: clamp(13px, 1vw, 14px);
	font-weight: var(--weight-bold);
	line-height: var(--leading-meta);
}

.ta-guide-lead__title {
	margin: 0;
	color: var(--color-heading);
	font-family: var(--font-heading);
	font-size: clamp(22px, 1.9vw, 30px);
	font-weight: var(--weight-bold);
	line-height: 1.24;
}

.ta-guide-lead__text {
	margin: 0;
	color: var(--color-text-muted);
	font-size: clamp(15px, 1.05vw, 17px);
	line-height: var(--leading-body);
}

.ta-guide-lead__link:hover .ta-media__image {
	transform: scale(1.02);
}

/* Two supported cards beneath it, each one destination. */
.ta-guides {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--space-6);
	margin: 0;
	padding: 0;
	list-style: none;
}

.ta-guide {
	display: block;
}

.ta-guide__link {
	display: block;
	block-size: 100%;
	border-radius: 18px;
	color: inherit;
	text-decoration: none;
}

.ta-guide__link:focus-visible {
	outline: var(--focus-outline-width) solid var(--color-green-900);
	outline-offset: 2px;
}

.ta-guide .ta-card-surface {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--space-2);
	block-size: 100%;
	padding: clamp(20px, 2vw, 28px);
	border: 1px solid rgba(23, 79, 58, 0.08);
	border-radius: 18px;
	background-color: var(--color-sage-100);
}

.ta-guide__title {
	margin: 0;
	padding-inline-end: var(--space-8);
	color: var(--color-heading);
	font-family: var(--font-heading);
	font-size: clamp(17px, 1.3vw, 20px);
	font-weight: var(--weight-bold);
	line-height: 1.3;
}

.ta-guide__text {
	margin: 0;
	color: var(--color-text-muted);
	font-size: clamp(14px, 1vw, 15px);
	line-height: var(--leading-body);
}

.ta-guide__cta {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
	min-block-size: 44px;
	margin-block-start: var(--space-1);
	color: var(--color-green-900);
	font-size: clamp(14px, 1vw, 15px);
	font-weight: var(--weight-bold);
}

.ta-guide__arrow {
	position: absolute;
	inset-block-start: var(--space-6);
	inset-inline-end: var(--space-6);
	display: inline-flex;
	color: var(--color-green-900);
	transition: transform var(--duration-interaction) var(--ease-interaction);
}

.ta-guide__link:hover .ta-card-surface {
	transform: translateY(-3px);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

.ta-guide__link:hover .ta-guide__arrow {
	transform: translateX(-4px);
}

html[dir="ltr"] .ta-guide__link:hover .ta-guide__arrow {
	transform: translateX(4px);
}

/* ------------------------------------------------------ Tarot library */

.ta-library {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--space-6);
	padding: clamp(24px, 2.4vw, 34px);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 22px;
	background-color: rgba(255, 255, 255, 0.06);
}

.ta-library__title {
	margin: 0;
	color: var(--color-white);
	font-family: var(--font-heading);
	font-size: clamp(20px, 1.7vw, 26px);
	font-weight: var(--weight-bold);
	line-height: var(--leading-heading);
}

/* 2 × 2 inside the green section. */
.ta-library__rail {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--space-5);
	inline-size: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ta-tarot {
	margin-block-start: 0;
}

/* Already a single anchor per card: media and title inside one link. */
.ta-tarot__link {
	display: grid;
	gap: var(--space-3);
	color: inherit;
	text-decoration: none;
}

.ta-tarot__link:focus-visible {
	outline: var(--focus-outline-width) solid var(--color-white);
	outline-offset: 3px;
}

.ta-tarot__media {
	display: block;
	overflow: hidden;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16);
	transition: transform var(--duration-standard) var(--ease-interaction), box-shadow var(--duration-standard) var(--ease-interaction);
}

.ta-tarot__title {
	color: var(--color-white);
	font-family: var(--font-heading);
	font-size: clamp(15px, 1.15vw, 18px);
	font-weight: var(--weight-bold);
	line-height: var(--leading-heading);
}

/* The preview's own box is the link, so the raise happens inside it and the
   hit area stays put. */
.ta-tarot__link:hover .ta-tarot__media,
.ta-tarot__link:focus-visible .ta-tarot__media {
	transform: translateY(-4px);
	box-shadow: 0 12px 26px rgba(0, 0, 0, 0.24);
}

.ta-library__cta {
	margin-block-start: var(--space-1);
}

/* ================================================================ Sarah */

/* Transparent, with no surrounding card. */
.ta-sarah__grid {
	display: grid;
	grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
	gap: clamp(32px, 4vw, 64px);
	grid-template-areas: "media content";
	align-items: center;
}

.ta-sarah__media {
	grid-area: media;
	position: relative;
}

.ta-sarah__shape {
	position: absolute;
	inset-block-start: 28px;
	inset-block-end: -22px;
	inset-inline-start: -20px;
	inset-inline-end: 26px;
	z-index: 0;
	border-radius: 26px;
	background-color: var(--color-sage-100);
}

.ta-sarah__media .ta-media {
	position: relative;
	z-index: 1;
}

.ta-sarah__content {
	grid-area: content;
}

.ta-sarah__points {
	display: grid;
	gap: var(--space-4);
	margin: var(--space-8) 0 0;
	padding: 0;
	list-style: none;
}

.ta-sarah__point {
	display: flex;
	align-items: flex-start;
	gap: var(--space-3);
	margin-block-start: 0;
	color: var(--color-text);
	font-size: clamp(15px, 1.05vw, 17px);
	line-height: var(--leading-body);
}

.ta-sarah__point .ta-icon {
	margin-block-start: 3px;
	color: var(--color-green-900);
}

/* A positioning statement in its own voice — never dressed as a quotation. */
.ta-sarah__statement {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: var(--space-4);
	margin: var(--space-8) 0 0;
	padding: var(--space-6);
	border: none;
	border-inline-start: 2px solid var(--color-gold);
	background-color: rgba(221, 233, 225, 0.5);
}

.ta-sarah__statement-icon {
	display: inline-flex;
	color: var(--color-gold-action);
}

.ta-sarah__statement p {
	margin: 0;
	color: var(--color-heading);
	font-family: var(--font-heading);
	font-size: clamp(17px, 1.3vw, 20px);
	font-weight: var(--weight-bold);
	line-height: var(--leading-body);
}

.ta-sarah__action {
	margin: var(--space-8) 0 0;
}

/* ================================================================== FAQ */

/* Transparent on the one base: no white band, no card per question. The closing
   boundary below is deliberately tighter than a full section gap. */
.ta-faq__grid {
	display: grid;
	grid-template-columns: minmax(0, 35fr) minmax(0, 65fr);
	gap: clamp(32px, 4vw, 60px);
	align-items: start;
}

.ta-faq__grid--with-proof {
	grid-template-columns: minmax(0, 4fr) minmax(0, 4fr) minmax(0, 4fr);
}

.ta-faq__intro {
	position: sticky;
	inset-block-start: var(--space-20);
	margin-block-end: 0;
}

/*
 * The intro's own action. It closes the copy cluster rather than being pushed to
 * the foot of the column, so the right side reads as one complete
 * heading/paragraph/action composition beside the accordion.
 */
.ta-faq__all {
	margin-block-start: 30px;
}

.ta-faq__list {
	/* One contained panel rather than four loose rows. */
	background-color: var(--color-surface);
	border: 1px solid rgba(23, 79, 58, 0.09);
	border-radius: 20px;
	box-shadow: 0 10px 30px rgba(23, 79, 58, 0.06);
	overflow: hidden;
}

.ta-faq__item {
	border-block-end: 1px solid rgba(23, 79, 58, 0.09);
	transition: background-color var(--duration-interaction) var(--ease-interaction);
}

/* White row surface, introduced only on hover or while open. */
.ta-faq__item[open],
.ta-faq__item:hover {
	background-color: var(--color-surface);
}

.ta-faq__item[open] {
	border-radius: var(--radius-sm);
}

.ta-faq__q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-6);
	min-block-size: 72px;
	padding-block: var(--space-4);
	padding-inline: clamp(22px, 1.8vw, 26px);
	color: var(--color-heading);
	font-family: var(--font-heading);
	font-size: clamp(18px, 1.35vw, 20px);
	font-weight: var(--weight-bold);
	line-height: 1.35;
	cursor: pointer;
	list-style: none;
	transition: color var(--duration-interaction) var(--ease-interaction);
}

.ta-faq__q::-webkit-details-marker {
	display: none;
}

.ta-faq__q::marker {
	content: "";
}

.ta-faq__q:hover {
	color: var(--color-gold-action);
}

.ta-faq__q:focus-visible {
	outline: var(--focus-outline-width) solid var(--color-green-900);
	outline-offset: -2px;
}

/* Plus becomes a minus when the answer opens. */
.ta-faq__marker {
	position: relative;
	flex: 0 0 auto;
	inline-size: 34px;
	block-size: 34px;
	border-radius: 50%;
	background-color: var(--color-sage-100);
	transition: background-color var(--duration-interaction) var(--ease-interaction);
}

.ta-faq__marker::before,
.ta-faq__marker::after {
	content: "";
	position: absolute;
	inset: 0;
	margin: auto;
	border-radius: 2px;
	background-color: var(--color-green-900);
	transition: transform var(--duration-interaction) var(--ease-interaction), opacity var(--duration-interaction) var(--ease-interaction);
}

.ta-faq__marker::before {
	inline-size: 12px;
	block-size: 1.6px;
}

.ta-faq__marker::after {
	inline-size: 1.6px;
	block-size: 12px;
}

.ta-faq__item[open] .ta-faq__marker::after {
	transform: scaleY(0);
	opacity: 0;
}

.ta-faq__a {
	padding: 0 clamp(24px, 2vw, 28px) clamp(22px, 1.8vw, 26px);
}

.ta-faq__a p {
	margin: 0;
	max-inline-size: 62ch;
	color: var(--color-text-muted);
	font-size: clamp(16px, 1.05vw, 17px);
	line-height: 1.8;
}

/* Keyframe reveal rather than height animation: robust and never clipped. */
.ta-faq__item[open] .ta-faq__a {
	animation: ta-faq-in 320ms var(--ease-standard) both;
}

@keyframes ta-faq-in {
	from {
		opacity: 0;
		transform: translateY(-6px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

/* Only rendered when real testimonials exist. */
.ta-proof {
	display: grid;
	gap: var(--space-6);
	margin: 0;
	padding: 0;
	list-style: none;
}

.ta-proof__item {
	margin-block-start: 0;
	padding: var(--space-6);
	border: var(--border-card);
	border-radius: var(--radius-lg);
	background-color: var(--color-surface);
}

.ta-proof__text {
	margin: 0;
	color: var(--color-text);
	font-size: clamp(16px, 1.05vw, 17px);
	line-height: var(--leading-body);
}

.ta-proof__author {
	margin: var(--space-4) 0 0;
	color: var(--color-heading);
	font-weight: var(--weight-bold);
	font-size: 15px;
}

/* ============================================================ Final CTA */

/*
 * One contained Deep Green panel with a photograph overlapping its inline-end
 * edge. There is no second surface, no central seam and no detached action zone:
 * the overlap is the composition, and the button is the last item of the copy
 * cluster.
 *
 * Both children share a single grid cell, so the panel keeps its own proportion
 * (78% of the container, pushed to the inline-start) while the figure sits at the
 * opposite edge and crosses the panel's boundary by whatever the two widths
 * leave. Nothing here is measured or scripted — the overlap is a consequence of
 * the two declared sizes.
 */
.ta-closing {
	position: relative;
	display: grid;
	/* RTL: column 1 is the inline-start (right) and holds the copy; the
	   photograph owns the other column edge to edge. */
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.42fr);
	align-items: stretch;
	max-inline-size: 1200px;
	/* A fixed editorial band, so the photograph fills and crops instead of
	   dictating the component's height. */
	block-size: clamp(360px, 30vw, 420px);
	margin-inline: auto;
	overflow: hidden;
	border-radius: clamp(22px, 2vw, 28px);
	background-color: var(--color-green-900);
	color: var(--color-white);
}

.ta-closing__panel {
	grid-column: 1;
	grid-row: 1;
	display: flex;
	align-items: center;
	padding-block: clamp(40px, 3.6vw, 64px);
	padding-inline: clamp(32px, 4vw, 64px);
}

.ta-closing__copy {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	max-inline-size: 520px;
}

.ta-closing__title {
	margin: 0;
	max-inline-size: 440px;
	color: var(--color-white);
	font-size: clamp(34px, 3vw, 48px);
	font-weight: var(--weight-bold);
	line-height: 1.15;
	text-wrap: balance;
}

.ta-closing__lead {
	margin: var(--space-4) 0 0;
	max-inline-size: 500px;
	color: rgba(255, 255, 255, 0.82);
	font-size: clamp(18px, 1.25vw, 20px);
	line-height: 1.7;
}

/* One hairline between the message and its action, nothing more. */
.ta-closing__cta {
	margin-block-start: 26px;
	min-block-size: 50px;
	padding: 14px 22px;
	border: 1px solid var(--color-ivory);
	border-radius: 11px;
	background-color: var(--color-ivory);
	color: var(--color-green-900);
	box-shadow: none;
}

.ta-closing__cta:hover {
	border-color: var(--color-white);
	background-color: var(--color-white);
	color: var(--color-green-900);
}

.ta-closing__cta:focus-visible {
	outline-color: var(--color-white);
}

.ta-closing__figure {
	grid-column: 2;
	grid-row: 1;
	position: relative;
	display: flex;
	min-inline-size: 0;
	/* Let the band, not the photograph's ratio, own the height. */
	min-block-size: 0;
}

.ta-closing__figure .ta-media {
	flex: 1;
	min-block-size: 0;
	block-size: 100%;
	aspect-ratio: auto;
	overflow: hidden;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

.ta-closing__figure .ta-media__image {
	block-size: 100%;
	object-fit: cover;
}

@media (max-width: 899px) {
	.ta-closing {
		grid-template-columns: minmax(0, 1fr);
		block-size: auto;
	}

	.ta-closing__figure {
		grid-column: 1;
		grid-row: 1;
	}

	.ta-closing__figure .ta-media {
		aspect-ratio: 16 / 10;
	}

	.ta-closing__panel {
		grid-column: 1;
		grid-row: 2;
		padding: 26px 24px 30px;
	}

	.ta-closing__title {
		font-size: clamp(30px, 8vw, 36px);
	}

	.ta-closing__cta {
		inline-size: 100%;
		justify-content: center;
	}
}

/* FAQ: below 900px the intro stops being a side column. */
@media (max-width: 900px) {
	.ta-faq__grid,
	.ta-faq__grid--with-proof {
		grid-template-columns: minmax(0, 1fr);
		gap: var(--space-12);
	}

	.ta-faq__intro {
		position: static;
	}

	.ta-faq__intro .ta-lead {
		max-inline-size: none;
	}
}

/* ================================================================= Motion */

/*
 * One motion grammar for the whole homepage, built from three primitives:
 *
 *   [data-reveal]           content — copy, cards, list items
 *   [data-reveal="media"]   media   — a slightly longer, slightly scaled settle
 *   [data-reveal-group]     stagger — 70ms steps, capped at 280ms
 *
 * `ta-js` is added by home.js only when it actually runs, so with JavaScript
 * disabled every block is simply visible and nothing depends on motion. The hero
 * copy is never an observer target: it is above the fold, so it runs its own
 * short load sequence instead of waiting for a scroll that will never happen.
 */
.ta-home {
	--ta-duration-content: 560ms; /* 500–600ms */
	--ta-duration-media: 640ms; /* 600–700ms */
	--ta-ease-entrance: cubic-bezier(0.22, 1, 0.36, 1);
	--ta-reveal-distance: 18px;
}

/*
 * Hero plane: transform only. An opacity animation that fails to advance would
 * hide the plane, while a transform that fails to advance merely leaves it a few
 * percent zoomed.
 */
@keyframes ta-home-resolve {
	from {
		transform: scale(1.03);
	}

	to {
		transform: none;
	}
}

/*
 * Hero load sequence: background plane, then eyebrow/heading/lead, then the
 * buttons and the support capsule. Deliberately one short pass — the whole
 * sequence resolves inside 700ms and no above-the-fold content ever waits on
 * scroll. home.js releases it after 800ms, so even a context where animations
 * never advance ends with every line visible.
 */
@keyframes ta-hero-load {
	from {
		opacity: 0;
		transform: translateY(14px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

.ta-hero__bg {
	animation: ta-home-resolve 700ms var(--ta-ease-entrance) both;
}

.ta-hero__body > * {
	animation: ta-hero-load 440ms var(--ta-ease-entrance) both;
}

.ta-hero__body > :nth-child(2) {
	animation-delay: 50ms;
}

.ta-hero__body > :nth-child(3) {
	animation-delay: 100ms;
}

.ta-hero__body > :nth-child(4) {
	animation-delay: 170ms;
}

.ta-hero__body > :nth-child(n + 5) {
	animation-delay: 230ms;
}

/* Set by home.js once the sequence has had its turn — or once it is clear it
   never will — handing the copy back to its own styles. */
.ta-hero.is-settled .ta-hero__body > *,
.ta-hero.is-settled .ta-hero__bg {
	animation: none;
}

.ta-js [data-reveal] {
	opacity: 0;
	transform: translateY(var(--ta-reveal-distance));
	transition:
		opacity var(--ta-duration-content) var(--ta-ease-entrance) var(--ta-reveal-delay, 0ms),
		transform var(--ta-duration-content) var(--ta-ease-entrance) var(--ta-reveal-delay, 0ms);
}

/* Media settles a little later and from a hair smaller, never blurred or
   rotated: the same language, one degree deeper. */
.ta-js [data-reveal="media"] {
	--ta-reveal-distance: 14px;
	transform: translateY(14px) scale(0.985);
	transition:
		opacity var(--ta-duration-media) var(--ta-ease-entrance) var(--ta-reveal-delay, 0ms),
		transform var(--ta-duration-media) var(--ta-ease-entrance) var(--ta-reveal-delay, 0ms);
}

.ta-js [data-reveal].is-revealed {
	opacity: 1;
	transform: none;
}

/* Small stagger, capped: groups settle in sequence, items never crawl. */
.ta-js [data-reveal-group] > [data-reveal]:nth-child(2) {
	--ta-reveal-delay: 70ms;
}

.ta-js [data-reveal-group] > [data-reveal]:nth-child(3) {
	--ta-reveal-delay: 140ms;
}

.ta-js [data-reveal-group] > [data-reveal]:nth-child(4) {
	--ta-reveal-delay: 210ms;
}

.ta-js [data-reveal-group] > [data-reveal]:nth-child(n + 5) {
	--ta-reveal-delay: 280ms;
}

/*
 * Why section: the reveal follows the reading order — heading and intro, then the
 * media, then the three numbered benefits — using the same 70ms rhythm. The
 * delays are explicit because the media is the second beat while being the
 * second DOM child of a two-column grid.
 */
.ta-why__grid .ta-section-head {
	--ta-reveal-delay: 0ms;
}

.ta-why__media {
	--ta-reveal-delay: 70ms;
}

.ta-why__benefit:nth-child(1) {
	--ta-reveal-delay: 140ms;
}

.ta-why__benefit:nth-child(2) {
	--ta-reveal-delay: 210ms;
}

.ta-why__benefit:nth-child(3) {
	--ta-reveal-delay: 280ms;
}

/* =========================================================== Responsive */

@media (max-width: 1023px) {
	.ta-hero {
		/* Tablet steps down naturally rather than holding the desktop height. */
		min-block-size: clamp(660px, 76vh, 780px);
	}

	.ta-hero__inner {
		grid-template-columns: minmax(0, 1fr);
	}

	.ta-why__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: var(--space-12);
		grid-template-areas:
			"content"
			"media";
		align-items: start;
	}

	.ta-why__media {
		transform: none;
	}

	.ta-books__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: var(--space-12);
		grid-template-areas:
			"intro"
			"shelf";
	}

	/* Paths stack; the progression rule becomes a vertical spine. */
	.ta-paths__line {
		inset-block: 4%;
		inset-inline: auto;
		inset-inline-start: 50%;
		inline-size: 1px;
		block-size: auto;
		background-image: linear-gradient(to bottom, transparent 0%, rgba(23, 79, 58, 0.22) 10%, rgba(23, 79, 58, 0.22) 90%, transparent 100%);
		transform-origin: 50% 0;
	}

	.ta-js .ta-paths.is-revealed .ta-paths__line {
		animation-name: ta-line-draw-y;
	}

	.ta-paths__stages {
		grid-template-columns: minmax(0, 1fr);
		gap: var(--space-10);
	}

	.ta-free__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.ta-sarah__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: var(--space-12);
		grid-template-areas:
			"media"
			"content";
	}

	/* Below this the overlap would start crowding the copy, so the component
	   stacks: image first, panel second, with a small deliberate overlap where
	   the panel tucks under the image instead of just sitting below it. */
	.ta-closing {
		align-items: stretch;
	}

	.ta-closing > * {
		grid-area: auto;
	}

	.ta-closing__figure {
		justify-self: stretch;
		inline-size: 100%;
	}

	/* Stacked, the photograph is a full-width 4:3 plate, capped so a tablet does
	   not get a half-screen-tall image. */
	.ta-closing__figure .ta-media--final {
		aspect-ratio: 4 / 3;
		max-block-size: 460px;
	}

	.ta-closing__backing {
		/* The panel's overlap provides the depth at this size. */
		display: none;
	}

	.ta-closing__panel {
		inline-size: 100%;
		margin-block-start: clamp(-40px, -3vw, -24px);
		padding-block: clamp(36px, 5vw, 56px);
		padding-inline: clamp(28px, 5vw, 48px);
	}
}

@media (max-width: 767px) {

	.ta-hero {
		/* Bottom-anchored on phones, and far shorter than the desktop hero: the
		   cinematic height is a desktop device, not something to preserve at 390. */
		align-content: end;
		min-block-size: clamp(620px, 82vh, 700px);
		padding-block: clamp(96px, 24vw, 128px) clamp(44px, 9vw, 64px);
	}

	.ta-hero__title {
		font-size: clamp(34px, 8.8vw, 44px);
		line-height: 1.12;
	}

	.ta-hero__bg-image {
		object-position: var(--ta-hero-mobile-focal-x, 50%) var(--ta-hero-mobile-focal-y, 34%);
	}

	/* Bottom-anchored wash: dark enough for the copy, light enough at the top for
	   Sarah to stay visible above it. */
	.ta-hero__scrim,
	html[dir="ltr"] .ta-hero__scrim {
		background-image: linear-gradient(to top, rgba(12, 42, 31, 0.95) 0%, rgba(12, 42, 31, 0.86) 36%, rgba(18, 53, 42, 0.6) 62%, rgba(23, 79, 58, 0.24) 84%, rgba(23, 79, 58, 0.04) 100%);
	}

	/* Phones only: image, badges, then the copy. Tablet and desktop keep the
	   two-column card. */
	.ta-courses__stack .ta-course .ta-card-surface {
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: auto;
		gap: 0;
		padding: 0;
		align-items: stretch;
		overflow: hidden;
		min-block-size: 0;
	}

	.ta-courses__stack .ta-course__visual {
		align-self: stretch;
	}

	.ta-courses__stack .ta-course__visual .ta-badges {
		padding-inline: var(--space-5);
	}

	.ta-courses__stack .ta-course__media {
		border-radius: 0;
	}

	.ta-courses__stack .ta-course__media .ta-media {
		aspect-ratio: 16 / 9;
	}

	.ta-courses__stack .ta-course__body {
		padding: var(--space-5);
	}

	/* Books become a controlled cover rail inside their panel. */
	.ta-books__shelf {
		grid-template-columns: none;
		grid-auto-flow: column;
		grid-auto-columns: 68%;
		gap: var(--space-5);
		overflow-x: auto;
		scroll-snap-type: inline mandatory;
		padding: clamp(20px, 5vw, 28px);
		scrollbar-width: thin;
	}

	.ta-book {
		scroll-snap-align: start;
	}

	.ta-guides {
		grid-template-columns: minmax(0, 1fr);
	}

	/* Tarot library stays 2 × 2 — it reads better than a rail on a phone. */
	.ta-library__rail {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ta-why__shape {
		inset-block-start: 22px;
		inset-block-end: -16px;
		inset-inline-start: 16px;
		inset-inline-end: -12px;
	}

	.ta-sarah__shape {
		inset-block-start: 22px;
		inset-block-end: -16px;
		inset-inline-start: -12px;
		inset-inline-end: 18px;
	}

	.ta-faq__q,
	.ta-faq__a {
		padding-inline: var(--space-4);
	}

	.ta-why__benefit--emphasis {
		margin-inline: 0;
	}

	.ta-closing__panel {
		padding: clamp(30px, 7vw, 40px) clamp(22px, 6vw, 32px) clamp(32px, 7vw, 44px);
		border-radius: 24px;
	}

	.ta-closing__title {
		font-size: clamp(34px, 8.4vw, 40px);
	}

	.ta-closing__figure .ta-media--final {
		aspect-ratio: 4 / 3;
	}
}

@media (max-width: 479px) {
	.ta-hero__actions {
		align-items: stretch;
		flex-direction: column;
		gap: 10px;
	}

	.ta-hero__actions .ta-button {
		inline-size: 100%;
	}

	/* The quiet link stacks under the full-width primary and centres itself. */
	.ta-hero__secondary {
		justify-content: center;
		inline-size: 100%;
	}

	.ta-section-head__action,
	.ta-card-cta {
		inline-size: 100%;
		justify-content: center;
	}

	.ta-closing__cta {
		inline-size: 100%;
		justify-content: center;
	}
}

/* ======================================================= Reduced motion */

/* Everything stays immediately visible; nothing moves on its own. */
@media (prefers-reduced-motion: reduce) {
	.ta-hero__bg,
	.ta-hero__body > *,
	.ta-js .ta-paths.is-revealed .ta-paths__line {
		animation: none;
	}

	.ta-js [data-reveal],
	.ta-js [data-reveal="media"],
	.ta-js [data-reveal].is-revealed {
		opacity: 1;
		transform: none;
		transition: none;
	}

	.ta-faq__item[open] .ta-faq__a {
		animation: none;
	}

	.ta-course__link:hover .ta-card-surface,
	.ta-stage__link:hover .ta-card-surface,
	.ta-guide__link:hover .ta-card-surface {
		transform: none;
	}

	.ta-course__link:hover .ta-media__image,
	.ta-guide-lead__link:hover .ta-media__image,
	.ta-stage__link:hover .ta-media__image,
	.ta-book__link:hover .ta-media--book,
	.ta-tarot__link:hover .ta-tarot__media,
	.ta-tarot__link:focus-visible .ta-tarot__media {
		transform: none;
	}

	.ta-guide__link:hover .ta-guide__arrow,
	.ta-course__link:hover .ta-card-cta .ta-icon--directional,
	.ta-stage__link:hover .ta-card-cta .ta-icon--directional,
	.ta-guide-lead__link:hover .ta-card-cta .ta-icon--directional {
		transform: none;
	}
}

.ta-course__link:hover .ta-card-cta,
.ta-book__link:hover .ta-card-cta,
.ta-stage__link:hover .ta-card-cta,
.ta-guide-lead__link:hover .ta-card-cta {
	background-color: color-mix(in srgb, var(--color-sage-100) 86%, var(--color-green-900));
}

.ta-course__link:hover .ta-card-cta--primary,
.ta-stage__link:hover .ta-card-cta--primary,
.ta-guide-lead__link:hover .ta-card-cta--primary {
	background-color: var(--color-green-950);
}

.ta-courses__stack .ta-course__note {
	margin: 0 0 var(--space-2);
}

.ta-courses__stack .ta-course__text {
	/* Title → description 12px, and a 20px floor above the CTA. */
	margin: var(--space-3) 0 20px;
	font-size: clamp(16px, 1.15vw, 17px);
	line-height: 1.8;
	/* Holds the description at 30-40 Arabic characters per line; on the desktop
	   card the column is already narrower, so this has no effect there. */
	max-inline-size: min(100%, 40ch);
}

.ta-courses__stack .ta-card-cta {
	/* Settles at the card's bottom so both secondary cards share one CTA baseline.
	   The minimum gap above it comes from the description's bottom margin. */
	margin-block-start: auto;
}

.ta-faq__intro .ta-lead {
	max-inline-size: 420px;
}

/* ============================================================================
 * P05-DISCOVERY-01 — the homepage discovery middle
 *
 * Four sections, one heading language, four different surfaces:
 *   courses → white · books → warm ivory · paths → soft sage · free → deep green
 *
 * The bands own their interior air; the boundary gap stays the single
 * --ta-section-gap token owned by the following section, so adding a surface
 * never doubles a gap. Cards here are discovery objects, not catalogue rows:
 * every fact comes from the record it links to.
 * ========================================================================= */

.ta-home__courses {
	background-color: var(--color-white);
	padding-block: var(--home-section-space-lg);
}

.ta-home__books {
	background-color: var(--color-ivory);
	padding-block: var(--home-section-space-lg);
}

.ta-home__paths {
	background-color: var(--color-sage-100);
	padding-block: var(--home-section-space-lg);
}

/* ------------------------------------------------------------ Section head */

.ta-disc-head {
	max-inline-size: 640px;
	margin-block-end: clamp(32px, 3.4vw, 52px);
}

.ta-disc-head .ta-eyebrow {
	margin-block-end: 10px;
}

.ta-disc-head .ta-h2 {
	margin: 0;
	font-size: clamp(26px, 2.4vw, 38px);
	line-height: 1.2;
}

.ta-disc-head .ta-lead {
	margin-block-start: 14px;
	max-inline-size: 560px;
	color: var(--color-text-muted);
	font-size: clamp(16px, 1.15vw, 18px);
	line-height: 1.7;
}

.ta-disc-head--on-deep .ta-h2 {
	color: var(--color-white);
}

.ta-disc-head--on-deep .ta-lead {
	color: rgba(255, 255, 255, 0.78);
}

/* ------------------------------------------------------- Section exit link */

.ta-disc-exit {
	margin: clamp(28px, 3vw, 40px) 0 0;
}

.ta-disc-exit__link,
.ta-free-guides__all {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-block-size: 44px;
	padding: 10px 18px;
	border: 1px solid var(--color-green-900);
	border-radius: 11px;
	background-color: var(--color-green-900);
	color: var(--color-white);
	font-size: clamp(15px, 1.05vw, 16px);
	font-weight: var(--weight-bold);
	text-decoration: none;
	transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.ta-disc-exit__link:hover,
.ta-free-guides__all:hover {
	background-color: var(--color-green-800);
	border-color: var(--color-green-800);
	color: var(--color-white);
	transform: translateY(-1px);
}

.ta-disc-exit__link:focus-visible,
.ta-free-guides__all:focus-visible {
	outline: var(--focus-outline-width) solid var(--color-green-900);
	outline-offset: 3px;
	border-radius: 11px;
}

/* ----------------------------------------------------- Facts (course meta) */

.ta-facts {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 14px;
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--color-text-muted);
	font-size: 13px;
	font-weight: var(--weight-medium);
	line-height: 1.5;
}

.ta-facts__item {
	display: inline-flex;
	align-items: center;
	gap: 14px;
}

.ta-facts__item + .ta-facts__item::before {
	content: "";
	inline-size: 3px;
	block-size: 3px;
	border-radius: 50%;
	background-color: currentcolor;
	opacity: 0.5;
}

.ta-facts--quiet {
	color: rgba(23, 79, 58, 0.62);
}

/* ================================================================ Courses */

.ta-disc-courses {
	display: grid;
	gap: clamp(20px, 2.2vw, 28px);
	/* Four selected courses, two per column. */
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: stretch;
}

.ta-mini {
	display: flex;
}

.ta-mini__link {
	display: flex;
	flex-direction: column;
	gap: 0;
	inline-size: 100%;
	block-size: 100%;
	overflow: hidden;
	border: var(--border-card);
	border-radius: var(--radius-lg);
	background-color: var(--color-ivory);
	color: inherit;
	text-decoration: none;
	transition: transform 220ms var(--ease-interaction), box-shadow 220ms var(--ease-interaction);
}

/* The course's own image, full card width and the same 16:10 frame as the
   flagship, so all three cards share one visual language. */
.ta-mini__media {
	display: block;
	inline-size: 100%;
}

.ta-mini__media .ta-media--feature {
	border-radius: 0;
}

.ta-mini__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 9px;
	padding: clamp(16px, 1.7vw, 22px);
}

.ta-mini__link:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow-sm);
}

.ta-mini__link:focus-visible {
	outline: var(--focus-outline-width) solid var(--color-green-900);
	outline-offset: 3px;
}

.ta-mini__eyebrow {
	color: var(--color-gold-action);
	font-size: 12px;
	font-weight: var(--weight-bold);
}

.ta-mini__title {
	margin: 0;
	color: var(--color-heading);
	font-size: clamp(17px, 1.35vw, 20px);
	font-weight: var(--weight-bold);
	line-height: 1.35;
}

.ta-mini__text {
	margin: 0;
	color: var(--color-text-muted);
	font-size: 14px;
	line-height: 1.7;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.ta-mini__cta {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
	margin-block-start: auto;
	padding-block-start: 4px;
	color: var(--color-green-900);
	font-size: 14px;
	font-weight: var(--weight-bold);
}

.ta-mini__link:hover .ta-icon--directional {
	transform: translateX(-3px);
}

html[dir="ltr"] .ta-mini__link:hover .ta-icon--directional {
	transform: translateX(3px);
}

/* ================================================================== Books */

.ta-shelf {
	display: grid;
	gap: clamp(18px, 2vw, 26px);
	/* Four featured books: one shelf row on desktop, 2×2 on tablet, one per row
	   on phones. */
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ta-booklet {
	display: flex;
	min-inline-size: 0;
}

.ta-booklet__link {
	display: flex;
	flex-direction: column;
	gap: 16px;
	inline-size: 100%;
	color: inherit;
	text-decoration: none;
}

.ta-booklet__cover .ta-media {
	border-radius: var(--radius-md);
	box-shadow: 0 10px 26px rgba(23, 79, 58, 0.12);
	transition: transform 220ms var(--ease-interaction), box-shadow 220ms var(--ease-interaction);
}

.ta-booklet__link:hover .ta-media {
	transform: translateY(-3px);
	box-shadow: 0 16px 34px rgba(23, 79, 58, 0.16);
}

.ta-booklet__link:focus-visible {
	outline: var(--focus-outline-width) solid var(--color-green-900);
	outline-offset: 4px;
	border-radius: var(--radius-md);
}

.ta-booklet__body {
	display: flex;
	/* Fills the card so the action button lands on the same line across the shelf
	   even when one description runs to three lines and another to two. */
	flex: 1 1 auto;
	flex-direction: column;
	gap: 8px;
	min-inline-size: 0;
}

.ta-booklet__format {
	align-self: flex-start;
	padding: 3px 9px;
	border: 1px solid rgba(23, 79, 58, 0.16);
	border-radius: 999px;
	color: var(--color-green-900);
	font-size: 11px;
	font-weight: var(--weight-bold);
	line-height: 1.6;
}

.ta-booklet__title {
	margin: 0;
	color: var(--color-heading);
	font-size: clamp(16px, 1.2vw, 18px);
	font-weight: var(--weight-bold);
	line-height: 1.4;
}

.ta-booklet__text {
	color: var(--color-text-muted);
	font-size: 14px;
	line-height: 1.65;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.ta-booklet__cta {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
	margin-block-start: 2px;
	color: var(--color-green-900);
	font-size: 13px;
	font-weight: var(--weight-bold);
}

.ta-booklet__link:hover .ta-icon--directional {
	transform: translateX(-3px);
}

html[dir="ltr"] .ta-booklet__link:hover .ta-icon--directional {
	transform: translateX(3px);
}

/* ========================================================== Learning paths */

.ta-journeys {
	display: grid;
	gap: clamp(24px, 2.6vw, 40px);
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ta-journey {
	display: flex;
	min-inline-size: 0;
}

/* Open panels, not boxes: a hairline above and the number carry the structure. */
.ta-journey__link {
	display: flex;
	flex-direction: column;
	gap: 12px;
	inline-size: 100%;
	block-size: 100%;
	padding-block-start: 22px;
	border-block-start: 1px solid rgba(23, 79, 58, 0.22);
	color: inherit;
	text-decoration: none;
	transition: border-color 200ms ease;
}

.ta-journey__link:hover {
	border-block-start-color: var(--color-green-900);
}

.ta-journey__link:focus-visible {
	outline: var(--focus-outline-width) solid var(--color-green-900);
	outline-offset: 6px;
	border-radius: 2px;
}

/* The path's own image, wide editorial header above the index. */
.ta-journey__media {
	display: block;
	inline-size: 100%;
	margin-block-end: 8px;
}

.ta-journey__media .ta-media--journey {
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border: 0;
	border-radius: 17px;
}

.ta-journey__media .ta-media__image {
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
}

.ta-journey__index {
	color: var(--color-gold-action);
	font-size: clamp(28px, 2.6vw, 38px);
	font-weight: var(--weight-bold);
	line-height: 1;
}

.ta-journey__title {
	margin: 0;
	color: var(--color-heading);
	font-size: clamp(19px, 1.6vw, 23px);
	font-weight: var(--weight-bold);
	line-height: 1.3;
}

.ta-journey__text {
	color: var(--color-text-muted);
	font-size: 15px;
	line-height: 1.7;
}

.ta-journey__steps {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 6px 0 0;
	padding: 0;
	list-style: none;
	counter-reset: ta-step;
}

.ta-journey__step {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	color: rgba(23, 79, 58, 0.82);
	font-size: 14px;
	line-height: 1.55;
	counter-increment: ta-step;
}

.ta-journey__step::before {
	content: counter(ta-step, decimal-leading-zero);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	inline-size: 28px;
	block-size: 28px;
	flex: 0 0 auto;
	margin-block-start: -3px;
	border-radius: 50%;
	background-color: var(--color-green-900);
	color: var(--color-white);
	font-size: 11px;
	font-weight: var(--weight-bold);
	line-height: 1;
}

.ta-journey__more {
	color: var(--color-text-muted);
	font-size: 12px;
	font-weight: var(--weight-bold);
}

.ta-journey__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	align-self: flex-start;
	min-block-size: 44px;
	margin-block-start: auto;
	padding: 10px 16px;
	border: 1px solid var(--color-green-900);
	border-radius: 10px;
	background-color: var(--color-green-900);
	color: var(--color-white);
	font-size: 14px;
	font-weight: var(--weight-bold);
	transition: background-color 160ms ease, border-color 160ms ease;
}

.ta-journey__link:hover .ta-journey__cta {
	background-color: var(--color-green-800);
	border-color: var(--color-green-800);
}

.ta-journey__link:hover .ta-icon--directional {
	transform: translateX(-3px);
}

html[dir="ltr"] .ta-journey__link:hover .ta-icon--directional {
	transform: translateX(3px);
}

/* =================================================== Free guides + library */

.ta-free-split {
	display: grid;
	gap: clamp(32px, 4vw, 64px);
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
	align-items: start;
}

/* Numbered editorial list, not cards. */
.ta-article-list {
	margin: 0;
	padding: 0;
	list-style: none;
	border-block-start: 1px solid rgba(255, 255, 255, 0.16);
}

.ta-article-list__item {
	border-block-end: 1px solid rgba(255, 255, 255, 0.16);
}

.ta-article-list__link {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: start;
	gap: clamp(14px, 1.6vw, 22px);
	padding-block: clamp(18px, 2vw, 24px);
	color: var(--color-white);
	text-decoration: none;
}

.ta-article-list__link:focus-visible {
	outline: 2px solid var(--color-white);
	outline-offset: 4px;
	border-radius: 2px;
}

.ta-article-list__num {
	color: var(--color-gold);
	font-size: 13px;
	font-weight: var(--weight-bold);
	line-height: 1.9;
	opacity: 0.9;
}

.ta-article-list__body {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-inline-size: 0;
}

.ta-article-list__title {
	font-size: clamp(17px, 1.3vw, 19px);
	font-weight: var(--weight-bold);
	line-height: 1.4;
}

.ta-article-list__text {
	color: rgba(255, 255, 255, 0.72);
	font-size: 14px;
	line-height: 1.65;
}

.ta-article-list__arrow {
	color: var(--color-gold);
	transition: transform 180ms ease;
}

.ta-article-list__link:hover .ta-article-list__arrow {
	transform: translateX(-4px);
}

html[dir="ltr"] .ta-article-list__link:hover .ta-article-list__arrow {
	transform: translateX(4px);
}

/* Inverse treatment on the deep-green band. */
.ta-free-guides__all {
	margin-block-start: clamp(20px, 2.2vw, 26px);
	border-color: var(--color-ivory);
	background-color: var(--color-ivory);
	color: var(--color-green-900);
}

.ta-free-guides__all:hover {
	border-color: var(--color-white);
	background-color: var(--color-white);
	color: var(--color-green-900);
}

.ta-free-guides__all:focus-visible {
	outline-color: var(--color-white);
}

/* The library feature: real 7:12 artwork, framed as one object. */
.ta-library {
	display: flex;
	flex-direction: column;
	gap: clamp(20px, 2.2vw, 26px);
	padding: clamp(20px, 2.4vw, 30px);
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: var(--radius-xl);
	background-color: rgba(255, 255, 255, 0.04);
}

.ta-library__cards {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(8px, 1vw, 14px);
}

.ta-library__card {
	display: block;
	overflow: hidden;
	border-radius: 8px;
	background-color: rgba(255, 255, 255, 0.06);
	transition: transform 220ms var(--ease-interaction), box-shadow 220ms var(--ease-interaction);
}

.ta-library__card .ta-library__card-image {
	display: block;
	inline-size: 100%;
	block-size: auto;
}

.ta-library__card:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
}

.ta-library__card:focus-visible {
	outline: 2px solid var(--color-white);
	outline-offset: 3px;
}

.ta-library__body {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ta-library__title {
	margin: 0;
	color: var(--color-white);
	font-size: clamp(19px, 1.6vw, 23px);
	font-weight: var(--weight-bold);
	line-height: 1.3;
}

.ta-library__sub {
	margin: 0;
	color: rgba(255, 255, 255, 0.72);
	font-size: 14px;
	line-height: 1.6;
}

.ta-library__cta {
	align-self: flex-start;
	margin-block-start: 4px;
}

/* ------------------------------------------------------------ Responsive */

@media (max-width: 1023px) {
	.ta-shelf {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ta-disc-courses {
		grid-template-columns: minmax(0, 1fr);
	}

	.ta-journeys {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ta-free-split {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 767px) {
	.ta-home__courses,
	.ta-home__books,
	.ta-home__paths {
		padding-block: clamp(48px, 12vw, 72px);
	}

	.ta-disc-head {
		margin-block-end: clamp(24px, 6vw, 34px);
	}

	.ta-shelf {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 18px;
	}

	.ta-journeys {
		grid-template-columns: minmax(0, 1fr);
		gap: 28px;
	}

	.ta-library__cards {
		gap: 8px;
	}
}

@media (max-width: 479px) {
	.ta-shelf {
		grid-template-columns: minmax(0, 1fr);
	}

	.ta-mini__body {
		padding: 18px;
	}
}

/* ============================================ Books shelf on phones (390) */

/*
 * One full-width vertical card per book is a lot of scrolling for four covers
 * and buries the title under a large image. On phones the shelf becomes a row
 * per book: a small cover beside its own text, on a light card.
 *
 * The 3:4 cover frame is unchanged — only its width in the row.
 */
@media (max-width: 639px) {
	.ta-home__books .ta-disc-head {
		margin-block-end: 30px;
	}

	.ta-home__books .ta-shelf {
		gap: 20px;
	}

	.ta-home__books .ta-booklet__link {
		flex-direction: row;
		align-items: flex-start;
		gap: 16px;
		padding: 14px;
		border: 1px solid rgba(23, 79, 58, 0.12);
		border-radius: 16px;
		background-color: var(--color-surface);
	}

	.ta-home__books .ta-booklet__cover {
		flex: 0 0 36%;
		max-inline-size: 36%;
	}

	.ta-home__books .ta-booklet__cover .ta-media {
		border-radius: 12px;
		box-shadow: none;
	}

	/* The lift belongs to the desktop grid; in a bordered row it just jitters. */
	.ta-home__books .ta-booklet__link:hover .ta-media {
		transform: none;
		box-shadow: none;
	}

	.ta-home__books .ta-booklet__body {
		flex: 1 1 auto;
		gap: 6px;
	}

	.ta-home__books .ta-booklet__title {
		font-size: 17px;
		line-height: 1.35;
	}

	.ta-home__books .ta-booklet__text {
		font-size: 13px;
		line-height: 1.55;
		-webkit-line-clamp: 3;
	}

	.ta-home__books .ta-booklet__cta {
		inline-size: 100%;
		margin-block-start: 8px;
	}

	.ta-home__books .ta-disc-exit {
		margin-block-start: 28px;
	}
}
