/* ==========================================================================
   Containers, sections, grids
   ========================================================================== */

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

.container--narrow {
	max-width: var(--container-narrow);
}

.container--text {
	max-width: var(--container-text);
}

/* Live's Elementor containers are 1140px of *content*; the gutter sits outside
   that, so a plain --container-narrow box would come out 160px short. */
.container--band {
	max-width: calc(var(--container-narrow) + 2 * var(--gutter));
}

/* Live's blog posts run an 800px column pinned to the left gutter, not a
   centred measure: content sits at x=80 at both 1440 and 768, and at x=16 on
   phones. */
.container--post {
	max-width: calc(800px + 2 * 80px);
	margin-inline: 0;
	padding-inline: 80px;
}

@media (max-width: 767px) {
	.container--post {
		padding-inline: 16px;
	}
}

@media (min-width: 768px) and (max-width: 1024px) {
	/* Measured across three unrelated blocks — the archive image (600px), the
	   COA gallery (588px) and the homepage trust cards (578px) — live's tablet
	   container is about 600px of content, not the full viewport. */
	/* The post column is measured separately — 608px at this width — so it
	   keeps its own box. */
	.container:not(.container--post),
	.container--band {
		max-width: calc(600px + 2 * var(--gutter));
	}

	.entry-content .band > * {
		max-width: 600px;
		margin-inline: auto;
	}
}

.section {
	padding-block: var(--section-y-sm);
}

@media (min-width: 768px) {
	.section {
		padding-block: var(--section-y);
	}
}

.section--tight {
	padding-block: var(--s-7);
}

.section--archive {
	padding-top: 0;
	padding-bottom: var(--s-5);
}

.section--flush-top {
	padding-top: 0;
}

.section--flush-bottom {
	padding-bottom: 0;
}

.section--dark {
	background: var(--c-dark);
	color: var(--c-white);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
	color: var(--c-white);
}

.section--alt {
	background: var(--c-surface-alt);
}

/* --- Section heading ----------------------------------------------------- */

.section-head {
	max-width: 760px;
	margin-bottom: var(--s-7);
}

.section-head--center {
	margin-inline: auto;
	text-align: center;
}

.section-head--left {
	margin-inline: 0;
	text-align: left;
}

.section-head__eyebrow {
	margin-bottom: var(--s-3);
	color: var(--c-muted);
	font-family: var(--f-body);
	font-size: var(--fs-2xs);
	font-weight: var(--fw-bold);
	letter-spacing: var(--ls-eyebrow);
	text-transform: uppercase;
}

.section-head__title {
	margin-bottom: var(--s-4);
}

.section-head__lead {
	margin-bottom: 0;
	color: var(--c-muted-2);
	font-size: var(--fs-lead);
	line-height: var(--lh-loose);
	text-wrap: pretty;
}

/* --- Grids --------------------------------------------------------------- */

.grid {
	display: grid;
	gap: var(--s-5);
}

.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--5 { grid-template-columns: 1fr; }

@media (min-width: 600px) {
	.grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.grid--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
	.grid { gap: var(--s-6); }
	.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.grid--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1025px) {
	.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* --- Split (image / copy alternating rows) ------------------------------- */

.split {
	display: grid;
	gap: var(--s-6);
	align-items: center;
}

@media (min-width: 768px) {
	.split {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: var(--s-9);
	}

	.split--reverse .split__media {
		order: 2;
	}
}

.split__media img {
	width: 100%;
	border-radius: var(--r-lg);
	object-fit: cover;
}

/* --- Page shell ---------------------------------------------------------- */

.page-hero {
	padding-block: var(--s-8) var(--s-6);
	text-align: center;
}

@media (min-width: 768px) {
	.page-hero {
		padding-block: var(--s-10) var(--s-7);
	}
}

.page-hero__title {
	margin-bottom: var(--s-4);
}

.page-hero__lead {
	max-width: 720px;
	margin-inline: auto;
	color: var(--c-muted-2);
	font-size: var(--fs-lead);
}

.entry-content > * + * {
	margin-top: var(--s-5);
}

.entry-content h2,
.entry-content h3 {
	margin-top: var(--s-8);
}

.entry-content img {
	border-radius: var(--r-md);
}
