/* ─────────────── HEADER STYLING ─────────────── */
.site-header {
  padding: 8px 0 0 0;
  background: #2c3e50;
  color: white;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.1);
  overflow-x: hidden;
  max-width: 1024px;
  margin: 0 auto;
}

/* Optional container inside the header to cap the width and center it */
.header-inner {
  max-width: 1024px; /* Adjust to your desired layout width */
  margin: 0 auto;
}

.header-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px; /* Tight spacing between title and subtitle */
}

/* Title */
.site-title {
  font-size: clamp(20px, 4vw, 30px);
  margin: 0;
  text-align: center;
  width: 100%;
}

.title-link {
  color: white;
  text-decoration: none;
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
}

.title-link::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  left: 0;
  bottom: 0;
  background: linear-gradient(to right, #fff, #aaa);
  transition: width 0.3s ease;
}

.title-link:hover::after {
  width: 100%;
}

/* Subtitle */
.site-subtitle {
  font-size: clamp(12px, 2vw, 16px);
  margin: 0;
  opacity: 0.75;
  padding-bottom: 10px;
  text-align: center;
  width: 100%;
}

/* ─────────────── RESPONSIVE TWEAKS ─────────────── */
@media (max-width: 600px) {
  .site-title {
    font-size: 20px;
  }

  .site-subtitle {
    font-size: 12px;
  }
}

/* ─────────────── NAVIGATION BAR ─────────────── */
.nav-bar {
  display: flex;
  justify-content: center;
  background: #f0f0f0;
  padding: 8px 16px;
  border-bottom: 1px solid #ddd;
  flex-direction: column;
  align-items: center;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.nav-links a {
  color: #2c3e50;
  text-decoration: none;
  font-weight: 500;
  font-size: clamp(12px, 2vw, 15px);
  padding: 4px 10px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.nav-links a:hover {
  background-color: rgba(0, 123, 255, 0.1);
  color: #486178;
  transform: scale(1.02);
  text-decoration: underline;
}

/* ─────────────── RESPONSIVE NAV BAR ─────────────── */
@media (max-width: 600px) {
  .burger {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 24px;
    padding-top: 10px;
  }

  .nav-links.show {
    display: flex;
  }
}

/* ────────────── VERSION AND LANGUAGE SELECTORS ─────────────── */

/* Quiet style: the pickers look like the menu links, with a small arrow, after a thin divider. */
.nav-divider {
  width: 1px;
  height: 22px;
  background: #c9d0d8;
}

#languageSelect,
#versionSelect {
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  font-size: clamp(12px, 2vw, 15px);
  font-weight: 500;
  color: #2c3e50;
  background: transparent no-repeat right 8px center / 11px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%232c3e50' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  border: 0;
  border-radius: 4px;
  padding: 4px 26px 4px 10px;
  field-sizing: content;  /* as wide as the chosen option (where supported) */
  cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

/* The menu needs about 940px to fit on one line; below that it wraps, and the divider would dangle. */
@media (max-width: 960px) {
  .nav-divider {
    display: none;
  }
}

#languageSelect:hover,
#versionSelect:hover {
  background-color: rgba(0, 123, 255, 0.1);  /* same as the links */
}

#languageSelect:focus-visible,
#versionSelect:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(61, 88, 116, 0.22);
}

/* After a click or a choice, the focus ring only flashes briefly. base.js adds "settled";
   any key removes it, so keyboard users keep a steady ring. */
@keyframes picker-ring-fade {
  from { box-shadow: 0 0 0 3px rgba(61, 88, 116, 0.22); }
  to   { box-shadow: 0 0 0 3px rgba(61, 88, 116, 0); }
}

#languageSelect.settled:focus-visible,
#versionSelect.settled:focus-visible {
  box-shadow: 0 0 0 3px rgba(61, 88, 116, 0);
  animation: picker-ring-fade 0.8s ease-out;
}
/* ───────────── MOBILE BURGER BUTTON ────────────── */

  .burger {
    display: none;
    font-size: 22px;
    cursor: pointer;
    margin-bottom: 2px;
    color: #2c3e50;
  }

@media (max-width: 600px) {

  .nav-bar {
    flex-direction: column;   /* Burger = vertical layout */
    align-items: center;
    gap: 6px;
    padding: 0px 0;           /* 🔽 Slim vertical padding */
  }

  .nav-bar a {
    font-size: 12px;
    padding: 4px 6px;
    line-height: 1.2;  /* Default is ~1.5 — this tightens spacing */
  }

  #languageSelect,
  #versionSelect {
    font-size: 12px;
    padding: 4px 22px 4px 8px;
    background-position: right 6px center;
    margin-top: 0px;
    margin-bottom: 5px;
  }

  .nav-divider {
    display: none;  /* the burger menu is a column */
  }

  .burger {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 8px;
    padding-top: 2px;
  }

  .nav-bar.open .nav-links {
    display: flex;
  }
}