/* Shared header, loaded after page styles to keep navigation consistent. */
body .site-preview { background: #151617; color: #d0d0d3; }
body .site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #0a0c0d;
  color: #f5f5f7;
  border-bottom: 1px solid #292c2e;
}
body .site-header .nav-wrap {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  direction: ltr;
  max-width: 1440px;
  height: 80px;
  min-height: 0;
  margin: auto;
  padding: 0 48px;
  gap: 28px;
}
body .site-header .brand { flex-shrink: 0; }
body .site-header .brand img { display: block; width: 122px; height: 40px; object-fit: contain; }
body .site-header nav.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  direction: rtl;
  gap: 24px;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  order: 0;
  font-size: 13px;
}
body .site-header .site-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  white-space: nowrap;
  color: #d8d9dc;
  text-decoration: none;
}
body .site-header .site-nav a:hover { color: #fff; }
body .site-header .site-nav a[aria-current] {
  color: #c4b8eb;
  text-decoration: underline;
  text-underline-offset: 9px;
  text-decoration-thickness: 1px;
}
body .site-header .nav-actions { display: flex; align-items: center; direction: rtl; gap: 20px; }
body .site-header .bag {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0;
  color: #d8d9dc;
  font: inherit;
  font-size: 13px;
  white-space: nowrap;
  background: none;
  border: 0;
}
body .site-header .bag span { background: #242729; color: #f5f5f7; }
body .site-header .small-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 44px;
  padding: 9px 16px;
  border: 1px solid #686575;
  border-radius: 2px;
  background: transparent;
  color: #f5f5f7;
  font-size: 12px;
  white-space: nowrap;
}
body .site-header .small-button:hover,
body .site-header .small-button[aria-current] { border-color: #c4b8eb; background: #211e2b; }
body .site-header .menu-toggle { display: none; }
body .site-header :focus-visible { outline: 2px solid #e8b0c4; outline-offset: 4px; }

@media (max-width: 1040px) {
  body .site-header .nav-wrap { height: auto; min-height: 72px; flex-wrap: wrap; padding: 12px 24px; gap: 0 14px; }
  body .site-header .brand { order: 1; margin-right: auto; }
  body .site-header .brand img { width: 108px; height: 36px; }
  body .site-header .nav-actions { order: 2; gap: 14px; }
  body .site-header .menu-toggle:not([hidden]) {
    order: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    padding: 10px;
    border: 1px solid #45424d;
    border-radius: 2px;
    background: transparent;
    color: #f5f5f7;
    cursor: pointer;
  }
  body .site-header .menu-toggle span { display: block; width: 20px; height: 1px; background: currentColor; }
  body .site-header [aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  body .site-header [aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  body .site-header nav.site-nav { order: 4; flex-basis: 100%; width: 100%; max-height: calc(100dvh - 116px); overflow-y: auto; overscroll-behavior: contain; flex-direction: column; align-items: stretch; gap: 0; padding: 16px 0 6px; margin-top: 12px; border-top: 1px solid #292c2e; }
  body .site-header .site-nav a { min-height: 46px; padding: 6px 4px; font-size: 16px; }
  body .site-header[data-menu-ready] nav.site-nav { display: none; }
  body .site-header[data-menu-open] nav.site-nav { display: flex; }
}
@media (max-width: 420px) {
  body .site-header .nav-wrap { min-height: 68px; padding: 12px 16px; gap: 0 8px; }
  body .site-header .brand img { width: 92px; height: 32px; }
  body .site-header .nav-actions { gap: 9px; }
  body .site-header .small-button { font-size: 11px; padding: 8px 10px; gap: 8px; }
  body .site-header .small-button > span { display: none; }
  body .site-header .bag { font-size: 12px; gap: 4px; }
}
@media (max-width: 360px) {
  body .site-header .nav-wrap { column-gap: 6px; }
  body .site-header .brand img { width: 84px; }
  body .site-header .nav-actions { gap: 6px; }
}

/* Language choice is always available without crowding the mobile action bar. */
body .site-preview{display:flex;align-items:center;justify-content:center;gap:20px;padding:7px 24px}
body .site-preview>span{color:inherit}
body .site-preview .language-switch{display:inline-flex;align-items:center;min-height:32px;flex-shrink:0;color:#e3d6fb;text-decoration:underline;text-underline-offset:4px;font-size:12px}
body .site-preview .language-switch:focus-visible{outline:2px solid #e8b0c4;outline-offset:3px}
@media(max-width:760px){body .site-preview{gap:14px;padding:4px 16px;text-align:start;font-size:10px;line-height:1.5}}
