:root {
  --md-primary-fg-color: #0f172a;
  --md-primary-fg-color--light: #1e3a5f;
  --md-primary-fg-color--dark: #0a0f1e;
  --md-accent-fg-color: #2563eb;
  --md-accent-fg-color--transparent: rgba(37, 99, 235, 0.1);
}

/* Sidebar site title — hidden (already shown in header) */
.md-nav--primary > .md-nav__title,
.md-nav__title[for="__drawer"] {
  display: none !important;
}

/* Content headings: dark navy, clearly distinct from blue links */
.md-typeset h1 { color: #0f172a; font-weight: 700; }
.md-typeset h2 { color: #0f172a; font-weight: 700; }
.md-typeset h3 { color: #1e293b; font-weight: 600; }

/* Sidebar section labels (Operatore, Amministratore, Sviluppatore) */
.md-nav--secondary > .md-nav__title,
.md-nav__item--section > .md-nav__link,
.md-nav__item--section > label {
  font-size: 0.62rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  color: #94a3b8 !important;
  margin-top: 1.25rem !important;
  margin-bottom: 0.15rem !important;
  padding-top: 1rem !important;
  border-top: 1px solid #e2e8f0 !important;
  display: block;
  pointer-events: none;
}
/* Remove the border from the very first section label */
.md-nav__item--section:first-of-type > .md-nav__link,
.md-nav__item--section:first-of-type > label {
  border-top: none !important;
  padding-top: 0.25rem !important;
  margin-top: 0.5rem !important;
}

/* Header logo + title */
.md-header__button.md-logo img {
  filter: grayscale(100%) brightness(1.4);
  opacity: 0.85;
  width: 64px;
  height: 64px;
}
.md-header__button.md-logo {
  padding: 0 10px;
}
.md-header__title {
  font-size: 1.4rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em;
}
.md-header {
  height: 72px;
  align-items: center;
}

/* Sidebar nav links: darker so they read as links, not labels */
.md-nav__link {
  color: #334155;
}
.md-nav__link:hover,
.md-nav__link--active {
  color: #2563eb;
}
