/* The site header, shared by the live map (React, web/src/pages/PublicMap.tsx + the shell in
   index.html) and every server-rendered page (src/seo/layout.js). Both load this one file, so
   the logo, links and login button can't drift apart. Page-specific bits (map search, language
   menu, sticky vs. floating) stay in publicmap.css / seo.css. */
.site-bar { display: flex; align-items: center; gap: 6px; height: 60px; padding: 0 20px; box-sizing: border-box;
  background: #0f1317; border-bottom: 1px solid #27303a; font-family: Archivo, system-ui, -apple-system, "Segoe UI", sans-serif; line-height: 1.45; }
.site-brand { display: inline-flex; align-items: center; margin-right: 18px; flex: none; color: #ecf0f3; text-decoration: none !important; }
.site-brand .brand-mark { display: inline-flex; align-items: center; gap: 8px; }
.site-brand img { display: block; width: 28px; height: 28px; border-radius: 6px; }
.site-brand .brand-word { font-size: 20px !important; font-weight: 800; font-stretch: 116%; color: #ecf0f3; }
.site-brand .brand-tld { color: #e91916; }
.site-nav { display: flex; gap: 2px; min-width: 0; margin-right: auto; overflow-x: auto; scrollbar-width: none; }
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a { color: #c3ccd6; font-size: 15px; font-weight: 500; padding: 7px 12px; border-radius: 8px; white-space: nowrap; text-decoration: none !important; }
.site-nav a:hover { color: #ecf0f3; background: rgba(255, 255, 255, .06); }
.site-nav a[aria-current] { color: #ecf0f3; background: #1b2129; font-weight: 600; }
.site-bar:has(.pm-search, .top-search) .site-nav { margin-right: 0; } /* the search takes the free space when it's shown */
.site-login { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; margin-left: 10px; flex: none; box-sizing: border-box;
  border-radius: 10px; border: 1px solid transparent; font: 650 15px Archivo, system-ui, sans-serif; white-space: nowrap; text-decoration: none !important; cursor: pointer; }
.site-login.twitch { background: #9146ff; color: #fff; }
.site-login.go { background: #ecf0f3; color: #0d1014; }
.site-login.go:hover { background: #fff; }
.site-login.twitch:hover { background: #a364ff; }
.site-login.me { background: #1b2129; border-color: #27303a; color: #ecf0f3; }
.site-login.me:hover { background: #212a35; border-color: #3a4656; }
.site-login.me img { width: 22px; height: 22px; border-radius: 50%; }
.site-login .short { display: none; }
/* Language menu: the map's (React, .lang-menu) and the server pages' (<details class="site-lang">). */
.site-bar .lang-menu, .site-lang, .pm-lang-shell { position: relative; flex: none; margin-left: 10px; }
.site-bar .lang-menu-btn, .site-lang > summary, .pm-lang-shell { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; box-sizing: border-box;
  border: 1px solid #27303a; border-radius: 99px; font: 600 14px Archivo, system-ui, sans-serif; color: #ecf0f3; background: transparent; cursor: pointer; list-style: none; user-select: none; }
.site-lang > summary::-webkit-details-marker { display: none; }
.site-bar .lang-menu-btn:hover, .site-bar .lang-menu-btn[aria-expanded="true"], .site-lang > summary:hover, .site-lang[open] > summary { border-color: #3a4656; background: rgba(255, 255, 255, .04); }
.site-bar .lang-menu-btn svg, .site-lang > summary svg, .pm-lang-shell svg { color: #c3ccd6; }
.site-bar .lang-menu-list, .site-lang-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; min-width: 200px; display: grid; gap: 1px; padding: 5px;
  background: #141920; border: 1px solid #27303a; border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }
.site-bar .lang-menu-list button, .site-lang-list a { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; box-sizing: border-box;
  padding: 8px 10px; border: 0; border-radius: 8px; background: transparent; font: 400 14px Archivo, system-ui, sans-serif; color: #ecf0f3; text-align: left; text-decoration: none !important; cursor: pointer; }
.site-bar .lang-menu-list button:hover, .site-bar .lang-menu-list button:focus-visible, .site-lang-list a:hover, .site-lang-list a:focus-visible { background: #1b2129; outline: none; color: #ecf0f3; }
.site-bar .lang-menu-list button[aria-checked="true"], .site-lang-list a[aria-current] { font-weight: 600; }
.site-bar .lang-menu-list svg, .site-lang-list svg { color: #4ade80; }
@media (max-width: 800px) {
  .site-bar .lang-menu, .site-lang, .pm-lang-shell { margin-left: 0; }
}
@media (max-width: 600px) {
  .site-bar .lang-menu-btn, .site-lang > summary, .pm-lang-shell { height: 34px; padding: 0 10px; }
}
@media (max-width: 800px) {
  .site-bar { height: auto; flex-wrap: wrap; gap: 4px 6px; padding: 8px 12px; }
  .site-brand { margin-right: auto; }
  .site-brand img { width: 24px; height: 24px; }
  .site-brand .brand-word { font-size: 17px !important; }
  .site-nav { order: 5; flex-basis: 100%; margin: 2px -6px 0; }
  .site-nav a { padding: 6px 8px; font-size: 14px; }
  .site-login { height: 34px; padding: 0 12px; margin-left: 0; font-size: 14px; }
  .site-login .long { display: none; }
  .site-login .short { display: inline; }
}
@media (max-width: 600px) { .site-nav { justify-content: space-between; } }

/* "Открыть эту страницу на русском" (layout.js langHint): a bar under the header on the pages,
   a floating pill on the live map. */
.lang-hint { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 6px 12px; background: #141920; border-bottom: 1px solid #27303a;
  font-family: Archivo, system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 14px; line-height: 1.45; }
.lang-hint[hidden] { display: none; }
.lang-hint a { font-weight: 600; color: #8ee6b2; text-decoration: none; }
.lang-hint a:hover { text-decoration: underline; }
.lang-hint button { display: inline-flex; padding: 4px; border: 0; border-radius: 6px; background: transparent; color: #9ba6b2; cursor: pointer; }
.lang-hint button:hover { color: #ecf0f3; background: #1b2129; }
html.home .lang-hint { position: fixed; z-index: 30; top: 72px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 24px); box-sizing: border-box;
  padding: 6px 8px 6px 14px; border: 1px solid #27303a; border-radius: 10px; box-shadow: 0 8px 24px rgba(0, 0, 0, .45); white-space: nowrap; }
@media (max-width: 800px) { html.home .lang-hint { top: 100px; } }
