/* Path: custom/public/assets/klasker-nav.css */

/* --------------------------------------------------
   Klasker global navigation — GitDen
   Palette and spacing adapted from grad/website/static/css/style.css
   -------------------------------------------------- */

#klasker-global-nav {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;

  width: 100%;
  min-height: 102px;
  padding: 1rem;

  background: #1d0b08;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);

  font-family: Inter, "Noto Sans", system-ui, sans-serif;
  line-height: 1.6;
}

/* --------------------------------------------------
   Site brand
   -------------------------------------------------- */

#klasker-global-nav .klasker-global-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;

  text-decoration: none;
  line-height: 0;
}

#klasker-global-nav .klasker-global-brand img {
  display: block;
  width: auto;
  height: 70px;
  max-width: 100%;
  object-fit: contain;
}

/* --------------------------------------------------
   Main navigation
   -------------------------------------------------- */

#klasker-global-nav .klasker-global-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem;

  min-width: 0;
}

#klasker-global-nav .klasker-global-links a {
  flex: 0 0 auto;

  color: #d0b6a4;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  text-decoration: none;
  white-space: nowrap;

  transition: color 0.15s ease;
}

#klasker-global-nav .klasker-global-links a:hover,
#klasker-global-nav .klasker-global-links a:focus-visible {
  color: #f26b1d;
}

#klasker-global-nav .klasker-global-links a:focus-visible {
  outline: 2px solid #f26b1d;
  outline-offset: 4px;
}

#klasker-global-nav .klasker-global-links a[aria-current="page"] {
  color: #f26b1d;
  font-weight: 700;
}

/* --------------------------------------------------
   Responsive layout
   -------------------------------------------------- */

@media (max-width: 900px) {
  #klasker-global-nav {
    gap: 1rem;
  }

  #klasker-global-nav .klasker-global-brand img {
    height: 54px;
  }

  #klasker-global-nav .klasker-global-links {
    gap: 0.75rem 1.1rem;
  }
}

@media (max-width: 600px) {
  #klasker-global-nav {
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
  }

  #klasker-global-nav .klasker-global-brand img {
    height: 48px;
  }

  #klasker-global-nav .klasker-global-links {
    width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 0.25rem 0 0.4rem;
    scrollbar-width: thin;
  }
}
