/* HTML sitemap (/sitemap/ and 404). Scoped to .ap-html-sitemap*. Rollback with sitemap-1111 backup. */

.ap-html-sitemap-wrap {
	padding: 64px 24px 32px;
}
.ap-html-sitemap-page .ap-html-sitemap-wrap {
	padding-top: 56px;
	padding-bottom: 80px;
}

/* Visible label on the hero search (sitemap page and 404). */
.ap-blog-hero .ap-bsearch .wp-block-search__label,
.ap-html-sitemap-search .wp-block-search__label {
	display: block;
	color: #fff;
	font-weight: 600;
	font-size: 0.95rem;
	letter-spacing: -0.01em;
	margin: 0 0 10px;
	text-align: center;
}
.ap-html-sitemap-search {
	max-width: 560px;
	margin: 32px auto 0;
}
.ap-html-sitemap-search .wp-block-search__inside-wrapper {
	display: flex;
	max-width: 560px;
	margin: 0 auto;
	padding: 6px;
	gap: 6px;
	border-radius: 999px;
	background: rgba(255,255,255,.14);
	border: 1px solid rgba(255,255,255,.38);
	-webkit-backdrop-filter: var(--ap-glass-blur, blur(16px));
	backdrop-filter: var(--ap-glass-blur, blur(16px));
	box-shadow: inset 0 1px 1px rgba(255,255,255,.4), 0 20px 40px -22px rgba(0,20,80,.6);
}
.ap-html-sitemap-search .wp-block-search__input {
	border: 0;
	background: transparent;
	padding: 0 8px 0 20px;
	min-height: 48px;
	font-size: 1rem;
	color: #fff;
	border-radius: 999px;
	min-width: 0;
	flex: 1;
}
.ap-html-sitemap-search .wp-block-search__input::placeholder { color: rgba(255,255,255,.82); opacity: 1; }
.ap-html-sitemap-search .wp-block-search__input:focus { outline: none; }
.ap-html-sitemap-search .wp-block-search__inside-wrapper:focus-within {
	outline: 2px solid var(--wp--preset--color--yellow-light, #FFD76A);
	outline-offset: 3px;
}
.ap-html-sitemap-search .wp-block-search__button {
	margin: 0;
	padding: 0 24px;
	min-height: 48px;
	border-radius: 999px;
	white-space: nowrap;
}

.ap-html-sitemap__toc {
	max-width: 1240px;
	margin: 0 auto 28px;
}
.ap-html-sitemap__toc ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
}
.ap-html-sitemap__toc a {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0 16px;
	border-radius: 999px;
	background: #fff;
	border: 1px solid #dbe4f3;
	color: var(--wp--preset--color--ink, #0a1633);
	font-size: 0.9063rem;
	font-weight: 600;
	letter-spacing: -0.005em;
	text-decoration: none;
	transition: background-color .2s, border-color .2s, box-shadow .2s;
}
.ap-html-sitemap__toc a:hover,
.ap-html-sitemap__toc a:focus-visible {
	background: #f5f8ff;
	border-color: #b9c9e6;
	box-shadow: 0 6px 16px -10px rgba(0,40,120,.35);
}

.ap-html-sitemap {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
	max-width: 1240px;
	margin: 0 auto;
}
.ap-html-sitemap__section {
	position: relative;
	padding: 28px 30px 26px;
	border-radius: 24px;
	background: rgba(255,255,255,.72);
	border: 1px solid rgba(16, 52, 120, 0.10);
	box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 22px 44px -30px rgba(0,40,120,.35), 0 6px 14px -10px rgba(0,40,120,.12);
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
}
.ap-html-sitemap__h {
	scroll-margin-top: 120px;
	margin: 0 0 16px;
	font-size: 1.25rem;
	letter-spacing: -0.02em;
	color: var(--wp--preset--color--ink, #0a1633);
}
.ap-html-sitemap__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 8px;
}
.ap-html-sitemap__list--wide {
	grid-template-columns: 1fr;
}
.ap-html-sitemap__list a {
	display: block;
	padding: 6px 0;
	color: var(--wp--preset--color--primary, #0A5FE6);
	text-decoration: none;
	font-weight: 550;
	line-height: 1.4;
	border-radius: 4px;
}
.ap-html-sitemap__list a:hover,
.ap-html-sitemap__list a:focus-visible {
	text-decoration: underline;
	text-underline-offset: 3px;
}
.ap-html-sitemap__note {
	max-width: 720px;
	margin: 32px auto 0;
	text-align: center;
	color: #44506a;
	font-size: 0.95rem;
	line-height: 1.55;
}

@media (min-width: 900px) {
	.ap-html-sitemap__list--wide {
		grid-template-columns: 1fr 1fr;
		column-gap: 24px;
	}
}
@media (max-width: 799px) {
	.ap-html-sitemap {
		grid-template-columns: 1fr;
	}
	.ap-html-sitemap-wrap {
		padding: 40px 16px 16px;
	}
}
@media (prefers-reduced-motion: reduce) {
	.ap-html-sitemap__toc a,
	.ap-html-sitemap__list a {
		transition: none;
	}
}
