/* header.css — shared site header (logo + page menu), used on every
   page alongside site-chrome.js. Sticky so it stays visible on scroll
   without needing per-page padding-top adjustments. */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10; /* above page content (1) and bg (0), below any page's
                  own modal overlay (donate uses 20) and the loading
                  screen (9999) */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  background: rgba(8, 14, 26, 0.55);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(244, 236, 216, 0.12);
}

.site-header-logo {
  display: flex;
  align-items: center;
  line-height: 0;
}

.site-header-logo img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease;
}

.site-header-logo:hover img,
.site-header-logo:focus-visible img {
  transform: scale(1.08);
}

.site-header-menu-wrap {
  position: relative;
}

.site-header-menu-btn {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-cream, #f4ecd8);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease;
}

.site-header-menu-btn:hover,
.site-header-menu-btn:focus-visible {
  background: rgba(255, 255, 255, 0.16);
}

.site-header-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: rgba(9, 18, 32, 0.97);
  border: 1px solid rgba(244, 236, 216, 0.2);
  border-radius: 12px;
  padding: 6px;
  display: none;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  z-index: 11;
}

.site-header-menu.open {
  display: flex;
}

.site-header-menu a {
  color: var(--text-cream, #f4ecd8);
  text-decoration: none;
  font-size: 14px;
  padding: 10px 14px;
  border-radius: 8px;
  transition: background 0.15s ease;
}

.site-header-menu a:hover,
.site-header-menu a:focus-visible {
  background: rgba(255, 255, 255, 0.12);
}
