:root {
	--elv-article-ink: #142220;
	--elv-article-muted: #66716f;
	--elv-article-teal: #0b7774;
	--elv-article-teal-dark: #075c5a;
	--elv-article-gold: #e4b51b;
	--elv-article-paper: #f7f5ef;
	--elv-article-border: rgba(20, 34, 32, 0.13);
	--elv-article-shadow: 0 18px 50px rgba(15, 35, 32, 0.08);
}

body.elv-modern-departments-post,
body.elv-modern-departments-archive {
	color: var(--elv-article-ink);
	font-family: "Noto Serif", Georgia, serif;
}

body.elv-modern-departments-post .hero-section[data-type="type-2"] {
	height: clamp(430px, 46vw, 560px) !important;
	min-height: 0 !important;
	padding-top: 84px !important;
}

body.elv-modern-departments-post .hero-section .entry-header {
	width: min(900px, calc(100% - 48px));
	max-width: 900px;
	padding-block: 48px 40px;
}

body.elv-modern-departments-post .hero-section .page-title {
	max-width: 850px;
	margin-inline: auto;
	font-size: clamp(38px, 5.1vw, 66px);
	font-weight: 500;
	letter-spacing: -0.035em;
	line-height: 1.07;
	text-wrap: balance;
}

body.elv-modern-departments-post .hero-section .page-description,
body.elv-modern-departments-post .hero-section .meta-author {
	display: none !important;
}

body.elv-modern-departments-post .hero-section .entry-meta {
	margin-bottom: 18px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

body.elv-modern-departments-post .hero-section .ct-breadcrumbs {
	max-width: 760px;
	margin: 24px auto 0;
	font-size: 11px;
	line-height: 1.55;
	opacity: 0.86;
}

body.elv-modern-departments-post
	main
	> .ct-container-full[data-content="narrow"] {
	padding: clamp(48px, 6vw, 84px) clamp(18px, 4vw, 48px);
	background:
		linear-gradient(180deg, rgba(11, 119, 116, 0.035), transparent 230px),
		#fff;
}

body.elv-modern-departments-post .entry-content {
	width: min(1160px, 100%);
	max-width: 1160px !important;
	margin-inline: auto;
}

.elv-department-intro {
	margin: 0 0 24px;
	padding: clamp(24px, 4vw, 38px);
	border: 1px solid rgba(11, 119, 116, 0.2);
	border-left: 5px solid var(--elv-article-gold);
	border-radius: 16px;
	background: linear-gradient(135deg, #f0f8f6, #fff);
	box-shadow: var(--elv-article-shadow);
}

.elv-department-intro h2 {
	margin: 0;
	color: var(--elv-article-ink);
	font-size: clamp(21px, 2.2vw, 30px);
	font-weight: 600;
	line-height: 1.45;
}

.elv-department-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.elv-department-card {
	position: relative;
	min-width: 0;
	padding: clamp(24px, 3vw, 34px);
	overflow: hidden;
	border: 1px solid var(--elv-article-border);
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 10px 34px rgba(15, 35, 32, 0.055);
	transition:
		transform 180ms ease,
		border-color 180ms ease,
		box-shadow 180ms ease;
}

.elv-department-card::before {
	position: absolute;
	top: 0;
	left: 0;
	width: 72px;
	height: 4px;
	border-radius: 0 0 3px;
	background: var(--elv-article-gold);
	content: "";
}

.elv-department-card:hover {
	transform: translateY(-3px);
	border-color: rgba(11, 119, 116, 0.34);
	box-shadow: var(--elv-article-shadow);
}

.elv-department-card--primary {
	grid-column: 1 / -1;
	background:
		linear-gradient(120deg, rgba(11, 119, 116, 0.08), transparent 70%),
		#fff;
}

.elv-department-card h2 {
	margin: 0 0 16px;
	color: var(--elv-article-teal-dark);
	font-family: "Noto Serif", Georgia, serif;
	font-size: clamp(19px, 2vw, 24px);
	font-weight: 650;
	line-height: 1.35;
	text-wrap: balance;
}

.elv-department-card h2 strong {
	font-weight: inherit;
}

.elv-department-card p {
	margin: 7px 0 0;
	color: var(--elv-article-muted);
	font-size: 15px;
	line-height: 1.72;
}

.elv-department-card p + p {
	padding-top: 5px;
	border-top: 1px dashed rgba(20, 34, 32, 0.11);
}

.elv-modern-table-layout {
	padding: clamp(18px, 3vw, 30px);
	border: 1px solid var(--elv-article-border);
	border-radius: 18px;
	background: #fff;
	box-shadow: var(--elv-article-shadow);
}

.elv-modern-table-layout > p:empty {
	display: none;
}

.elv-table-scroll {
	max-width: 100%;
	overflow-x: auto;
	border: 1px solid var(--elv-article-border);
	border-radius: 12px;
	background: #fff;
	scrollbar-color: var(--elv-article-teal) var(--elv-article-paper);
}

.elv-table-scroll:focus-visible {
	outline: 3px solid rgba(11, 119, 116, 0.25);
	outline-offset: 3px;
}

.elv-modern-table {
	width: 100% !important;
	min-width: 840px;
	margin: 0 !important;
	border: 0 !important;
	border-collapse: separate !important;
	border-spacing: 0 !important;
	color: var(--elv-article-ink);
	font-family: "Noto Serif", Georgia, serif;
	font-size: 14px;
	line-height: 1.55;
}

.elv-modern-table tr:nth-child(even) td {
	background: rgba(11, 119, 116, 0.035);
}

.elv-modern-table td,
.elv-modern-table th {
	height: auto !important;
	padding: 15px 17px !important;
	border-width: 0 1px 1px 0 !important;
	border-color: var(--elv-article-border) !important;
	vertical-align: top !important;
}

.elv-modern-table tr:last-child td {
	border-bottom: 0 !important;
}

.elv-modern-table td:last-child,
.elv-modern-table th:last-child {
	border-right: 0 !important;
}

.elv-modern-table tr:first-child td,
.elv-modern-table tr:first-child th {
	background: var(--elv-article-teal-dark) !important;
	color: #fff !important;
	font-size: 16px;
}

.elv-modern-table strong {
	color: inherit;
	font-weight: 750;
}

body.elv-modern-departments-archive .hero-section[data-type="type-2"] {
	padding: 76px 0 50px;
	background:
		linear-gradient(135deg, rgba(11, 119, 116, 0.98), rgba(7, 92, 90, 0.92)),
		var(--elv-article-teal-dark);
}

body.elv-modern-departments-archive .hero-section .page-title {
	color: #fff;
	font-size: clamp(40px, 5vw, 62px);
	font-weight: 500;
	letter-spacing: -0.035em;
}

body.elv-modern-departments-archive .hero-section .ct-title-label {
	display: block;
	margin-bottom: 10px;
	color: var(--elv-article-gold);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.13em;
	text-transform: uppercase;
}

body.elv-modern-departments-archive main > .ct-container {
	padding-top: clamp(42px, 6vw, 78px);
	padding-bottom: clamp(70px, 8vw, 105px);
}

body.elv-modern-departments-archive .entries {
	gap: 24px;
}

body.elv-modern-departments-archive .entry-card {
	overflow: hidden;
	border: 1px solid var(--elv-article-border);
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 12px 36px rgba(15, 35, 32, 0.07);
	transition:
		transform 180ms ease,
		box-shadow 180ms ease;
}

body.elv-modern-departments-archive .entry-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--elv-article-shadow);
}

body.elv-modern-departments-archive .entry-card .ct-media-container {
	aspect-ratio: 16 / 10;
}

body.elv-modern-departments-archive .entry-card .ct-media-container img {
	transition: transform 450ms ease;
}

body.elv-modern-departments-archive
	.entry-card:hover
	.ct-media-container
	img {
	transform: scale(1.035);
}

body.elv-modern-departments-archive .entry-card .entry-title {
	font-size: clamp(22px, 2.2vw, 28px);
	line-height: 1.26;
}

body.elv-modern-departments-archive .entry-card .entry-title a:hover {
	color: var(--elv-article-teal);
}

body.elv-modern-departments-archive .entry-card .entry-excerpt {
	display: -webkit-box;
	overflow: hidden;
	color: var(--elv-article-muted);
	font-size: 14px;
	line-height: 1.65;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

body.elv-modern-departments-archive .entry-card .meta-categories {
	color: var(--elv-article-teal);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

body.elv-modern-departments-archive .entry-card .meta-author {
	display: none !important;
}

@media (max-width: 880px) {
	.elv-department-grid {
		grid-template-columns: 1fr;
	}

	.elv-department-card--primary {
		grid-column: auto;
	}
}

@media (max-width: 689px) {
	body.elv-modern-departments-post .hero-section[data-type="type-2"] {
		height: 410px !important;
		padding-top: 70px !important;
	}

	body.elv-modern-departments-post .hero-section .entry-header {
		width: min(100% - 32px, 680px);
		padding-block: 34px 24px;
	}

	body.elv-modern-departments-post .hero-section .page-title {
		font-size: clamp(34px, 10vw, 46px);
	}

	body.elv-modern-departments-post .hero-section .ct-breadcrumbs {
		display: none;
	}

	body.elv-modern-departments-post
		main
		> .ct-container-full[data-content="narrow"] {
		padding-inline: 14px;
	}

	.elv-department-card,
	.elv-department-intro {
		padding: 23px 20px;
		border-radius: 13px;
	}

	.elv-modern-table-layout {
		padding: 12px;
		border-radius: 14px;
	}

	.elv-modern-table {
		font-size: 13px;
	}

	body.elv-modern-departments-archive .hero-section[data-type="type-2"] {
		padding: 60px 0 38px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.elv-department-card,
	body.elv-modern-departments-archive .entry-card,
	body.elv-modern-departments-archive .entry-card .ct-media-container img {
		transition: none;
	}
}
