/**/

.sitemap {
	margin: 0 auto;
}

.sitemap ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.sitemap-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ===== Sitemap tools ===== */
.sitemap-tools {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 12px;
	margin-bottom: 12px;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	background: #fafafa;
}

.sitemap-search-wrap {
	flex: 1;
	min-width: 220px;
}

.sitemap-search-input {
	width: 100%;
	height: 38px;
	padding: 0 12px;
	border: 1px solid #d4d7dd;
	border-radius: 8px;
	background: #fff;
	color: #27272a;
	font-size: 14px;
	outline: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sitemap-search-input:focus {
	border-color: #9ca3af;
	box-shadow: 0 0 0 3px rgba(156, 163, 175, 0.2);
}

.sitemap-search-input:focus-visible {
	border-color: #52525b;
	box-shadow: 0 0 0 3px rgba(82, 82, 91, 0.28);
}

.sitemap-actions {
	display: flex;
	align-items: center;
	gap: 8px;
}

.sitemap-action-btn {
	height: 38px;
	padding: 0 12px;
	border: 1px solid #d4d7dd;
	border-radius: 8px;
	background: #fff;
	color: #3f3f46;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.sitemap-action-btn:hover {
	background: #3f3f46;
	border-color: #3f3f46;
	color: #fff;
}

.sitemap-action-btn:focus-visible,
.sitemap-toggle:focus-visible,
.sitemap-item-row > span > a:focus-visible {
	outline: 3px solid #52525b;
	outline-offset: 2px;
}

.sitemap > div > ul > li > .sitemap-item-row > span > a {
	font-size: 22px;
	font-weight: 700;
}

/* ===== Level 2 ===== */
.sitemap > div > ul > li > ul {
	padding-right: 20px;
	border-right: 2px solid #f1f1f1;
	margin-right: 14px;
	margin-top: 4px;
	margin-bottom: 8px;
}

.sitemap > div > ul > li > ul > li > .sitemap-item-row > span > a {
	font-size: 17px;
	font-weight: 600;
	color: #3f3f46;
}

/* ===== Level 3+ ===== */
.sitemap ul ul ul {
	padding-right: 18px;
	border-right: 2px solid #ddd;
	margin-right: 12px;
	margin-top: 2px;
}

.sitemap ul ul ul li > .sitemap-item-row > span > a {
	font-size: 15px;
	font-weight: 400;
	color: #52525b;
}

/* ===== Item row (link + toggle wrapper) ===== */
.sitemap-item-row {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 8px;
	padding: 10px 12px;
	transition: background-color 0.15s ease;
}

.sitemap-item-row:hover {
	background-color: #f7f7f8;
}

.sitemap li + li > .sitemap-item-row {
	border-top: 1px solid #eceef1;
}

/* first item in a sub-list also gets top border */
.sitemap ul > li:first-child > .sitemap-item-row {
	border-top: 1px solid #eceef1;
}

.sitemap-item-row > span {
	min-width: 0;
	text-align: right;
}

.sitemap-item-row > span > a {
	text-decoration: none;
	display: block;
	transition: color 0.15s ease;
}

.sitemap-item-row > span > a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.sitemap-item-row > span > a .arrow {
	display: none;
}

.sitemap-item-row > span > a .fa-external-link {
	font-size: 0.7em;
	opacity: 0.5;
	margin-right: 4px;
}

/* ===== Toggle spacer (for items without children) ===== */
.sitemap-toggle-spacer {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 28px;
	height: 28px;
	border-radius: 6px;
	background-color: #f3f4f6;
	color: #b8bec6;
	font-size: 12px;
	line-height: 1;
}

/* ===== Toggle button ===== */
.sitemap-toggle {
	cursor: pointer;
	flex-shrink: 0;
	width: 28px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	font-weight: 500;
	line-height: 1;
	border: none;
	border-radius: 6px;
	background-color: #e5e7eb;
	color: #3f3f46;
	transition: all 0.2s ease;
	padding: 0;
}

.sitemap-toggle:hover {
	background-color: #3f3f46;
	color: #fff;
	transform: scale(1.1);
}

.sitemap-toggle[aria-expanded="true"] {
	background-color: #3f3f46;
	color: #fff;
}

/* ===== <hr> separators ===== */
.sitemap hr {
	border: none;
	border-top: 1px solid #e5e7eb;
	margin: 12px 0;
}

/* ===== Empty state ===== */
.sitemap .empty a {
	opacity: 0.45;
	pointer-events: none;
}

/* ===== Responsive ===== */
@media (max-width: 767px) {
	.sitemap-tools {
		flex-direction: column;
		align-items: stretch;
	}
	.sitemap-search-wrap {
		min-width: 0;
	}
	.sitemap-actions {
		justify-content: space-between;
	}
	.sitemap-action-btn {
		flex: 1;
	}
	.sitemap > div > ul > li > .sitemap-item-row > span > a {
		font-size: 19px;
	}
	.sitemap > div > ul > li > ul > li > .sitemap-item-row > span > a {
		font-size: 16px;
	}
	.sitemap-item-row {
		padding: 6px 8px;
	}
	.sitemap > div > ul > li > ul {
		padding-right: 14px;
		margin-right: 10px;
	}
}