.sitemap-page {
	--map-ink: #0b2e24;
	--map-green: #0da574;
	--map-mint: #62dfb4;
	--map-line: #d7e6e0;
	--map-muted: #637970;
	color: var(--map-ink);
	background: #f7faf8;
}

.sitemap-page .container {
	width: min(100% - 40px, 1440px);
	margin-inline: auto;
}

.sitemap-hero {
	position: relative;
	overflow: hidden;
	padding: clamp(54px, 7vw, 104px) 0 0;
	background:
		radial-gradient(circle at 75% 20%, rgba(98, 223, 180, .16), transparent 28%),
		linear-gradient(135deg, #09291f 0%, #0c382b 100%);
	color: #fff;
}

.sitemap-hero::after {
	position: absolute;
	inset: 0;
	pointer-events: none;
	content: "";
	opacity: .08;
	background-image: linear-gradient(rgba(255,255,255,.4) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.4) 1px, transparent 1px);
	background-size: 48px 48px;
}

.sitemap-hero .container { position: relative; z-index: 1; }

.sitemap-hero__layout {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(360px, .75fr);
	gap: clamp(48px, 8vw, 120px);
	align-items: center;
}

.sitemap-eyebrow {
	margin: 0 0 14px;
	color: var(--map-green);
	font-size: 14px;
	font-weight: 800;
	letter-spacing: .13em;
	text-transform: uppercase;
}

.sitemap-hero .sitemap-eyebrow { color: var(--map-mint); }

.sitemap-hero h1 {
	max-width: 760px;
	margin: 0;
	color: #fff;
	font-size: clamp(44px, 6vw, 84px);
	line-height: .98;
	letter-spacing: -.045em;
}

.sitemap-hero__lead {
	max-width: 720px;
	margin: 28px 0 32px;
	color: #c5d8d1;
	font-size: clamp(18px, 2vw, 22px);
	line-height: 1.55;
}

.sitemap-search { max-width: 720px; }
.sitemap-search label { display: block; margin-bottom: 10px; color: #ecf5f2; font-size: 14px; font-weight: 700; }

.sitemap-search__control {
	display: flex;
	align-items: center;
	min-height: 62px;
	padding: 0 10px 0 20px;
	border: 1px solid rgba(255,255,255,.22);
	border-radius: 16px;
	background: rgba(255,255,255,.1);
	backdrop-filter: blur(10px);
	transition: border-color .2s, background .2s, box-shadow .2s;
}

.sitemap-search__control:focus-within { border-color: var(--map-mint); background: rgba(255,255,255,.15); box-shadow: 0 0 0 4px rgba(98,223,180,.12); }
.sitemap-search__control svg { width: 22px; flex: 0 0 22px; fill: none; stroke: var(--map-mint); stroke-width: 2; }
.sitemap-search__control input { min-width: 0; flex: 1; border: 0; outline: 0; padding: 18px 14px; background: transparent; color: #fff; font: inherit; font-size: 16px; }
.sitemap-search__control input::placeholder { color: #a9bdb6; }
.sitemap-search__control button { border: 0; border-radius: 10px; padding: 10px 12px; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; font: inherit; font-size: 13px; font-weight: 700; }

.sitemap-hero__visual { min-height: 340px; }
.sitemap-blueprint { position: relative; width: 100%; height: 360px; }
.sitemap-blueprint__node { position: absolute; display: flex; align-items: center; justify-content: center; min-width: 134px; min-height: 54px; padding: 12px 20px; border: 1px solid rgba(98,223,180,.55); border-radius: 13px; background: rgba(5,31,23,.78); box-shadow: 0 18px 50px rgba(0,0,0,.18); color: #d9f7ec; font-size: 14px; font-weight: 750; }
.sitemap-blueprint__node--home { left: 50%; top: 20px; min-width: 190px; min-height: 72px; transform: translateX(-50%); background: var(--map-green); color: #fff; font-size: 20px; }
.sitemap-blueprint__node--home span { width: 12px; height: 12px; margin-right: 10px; border: 3px solid #fff; border-radius: 3px; transform: rotate(45deg); }
.sitemap-blueprint__node--one { left: 0; bottom: 32px; }
.sitemap-blueprint__node--two { left: 50%; bottom: 10px; transform: translateX(-50%); }
.sitemap-blueprint__node--three { right: 0; bottom: 32px; }
.sitemap-blueprint__line { position: absolute; background: rgba(98,223,180,.6); }
.sitemap-blueprint__line--main { left: 50%; top: 92px; width: 1px; height: 120px; }
.sitemap-blueprint__line--one, .sitemap-blueprint__line--three { top: 211px; width: calc(50% - 68px); height: 1px; }
.sitemap-blueprint__line--one { left: 68px; transform: rotate(-35deg); transform-origin: right; }
.sitemap-blueprint__line--three { right: 68px; transform: rotate(35deg); transform-origin: left; }
.sitemap-blueprint__line--two { left: 50%; top: 211px; width: 1px; height: 95px; }

.sitemap-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 62px; border-top: 1px solid rgba(255,255,255,.14); }
.sitemap-stats > div { display: flex; align-items: baseline; gap: 12px; padding: 25px clamp(10px, 2vw, 28px); border-right: 1px solid rgba(255,255,255,.14); }
.sitemap-stats > div:first-child { padding-left: 0; }
.sitemap-stats > div:last-child { border-right: 0; }
.sitemap-stats strong { color: var(--map-mint); font-size: 30px; }
.sitemap-stats span { color: #aec2bb; font-size: 14px; }

.sitemap-content { padding: clamp(64px, 8vw, 112px) 0; }
.sitemap-content__heading { display: flex; justify-content: space-between; gap: 40px; align-items: end; margin-bottom: 34px; }
.sitemap-content__heading h2 { margin: 0; font-size: clamp(34px, 4.2vw, 58px); line-height: 1.04; letter-spacing: -.04em; }
.sitemap-content__heading > p { max-width: 480px; margin: 0 0 6px; color: var(--map-muted); line-height: 1.6; }

.sitemap-layout { display: grid; grid-template-columns: minmax(285px, 360px) minmax(0, 1fr); gap: 24px; align-items: start; }
.sitemap-sidebar { display: grid; gap: 24px; }
.sitemap-panel { border: 1px solid var(--map-line); border-radius: 25px; background: #fff; box-shadow: 0 18px 55px rgba(11,46,36,.06); }
.sitemap-panel--compact { padding: 26px; }
.sitemap-panel--tree { padding: clamp(26px, 3vw, 42px); }
.sitemap-panel__heading { display: flex; gap: 15px; align-items: flex-start; }
.sitemap-panel__icon { display: grid; width: 44px; height: 44px; flex: 0 0 44px; place-items: center; border-radius: 12px; background: #e8f8f2; color: #087a58; font-size: 12px; font-weight: 900; }
.sitemap-panel__heading h2 { margin: 1px 0 4px; font-size: 20px; line-height: 1.2; }
.sitemap-panel__heading p { margin: 0; color: var(--map-muted); font-size: 14px; line-height: 1.5; }
.sitemap-panel__heading--actions { align-items: center; padding-bottom: 28px; border-bottom: 1px solid var(--map-line); }
.sitemap-panel__heading--actions > div:nth-child(2) { flex: 1; }
.sitemap-panel__actions { display: flex; gap: 8px; margin-left: auto; }
.sitemap-panel__actions button, .sitemap-empty button { border: 1px solid var(--map-line); border-radius: 10px; padding: 10px 13px; background: #f7faf8; color: var(--map-ink); cursor: pointer; font: inherit; font-size: 13px; font-weight: 750; }
.sitemap-panel__actions button:hover, .sitemap-empty button:hover { border-color: var(--map-green); color: #087a58; }

.sitemap-link-list { display: grid; gap: 3px; margin-top: 22px; }
.sitemap-link-list a { display: flex; gap: 12px; align-items: center; margin: 0 -10px; padding: 11px 10px; border-radius: 12px; color: var(--map-ink); text-decoration: none; transition: background .18s, transform .18s; }
.sitemap-link-list a:hover { background: #f0f9f5; transform: translateX(3px); }
.sitemap-link-list__marker { display: grid; width: 30px; height: 30px; flex: 0 0 30px; place-items: center; border: 1px solid var(--map-line); border-radius: 9px; color: #0b8c65; font-size: 13px; font-weight: 900; }
.sitemap-link-list a > span:last-child { min-width: 0; }
.sitemap-link-list strong, .sitemap-link-list small { display: block; }
.sitemap-link-list strong { font-size: 14px; line-height: 1.3; }
.sitemap-link-list small { overflow: hidden; margin-top: 3px; color: var(--map-muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }

.sitemap-tree__root, .sitemap-tree__children { margin: 0; padding: 0; list-style: none; }
.sitemap-tree__root { display: grid; gap: 12px; margin-top: 26px; }
.sitemap-tree__branch { border: 1px solid var(--map-line); border-radius: 16px; overflow: hidden; transition: border-color .18s, box-shadow .18s; }
.sitemap-tree__branch:has(details[open]) { border-color: #b8ddcf; box-shadow: 0 9px 30px rgba(11,46,36,.05); }
.sitemap-tree summary { display: flex; align-items: center; gap: 13px; min-height: 66px; padding: 13px 18px; cursor: pointer; font-size: 17px; font-weight: 800; list-style: none; user-select: none; }
.sitemap-tree summary::-webkit-details-marker { display: none; }
.sitemap-tree__folder { position: relative; width: 28px; height: 21px; flex: 0 0 28px; border-radius: 4px; background: #c9efe1; }
.sitemap-tree__folder::before { position: absolute; left: 2px; top: -5px; width: 12px; height: 7px; border-radius: 3px 3px 0 0; background: #7ddbb9; content: ""; }
.sitemap-tree__chevron { width: 10px; height: 10px; margin-left: auto; border-right: 2px solid #648077; border-bottom: 2px solid #648077; transform: rotate(45deg); transition: transform .2s; }
.sitemap-tree details[open] .sitemap-tree__chevron { transform: rotate(225deg); }
.sitemap-tree__overview { display: inline-flex; gap: 8px; align-items: center; margin: 0 18px 14px 59px; color: #087a58; font-size: 13px; font-weight: 750; text-decoration: none; }
.sitemap-tree__overview:hover { text-decoration: underline; }
.sitemap-tree__children { border-top: 1px solid #e4eee9; }
.sitemap-tree__leaf + .sitemap-tree__leaf { border-top: 1px solid #edf3f0; }
.sitemap-tree__leaf > a { display: flex; gap: 13px; align-items: center; padding: 16px 18px 16px 24px; color: var(--map-ink); text-decoration: none; transition: background .18s; }
.sitemap-tree__leaf > a:hover { background: #f2faf7; }
.sitemap-tree__page-icon { position: relative; width: 17px; height: 21px; flex: 0 0 17px; border: 1.5px solid #75a596; border-radius: 3px; }
.sitemap-tree__page-icon::after { position: absolute; right: -1.5px; top: -1.5px; width: 6px; height: 6px; border-left: 1.5px solid #75a596; border-bottom: 1.5px solid #75a596; background: #fff; content: ""; }
.sitemap-tree__link-copy { min-width: 0; flex: 1; }
.sitemap-tree__link-copy strong, .sitemap-tree__link-copy small { display: block; }
.sitemap-tree__link-copy strong { font-size: 15px; }
.sitemap-tree__link-copy small { margin-top: 4px; color: var(--map-muted); font-size: 12px; line-height: 1.4; }
.sitemap-tree__arrow { color: #0a966c; font-size: 18px; transition: transform .18s; }
.sitemap-tree__leaf > a:hover .sitemap-tree__arrow { transform: translateX(4px); }

.sitemap-empty { padding: 60px 20px 28px; text-align: center; }
.sitemap-empty strong { font-size: 22px; }
.sitemap-empty p { max-width: 440px; margin: 10px auto 18px; color: var(--map-muted); line-height: 1.55; }
.sitemap-note { display: flex; gap: 20px; align-items: flex-start; margin-top: 24px; padding: 30px 34px; border-radius: 22px; background: #0b3025; color: #fff; }
.sitemap-note__icon { display: grid; width: 44px; height: 44px; flex: 0 0 44px; place-items: center; border-radius: 50%; background: var(--map-green); font-size: 20px; font-weight: 900; }
.sitemap-note h2 { margin: 0 0 6px; color: #fff; font-size: 22px; }
.sitemap-note p { margin: 0; color: #bdd1ca; line-height: 1.55; }
.sitemap-note a { color: var(--map-mint); }
.sitemap-page [hidden], .sitemap-page .is-search-hidden { display: none !important; }

@media (max-width: 1024px) {
	.sitemap-hero__layout { grid-template-columns: 1fr; }
	.sitemap-hero__visual { display: none; }
	.sitemap-layout { grid-template-columns: 1fr; }
	.sitemap-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
	.sitemap-page .container { width: min(100% - 24px, 1440px); }
	.sitemap-hero { padding-top: 46px; }
	.sitemap-hero h1 { font-size: 46px; }
	.sitemap-hero__lead { margin-top: 20px; font-size: 17px; }
	.sitemap-search__control { min-height: 56px; padding-left: 15px; }
	.sitemap-search__control button { padding-inline: 8px; font-size: 0; }
	.sitemap-search__control button::after { content: "×"; font-size: 20px; }
	.sitemap-stats { grid-template-columns: 1fr; margin-top: 42px; }
	.sitemap-stats > div { padding: 16px 0; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.12); }
	.sitemap-stats > div:last-child { border-bottom: 0; }
	.sitemap-content__heading { display: block; }
	.sitemap-content__heading > p { margin-top: 18px; }
	.sitemap-sidebar { grid-template-columns: 1fr; }
	.sitemap-panel--tree, .sitemap-panel--compact { padding: 20px; border-radius: 19px; }
	.sitemap-panel__heading--actions { flex-wrap: wrap; }
	.sitemap-panel__actions { width: 100%; margin: 8px 0 0 59px; }
	.sitemap-panel__actions button { flex: 1; }
	.sitemap-tree summary { padding-inline: 14px; font-size: 15px; }
	.sitemap-tree__overview { margin-left: 54px; }
	.sitemap-tree__leaf > a { padding: 14px; }
	.sitemap-tree__link-copy small { display: none; }
	.sitemap-note { padding: 25px 22px; }
}

@media (prefers-reduced-motion: reduce) {
	.sitemap-page *, .sitemap-page *::before, .sitemap-page *::after { scroll-behavior: auto !important; transition: none !important; }
}
