/*
 * T.H.E.R.O. Presentation System — base stylesheet.
 * Scoped entirely under .thero-ps- selectors (spec §34 — never leak
 * into WooCommerce/Workshop Hub/Core/admin screens). Reads design
 * tokens from CSS custom properties set in :root by
 * class-thero-ps-design-system.php — Theo never edits this file.
 */

.thero-ps-eyebrow {
	font-family: var(--thero-ps-font-eyebrow);
	font-size: var(--thero-ps-size-eyebrow);
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--thero-ps-gold);
	margin: 0 0 14px;
}

/* -----------------------------------------------------------------
 * Hero
 * --------------------------------------------------------------- */
.thero-ps-hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: clamp(420px, 60vh, 760px);
	padding: var(--thero-ps-space-hero) var(--thero-ps-gap-desktop);
	overflow: hidden;
	background: var(--thero-ps-black);
	color: var(--thero-ps-white);
	isolation: isolate;
}

.thero-ps-hero__media {
	position: absolute;
	inset: 0;
	z-index: 0;
	margin: 0;
}

.thero-ps-hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.thero-ps-hero__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: var(--thero-ps-overlay);
	opacity: var(--thero-ps-hero-overlay, var(--thero-ps-overlay-default));
}

.thero-ps-hero__content {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: var(--thero-ps-max-width);
	margin: 0 auto;
}

.thero-ps-hero--width-narrow .thero-ps-hero__content { max-width: 760px; }
.thero-ps-hero--width-wide .thero-ps-hero__content   { max-width: 1400px; }

.thero-ps-hero--align-center .thero-ps-hero__content {
	text-align: center;
	margin-left: auto;
	margin-right: auto;
}

.thero-ps-hero__headline {
	font-family: var(--thero-ps-font-hero);
	font-size: var(--thero-ps-size-hero);
	line-height: 1.08;
	font-weight: 700;
	margin: 0 0 20px;
	color: var(--thero-ps-white);
}

.thero-ps-hero__highlight {
	display: block;
	color: var(--thero-ps-gold);
}

.thero-ps-hero__supporting {
	font-family: var(--thero-ps-font-body);
	font-size: var(--thero-ps-size-body);
	line-height: 1.6;
	color: var(--thero-ps-muted);
	max-width: 640px;
	margin: 0 0 20px;
}

.thero-ps-hero--align-center .thero-ps-hero__supporting {
	margin-left: auto;
	margin-right: auto;
}

.thero-ps-hero__sequence {
	font-family: var(--thero-ps-font-eyebrow);
	font-size: 0.8125rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--thero-ps-gold-light);
	margin: 0 0 28px;
}

.thero-ps-hero__ctas {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 8px;
}

.thero-ps-hero--align-center .thero-ps-hero__ctas {
	justify-content: center;
}

/* Theme variants */
.thero-ps-hero--light-editorial {
	background: var(--thero-ps-cream);
	color: var(--thero-ps-black);
}
.thero-ps-hero--light-editorial .thero-ps-hero__headline,
.thero-ps-hero--light-editorial .thero-ps-hero__supporting {
	color: var(--thero-ps-black);
}
.thero-ps-hero--light-editorial .thero-ps-hero__overlay {
	background: linear-gradient(180deg, rgba(246,241,231,0.15), rgba(246,241,231,0.55));
}

.thero-ps-hero--chamber { background: var(--thero-ps-charcoal); }
.thero-ps-hero--human-operating { background: var(--thero-ps-black); }
.thero-ps-hero--minimal { min-height: clamp(320px, 40vh, 520px); }

/* Admin-only "missing artwork" flag (spec §36) — never shown to visitors */
.thero-ps-admin-flag {
	position: relative;
	z-index: 3;
	background: #b32d2e;
	color: #fff;
	font-family: var(--thero-ps-font-eyebrow);
	font-size: 0.8125rem;
	padding: 8px 14px;
	margin-bottom: 12px;
	display: inline-block;
}

/* Mid-build placeholder (Phase 4→5) — a pattern-inserted repeater
   with no items yet, distinct from a real missing-artwork error. */
.thero-ps-placeholder-box {
	border: 1px dashed var(--thero-ps-border-gold, #C6A15B);
	background: rgba(198,161,91,0.06);
	color: var(--thero-ps-muted, #6b6b6b);
	font-family: var(--thero-ps-font-eyebrow, inherit);
	font-size: 0.875rem;
	text-align: center;
	padding: 32px 20px;
	margin: 16px auto;
	max-width: var(--thero-ps-max-width, 1200px);
}

/* -----------------------------------------------------------------
 * Buttons — real, functional, accessible controls (spec §2, §4, §33)
 * --------------------------------------------------------------- */
.thero-ps-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: var(--thero-ps-font-button);
	font-size: var(--thero-ps-size-button);
	letter-spacing: 0.04em;
	text-decoration: none;
	padding: 14px 30px;
	border-radius: var(--thero-ps-btn-radius);
	border: var(--thero-ps-btn-border-width) solid transparent;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

@media (prefers-reduced-motion: reduce) {
	.thero-ps-btn { transition: none; }
}

.thero-ps-btn:focus-visible {
	outline: 2px solid var(--thero-ps-gold);
	outline-offset: 3px;
}

/* Per-instance shape override (Site Shell patch, "CTA controls") --
   the system-level default already applies via --thero-ps-btn-radius
   above; these only take effect when a specific button instance
   explicitly overrides that default. */
.thero-ps-btn--shape-square { border-radius: 2px; }
.thero-ps-btn--shape-soft-round { border-radius: 6px; }
.thero-ps-btn--shape-rounded { border-radius: 12px; }
.thero-ps-btn--shape-pill { border-radius: 999px; }

/* Optional CTA icon, before/after label placement. */
.thero-ps-btn__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1em;
	height: 1em;
	font-size: 1.1em;
}
.thero-ps-btn__icon--custom img { width: 100%; height: 100%; object-fit: contain; display: block; }
.thero-ps-btn__label + .thero-ps-btn__icon,
.thero-ps-btn__icon + .thero-ps-btn__label {
	margin-left: 8px;
}
.thero-ps-btn__icon:first-child { margin-right: 8px; margin-left: 0; }

.thero-ps-btn--primary-gold {
	background: var(--thero-ps-gold);
	border-color: var(--thero-ps-gold);
	color: var(--thero-ps-black);
}
.thero-ps-btn--primary-gold:hover { background: var(--thero-ps-gold-light); border-color: var(--thero-ps-gold-light); }

.thero-ps-btn--dark-gold-outline {
	background: transparent;
	border-color: var(--thero-ps-border-gold);
	color: var(--thero-ps-gold);
}
.thero-ps-btn--dark-gold-outline:hover { background: rgba(198,161,91,0.12); }

.thero-ps-btn--light {
	background: var(--thero-ps-white);
	border-color: var(--thero-ps-white);
	color: var(--thero-ps-black);
}
.thero-ps-btn--light:hover { background: var(--thero-ps-cream); }

.thero-ps-btn--text-link {
	background: transparent;
	border-color: transparent;
	color: var(--thero-ps-gold);
	padding-left: 4px;
	padding-right: 4px;
	text-decoration: underline;
	text-underline-offset: 4px;
}
.thero-ps-btn--text-link:hover { color: var(--thero-ps-gold-light); }

.thero-ps-btn[aria-disabled="true"] {
	opacity: 0.45;
	pointer-events: none;
}

/* -----------------------------------------------------------------
 * Responsive
 * --------------------------------------------------------------- */
@media (max-width: 1024px) {
	.thero-ps-hero { padding: var(--thero-ps-space-hero) var(--thero-ps-gap-tablet); }
}

@media (max-width: 767px) {
	.thero-ps-hero {
		padding: calc(var(--thero-ps-space-hero) * 0.7) var(--thero-ps-gap-mobile);
		min-height: clamp(360px, 70vh, 620px);
	}
	.thero-ps-hero__ctas { flex-direction: column; align-items: stretch; }
	.thero-ps-hero--align-center .thero-ps-hero__ctas { align-items: center; }
	.thero-ps-btn { width: 100%; }
	.thero-ps-hero--align-center .thero-ps-btn { width: auto; }
}

/* -----------------------------------------------------------------
 * Section Banner (spec §10)
 * --------------------------------------------------------------- */
.thero-ps-banner {
	position: relative;
	padding: calc(var(--thero-ps-space-section) * 0.55) var(--thero-ps-gap-desktop);
	overflow: hidden;
	background: var(--thero-ps-charcoal);
	color: var(--thero-ps-white);
}
.thero-ps-banner--light { background: var(--thero-ps-cream); color: var(--thero-ps-black); }
.thero-ps-banner__media { position: absolute; inset: 0; z-index: 0; margin: 0; }
.thero-ps-banner__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thero-ps-banner__overlay { position: absolute; inset: 0; z-index: 1; background: var(--thero-ps-overlay); }
.thero-ps-banner__content { position: relative; z-index: 2; max-width: var(--thero-ps-max-width); margin: 0 auto; }
.thero-ps-banner--align-center .thero-ps-banner__content { text-align: center; }
.thero-ps-banner__heading { font-family: var(--thero-ps-font-heading); font-size: var(--thero-ps-size-heading); margin: 0 0 14px; }
.thero-ps-banner--light .thero-ps-banner__heading { color: var(--thero-ps-black); }
.thero-ps-banner__supporting { font-family: var(--thero-ps-font-body); font-size: var(--thero-ps-size-body); color: var(--thero-ps-muted); max-width: 640px; margin: 0 0 20px; }
.thero-ps-banner--light .thero-ps-banner__supporting { color: var(--thero-ps-charcoal); }

/* -----------------------------------------------------------------
 * Role Entry (§11) / Three Chambers (§12) — shared card-group pattern
 * --------------------------------------------------------------- */
.thero-ps-roles, .thero-ps-chambers {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--thero-ps-gap-desktop);
	max-width: var(--thero-ps-max-width);
	margin: 0 auto;
	padding: var(--thero-ps-space-section) var(--thero-ps-gap-desktop);
}
.thero-ps-roles--dark, .thero-ps-chambers--dark { background: var(--thero-ps-black); }
.thero-ps-roles--light, .thero-ps-chambers--light { background: var(--thero-ps-cream); }
.thero-ps-roles__card, .thero-ps-chambers__card {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: 2px;
	border: var(--thero-ps-card-border-width) solid var(--thero-ps-border-gold);
	min-height: 260px;
	text-decoration: none;
	color: var(--thero-ps-white);
	background: var(--thero-ps-charcoal);
}
.thero-ps-roles__media, .thero-ps-chambers__media { position: absolute; inset: 0; }
.thero-ps-roles__media img, .thero-ps-chambers__media img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0.55; }
.thero-ps-roles__body, .thero-ps-chambers__body {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	height: 100%;
	padding: 24px;
}
.thero-ps-roles__title, .thero-ps-chambers__title {
	font-family: var(--thero-ps-font-card);
	font-size: var(--thero-ps-size-card);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin: 0 0 6px;
}
.thero-ps-roles__tagline, .thero-ps-chambers__tagline { font-family: var(--thero-ps-font-body); font-size: 0.9375rem; color: var(--thero-ps-gold-light); font-style: italic; }
.thero-ps-roles--compact .thero-ps-roles__card, .thero-ps-chambers--compact .thero-ps-chambers__card { min-height: 140px; }
.thero-ps-roles--horizontal, .thero-ps-chambers--horizontal { grid-template-columns: 1fr; }
.thero-ps-roles--horizontal .thero-ps-roles__card, .thero-ps-chambers--horizontal .thero-ps-chambers__card { min-height: 160px; }

/* -----------------------------------------------------------------
 * Human Operating Trilogy (§13–§14)
 * --------------------------------------------------------------- */
.thero-ps-trilogy { padding: var(--thero-ps-space-section) var(--thero-ps-gap-desktop); background: var(--thero-ps-black); }
.thero-ps-trilogy--light { background: var(--thero-ps-cream); }
.thero-ps-trilogy__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--thero-ps-space-card-gap); max-width: var(--thero-ps-max-width); margin: 0 auto; }
.thero-ps-trilogy__card { border: var(--thero-ps-card-border-width) solid var(--thero-ps-border-gold); padding: 32px 26px; text-align: center; background: var(--thero-ps-charcoal); }
.thero-ps-trilogy--light .thero-ps-trilogy__card { background: var(--thero-ps-white); }
.thero-ps-trilogy__card-media { display: block; margin: -32px -26px 20px; aspect-ratio: 16 / 10; overflow: hidden; }
.thero-ps-trilogy__card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thero-ps-trilogy__card-title { font-family: var(--thero-ps-font-card); font-size: 1.75rem; color: var(--thero-ps-gold); margin: 6px 0 14px; }
.thero-ps-trilogy__card-question { font-family: var(--thero-ps-font-quote); font-style: italic; color: var(--thero-ps-white); font-size: 1.125rem; margin: 0 0 16px; }
.thero-ps-trilogy--light .thero-ps-trilogy__card-question { color: var(--thero-ps-black); }
.thero-ps-trilogy__card-desc { font-family: var(--thero-ps-font-body); font-size: 0.9375rem; color: var(--thero-ps-muted); margin: 0 0 16px; }
.thero-ps-trilogy__card-links { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.thero-ps-trilogy__row { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; max-width: var(--thero-ps-max-width); margin: 0 auto; }
.thero-ps-trilogy__row-item { display: flex; flex-direction: column; gap: 4px; color: var(--thero-ps-white); text-align: center; }
.thero-ps-trilogy--light .thero-ps-trilogy__row-item { color: var(--thero-ps-black); }
.thero-ps-trilogy__progression { display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap; max-width: var(--thero-ps-max-width); margin: 0 auto; }
.thero-ps-trilogy__prog-step { display: flex; flex-direction: column; align-items: center; color: var(--thero-ps-gold); }
.thero-ps-trilogy__prog-title { font-family: var(--thero-ps-font-card); font-size: 1.5rem; }
.thero-ps-trilogy__prog-label { font-family: var(--thero-ps-font-eyebrow); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--thero-ps-muted); }
.thero-ps-trilogy__prog-arrow { color: var(--thero-ps-gold); font-size: 1.5rem; }

/* -----------------------------------------------------------------
 * Development Journey (§16) / System Connection (§17)
 * --------------------------------------------------------------- */
.thero-ps-journey, .thero-ps-system-connection {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	flex-wrap: wrap;
	gap: 14px;
	padding: var(--thero-ps-space-section) var(--thero-ps-gap-desktop);
	max-width: var(--thero-ps-max-width);
	margin: 0 auto;
}
.thero-ps-journey--dark, .thero-ps-system-connection--dark { background: var(--thero-ps-black); }
.thero-ps-journey--light { background: var(--thero-ps-cream); }
.thero-ps-journey__step { display: flex; flex-direction: column; align-items: center; text-align: center; width: 110px; }
.thero-ps-journey__icon { font-size: 28px; width: 56px; height: 56px; line-height: 56px; border-radius: 50%; background: rgba(198,161,91,0.12); color: var(--thero-ps-gold); margin-bottom: 8px; }
.thero-ps-journey__icon--custom { display: inline-flex; align-items: center; justify-content: center; padding: 12px; }
.thero-ps-journey__icon--custom img { max-width: 100%; max-height: 100%; object-fit: contain; }
.thero-ps-journey__label { font-family: var(--thero-ps-font-eyebrow); font-weight: 600; font-size: 0.875rem; color: var(--thero-ps-charcoal); }
.thero-ps-journey--dark .thero-ps-journey__label { color: var(--thero-ps-white); }
.thero-ps-journey__desc { font-family: var(--thero-ps-font-body); font-size: 0.75rem; color: var(--thero-ps-muted); margin-top: 4px; }
.thero-ps-journey__arrow { align-self: center; color: var(--thero-ps-gold); font-size: 1.25rem; }
.thero-ps-system-connection__node { font-family: var(--thero-ps-font-eyebrow); font-size: 0.8125rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--thero-ps-gold-light); border: 1px solid var(--thero-ps-border-gold); padding: 10px 16px; }
.thero-ps-system-connection__arrow { color: var(--thero-ps-gold); align-self: center; }

/* -----------------------------------------------------------------
 * Workshop components (§18)
 * --------------------------------------------------------------- */
.thero-ps-workshops { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--thero-ps-space-card-gap); padding: var(--thero-ps-space-section) var(--thero-ps-gap-desktop); max-width: var(--thero-ps-max-width); margin: 0 auto; background: var(--thero-ps-black); }
.thero-ps-workshops--light { background: var(--thero-ps-cream); }
.thero-ps-workshops--featured { grid-template-columns: 1fr; }
.thero-ps-workshop-card { background: var(--thero-ps-charcoal); border: var(--thero-ps-card-border-width) solid var(--thero-ps-border-gold); overflow: hidden; }
.thero-ps-workshops--light .thero-ps-workshop-card { background: var(--thero-ps-white); }
.thero-ps-workshop-card__media img { width: 100%; height: 180px; object-fit: cover; display: block; }
.thero-ps-workshop-card__body { padding: 20px; color: var(--thero-ps-white); }
.thero-ps-workshops--light .thero-ps-workshop-card__body { color: var(--thero-ps-black); }
.thero-ps-workshop-card__live { display: inline-block; background: var(--thero-ps-gold); color: var(--thero-ps-black); font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.08em; padding: 2px 8px; margin-bottom: 8px; }
.thero-ps-workshop-card__title { font-family: var(--thero-ps-font-card); font-size: 1.25rem; margin: 4px 0; }
.thero-ps-workshop-card__subtitle { font-style: italic; color: var(--thero-ps-gold-light); margin: 0 0 10px; }
.thero-ps-workshop-card__desc { font-size: 0.9375rem; color: var(--thero-ps-muted); margin: 0 0 12px; }
.thero-ps-workshop-card__meta { font-size: 0.8125rem; color: var(--thero-ps-muted); margin: 0 0 14px; }

/* -----------------------------------------------------------------
 * Human Operating Series (§19)
 * --------------------------------------------------------------- */
.thero-ps-hos { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--thero-ps-space-card-gap); padding: var(--thero-ps-space-section) var(--thero-ps-gap-desktop); max-width: var(--thero-ps-max-width); margin: 0 auto; background: var(--thero-ps-black); }
.thero-ps-hos--light { background: var(--thero-ps-cream); }
.thero-ps-hos__card { border: var(--thero-ps-card-border-width) solid var(--thero-ps-border-gold); padding: 30px 24px; text-align: center; background: var(--thero-ps-charcoal); }
.thero-ps-hos--light .thero-ps-hos__card { background: var(--thero-ps-white); }
.thero-ps-hos__card-media { display: block; margin: -30px -24px 18px; aspect-ratio: 16 / 10; overflow: hidden; }
.thero-ps-hos__card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thero-ps-hos__title { font-family: var(--thero-ps-font-card); font-size: 1.375rem; color: var(--thero-ps-white); margin: 10px 0 14px; }
.thero-ps-hos--light .thero-ps-hos__title { color: var(--thero-ps-black); }
.thero-ps-hos__desc { font-size: 0.9375rem; color: var(--thero-ps-muted); margin: 0 0 18px; }

/* -----------------------------------------------------------------
 * Media + Text (§20)
 * --------------------------------------------------------------- */
.thero-ps-media-text { display: grid; grid-template-columns: 1fr 1fr; gap: var(--thero-ps-gap-desktop); align-items: center; max-width: var(--thero-ps-max-width); margin: 0 auto; padding: var(--thero-ps-space-section) var(--thero-ps-gap-desktop); background: var(--thero-ps-cream); }
.thero-ps-media-text--dark { background: var(--thero-ps-black); }
.thero-ps-media-text--image-right { direction: rtl; }
.thero-ps-media-text--image-right > * { direction: ltr; }
.thero-ps-media-text--full-width { grid-template-columns: 1fr; }
.thero-ps-media-text__media img, .thero-ps-media-text__media--full img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thero-ps-media-text__media--full { margin-bottom: 20px; max-height: 420px; overflow: hidden; }
.thero-ps-media-text__headline { font-family: var(--thero-ps-font-heading); font-size: var(--thero-ps-size-heading); color: var(--thero-ps-black); margin: 0 0 16px; }
.thero-ps-media-text--dark .thero-ps-media-text__headline { color: var(--thero-ps-white); }
.thero-ps-media-text__body { font-size: var(--thero-ps-size-body); color: var(--thero-ps-charcoal); margin: 0 0 16px; }
.thero-ps-media-text--dark .thero-ps-media-text__body { color: var(--thero-ps-muted); }
.thero-ps-media-text__quote { font-family: var(--thero-ps-font-quote); font-style: italic; font-size: 1.25rem; color: var(--thero-ps-gold); border-left: 2px solid var(--thero-ps-gold); padding-left: 16px; margin: 0 0 20px; }

@media (max-width: 900px) {
	.thero-ps-roles, .thero-ps-chambers, .thero-ps-trilogy__cards, .thero-ps-workshops, .thero-ps-hos { grid-template-columns: 1fr; }
	.thero-ps-media-text { grid-template-columns: 1fr; }
	.thero-ps-media-text--image-right { direction: ltr; }
}

/* -----------------------------------------------------------------
 * Principle / Quote (§21)
 * --------------------------------------------------------------- */
.thero-ps-principle { position: relative; padding: calc(var(--thero-ps-space-section) * 0.7) var(--thero-ps-gap-desktop); text-align: center; background: var(--thero-ps-black); background-size: cover; background-position: center; }
.thero-ps-principle--light { background-color: var(--thero-ps-cream); }
.thero-ps-principle--left { text-align: left; }
.thero-ps-principle--has-image .thero-ps-principle__overlay { position: absolute; inset: 0; background: var(--thero-ps-overlay); }
.thero-ps-principle__quote { position: relative; z-index: 1; font-family: var(--thero-ps-font-quote); font-size: var(--thero-ps-size-quote); font-style: italic; color: var(--thero-ps-white); max-width: 820px; margin: 0 auto; line-height: 1.35; }
.thero-ps-principle--left .thero-ps-principle__quote { margin: 0; }
.thero-ps-principle--light .thero-ps-principle__quote { color: var(--thero-ps-black); }
.thero-ps-principle__divider { display: block; width: 64px; height: 2px; background: var(--thero-ps-gold); margin: 24px auto 0; position: relative; z-index: 1; }
.thero-ps-principle--left .thero-ps-principle__divider { margin-left: 0; }

/* -----------------------------------------------------------------
 * Resource (§22)
 * --------------------------------------------------------------- */
.thero-ps-resources { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--thero-ps-gap-desktop); max-width: var(--thero-ps-max-width); margin: 0 auto; padding: var(--thero-ps-space-section) var(--thero-ps-gap-desktop); background: var(--thero-ps-cream); }
.thero-ps-resources--dark { background: var(--thero-ps-black); }
.thero-ps-resource-card__media img { width: 100%; height: 200px; object-fit: cover; display: block; margin-bottom: 12px; }
.thero-ps-resource-card__title { font-family: var(--thero-ps-font-card); font-size: 1.0625rem; color: var(--thero-ps-black); margin: 4px 0 10px; }
.thero-ps-resources--dark .thero-ps-resource-card__title { color: var(--thero-ps-white); }

/* -----------------------------------------------------------------
 * Directory (§23)
 * --------------------------------------------------------------- */
.thero-ps-directory { max-width: var(--thero-ps-max-width); margin: 0 auto; padding: calc(var(--thero-ps-space-section) * 0.7) var(--thero-ps-gap-desktop); text-align: center; background: var(--thero-ps-cream); }
.thero-ps-directory--dark { background: var(--thero-ps-black); color: var(--thero-ps-white); }
.thero-ps-directory__heading { font-family: var(--thero-ps-font-heading); font-size: var(--thero-ps-size-heading); margin: 0 0 14px; }
.thero-ps-directory__body { font-size: var(--thero-ps-size-body); color: var(--thero-ps-charcoal); max-width: 640px; margin: 0 auto 20px; }
.thero-ps-directory--dark .thero-ps-directory__body { color: var(--thero-ps-muted); }

/* -----------------------------------------------------------------
 * Membership (§24)
 * --------------------------------------------------------------- */
.thero-ps-membership { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--thero-ps-space-card-gap); max-width: var(--thero-ps-max-width); margin: 0 auto; padding: var(--thero-ps-space-section) var(--thero-ps-gap-desktop); background: var(--thero-ps-black); }
.thero-ps-membership--light { background: var(--thero-ps-cream); }
.thero-ps-membership-card { border: var(--thero-ps-card-border-width) solid var(--thero-ps-border-gold); padding: 30px 24px; text-align: center; background: var(--thero-ps-charcoal); color: var(--thero-ps-white); }
.thero-ps-membership--light .thero-ps-membership-card { background: var(--thero-ps-white); color: var(--thero-ps-black); }
.thero-ps-membership-card__title { font-family: var(--thero-ps-font-card); font-size: 1.25rem; margin: 0 0 10px; }
.thero-ps-membership-card__desc { font-size: 0.9375rem; color: var(--thero-ps-muted); margin: 0 0 12px; }
.thero-ps-membership-card__price { font-family: var(--thero-ps-font-eyebrow); color: var(--thero-ps-gold); font-size: 1.125rem; margin: 0 0 16px; }

@media (max-width: 900px) {
	.thero-ps-resources { grid-template-columns: repeat(2, 1fr); }
	.thero-ps-membership { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	.thero-ps-resources { grid-template-columns: 1fr; }
	.thero-ps-journey, .thero-ps-system-connection { gap: 10px; }
}

/* -----------------------------------------------------------------
 * SyteKast Media (defect #2, v0.7.1 — render classes existed with no
 * matching CSS at all). Deliberately mirrors the Workshop card's
 * structure/spacing exactly (image top, body below, dark/light theme
 * modifier) rather than inventing a new visual pattern for what is,
 * structurally, the same kind of card.
 * --------------------------------------------------------------- */
.thero-ps-sytekast {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--thero-ps-gap-desktop);
	max-width: var(--thero-ps-max-width);
	margin: 0 auto;
	padding: var(--thero-ps-space-section) var(--thero-ps-gap-desktop);
	background: var(--thero-ps-black);
}
.thero-ps-sytekast--light { background: var(--thero-ps-cream); }

.thero-ps-sytekast--channel-featured,
.thero-ps-sytekast--playlist-featured,
.thero-ps-sytekast--featured-media {
	grid-template-columns: 1fr;
	max-width: 720px;
}

.thero-ps-sytekast-card {
	background: var(--thero-ps-charcoal);
	border: var(--thero-ps-card-border-width) solid var(--thero-ps-border-gold);
	overflow: hidden;
}
.thero-ps-sytekast--light .thero-ps-sytekast-card { background: var(--thero-ps-white); }

.thero-ps-sytekast-card__media {
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
}
.thero-ps-sytekast-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.thero-ps-sytekast-card__body { padding: 20px; color: var(--thero-ps-white); }
.thero-ps-sytekast--light .thero-ps-sytekast-card__body { color: var(--thero-ps-black); }

.thero-ps-sytekast-card__title { font-family: var(--thero-ps-font-card); font-size: 1.25rem; margin: 0 0 4px; }
.thero-ps-sytekast-card__subtitle { font-style: italic; color: var(--thero-ps-gold-light); margin: 0 0 10px; }
.thero-ps-sytekast-card__desc { font-size: 0.9375rem; color: var(--thero-ps-muted); margin: 0 0 14px; }

@media (max-width: 900px) {
	.thero-ps-sytekast { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
	.thero-ps-sytekast { grid-template-columns: 1fr; }
}

/* Phase 4, item 13: global card radius/border/elevation tokens */
.thero-ps-roles__card, .thero-ps-chambers__card, .thero-ps-trilogy__card, .thero-ps-workshop-card, .thero-ps-resource-card, .thero-ps-hos__card, .thero-ps-membership-card, .thero-ps-sytekast-card {
	border-radius: var(--thero-ps-card-radius);
	box-shadow: var(--thero-ps-card-shadow);
}

/* -----------------------------------------------------------------
 * Transparent theme variant (Site Shell patch, Fix 3): lets these
 * components sit directly over the Page Canvas / Presentation Section
 * background instead of always painting their own solid color.
 * Existing Dark and Light modes are untouched.
 *
 * Text/spacing color correctness: THERO_PS_Blocks::theme_classes()
 * outputs BOTH `--dark` and `--transparent` together for theme=
 * "transparent" (see that method's docblock for why a bare background-
 * only class would have produced illegible text on roughly half of
 * these components). `--dark`'s existing rules (defined earlier in
 * this file) handle all text/spacing; the rules below, appearing
 * later in the cascade at equal specificity, only override
 * `background` -- nothing else needs to be duplicated here.
 * --------------------------------------------------------------- */
.thero-ps-roles--transparent,
.thero-ps-chambers--transparent,
.thero-ps-trilogy--transparent,
.thero-ps-journey--transparent,
.thero-ps-system-connection--transparent,
.thero-ps-workshops--transparent,
.thero-ps-sytekast--transparent,
.thero-ps-hos--transparent,
.thero-ps-media-text--transparent,
.thero-ps-principle--transparent,
.thero-ps-resources--transparent,
.thero-ps-directory--transparent,
.thero-ps-membership--transparent,
.thero-ps-banner--transparent {
	background: transparent;
}

/* -----------------------------------------------------------------
 * Presentation Section (§6) -- native InnerBlocks container.
 * --------------------------------------------------------------- */
.thero-ps-section {
	position: relative;
	width: 100%;
}
.thero-ps-section--transparent { background: transparent; }
.thero-ps-section--valign-center { display: flex; flex-direction: column; justify-content: center; }
.thero-ps-section--valign-bottom { display: flex; flex-direction: column; justify-content: flex-end; }

.thero-ps-section__overlay {
	position: absolute;
	inset: 0;
	background: var(--thero-ps-overlay, rgba(0,0,0,0.5));
	pointer-events: none;
}

.thero-ps-section__inner {
	position: relative;
	z-index: 1;
	max-width: var(--thero-ps-max-width, 1200px);
	margin: 0 auto;
	padding: 0 var(--thero-ps-gap-desktop, 32px);
}
.thero-ps-section--content-narrow .thero-ps-section__inner { max-width: 800px; }
.thero-ps-section--content-wide .thero-ps-section__inner { max-width: 1440px; }
.thero-ps-section--content-full .thero-ps-section__inner { max-width: none; padding: 0; }

.thero-ps-section__divider {
	display: block;
	width: 64px;
	height: 2px;
	background: var(--thero-ps-gold);
	margin: 32px auto 0;
	position: relative;
	z-index: 1;
}
