/* ==========================================================================
   THE SLEEP CENTER — MATTRESS PROFESSOR ARCHIVE
   ========================================================================== */

:root {
	--tsc-mp-navy: #102b4e;
	--tsc-mp-navy-deep: #081c33;
	--tsc-mp-red: #b7292f;
	--tsc-mp-red-dark: #922128;
	--tsc-mp-cream: #f7f3ec;
	--tsc-mp-white: #ffffff;
	--tsc-mp-ink: #18202a;
	--tsc-mp-muted: #5e6873;
	--tsc-mp-line: #dce2e8;
	--tsc-mp-soft: #f4f7fa;
	--tsc-mp-shadow: 0 18px 50px rgba(8, 28, 51, 0.10);
	--tsc-mp-container: 1180px;
}

.tsc-mp-page,
.tsc-mp-page *,
.tsc-mp-page *::before,
.tsc-mp-page *::after {
	box-sizing: border-box;
}


/* ==========================================================================
   GENESIS ARCHIVE RESET
   ========================================================================== */

.tsc-mattress-professor-archive .site-inner,
.tsc-mattress-professor-archive .content-sidebar-wrap,
.tsc-mattress-professor-archive .content,
.tsc-mattress-professor-archive article.entry,
.tsc-mattress-professor-archive .entry-content {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
}

.tsc-mattress-professor-archive .content > .entry {
	margin: 0;
	padding: 0;
	background: transparent;
	box-shadow: none;
}

.tsc-mp-page {
	width: 100%;
	margin: 0;
}

.tsc-mp-container {
	width: min(calc(100% - 40px), var(--tsc-mp-container));
	margin-inline: auto;
}


/* ==========================================================================
   SHARED TYPOGRAPHY / BUTTONS
   ========================================================================== */

.tsc-mp-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	margin-bottom: 1rem;
	color: var(--tsc-mp-red);
	font-size: 0.77rem;
	font-weight: 900;
	letter-spacing: 0.14em;
	line-height: 1.4;
	text-transform: uppercase;
}

.tsc-mp-eyebrow::before {
	content: "★";
	font-size: 0.72rem;
}

.tsc-mp-eyebrow--light {
	color: #ffd9dc;
}

.tsc-mp-eyebrow--white {
	color: var(--tsc-mp-white);
}

.tsc-mp-btnrow {
	display: flex;
	flex-wrap: wrap;
	gap: 0.8rem;
	margin-top: 1.8rem;
}

.tsc-mp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	padding: 0.82rem 1.3rem;
	border: 2px solid transparent;
	border-radius: 999px;
	font-size: 0.92rem;
	font-weight: 800;
	line-height: 1.2;
	text-decoration: none;
	transition:
		transform 0.2s ease,
		box-shadow 0.2s ease,
		background-color 0.2s ease;
}

.tsc-mp-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(8, 28, 51, 0.18);
}

.tsc-mp-btn--primary {
	background: var(--tsc-mp-red);
	color: var(--tsc-mp-white);
}

.tsc-mp-btn--primary:hover {
	background: var(--tsc-mp-red-dark);
	color: var(--tsc-mp-white);
}

.tsc-mp-btn--secondary {
	border-color: var(--tsc-mp-navy);
	background: var(--tsc-mp-white);
	color: var(--tsc-mp-navy);
}

.tsc-mp-btn--secondary:hover {
	color: var(--tsc-mp-navy);
}


/* ==========================================================================
   HERO
   ========================================================================== */

.tsc-mp-hero {
	position: relative;
	overflow: hidden;
	padding: clamp(76px, 8vw, 126px) 0 clamp(96px, 9vw, 148px);
	background:
		linear-gradient(90deg, rgba(8, 28, 51, 0.035) 1px, transparent 1px),
		linear-gradient(rgba(8, 28, 51, 0.035) 1px, transparent 1px),
		var(--tsc-mp-cream);
	background-size: 34px 34px;
}

.tsc-mp-hero::before,
.tsc-mp-hero::after {
	content: "";
	position: absolute;
	top: 0;
	height: 6px;
}

.tsc-mp-hero::before {
	left: 0;
	width: 58%;
	background: var(--tsc-mp-red);
}

.tsc-mp-hero::after {
	right: 0;
	width: 42%;
	background: var(--tsc-mp-navy);
}

.tsc-mp-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(350px, 0.85fr);
	align-items: center;
	gap: clamp(44px, 7vw, 90px);
}

.tsc-mp-hero__copy {
	position: relative;
	z-index: 2;
}

.tsc-mp-hero h1 {
	max-width: 720px;
	margin: 0 0 1.25rem;
	color: var(--tsc-mp-navy-deep);
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(3rem, 6vw, 5.8rem);
	line-height: 1.02;
	letter-spacing: -0.04em;
}

.tsc-mp-hero__lead {
	max-width: 700px;
	margin: 0;
	color: var(--tsc-mp-muted);
	font-size: clamp(1.08rem, 1.65vw, 1.24rem);
	line-height: 1.7;
}


/* ==========================================================================
   HERO VISUAL — BADGE SITS BELOW CARD, NEVER OVER TEXT
   ========================================================================== */

.tsc-mp-hero__visual {
	position: relative;
	min-height: 0;
	padding: 0 20px 150px 40px;
}

.tsc-mp-professor-card {
	position: relative;
	min-height: 390px;
	padding: 44px 46px;
	border-radius: 34px 34px 110px 34px;
	background:
		radial-gradient(
			circle at 80% 16%,
			rgba(255, 255, 255, 0.08) 0 3px,
			transparent 4px
		),
		radial-gradient(
			circle at 88% 27%,
			rgba(255, 255, 255, 0.08) 0 2px,
			transparent 3px
		),
		linear-gradient(
			145deg,
			var(--tsc-mp-navy-deep),
			var(--tsc-mp-navy)
		);
	box-shadow: var(--tsc-mp-shadow);
	color: var(--tsc-mp-white);
}

.tsc-mp-professor-card__kicker {
	color: #ffd9dc;
	font-size: 0.72rem;
	font-weight: 900;
	letter-spacing: 0.15em;
	text-transform: uppercase;
}

.tsc-mp-professor-card__big {
	margin: 30px 0 14px;
	color: var(--tsc-mp-white);
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(5rem, 10vw, 8.2rem);
	font-weight: 700;
	line-height: 0.85;
	letter-spacing: -0.06em;
}

.tsc-mp-professor-card h2 {
	max-width: 330px;
	margin: 0 0 0.7rem;
	color: var(--tsc-mp-white);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 2.1rem;
	line-height: 1.03;
	letter-spacing: -0.03em;
}

.tsc-mp-professor-card p {
	max-width: 330px;
	margin: 0;
	color: rgba(255, 255, 255, 0.72);
}

.tsc-mp-stamp {
	position: absolute;
	right: 0;
	bottom: 0;
	z-index: 5;

	display: flex;
	width: 132px;
	height: 132px;
	align-items: center;
	justify-content: center;

	padding: 18px;
	border: 7px solid var(--tsc-mp-cream);
	border-radius: 50%;

	background: var(--tsc-mp-red);
	box-shadow: 0 12px 30px rgba(8, 28, 51, 0.20);

	color: var(--tsc-mp-white);
	font-size: 0.66rem;
	font-weight: 900;
	letter-spacing: 0.06em;
	line-height: 1.2;
	text-align: center;
	text-transform: uppercase;
}


/* ==========================================================================
   HERO INTRO STRIP
   ========================================================================== */

.tsc-mp-intro {
	position: relative;
	z-index: 6;
	margin-top: -48px;
}

.tsc-mp-intro__panel {
	display: grid;
	grid-template-columns: 1.2fr 1fr 1fr;
	overflow: hidden;
	border: 1px solid rgba(8, 28, 51, 0.08);
	border-radius: 22px;
	background: var(--tsc-mp-white);
	box-shadow: var(--tsc-mp-shadow);
}

.tsc-mp-intro__item {
	padding: 1.65rem 1.9rem;
}

.tsc-mp-intro__item + .tsc-mp-intro__item {
	border-left: 1px solid var(--tsc-mp-line);
}

.tsc-mp-intro__label {
	display: block;
	margin-bottom: 0.35rem;
	color: var(--tsc-mp-red);
	font-size: 0.68rem;
	font-weight: 900;
	letter-spacing: 0.13em;
	text-transform: uppercase;
}

.tsc-mp-intro strong {
	display: block;
	color: var(--tsc-mp-navy-deep);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.35rem;
	line-height: 1.15;
}


/* ==========================================================================
   COURSE SECTION
   ========================================================================== */

.tsc-mp-section {
	padding: clamp(82px, 8vw, 126px) 0;
}

.tsc-mp-section--soft {
	background: var(--tsc-mp-soft);
}

.tsc-mp-section__head {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 2rem;
	margin-bottom: 2.6rem;
}

.tsc-mp-section__head > div {
	max-width: 760px;
}

.tsc-mp-section h2,
.tsc-mp-glossary h2,
.tsc-mp-final h2 {
	color: var(--tsc-mp-navy-deep);
	font-family: Georgia, "Times New Roman", serif;
	line-height: 1.06;
	letter-spacing: -0.03em;
}

.tsc-mp-section h2 {
	margin: 0 0 0.95rem;
	font-size: clamp(2.3rem, 4vw, 3.7rem);
}

.tsc-mp-section__lead {
	max-width: 760px;
	margin: 0;
	color: var(--tsc-mp-muted);
	font-size: 1.08rem;
}

.tsc-mp-course-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.3rem;
}

.tsc-mp-card {
	position: relative;
	display: flex;
	min-height: 335px;
	flex-direction: column;
	overflow: hidden;
	padding: 1.8rem;
	border: 1px solid var(--tsc-mp-line);
	border-radius: 20px;
	background: var(--tsc-mp-white);
	box-shadow: 0 10px 30px rgba(8, 28, 51, 0.05);
}

.tsc-mp-card::after {
	content: attr(data-course);
	position: absolute;
	top: -16px;
	right: 12px;
	color: rgba(16, 43, 78, 0.045);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 7.4rem;
	font-weight: 700;
	line-height: 1;
	pointer-events: none;
}

.tsc-mp-card__num {
	position: relative;
	z-index: 1;
	display: inline-flex;
	width: 48px;
	height: 48px;
	align-items: center;
	justify-content: center;
	margin-bottom: 1.5rem;
	border-radius: 50%;
	background: rgba(183, 41, 47, 0.09);
	color: var(--tsc-mp-red);
	font-size: 0.78rem;
	font-weight: 900;
	letter-spacing: 0.08em;
}

.tsc-mp-card h3 {
	position: relative;
	z-index: 1;
	margin: 0 0 0.8rem;
	color: var(--tsc-mp-navy-deep);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.55rem;
	line-height: 1.08;
	letter-spacing: -0.02em;
}

.tsc-mp-card h3 a {
	color: inherit;
	text-decoration: none;
}

.tsc-mp-card p {
	position: relative;
	z-index: 1;
	margin: 0;
	color: var(--tsc-mp-muted);
	font-size: 0.95rem;
}

.tsc-mp-card__link {
	position: relative;
	z-index: 1;
	margin-top: auto;
	padding-top: 1.4rem;
	color: var(--tsc-mp-navy);
	font-size: 0.78rem;
	font-weight: 900;
	letter-spacing: 0.08em;
	text-decoration: none;
	text-transform: uppercase;
}

.tsc-mp-card__link::after {
	content: " →";
	color: var(--tsc-mp-red);
}

.tsc-mp-card--feature {
	grid-column: span 2;
	min-height: 280px;
	border-color: transparent;
	background: linear-gradient(135deg, var(--tsc-mp-navy-deep), var(--tsc-mp-navy));
}

.tsc-mp-card--feature::after {
	color: rgba(255, 255, 255, 0.06);
}

.tsc-mp-card--feature .tsc-mp-card__num {
	background: rgba(255, 255, 255, 0.10);
	color: #ffd9dc;
}

.tsc-mp-card--feature h3 {
	color: var(--tsc-mp-white);
	font-size: 1.9rem;
}

.tsc-mp-card--feature p {
	max-width: 650px;
	color: rgba(255, 255, 255, 0.72);
}

.tsc-mp-card--feature .tsc-mp-card__link {
	color: var(--tsc-mp-white);
}

.tsc-mp-mini-guide {
	display: flex;
	min-height: 280px;
	flex-direction: column;
	justify-content: space-between;
	padding: 1.8rem;
	border: 1px solid rgba(183, 41, 47, 0.20);
	border-radius: 20px;
	background: var(--tsc-mp-cream);
}

.tsc-mp-mini-guide__icon {
	display: grid;
	width: 48px;
	height: 48px;
	place-items: center;
	border-radius: 50%;
	background: var(--tsc-mp-red);
	color: var(--tsc-mp-white);
	font-weight: 900;
}

.tsc-mp-mini-guide h3 {
	margin: 1.4rem 0 0.7rem;
	color: var(--tsc-mp-navy-deep);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.55rem;
	line-height: 1.08;
}

.tsc-mp-mini-guide p {
	margin: 0;
	color: var(--tsc-mp-muted);
	font-size: 0.95rem;
}


/* ==========================================================================
   GLOSSARY
   ========================================================================== */

.tsc-mp-glossary {
	padding: clamp(72px, 7vw, 108px) 0;
	background: var(--tsc-mp-cream);
}

.tsc-mp-glossary__panel {
	position: relative;
	display: grid;
	grid-template-columns: 0.7fr 1.3fr;
	align-items: center;
	gap: clamp(34px, 6vw, 80px);
	overflow: hidden;
	padding: clamp(38px, 6vw, 70px);
	border-radius: 30px;
	background: var(--tsc-mp-navy-deep);
	color: var(--tsc-mp-white);
}

.tsc-mp-glossary__panel::after {
	content: "A–Z";
	position: absolute;
	right: 20px;
	bottom: -35px;
	color: rgba(255, 255, 255, 0.05);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 10rem;
	font-weight: 700;
	line-height: 1;
}

.tsc-mp-glossary__mark {
	display: grid;
	width: min(100%, 260px);
	aspect-ratio: 1;
	place-items: center;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 28px 28px 80px 28px;
	background: rgba(255, 255, 255, 0.05);
	color: var(--tsc-mp-white);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 4.3rem;
	font-weight: 700;
	line-height: 1;
}

.tsc-mp-glossary h2 {
	position: relative;
	z-index: 1;
	margin: 0 0 1rem;
	color: var(--tsc-mp-white);
	font-size: clamp(2.2rem, 4vw, 3.7rem);
}

.tsc-mp-glossary p {
	position: relative;
	z-index: 1;
	max-width: 680px;
	margin: 0;
	color: rgba(255, 255, 255, 0.72);
	font-size: 1.06rem;
}

.tsc-mp-glossary .tsc-mp-btnrow {
	position: relative;
	z-index: 1;
}


/* ==========================================================================
   THREE-STEP PATH
   ========================================================================== */

.tsc-mp-path {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
	margin-top: 2.7rem;
}

.tsc-mp-path__step {
	padding: 1.7rem 1.5rem;
	border-top: 4px solid var(--tsc-mp-red);
	background: var(--tsc-mp-white);
}

.tsc-mp-path__step strong {
	display: block;
	margin-bottom: 0.4rem;
	color: var(--tsc-mp-navy-deep);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.25rem;
	line-height: 1.15;
}

.tsc-mp-path__step p {
	margin: 0;
	color: var(--tsc-mp-muted);
	font-size: 0.92rem;
}


/* ==========================================================================
   FINAL CTA
   ========================================================================== */

.tsc-mp-final {
	padding: clamp(72px, 7vw, 110px) 0;
}

.tsc-mp-final__panel {
	position: relative;
	overflow: hidden;
	padding: clamp(42px, 6vw, 72px);
	border-radius: 30px;
	background: var(--tsc-mp-red);
	color: var(--tsc-mp-white);
}

.tsc-mp-final__panel::after {
	content: "★";
	position: absolute;
	top: -65px;
	right: 32px;
	color: rgba(255, 255, 255, 0.10);
	font-size: 13rem;
	line-height: 1;
	transform: rotate(14deg);
}

.tsc-mp-final h2 {
	position: relative;
	z-index: 1;
	max-width: 800px;
	margin: 0 0 1rem;
	color: var(--tsc-mp-white);
	font-size: clamp(2.2rem, 4vw, 3.7rem);
}

.tsc-mp-final p {
	position: relative;
	z-index: 1;
	max-width: 760px;
	margin: 0;
	color: rgba(255, 255, 255, 0.84);
}

.tsc-mp-final .tsc-mp-btnrow {
	position: relative;
	z-index: 1;
}


/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 900px) {

	.tsc-mp-hero__grid,
	.tsc-mp-glossary__panel {
		grid-template-columns: 1fr;
	}

	.tsc-mp-hero__visual {
		padding: 0 20px 145px 20px;
	}

	.tsc-mp-professor-card {
		min-height: 380px;
	}

	.tsc-mp-stamp {
		right: 0;
		bottom: 0;
	}

	.tsc-mp-intro__panel {
		grid-template-columns: 1fr;
	}

	.tsc-mp-intro__item + .tsc-mp-intro__item {
		border-top: 1px solid var(--tsc-mp-line);
		border-left: 0;
	}

	.tsc-mp-course-grid {
		grid-template-columns: 1fr 1fr;
	}

	.tsc-mp-card--feature {
		grid-column: span 2;
	}

	.tsc-mp-path {
		grid-template-columns: 1fr;
	}

	.tsc-mp-glossary__mark {
		width: 220px;
	}
}


@media (max-width: 620px) {

	.tsc-mp-container {
		width: min(calc(100% - 28px), var(--tsc-mp-container));
	}

	.tsc-mp-hero {
		padding-top: 58px;
	}

	.tsc-mp-hero h1 {
		font-size: clamp(2.6rem, 13vw, 4.2rem);
	}

	.tsc-mp-hero__visual {
		padding: 0 0 125px 0;
	}

	.tsc-mp-professor-card {
		min-height: 0;
		padding: 30px 28px;
		border-radius: 26px 26px 76px 26px;
	}

	.tsc-mp-professor-card__big {
		font-size: 5.4rem;
	}

	.tsc-mp-professor-card h2 {
		font-size: 1.8rem;
	}

	.tsc-mp-stamp {
		right: 0;
		bottom: 0;
		width: 108px;
		height: 108px;
		padding: 12px;
		border-width: 5px;
		font-size: 0.57rem;
	}

	.tsc-mp-course-grid {
		grid-template-columns: 1fr;
	}

	.tsc-mp-card--feature {
		grid-column: span 1;
	}

	.tsc-mp-section__head {
		display: block;
	}

	.tsc-mp-btnrow {
		display: grid;
		grid-template-columns: 1fr;
	}

	.tsc-mp-btn {
		width: 100%;
	}
}
