/* The pages' fonts, served by the site itself (Fontsource variable builds, SIL Open Font License 1.1,
 * see fonts/OFL.txt): Figtree, JetBrains Mono and Orbitron, latin and latin-ext. A browser downloads a file
 * only for the characters and styles a page shows. File names carry their content hash. */
@font-face{font-family:"Figtree";font-style:normal;font-display:swap;font-weight:300 900;src:url("/assets/figtree-latin-ext-normal-bf7828e2c2-DCwSJGxG.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Figtree";font-style:normal;font-display:swap;font-weight:300 900;src:url("/assets/figtree-latin-normal-4ba7d3d096-D_ZTVpCC.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Figtree";font-style:italic;font-display:swap;font-weight:300 900;src:url("/assets/figtree-latin-ext-italic-a0cc105b32-Q0qr0lrZ.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Figtree";font-style:italic;font-display:swap;font-weight:300 900;src:url("/assets/figtree-latin-italic-7242fa62d1-BEAWuiTz.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"JetBrains Mono";font-style:normal;font-display:swap;font-weight:100 800;src:url("/assets/jetbrains-mono-latin-ext-normal-79bfdab9ba-DBQx-q_a.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"JetBrains Mono";font-style:normal;font-display:swap;font-weight:100 800;src:url("/assets/jetbrains-mono-latin-normal-18be452724-B9CIFXIH.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Orbitron";font-style:normal;font-display:swap;font-weight:400 900;src:url("/assets/orbitron-latin-normal-c25a9f9da5-Du7j2Vp2.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
/* Bootstrap Icons v1.11.3 (MIT, https://github.com/twbs/icons), only the icons the pages use:
 * built by scripts/subset-icons.py from vendor/bootstrap-icons. */
@font-face{font-display:block;font-family:bootstrap-icons;src:url("/assets/bootstrap-icons-6212990af6-B5MqfuDU.woff2") format("woff2")}.bi::before,[class*=" bi-"]::before,[class^=bi-]::before{display:inline-block;font-family:bootstrap-icons!important;font-style:normal;font-weight:400!important;font-variant:normal;text-transform:none;line-height:1;vertical-align:-.125em;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.bi-arrow-left-right::before{content:"\f12b"}.bi-arrow-repeat::before{content:"\f130"}.bi-box-arrow-right::before{content:"\f1c3"}.bi-broadcast::before{content:"\f1d6"}.bi-broadcast-pin::before{content:"\f1d5"}.bi-chat-dots-fill::before{content:"\f249"}.bi-check-lg::before{content:"\f633"}.bi-chevron-down::before{content:"\f282"}.bi-chevron-right::before{content:"\f285"}.bi-circle-half::before{content:"\f288"}.bi-clock-history::before{content:"\f292"}.bi-cloud-upload::before{content:"\f2c0"}.bi-copy::before{content:"\f759"}.bi-crosshair::before{content:"\f769"}.bi-dash-lg::before{content:"\f63b"}.bi-database::before{content:"\f8c4"}.bi-download::before{content:"\f30a"}.bi-exclamation-lg::before{content:"\f63c"}.bi-exclamation-triangle-fill::before{content:"\f33a"}.bi-geo-alt::before{content:"\f3e8"}.bi-globe::before{content:"\f3ee"}.bi-graph-up::before{content:"\f3f2"}.bi-grid-3x3-gap-fill::before{content:"\f3f8"}.bi-info-circle::before{content:"\f431"}.bi-info-lg::before{content:"\f646"}.bi-key::before{content:"\f44f"}.bi-layers::before{content:"\f45b"}.bi-list::before{content:"\f479"}.bi-moon::before{content:"\f497"}.bi-people-fill::before{content:"\f4cf"}.bi-person-circle::before{content:"\f4d7"}.bi-person-plus::before{content:"\f4dd"}.bi-phone::before{content:"\f4e7"}.bi-plus-lg::before{content:"\f64d"}.bi-reception-0::before{content:"\f510"}.bi-reception-1::before{content:"\f511"}.bi-reception-3::before{content:"\f513"}.bi-reception-4::before{content:"\f514"}.bi-rocket-takeoff::before{content:"\f845"}.bi-rss::before{content:"\f522"}.bi-search::before{content:"\f52a"}.bi-shield-check::before{content:"\f52f"}.bi-sliders::before{content:"\f56b"}.bi-sun::before{content:"\f5a2"}.bi-tag::before{content:"\f5b0"}.bi-thermometer-half::before{content:"\f5cd"}.bi-tools::before{content:"\f5db"}.bi-trash::before{content:"\f5de"}.bi-x-lg::before{content:"\f659"}/* required styles */

.leaflet-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-pane > svg,
.leaflet-pane > canvas,
.leaflet-zoom-box,
.leaflet-image-layer,
.leaflet-layer {
	position: absolute;
	left: 0;
	top: 0;
	}
.leaflet-container {
	overflow: hidden;
	}
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow {
	-webkit-user-select: none;
	   -moz-user-select: none;
	        user-select: none;
	  -webkit-user-drag: none;
	}
/* Prevents IE11 from highlighting tiles in blue */
.leaflet-tile::selection {
	background: transparent;
}
/* Safari renders non-retina tile on retina better with this, but Chrome is worse */
.leaflet-safari .leaflet-tile {
	image-rendering: -webkit-optimize-contrast;
	}
/* hack that prevents hw layers "stretching" when loading new tiles */
.leaflet-safari .leaflet-tile-container {
	width: 1600px;
	height: 1600px;
	-webkit-transform-origin: 0 0;
	}
.leaflet-marker-icon,
.leaflet-marker-shadow {
	display: block;
	}
/* .leaflet-container svg: reset svg max-width decleration shipped in Joomla! (joomla.org) 3.x */
/* .leaflet-container img: map is broken in FF if you have max-width: 100% on tiles */
.leaflet-container .leaflet-overlay-pane svg {
	max-width: none !important;
	max-height: none !important;
	}
.leaflet-container .leaflet-marker-pane img,
.leaflet-container .leaflet-shadow-pane img,
.leaflet-container .leaflet-tile-pane img,
.leaflet-container img.leaflet-image-layer,
.leaflet-container .leaflet-tile {
	max-width: none !important;
	max-height: none !important;
	width: auto;
	padding: 0;
	}

.leaflet-container img.leaflet-tile {
	/* See: https://bugs.chromium.org/p/chromium/issues/detail?id=600120 */
	mix-blend-mode: plus-lighter;
}

.leaflet-container.leaflet-touch-zoom {
	-ms-touch-action: pan-x pan-y;
	touch-action: pan-x pan-y;
	}
.leaflet-container.leaflet-touch-drag {
	-ms-touch-action: pinch-zoom;
	/* Fallback for FF which doesn't support pinch-zoom */
	touch-action: none;
	touch-action: pinch-zoom;
}
.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom {
	-ms-touch-action: none;
	touch-action: none;
}
.leaflet-container {
	-webkit-tap-highlight-color: transparent;
}
.leaflet-container a {
	-webkit-tap-highlight-color: rgba(51, 181, 229, 0.4);
}
.leaflet-tile {
	filter: inherit;
	visibility: hidden;
	}
.leaflet-tile-loaded {
	visibility: inherit;
	}
.leaflet-zoom-box {
	width: 0;
	height: 0;
	-moz-box-sizing: border-box;
	     box-sizing: border-box;
	z-index: 800;
	}
/* workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=888319 */
.leaflet-overlay-pane svg {
	-moz-user-select: none;
	}

.leaflet-pane         { z-index: 400; }

.leaflet-tile-pane    { z-index: 200; }
.leaflet-overlay-pane { z-index: 400; }
.leaflet-shadow-pane  { z-index: 500; }
.leaflet-marker-pane  { z-index: 600; }
.leaflet-tooltip-pane   { z-index: 650; }
.leaflet-popup-pane   { z-index: 700; }

.leaflet-map-pane canvas { z-index: 100; }
.leaflet-map-pane svg    { z-index: 200; }

.leaflet-vml-shape {
	width: 1px;
	height: 1px;
	}
.lvml {
	behavior: url(#default#VML);
	display: inline-block;
	position: absolute;
	}


/* control positioning */

.leaflet-control {
	position: relative;
	z-index: 800;
	pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
	pointer-events: auto;
	}
.leaflet-top,
.leaflet-bottom {
	position: absolute;
	z-index: 1000;
	pointer-events: none;
	}
.leaflet-top {
	top: 0;
	}
.leaflet-right {
	right: 0;
	}
.leaflet-bottom {
	bottom: 0;
	}
.leaflet-left {
	left: 0;
	}
.leaflet-control {
	float: left;
	clear: both;
	}
.leaflet-right .leaflet-control {
	float: right;
	}
.leaflet-top .leaflet-control {
	margin-top: 10px;
	}
.leaflet-bottom .leaflet-control {
	margin-bottom: 10px;
	}
.leaflet-left .leaflet-control {
	margin-left: 10px;
	}
.leaflet-right .leaflet-control {
	margin-right: 10px;
	}


/* zoom and fade animations */

.leaflet-fade-anim .leaflet-popup {
	opacity: 0;
	-webkit-transition: opacity 0.2s linear;
	   -moz-transition: opacity 0.2s linear;
	        transition: opacity 0.2s linear;
	}
.leaflet-fade-anim .leaflet-map-pane .leaflet-popup {
	opacity: 1;
	}
.leaflet-zoom-animated {
	-webkit-transform-origin: 0 0;
	    -ms-transform-origin: 0 0;
	        transform-origin: 0 0;
	}
svg.leaflet-zoom-animated {
	will-change: transform;
}

.leaflet-zoom-anim .leaflet-zoom-animated {
	-webkit-transition: -webkit-transform 0.25s cubic-bezier(0,0,0.25,1);
	   -moz-transition:    -moz-transform 0.25s cubic-bezier(0,0,0.25,1);
	        transition:         transform 0.25s cubic-bezier(0,0,0.25,1);
	}
.leaflet-zoom-anim .leaflet-tile,
.leaflet-pan-anim .leaflet-tile {
	-webkit-transition: none;
	   -moz-transition: none;
	        transition: none;
	}

.leaflet-zoom-anim .leaflet-zoom-hide {
	visibility: hidden;
	}


/* cursors */

.leaflet-interactive {
	cursor: pointer;
	}
.leaflet-grab {
	cursor: -webkit-grab;
	cursor:    -moz-grab;
	cursor:         grab;
	}
.leaflet-crosshair,
.leaflet-crosshair .leaflet-interactive {
	cursor: crosshair;
	}
.leaflet-popup-pane,
.leaflet-control {
	cursor: auto;
	}
.leaflet-dragging .leaflet-grab,
.leaflet-dragging .leaflet-grab .leaflet-interactive,
.leaflet-dragging .leaflet-marker-draggable {
	cursor: move;
	cursor: -webkit-grabbing;
	cursor:    -moz-grabbing;
	cursor:         grabbing;
	}

/* marker & overlays interactivity */
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-image-layer,
.leaflet-pane > svg path,
.leaflet-tile-container {
	pointer-events: none;
	}

.leaflet-marker-icon.leaflet-interactive,
.leaflet-image-layer.leaflet-interactive,
.leaflet-pane > svg path.leaflet-interactive,
svg.leaflet-image-layer.leaflet-interactive path {
	pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
	pointer-events: auto;
	}

/* visual tweaks */

.leaflet-container {
	background: #ddd;
	outline-offset: 1px;
	}
.leaflet-container a {
	color: #0078A8;
	}
.leaflet-zoom-box {
	border: 2px dotted #38f;
	background: rgba(255,255,255,0.5);
	}


/* general typography */
.leaflet-container {
	font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-size: 0.75rem;
	line-height: 1.5;
	}


/* general toolbar styles */

.leaflet-bar {
	box-shadow: 0 1px 5px rgba(0,0,0,0.65);
	border-radius: 4px;
	}
.leaflet-bar a {
	background-color: #fff;
	border-bottom: 1px solid #ccc;
	width: 26px;
	height: 26px;
	line-height: 26px;
	display: block;
	text-align: center;
	text-decoration: none;
	color: black;
	}
.leaflet-bar a,
.leaflet-control-layers-toggle {
	background-position: 50% 50%;
	background-repeat: no-repeat;
	display: block;
	}
.leaflet-bar a:hover,
.leaflet-bar a:focus {
	background-color: #f4f4f4;
	}
.leaflet-bar a:first-child {
	border-top-left-radius: 4px;
	border-top-right-radius: 4px;
	}
.leaflet-bar a:last-child {
	border-bottom-left-radius: 4px;
	border-bottom-right-radius: 4px;
	border-bottom: none;
	}
.leaflet-bar a.leaflet-disabled {
	cursor: default;
	background-color: #f4f4f4;
	color: #bbb;
	}

.leaflet-touch .leaflet-bar a {
	width: 30px;
	height: 30px;
	line-height: 30px;
	}
.leaflet-touch .leaflet-bar a:first-child {
	border-top-left-radius: 2px;
	border-top-right-radius: 2px;
	}
.leaflet-touch .leaflet-bar a:last-child {
	border-bottom-left-radius: 2px;
	border-bottom-right-radius: 2px;
	}

/* zoom control */

.leaflet-control-zoom-in,
.leaflet-control-zoom-out {
	font: bold 18px 'Lucida Console', Monaco, monospace;
	text-indent: 1px;
	}

.leaflet-touch .leaflet-control-zoom-in, .leaflet-touch .leaflet-control-zoom-out  {
	font-size: 22px;
	}


/* layers control */

.leaflet-control-layers {
	box-shadow: 0 1px 5px rgba(0,0,0,0.4);
	background: #fff;
	border-radius: 5px;
	}
.leaflet-control-layers-toggle {
	background-image: url(/assets/layers-2x-Bpkbi35X.png);
	background-size: 26px 26px;
	width: 36px;
	height: 36px;
	}
.leaflet-retina .leaflet-control-layers-toggle {
	background-image: url(/assets/layers-2x-Bpkbi35X.png);
	background-size: 26px 26px;
	}
.leaflet-touch .leaflet-control-layers-toggle {
	width: 44px;
	height: 44px;
	}
.leaflet-control-layers .leaflet-control-layers-list,
.leaflet-control-layers-expanded .leaflet-control-layers-toggle {
	display: none;
	}
.leaflet-control-layers-expanded .leaflet-control-layers-list {
	display: block;
	position: relative;
	}
.leaflet-control-layers-expanded {
	padding: 6px 10px 6px 6px;
	color: #333;
	background: #fff;
	}
.leaflet-control-layers-scrollbar {
	overflow-y: scroll;
	overflow-x: hidden;
	padding-right: 5px;
	}
.leaflet-control-layers-selector {
	margin-top: 2px;
	position: relative;
	top: 1px;
	}
.leaflet-control-layers label {
	display: block;
	font-size: 13px;
	font-size: 1.08333em;
	}
.leaflet-control-layers-separator {
	height: 0;
	border-top: 1px solid #ddd;
	margin: 5px -10px 5px -6px;
	}

/* Default icon URLs */
.leaflet-default-icon-path { /* used only in path-guessing heuristic, see L.Icon.Default */
	background-image: url(/assets/marker-icon-hN30_KVU.png);
	}


/* attribution and scale controls */

.leaflet-container .leaflet-control-attribution {
	background: #fff;
	background: rgba(255, 255, 255, 0.8);
	margin: 0;
	}
.leaflet-control-attribution,
.leaflet-control-scale-line {
	padding: 0 5px;
	color: #333;
	line-height: 1.4;
	}
.leaflet-control-attribution a {
	text-decoration: none;
	}
.leaflet-control-attribution a:hover,
.leaflet-control-attribution a:focus {
	text-decoration: underline;
	}
.leaflet-attribution-flag {
	display: inline !important;
	vertical-align: baseline !important;
	width: 1em;
	height: 0.6669em;
	}
.leaflet-left .leaflet-control-scale {
	margin-left: 5px;
	}
.leaflet-bottom .leaflet-control-scale {
	margin-bottom: 5px;
	}
.leaflet-control-scale-line {
	border: 2px solid #777;
	border-top: none;
	line-height: 1.1;
	padding: 2px 5px 1px;
	white-space: nowrap;
	-moz-box-sizing: border-box;
	     box-sizing: border-box;
	background: rgba(255, 255, 255, 0.8);
	text-shadow: 1px 1px #fff;
	}
.leaflet-control-scale-line:not(:first-child) {
	border-top: 2px solid #777;
	border-bottom: none;
	margin-top: -2px;
	}
.leaflet-control-scale-line:not(:first-child):not(:last-child) {
	border-bottom: 2px solid #777;
	}

.leaflet-touch .leaflet-control-attribution,
.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar {
	box-shadow: none;
	}
.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar {
	border: 2px solid rgba(0,0,0,0.2);
	background-clip: padding-box;
	}


/* popup */

.leaflet-popup {
	position: absolute;
	text-align: center;
	margin-bottom: 20px;
	}
.leaflet-popup-content-wrapper {
	padding: 1px;
	text-align: left;
	border-radius: 12px;
	}
.leaflet-popup-content {
	margin: 13px 24px 13px 20px;
	line-height: 1.3;
	font-size: 13px;
	font-size: 1.08333em;
	min-height: 1px;
	}
.leaflet-popup-content p {
	margin: 17px 0;
	margin: 1.3em 0;
	}
.leaflet-popup-tip-container {
	width: 40px;
	height: 20px;
	position: absolute;
	left: 50%;
	margin-top: -1px;
	margin-left: -20px;
	overflow: hidden;
	pointer-events: none;
	}
.leaflet-popup-tip {
	width: 17px;
	height: 17px;
	padding: 1px;

	margin: -10px auto 0;
	pointer-events: auto;

	-webkit-transform: rotate(45deg);
	   -moz-transform: rotate(45deg);
	    -ms-transform: rotate(45deg);
	        transform: rotate(45deg);
	}
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
	background: white;
	color: #333;
	box-shadow: 0 3px 14px rgba(0,0,0,0.4);
	}
.leaflet-container a.leaflet-popup-close-button {
	position: absolute;
	top: 0;
	right: 0;
	border: none;
	text-align: center;
	width: 24px;
	height: 24px;
	font: 16px/24px Tahoma, Verdana, sans-serif;
	color: #757575;
	text-decoration: none;
	background: transparent;
	}
.leaflet-container a.leaflet-popup-close-button:hover,
.leaflet-container a.leaflet-popup-close-button:focus {
	color: #585858;
	}
.leaflet-popup-scrolled {
	overflow: auto;
	}

.leaflet-oldie .leaflet-popup-content-wrapper {
	-ms-zoom: 1;
	}
.leaflet-oldie .leaflet-popup-tip {
	width: 24px;
	margin: 0 auto;

	-ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";
	filter: progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678);
	}

.leaflet-oldie .leaflet-control-zoom,
.leaflet-oldie .leaflet-control-layers,
.leaflet-oldie .leaflet-popup-content-wrapper,
.leaflet-oldie .leaflet-popup-tip {
	border: 1px solid #999;
	}


/* div icon */

.leaflet-div-icon {
	background: #fff;
	border: 1px solid #666;
	}


/* Tooltip */
/* Base styles for the element that has a tooltip */
.leaflet-tooltip {
	position: absolute;
	padding: 6px;
	background-color: #fff;
	border: 1px solid #fff;
	border-radius: 3px;
	color: #222;
	white-space: nowrap;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	pointer-events: none;
	box-shadow: 0 1px 3px rgba(0,0,0,0.4);
	}
.leaflet-tooltip.leaflet-interactive {
	cursor: pointer;
	pointer-events: auto;
	}
.leaflet-tooltip-top:before,
.leaflet-tooltip-bottom:before,
.leaflet-tooltip-left:before,
.leaflet-tooltip-right:before {
	position: absolute;
	pointer-events: none;
	border: 6px solid transparent;
	background: transparent;
	content: "";
	}

/* Directions */

.leaflet-tooltip-bottom {
	margin-top: 6px;
}
.leaflet-tooltip-top {
	margin-top: -6px;
}
.leaflet-tooltip-bottom:before,
.leaflet-tooltip-top:before {
	left: 50%;
	margin-left: -6px;
	}
.leaflet-tooltip-top:before {
	bottom: 0;
	margin-bottom: -12px;
	border-top-color: #fff;
	}
.leaflet-tooltip-bottom:before {
	top: 0;
	margin-top: -12px;
	margin-left: -6px;
	border-bottom-color: #fff;
	}
.leaflet-tooltip-left {
	margin-left: -6px;
}
.leaflet-tooltip-right {
	margin-left: 6px;
}
.leaflet-tooltip-left:before,
.leaflet-tooltip-right:before {
	top: 50%;
	margin-top: -6px;
	}
.leaflet-tooltip-left:before {
	right: 0;
	margin-right: -12px;
	border-left-color: #fff;
	}
.leaflet-tooltip-right:before {
	left: 0;
	margin-left: -12px;
	border-right-color: #fff;
	}

/* Printing */

@media print {
	/* Prevent printers from removing background-images of controls. */
	.leaflet-control {
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
		}
	}

/* #BEmesh colours: shared by the configurator, the map, stats and region map pages. Radio-Actief house style. */
:root {
  --gold: #d4a017;
  /* The open state of a bar button (☰, account): the same gold in both themes, as the bar is ink in both. */
  --topbar-open-ring: #d4a017;
  /* Gold as text: the dark shade on light backgrounds, where #d4a017 is too faint to read. */
  --gold-text: #7a5c00;
  --gold-bg: #fbf4dc;
  --ink: #1a202c;
  --mut: #64748b;
  /* Muted text on the cream --gold-bg: #64748b is 4.32:1 there, #4a5568 is 6.84:1. */
  --mut-on-gold-bg: #4a5568;
  --line: #e2e8f0;
  --ok: #1a7f37;
  --warn: #9a5b00;
  --bad: #c62828;
  --node: #1159af;
  --info-bg: #e8f0fe;
  --panel: #ffffff;
  --bar: #f7fafc;
  --page: #ffffff;
  --on-gold: #1f1600;
  --on-bad: #ffffff;
  --shadow: rgb(0 0 0 / 0.12);
  --backdrop: rgb(15 20 25 / 0.4);
  /* The command script and the console stay dark in both themes. */
  --code-bg: #12161f;
  --code-ink: #edf2f7;
  --code-mut: #a0aec0;
  --code-ok: #3fb950;
  --code-bad: #f85149;
  /* The top bar (Inktbalk) stays dark in both themes; its active tab is signal yellow. */
  --topbar-bg: #1a202c;
  --topbar-ink: #edf2f7;
  --topbar-mut: #a0aec0;
  --topbar-line: #2d3748;
  --topbar-control: #4a5568;
  --signal: #ffff00;
  /* Selected button in a segmented control: ink with signal yellow text. */
  --pressed-bg: #1a202c;
  --pressed-ink: #ffff00;
  --pressed-ring: transparent;
  --font-ui: "Figtree", system-ui, sans-serif;
  --font-display: "Orbitron", "Figtree", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  /* Glass: panels, popups and menus floating over the map. These opacities are the measured
   * minimum for readable text over any map background: never lower them. */
  --glass: rgb(255 255 255 / 0.82);
  --glass-bar: rgb(26 32 44 / 0.86);
  --glass-line: rgb(26 32 44 / 0.12);
  --glass-shadow: 0 8px 24px rgb(26 32 44 / 0.12), inset 0 1px 0 rgb(255 255 255 / 0.6);
  --glass-blur: blur(14px) saturate(140%);
  /* On glass the usual muted and link colours are too faint. */
  --glass-mut: #4a5568;
  --glass-link: #0d3c74;
  /* States: keyboard focus ring, primary button hover, field borders (--line is too faint for inputs). */
  --focus: #1159af;
  --gold-hover: #b8890f;
  --field-line: #64748b;
  /* The 2px rim around a single node on the map. */
  --node-rim: #1a202c;
  --dur: 150ms;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --gold-text: #d4a017;
    --gold-bg: #3a2f10;
    --ink: #edf2f7;
    --mut: #a0aec0;
    --mut-on-gold-bg: #a0aec0;
    --line: #2d3748;
    --ok: #3fb950;
    --warn: #d29922;
    --bad: #f85149;
    --on-bad: #12161f;
    --node: #63b3ed;
    --info-bg: #132a46;
    --panel: #1a202c;
    --bar: #12161f;
    --page: #12161f;
    --shadow: rgb(0 0 0 / 0.5);
    --backdrop: rgb(0 0 0 / 0.6);
    /* The ink button sits on an ink panel here, so it gets a 1px gold ring; the 2px yellow ring is focus only. */
    --pressed-ring: #d4a017;
    --glass: rgb(26 32 44 / 0.82);
    --glass-line: rgb(237 242 247 / 0.14);
    --glass-shadow: 0 8px 24px rgb(0 0 0 / 0.45), inset 0 1px 0 rgb(237 242 247 / 0.08);
    --glass-mut: #cbd5e0;
    --glass-link: #90cdf4;
    --focus: #ffff00;
    --field-line: #a0aec0;
    --node-rim: #edf2f7;
  }
}

:root[data-theme="light"] {
  color-scheme: light;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --gold-text: #d4a017;
  --gold-bg: #3a2f10;
  --ink: #edf2f7;
  --mut: #a0aec0;
  --mut-on-gold-bg: #a0aec0;
  --line: #2d3748;
  --ok: #3fb950;
  --warn: #d29922;
  --bad: #f85149;
  --on-bad: #12161f;
  --node: #63b3ed;
  --info-bg: #132a46;
  --panel: #1a202c;
  --bar: #12161f;
  --page: #12161f;
  --shadow: rgb(0 0 0 / 0.5);
  --backdrop: rgb(0 0 0 / 0.6);
  --pressed-ring: #d4a017;
  --glass: rgb(26 32 44 / 0.82);
  --glass-line: rgb(237 242 247 / 0.14);
  --glass-shadow: 0 8px 24px rgb(0 0 0 / 0.45), inset 0 1px 0 rgb(237 242 247 / 0.08);
  --glass-mut: #cbd5e0;
  --glass-link: #90cdf4;
  --focus: #ffff00;
  --field-line: #a0aec0;
  --node-rim: #edf2f7;
}

/* The theme's own surface colours, kept for the menus that open from the dark top bar. */
:root {
  --theme-panel: var(--panel);
  --theme-ink: var(--ink);
  --theme-mut: var(--mut);
  --theme-line: var(--line);
  --theme-bar: var(--bar);
  --theme-gold-bg: var(--gold-bg);
  --theme-gold-text: var(--gold-text);
  --theme-focus: var(--focus);
  --theme-field-line: var(--field-line);
}
/* #BEmesh shell: the top bar, page switcher, chips, buttons, cards and fields shared by the configurator and the tool pages. Colours come from bemesh-tokens.css. */

* {
  box-sizing: border-box;
}

/* Body text 13/18; a ratio, so larger text inside keeps a fitting line height. */
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 13px;
  line-height: calc(18 / 13);
}

/* Keys, call signs and commands. */
code,
kbd,
samp,
.mono {
  font-family: var(--font-mono);
}

button {
  font: inherit;
  font-size: inherit;
  color: inherit;
}

/* The ink bar: one row of 44px (the 1px line included) at every width. What doesn't fit moves into
 * the ☰ menu: the switcher, account and language below 1024px (bemesh-shell.css, each page's own css). */
.topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 12px;
  background: var(--topbar-bg);
  color: var(--topbar-ink);
  border-bottom: 1px solid var(--topbar-line);
  flex-wrap: nowrap;
  flex-shrink: 0;
  font-size: 12px;
  line-height: 16px;
  /* Chips, icons and switches on the bar take the bar's dark colours in both themes. */
  --panel: transparent;
  --ink: var(--topbar-ink);
  --mut: var(--topbar-mut);
  --line: var(--topbar-control);
  --bar: var(--topbar-line);
  /* Open, hovered and "on" controls: the dark gold, so the light bar text stays readable. */
  --gold-bg: #3a2f10;
  --gold-text: var(--gold);
  /* Focus ring and field borders on the bar. */
  --focus: var(--signal);
  --field-line: var(--topbar-mut);
  /* Above every Leaflet pane (up to 1000), so the ☰ menu and other top bar dropdowns open over the map. */
  position: relative;
  z-index: 1100;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
  white-space: nowrap;
}

.wordmark b {
  color: var(--gold-text);
}

.topbar .wordmark b {
  color: var(--signal);
}

/* Menus that open from the top bar keep the theme's own colours. */
.topbar .menu {
  --panel: var(--theme-panel);
  --ink: var(--theme-ink);
  --mut: var(--theme-mut);
  --line: var(--theme-line);
  --bar: var(--theme-bar);
  --gold-bg: var(--theme-gold-bg);
  --gold-text: var(--theme-gold-text);
  --focus: var(--theme-focus);
  --field-line: var(--theme-field-line);
  color: var(--ink);
}

/* The switcher starts at the same x (212px) in every tool. */
@media (min-width: 1024px) {
  .topbar .wordmark {
    min-width: 192px;
  }
}

/* Phone: 13px, the same "#BEmesh <page>" text; on a very narrow screen it ends in "…" rather than
 * pushing the buttons off the bar. */
@media (max-width: 600px) {
  .topbar .wordmark {
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 13px;
  }
}

.spacer {
  flex: 1;
}

/* The account chip and language switch mount into these; the wrappers take no gap of their own. */
.topbar > [data-account-chip],
.topbar > [data-lang-switch] {
  display: contents;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--line);
  font-size: 12px;
  white-space: nowrap;
  min-width: 0;
}

/* Text controls on the bar: Figtree 12/16, 24px high. */
.topbar .chip {
  height: 24px;
  padding: 0 10px;
  line-height: 16px;
}

.icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel);
  cursor: pointer;
}

.icon.on {
  background: var(--gold-bg);
  border-color: var(--gold);
}

/* Icon buttons on the bar: a 28px frame around a 16px Bootstrap icon, and a larger hit area
 * around the frame (32px, 44px on a phone) that takes no room in the row. */
.topbar .icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  padding: 0;
  color: var(--topbar-ink);
  font-size: 16px;
  line-height: 1;
}

.topbar .icon .bi::before {
  vertical-align: 0;
}

.topbar .icon::after {
  content: "";
  position: absolute;
  inset: -3px;
}

/* Phone: 44px hit areas that meet but don't overlap; the frames sit 16px apart. */
@media (max-width: 600px) {
  .topbar .icon {
    margin: 0 4px;
  }

  .topbar .icon::after {
    inset: -9px;
  }
}

.btn {
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel);
  cursor: pointer;
}

.btn.primary {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--on-gold);
  font-weight: 700;
}

.btn:disabled,
.btn[aria-disabled="true"] {
  background: var(--bar);
  border-color: var(--line);
  color: var(--mut);
  cursor: not-allowed;
}

.btn.small {
  padding: 3px 8px;
  font-size: 12px;
}

.segmented {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.segmented button {
  flex: 1;
  padding: 6px 4px;
  border: 0;
  border-left: 1px solid var(--line);
  background: var(--panel);
  cursor: pointer;
  font-size: 12px;
  white-space: nowrap;
}

.segmented button:first-child {
  border-left: 0;
}

.segmented button[aria-pressed="true"] {
  /* Ink fill: the focus ring is yellow, in both themes. */
  --focus: var(--signal);
  background: var(--pressed-bg);
  color: var(--pressed-ink);
  font-weight: 700;
  box-shadow: inset 0 0 0 1px var(--pressed-ring);
}

.switcher {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.switcher a {
  padding: 4px 10px;
  line-height: 16px;
  border-left: 1px solid var(--line);
  background: var(--panel);
  color: inherit;
  font-size: 12px;
  text-decoration: none;
  white-space: nowrap;
}

.switcher a:first-child {
  border-left: 0;
}

.switcher a:hover {
  background: var(--gold-bg);
}

.switcher a[aria-current="page"],
.switcher a[aria-current="page"]:hover {
  background: var(--signal);
  color: var(--topbar-bg);
  font-weight: 700;
}

/* Phone and tablet: each page shows these links in its ☰ menu instead. */
@media (max-width: 1023px) {
  .switcher {
    display: none;
  }
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.card h2 {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 8px;
  font-size: 14px;
}

.muted {
  color: var(--mut);
}

.input {
  width: 100%;
  padding: 7px 9px;
  border: 1px solid var(--field-line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
}

.input::placeholder {
  color: var(--mut);
}

/* A dropdown opened from a top bar icon or chip (☰, download, filters). */
.menu {
  position: absolute;
  z-index: 1000;
  min-width: 200px;
  padding: 6px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 6px 20px var(--shadow);
}

.menu a,
.menu button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 6px 8px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.menu a:hover,
.menu button:hover {
  background: var(--gold-bg);
}

/* Log out is a small form (a POST); it takes no room of its own. */
.menu-logout {
  margin: 0;
}

.menu hr {
  margin: 4px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.menu-wrap {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
}

/* Right-aligned under its button, just below the bar; menu-place.js keeps it inside the window. */
.menu-wrap .menu {
  top: calc(100% + 12px);
  right: 0;
}

/* The ☰ menu: the same in every #BEmesh tool. Rows of Figtree 13/18, 32px high (44px on a phone). */
.page-menu {
  width: 220px;
  max-width: calc(100vw - 16px);
  max-height: calc(100vh - 56px);
  max-height: calc(100dvh - 56px);
  overflow-y: auto;
  /* A swipe that reaches the end of the menu stops there instead of scrolling the page. */
  overscroll-behavior: contain;
  font-size: 13px;
  line-height: 18px;
  font-weight: 400;
}

.page-menu a,
.page-menu > button,
.page-menu .menu-logout button {
  min-height: 32px;
  padding: 7px 8px;
  white-space: normal;
}

.page-menu .menu-user {
  min-height: 32px;
  align-items: flex-start;
}

.page-menu .menu-check {
  margin-left: auto;
  font-size: 16px;
}

.page-menu .lang-switch button {
  min-height: 32px;
}

.menu[hidden] {
  display: none;
}

.menu a[aria-current="page"] {
  background: var(--gold-bg);
  font-weight: 700;
}

.menu a {
  white-space: nowrap;
}

.menu .ext {
  margin-left: auto;
  padding-left: 12px;
}

/* The account group's first row: the name as Discord shows it, the @handle under it. */
.menu-user {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6px 8px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.menu-handle {
  font-size: 12px;
  line-height: 16px;
  font-weight: 400;
  color: var(--mut);
}

/* The claimed-node count on My nodes (the map knows it), right-aligned. */
.menu-mynodes {
  margin-left: auto;
  padding-left: 12px;
  font-weight: 400;
  color: var(--mut);
}

.menu-mynodes[hidden] {
  display: none;
}

/* The tools are in the ☰ menu on a phone and a tablet only (the bar's switcher shows them on a computer). */
.menu .menu-page {
  display: none;
}

@media (max-width: 1023px) {
  .menu .menu-page {
    display: flex;
  }

  .menu hr.menu-page {
    display: block;
  }

  /* Sign in is in the ☰ menu here. */
  .topbar .signin-chip {
    display: none;
  }
}

@media (max-width: 600px) {
  /* Every row is a 44px tap target on a phone; a long menu scrolls instead of running off screen. */
  .menu a,
  .menu button,
  .page-menu a,
  .page-menu > button,
  .page-menu .menu-logout button,
  .page-menu .menu-user,
  .page-menu .lang-switch button {
    min-height: 44px;
  }

  .menu {
    max-height: calc(100dvh - 56px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

/* EN · NL · FR in the top bar; on a phone and a tablet it moves into the ☰ menu. The selected
 * language is light on ink, never yellow: the current tool is the bar's only yellow block. */
.lang-switch {
  display: inline-flex;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.lang-switch button {
  height: 24px;
  padding: 5px 7px;
  border: 0;
  border-left: 1px solid var(--line);
  background: var(--panel);
  font-size: 11px;
  line-height: 14px;
  font-weight: 600;
  cursor: pointer;
}

.lang-switch button:first-child {
  border-left: 0;
}

.lang-switch button:hover {
  background: var(--gold-bg);
}

.lang-switch button[aria-pressed="true"],
.lang-switch button[aria-pressed="true"]:hover {
  background: var(--topbar-ink);
  color: var(--topbar-bg);
  font-weight: 700;
}

.menu .lang-switch,
.menu hr.menu-lang {
  display: none;
}

.menu .lang-switch {
  margin: 2px 8px 4px;
}

.menu .lang-switch button {
  flex: 1;
  justify-content: center;
  width: auto;
  height: auto;
  padding: 6px 8px;
  border-radius: 0;
  border-left: 1px solid var(--line);
}

.menu .lang-switch button:first-child {
  border-left: 0;
}

/* In the menu: ink on the light glass, light in dark; never yellow. */
.menu .lang-switch button[aria-pressed="true"],
.menu .lang-switch button[aria-pressed="true"]:hover {
  background: var(--ink);
  color: var(--panel);
}

@media (max-width: 1023px) {
  .topbar .lang-switch:not(.menu-lang) {
    display: none;
  }

  .menu .lang-switch {
    display: flex;
  }

  .menu hr.menu-lang {
    display: block;
  }
}

.signin-chip {
  color: inherit;
  text-decoration: none;
}

.signin-chip:hover {
  background: var(--gold-bg);
  border-color: var(--gold);
}

/* The sign-in chip: below 1280 px it is a framed icon button in the same place, on every page. */
.signin-chip .bi {
  display: none;
}

@media (max-width: 1279px) {
  .topbar .signin-chip {
    width: 28px;
    height: 28px;
    padding: 0;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid #4a5568;
    position: relative;
  }
  .topbar .signin-chip .signin-text {
    display: none;
  }
  .topbar .signin-chip .bi {
    display: inline-block;
    font-size: 16px;
    color: #edf2f7;
  }
}

/* Signed in: the account button in the sign-in chip's place. A 28px circle with the person's
 * initial, light on the ink bar (never yellow: the current tool is the bar's only yellow block), in
 * the icon buttons' hit area (32px, 44px on a phone). On a phone the account is in ☰ only. */
.topbar .account-btn {
  border-radius: 50%;
  border-color: var(--topbar-ink);
  background: var(--topbar-ink);
  color: var(--topbar-bg);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
}

/* Open: the disc keeps its own colours, with the pressed ring of an ink control on ink (1px gold,
 * as --pressed-ring is wherever the ink button sits on ink; the bar is ink in both themes). */
.topbar .account-btn[aria-expanded="true"],
.topbar .icon[aria-expanded="true"] {
  box-shadow: 0 0 0 1px var(--topbar-open-ring);
}

.account-initial {
  line-height: 1;
}

@media (max-width: 600px) {
  .topbar .account-wrap {
    display: none;
  }
}

/* A panel floating on a Leaflet map. */
.map-float {
  position: absolute;
  z-index: 800;
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 2px 8px var(--shadow);
}

/* Leaflet's zoom buttons, credit line and labels take the page font; the credit line is 11px, the
 * smallest text the tools use. body: the configurator loads leaflet.css after this file. */
body .leaflet-container {
  font-family: var(--font-ui);
}

body .leaflet-container .leaflet-control-attribution {
  font-size: 11px;
  line-height: 14px;
}

/* Leaflet chrome follows the theme (load leaflet.css before this file). */
.leaflet-popup-content-wrapper,
.leaflet-popup-tip,
.leaflet-tooltip {
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 0 2px 8px var(--shadow);
}

.leaflet-tooltip-top::before,
.leaflet-tooltip-bottom::before,
.leaflet-tooltip-left::before,
.leaflet-tooltip-right::before {
  border-color: transparent;
}

.leaflet-container a.leaflet-popup-close-button {
  color: var(--mut);
}

.leaflet-bar {
  border: 1px solid var(--line);
  box-shadow: 0 2px 8px var(--shadow);
}

/* .leaflet-container: the configurator loads leaflet.css after this file, so plain .leaflet-bar a would lose. */
.leaflet-container .leaflet-bar a,
.leaflet-container .leaflet-bar a.leaflet-disabled {
  background: var(--panel);
  color: var(--ink);
  border-bottom-color: var(--line);
}

.leaflet-container .leaflet-bar a:hover {
  background: var(--gold-bg);
}

.leaflet-container .leaflet-bar a.leaflet-disabled {
  opacity: 0.5;
}

/* The map's credit line: solid, so its text and focus ring read over any tile.
 * .leaflet-control: the configurator loads leaflet.css after this file, so a tie would lose. */
.leaflet-container .leaflet-control-attribution.leaflet-control {
  background: var(--panel);
  color: var(--ink);
}

.leaflet-container .leaflet-control-attribution a {
  color: var(--node);
}

/* Dark map tiles: the OpenStreetMap layer only. Markers, polygons, popups and controls follow the tokens. */
.map-dark .osm-tiles {
  filter: invert(1) hue-rotate(180deg) brightness(0.95) contrast(0.9) saturate(0.7);
}

.leaflet-bar a.map-shade-button {
  width: 36px;
  height: 36px;
  line-height: 36px;
  font-size: 18px;
  text-decoration: none;
}

/* The ☰ menu's About box (src/shared/about.js). */
.about-dialog {
  width: min(440px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 10px 30px var(--shadow);
  overflow-y: auto;
  overflow-wrap: anywhere;
}

.about-dialog::backdrop {
  background: rgb(0 0 0 / 0.35);
}

.about-dialog h2 {
  margin: 0 0 4px;
  font-size: 17px;
}

.about-dialog h3 {
  margin: 14px 0 4px;
  font-size: 14px;
}

.about-dialog h4 {
  margin: 10px 0 2px;
  font-size: 13px;
  color: var(--mut);
}

.about-dialog p,
.about-dialog li {
  font-size: 13px;
  line-height: 1.45;
}

.about-dialog p {
  margin: 4px 0;
}

.about-dialog ul {
  margin: 2px 0 0;
  padding-left: 18px;
}

.about-dialog .sub {
  color: var(--mut);
}

.about-facts {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 12px;
  margin: 12px 0 0;
  font-size: 13px;
}

.about-facts dt {
  color: var(--mut);
}

.about-facts dd {
  margin: 0;
  font-weight: 600;
}

.about-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-top: 14px !important;
}

.about-links a {
  color: inherit;
}

.about-error {
  color: var(--bad, #c0392b);
}

.about-foot {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

/* Close on the glass box: no fill of its own, a field border. */
.about-dialog .about-foot .btn {
  background: transparent;
  border-color: var(--field-line);
}

/* Map clusters: gold with an ink rim, in both themes. */
.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
  background-color: rgb(212 160 23 / 0.35);
}

.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
  background-color: var(--gold);
  box-shadow: 0 0 0 2px var(--topbar-bg);
}

.marker-cluster span {
  color: var(--on-gold);
}

/* Glass: what floats over the map (search, filters, legends, popups, tooltips, dropdowns, menus and
 * dialogs). Never on fields, tables, code, content cards or anything yellow, and never glass on glass.
 * The top bar stays solid ink: nothing scrolls under it on these pages. */
.glass,
.map-float,
.menu,
.about-dialog,
.leaflet-container .leaflet-popup-content-wrapper,
.leaflet-container .leaflet-popup-tip,
.leaflet-container .leaflet-tooltip,
.bemesh-popup .maplibregl-popup-content,
.bemesh-popup .maplibregl-popup-tip {
  background: var(--glass);
  border-color: var(--glass-line);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  color: var(--ink);
  /* The usual muted and link colours are too faint on glass. */
  --mut: var(--glass-mut);
  --node: var(--glass-link);
}

.map-float,
.menu,
.about-dialog,
.leaflet-container .leaflet-popup-content-wrapper,
.bemesh-popup .maplibregl-popup-content {
  border-radius: 8px;
}

/* Menus that open from the top bar: glass in the theme's colours. */
.topbar .menu {
  --mut: var(--glass-mut);
}

/* No backdrop-filter, or the visitor asked for less transparency: solid panels. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass,
  .map-float,
  .menu,
  .about-dialog,
  .leaflet-container .leaflet-popup-content-wrapper,
  .leaflet-container .leaflet-popup-tip,
  .leaflet-container .leaflet-tooltip,
  .bemesh-popup .maplibregl-popup-content,
  .bemesh-popup .maplibregl-popup-tip {
    background: var(--panel);
  }
}

@media (prefers-reduced-transparency: reduce) {
  .glass,
  .map-float,
  .menu,
  .about-dialog,
  .leaflet-container .leaflet-popup-content-wrapper,
  .leaflet-container .leaflet-popup-tip,
  .leaflet-container .leaflet-tooltip,
  .bemesh-popup .maplibregl-popup-content,
  .bemesh-popup .maplibregl-popup-tip {
    background: var(--panel);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

/* Keyboard focus: always visible. Blue on light, yellow in dark and on the bar, ink on yellow. */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

/* Inside a clipped group the ring goes inside, or the group would cut it off. */
.segmented button:focus-visible,
.switcher a:focus-visible,
.lang-switch button:focus-visible,
.leaflet-container .leaflet-bar a:focus-visible {
  outline-offset: -2px;
}

.switcher a[aria-current="page"]:focus-visible,
.lang-switch button[aria-pressed="true"]:focus-visible {
  outline-color: var(--topbar-bg);
}

.menu .lang-switch button[aria-pressed="true"]:focus-visible {
  outline-color: var(--panel);
}

/* Hover: pale gold with a gold rim in the work area; the dark gold on the bar (set on .topbar).
 * Only with a real pointer: on a touch screen the hover look would stick after a tap. */
@media (hover: hover) {
  .btn:hover:not(:disabled, [aria-disabled="true"]),
  .icon:hover,
  .signin-chip:hover {
    background: var(--gold-bg);
    border-color: var(--gold);
  }

  /* No gold fill on the disc: only its rim turns gold. */
  .topbar .account-btn:hover {
    background: var(--topbar-ink);
    border-color: var(--gold);
  }

  .btn.primary:hover:not(:disabled, [aria-disabled="true"]) {
    background: var(--gold-hover);
    border-color: var(--gold-hover);
    color: var(--on-gold);
  }

  .segmented button:hover:not([aria-pressed="true"]) {
    background: var(--gold-bg);
  }
}

/* Colour and border fade; the layout never moves. */
.btn,
.icon,
.chip,
.input,
.switcher a,
.lang-switch button,
.segmented button,
.menu a,
.menu button,
.leaflet-container .leaflet-bar a {
  transition:
    background-color var(--dur) ease-out,
    border-color var(--dur) ease-out,
    color var(--dur) ease-out;
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .icon,
  .chip,
  .input,
  .switcher a,
  .lang-switch button,
  .segmented button,
  .menu a,
  .menu button,
  .leaflet-container .leaflet-bar a {
    transition: none;
  }
}

/* Fields: 16px text on a phone, or iOS zooms in on the field and the page stays zoomed. A floor
 * for every field on every page, so it outranks each page's own (smaller) field sizes. Pinch zoom
 * stays allowed: the viewport tag has no maximum-scale. */
@media (max-width: 600px) {
  input:not([type="checkbox"], [type="radio"], [type="range"], [type="hidden"], [type="color"], [type="file"]),
  select,
  textarea {
    font-size: 16px !important;
  }
}

/* A single node on the map: a 2px rim, dark on light and light in dark, so it reads on any tile. */
.node-icon {
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--node-rim);
}

/* /auth/signout and /auth/failed: the site's top bar, then one card in the middle of the page. */
.signout-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}
.signout-main {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 16px;
}
.signout {
  box-sizing: border-box;
  width: 100%;
  max-width: 28rem;
  padding: 24px;
}
.signout h1 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}
/* The partner's address under the consent page's title. */
.signout .signout-host {
  margin: -4px 0 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  color: var(--mut);
  overflow-wrap: anywhere;
}
.signout-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.signout-actions form {
  margin: 0;
}
.signout-actions a.btn {
  color: var(--ink);
  font: inherit;
  text-decoration: none;
}
.signout-actions a.btn.primary {
  font-weight: 700;
  color: var(--on-gold);
}
.signout-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  box-sizing: border-box;
  font: inherit;
}
.signout-actions .btn.primary {
  font-weight: 700;
}
@media (max-width: 600px) {
  .signout-actions .btn {
    min-height: 44px;
  }
}

/* A short word after something happened (logged out): a snackbar on ink, bottom centre, for 6 s,
 * like the map's notice when a map style can't load. */
.bemesh-toast {
  position: fixed;
  z-index: 2000;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  max-width: calc(100% - 32px);
  box-sizing: border-box;
  padding: 10px 14px;
  background: var(--topbar-bg);
  color: var(--topbar-ink);
  border-radius: 8px;
  box-shadow: 0 4px 16px var(--shadow);
  font: 13px/18px var(--font-ui);
}
.bemesh-toast .bi {
  flex: none;
  font-size: 16px;
}
.bemesh-toast[hidden] {
  display: none;
}
@media (max-width: 600px) {
  .bemesh-toast {
    bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  }
}
/* Stats page: tiles, cards and the playback shell under the shared #BEmesh top bar. */
:root {
  /* Growth and decline are status colours, apart from the node-type lines (repeaters are green too). */
  --stats-chart-added: var(--ok);
  --stats-chart-removed: var(--bad);
  --stats-chart-type-1: #2196f3;
  --stats-chart-type-2: #4caf50;
  --stats-chart-type-3: #9c27b0;
  --stats-chart-type-4: #0891b2;
  --stats-chart-total: var(--gold);
}

a {
  color: var(--node);
}

/* The preset and download dropdowns open with the is-open class that stats.js toggles. */
.stats-pop > .menu {
  display: none;
}

.stats-pop.is-open > .menu {
  display: block;
}

.stats-pop.is-open > .chip,
.stats-pop.is-open > .icon {
  background: var(--gold-bg);
  border-color: var(--gold);
}

button.chip {
  cursor: pointer;
  color: inherit;
  font-family: inherit;
}

/* The Preset chip: "Preset: All" with a chevron from 1280px; narrower, the bar has no room for it
 * and it is a sliders icon button among the tool actions (its label stays for screen readers). */
.stats-preset-icon {
  display: none;
}

#stats-preset-label {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 1279px) {
  .stats-body .topbar .spacer {
    display: none;
  }

  #stats-filter-menu {
    margin-left: auto;
  }

  #stats-filter-menu-trigger {
    position: relative;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border-radius: 8px;
    font-size: 16px;
  }

  #stats-filter-menu-trigger::after {
    content: "";
    position: absolute;
    inset: -3px;
  }

  .stats-preset-icon {
    display: inline-block;
  }

  .stats-preset-chevron {
    display: none;
  }

  #stats-preset-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

@media (max-width: 600px) {
  #stats-filter-menu-trigger {
    margin: 0 4px;
  }

  #stats-filter-menu-trigger::after {
    inset: -9px;
  }
}


.stats-download-btn img,
#stats-download-menu img {
  width: 16px;
  height: 16px;
}

.stats-filter-menu-dropdown {
  width: min(320px, calc(100vw - 24px));
  max-height: calc(100vh - 60px);
  overflow-y: auto;
}

@media (max-width: 600px) {
  .stats-pop > .menu.stats-filter-menu-dropdown,
  .stats-pop > .menu {
    position: fixed;
    top: 48px;
    left: 12px;
    right: 12px;
    width: auto;
  }
}

.stats-menu-title {
  padding: 4px 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stats-preset-dropdown button.is-active {
  background: var(--gold-bg);
  font-weight: 600;
}

.stats-filter-custom-details > summary {
  padding: 6px 8px;
  cursor: pointer;
  border-radius: 6px;
}

.stats-filter-custom-details > summary:hover {
  background: var(--bar);
}

.stats-preset-custom {
  padding: 6px 8px 4px;
  border-radius: 6px;
}

.stats-preset-custom.is-active {
  background: var(--gold-bg);
}

.stats-preset-custom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

.stats-preset-custom-grid label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 11px;
  color: var(--mut);
}

.stats-preset-custom-grid input {
  width: 100%;
  padding: 5px 7px;
  border: 1px solid var(--field-line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
}

.stats-preset-custom-grid input::placeholder {
  color: var(--mut);
}

#stats-preset-custom-apply {
  justify-content: center;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: var(--on-gold);
  font-weight: 700;
}

#stats-preset-custom-apply:hover {
  background: var(--gold);
  opacity: 0.9;
}

/* Page */
.stats-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 12px;
}

.stats-loading,
.stats-error {
  padding: 12px 0;
}

.stats-error {
  color: var(--bad);
}

/* No sync history yet: an empty state, not an error. */
.stats-error.is-empty {
  color: var(--mut);
  font-size: 13px;
  line-height: 18px;
}

/* Row 1: number tiles */
.stats-tiles {
  display: grid;
  /* One row of eight: Network, the four types, Active (three numbers, so a wider track with a
   * minimum), Claimed, Discord users. */
  grid-template-columns: minmax(0, 1.2fr) repeat(4, minmax(0, 1fr)) minmax(170px, 1.5fr) repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.stats-tiles .tile {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 0;
  text-align: left;
}

.tile.chip-filterable:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.tile-label {
  font-size: 11px;
  color: var(--mut);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tile-value {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.tile.is-hero {
  background: var(--gold-bg);
  border-color: var(--gold);
}

.tile.is-hero .tile-value {
  color: var(--gold-text);
  font-size: 24px;
}

.tile.is-hero .tile-label {
  color: var(--mut-on-gold-bg);
}

.tile.chip-filterable {
  cursor: pointer;
}

.tile.chip-filterable:hover {
  border-color: var(--mut);
}

.tile.chip-filterable.is-chart-filtered {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.stats-header-main.is-loading .tile-value {
  opacity: 0.4;
}

/* "Loading…" in a tile until the numbers come: body text at full strength, in the number's height. */
.stats-header-main .tile-value[data-i18n="stats.tile.loading"] {
  opacity: 1;
  font-size: 13px;
  font-weight: 400;
  line-height: 24px;
  color: var(--mut);
}

.stats-header-main .tile.is-hero .tile-value[data-i18n="stats.tile.loading"] {
  line-height: 29px;
  color: var(--mut-on-gold-bg);
}

/* Row 2: changes and playback */
.stats-chart-and-map {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.stats-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.stats-card-head h2 {
  margin: 0;
}

.stats-card-head .segmented {
  flex: 0 1 auto;
}

.stats-card-head .segmented button {
  padding: 4px 10px;
}

.stats-chart {
  min-width: 0;
}

#stats-chart {
  min-height: 300px;
}

/* Row 3: lists */
.stats-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.stats-top-cities-select {
  max-width: 55%;
  padding: 2px 8px;
  font: inherit;
  font-size: 12px;
  color: inherit;
  cursor: pointer;
}

.stats-rows {
  margin: 0;
  padding: 0;
  list-style: none;
}

.stats-rows li,
.stats-topday-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 0;
  border-top: 1px solid var(--line);
}

.stats-rows li:first-child,
.stats-topday-item:first-child {
  border-top: 0;
}

.stats-topday-rank {
  display: inline-block;
  min-width: 1.5em;
  font-variant-numeric: tabular-nums;
}

.stats-topday-value {
  color: var(--ok);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.stats-topday-empty {
  padding: 5px 0;
}

.stats-links-group + .stats-links-group {
  margin-top: 8px;
}

.stats-links-label {
  font-size: 11px;
}

.stats-links-group p {
  margin: 2px 0 0;
  line-height: 1.5;
}

.stats-link-desc {
  font-size: 11px;
  color: var(--mut);
}

.stats-footer-note {
  margin: 12px 0 0;
  font-size: 12px;
}

/* Timeline playback card: the shell is restyled; its inner controls keep their behaviour. */
.stats-playback {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.stats-playback h2 {
  margin-bottom: 8px;
}

.stats-playback-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.stats-playback .stats-map-container {
  position: relative;
  flex: 1;
  height: 420px;
  min-height: 340px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bar);
}

.stats-playback .stats-map-container #stats-map {
  position: relative;
  z-index: 0;
  height: 100%;
  width: 100%;
}

/* Counts panel, top-left on the map */
.playback-counts {
  top: 8px;
  left: 8px;
  padding: 5px 8px;
  font-size: 12px;
  line-height: 1.4;
}

.playback-counts b {
  font-weight: 700;
}

.playback-types {
  display: flex;
  gap: 10px;
  margin-top: 2px;
  font-size: 11px;
}

.playback-types > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.playback-types .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.playback-types .legend-count {
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* Control bar along the bottom edge */
.playback-bar {
  left: 8px;
  right: 8px;
  bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
}

.playback-bar .btn.primary {
  width: 30px;
  height: 30px;
  padding: 0;
  flex-shrink: 0;
  justify-content: center;
}

.playback-bar input[type="range"] {
  flex: 1;
  min-width: 0;
  height: 18px;
  margin: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
}

.playback-bar input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(to right, var(--gold) var(--fill, 0%), var(--line) var(--fill, 0%));
}

.playback-bar input[type="range"]::-moz-range-track {
  height: 4px;
  border-radius: 2px;
  background: var(--line);
}

.playback-bar input[type="range"]::-moz-range-progress {
  height: 4px;
  border-radius: 2px;
  background: var(--gold);
}

.playback-bar input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  margin-top: -5px;
  border: 2px solid var(--panel);
  border-radius: 50%;
  background: var(--gold);
}

.playback-bar input[type="range"]::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border: 2px solid var(--panel);
  border-radius: 50%;
  background: var(--gold);
}

.playback-bar input[type="range"]:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.playback-bar .segmented {
  flex-shrink: 0;
}

/* Zoom sits top-right under the full-screen icon; attribution rides above the bar */
.stats-map-container .leaflet-top.leaflet-right {
  margin-top: 38px;
}

.stats-map-container .leaflet-bottom.leaflet-right {
  margin-bottom: 52px;
}

.stats-links a {
  color: var(--node);
  text-decoration: none;
}

.stats-links a:hover {
  text-decoration: underline;
}

.stats-map-container:fullscreen,
.stats-map-container:-webkit-full-screen {
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-height: none !important;
  border: 0 !important;
  border-radius: 0 !important;
}

.stats-map-container:fullscreen > #stats-map,
.stats-map-container:-webkit-full-screen > #stats-map {
  height: 100% !important;
  width: 100% !important;
}

.stats-map-fullscreen-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 2px 8px var(--shadow);
}

.stats-map-fullscreen-btn .stats-map-fs-icon--exit,
.stats-map-fullscreen-btn[aria-pressed="true"] .stats-map-fs-icon--enter {
  display: none;
}

.stats-map-fullscreen-btn[aria-pressed="true"] .stats-map-fs-icon--exit {
  display: block;
}

/* Charts and Leaflet follow the theme */
.apexcharts-tooltip,
.apexcharts-xaxistooltip {
  font-family: inherit;
}

@media (max-width: 1023px) {
  .stats-chart-and-map {
    grid-template-columns: minmax(0, 1fr);
  }

  .stats-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-tiles {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  /* Four columns: Active and the last two tiles span two, so every row is full. */
  .tile.is-hero,
  .tile.tile--wide,
  .tile.tile--pair {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .stats-playback .stats-map-container {
    height: 340px;
    min-height: 340px;
  }
}

@media (max-width: 767px) {
  #stats-chart {
    min-height: 0;
  }

  .stats-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Two columns: Network and Active span the width, Claimed and Discord users share a row. */
  .tile.is-hero,
  .tile.tile--wide {
    grid-column: span 2;
  }

  .tile.tile--pair {
    grid-column: span 1;
  }

  .stats-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .stats-card-head {
    flex-wrap: wrap;
  }

  .stats-card-head .segmented {
    width: 100%;
  }

  .stats-card-head .segmented button {
    padding: 4px 2px;
  }
}

/* The map container clips anything outside it, so the focus ring goes inside. */
#stats-map:focus-visible {
  outline-offset: -2px;
}

/* A line series' legend swatch: a short line in its colour (bars keep a square). */
.legend-line {
  display: block;
  width: 100%;
  height: 3px;
  margin-top: 4.5px;
  border-radius: 2px;
}