/* Kronospan branding for Weblate (served via weblate_customization). Works in light, dark and auto themes. */
.navbar-brand > svg, .navbar-brand > img { width: auto !important; height: 1.4em; max-height: 1.4em; }
.navbar-brand svg path, .navbar-brand svg .cls-1 { fill: #ffffff !important; }
.navbar .navbar-brand:focus path, .navbar .navbar-brand:active path { fill: #ffffff !important; }

/* Light theme only: Kronospan light grey page background (explicit light, or auto + light system) */
html[data-bs-theme="light"] body { background-color: #f7f5f5; }
@media (prefers-color-scheme: light) { html:not([data-bs-theme="dark"]) body { background-color: #f7f5f5; } }

/* Dark theme: readable primary buttons and tabs (dark link colour is too pale behind white text) */
html[data-bs-theme="dark"] { --wl-primary-button-color: #2f6fc4; --wl-focus-color: #2f6fc4; }
html[data-bs-theme="dark"] .btn-primary { background-color: #2f6fc4; border-color: #2f6fc4; color: #fff; }
html[data-bs-theme="dark"] .btn-primary:hover, html[data-bs-theme="dark"] .btn-primary:focus { background-color: #1b4f91; border-color: #1b4f91; }
@media (prefers-color-scheme: dark) {
  html:not([data-bs-theme="light"]) { --wl-primary-button-color: #2f6fc4; --wl-focus-color: #2f6fc4; }
  html:not([data-bs-theme="light"]) .btn-primary { background-color: #2f6fc4; border-color: #2f6fc4; color: #fff; }
  html:not([data-bs-theme="light"]) .btn-primary:hover, html:not([data-bs-theme="light"]) .btn-primary:focus { background-color: #1b4f91; border-color: #1b4f91; }
}
