/* Shared header controls: one theme button, one language button, one menu. */

.masthead nav {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
}
.masthead .theme-toggle,
.masthead .lang-toggle,
.masthead .nav-menu,
.masthead a.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 36px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--ink-line);
  background: transparent;
  color: var(--paper);
  font-family: var(--ui);
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: none;
  white-space: nowrap;
  cursor: pointer;
}
.masthead .theme-toggle,
.masthead .nav-menu {
  width: 36px;
  padding: 0;
}
.nav-menu-bars,
.nav-menu-bars::before,
.nav-menu-bars::after {
  display: block;
  width: 14px;
  height: 1.5px;
  background: currentColor;
  position: relative;
}
.nav-menu-bars::before,
.nav-menu-bars::after { content: ""; position: absolute; left: 0; }
.nav-menu-bars::before { top: -5px; }
.nav-menu-bars::after { top: 5px; }
.masthead .theme-toggle svg { width: 16px; height: 16px; display: block; }
.masthead .theme-toggle .when-light { display: none; }
:root[data-theme="light"] .masthead .theme-toggle .when-dark { display: none; }
:root[data-theme="light"] .masthead .theme-toggle .when-light { display: block; }
.masthead .lang-toggle { min-width: 44px; }
.masthead .theme-toggle:hover,
.masthead .lang-toggle:hover,
.masthead .nav-menu:hover,
.masthead a.cta:hover { border-color: var(--brass); color: var(--brass-bright); opacity: 1; }

.site-menu {
  position: fixed;
  top: 92px;
  right: max(16px, var(--gutter, 24px));
  z-index: 6;
  display: none;
  flex-direction: column;
  min-width: min(320px, calc(100vw - 32px));
  padding: 8px;
  background: var(--ink-raised);
  color: var(--paper);
  border: 1px solid var(--ink-line);
  box-shadow: 0 18px 50px rgb(0 0 0 / 0.28);
}
.site-menu.is-open { display: flex; }
.site-menu a {
  color: var(--paper);
  text-decoration: none;
  padding: 13px 14px;
  font-family: var(--ui), "Jost", sans-serif;
  font-size: 16px;
  letter-spacing: 0;
  text-transform: none;
  opacity: 1;
}
.site-menu a:hover { background: color-mix(in oklab, var(--brass) 18%, transparent); }
.site-menu a[aria-current="page"] { color: var(--brass); }
html[lang="ka"] .site-menu a { font-size: 17px; line-height: 1.35; }
.masthead a.cta { flex-shrink: 0; opacity: 1; text-decoration: none; }
