.wp-block-tv-base-site-text-section.section {
	background: var(--color-surface);
}

.wp-block-tv-base-site-text-section .section-inner,
.wp-block-tv-base-site-text-section .text-section__inner {
	width: min(var(--content-width, 100%), calc(100% - 46px));
	margin-inline: auto;
}

.wp-block-tv-base-site-text-section .text-section__column {
	width: min(var(--post-width, 1029px), 100%);
	min-width: 0;
}

.wp-block-tv-base-site-text-section .text-section__title {
	margin-bottom: 24px;
}

.wp-block-tv-base-site-text-section .text-section__content {
	font-family: var(--font-family);
	font-weight: var(--font-weight-regular);
	font-style: normal;
	font-size: var(--font-size-body);
	line-height: var(--line-height-body);
	letter-spacing: var(--letter-spacing-body);
	color: var(--color-text);
	max-width: 75ch;
}

.wp-block-tv-base-site-text-section .text-section__content p {
	margin: 0 0 1em;
}

.wp-block-tv-base-site-text-section .text-section__content p:last-child {
	margin-bottom: 0;
}

@media (max-width: 900px) {

	.wp-block-tv-base-site-text-section .section-inner,
	.wp-block-tv-base-site-text-section .text-section__inner {
		width: calc(100% - 46px);
	}

	.wp-block-tv-base-site-text-section .text-section__column {
		width: 100%
	}
}

@media (max-width: 768px) {

	.wp-block-tv-base-site-text-section .text-section__title {
		margin-bottom: 20px;
	}
}

/* Keep consecutive instances from compounding vertical spacing. */
.wp-block-tv-base-site-text-section.section:has(+ .wp-block-tv-base-site-text-section.section) {
	padding-bottom: 12px;
}

.wp-block-tv-base-site-text-section.section + .wp-block-tv-base-site-text-section.section {
	padding-top: 12px;
}

.wp-block-tv-base-site-text-section .text-section__buttons {
	margin-top: var(--space-32);
}

/* A section that only holds buttons should not add the usual gap above them. */
.wp-block-tv-base-site-text-section .text-section__column > .text-section__buttons:first-child {
	margin-top: 0;
}

/* Split layout: text on the left, side content (for example a form) on the right. */
.wp-block-tv-base-site-text-section.text-section--split .text-section__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: var(--space-56);
	align-items: start;
}

.wp-block-tv-base-site-text-section.text-section--split .text-section__column {
	width: 100%;
}

.wp-block-tv-base-site-text-section .text-section__content h3 {
	margin: 1.5em 0 .35em;
}

.wp-block-tv-base-site-text-section .text-section__content h3:first-child {
	margin-top: 0;
}

.wp-block-tv-base-site-text-section .text-section__side {
	min-width: 0;
}

@media (max-width: 900px) {
	.wp-block-tv-base-site-text-section.text-section--split .text-section__inner {
		grid-template-columns: 1fr;
		gap: var(--space-48);
	}
}

/* Sitemap page: the link list flows into two columns on wide screens. */
.wp-block-tv-base-site-text-section .tv-base-sitemap {
	column-count: 2;
	column-gap: var(--space-56);
}

.wp-block-tv-base-site-text-section .tv-base-sitemap > ul {
	margin-top: 0;
}

.wp-block-tv-base-site-text-section .tv-base-sitemap > ul > li {
	break-inside: avoid;
	margin-bottom: 12px;
}

@media (max-width: 768px) {
	.wp-block-tv-base-site-text-section .tv-base-sitemap {
		column-count: 1;
	}
}

/* Numbered steps and "signs" lists: big numerals, one idea per item, easy to scan. */
.wp-block-tv-base-site-text-section .text-section__content:has(.tv-base-steps) {
	max-width: none;
}

.wp-block-tv-base-site-text-section .tv-base-steps,
.wp-block-tv-base-site-text-section .tv-base-signs {
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: tv-base-step;
}

.wp-block-tv-base-site-text-section .tv-base-steps {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--space-32) var(--space-56);
}

.wp-block-tv-base-site-text-section .tv-base-signs {
	display: grid;
	gap: var(--space-24);
}

.wp-block-tv-base-site-text-section .tv-base-steps li,
.wp-block-tv-base-site-text-section .tv-base-signs li {
	position: relative;
	counter-increment: tv-base-step;
	padding-left: 76px;
	min-height: 52px;
}

.wp-block-tv-base-site-text-section .tv-base-steps li::before,
.wp-block-tv-base-site-text-section .tv-base-signs li::before {
	content: counter(tv-base-step, decimal-leading-zero);
	position: absolute;
	left: 0;
	top: -6px;
	font-size: 44px;
	line-height: 1;
	letter-spacing: -0.03em;
	color: var(--color-highlight);
}

.wp-block-tv-base-site-text-section .tv-base-steps li strong,
.wp-block-tv-base-site-text-section .tv-base-signs li strong {
	display: block;
	margin-bottom: 4px;
	font-size: var(--font-size-h4);
	line-height: 1.25;
	font-weight: var(--font-weight-medium);
}

.wp-block-tv-base-site-text-section .text-section__content p.tv-base-takeaway {
	margin: var(--space-40, 40px) 0 0;
	padding-left: 20px;
	border-left: 4px solid var(--color-accent);
	font-size: var(--font-size-body-lg);
	line-height: var(--line-height-body-lg);
}

@media (max-width: 768px) {
	.wp-block-tv-base-site-text-section .tv-base-steps {
		grid-template-columns: 1fr;
	}

	.wp-block-tv-base-site-text-section .tv-base-steps li,
	.wp-block-tv-base-site-text-section .tv-base-signs li {
		padding-left: 60px;
	}
}
