/* MAPPPD map page ("Explore map") — side panel + full-height map; bottom sheet on phones.
   All rules are scoped to body.mp-theme so other pages are unaffected. */

body.mp-theme {
	--mp-navy: #0F2A3F;
	--mp-navy-2: #1E4566;
	--mp-blue: #1A5F9E;
	--mp-blue-light: #2E86C1;
	--mp-ink: #0F2A3F;
	--mp-muted: #4A6378;
	--mp-line: #DCE5EC;
	--mp-tint: #EEF4F9;
	--mp-orange: #D9671E;
	--mp-header: 56px;
	--mp-panel-w: 390px;
	font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif !important;
	font-size: 16px !important;
	color: var(--mp-ink);
	background: #F4F7FA;
	height: auto;
	padding-top: var(--mp-header);
}
body.mapppd-app footer { display: none; }

/* ---- Header (shared nav, restyled on this page) ---- */
body.mp-theme .nav,
body.mp-theme .nav.affix {
	top: 0;
	left: 0;
	height: var(--mp-header);
	line-height: var(--mp-header);
	padding: 0;
	background: var(--mp-navy);
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}
body.mp-theme .nav div.logo { padding-left: 16px; }
body.mp-theme .nav div.logo img { height: 40px; border-radius: 8px !important; vertical-align: middle; }
@media (min-width: 769px) {
	body.mp-theme .nav div.main_list,
	body.mp-theme .nav div.main_list ul,
	body.mp-theme .nav div.main_list ul li { height: var(--mp-header); }
	body.mp-theme .nav div.main_list ul li { padding-right: 6px; }
}
body.mp-theme .nav div.main_list ul li a {
	font-size: 14px !important;
	line-height: 36px;
	padding: 8px 12px;
	border-radius: 6px;
	color: #D6E2EC;
	text-transform: none;
}
body.mp-theme .nav div.main_list ul li a:hover { color: #FFFFFF; background: var(--mp-navy-2); }
body.mp-theme .nav div.main_list ul li:last-child a { color: #FFFFFF; background: var(--mp-navy-2); font-weight: 600; }
body.mp-theme .navTrigger i { animation: none !important; transition: transform 0.2s ease; }
body.mp-theme .navTrigger.active i:nth-child(1) { transform: translateY(9px) rotate(45deg); }
body.mp-theme .navTrigger.active i:nth-child(2) { opacity: 0; }
body.mp-theme .navTrigger.active i:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
@media (max-width: 768px) {
	body.mp-theme .nav div.main_list ul { background: var(--mp-navy); height: auto; padding-bottom: 12px; }
	body.mp-theme .nav div.main_list ul li { height: auto; padding: 0; }
	body.mp-theme .nav div.main_list ul li a { display: block; font-size: 17px !important; padding: 10px 20px; }
	body.mp-theme .navTrigger { right: 16px; }
}

/* ---- Layout ---- */
body.mp-theme .mp-app {
	display: flex;
	height: calc(100vh - var(--mp-header));
}
body.mp-theme .mp-panel {
	flex: 0 0 var(--mp-panel-w);
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding: 20px 20px 24px;
	overflow-y: auto;
	background: #FFFFFF;
	border-right: 1px solid var(--mp-line);
	z-index: 2;
}
body.mp-theme .mp-mapwrap { position: relative; flex: 1 1 auto; min-width: 0; }
body.mp-theme .map { height: 100% !important; width: 100%; background: #DCEAF3; }

/* ---- Panel content ---- */
body.mp-theme .mp-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
body.mp-theme .mp-title { margin: 0; font-size: 22px; line-height: 1.25; font-weight: 700; font-family: inherit; }
body.mp-theme .mp-version {
	flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 10px;
	border: 1px solid var(--mp-line); border-radius: 999px; background: #FFFFFF; color: var(--mp-blue);
	font-size: 13px; font-weight: 600; cursor: pointer;
}
body.mp-theme .mp-version:hover { background: var(--mp-tint); }
body.mp-theme .mp-subtitle { margin: 6px 0 0; font-size: 14px; color: var(--mp-muted); font-family: inherit; }
body.mp-theme .mp-subtitle strong { color: var(--mp-ink); }
body.mp-theme .mp-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
body.mp-theme .mp-stat { display: flex; flex-direction: column; padding: 10px; border-radius: 8px; background: var(--mp-tint); }
body.mp-theme .mp-stat-value { font-size: 18px; font-weight: 700; }
body.mp-theme .mp-stat-label { font-size: 12px; color: var(--mp-muted); }

body.mp-theme .mp-section { display: flex; flex-direction: column; gap: 10px; }
body.mp-theme .mp-section-label {
	font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mp-muted);
}
body.mp-theme .mp-tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 10px; background: var(--mp-tint); }
body.mp-theme .mp-tab {
	flex: 1 1 auto; min-height: 36px; padding: 6px 8px; border: 0; border-radius: 7px; background: transparent;
	color: #3D566B; font-size: 13px; font-weight: 500; cursor: pointer;
}
body.mp-theme .mp-tab:hover { color: var(--mp-ink); }
body.mp-theme .mp-tab.is-active { background: #FFFFFF; color: var(--mp-ink); font-weight: 600; box-shadow: 0 1px 2px rgba(15, 42, 63, 0.15); }
body.mp-theme .mp-tab:focus-visible,
body.mp-theme .mp-btn:focus-visible,
body.mp-theme .mp-linkbtn:focus-visible,
body.mp-theme .mp-mapbtn:focus-visible { outline: 3px solid #7FB6E3; outline-offset: 2px; }

body.mp-theme .mp-pane { display: flex; flex-direction: column; gap: 10px; }
body.mp-theme .mp-pane p { margin: 0; font-size: 14px; line-height: 1.5; color: #3D566B; }
body.mp-theme .mp-label { font-size: 13px; font-weight: 500; }
body.mp-theme .mp-hint { margin: 0; font-size: 12px !important; color: var(--mp-muted) !important; }
body.mp-theme .mp-pane .bootstrap-select > .dropdown-toggle {
	min-height: 44px; border: 1px solid #B9C9D6; border-radius: 8px; background: #FFFFFF; box-shadow: none;
	font-size: 14px; text-transform: none; color: var(--mp-ink); padding: 8px 12px;
}

body.mp-theme .mp-btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
body.mp-theme .mp-btn-row-quiet { gap: 14px; }
body.mp-theme .mp-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 8px 16px;
	border-radius: 8px; border: 1px solid transparent; font-size: 14px; font-weight: 600; text-decoration: none;
	text-transform: none; cursor: pointer; box-shadow: none;
}
body.mp-theme .mp-btn-primary { background: var(--mp-blue); color: #FFFFFF; }
body.mp-theme .mp-btn-primary:hover { background: #154E83; color: #FFFFFF; }
body.mp-theme .mp-btn-dark { background: var(--mp-navy); color: #FFFFFF; }
body.mp-theme .mp-btn-dark:hover { background: var(--mp-navy-2); color: #FFFFFF; }
body.mp-theme .mp-btn-outline { background: #FFFFFF; border-color: var(--mp-blue); color: var(--mp-blue); }
body.mp-theme .mp-btn-outline:hover { background: var(--mp-tint); }
body.mp-theme .mp-btn-block { width: 100%; box-sizing: border-box; }
body.mp-theme .mp-btn.is-disabled { background: #C9D6E0; color: #FFFFFF; pointer-events: none; }
body.mp-theme .mp-linkbtn {
	padding: 4px 2px; border: 0; background: none; color: var(--mp-blue); font-size: 13px; cursor: pointer; text-decoration: none;
}
body.mp-theme .mp-linkbtn:hover { color: var(--mp-ink); text-decoration: underline; }
body.mp-theme .mp-input {
	width: 100%; box-sizing: border-box; min-height: 40px; padding: 8px 12px; border: 1px solid #B9C9D6; border-radius: 8px;
	font-family: inherit; font-size: 14px;
}

/* Select menus are attached to <body> (data-container="body") so the scrolling panel can't clip them */
body.mp-theme .bs-container { z-index: 10400; }
body.mp-theme .bs-container .dropdown-menu {
	z-index: 10400; border: 1px solid var(--mp-line); border-radius: 10px; padding: 6px 0;
	box-shadow: 0 10px 28px rgba(15, 42, 63, 0.22); font-family: Inter, system-ui, sans-serif; font-size: 14px;
}
body.mp-theme .bs-container .dropdown-menu.inner { position: static; border: 0; border-radius: 0; padding: 0; box-shadow: none; }
body.mp-theme .bs-container .bs-searchbox { padding: 4px 8px 6px; }
body.mp-theme .bs-container .bs-searchbox .form-control { min-height: 38px; border: 1px solid #B9C9D6; border-radius: 8px; font-size: 14px; }
body.mp-theme .bs-container .bs-actionsbox { padding: 0 8px 6px; }
body.mp-theme .bs-container .bs-actionsbox .btn { font-size: 12px; text-transform: none; box-shadow: none; }
body.mp-theme .bs-container .dropdown-item { padding: 7px 14px; }
body.mp-theme .bs-container .dropdown-item .text-muted { font-size: 12px; margin-left: 6px; }

/* ---- Results ---- */
body.mp-theme .mp-btn-sm { min-height: 32px; padding: 4px 10px; font-size: 13px; font-weight: 600; }
body.mp-theme .mp-map-clear {
	position: absolute; left: 12px; top: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 8px;
	min-height: 40px; padding: 6px 14px; border: 0; border-radius: 999px; background: var(--mp-navy); color: #FFFFFF;
	font-size: 13px; font-weight: 600; box-shadow: 0 2px 8px rgba(15, 42, 63, 0.25); cursor: pointer;
}
body.mp-theme .mp-map-clear:hover { background: var(--mp-navy-2); }

body.mp-theme .mp-results-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
body.mp-theme .mp-results-title { margin: 0; font-size: 15px !important; font-weight: 700; font-family: inherit; }
body.mp-theme #mpResultsCount { font-weight: 500; color: var(--mp-muted); }
body.mp-theme .mp-spinner { font-size: 13px; color: var(--mp-muted); }
body.mp-theme .mp-results { display: flex; flex-direction: column; gap: 8px; }
body.mp-theme .mp-result {
	display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border: 1px solid var(--mp-line);
	border-radius: 10px; background: #FFFFFF;
}
body.mp-theme .mp-result:hover { border-color: #9FC0DC; }
body.mp-theme .mp-result.is-focused { border: 2px solid var(--mp-blue-light); background: #F5FAFE; }
body.mp-theme .mp-result-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
body.mp-theme .mp-result-name { margin: 0; font-size: 15px; font-weight: 600; font-family: inherit; }
body.mp-theme .mp-result-meta { flex: 0 0 auto; font-size: 12px; color: var(--mp-muted); }
body.mp-theme .mp-result-stats { font-size: 13px; color: #3D566B; }
body.mp-theme .mp-result-actions { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; }
body.mp-theme .mp-result-actions a { color: var(--mp-blue); text-decoration: none; padding: 4px 2px; }
body.mp-theme .mp-result-actions a:hover { text-decoration: underline; }

body.mp-theme .mp-chips { display: flex; flex-wrap: wrap; gap: 4px; }
body.mp-theme .mp-chip { padding: 2px 8px; border-radius: 999px; background: #E3ECF5; font-size: 12px; }
body.mp-theme .mp-chip-chpe { background: #FCEBDD; }
body.mp-theme .mp-chip-gepe { background: #E0F1FA; }
body.mp-theme .mp-chip-empe { background: #ECE6F4; }
body.mp-theme .mp-chip-kipe { background: #F7F0D6; }
body.mp-theme .mp-chip-mcpe { background: #F8E3E6; }

/* ---- Downloads ---- */
body.mp-theme .mp-downloads { margin-top: auto; display: flex; flex-direction: column; gap: 8px; padding-top: 14px; border-top: 1px solid #E3EAF0; }
body.mp-theme .mp-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 13px; }
body.mp-theme .mp-links a { color: var(--mp-blue); text-decoration: none; padding: 4px 2px; }
body.mp-theme .mp-links a:hover { text-decoration: underline; }
body.mp-theme .mp-links > span { color: #9AAEBE; }
body.mp-theme .mp-links-quiet, body.mp-theme .mp-links-quiet a, body.mp-theme .mp-links-quiet .mp-linkbtn { font-size: 12px; }
body.mp-theme .mp-citation { font-size: 14px; }
body.mp-theme .modal-backdrop { z-index: 10500; }
body.mp-theme .modal-title { font-family: inherit; }

/* ---- Map overlays ---- */
body.mp-theme .mp-legend {
	position: absolute; left: 12px; bottom: 12px; z-index: 1; display: flex; flex-direction: column; gap: 6px;
	padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.95);
	box-shadow: 0 2px 8px rgba(15, 42, 63, 0.12); font-size: 12px;
}
body.mp-theme .mp-legend-title { font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #3D566B; }
body.mp-theme .mp-legend-item { display: flex; align-items: center; gap: 8px; }
body.mp-theme .mp-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--mp-blue); box-shadow: 0 0 0 1.5px #FFFFFF, 0 0 0 2.5px var(--mp-blue); }
body.mp-theme .mp-dot-selected { width: 12px; height: 12px; background: var(--mp-orange); box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 4px var(--mp-orange); }

body.mp-theme .mp-mapbtns { position: absolute; right: 12px; top: 92px; z-index: 1; display: flex; flex-direction: column; gap: 8px; }
body.mp-theme .mp-mapbtn {
	width: 40px; height: 40px; border: 0; border-radius: 10px; background: #FFFFFF; color: var(--mp-ink);
	box-shadow: 0 2px 8px rgba(15, 42, 63, 0.15); cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
body.mp-theme .mp-mapbtn:hover { background: var(--mp-tint); }

/* OpenLayers controls */
body.mp-theme .ol-zoom { top: 12px; left: auto; right: 12px; padding: 0; border-radius: 10px; background: transparent; box-shadow: 0 2px 8px rgba(15, 42, 63, 0.15); }
body.mp-theme .ol-zoom button { width: 40px; height: 36px; margin: 0; border-radius: 0; background: #FFFFFF; color: var(--mp-ink); font-size: 20px; }
body.mp-theme .ol-zoom .ol-zoom-in { border-radius: 10px 10px 0 0; border-bottom: 1px solid #E3EAF0; }
body.mp-theme .ol-zoom .ol-zoom-out { border-radius: 0 0 10px 10px; }
body.mp-theme .ol-zoom button:hover, body.mp-theme .ol-zoom button:focus { background: var(--mp-tint); color: var(--mp-ink); outline: none; }
body.mp-theme .layer-switcher { top: 140px; right: 12px; }
body.mp-theme .layer-switcher button { width: 40px; height: 40px; border-radius: 10px; background-color: #FFFFFF; box-shadow: 0 2px 8px rgba(15, 42, 63, 0.15); }
body.mp-theme .layer-switcher.shown { border-radius: 10px; box-shadow: 0 4px 16px rgba(15, 42, 63, 0.2); font-size: 13px; }
body.mp-theme .ol-scale-line { left: auto; right: 12px; bottom: 34px; background: rgba(255, 255, 255, 0.85); border-radius: 4px; }
body.mp-theme .ol-scale-line-inner { color: #3D566B; border-color: #3D566B; font-size: 11px; }
body.mp-theme .ol-attribution { font-size: 11px; }
body.mp-theme .ol-attribution p { margin: 0; font-size: 11px !important; }

/* Site card (clicked point) */
body.mp-theme .mp-sitecard {
	position: relative; width: 290px; box-sizing: border-box; display: flex; flex-direction: column; gap: 10px; padding: 14px 16px;
	border-radius: 12px; background: #FFFFFF; box-shadow: 0 8px 24px rgba(15, 42, 63, 0.2); font-size: 13px; line-height: 1.4;
}
body.mp-theme .mp-sitecard::after {
	content: ""; position: absolute; left: 50%; bottom: -8px; margin-left: -8px;
	border: 8px solid transparent; border-bottom: 0; border-top-color: #FFFFFF;
}
body.mp-theme .mp-sitecard-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
body.mp-theme .mp-sitecard-name { font-weight: 700; font-size: 15px; }
body.mp-theme .mp-sitecard-meta { font-size: 12px; color: var(--mp-muted); }
body.mp-theme .mp-sitecard-stats { color: #3D566B; }
body.mp-theme .mp-sitecard-close {
	width: 32px; height: 32px; flex: 0 0 auto; border: 0; border-radius: 6px; background: var(--mp-tint); color: #3D566B; cursor: pointer;
}
body.mp-theme .mp-sitecard .mp-btn { min-height: 38px; padding: 6px 12px; font-size: 13px; }

/* Hover tooltip (Bootstrap popover) */
body.mp-theme .popover { font-family: inherit; border-radius: 8px; border: 0; box-shadow: 0 4px 14px rgba(15, 42, 63, 0.2); }
body.mp-theme .popover-body { padding: 6px 10px; font-size: 13px; font-weight: 600; color: var(--mp-ink); }

body.mp-theme .mp-sheet-handle, body.mp-theme .mp-search-pill { display: none; }

/* ---- Phones and small tablets: full-screen map + bottom sheet ---- */
@media (max-width: 991px) {
	body.mp-theme .mp-app { display: block; }
	body.mp-theme .mp-mapwrap { height: calc(100vh - var(--mp-header)); }
	body.mp-theme .mp-panel {
		position: fixed; left: 0; right: 0; bottom: 0; height: 38vh; max-height: 38vh;
		padding: 4px 16px 20px; border-right: 0; border-radius: 18px 18px 0 0;
		box-shadow: 0 -6px 24px rgba(15, 42, 63, 0.18); transition: height 0.25s ease, max-height 0.25s ease; z-index: 5;
	}
	body.mp-theme .mp-panel.is-expanded { height: 86vh; max-height: 86vh; }
	body.mp-theme .mp-sheet-handle {
		display: flex; align-self: center; flex: 0 0 auto; width: 72px; height: 28px; align-items: center; justify-content: center;
		border: 0; background: transparent; cursor: pointer;
	}
	body.mp-theme .mp-sheet-handle span { display: block; width: 40px; height: 5px; border-radius: 999px; background: #C9D6E0; }
	body.mp-theme .mp-search-pill {
		position: absolute; left: 12px; right: 64px; top: 12px; z-index: 2; display: flex; align-items: center; gap: 10px;
		min-height: 46px; padding: 0 14px; border: 0; border-radius: 12px; background: #FFFFFF; color: var(--mp-muted);
		font-size: 15px; text-align: left; box-shadow: 0 4px 14px rgba(15, 42, 63, 0.18); cursor: pointer;
	}
	body.mp-theme .mp-legend { bottom: calc(38vh + 12px); }
	body.mp-theme .ol-scale-line { bottom: calc(38vh + 34px); }
	body.mp-theme .ol-attribution { bottom: calc(38vh + 8px); }
	body.mp-theme .mp-sitecard { width: 260px; }
}

@media (max-width: 991px) {
	body.mp-theme .mp-map-clear { top: 66px; }
}

/* ---- Site summary page ---- */
body.mp-site { background: #F4F7FA; }
body.mp-site .mp-site { max-width: 1180px; margin: 0 auto; padding: 20px 20px 40px; display: flex; flex-direction: column; gap: 18px; }
body.mp-site .mp-back { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 4px 2px; color: var(--mp-blue); font-size: 14px; text-decoration: none; }
body.mp-site .mp-back:hover { text-decoration: underline; }
body.mp-site .mp-card { box-sizing: border-box; display: flex; flex-direction: column; gap: 14px; padding: 20px 22px; border: 1px solid var(--mp-line); border-radius: 14px; background: #FFFFFF; }
body.mp-site .mp-site-title-row { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px 20px; }
body.mp-site .mp-site-title { margin: 0; font-size: 28px; line-height: 1.2; font-weight: 700; font-family: inherit; }
body.mp-site .mp-site-meta { margin-top: 4px; font-size: 14px; color: var(--mp-muted); }
body.mp-site .mp-site-stats { grid-template-columns: repeat(3, minmax(0, 160px)); margin-top: 0; }
body.mp-site .mp-card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
body.mp-site .mp-card-head h2 { margin: 0; font-size: 18px !important; font-weight: 700; font-family: inherit; }
body.mp-site .mp-card-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
body.mp-site .mp-card-tools .bootstrap-select { width: 220px !important; }
body.mp-site .mp-card-tools .bootstrap-select > .dropdown-toggle {
	min-height: 40px; border: 1px solid #B9C9D6; border-radius: 8px; background: #FFFFFF; box-shadow: none;
	font-size: 14px; text-transform: none; color: var(--mp-ink); padding: 6px 12px;
}
body.mp-site .form-check-label { font-size: 14px; }
body.mp-site .mp-trend-stats { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 10px; background: var(--mp-tint); font-size: 14px; line-height: 1.5; }
body.mp-site .mp-trend-stats small { font-size: 12px; }
body.mp-site table.dataTable { font-size: 14px; border-collapse: collapse !important; }
body.mp-site table.dataTable thead th { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--mp-muted); border-bottom: 1px solid var(--mp-line) !important; }
body.mp-site table.dataTable tbody td { border-top: 1px solid #EEF2F5; padding: 8px 10px; }
body.mp-site .dataTables_wrapper { font-size: 14px; }
body.mp-site .dataTables_wrapper .dataTables_filter input { border: 1px solid #B9C9D6; border-radius: 8px; padding: 4px 10px; }
body.mp-site .mp-table-wrap { overflow-x: auto; }
@media (max-width: 600px) {
	body.mp-site .mp-site { padding: 12px 12px 32px; }
	body.mp-site .mp-card { padding: 16px; }
	body.mp-site .mp-site-title { font-size: 22px; }
	body.mp-site .mp-site-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---- Content pages (Sources, Contribute, 3D, Terms, 404) — reuse the .mp-site container/cards ---- */
body.mp-site .mp-site h1, body.mp-site .mp-site h2, body.mp-site .mp-site h3 { font-family: inherit; color: var(--mp-ink); }
body.mp-site .mp-page-title { margin: 0; font-size: 30px !important; line-height: 1.2; font-weight: 700; }
body.mp-site .mp-lead { margin: 0; max-width: 72ch; font-size: 16px; line-height: 1.6; color: #3D566B; }
body.mp-site .mp-eyebrow-dark, body.mp-site .mp-card p.mp-eyebrow-dark { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mp-blue); }
body.mp-site .mp-card p, body.mp-site .mp-card li { font-size: 15px; line-height: 1.6; color: #2C465B; }
body.mp-site .mp-card a { color: var(--mp-blue); }
body.mp-site .mp-card .mp-btn-primary, body.mp-site .mp-card .mp-btn-dark { color: #FFFFFF; }
body.mp-site .mp-media-row { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 24px; align-items: center; }
body.mp-site .mp-media-row img { width: 100%; border-radius: 12px; }
body.mp-site .mp-steps { display: flex; flex-direction: column; gap: 14px; counter-reset: step; }
body.mp-site .mp-step { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 16px; }
body.mp-site .mp-step-num { width: 36px; height: 36px; border-radius: 50%; background: var(--mp-navy); color: #FFFFFF; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; }
body.mp-site .mp-step-body { display: flex; flex-direction: column; gap: 10px; }
body.mp-site .mp-step-body h2 { margin: 6px 0 0; font-size: 18px !important; font-weight: 700; }
body.mp-site .mp-step-body p, body.mp-site .mp-step-body ol { margin: 0; }
body.mp-site .mp-kml { display: grid; grid-template-columns: repeat(2, minmax(0, 220px)); gap: 8px; }
body.mp-site .mp-figs { display: grid; grid-template-columns: repeat(2, minmax(0, 260px)); gap: 12px; }
body.mp-site .mp-figs figure { margin: 0; }
body.mp-site .mp-figs img { width: 100%; border-radius: 10px; border: 1px solid var(--mp-line); }
body.mp-site .mp-figs figcaption { font-size: 12px; color: var(--mp-muted); margin-top: 4px; }
body.mp-site .mp-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 28px; }
body.mp-site .mp-callout { padding: 14px 16px; border-radius: 10px; background: var(--mp-tint); }
body.mp-site .mp-callout h3 { margin: 0 0 6px; font-size: 15px !important; font-weight: 700; }
body.mp-site .mp-prose { gap: 0; }
body.mp-site .mp-prose > * { max-width: 80ch; }
body.mp-site .mp-prose h2 { margin: 22px 0 6px; font-size: 19px !important; font-weight: 700; }
body.mp-site .mp-prose h3 { margin: 16px 0 4px; font-size: 16px !important; font-weight: 700; }
body.mp-site .mp-prose p { margin: 0 0 10px; }
body.mp-site .mp-prose ol { padding-left: 22px; margin: 0 0 10px; }
body.mp-site .mp-prose hr { height: 0; margin: 18px 0; border: 0; border-top: 1px solid var(--mp-line); background: none; opacity: 1; }
body.mp-site .mp-toc { display: flex; flex-wrap: wrap; gap: 6px; }
body.mp-site .mp-toc a { padding: 4px 10px; border-radius: 999px; background: var(--mp-tint); font-size: 13px; text-decoration: none; }
body.mp-site .mp-error { align-items: flex-start; padding: 40px 32px; }
body.mp-site .mp-error-code { font-size: 64px; font-weight: 700; line-height: 1; color: var(--mp-blue-light); }
@media (max-width: 760px) {
	body.mp-site .mp-media-row, body.mp-site .mp-two { grid-template-columns: minmax(0, 1fr); }
	body.mp-site .mp-media-row img { max-width: 220px; }
	body.mp-site .mp-kml, body.mp-site .mp-figs { grid-template-columns: minmax(0, 1fr); }
	body.mp-site .mp-step { grid-template-columns: minmax(0, 1fr); }
	body.mp-site .mp-page-title { font-size: 24px !important; }
}

/* ---- Homepage ---- */
body.mp-home { background: #FFFFFF; }
body.mp-home h1, body.mp-home h2, body.mp-home h3 { font-family: inherit; }
body.mp-theme .mp-hero {
	position: relative; color: #FFFFFF;
	background: linear-gradient(90deg, rgba(15, 42, 63, 0.92) 0%, rgba(15, 42, 63, 0.72) 45%, rgba(15, 42, 63, 0.25) 100%), url("/static/img/Gentoo_background.b5cca9462369.jpg") center / cover no-repeat;
}
body.mp-theme .mp-hero-inner { max-width: 1180px; margin: 0 auto; padding: 88px 20px 40px; display: flex; flex-direction: column; gap: 18px; }
body.mp-theme .mp-eyebrow { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #A9CCE8; }
body.mp-theme .mp-hero h1 { margin: 0; max-width: 18ch; font-size: 48px; line-height: 1.1; font-weight: 700; color: #FFFFFF; }
body.mp-theme .mp-hero-lead { margin: 0; max-width: 56ch; font-size: 18px; line-height: 1.6; color: #DCE8F1; }
body.mp-theme .mp-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
body.mp-theme .mp-btn-lg { min-height: 48px; padding: 10px 20px; font-size: 15px; }
body.mp-theme .mp-btn-light { background: #FFFFFF; color: var(--mp-navy); }
body.mp-theme .mp-btn-light:hover { background: var(--mp-tint); color: var(--mp-navy); }
body.mp-theme .mp-btn-ghost { background: transparent; border-color: rgba(255, 255, 255, 0.55); color: #FFFFFF; }
body.mp-theme .mp-btn-ghost:hover { background: rgba(255, 255, 255, 0.12); color: #FFFFFF; }
body.mp-theme .mp-hero-stats { max-width: 1180px; margin: 0 auto; padding: 0 20px 36px; display: grid; grid-template-columns: repeat(4, minmax(0, 200px)); gap: 10px; }
body.mp-theme .mp-hero-stat { padding: 14px 16px; border-radius: 12px; background: rgba(15, 42, 63, 0.6); border: 1px solid rgba(255, 255, 255, 0.16); backdrop-filter: blur(4px); }
body.mp-theme .mp-hero-stat strong { display: block; font-size: 26px; font-weight: 700; line-height: 1.2; }
body.mp-theme .mp-hero-stat span { font-size: 13px; color: #C6D8E6; }

body.mp-theme .mp-home { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
body.mp-theme .mp-hsec { padding: 56px 0; border-bottom: 1px solid var(--mp-line); scroll-margin-top: var(--mp-header); }
body.mp-theme .mp-hsec:last-child { border-bottom: 0; }
body.mp-theme .mp-hsec-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 26px; max-width: 72ch; }
body.mp-theme .mp-hsec-head h2 { margin: 0; font-size: 30px !important; line-height: 1.2; font-weight: 700; color: var(--mp-ink); }
body.mp-theme .mp-hsec-head p, body.mp-theme .mp-hsec p { margin: 0; font-size: 16px; line-height: 1.65; color: #3D566B; }
body.mp-theme .mp-grid { display: grid; gap: 16px; }
body.mp-theme .mp-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
body.mp-theme .mp-grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
body.mp-theme .mp-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
body.mp-theme .mp-feature { display: flex; flex-direction: column; gap: 10px; padding: 20px; border: 1px solid var(--mp-line); border-radius: 14px; background: #FFFFFF; color: var(--mp-ink); text-decoration: none; transition: box-shadow 0.15s ease, border-color 0.15s ease; }
body.mp-theme a.mp-feature:hover { border-color: #B9CFE0; box-shadow: 0 6px 20px rgba(15, 42, 63, 0.08); color: var(--mp-ink); }
body.mp-theme .mp-feature-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--mp-tint); color: var(--mp-blue); display: inline-flex; align-items: center; justify-content: center; font-size: 17px; }
body.mp-theme .mp-feature h3 { margin: 0; font-size: 17px !important; font-weight: 700; }
body.mp-theme .mp-feature p { font-size: 14px !important; line-height: 1.55; }
body.mp-theme .mp-feature-more { margin-top: auto; font-size: 14px; font-weight: 600; color: var(--mp-blue); }
body.mp-theme .mp-feature .mp-links a { font-size: 14px; }

body.mp-theme .mp-about { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 32px; align-items: start; }
body.mp-theme .mp-about-text { display: flex; flex-direction: column; gap: 14px; }
body.mp-theme .mp-about-text p { font-size: 17px; }
body.mp-theme .mp-award { display: flex; gap: 16px; align-items: center; padding: 18px; border-radius: 14px; background: var(--mp-tint); }
body.mp-theme .mp-award img { width: 72px; height: auto; flex: 0 0 auto; }
body.mp-theme .mp-award p { font-size: 15px !important; color: var(--mp-ink) !important; }

body.mp-theme .mp-person { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
body.mp-theme .mp-person img { width: 132px; height: 132px; border-radius: 50%; object-fit: cover; border: 4px solid var(--mp-tint); }
body.mp-theme .mp-person strong { display: block; font-size: 16px; }
body.mp-theme .mp-person span { font-size: 14px; color: var(--mp-muted); }

body.mp-theme .mp-logo-card { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 10px; padding: 16px; min-height: 150px; border: 1px solid var(--mp-line); border-radius: 14px; background: #FFFFFF; color: var(--mp-ink); text-decoration: none; text-align: center; }
body.mp-theme .mp-logo-card:hover { border-color: #B9CFE0; box-shadow: 0 6px 20px rgba(15, 42, 63, 0.08); color: var(--mp-ink); }
body.mp-theme .mp-logo-card img { max-width: 100%; max-height: 80px; object-fit: contain; }
body.mp-theme .mp-logo-card span { font-size: 14px; font-weight: 600; }
body.mp-theme .mp-logo-card.is-dark { background: var(--mp-navy); color: #FFFFFF; }

body.mp-theme .mp-pub { display: flex; flex-direction: column; gap: 12px; padding: 16px; border: 1px solid var(--mp-line); border-radius: 14px; background: #FFFFFF; color: var(--mp-ink); text-decoration: none; }
body.mp-theme .mp-pub:hover { border-color: #B9CFE0; box-shadow: 0 6px 20px rgba(15, 42, 63, 0.08); color: var(--mp-ink); }
body.mp-theme .mp-pub-img { height: 160px; border-radius: 10px; background: var(--mp-tint); display: flex; align-items: center; justify-content: center; overflow: hidden; }
body.mp-theme .mp-pub-img img { max-height: 140px; max-width: 90%; object-fit: contain; box-shadow: 0 2px 8px rgba(15, 42, 63, 0.15); }
body.mp-theme .mp-pub strong { font-size: 16px; }
body.mp-theme .mp-pub span { font-size: 14px; color: var(--mp-muted); line-height: 1.5; }

body.mp-theme .mp-band { margin: 0 -20px; padding: 44px 20px; border-radius: 0; background: var(--mp-navy); color: #FFFFFF; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
body.mp-theme .mp-band h2 { margin: 0 0 8px; font-size: 28px !important; font-weight: 700; color: #FFFFFF; }
body.mp-theme .mp-band p { margin: 0; max-width: 60ch; color: #D6E2EC !important; font-size: 16px; line-height: 1.6; }
body.mp-theme .mp-endorse { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
body.mp-theme .mp-endorse-logos { display: flex; flex-wrap: wrap; gap: 12px; }
body.mp-theme .mp-endorse-logos a { display: inline-flex; align-items: center; justify-content: center; width: 140px; height: 110px; padding: 12px; border: 1px solid var(--mp-line); border-radius: 12px; background: #FFFFFF; }
body.mp-theme .mp-endorse-logos img { max-width: 100%; max-height: 100%; object-fit: contain; }

@media (min-width: 992px) {
	body.mp-theme .mp-band { margin: 0; border-radius: 18px; padding: 40px; }
}
@media (max-width: 991px) {
	body.mp-theme .mp-grid-4, body.mp-theme .mp-grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	body.mp-theme .mp-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	body.mp-theme .mp-about, body.mp-theme .mp-endorse { grid-template-columns: minmax(0, 1fr); }
	body.mp-theme .mp-hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
	body.mp-theme .mp-hero-inner { padding: 48px 16px 28px; }
	body.mp-theme .mp-hero h1 { font-size: 34px; }
	body.mp-theme .mp-hero-lead { font-size: 16px; }
	body.mp-theme .mp-hero-stats { padding: 0 16px 28px; }
	body.mp-theme .mp-hero-stat strong { font-size: 21px; }
	body.mp-theme .mp-home { padding: 0 16px; }
	body.mp-theme .mp-hsec { padding: 40px 0; }
	body.mp-theme .mp-hsec-head h2 { font-size: 24px !important; }
	body.mp-theme .mp-grid-3 { grid-template-columns: minmax(0, 1fr); }
	body.mp-theme .mp-grid-4.mp-features { grid-template-columns: minmax(0, 1fr); }
	body.mp-theme .mp-person img { width: 104px; height: 104px; }
	body.mp-theme .mp-band { margin: 0 -16px; padding: 36px 16px; }
	body.mp-theme .mp-hero-actions .mp-btn { flex: 1 1 100%; }
}

/* ---- Footer ---- */
body.mp-theme footer.mp-footer { margin-top: 0; background: var(--mp-navy); color: #C6D8E6; font-size: 14px; }
body.mp-theme .mp-footer-inner { max-width: 1180px; margin: 0 auto; padding: 44px 20px 28px; display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 28px; }
body.mp-theme .mp-footer-brand { display: flex; flex-direction: column; gap: 12px; }
body.mp-theme .mp-footer-logo { display: inline-flex; align-items: center; gap: 10px; color: #FFFFFF; text-decoration: none; font-weight: 700; font-size: 17px; letter-spacing: 0.04em; }
body.mp-theme .mp-footer-logo img { width: 40px; height: 40px; border-radius: 8px; }
body.mp-theme .mp-footer-brand p { margin: 0; max-width: 40ch; line-height: 1.6; color: #C6D8E6; font-size: 14px; }
body.mp-theme .mp-footer-oceanites img { height: 44px; width: auto; opacity: 0.95; }
body.mp-theme .mp-footer h2 { margin: 0 0 12px; font-family: inherit; font-size: 12px !important; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #8FB3CF; }
body.mp-theme .mp-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
body.mp-theme .mp-footer a { color: #E4EEF5; text-decoration: none; }
body.mp-theme .mp-footer a:hover { color: #FFFFFF; text-decoration: underline; }
body.mp-theme .mp-footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); }
body.mp-theme .mp-footer-bottom-inner { max-width: 1180px; margin: 0 auto; padding: 16px 20px 20px; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: #9DB7CB; }
body.mp-theme .mp-footer-bottom-inner span + span::before { content: "·"; margin-right: 18px; color: #5C7D96; }
@media (max-width: 991px) {
	body.mp-theme .mp-footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	body.mp-theme .mp-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
	body.mp-theme .mp-footer-inner { padding: 36px 16px 24px; gap: 24px 16px; }
	body.mp-theme .mp-footer-bottom-inner { padding: 14px 16px 18px; flex-direction: column; }
	body.mp-theme .mp-footer-bottom-inner span + span::before { content: none; }
}

/* ---- Help modals ---- */
body.mp-theme .mp-help { border: 0; border-radius: 14px; font-family: inherit; color: var(--mp-ink); }
body.mp-theme .mp-help .modal-header, body.mp-theme .mp-help .modal-footer { border-color: var(--mp-line); }
body.mp-theme .mp-help .modal-title { font-size: 18px; font-weight: 700; }
body.mp-theme .mp-help .modal-body { font-size: 15px; line-height: 1.55; }
body.mp-theme .mp-help .modal-body p { margin: 0 0 12px; color: #2C465B; }
body.mp-theme .mp-help h6 { margin: 18px 0 8px; font-family: inherit; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mp-muted); }
body.mp-theme .mp-help-steps { list-style: none; counter-reset: helpstep; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
body.mp-theme .mp-help-steps li { counter-increment: helpstep; position: relative; padding: 12px 14px 12px 50px; border-radius: 10px; background: var(--mp-tint); }
body.mp-theme .mp-help-steps li::before { content: counter(helpstep); position: absolute; left: 14px; top: 12px; width: 24px; height: 24px; border-radius: 50%; background: var(--mp-navy); color: #FFFFFF; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
body.mp-theme .mp-help .modal-body .mp-help-steps li p { margin: 6px 0 0; font-size: 14px; }
body.mp-theme .mp-help-btn { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 7px; border: 1px solid var(--mp-blue); font-size: 13px; font-weight: 600; }
body.mp-theme .mp-help-btn-outline { background: #FFFFFF; color: var(--mp-blue); }
body.mp-theme .mp-help-btn-primary { background: var(--mp-blue); color: #FFFFFF; }
body.mp-theme .mp-help-keys { margin: 0; padding-left: 18px; font-size: 14px; color: #2C465B; }
body.mp-theme .mp-help-keys li { margin-bottom: 4px; }
body.mp-theme .mp-help kbd { padding: 1px 6px; border: 1px solid #B9C9D6; border-bottom-width: 2px; border-radius: 5px; background: #FFFFFF; color: var(--mp-ink); font-family: inherit; font-size: 12px; font-weight: 600; box-shadow: none; }
