/**
 * CRO pages parity layer (Homepage + Courses templates).
 * Loaded after home-sections.css. Mockup: tarigocromockup.vercel.app
 */

/* ---------- Buttons: trailing arrow ---------- */
.tarigo-home a.th-btn {
	gap: 10px;
	white-space: nowrap;
}
.tarigo-home .th-btn-arrow {
	display: inline-block;
	line-height: 1;
}

/* ---------- Course cards ---------- */
.tarigo-home .th-tag,
.tarigo-home .th-course .th-tag {
	display: inline-block;
	box-sizing: border-box;
	align-self: flex-start;
	width: auto;
	max-width: 100%;
	padding: 3px 8px;
	font-size: 10px;
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: clip;
}
.tarigo-home .th-course-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 8px 12px;
	margin-top: 14px;
	padding-top: 0;
}
.tarigo-home .th-price {
	margin: 0;
	min-width: 0;
}
.tarigo-home .th-price .th-price-line {
	display: flex;
	align-items: baseline;
	flex-wrap: nowrap;
	gap: 6px;
	white-space: nowrap;
}
.tarigo-home .th-price .th-price-line strong {
	font-size: 25px;
	font-weight: 800;
	color: var(--th-teal-dark);
}
.tarigo-home .th-price .th-price-line small {
	display: inline;
	font-size: 10px;
	text-transform: none;
}
.tarigo-home .th-course-actions {
	display: flex;
	flex: 0 0 auto;
	flex-wrap: nowrap;
	gap: 8px;
	margin: 0;
}
.tarigo-home .th-course-grid-native .th-course-actions .th-btn,
.tarigo-home .th-course-grid-native .th-course-foot a.th-btn {
	flex: 0 0 auto;
	width: auto;
	min-height: 32px;
	margin-top: 0;
	padding: 6px 14px;
	font-size: 11px;
	font-weight: 700;
	white-space: nowrap;
}
.tarigo-home .th-course.is-coral::before {
	background: #bd3152;
}
/* Five cards: row of three, then two centred on the row below */
.tarigo-home .th-course-grid-native.is-five {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: flex-start;
	gap: 18px;
}
.tarigo-home .th-course-grid-native .th-course {
	height: auto;
	min-height: 0;
}
.tarigo-home .th-course-grid-native.is-five .th-course {
	flex: 0 0 calc((100% - 36px) / 3);
	width: calc((100% - 36px) / 3);
	max-width: calc((100% - 36px) / 3);
	grid-column: auto;
}

/* ---------- Courses hero ---------- */
.tarigo-home .th-course-hero {
	background: linear-gradient(105deg, #fff1d7 0%, #f4f3e3 44%, #d3ecec 100%);
	padding: 70px 0;
}
.tarigo-home .th-course-hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 60%) minmax(320px, 40%);
	gap: 44px;
	align-items: center;
}
.tarigo-home .th-course-hero h1 {
	max-width: 700px;
	margin: 8px 0 18px;
	color: #16899a;
	font-size: clamp(38px, 4vw, 58px);
	line-height: 1.08;
}
.tarigo-home .th-course-hero p {
	max-width: 720px;
	font-size: 16px;
}
.tarigo-home .th-course-hero .th-lead {
	color: #111;
	font-size: 18px;
}
.tarigo-home .th-proof {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	margin: 22px 0 0;
	padding: 0;
	border-top: 0;
	list-style: none;
	color: var(--th-teal);
	font-size: 13px;
	font-weight: 800;
	line-height: 1.3;
}
.tarigo-home .th-proof li {
	display: inline-flex;
	align-items: baseline;
	flex: 0 0 auto;
	margin: 0;
	white-space: nowrap;
}
.tarigo-home .th-proof li::before {
	content: "\2713";
	margin-right: 7px;
	color: var(--th-teal);
	font-weight: 900;
}
.tarigo-home .th-course-hero-image {
	display: flex;
	justify-content: center;
	align-items: center;
}
.tarigo-home .th-course-hero-image img {
	width: auto;
	max-width: min(100%, 460px);
	height: auto;
	max-height: 370px;
	object-fit: contain;
	object-position: center;
}

/* ---------- Route cards (01-05) ---------- */
.tarigo-home .th-route-five {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 20px 24px;
	align-items: stretch;
}
.tarigo-home .th-route-five article,
.tarigo-home .th-route-five article:nth-child(2),
.tarigo-home .th-route-five article:nth-child(3),
.tarigo-home .th-route-five article:nth-child(4),
.tarigo-home .th-route-five article:nth-child(5) {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-height: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	text-align: center;
}
.tarigo-home .th-route-five img {
	display: block;
	width: min(100%, 200px);
	height: auto;
	margin: 0 auto 14px;
	object-fit: contain;
	aspect-ratio: 14 / 11;
}
.tarigo-home .th-route-num {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: #eef6f7;
	color: var(--th-teal);
	font-size: 11px;
	font-weight: 900;
}
.tarigo-home .th-route-kicker {
	margin: 12px 0 7px;
	color: var(--th-teal);
	font-size: 12px;
	font-weight: 800;
}
.tarigo-home .th-route-five h3 {
	margin: 0;
	font-size: clamp(16px, 1.4vw, 20px);
	line-height: 1.25;
	color: var(--accent, var(--th-teal));
}
.tarigo-home .th-route-five small {
	display: block;
	margin: 10px 0 16px;
	color: var(--th-muted);
	font-size: 13px;
	line-height: 1.55;
}
.tarigo-home a.th-route-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: center;
	width: max-content;
	max-width: 100%;
	margin-top: auto;
	padding: 8px 16px;
	border: 1px solid var(--th-teal);
	border-radius: 5px;
	background: #fff;
	color: var(--th-teal);
	font-size: 13px;
	font-weight: 800;
	text-decoration: none;
	text-transform: none;
	box-sizing: border-box;
}
.tarigo-home a.th-route-link:hover,
.tarigo-home a.th-route-link:focus {
	background: var(--th-teal);
	color: #fff;
}
.tarigo-home .th-route-advice {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 32px;
	align-items: center;
	margin-top: 24px;
	padding: 24px 28px;
	border: 1px solid #eadfc8;
	border-radius: 12px;
	background: linear-gradient(110deg, #fff7e8, #f5fbf8);
}
.tarigo-home .th-route-advice h3 {
	margin: 0 0 7px;
	font-size: 21px;
	color: var(--th-teal-dark);
}
.tarigo-home .th-route-advice p {
	max-width: 760px;
	margin: 0;
	color: var(--th-muted);
}

/* ---------- Homepage: CPD + business case panel ---------- */
.tarigo-home .th-approval-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.9fr);
	gap: 36px;
	align-items: start;
}
.tarigo-home .th-approval-main .th-heading {
	margin-bottom: 18px;
}
.tarigo-home .th-approval-body {
	display: grid;
	grid-template-columns: 140px minmax(0, 1fr);
	gap: 24px;
	align-items: start;
}
.tarigo-home .th-approval-logo {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
}
.tarigo-home .th-approval-logo img {
	width: 100%;
	height: auto;
	max-width: 140px;
	max-height: none;
}
.tarigo-home .th-approval-copy .th-btn {
	margin-top: 16px;
}
.tarigo-home .th-manager-panel {
	padding: 28px;
	border-radius: 12px;
	background: #fbe9ef;
}
.tarigo-home .th-manager-panel h3 {
	margin: 6px 0 10px;
	font-size: 22px;
	color: var(--th-teal-dark);
}
.tarigo-home .th-manager-panel .th-btn {
	margin-top: 14px;
	white-space: normal;
}

/* ---------- Responsive ---------- */
@media (max-width: 1050px) {
	.tarigo-home .th-course-hero-grid {
		grid-template-columns: 1fr;
	}
	.tarigo-home .th-course-hero-image {
		max-width: 430px;
		margin: auto;
	}
	.tarigo-home .th-proof {
		flex-wrap: wrap;
	}
	.tarigo-home .th-route-five {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
	.tarigo-home .th-course-grid-native.is-five {
		display: flex;
		grid-template-columns: unset;
	}
	.tarigo-home .th-course-grid-native.is-five .th-course,
	.tarigo-home .th-course-grid-native.is-five .th-course:nth-child(4),
	.tarigo-home .th-course-grid-native.is-five .th-course:nth-child(5) {
		flex: 0 0 calc((100% - 18px) / 2);
		width: calc((100% - 18px) / 2);
		max-width: calc((100% - 18px) / 2);
		grid-column: auto;
	}
	.tarigo-home .th-approval-grid {
		grid-template-columns: 1fr;
	}
	.tarigo-home .th-approval-body {
		grid-template-columns: 120px minmax(0, 1fr);
	}
}

@media (max-width: 650px) {
	.tarigo-home .th-course-hero {
		padding: 50px 0;
	}
	.tarigo-home .th-route-five,
	.tarigo-home .th-approval-grid,
	.tarigo-home .th-approval-body {
		grid-template-columns: 1fr;
	}
	.tarigo-home .th-course-grid-native.is-five {
		display: flex;
		grid-template-columns: unset;
	}
	.tarigo-home .th-course-grid-native.is-five .th-course,
	.tarigo-home .th-course-grid-native.is-five .th-course:nth-child(4),
	.tarigo-home .th-course-grid-native.is-five .th-course:nth-child(5) {
		flex: 0 0 100%;
		width: 100%;
		max-width: none;
	}
	.tarigo-home .th-course-grid-native .th-course-foot a.th-btn {
		width: auto;
	}
	.tarigo-home .th-route-advice {
		grid-template-columns: 1fr;
		padding: 22px;
	}
	.tarigo-home .th-route-advice .th-btn {
		width: 100%;
	}
	.tarigo-home .th-tag {
		white-space: normal;
	}
}

/* ==========================================================================
   Round 3: exact mockup spacing (CROmockup app/globals.css final cascade).
   Scoped to the Homepage + Courses templates only.
   ========================================================================== */
body.tarigo-page-home .tarigo-home,
body.tarigo-page-courses .tarigo-home {
	--th-max: 1440px;   /* --max */
	--th-pad: 24px;     /* .wrap padding-inline */
	--th-section: 92px; /* .section */
}
.tarigo-home .th-heading {
	max-width: 700px;
	margin: 0 auto 48px;
}
.tarigo-home .th-heading.is-left,
.tarigo-home .th-heading.left {
	margin-left: 0;
}
.tarigo-home .th-btn .wp-block-button__link,
.tarigo-home a.th-btn {
	min-height: 42px;
	padding-inline: 18px;
	font-size: 10px;
}
.tarigo-home .th-course-grid-native .th-course h3 {
	margin: 8px 0 4px;
	min-height: 0;
	font-size: 16px;
	line-height: 1.25;
}
.tarigo-home .th-workflow h3,
.tarigo-home .th-workflow-title,
.tarigo-page .th-section .th-workflow-title {
	margin: 0 0 4px;
	min-height: 0;
	height: auto;
}
.tarigo-home .th-course > p:not(.th-tag),
.tarigo-home .th-course li {
	font-size: 13px;
	line-height: 1.45;
}
.tarigo-home .th-course > p:not(.th-tag) {
	margin: 0 0 6px;
}
.tarigo-home .th-course ul {
	margin: 6px 0 0;
	padding: 0;
	list-style: none;
}
.tarigo-home .th-course li {
	margin: 5px 0;
}
.tarigo-home .th-course .th-btn,
.tarigo-home .th-course a.th-btn {
	width: auto;
	min-height: 32px;
	padding: 6px 14px;
	font-size: 11px;
	font-weight: 700;
}
/* GP content wrappers must not add their own gutters or margins. */
body.tarigo-page-home .site-main,
body.tarigo-page-courses .site-main {
	margin: 0;
}
.tarigo-home p:empty {
	display: none;
}
@media (max-width: 1050px) {
	.tarigo-home .th-course-grid-native .th-course {
		min-height: 0;
	}
}
@media (max-width: 390px) {
	.tarigo-home .th-course-hero-grid,
	.tarigo-home .th-route-five,
	.tarigo-home .th-approval-grid,
	.tarigo-home .th-approval-body,
	.tarigo-home .th-route-advice {
		grid-template-columns: 1fr;
	}
}
@media (max-width: 650px) {
	body.tarigo-page-home .tarigo-home,
	body.tarigo-page-courses .tarigo-home {
		--th-pad: 18px;
		--th-section: 72px;
	}
	.tarigo-home .th-course {
		min-height: 0;
	}
	.tarigo-home a.th-btn {
		width: 100%;
	}
	.tarigo-home .th-course-grid-native .th-course-foot a.th-btn {
		width: auto;
	}
}

/* Courses page section parity with tarigocromockup.vercel.app/courses */
body.tarigo-page-courses .th-courses {
	background: #f4f8f8;
}

body.tarigo-page-courses .th-accredited {
	background: #fff8ee;
}

body.tarigo-page-courses .th-why-pair {
	grid-template-columns: minmax(240px, 0.4fr) minmax(0, 0.6fr);
	gap: 28px;
	align-items: start;
}

body.tarigo-page-courses .th-manager-card {
	padding: 8px 4px 0 0;
	border-radius: 0;
	background: transparent;
}

body.tarigo-page-courses .th-why-card {
	padding: 36px;
	border: 0;
	border-radius: 20px;
	background: #fff;
	box-shadow: none;
}

body.tarigo-page-courses .th-why-card .th-heading {
	max-width: none;
	margin-bottom: 16px;
}

body.tarigo-page-courses .th-why-tiles {
	gap: 10px;
	margin-top: 16px;
}

body.tarigo-page-courses .th-why-tiles .th-extra {
	padding: 12px 14px;
	border-radius: 12px;
	background: #f4f8f8;
	box-shadow: none;
}

body.tarigo-page-courses .th-why-tiles .th-extra h3 {
	margin: 0 0 2px;
}

body.tarigo-page-courses .th-why-tiles .th-extra p {
	margin: 0;
}

body.tarigo-page-courses .th-why-tiles .th-extra b {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #fff;
	color: var(--th-teal-dark);
	font-size: 12px;
	font-weight: 700;
}

body.tarigo-page-courses .th-guide-tile {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 22px 0;
	padding: 16px 18px;
	border-radius: 12px;
	background: #fff;
	box-shadow: none;
}

body.tarigo-page-courses .th-guide-tile-kicker {
	display: grid;
	place-items: center;
	flex: 0 0 40px;
	width: 40px;
	height: 40px;
	margin: 0;
	border-radius: 50%;
	background: #f5c55d;
	color: #fff;
	letter-spacing: 0;
	font-size: 9px;
}

body.tarigo-page-courses .th-guide-tile strong {
	display: block;
	color: var(--th-teal-dark);
}

body.tarigo-page-courses .th-guide-tile small {
	display: block;
	margin-top: 2px;
	color: var(--th-muted);
	font-size: 13px;
	font-weight: 400;
}

body.tarigo-page-courses .th-split.is-learn {
	align-items: center;
	grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
}

body.tarigo-page-courses .th-split.is-learn .th-panel {
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

body.tarigo-page-courses .th-split.is-learn img {
	display: block;
	width: min(100%, 420px);
	height: auto;
	max-height: none;
}

body.tarigo-page-courses .th-training-value {
	background: #fff8ee;
}

body.tarigo-page-courses .th-split.is-train {
	grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
	gap: 48px;
	align-items: start;
}

body.tarigo-page-courses .th-train-outcomes article {
	padding: 16px 0;
	border: 0;
	border-bottom: 1px solid rgba(0, 79, 95, 0.1);
	border-radius: 0;
	background: transparent;
}

body.tarigo-page-courses .th-train-outcomes article:last-child {
	border-bottom: 0;
}

body.tarigo-page-courses .th-train-outcomes article span {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #fff;
	color: var(--th-teal-dark);
	font-size: 12px;
	font-weight: 700;
	box-shadow: 0 0 0 1px rgba(0, 124, 137, 0.16);
}

body.tarigo-page-courses .th-faq {
	background: #f4f8f8;
}

body.tarigo-page-courses .th-faq-grid {
	grid-template-columns: minmax(220px, 0.32fr) minmax(0, 0.68fr);
	gap: 48px;
}

@media (max-width: 1050px) {
	body.tarigo-page-courses .th-why-pair,
	body.tarigo-page-courses .th-split.is-learn,
	body.tarigo-page-courses .th-split.is-train,
	body.tarigo-page-courses .th-faq-grid,
	body.tarigo-page-courses .th-final-grid {
		grid-template-columns: 1fr;
	}
}
