/* Djinny site menu — shared by every page. Markup is generated by jobs/build.mjs. */

.site-nav {
  --nav-blue: #1E40AF;
  --nav-blue-soft: #EFF4FF;
  --nav-ink: #1F2A44;
  --nav-muted: #5B6478;
  --nav-line: #D6DBE6;
  --nav-shadow: 0 6px 24px rgba(15, 23, 42, 0.14);
  --nav-height: 60px;
  position: relative;
  z-index: 50;
  font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.4;
  color: var(--nav-ink);
}


.site-nav a {
  color: inherit;
  text-decoration: none;
}


.nav-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: var(--nav-height);
  padding: 0 12px 0 16px;
  background: #fff;
  border-bottom: 1px solid var(--nav-line);
}


.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: auto;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--nav-blue) !important;
}


.nav-brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}


.nav-links {
  display: none;
}


.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: none;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--nav-ink);
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
}


.nav-link:hover,
.nav-link[aria-current="page"],
.nav-link[aria-expanded="true"] {
  color: var(--nav-blue);
  background: var(--nav-blue-soft);
}


.nav-chevron {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}


.nav-link[aria-expanded="true"] .nav-chevron {
  transform: rotate(180deg);
}


.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}


.nav-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 16px;
  border: 1px solid var(--nav-line);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--nav-ink);
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}


.nav-pill:hover {
  border-color: var(--nav-ink);
}


.nav-pill-blue {
  border-color: var(--nav-blue);
  background: var(--nav-blue);
  color: #fff !important;
}


.nav-pill-blue:hover {
  border-color: #1E3A8A;
  background: #1E3A8A;
}


.nav-wide {
  display: none;
}


.nav-burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -4px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--nav-ink);
  cursor: pointer;
}


.nav-burger svg {
  width: 26px;
  height: 26px;
}


.nav-burger .nav-close,
.nav-burger[aria-expanded="true"] .nav-open {
  display: none;
}


.nav-burger[aria-expanded="true"] .nav-close {
  display: block;
}


/* Panel: full-screen sheet on phones, mega menu card on desktop */

.nav-panel {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.4s ease, visibility 0s linear 0.2s;
}


.site-nav.is-open .nav-panel {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.2s ease, transform 0.4s ease;
}


.nav-panel-inner {
  padding: 20px 16px 40px;
}


.nav-panel-title {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}


.nav-groups {
  display: grid;
  gap: 8px;
}


.nav-group h3 {
  margin: 16px 0 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--nav-muted);
}


.nav-group ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}


.nav-job {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 6px 8px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  transition: background-color 0.2s ease, color 0.2s ease;
}


.nav-job img {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  object-fit: contain;
}


.nav-job:hover,
.nav-job[aria-current="page"] {
  background: var(--nav-blue-soft);
  color: var(--nav-blue);
}


.nav-more {
  display: grid;
  margin-top: 24px;
  padding-top: 8px;
  border-top: 1px solid var(--nav-line);
}


.nav-more > a,
.nav-more > button {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0 8px;
  border: 0;
  border-bottom: 1px solid var(--nav-line);
  background: none;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  color: var(--nav-ink);
  text-align: left;
  cursor: pointer;
}


.nav-more > :last-child {
  border-bottom: 0;
}


html.nav-locked,
html.nav-locked body {
  overflow: hidden;
}


@media (min-width: 960px) {
  .site-nav {
    padding: 14px 20px 0;
  }

  .site-nav-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
  }

  .nav-bar {
    gap: 24px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 10px 0 20px;
    border: 0;
    border-radius: 16px;
    box-shadow: var(--nav-shadow);
  }

  .nav-brand {
    margin-right: 0;
    font-size: 20px;
  }

  .nav-links {
    display: flex;
    gap: 2px;
  }

  .nav-actions {
    margin-left: auto;
  }

  .nav-wide {
    display: inline-flex;
  }

  .nav-burger,
  .nav-more,
  .nav-panel-title {
    display: none;
  }

  .nav-panel {
    position: absolute;
    top: calc(var(--nav-height) + 22px);
    bottom: auto;
    left: 20px;
    right: 20px;
    max-width: 1180px;
    max-height: calc(100vh - 120px);
    margin: 0 auto;
    border-radius: 16px;
    box-shadow: var(--nav-shadow);
  }

  .nav-panel-inner {
    padding: 12px 20px 24px;
  }

  .nav-groups {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }

  .nav-group ul {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  html.nav-locked,
  html.nav-locked body {
    overflow: visible;
  }
}


@media (prefers-reduced-motion: reduce) {
  .nav-panel,
  .site-nav.is-open .nav-panel,
  .nav-chevron {
    transition: none;
  }
}


/* Language flags */

.nav-flags {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 40px;
  padding: 0 4px;
  border: 1px solid var(--nav-line);
  border-radius: 10px;
}


.nav-flags button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 32px;
  padding: 0 6px;
  border: 0;
  border-radius: 7px;
  background: none;
  font: inherit;
  cursor: pointer;
  opacity: 0.45;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}


.nav-flags button:hover,
.nav-flags button[aria-pressed="true"] {
  opacity: 1;
}


.nav-flags button[aria-pressed="true"] {
  background: var(--nav-blue-soft);
}


.nav-flags .flag {
  display: block;
  width: 24px;
  height: 16px;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.12);
}


.nav-more .nav-flags-named {
  display: flex;
  gap: 8px;
  height: auto;
  margin-top: 16px;
  padding: 0;
  border: 0;
}


.nav-more .nav-flags-named button {
  flex: 1;
  justify-content: flex-start;
  height: 52px;
  padding: 0 14px;
  border: 1px solid var(--nav-line);
  border-radius: 12px;
  font-size: 16px;
  font-weight: 500;
  color: var(--nav-ink);
  opacity: 1;
}


.nav-more .nav-flags-named button[aria-pressed="true"] {
  border-color: var(--nav-blue);
  color: var(--nav-blue);
}


@media (max-width: 959px) {
  .nav-bar .nav-flags {
    display: none;
  }
}


/* Language switch in the footer */

.foot-lang {
  display: flex;
  justify-content: flex-start;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}


.site-footer .foot-lang {
  border-top-color: var(--nav-line);
}


.foot-lang .nav-flags-named {
  display: flex;
  gap: 8px;
  height: auto;
  padding: 0;
  border: 0;
}


.foot-lang .nav-flags-named button {
  height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: inherit;
  opacity: 0.7;
}


.site-footer .foot-lang .nav-flags-named button {
  border-color: var(--nav-line);
}


.foot-lang .nav-flags-named button[aria-pressed="true"] {
  background: rgba(255, 255, 255, 0.14);
  opacity: 1;
}


.site-footer .foot-lang .nav-flags-named button[aria-pressed="true"] {
  background: var(--nav-blue-soft);
}
