/* BERNARD design tokens, see bauwerksmonitoring/STYLEGUIDE.md
   Brand red is reserved for brand elements. It is never a status colour. */
:root {
  --brand: #d20103;
  --bg: #ffffff;
  --surface: #f9fafb;
  --border: #e0e0e0;
  --border-subtle: #f0f0f0;
  --text-primary: #1a1a1a;
  --text-secondary: #555555;
  --text-muted: #888888;

  --ok: #16a34a;
  --ok-bg: #f0fdf4;
  --ok-text: #15803d;
  --offline: #6b7280;
  --offline-bg: #f9fafb;
  --offline-text: #4b5563;
  --warning: #d97706;
  --warning-bg: #fffbeb;
  --warning-text: #92400e;
  --critical: #ea580c;
  --critical-bg: #fff7ed;
  --critical-text: #9a3412;

  --hero: linear-gradient(135deg, #1a0505 0%, #2d0a0a 50%, #1a0000 100%);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: system-ui, sans-serif;
  color: var(--text-primary);
  background: var(--bg);
  line-height: 1.5;
}

.label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.muted { font-size: 0.72rem; color: var(--text-muted); }

.card {
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 10px;
}

/* Mirrors Bulma's `navbar is-light`, which is what bauwerksmonitoring
   uses, without taking on Bulma as a dependency. */
.navbar {
  background-color: #f5f5f5;
  color: rgba(0, 0, 0, 0.7);
  min-height: 3.25rem;
  display: flex;
  align-items: stretch;
  margin-bottom: 0.25rem;
}
.navbar-brand, .navbar-menu, .navbar-end { display: flex; align-items: stretch; }
.navbar-end { margin-left: auto; }
/* the logout form wraps a navbar-item; without this it stays a plain
   block and its button never picks up the bar's vertical centring */
.navbar form { display: flex; align-items: stretch; }

.navbar-item {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  color: rgba(0, 0, 0, 0.7);
  text-decoration: none;
  font-size: 1rem;
  line-height: 1.5;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}
.navbar-item:hover { background-color: #eeeeee; color: #363636; }
.navbar-item.is-active { background-color: #eeeeee; color: #363636; font-weight: 600; }
/* the logo is 1892x577; as a flex item its min-width resolves to that
   intrinsic width, so constrain it explicitly instead of by max-height */
.navbar-brand .navbar-item img { height: 1.75rem; width: auto; flex: none; }
