/**
 * Human-readable HTML sitemap — curated navigation layout.
 */

body.ci-html-sitemap-page {
	background: #fff;
}

body.ci-html-sitemap-page .ci-sitemap-wrap {
	font-family: "Source Sans 3", "Helvetica Neue", Helvetica, Arial, sans-serif;
	color: #111;
	background: #fff;
}

body.ci-html-sitemap-page .ci-sitemap-wrap .page-heading.secondary-background {
	background: #f5f5f5 !important;
	border-bottom: 1px solid #e8e8e8;
	padding: 32px 0 36px;
	margin: 0;
}

body.ci-html-sitemap-page .ci-sitemap-wrap .page-heading .container,
body.ci-html-sitemap-page .ci-sitemap-wrap .content-section .container {
	width: min(960px, calc(100% - 40px));
	max-width: 960px;
	margin: 0 auto;
	padding: 0 20px;
	box-sizing: border-box;
}

body.ci-html-sitemap-page .ci-sitemap-wrap .page-heading h1.guides-section-title {
	margin: 0;
	padding: 0;
	font-family: "Playfair Display", Georgia, "Times New Roman", Times, serif !important;
	font-size: clamp(2.25rem, 4.5vw, 3rem) !important;
	font-weight: 800 !important;
	line-height: 1.12 !important;
	color: #111;
	letter-spacing: -0.01em;
}

body.ci-html-sitemap-page .ci-sitemap-wrap .page-heading::after,
body.ci-html-sitemap-page .ci-sitemap-wrap .page-heading h1.guides-section-title::before {
	display: none !important;
	content: none !important;
}

body.ci-html-sitemap-page .ci-sitemap-story {
	padding: 36px 0 64px;
	font-family: "Source Sans 3", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.ci-sitemap__intro {
	margin: 0 0 22px;
	font-family: "Source Sans 3", "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 1.05rem;
	font-weight: 400;
	line-height: 1.55;
	color: #444;
	max-width: 42em;
}

.ci-sitemap__jump {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 10px;
	list-style: none;
	margin: 0 0 36px;
	padding: 0;
}

.ci-sitemap__jump a {
	display: inline-block;
	padding: 7px 12px;
	border: 1px solid #e0e0e0;
	background: #fafafa;
	color: #6b0c27;
	text-decoration: none;
	font-family: "Source Sans 3", "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	line-height: 1.2;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.ci-sitemap__jump a:hover,
.ci-sitemap__jump a:focus-visible {
	background: #fff;
	border-color: #6b0c27;
	color: #520a1e;
	outline: none;
}

.ci-sitemap__section {
	margin: 0 0 32px;
	padding: 0 0 28px;
	border-bottom: 1px solid #ececec;
	scroll-margin-top: 96px;
}

.ci-sitemap__section:last-child {
	border-bottom: 0;
	margin-bottom: 0;
	padding-bottom: 0;
}

.ci-sitemap__heading {
	margin: 0 0 14px;
	font-family: "Source Sans 3", "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #8b1538;
	line-height: 1.3;
}

.ci-sitemap__list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 6px 28px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ci-sitemap__list a {
	display: inline-block;
	padding: 5px 0;
	font-family: "Source Sans 3", "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-weight: 400;
	color: #1a1a1a;
	text-decoration: none;
	font-size: 0.9875rem;
	line-height: 1.4;
	border-bottom: 1px solid transparent;
	transition: color 0.15s ease, border-color 0.15s ease;
}

.ci-sitemap__list a:hover,
.ci-sitemap__list a:focus-visible {
	color: #6b0c27;
	border-bottom-color: #6b0c27;
	outline: none;
}

@media (max-width: 820px) {
	.ci-sitemap__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 4px 20px;
	}
}

@media (max-width: 520px) {
	.ci-sitemap__list {
		grid-template-columns: 1fr;
	}

	.ci-sitemap__jump a {
		font-size: 0.75rem;
		padding: 6px 10px;
	}
}
