/**
 * TSC Rack 2 long-form product page -- Phase A.
 *
 * Markup/ownership: astra-child/inc/plugin-product-page.php prints `.tsc-pp`
 * inside the product's `.ast-container` for the hero product only; every
 * selector below is scoped to `body.tsc-has-plugin-hero`, so NAM product
 * pages cannot match. Enqueued on is_product() after tsc-plugin-product-hero.
 *
 * VISUAL SYSTEM: continues the hero -- dark sections on the site's dark
 * tokens, "ivory" sections on the User Manual's paper palette, Inter /
 * Inter Display, hairline rules instead of boxes, chips only for formats and
 * UI callouts. No page-builder dependency, no JS.
 *
 * FULL-BLEED: the sections live inside Astra's centred `.ast-container`, so
 * each one breaks out with a margin-inline of calc(50% - 50vw). `100vw`
 * includes the vertical scrollbar, so the body is clipped horizontally for
 * this product only (`overflow-x: clip`) to avoid a scrollbar-width overflow.
 */

/* ---- manual paper palette (ivory sections) ---- */
body.tsc-has-plugin-hero .tsc-pp {
	--pp-paper: #F5F1E8;
	--pp-paper-2: #EFE8DA;
	--pp-ink: #211711;
	--pp-ink-2: #3F352B;
	--pp-soft: #6D6152;
	--pp-line: #D9CEBB;
	--pp-leather: #7A5230;
	--pp-leather-deep: #4E341F;
	clear: both; /* the emptied summary column still floats */
	font-family: var(--tsc-font-body);
}

body.tsc-has-plugin-hero {
	overflow-x: clip;
}

/* ============================================================
 * 1. SECTION SHELL
 * ============================================================ */
body.tsc-has-plugin-hero .tsc-pp-section {
	position: relative;
	width: 100vw;
	margin-inline: calc(50% - 50vw);
	padding-block: clamp(56px, 8vh, 112px);
}

body.tsc-has-plugin-hero .tsc-pp-section--ivory {
	background: var(--pp-paper);
	color: var(--pp-ink-2);
}

body.tsc-has-plugin-hero .tsc-pp-section--dark {
	background: var(--tsc-bg);
	color: var(--tsc-text);
}

body.tsc-has-plugin-hero .tsc-pp-section--deep {
	background: var(--tsc-surface);
}

body.tsc-has-plugin-hero .tsc-pp-inner {
	max-width: var(--tsc-content-width);
	margin: 0 auto;
	padding-inline: clamp(24px, 4vw, 56px);
}

body.tsc-has-plugin-hero .tsc-pp-inner--narrow {
	max-width: 820px;
}

/* ============================================================
 * 2. TYPOGRAPHY
 * ============================================================ */
body.tsc-has-plugin-hero .tsc-pp-header {
	margin: 0 0 clamp(24px, 3vh, 36px);
}

body.tsc-has-plugin-hero .tsc-pp-eyebrow {
	margin: 0 0 var(--tsc-space-4);
	font-size: var(--tsc-fs-caption);
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--tsc-accent);
}

body.tsc-has-plugin-hero .tsc-pp-section--ivory .tsc-pp-eyebrow {
	color: var(--pp-leather);
}

body.tsc-has-plugin-hero .tsc-pp-h2 {
	margin: 0;
	font-family: var(--tsc-font-display);
	font-size: clamp(1.75rem, 3vw, 2.75rem);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.005em;
	text-transform: none;
	color: inherit;
	max-width: 22em;
}

body.tsc-has-plugin-hero .tsc-pp-section--ivory .tsc-pp-h2 {
	color: var(--pp-ink);
}

body.tsc-has-plugin-hero .tsc-pp-lead {
	margin: var(--tsc-space-4) 0 0;
	font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
	font-weight: 300;
	line-height: 1.5;
	color: var(--pp-leather-deep);
	max-width: 32em;
}

/* Plain body paragraphs only -- class-carrying paragraphs (eyebrow, lead,
   aside, note, closing) keep their own sizes below. */
body.tsc-has-plugin-hero .tsc-pp p:not([class]) {
	margin: 0 0 var(--tsc-space-4);
	font-size: clamp(0.9375rem, 1.1vw, 1.0625rem);
	line-height: var(--tsc-lh-body);
	max-width: 38em;
}

body.tsc-has-plugin-hero .tsc-pp-section--dark p:not([class]) {
	color: var(--tsc-text-muted);
}

body.tsc-has-plugin-hero .tsc-pp-section--ivory p:not([class]) {
	color: var(--pp-ink-2);
}

body.tsc-has-plugin-hero .tsc-pp a {
	color: inherit;
	text-decoration: none;
}

body.tsc-has-plugin-hero .tsc-pp-aside {
	margin-top: var(--tsc-space-6);
	padding-top: var(--tsc-space-4);
	border-top: 1px solid var(--pp-line);
	font-size: 0.9375rem;
	color: var(--pp-soft);
}

body.tsc-has-plugin-hero .tsc-pp-aside a,
body.tsc-has-plugin-hero .tsc-pp-closing__links a {
	color: var(--tsc-accent);
	font-weight: 600;
	margin-left: 0.4em;
}

body.tsc-has-plugin-hero .tsc-pp-section--ivory .tsc-pp-aside a {
	color: var(--pp-leather);
}

body.tsc-has-plugin-hero .tsc-pp a:hover,
body.tsc-has-plugin-hero .tsc-pp a:focus-visible {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ============================================================
 * 3. WORKFLOW: copy + UI with numbered callouts
 * ============================================================ */
body.tsc-has-plugin-hero .tsc-pp-split {
	display: grid;
	grid-template-columns: minmax(0, 40fr) minmax(0, 60fr);
	column-gap: clamp(32px, 4vw, 64px);
	row-gap: 32px;
	align-items: center;
}

body.tsc-has-plugin-hero .tsc-pp-points {
	list-style: none;
	margin: var(--tsc-space-5) 0 0;
	padding: 0;
	counter-reset: pp;
}

body.tsc-has-plugin-hero .tsc-pp-points li {
	counter-increment: pp;
	position: relative;
	padding: 14px 0 14px 44px;
	border-top: 1px solid color-mix(in srgb, var(--tsc-text) 12%, transparent);
	font-size: 0.9375rem;
	line-height: 1.55;
	color: var(--tsc-text-muted);
}

body.tsc-has-plugin-hero .tsc-pp-points li::before {
	content: counter(pp);
	position: absolute;
	left: 0;
	top: 14px;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--tsc-accent);
	color: var(--tsc-text-on-accent);
	font-size: 0.75rem;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
}

body.tsc-has-plugin-hero .tsc-pp-points b {
	display: block;
	margin-bottom: 2px;
	font-weight: 600;
	color: var(--tsc-text);
}

body.tsc-has-plugin-hero .tsc-pp-ui {
	position: relative;
	margin: 0;
	width: 100%;
}

body.tsc-has-plugin-hero .tsc-pp-ui picture,
body.tsc-has-plugin-hero .tsc-pp-ui img {
	display: block;
	width: 100%;
	height: auto;
	max-width: 100%;
}

body.tsc-has-plugin-hero .tsc-pp-ui img {
	border-radius: 10px;
	box-shadow:
		0 30px 70px -20px color-mix(in srgb, #000 78%, transparent),
		0 0 0 1px color-mix(in srgb, var(--tsc-text) 8%, transparent);
}

body.tsc-has-plugin-hero .tsc-pp-callout {
	position: absolute;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	transform: translate(-50%, -50%);
	background: var(--tsc-accent);
	color: var(--tsc-text-on-accent);
	border: 2px solid var(--tsc-bg);
	font-size: 0.75rem;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* ============================================================
 * 4. UNDER THE HOOD: signal flow strip + editorial blocks
 * ============================================================ */
body.tsc-has-plugin-hero .tsc-pp-flow {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 10px;
	margin: 0 0 clamp(32px, 4vh, 48px);
	padding: 20px;
	border: 1px solid color-mix(in srgb, var(--tsc-text) 12%, transparent);
	border-radius: 8px;
}

body.tsc-has-plugin-hero .tsc-pp-flow__node {
	display: inline-flex;
	flex-direction: column;
	justify-content: center;
	min-width: 84px;
	padding: 8px 12px;
	border: 1px solid color-mix(in srgb, var(--tsc-text) 16%, transparent);
	border-radius: 6px;
	font-size: 0.8125rem;
	font-weight: 500;
	text-align: center;
	color: var(--tsc-text);
	background: color-mix(in srgb, var(--tsc-bg) 60%, transparent);
}

body.tsc-has-plugin-hero .tsc-pp-flow__node small {
	font-size: 0.625rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--tsc-text-muted);
	margin-bottom: 2px;
}

body.tsc-has-plugin-hero .tsc-pp-flow__node--slot {
	min-width: 48px;
	border-color: var(--tsc-accent);
	color: var(--tsc-accent);
	font-family: var(--tsc-font-display);
	font-weight: 600;
}

body.tsc-has-plugin-hero .tsc-pp-flow__chain {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 10px;
	border: 1px dashed color-mix(in srgb, var(--tsc-accent) 55%, transparent);
	border-radius: 6px;
}

body.tsc-has-plugin-hero .tsc-pp-flow__arrow {
	align-self: center;
	color: var(--tsc-accent);
	font-size: 0.95rem;
}

body.tsc-has-plugin-hero .tsc-pp-blocks {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 clamp(32px, 4vw, 64px);
}

body.tsc-has-plugin-hero .tsc-pp-blocks--three {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin-top: clamp(32px, 4vh, 48px);
}

body.tsc-has-plugin-hero .tsc-pp-block {
	padding: 22px 0 8px;
	border-top: 1px solid color-mix(in srgb, currentColor 16%, transparent);
}

body.tsc-has-plugin-hero .tsc-pp-block h3 {
	margin: 0 0 8px;
	font-family: var(--tsc-font-display);
	font-size: 1.0625rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	text-transform: none;
	color: inherit;
}

body.tsc-has-plugin-hero .tsc-pp-section--ivory .tsc-pp-block h3 {
	color: var(--pp-ink);
}

body.tsc-has-plugin-hero .tsc-pp-block p {
	margin: 0;
	font-size: 0.9375rem;
}

/* ============================================================
 * 5. COMPATIBILITY: two spec columns + chips
 * ============================================================ */
body.tsc-has-plugin-hero .tsc-pp-spec {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 clamp(32px, 4vw, 64px);
}

body.tsc-has-plugin-hero .tsc-pp-spec__col h3 {
	margin: 0 0 6px;
	font-family: var(--tsc-font-display);
	font-size: 1.25rem;
	font-weight: 600;
	text-transform: none;
	color: var(--pp-ink);
}

body.tsc-has-plugin-hero .tsc-pp-spec dl {
	margin: 0;
	display: grid;
	grid-template-columns: 96px minmax(0, 1fr);
	column-gap: 16px;
}

body.tsc-has-plugin-hero .tsc-pp-spec dt,
body.tsc-has-plugin-hero .tsc-pp-spec dd {
	margin: 0;
	padding: 10px 0;
	border-top: 1px solid var(--pp-line);
	font-size: 0.9375rem;
	line-height: 1.5;
}

body.tsc-has-plugin-hero .tsc-pp-spec dt {
	font-weight: 600;
	color: var(--pp-ink);
}

body.tsc-has-plugin-hero .tsc-pp-spec dd {
	color: var(--pp-ink-2);
	display: flex;
	flex-wrap: wrap;
	gap: 6px 8px;
	align-items: center;
}

body.tsc-has-plugin-hero .tsc-pp-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 11px 5px 9px;
	border: 1px solid var(--pp-line);
	border-radius: 999px;
	background: #fff;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--pp-ink);
	white-space: nowrap;
}

body.tsc-has-plugin-hero .tsc-pp-chip::before {
	content: "";
	width: 6px;
	height: 6px;
	background: var(--pp-leather);
	transform: rotate(45deg);
}

/* ============================================================
 * 6. FINAL PURCHASE BAND (background_1.png, calmer than the hero)
 * ============================================================ */
body.tsc-has-plugin-hero .tsc-pp-buy {
	isolation: isolate;
	background-color: var(--tsc-bg);
	background-image: url('../img/tsc-rack-2-hero-bg.jpg');
	background-image: image-set(
		url('../img/tsc-rack-2-hero-bg.webp') type('image/webp'),
		url('../img/tsc-rack-2-hero-bg.jpg') type('image/jpeg')
	);
	background-size: cover;
	background-position: 50% 40%;
	text-align: center;
}

body.tsc-has-plugin-hero .tsc-pp-buy::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(60% 60% at 50% 50%, color-mix(in srgb, var(--tsc-accent) 10%, transparent) 0%, transparent 70%),
		color-mix(in srgb, var(--tsc-bg) 80%, transparent);
}

body.tsc-has-plugin-hero .tsc-pp-buy__inner .tsc-pp-h2 {
	margin-inline: auto;
}

body.tsc-has-plugin-hero .tsc-pp-buy__inner p {
	margin-inline: auto;
}

body.tsc-has-plugin-hero .tsc-pp-buy__price,
body.tsc-has-plugin-hero .tsc-pp-buy__price .price {
	margin: 0 0 var(--tsc-space-5);
	font-family: var(--tsc-font-display);
	font-size: clamp(1.5rem, 2vw, 1.875rem);
	font-weight: 600;
	color: var(--tsc-text);
}

body.tsc-has-plugin-hero .tsc-pp-buy__price del {
	margin-right: var(--tsc-space-2);
	font-weight: 400;
	font-size: 0.75em;
	color: var(--tsc-text-muted);
	opacity: 1;
}

body.tsc-has-plugin-hero .tsc-pp-buy__price ins {
	text-decoration: none;
	color: var(--tsc-text);
}

body.tsc-has-plugin-hero .tsc-pp-buy__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: var(--tsc-space-3);
}

body.tsc-has-plugin-hero .tsc-pp-buy__cart form.cart {
	margin: 0 !important;
	display: flex;
	align-items: center;
}

body.tsc-has-plugin-hero .tsc-pp-buy__cart .quantity {
	display: none !important;
}

body.tsc-has-plugin-hero .tsc-pp-buy__cart .single_add_to_cart_button,
body.tsc-has-plugin-hero .tsc-pp-btn {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-width: 200px;
	min-height: 52px;
	box-sizing: border-box;
	margin: 0 !important;
	padding: var(--tsc-space-3) var(--tsc-space-6) !important;
	border-radius: 0 !important;
	font-family: var(--tsc-font-body) !important;
	font-size: 0.9375rem !important;
	font-weight: 600 !important;
	letter-spacing: 0.08em !important;
	text-transform: uppercase !important;
	text-decoration: none !important;
	line-height: 1.2 !important;
	cursor: pointer;
}

body.tsc-has-plugin-hero .tsc-pp-buy__cart .single_add_to_cart_button {
	border: 1px solid var(--tsc-accent) !important;
	background-color: var(--tsc-accent) !important;
	color: var(--tsc-text-on-accent) !important;
}

body.tsc-has-plugin-hero .tsc-pp-buy__cart .single_add_to_cart_button:hover,
body.tsc-has-plugin-hero .tsc-pp-buy__cart .single_add_to_cart_button:focus-visible {
	border-color: var(--tsc-text) !important;
	background-color: var(--tsc-text) !important;
	color: var(--tsc-bg) !important;
}

/* secondary button: every link state explicit (same lesson as the hero) */
body.tsc-has-plugin-hero .tsc-pp-btn--secondary,
body.tsc-has-plugin-hero .tsc-pp-btn--secondary:link,
body.tsc-has-plugin-hero .tsc-pp-btn--secondary:visited,
body.tsc-has-plugin-hero .tsc-pp-btn--secondary:focus {
	border: 1px solid color-mix(in srgb, var(--tsc-text) 32%, transparent) !important;
	background-color: color-mix(in srgb, var(--tsc-bg) 35%, transparent) !important;
	color: var(--tsc-text) !important;
}

body.tsc-has-plugin-hero .tsc-pp-btn--secondary:hover,
body.tsc-has-plugin-hero .tsc-pp-btn--secondary:visited:hover,
body.tsc-has-plugin-hero .tsc-pp-btn--secondary:focus-visible {
	border-color: var(--tsc-accent) !important;
	color: var(--tsc-accent) !important;
}

body.tsc-has-plugin-hero .tsc-pp-btn--secondary:active {
	border-color: var(--tsc-accent) !important;
	background-color: color-mix(in srgb, var(--tsc-accent) 18%, transparent) !important;
	color: var(--tsc-text) !important;
}

body.tsc-has-plugin-hero .tsc-pp-buy__cart .single_add_to_cart_button:focus-visible,
body.tsc-has-plugin-hero .tsc-pp-btn:focus-visible {
	outline: 2px solid var(--tsc-accent) !important;
	outline-offset: 3px !important;
}

body.tsc-has-plugin-hero .tsc-pp-buy__note {
	margin: var(--tsc-space-5) auto 0;
	font-size: 0.875rem;
	color: var(--tsc-text-muted);
}

/* ============================================================
 * 7. CLOSING NOTE (after Reviews)
 * ============================================================ */
body.tsc-has-plugin-hero .tsc-pp--closing {
	margin-top: clamp(32px, 4vh, 64px);
}

body.tsc-has-plugin-hero .tsc-pp-closing {
	text-align: center;
	padding-block: clamp(64px, 9vh, 120px);
}

body.tsc-has-plugin-hero .tsc-pp-closing__thanks {
	margin: 0 0 var(--tsc-space-4);
	font-family: var(--tsc-font-display);
	font-size: clamp(2rem, 3.4vw, 2.75rem);
	font-weight: 600;
	color: var(--tsc-text);
	max-width: none;
}

body.tsc-has-plugin-hero .tsc-pp-closing__msg {
	margin: 0 auto var(--tsc-space-6);
	max-width: 34em;
	font-size: 1.0625rem;
	font-weight: 300;
	line-height: 1.7;
	color: var(--tsc-text-muted);
}

body.tsc-has-plugin-hero .tsc-pp-closing__links {
	margin: 0;
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: var(--tsc-space-3) var(--tsc-space-6);
	max-width: none;
}

body.tsc-has-plugin-hero .tsc-pp-closing__links a {
	margin: 0;
	font-size: 0.9375rem;
}

/* ============================================================
 * 8. RESPONSIVE (tablet max 1024, mobile max 767 -- site breakpoints)
 * ============================================================ */
@media (max-width: 1024px) {
	body.tsc-has-plugin-hero .tsc-pp-split {
		grid-template-columns: minmax(0, 1fr);
	}

	body.tsc-has-plugin-hero .tsc-pp-split__media {
		max-width: 760px;
		margin: 0 auto;
	}

	body.tsc-has-plugin-hero .tsc-pp-blocks--three {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	body.tsc-has-plugin-hero .tsc-pp-section {
		padding-block: 48px;
	}

	body.tsc-has-plugin-hero .tsc-pp-blocks,
	body.tsc-has-plugin-hero .tsc-pp-blocks--three,
	body.tsc-has-plugin-hero .tsc-pp-spec {
		grid-template-columns: minmax(0, 1fr);
	}

	body.tsc-has-plugin-hero .tsc-pp-spec__col + .tsc-pp-spec__col {
		margin-top: 28px;
	}

	body.tsc-has-plugin-hero .tsc-pp-spec dl {
		grid-template-columns: 84px minmax(0, 1fr);
	}

	/* full UI stays visible; the overlay numbers are dropped because the
	   image is too small to point at precisely -- the numbered list carries
	   the same mapping in text. */
	body.tsc-has-plugin-hero .tsc-pp-callout {
		display: none;
	}

	body.tsc-has-plugin-hero .tsc-pp-ui img {
		border-radius: 6px;
	}

	body.tsc-has-plugin-hero .tsc-pp-flow {
		padding: 14px;
		gap: 8px;
	}

	body.tsc-has-plugin-hero .tsc-pp-flow__node {
		min-width: 0;
		padding: 6px 9px;
		font-size: 0.75rem;
	}

	body.tsc-has-plugin-hero .tsc-pp-buy__actions {
		flex-direction: column;
		align-items: stretch;
	}

	body.tsc-has-plugin-hero .tsc-pp-buy__cart,
	body.tsc-has-plugin-hero .tsc-pp-buy__cart form.cart,
	body.tsc-has-plugin-hero .tsc-pp-buy__cart .single_add_to_cart_button,
	body.tsc-has-plugin-hero .tsc-pp-btn {
		width: 100%;
		min-width: 0;
	}
}

/* ============================================================
 * 9. PHASE B -- shared screenshot frame, captions, CSS crops
 * ============================================================ */
body.tsc-has-plugin-hero .tsc-pp-ui__frame {
	position: relative;
}

body.tsc-has-plugin-hero .tsc-pp-ui__frame picture,
body.tsc-has-plugin-hero .tsc-pp-ui__frame img {
	display: block;
	width: 100%;
	height: auto;
	max-width: 100%;
}

body.tsc-has-plugin-hero .tsc-pp-ui__frame img {
	border-radius: 10px;
	box-shadow:
		0 30px 70px -20px color-mix(in srgb, #000 78%, transparent),
		0 0 0 1px color-mix(in srgb, var(--tsc-text) 8%, transparent);
}

/* On ivory the screenshot's dark chrome needs a quieter edge than the glow. */
body.tsc-has-plugin-hero .tsc-pp-ui__frame--ivory img {
	box-shadow:
		0 24px 48px -24px color-mix(in srgb, #000 55%, transparent),
		0 0 0 1px color-mix(in srgb, var(--pp-ink) 14%, transparent);
}

body.tsc-has-plugin-hero .tsc-pp-cap {
	margin: 14px 0 0;
	font-size: 0.8125rem;
	line-height: 1.5;
	max-width: none;
	color: var(--tsc-text-muted);
}

body.tsc-has-plugin-hero .tsc-pp-section--ivory .tsc-pp-cap {
	color: var(--pp-soft);
}

body.tsc-has-plugin-hero .tsc-pp-cap b {
	font-weight: 600;
	color: inherit;
}

body.tsc-has-plugin-hero .tsc-pp-crop {
	position: relative;
	overflow: hidden;
	width: 100%;
	border-radius: 8px;
	box-shadow: 0 0 0 1px color-mix(in srgb, var(--tsc-text) 10%, transparent);
}

body.tsc-has-plugin-hero .tsc-pp-crop picture {
	display: contents;
}

body.tsc-has-plugin-hero .tsc-pp-crop img {
	position: absolute;
	display: block;
	max-width: none;
	height: auto;
	border-radius: 0;
	box-shadow: none;
}

body.tsc-has-plugin-hero .tsc-pp-section--ivory .tsc-pp-crop {
	box-shadow: 0 0 0 1px color-mix(in srgb, var(--pp-ink) 14%, transparent);
}

/* ============================================================
 * 10. PRESETS -- screenshot left, copy + panel detail right
 * ============================================================ */
body.tsc-has-plugin-hero .tsc-pp-presets__grid {
	display: grid;
	grid-template-columns: minmax(0, 58fr) minmax(0, 42fr);
	column-gap: clamp(32px, 4vw, 64px);
	row-gap: 32px;
	align-items: center;
}

body.tsc-has-plugin-hero .tsc-pp-presets__shot {
	margin: 0;
}

body.tsc-has-plugin-hero .tsc-pp-presets__detail {
	margin-top: var(--tsc-space-5);
	max-width: 300px;
}

/* ============================================================
 * 11. TRUE STEREO -- centred header, CSS diagram, two crops, foot
 * ============================================================ */
body.tsc-has-plugin-hero .tsc-pp-stereo__head {
	max-width: 760px;
	margin: 0 auto clamp(32px, 4vh, 48px);
	text-align: center;
}

body.tsc-has-plugin-hero .tsc-pp-stereo__head .tsc-pp-h2,
body.tsc-has-plugin-hero .tsc-pp-stereo__head p {
	margin-inline: auto;
}

body.tsc-has-plugin-hero .tsc-pp-flows {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
	gap: clamp(16px, 2vw, 32px);
	max-width: 900px;
	margin: 0 auto;
}

body.tsc-has-plugin-hero .tsc-pp-flowbox {
	padding: 24px 22px 26px;
	border: 1px solid color-mix(in srgb, var(--tsc-text) 14%, transparent);
	border-radius: 10px;
	background: color-mix(in srgb, var(--tsc-surface) 70%, transparent);
}

body.tsc-has-plugin-hero .tsc-pp-flowbox--hero {
	border-color: color-mix(in srgb, var(--tsc-accent) 60%, transparent);
}

body.tsc-has-plugin-hero .tsc-pp-flowbox__lab {
	margin: 0 0 18px;
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	text-align: center;
	color: var(--tsc-text-muted);
	max-width: none;
}

body.tsc-has-plugin-hero .tsc-pp-flowbox--hero .tsc-pp-flowbox__lab {
	color: var(--tsc-accent);
}

body.tsc-has-plugin-hero .tsc-pp-frow {
	display: flex;
	gap: 16px;
}

body.tsc-has-plugin-hero .tsc-pp-fcol {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
}

body.tsc-has-plugin-hero .tsc-pp-node {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 9px 8px;
	border: 1px solid color-mix(in srgb, var(--tsc-text) 16%, transparent);
	border-radius: 6px;
	font-size: 0.8125rem;
	font-weight: 500;
	text-align: center;
	color: var(--tsc-text);
	background: color-mix(in srgb, var(--tsc-bg) 60%, transparent);
}

body.tsc-has-plugin-hero .tsc-pp-node small {
	font-size: 0.625rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--tsc-text-muted);
	margin-bottom: 2px;
}

body.tsc-has-plugin-hero .tsc-pp-node--k {
	border-color: var(--tsc-accent);
	color: var(--tsc-accent);
	font-weight: 600;
}

body.tsc-has-plugin-hero .tsc-pp-varrow {
	color: var(--tsc-accent);
	font-size: 1rem;
	line-height: 1;
	padding: 6px 0;
}

body.tsc-has-plugin-hero .tsc-pp-stereo__crops {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(20px, 3vw, 40px);
	margin: clamp(36px, 5vh, 56px) 0 0;
}

body.tsc-has-plugin-hero .tsc-pp-stereo__crop {
	margin: 0;
}

body.tsc-has-plugin-hero .tsc-pp-stereo__foot {
	max-width: 760px;
	margin: clamp(28px, 4vh, 40px) auto 0;
	text-align: center;
}

body.tsc-has-plugin-hero .tsc-pp-stereo__foot p {
	margin-inline: auto;
}

body.tsc-has-plugin-hero .tsc-pp-aside--dark {
	margin-top: var(--tsc-space-4);
	padding-top: 0;
	border-top: 0;
	color: var(--tsc-text-muted);
}

body.tsc-has-plugin-hero .tsc-pp-aside--dark a {
	margin-left: 0;
	color: var(--tsc-accent);
	font-weight: 600;
}

/* ============================================================
 * 12. LIBRARY -- header + points row, then the screenshot
 * ============================================================ */
body.tsc-has-plugin-hero .tsc-pp-library__head {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	column-gap: clamp(32px, 4vw, 64px);
	row-gap: 24px;
	align-items: start;
	margin-bottom: clamp(32px, 4vh, 48px);
}

body.tsc-has-plugin-hero .tsc-pp-library__head .tsc-pp-header {
	margin: 0;
}

body.tsc-has-plugin-hero .tsc-pp-library__points {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 clamp(24px, 3vw, 40px);
}

body.tsc-has-plugin-hero .tsc-pp-library__points li {
	padding: 14px 0;
	border-top: 1px solid var(--pp-line);
	font-size: 0.9375rem;
	line-height: 1.55;
	color: var(--pp-ink-2);
}

body.tsc-has-plugin-hero .tsc-pp-library__points b {
	display: block;
	margin-bottom: 2px;
	font-weight: 600;
	color: var(--pp-ink);
}

body.tsc-has-plugin-hero .tsc-pp-library__shot {
	margin: 0 auto;
	max-width: 1040px;
}

/* ---- Phase B responsive ---- */
@media (max-width: 1024px) {
	body.tsc-has-plugin-hero .tsc-pp-presets__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	/* copy first, then the screenshot (hero principle) */
	body.tsc-has-plugin-hero .tsc-pp-presets__copy {
		order: -1;
	}

	body.tsc-has-plugin-hero .tsc-pp-presets__shot {
		max-width: 760px;
		margin-inline: auto;
	}

	body.tsc-has-plugin-hero .tsc-pp-library__head {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 767px) {
	body.tsc-has-plugin-hero .tsc-pp-flows {
		grid-template-columns: minmax(0, 1fr);
	}

	body.tsc-has-plugin-hero .tsc-pp-stereo__crops,
	body.tsc-has-plugin-hero .tsc-pp-library__points {
		grid-template-columns: minmax(0, 1fr);
	}

	body.tsc-has-plugin-hero .tsc-pp-presets__detail {
		max-width: none;
	}

	body.tsc-has-plugin-hero .tsc-pp-stereo__head,
	body.tsc-has-plugin-hero .tsc-pp-stereo__foot {
		text-align: left;
	}

	body.tsc-has-plugin-hero .tsc-pp-stereo__head .tsc-pp-h2,
	body.tsc-has-plugin-hero .tsc-pp-stereo__head p,
	body.tsc-has-plugin-hero .tsc-pp-stereo__foot p {
		margin-inline: 0;
	}
}

/* ============================================================
 * 13. PHASE C -- FAQ, manual band, editorial reviews header
 * ============================================================ */
/* second ivory tone so FAQ reads as its own section after Compatibility */
body.tsc-has-plugin-hero .tsc-pp-section--ivory-2 {
	background: var(--pp-paper-2);
}

body.tsc-has-plugin-hero .tsc-pp-faq__list {
	margin: 0;
}

body.tsc-has-plugin-hero .tsc-pp-faq__item {
	padding: 20px 0;
	border-top: 1px solid var(--pp-line);
}

body.tsc-has-plugin-hero .tsc-pp-faq__item:last-child {
	border-bottom: 1px solid var(--pp-line);
}

body.tsc-has-plugin-hero .tsc-pp-faq dt {
	margin: 0 0 6px;
	font-family: var(--tsc-font-display);
	font-size: 1.0625rem;
	font-weight: 600;
	line-height: 1.35;
	color: var(--pp-ink);
}

body.tsc-has-plugin-hero .tsc-pp-faq dd {
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.6;
	color: var(--pp-ink-2);
	max-width: 40em;
}

body.tsc-has-plugin-hero .tsc-pp-faq dd a {
	color: var(--pp-leather);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* manual band: compact, centred, one outlined CTA */
body.tsc-has-plugin-hero .tsc-pp-manual {
	padding-block: clamp(48px, 7vh, 88px);
}

body.tsc-has-plugin-hero .tsc-pp-manual__inner {
	text-align: center;
}

body.tsc-has-plugin-hero .tsc-pp-manual__inner .tsc-pp-header {
	margin-bottom: 16px;
}

body.tsc-has-plugin-hero .tsc-pp-manual__inner .tsc-pp-h2,
body.tsc-has-plugin-hero .tsc-pp-manual__inner p {
	margin-inline: auto;
}

body.tsc-has-plugin-hero .tsc-pp-manual__inner p:not([class]) {
	margin-bottom: var(--tsc-space-5);
	max-width: 36em;
}

/* editorial reviews header: in-flow (site light background), aligned with
   the narrow reviews column nam-product.css already uses for plugin products */
body.tsc-has-plugin-hero .tsc-pp--reviews-head {
	clear: both;
	max-width: calc(760px + 2 * var(--tsc-space-5)); /* = the plugin-product reviews column (nam-product.css --narrow) + its side padding */
	margin: clamp(48px, 7vh, 88px) auto 0;
	padding-inline: var(--tsc-space-5);
	color: var(--tsc-text-light);
}

body.tsc-has-plugin-hero .tsc-pp-reviews-head {
	padding-bottom: 20px;
	border-bottom: 1px solid var(--tsc-border-light);
}

body.tsc-has-plugin-hero .tsc-pp-reviews-head .tsc-pp-eyebrow {
	color: var(--tsc-accent-hover);
	margin-bottom: var(--tsc-space-3);
}

body.tsc-has-plugin-hero .tsc-pp-reviews-head .tsc-pp-h2 {
	color: var(--tsc-text-light);
}

body.tsc-has-plugin-hero .tsc-pp-reviews-head__meta {
	margin: 10px 0 0;
	font-size: 0.9375rem;
	color: var(--tsc-text-muted-light);
}

/* the native reviews section follows directly; trim its top space so the
   editorial header owns the transition */
body.tsc-has-plugin-hero .tsc-product-section--reviews {
	padding-top: var(--tsc-space-6) !important;
}

@media (max-width: 767px) {
	body.tsc-has-plugin-hero .tsc-pp-faq__item {
		padding: 16px 0;
	}

	body.tsc-has-plugin-hero .tsc-pp-manual__inner .tsc-pp-btn {
		width: 100%;
	}

	body.tsc-has-plugin-hero .tsc-pp--reviews-head {
		padding-inline: var(--tsc-space-4);
	}
}
