/* ==========================================================================
   THE SLEEP CENTER — ARTICLES / ARCHIVES
   ========================================================================== */

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

.tsc-articles,
.tsc-single-article,
.tsc-articles *,
.tsc-single-article *,
.tsc-articles *::before,
.tsc-articles *::after,
.tsc-single-article *::before,
.tsc-single-article *::after {
	box-sizing: border-box;
}


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

.tsc-articles-page .site-inner,
.tsc-article-archive-page .site-inner,
.tsc-article-single-page .site-inner,
.tsc-articles-page .content-sidebar-wrap,
.tsc-article-archive-page .content-sidebar-wrap,
.tsc-article-single-page .content-sidebar-wrap,
.tsc-articles-page .content,
.tsc-article-archive-page .content,
.tsc-article-single-page .content {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
}

.tsc-articles-page .sidebar,
.tsc-article-archive-page .sidebar,
.tsc-article-single-page .sidebar {
	display: none;
}

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


/* ==========================================================================
   SHARED ELEMENTS
   ========================================================================== */

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

.tsc-articles-eyebrow::before {
	content: "★";
	font-size: 0.7rem;
}

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

.tsc-articles-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	padding: 0.82rem 1.35rem;
	border: 2px solid transparent;
	border-radius: 999px;
	font-size: 0.9rem;
	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-articles-btn:hover,
.tsc-articles-btn:focus {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(8, 28, 51, 0.16);
	text-decoration: none;
}

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

.tsc-articles-btn--primary:hover,
.tsc-articles-btn--primary:focus {
	background: var(--tsc-art-red-dark);
	color: var(--tsc-art-white);
}

.tsc-articles-btn--white {
	background: var(--tsc-art-white);
	color: var(--tsc-art-red-dark);
}

.tsc-articles-btn--white:hover,
.tsc-articles-btn--white:focus {
	color: var(--tsc-art-red-dark);
}

.tsc-articles-section-head {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 2rem;
	margin-bottom: 2rem;
}

.tsc-articles-section-head h2 {
	margin: 0;
	color: var(--tsc-art-navy-deep);
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(2rem, 3.6vw, 3.2rem);
	line-height: 1.05;
	letter-spacing: -0.03em;
}


/* ==========================================================================
   MAIN ARTICLES HERO
   ========================================================================== */

.tsc-articles-hero,
.tsc-archive-hero {
	position: relative;
	overflow: hidden;
	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-art-cream);
	background-size: 34px 34px;
}

.tsc-articles-hero {
	padding: clamp(76px, 8vw, 124px) 0 clamp(78px, 8vw, 118px);
}

.tsc-archive-hero {
	padding: clamp(62px, 7vw, 98px) 0;
}

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

.tsc-articles-hero::before,
.tsc-archive-hero::before {
	left: 0;
	width: 58%;
	background: var(--tsc-art-red);
}

.tsc-articles-hero::after,
.tsc-archive-hero::after {
	right: 0;
	width: 42%;
	background: var(--tsc-art-navy);
}

.tsc-articles-hero h1,
.tsc-archive-hero h1 {
	max-width: 850px;
	margin: 0 0 1.15rem;
	color: var(--tsc-art-navy-deep);
	font-family: Georgia, "Times New Roman", serif;
	font-weight: 700;
	line-height: 1.02;
	letter-spacing: -0.04em;
}

.tsc-articles-hero h1 {
	font-size: clamp(3rem, 6vw, 5.5rem);
}

.tsc-archive-hero h1 {
	font-size: clamp(2.7rem, 5vw, 4.5rem);
}

.tsc-articles-hero p,
.tsc-archive-hero p,
.tsc-archive-hero__description {
	max-width: 760px;
	margin: 0;
	color: var(--tsc-art-muted);
	font-size: clamp(1.05rem, 1.6vw, 1.2rem);
	line-height: 1.7;
}

.tsc-archive-hero__description p {
	margin: 0;
}


/* ==========================================================================
   FEATURED ARTICLE
   ========================================================================== */

.tsc-articles-feature {
	padding: clamp(68px, 7vw, 104px) 0;
	background: var(--tsc-art-white);
}

.tsc-featured-article {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	overflow: hidden;
	border: 1px solid rgba(8, 28, 51, 0.08);
	border-radius: 28px;
	background: var(--tsc-art-white);
	box-shadow: var(--tsc-art-shadow);
}

.tsc-featured-article__image {
	display: block;
	min-height: 480px;
	overflow: hidden;
	background: var(--tsc-art-navy-deep);
	text-decoration: none;
}

.tsc-featured-article__image img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 480px;
	object-fit: cover;
}

.tsc-featured-article__fallback {
	display: flex;
	width: 100%;
	height: 100%;
	min-height: 480px;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 2rem;
	background:
		radial-gradient(circle at 75% 20%, rgba(255,255,255,0.08) 0 4px, transparent 5px),
		linear-gradient(145deg, var(--tsc-art-navy-deep), var(--tsc-art-navy));
	color: var(--tsc-art-white);
	text-align: center;
}

.tsc-featured-article__fallback span {
	margin-bottom: 0.45rem;
	color: #ffd9dc;
	font-size: 0.72rem;
	font-weight: 900;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.tsc-featured-article__fallback strong {
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(2rem, 4vw, 3.3rem);
	line-height: 1.05;
}

.tsc-featured-article__body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: clamp(34px, 5vw, 62px);
}

.tsc-featured-article__category,
.tsc-article-card__category {
	display: inline-block;
	align-self: flex-start;
	color: var(--tsc-art-red);
	font-size: 0.72rem;
	font-weight: 900;
	letter-spacing: 0.1em;
	text-decoration: none;
	text-transform: uppercase;
}

.tsc-featured-article h2 {
	margin: 0.8rem 0 0.7rem;
	color: var(--tsc-art-navy-deep);
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(2.1rem, 4vw, 3.25rem);
	line-height: 1.06;
	letter-spacing: -0.03em;
}

.tsc-featured-article h2 a {
	color: inherit;
	text-decoration: none;
}

.tsc-featured-article__date,
.tsc-article-card__date {
	color: #7b858f;
	font-size: 0.78rem;
	font-weight: 700;
}

.tsc-featured-article__body > p {
	margin: 1.15rem 0 1.55rem;
	color: var(--tsc-art-muted);
	font-size: 1rem;
	line-height: 1.72;
}


/* ==========================================================================
   ARTICLE GRID / CARDS
   ========================================================================== */

.tsc-articles-list {
	padding: clamp(72px, 7vw, 110px) 0;
	background: var(--tsc-art-soft);
}

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

.tsc-article-card {
	display: flex;
	min-width: 0;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid rgba(8, 28, 51, 0.08);
	border-radius: 20px;
	background: var(--tsc-art-white);
	box-shadow: 0 10px 30px rgba(8, 28, 51, 0.055);
	transition:
		transform 0.2s ease,
		box-shadow 0.2s ease;
}

.tsc-article-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 16px 38px rgba(8, 28, 51, 0.09);
}

.tsc-article-card__image {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--tsc-art-navy);
	text-decoration: none;
}

.tsc-article-card__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.tsc-article-card:hover .tsc-article-card__image img {
	transform: scale(1.025);
}

.tsc-article-card__fallback {
	display: flex;
	width: 100%;
	height: 100%;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
	background:
		linear-gradient(135deg, var(--tsc-art-navy-deep), var(--tsc-art-navy));
	color: var(--tsc-art-white);
	text-align: center;
}

.tsc-article-card__fallback span {
	margin-bottom: 0.3rem;
	color: #ffd9dc;
	font-size: 0.65rem;
	font-weight: 900;
	letter-spacing: 0.13em;
	text-transform: uppercase;
}

.tsc-article-card__fallback strong {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.7rem;
}

.tsc-article-card__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	padding: 1.55rem 1.55rem 1.65rem;
}

.tsc-article-card__title {
	margin: 0.65rem 0 0.55rem;
	color: var(--tsc-art-navy-deep);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.48rem;
	line-height: 1.12;
	letter-spacing: -0.02em;
}

.tsc-article-card__title a {
	color: inherit;
	text-decoration: none;
}

.tsc-article-card__excerpt {
	margin: 1rem 0 0;
	color: var(--tsc-art-muted);
	font-size: 0.93rem;
	line-height: 1.65;
}

.tsc-article-card__link {
	margin-top: auto;
	padding-top: 1.25rem;
	color: var(--tsc-art-navy);
	font-size: 0.74rem;
	font-weight: 900;
	letter-spacing: 0.09em;
	text-decoration: none;
	text-transform: uppercase;
}

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


/* ==========================================================================
   PAGINATION
   ========================================================================== */

.tsc-articles-pagination {
	margin-top: clamp(40px, 5vw, 64px);
}

.tsc-articles-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
}

.tsc-articles-pagination .page-numbers {
	display: inline-flex;
	min-width: 42px;
	min-height: 42px;
	align-items: center;
	justify-content: center;
	padding: 0.55rem 0.75rem;
	border: 1px solid var(--tsc-art-line);
	border-radius: 999px;
	background: var(--tsc-art-white);
	color: var(--tsc-art-navy);
	font-size: 0.82rem;
	font-weight: 800;
	text-decoration: none;
}

.tsc-articles-pagination .page-numbers.current {
	border-color: var(--tsc-art-red);
	background: var(--tsc-art-red);
	color: var(--tsc-art-white);
}

.tsc-articles-pagination .prev,
.tsc-articles-pagination .next {
	padding-inline: 1rem;
}


/* ==========================================================================
   META
   ========================================================================== */

.tsc-article-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
	color: var(--tsc-art-muted);
	font-size: 0.8rem;
	font-weight: 700;
}

.tsc-article-meta a {
	color: var(--tsc-art-red);
	text-decoration: none;
}


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

@media (max-width: 980px) {

	.tsc-featured-article {
		grid-template-columns: 1fr;
	}

	.tsc-featured-article__image,
	.tsc-featured-article__image img,
	.tsc-featured-article__fallback {
		min-height: 360px;
	}

	.tsc-article-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 680px) {

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

	.tsc-articles-hero {
		padding-top: 60px;
	}

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

	.tsc-featured-article {
		border-radius: 20px;
	}

	.tsc-featured-article__image,
	.tsc-featured-article__image img,
	.tsc-featured-article__fallback {
		min-height: 260px;
	}

	.tsc-featured-article__body {
		padding: 28px 24px 32px;
	}

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

	.tsc-articles-section-head {
		display: block;
	}
}
