:root {
  --lab-primary: #1f4e79;
  --lab-secondary: #2a91eb;
  --lab-accent: #181c63;
  --jp-brand-color0: var(--lab-primary);
  --jp-brand-color1: var(--lab-primary);
  --jp-brand-color2: var(--lab-secondary);
  --jp-layout-color0: #f4f7fa;
  --jp-layout-color1: #ffffff;
  --jp-ui-font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#jp-top-panel {
  background: linear-gradient(120deg, var(--lab-primary), var(--lab-accent)) !important;
  box-shadow: 0 .25rem 1.5rem rgba(0, 26, 48, .2);
}

#jp-menu-panel,
#jp-top-bar,
#jp-menu-panel .lm-MenuBar,
#jp-menu-panel .lm-MenuBar-content {
  background: transparent !important;
  color: #fff !important;
  border: 0 !important;
}

#jp-menu-panel {
  display: flex !important;
  align-items: center;
}

#jp-menu-panel::before {
  content: "lab.meteo@uniparthenope";
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-width: 13rem;
  padding: 0 .8rem;
  color: #fff;
  font-weight: 700;
  letter-spacing: .01em;
}

#jp-menu-panel .lm-MenuBar-itemLabel,
#jp-menu-panel .jp-MenuBar-itemLabel {
  color: rgba(255, 255, 255, .9) !important;
}

#jp-menu-panel .lm-MenuBar-item.lm-mod-active,
#jp-menu-panel .jp-MenuBar-item.jp-mod-active {
  background: rgba(255, 255, 255, .15);
}

.jp-FileBrowser,
.jp-Launcher {
  background: #f4f7fa;
}

.jp-LauncherCard {
  border-radius: .65rem;
}

@media (max-width: 760px) {
  #jp-menu-panel::before { content: "lab.meteo@uniparthenope"; min-width: auto; }
}

/* Accessibility: visible keyboard focus and reduced motion, matching the Hub pages. */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid color-mix(in srgb, var(--lab-secondary) 70%, #000);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
