/* Text pages (legal pages, a single news article, archives) have no Figma
   composition. They reuse the section rhythm of the approved pages: a
   ghost-white heading band, then a white reading column. */
.siliteh-main--text {
	padding: 0;
	background: var(--siliteh-color-white);
}

.text-page__header {
	background: var(--siliteh-color-ghost-white);
	color: var(--siliteh-color-midnight-navy);
}

.text-page__inner {
	width: min(1320px, calc(100% - 80px));
	margin-inline: auto;
}

.text-page__header .text-page__inner {
	display: grid;
	gap: 20px;
	justify-items: start;
	padding-block: 88px 56px;
}

.text-page__title {
	max-width: 1000px;
	margin: 0;
	font-size: clamp(48px, 5vw, var(--siliteh-font-h1));
	font-weight: 500;
	letter-spacing: -0.03em;
	line-height: 1.3;
	overflow-wrap: break-word;
}

.text-page__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	align-items: center;
	margin: 0;
	color: var(--siliteh-color-muted-navy);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
}

.text-page__chip {
	padding: 6px 12px;
	border-radius: 8px;
	background: var(--siliteh-color-bright-gray);
	color: var(--siliteh-color-midnight-navy);
	font-size: 14px;
	font-weight: 800;
	letter-spacing: 0.04em;
	line-height: 1.35;
	text-transform: uppercase;
}

.text-page__body {
	background: var(--siliteh-color-white);
	color: var(--siliteh-color-midnight-navy);
}

.text-page__body .text-page__inner {
	display: grid;
	gap: 48px;
	padding-block: 64px 110px;
}

.text-page__figure {
	max-width: 1000px;
	margin: 0;
}

.text-page__figure img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 24px;
}

.text-page__prose {
	max-width: 800px;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.6;
	overflow-wrap: break-word;
}

.text-page__prose > :first-child {
	margin-top: 0;
}

.text-page__prose > :last-child {
	margin-bottom: 0;
}

.text-page__prose h2 {
	margin: 56px 0 16px;
	font-size: 32px;
	font-weight: 500;
	letter-spacing: -0.02em;
	line-height: 1.2;
}

.text-page__prose h3 {
	margin: 36px 0 12px;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.3;
}

.text-page__prose p,
.text-page__prose ul,
.text-page__prose ol {
	margin: 0 0 16px;
}

.text-page__prose ul,
.text-page__prose ol {
	padding-left: 24px;
}

.text-page__prose li + li {
	margin-top: 8px;
}

.text-page__prose strong {
	font-weight: 700;
}

.text-page__prose a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.text-page__prose img {
	max-width: 100%;
	height: auto;
	border-radius: 12px;
}

.text-page__prose blockquote {
	margin: 24px 0;
	padding: 4px 0 4px 24px;
	border-left: 4px solid var(--siliteh-color-bright-gray);
}

.text-page__prose .wp-block-table {
	overflow-x: auto;
}

.text-page__prose table {
	width: 100%;
	border-collapse: collapse;
	font-size: 16px;
}

.text-page__prose th,
.text-page__prose td {
	padding: 12px 16px;
	border: 1px solid var(--siliteh-color-bright-gray);
	text-align: left;
	vertical-align: top;
}

.text-page__prose th {
	background: var(--siliteh-color-ghost-white);
}

.text-page__footer {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 32px;
	align-items: center;
}

.text-page__back {
	display: inline-flex;
	gap: 10px;
	align-items: center;
	min-height: 44px;
	color: var(--siliteh-color-midnight-navy);
	font-size: 16px;
	font-weight: 700;
	text-decoration: none;
}

.text-page__back img {
	width: 16px;
	height: 16px;
	transform: scaleX(-1);
}

.text-page__list {
	display: grid;
	gap: 32px;
	max-width: 800px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.text-page__list h2 {
	margin: 0 0 8px;
	font-size: 26px;
	font-weight: 500;
	letter-spacing: -0.02em;
	line-height: 1.25;
}

.text-page__list h2 a {
	color: inherit;
	text-decoration: none;
}

.text-page__list p {
	margin: 0;
	font-size: 17px;
	font-weight: 500;
	line-height: 1.5;
}

.text-page__pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 24px;
	font-weight: 700;
}

.text-page__pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 32px;
}

.text-page__pagination a {
	color: inherit;
}

@media (hover: hover) and (pointer: fine) {
	.text-page__prose a:hover,
	.text-page__list h2 a:hover,
	.text-page__pagination a:hover {
		color: var(--siliteh-color-medium-blue);
	}

	.text-page__back:hover {
		color: var(--siliteh-color-medium-blue);
	}
}

@media (max-width: 1023px) {
	.text-page__header .text-page__inner {
		padding-block: 64px 40px;
	}

	.text-page__body .text-page__inner {
		gap: 40px;
		padding-block: 48px 80px;
	}

	.text-page__prose h2 {
		margin-top: 44px;
		font-size: 28px;
	}
}

@media (max-width: 600px) {
	.text-page__inner {
		width: calc(100% - 32px);
	}

	/* Long Russian and Polish words must not overflow a 320px column. */
	.text-page__title {
		font-size: 44px;
		line-height: 1.18;
		hyphens: auto;
	}

	.text-page__header .text-page__inner {
		gap: 16px;
		padding-block: 48px 32px;
	}

	.text-page__body .text-page__inner {
		gap: 32px;
		padding-block: 32px 64px;
	}

	.text-page__prose {
		font-size: 17px;
	}

	.text-page__prose h2 {
		margin-top: 36px;
		font-size: 24px;
	}

	.text-page__prose h3 {
		font-size: 20px;
	}

	.text-page__figure img {
		border-radius: 16px;
	}
}
