.category-bottom-description {
	--category-bottom-description-mobile-title-size: 28px;

	box-sizing: border-box;
	width: 100%;
	padding: var(--space-section-md) var(--space-page-padding);
	background: var(--color-surface-page-title);
	color: var(--color-text);
	font-family: var(--font-family-base);
}

.category-bottom-description__container {
	width: 100%;
	max-width: var(--container-max);
	margin-inline: auto;
}

.category-bottom-description__content {
	color: var(--color-text-soft);
	font-size: var(--font-size-base);
	line-height: 1.5;
}

.category-bottom-description__content > * {
	margin: 0 0 var(--space-md);
}

.category-bottom-description__content > :last-child {
	margin-bottom: 0;
}

.category-bottom-description__content :is(h1, h2, h3) {
	margin-bottom: var(--space-lg);
	color: var(--color-text);
	font-size: var(--font-size-2xl);
	font-weight: 700;
	line-height: 1.2;
}

.category-bottom-description__content :is(h4, h5, h6) {
	color: var(--color-text);
	font-size: var(--font-size-lg);
	font-weight: 700;
	line-height: 1.2;
}

.category-bottom-description__content a {
	color: var(--color-text);
	font-weight: 500;
	text-decoration: underline;
	text-underline-offset: 0.15em;
	transition: color var(--interaction-duration) var(--animation-easing);
}

.category-bottom-description__content a:hover,
.category-bottom-description__content a:focus-visible {
	color: var(--color-secondary);
}

/* Tables from the WYSIWYG field: full width with an outer border on desktop; on narrow screens (no wrapper markup) the table itself scrolls horizontally. */
.category-bottom-description__content table {
	--category-bottom-description-table-cell-min-width: 180px;

	width: 100%;
	max-width: 100%;
	margin: 0 0 var(--space-md);
	border: var(--stroke-divider-width) solid var(--color-divider-subtle);
	border-collapse: collapse;
}

@media (max-width: 767px) {
	.category-bottom-description__content table {
		display: block;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
}

.category-bottom-description__content :is(th, td) {
	min-width: var(--category-bottom-description-table-cell-min-width);
	padding: var(--space-md);
	border-bottom: var(--stroke-divider-width) solid var(--color-divider-subtle);
	text-align: left;
	vertical-align: top;
}

.category-bottom-description__content th {
	background: var(--color-divider-subtle);
	color: var(--color-text);
	font-weight: 700;
}

.category-bottom-description__content td:first-child {
	color: var(--color-text);
	font-weight: 500;
}

.category-bottom-description__content tbody tr:last-child td {
	border-bottom: 0;
}

@media (max-width: 1199px) {
	.category-bottom-description {
		padding-block: calc(var(--space-xl) - var(--space-sm));
	}

	.category-bottom-description__content :is(h1, h2, h3) {
		font-size: var(--category-bottom-description-mobile-title-size);
	}
}
