/* Dark mode — token-friendly overrides for modern Grobonet */
body.dark-mode {
	background-color: #0f1720;
	color: #e8eef5;
}

body.dark-mode a {
	color: #81d4fa;
}

body.dark-mode a:hover {
	color: #4fc3f7;
}

/* Legacy pages without gn-modern still get a gentle dark base */
body.dark-mode:not(.gn-modern) *:not(#map):not(#map *) {
	background-color: inherit;
	color: inherit;
	border-color: #333;
}

body.dark-mode input,
body.dark-mode textarea,
body.dark-mode select,
body.dark-mode button {
	background-color: #1a2532;
	color: #e8eef5;
	border-color: #2a3a4c;
}

body.dark-mode table,
body.dark-mode th,
body.dark-mode td {
	background-color: #1a2532;
	color: #e8eef5;
	border-color: #2a3a4c;
}

body.dark-mode .card,
body.dark-mode .box,
body.dark-mode .panel,
body.dark-mode .widget,
body.dark-mode .modal,
body.dark-mode .popup {
	background-color: #1a2532 !important;
	color: #e8eef5 !important;
	border-color: #2a3a4c !important;
}

body.dark-mode:not(.gn-modern) img:not(#map img),
body.dark-mode:not(.gn-modern) video:not(#map video),
body.dark-mode:not(.gn-modern) iframe:not(#map iframe):not(.map-embed__frame) {
	filter: brightness(0.92);
}

body.dark-mode blockquote {
	border-left-color: #26758a;
	background: #15202b;
	color: #e8eef5;
}

body.dark-mode hr {
	border-color: #2a3a4c;
}

body.dark-mode pre,
body.dark-mode code {
	background: #15202b;
	color: #e8eef5;
}

body.dark-mode button:hover,
body.dark-mode input[type="submit"]:hover {
	filter: brightness(1.08);
}

body.dark-mode :focus {
	outline-color: #69decf;
}

body.dark-mode footer,
body.dark-mode #footerE {
	background-color: #0b1220;
	color: #e8eef5;
}
