/* HTML sitemap — Rank Math page mode (reference: rush-analytics.ru/sitemap) */

body.rework-page-sitemap .careerfy-main-content {
	padding-top: 112px;
	padding-bottom: 64px;
}

body.admin-bar.rework-page-sitemap .careerfy-main-content {
	padding-top: 144px;
}

body.rework-page-sitemap .careerfy-main-content > .container {
	max-width: min(960px, calc(100vw - 32px));
}

body.rework-page-sitemap .careerfy-entry-header {
	margin-bottom: 28px;
}

body.rework-page-sitemap .careerfy-entry-header .entry-title {
	margin: 0;
	font-size: clamp(28px, 4vw, 36px);
	line-height: 1.2;
	font-weight: 700;
	color: #071232;
}

body.rework-page-sitemap .careerfy-entry-content {
	font-size: 16px;
	line-height: 1.55;
	color: #1f2430;
}

body.rework-page-sitemap .rank-math-html-sitemap {
	display: flex;
	flex-direction: column;
	gap: 40px;
}

body.rework-page-sitemap .rank-math-html-sitemap__section {
	margin: 0;
}

body.rework-page-sitemap .rank-math-html-sitemap__title {
	margin: 0 0 14px;
	font-size: 22px;
	line-height: 1.3;
	font-weight: 700;
	color: #071232;
}

body.rework-page-sitemap .rank-math-html-sitemap__list {
	list-style: none;
	margin: 0;
	padding: 20px 24px;
	counter-reset: rework-sitemap-item;
	background: #fff;
	border: 1px solid #eceef2;
	border-radius: 16px;
}

body.rework-page-sitemap .rank-math-html-sitemap__item {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.35em 0.75em;
	margin: 0;
	padding: 11px 0;
	border-bottom: 1px solid #eef1f4;
	counter-increment: rework-sitemap-item;
}

body.rework-page-sitemap .rank-math-html-sitemap__item:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

body.rework-page-sitemap .rank-math-html-sitemap__item:first-child {
	padding-top: 0;
}

body.rework-page-sitemap .rank-math-html-sitemap__list > .rank-math-html-sitemap__item::before {
	content: counter(rework-sitemap-item) ".";
	flex: 0 0 auto;
	min-width: 2.25em;
	font-size: 15px;
	font-weight: 600;
	color: #6b7280;
}

body.rework-page-sitemap .rank-math-html-sitemap__link {
	flex: 1 1 auto;
	min-width: 0;
	color: #071232;
	text-decoration: none;
	transition: color 0.2s ease;
}

body.rework-page-sitemap .rank-math-html-sitemap__link:hover,
body.rework-page-sitemap .rank-math-html-sitemap__link:focus {
	color: var(--cfy-primary, #0a65fc);
	text-decoration: none;
}

body.rework-page-sitemap .rank-math-html-sitemap__date {
	flex: 0 0 auto;
	margin-left: auto;
	font-size: 14px;
	line-height: 1.4;
	color: #9ca3af;
	white-space: nowrap;
}

/* Hierarchical pages / taxonomies */
body.rework-page-sitemap .rank-math-html-sitemap__list .rank-math-html-sitemap__list {
	margin: 8px 0 0;
	padding: 12px 0 0 18px;
	background: transparent;
	border: 0;
	border-radius: 0;
	border-top: 1px dashed #e5e7eb;
	counter-reset: rework-sitemap-subitem;
}

body.rework-page-sitemap .rank-math-html-sitemap__list .rank-math-html-sitemap__list > .rank-math-html-sitemap__item {
	padding-left: 0;
	border-bottom-color: #f3f4f6;
}

body.rework-page-sitemap .rank-math-html-sitemap__list .rank-math-html-sitemap__list > .rank-math-html-sitemap__item::before {
	content: "—";
	min-width: 1.25em;
	font-weight: 400;
	color: #9ca3af;
	counter-increment: none;
}

@media (max-width: 767px) {
	body.rework-page-sitemap .careerfy-main-content {
		padding-top: 96px;
		padding-bottom: 48px;
	}

	body.admin-bar.rework-page-sitemap .careerfy-main-content {
		padding-top: 128px;
	}

	body.rework-page-sitemap .rank-math-html-sitemap {
		gap: 32px;
	}

	body.rework-page-sitemap .rank-math-html-sitemap__title {
		font-size: 20px;
	}

	body.rework-page-sitemap .rank-math-html-sitemap__list {
		padding: 16px 18px;
		border-radius: 14px;
	}

	body.rework-page-sitemap .rank-math-html-sitemap__item {
		flex-direction: column;
		align-items: flex-start;
		gap: 4px;
		padding: 12px 0;
	}

	body.rework-page-sitemap .rank-math-html-sitemap__date {
		margin-left: 2.25em;
		white-space: normal;
	}
}
