/* ==========================================================================
   TSC Front Page — Redesign
   Child theme: tsc-front-page  ·  Loaded only by front-page.php
   Brand: Texas Blue (PMS 541C) + Scorpion Orange (PMS 151C)
          Baskerville headlines · Avenir Next body
   All selectors are prefixed .tscx- so nothing else on the site is affected.
   ========================================================================== */

.tscx {
	--tscx-blue: #003c71;
	--tscx-blue-deep: #002649;
	--tscx-blue-ink: #0d1b2e;
	--tscx-orange: #ff8200;
	--tscx-orange-dark: #c25700; /* AA-safe orange for text on white */
	--tscx-sand: #f6f2ea;
	--tscx-line: #dfe5ec;
	--tscx-text: #1b2533;
	--tscx-muted: #4a5668;
	--tscx-white: #ffffff;
	--tscx-radius: 10px;
	--tscx-serif: "Baskerville", "Libre Baskerville", "Baskerville Old Face", Georgia, "Times New Roman", serif;
	--tscx-sans: "Avenir Next", "Avenir", "Segoe UI", "Helvetica Neue", Helvetica, sans-serif;

	font-family: var(--tscx-sans);
	color: var(--tscx-text);
}

.tscx *,
.tscx *::before,
.tscx *::after { box-sizing: border-box; }

/* Keep the site header (and its dropdown menus) above the homepage sections.
   The redesign's layers are sealed inside <main> so they can't cover the menus. */
body.home .site-header {
	position: relative;
	z-index: 1000;
}
main.tscx {
	position: relative;
	z-index: 0;
	isolation: isolate;
}

.tscx-wrap {
	width: 100%;
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 24px;
}

.tscx-section { padding: 88px 0; }

/* --- Type ------------------------------------------------------------- */
.tscx-eyebrow {
	margin: 0 0 12px;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--tscx-orange-dark);
}
.tscx-eyebrow--light { color: #ffd3a3; }
.tscx-eyebrow--orange { color: var(--tscx-orange); }

.tscx-h2 {
	margin: 0 0 14px;
	font-family: var(--tscx-serif);
	font-weight: 700;
	font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem);
	line-height: 1.12;
	color: var(--tscx-blue);
	text-transform: none;
}
.tscx-h2--light { color: var(--tscx-white); }

.tscx-h3 {
	margin: 0 0 8px;
	font-family: var(--tscx-sans);
	font-weight: 700;
	font-size: 1.125rem;
	line-height: 1.3;
	color: var(--tscx-blue);
}
.tscx-h3--light { color: var(--tscx-white); }

.tscx-sub {
	margin: 0 0 24px;
	max-width: 620px;
	font-size: 1.125rem;
	line-height: 1.6;
	color: var(--tscx-muted);
}
.tscx-sub--light { color: #d9e3ef; }

.tscx-head { margin-bottom: 40px; }

/* --- Buttons & links -------------------------------------------------- */
.tscx-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 16px;
}
.tscx-actions--center { justify-content: center; }

.tscx-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 12px 24px;
	border: 2px solid transparent;
	border-radius: 999px;
	font-family: var(--tscx-sans);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.tscx-btn:hover { transform: translateY(-1px); text-decoration: none; }
.tscx-btn:focus-visible,
.tscx-link:focus-visible,
.tscx-chip:focus-visible,
.tscx-quick:focus-visible,
.tscx-path a:focus-visible {
	outline: 3px solid var(--tscx-orange);
	outline-offset: 3px;
}

/* Navy text on orange keeps contrast above 4.5:1 */
.tscx-btn--orange { background: var(--tscx-orange); color: var(--tscx-blue-ink); }
.tscx-btn--orange:hover { background: #ff9a33; color: var(--tscx-blue-ink); }

.tscx-btn--blue { background: var(--tscx-blue); color: var(--tscx-white); }
.tscx-btn--blue:hover { background: var(--tscx-blue-deep); color: var(--tscx-white); }

.tscx-btn--light { background: var(--tscx-white); color: var(--tscx-blue); }
.tscx-btn--light:hover { background: var(--tscx-sand); color: var(--tscx-blue); }

.tscx-btn--ghost { background: transparent; color: var(--tscx-white); border-color: rgba(255,255,255,.75); }
.tscx-btn--ghost:hover { background: rgba(255,255,255,.12); color: var(--tscx-white); border-color: var(--tscx-white); }

.tscx-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 700;
	color: var(--tscx-blue);
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
	text-decoration-color: var(--tscx-orange);
}
.tscx-link:hover { color: var(--tscx-blue-deep); }
.tscx-link--light { color: var(--tscx-white); }
.tscx-link--light:hover { color: #ffd3a3; }

/* --- 1. Hero ---------------------------------------------------------- */
.tscx-hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: min(88vh, 760px);
	padding: 160px 0 96px;
	overflow: hidden;
	background: var(--tscx-blue-deep);
	color: var(--tscx-white);
}
.tscx-hero__media {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
}
.tscx-hero__media picture,
.tscx-hero__cover {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}
/* The YouTube player layers over the cover photo once it starts playing. */
.tscx-hero__media .player {
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	width: 100% !important;
	height: 100% !important;
	background: transparent !important;
}
.tscx-hero__media .inlinePlayButton { display: none !important; }

/* The video is decoration only: taps, clicks and scroll gestures pass straight
   through it, so the YouTube player can never be opened or brought forward. */
.tscx-hero__media,
.tscx-hero__media * {
	pointer-events: none !important;
	user-select: none;
}
.tscx-hero__shade { pointer-events: none; }

/* Phones, tablets and touch screens: photo only, no video. */
@media (max-width: 1024px), (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) {
	.tscx-hero__media .player,
	.tscx-hero__media .mbYTP_wrapper,
	.tscx-hero__media iframe { display: none !important; }
}
.tscx-hero__shade {
	position: absolute;
	inset: 0;
	z-index: 1;
	background:
		linear-gradient(90deg, rgba(0,38,73,.92) 0%, rgba(0,38,73,.72) 45%, rgba(0,38,73,.15) 100%),
		linear-gradient(0deg, rgba(0,38,73,.55) 0%, rgba(0,38,73,0) 40%);
}
.tscx-hero__inner { position: relative; z-index: 2; }

.tscx-hero__title,
.tscx-hero__editor-content h1,
.tscx-hero__editor-content h2 {
	margin: 0 0 8px;
	max-width: 760px;
	font-family: var(--tscx-serif);
	font-weight: 700;
	font-size: clamp(2.75rem, 1.6rem + 4.6vw, 5rem);
	line-height: 1.02;
	color: var(--tscx-white);
	text-transform: none;
}
.tscx-hero__title span { color: var(--tscx-orange); }

.tscx-hero__editor-content,
.tscx-hero__editor-content p { color: var(--tscx-white); max-width: 680px; }

.tscx-hero__es {
	margin: 0 0 24px;
	font-family: var(--tscx-serif);
	font-style: italic;
	font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
	color: #ffd3a3;
}
.tscx-hero__lead {
	margin: 0 0 32px;
	max-width: 600px;
	font-size: 1.1875rem;
	line-height: 1.6;
	color: #e6edf5;
}
.tscx-hero__scroll {
	position: absolute;
	z-index: 2;
	left: 50%;
	bottom: 24px;
	transform: translateX(-50%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	color: var(--tscx-white);
	font-size: 1.25rem;
}
.tscx-hero__scroll:hover { color: var(--tscx-orange); }

/* --- 2. Quick actions ------------------------------------------------- */
.tscx-quickbar {
	position: relative;
	z-index: 3;
	margin-top: -44px;
}
.tscx-quickbar__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0;
	padding: 0;
	overflow: hidden;
	border-radius: var(--tscx-radius);
	background: var(--tscx-white);
	box-shadow: 0 18px 40px rgba(0, 38, 73, .16);
}
.tscx-quickbar .tscx-wrap { max-width: 1192px; }
.tscx-quick {
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 88px;
	padding: 18px 22px;
	border-right: 1px solid var(--tscx-line);
	color: var(--tscx-text);
	text-decoration: none;
	transition: background-color .15s ease;
}
.tscx-quick:last-child { border-right: 0; }
.tscx-quick:hover { background: var(--tscx-sand); color: var(--tscx-text); text-decoration: none; }
.tscx-quick i {
	flex: 0 0 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #e8eef5;
	color: var(--tscx-blue);
	font-size: 1.1rem;
}
.tscx-quick span { display: flex; flex-direction: column; font-size: .9375rem; color: var(--tscx-muted); line-height: 1.35; }
.tscx-quick strong { font-size: 1.0625rem; color: var(--tscx-blue); }

/* --- 2b. About / mission (Home page hero text field) ------------------- */
.tscx-about { padding: 72px 0 8px; background: var(--tscx-white); }
.tscx-about__content {
	column-count: 2;
	column-gap: 56px;
}
.tscx-about__content > * { break-inside: avoid; }
.tscx-about__content h1,
.tscx-about__content h2,
.tscx-about__content h3,
.tscx-about__content h4 {
	break-after: avoid;
	margin: 0 0 10px;
	font-family: var(--tscx-serif);
	font-size: 1.625rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0;
	text-transform: none;
	color: var(--tscx-blue);
}
.tscx-about__content p {
	margin: 0 0 20px;
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--tscx-muted);
}
.tscx-about__content > *:empty,
.tscx-about__content > p:has(> br:only-child) { display: none; }

/* --- 3. Paths --------------------------------------------------------- */
.tscx-paths { background: var(--tscx-white); }
.tscx-paths__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.tscx-path { margin: 0; }
.tscx-path a {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: var(--tscx-radius);
	background: var(--tscx-blue);
	color: var(--tscx-white);
	text-decoration: none;
	aspect-ratio: 4 / 3;
}
.tscx-path__img { position: absolute; inset: 0; }
.tscx-path__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .35s ease;
}
.tscx-path a::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(0deg, rgba(0,38,73,.92) 0%, rgba(0,38,73,.25) 55%, rgba(0,38,73,0) 100%);
}
.tscx-path a:hover .tscx-path__img img { transform: scale(1.05); }
.tscx-path__label {
	position: absolute;
	z-index: 1;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 20px 22px;
	font-family: var(--tscx-serif);
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.2;
}
.tscx-path__label i {
	flex: 0 0 auto;
	font-size: 1rem;
	color: var(--tscx-orange);
	transition: transform .2s ease;
}
.tscx-path a:hover .tscx-path__label i { transform: translateX(4px); }

/* --- 4. Program finder ------------------------------------------------ */
.tscx-finder { background: var(--tscx-blue); color: var(--tscx-white); }
.tscx-finder__layout {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	gap: 56px;
	align-items: start;
}
.tscx-search { margin: 0 0 28px; }
.tscx-search__label {
	display: block;
	margin-bottom: 8px;
	font-size: .9375rem;
	font-weight: 600;
	color: #d9e3ef;
}
.tscx-search__row { display: flex; gap: 10px; flex-wrap: wrap; }
.tscx-search input[type="search"] {
	flex: 1 1 240px;
	min-height: 52px;
	margin: 0;
	padding: 12px 18px;
	border: 2px solid transparent;
	border-radius: 999px;
	background: var(--tscx-white);
	color: var(--tscx-text);
	font-family: var(--tscx-sans);
	font-size: 1rem;
	box-shadow: none;
}
.tscx-search input[type="search"]:focus { outline: none; border-color: var(--tscx-orange); }
.tscx .tscx-search button.tscx-btn { min-height: 52px; margin: 0; border-radius: 999px; }

.tscx-finder__lists { display: grid; gap: 32px; }
.tscx-chiplist {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
}
.tscx-chiplist li { margin: 0; }
.tscx-chip {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 48px;
	padding: 10px 18px;
	border: 1px solid rgba(255,255,255,.35);
	border-radius: 999px;
	background: rgba(255,255,255,.06);
	color: var(--tscx-white);
	font-weight: 600;
	text-decoration: none;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.tscx-chip i { color: var(--tscx-orange); }
.tscx-chip:hover { background: var(--tscx-white); border-color: var(--tscx-white); color: var(--tscx-blue); text-decoration: none; }

/* --- 5. Affordability ------------------------------------------------- */
.tscx-afford { background: var(--tscx-sand); }
.tscx-afford__layout {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 56px;
	align-items: center;
}
.tscx-afford__cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.tscx-card {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 26px 22px;
	border: 1px solid var(--tscx-line);
	border-radius: var(--tscx-radius);
	background: var(--tscx-white);
}
.tscx-card > i { margin-bottom: 14px; font-size: 1.5rem; color: var(--tscx-orange-dark); }
.tscx-card p { flex: 1 1 auto; margin: 0 0 16px; font-size: .9875rem; line-height: 1.55; color: var(--tscx-muted); }

/* --- 6/7. Events & News wrappers (inner markup comes from tsc-core) --
   Events keeps the parent theme's blue band; News sits on white.        */
.tscx .tscx-events { padding: 0; }
.tscx .tscx-news { padding: 72px 0; background: var(--tscx-white); }

/* --- 7. Scorpions ----------------------------------------------------- */
.tscx-scorpions { padding: 64px 0; background: var(--tscx-blue-deep); }
.tscx-scorpions__layout {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px 48px;
}
.tscx-scorpions .tscx-sub { margin-bottom: 0; }

/* --- 9. Closing CTA --------------------------------------------------- */
.tscx-cta {
	background: var(--tscx-sand);
	border-top: 4px solid var(--tscx-orange);
	text-align: center;
}
.tscx-cta__layout { max-width: 820px; }
.tscx-cta .tscx-sub { margin-left: auto; margin-right: auto; }

/* --- Responsive ------------------------------------------------------- */
@media (max-width: 1024px) {
	.tscx-quickbar__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tscx-quick:nth-child(2) { border-right: 0; }
	.tscx-quick:nth-child(-n+2) { border-bottom: 1px solid var(--tscx-line); }
	.tscx-finder__layout,
	.tscx-afford__layout { grid-template-columns: minmax(0, 1fr); gap: 40px; }
	.tscx-paths__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tscx-about__content { column-count: 1; }
}

@media (max-width: 640px) {
	.tscx-section { padding: 64px 0; }
	.tscx-wrap { padding: 0 16px; }
	.tscx-hero { min-height: 0; padding: 120px 0 88px; }
	.tscx-hero__shade { background: linear-gradient(0deg, rgba(0,38,73,.95) 0%, rgba(0,38,73,.7) 60%, rgba(0,38,73,.45) 100%); }
	.tscx-hero .tscx-btn { flex: 1 1 100%; }
	.tscx-quickbar { margin-top: -32px; }
	.tscx-quickbar__grid { grid-template-columns: minmax(0, 1fr); }
	.tscx-quick { border-right: 0; border-bottom: 1px solid var(--tscx-line); min-height: 72px; }
	.tscx-quick:last-child { border-bottom: 0; }
	.tscx-paths__grid { grid-template-columns: minmax(0, 1fr); }
	.tscx-path a { aspect-ratio: 16 / 9; }
	.tscx-afford__cards { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
	.tscx * { transition: none !important; }
	.tscx-btn:hover,
	.tscx-path a:hover .tscx-path__img img,
	.tscx-path a:hover .tscx-path__label i { transform: none; }
}
