/**
 * Layout — container, section, grid primitives.
 */

.evde-container {
	width: 100%;
	max-width: var(--evde-container);
	margin-inline: auto;
	padding-inline: var(--evde-gutter);
}
.evde-container--narrow { max-width: var(--evde-container-narrow); }
.evde-container--wide   { max-width: var(--evde-container-wide); }

.evde-section {
	padding-block: var(--evde-section-py);
	position: relative;
}

.evde-section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.evde-section--flush { padding-block: 0; }
.evde-section--brand {
	background: var(--evde-grad-brand);
	color: var(--evde-text-invert);
}
.evde-section--brand h1,
.evde-section--brand h2,
.evde-section--brand h3,
.evde-section--brand h4 {
	color: var(--evde-text-invert);
}
.evde-section--soft { background: var(--evde-surface); }
.evde-section--bg   { background: var(--evde-bg); }

.evde-section__head {
	text-align: center;
	max-width: 720px;
	margin-inline: auto;
	margin-bottom: var(--evde-sp-10);
}
.evde-section__eyebrow {
	display: inline-block;
	font-size: var(--evde-fs-sm);
	font-weight: var(--evde-fw-bold);
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--evde-accent-700);
	margin-bottom: var(--evde-sp-3);
}
.evde-section--brand .evde-section__eyebrow { color: var(--evde-accent-300); }
.evde-section__title {
	margin: 0 0 var(--evde-sp-3) 0;
	font-size: clamp(1.75rem, 2.6vw + 0.5rem, 2.6rem);
}
.evde-section__lead {
	font-size: var(--evde-fs-lg);
	color: var(--evde-text-muted);
	max-width: 62ch;
	margin-inline: auto;
}
.evde-section--brand .evde-section__lead { color: rgba(255, 255, 255, 0.86); }

.evde-section--editorial {
	background:
		radial-gradient(circle at top left, rgba(201, 166, 107, 0.10), transparent 34%),
		linear-gradient(180deg, #fffdfa 0%, #f8f4ed 100%);
}

.evde-editorial-head {
	display: grid;
	gap: var(--evde-sp-8);
	align-items: end;
	margin-bottom: var(--evde-sp-10);
}

.evde-editorial-head__intro {
	max-width: 52rem;
}

.evde-editorial-head__aside {
	padding: var(--evde-sp-6);
	border: 1px solid var(--evde-border);
	border-radius: var(--evde-r-xl);
	background: rgba(255, 255, 255, 0.9);
	box-shadow: var(--evde-shadow-sm);
}

.evde-editorial-head__aside p {
	margin: 0 0 var(--evde-sp-4);
	color: var(--evde-text-muted);
	line-height: 1.7;
}

@media (min-width: 1024px) {
	.evde-editorial-head {
		grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
	}
}

.evde-about__title {
	font-size: clamp(1.9rem, 2.8vw + 0.4rem, 3.1rem);
	line-height: 1.08;
	margin: 0;
}

.evde-about__lead {
	margin-top: var(--evde-sp-4);
	color: var(--evde-text-muted);
	font-size: var(--evde-fs-lg);
}

.evde-about__body p {
	margin: 0;
	color: var(--evde-text-muted);
	line-height: 1.75;
}

.evde-articles {
	background: linear-gradient(180deg, #fcfaf6 0%, #f3f7fb 100%);
}

.evde-regions {
	background: linear-gradient(180deg, #fff 0%, #f7fbff 100%);
}

.evde-editorial-head--regions .evde-editorial-head__aside {
	background: linear-gradient(180deg, #0f2238 0%, #17324f 100%);
	border-color: rgba(255,255,255,0.08);
}

.evde-editorial-head--regions .evde-editorial-head__aside p {
	color: rgba(255,255,255,0.82);
}

.evde-editorial-head--regions .evde-editorial-head__aside .evde-btn {
	color: #fff;
	border-color: rgba(255,255,255,0.18);
}

.evde-editorial-head--regions .evde-editorial-head__aside .evde-btn:hover {
	background: rgba(255,255,255,0.08);
}

.evde-services__grid {
	align-items: stretch;
}

.evde-regions__grid {
	margin-top: var(--evde-sp-8);
}

/* Grid utilities */
.evde-grid {
	display: grid;
	gap: var(--evde-sp-6);
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.evde-grid--2 { grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); }
.evde-grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.evde-grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

@media (min-width: 768px) {
	.evde-grid--2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
	.evde-grid--3 { grid-template-columns: repeat(3, 1fr); }
	.evde-grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.evde-split {
	display: grid;
	gap: var(--evde-sp-10);
	align-items: center;
}
@media (min-width: 900px) {
	.evde-split { grid-template-columns: 1.05fr 1fr; gap: var(--evde-sp-16); }
	.evde-split--reverse > *:first-child { order: 2; }
}

/* Stack */
.evde-stack > * + * { margin-top: var(--evde-sp-4); }
.evde-stack--sm > * + * { margin-top: var(--evde-sp-2); }
.evde-stack--lg > * + * { margin-top: var(--evde-sp-6); }
.evde-stack--xl > * + * { margin-top: var(--evde-sp-10); }

/* Cluster (flex-based inline group) */
.evde-cluster {
	display: flex;
	flex-wrap: wrap;
	gap: var(--evde-sp-3);
	align-items: center;
}

/* Section separator decorative divider */
.evde-divider {
	display: block;
	width: 72px;
	height: 4px;
	border-radius: var(--evde-r-pill);
	background: var(--evde-grad-accent);
	margin: var(--evde-sp-3) auto var(--evde-sp-6);
}

/* Main content frame when sidebar coexists */
.evde-with-sidebar {
	display: grid;
	gap: var(--evde-sp-10);
}
@media (min-width: 960px) {
	.evde-with-sidebar { grid-template-columns: 1fr 320px; }
}

/* Page header (inner pages) */
.evde-page-head {
	background: var(--evde-grad-brand);
	color: var(--evde-text-invert);
	padding-block: var(--evde-sp-16);
	position: relative;
	overflow: hidden;
}
.evde-page-head::after {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(1200px 500px at top right, rgba(0, 181, 173, 0.20), transparent 60%);
	pointer-events: none;
}
.evde-page-head__inner { position: relative; z-index: 1; }
.evde-page-head__title { color: #fff; margin: 0; }
.evde-page-head__breadcrumb { margin-top: var(--evde-sp-3); font-size: var(--evde-fs-sm); color: rgba(255,255,255,0.85); }
.evde-page-head__breadcrumb .evde-breadcrumb a { color: var(--evde-accent-200); text-decoration: none; }
.evde-page-head__breadcrumb .evde-breadcrumb a:hover { color: #fff; }
.evde-page-head__breadcrumb .evde-breadcrumb [aria-current="page"] { color: #fff; font-weight: var(--evde-fw-semibold); }
.evde-page-head__breadcrumb .evde-breadcrumb li + li::before { color: rgba(255,255,255,0.4); }
