/**
 * WP Sitemap Page — clean multi-column layout
 */

.wsp-container {
	--wsp-text: #1a1a1a;
	--wsp-text-muted: #222222;
	--wsp-gap-x: 3rem;
	--wsp-gap-y: 0.65rem;
	--wsp-line: 1.55;
	color: var(--wsp-text);
	font-family: inherit;
	font-size: 1.25rem;
	line-height: var(--wsp-line);
	max-width: 100%;
}

.wsp-container *,
.wsp-container *::before,
.wsp-container *::after {
	box-sizing: border-box;
}

/* Section titles (Pages / Posts / …) */
.wsp-container > h2,
.wsp-container h2[class^="wsp-"] {
	margin: 0 0 1.25rem;
	padding: 0;
	border: 0;
	color: var(--wsp-text);
	font-size: 1.375rem;
	font-weight: 700;
	line-height: 1.4;
}

/* Top-level lists only: 3 clean columns */
.wsp-container > ul {
	column-count: 3;
	column-gap: var(--wsp-gap-x);
	list-style: none;
	margin: 0;
	padding: 0;
}

.wsp-container > ul > li {
	break-inside: avoid;
	-webkit-column-break-inside: avoid;
	page-break-inside: avoid;
	margin: 0 0 var(--wsp-gap-y);
	padding: 0;
	list-style: none;
}

/* Nested lists (submenu) — round bullet on every ul > li */
.wsp-container ul ul {
	column-count: 1;
	list-style: none;
	margin: 0.35rem 0 0;
	padding: 0 0 0 1.35rem;
}

.wsp-container ul ul > li {
	position: relative;
	margin: 0.15rem 0;
	padding: 0 0 0 0.35rem;
	list-style: none;
	font-size: 1.05em;
}

.wsp-container ul ul > li::before {
	content: "";
	position: absolute;
	top: 0.55em;
	left: -0.85rem;
	width: 0.28rem;
	height: 0.28rem;
	border-radius: 50%;
	background-color: currentColor;
}

/* Level 0 — bold section headers */
.wsp-container > ul > li > a,
.wsp-container .wsp-category-title,
.wsp-container .wsp-category-title a {
	color: var(--wsp-text);
	font-size: 1.2em;
	font-weight: 700;
	text-decoration: none;
}

/* Level 1+ submenu links */
.wsp-container > ul > li > ul > li > a,
.wsp-container > ul > li > ul ul > li > a {
	color: var(--wsp-text-muted);
	font-size: 1.05em;
	font-weight: 400;
	text-decoration: none;
}

/* Deeper nesting gets a bit more indent */
.wsp-container > ul > li > ul ul {
	margin-top: 0.3rem;
	padding-left: 1.35rem;
}

/* Links */
.wsp-container a {
	color: inherit;
	text-decoration: none;
	transition: opacity 0.15s ease;
}

.wsp-container a:hover,
.wsp-container a:focus {
	opacity: 0.7;
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.wsp-container a:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

/* Comfortable tap targets */
.wsp-container li > a {
	display: inline-block;
	padding: 0.05rem 0;
	line-height: var(--wsp-line);
}

.wsp-container .menu-item-has-children > a,
.wsp-container .page_item_has_children > a {
	font-weight: 700;
}

.wsp-container .sub-menu,
.wsp-container .children {
	margin-top: 0.35rem;
}

.wsp-container strong.wsp-category-title {
	display: block;
	font-weight: 700;
	margin-bottom: 0.35rem;
}

.wsp-container .wsp-post {
	list-style: none;
}

/* Menu-based sitemap: hide generic Archives label */
.wsp-container .wsp-archives-title {
	display: none;
}

/* Responsive */
@media (max-width: 900px) {
	.wsp-container > ul {
		column-count: 2;
		column-gap: 2rem;
	}
}

@media (max-width: 600px) {
	.wsp-container {
		--wsp-gap-y: 0.5rem;
		font-size: 1.125rem;
	}

	.wsp-container > ul {
		column-count: 1;
	}
}
