/* The header of every page except the planner (home, About, Contact, Changelog, Donation, Privacy, Terms): the same look as the planner's top bar, without its buttons.
 * The game version in it is filled in by build.js (<b class="gv">). */
@font-face { font-family: "Alegreya SC"; src: url("../fonts/AlegreyaSC-Regular.ttf"); font-weight: 400; }
@font-face { font-family: "Alegreya Sans"; src: url("../fonts/AlegreyaSans-Light.ttf"); font-weight: 300 700; }
.site-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 24px; padding: 4px 14px; background: #0b0b0d; border: 12px solid transparent; border-image: url("../icons/ui/window_frame.png") 18 / 12px stretch; font-family: "Alegreya Sans", "Segoe UI", Tahoma, sans-serif; font-weight: 300; }
.site-brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; white-space: nowrap; }
.site-brand .bm { font: 400 26px "Alegreya SC", Georgia, serif; letter-spacing: 4px; color: #e2cf9e; }
.site-brand .bs { font: 400 16px "Alegreya SC", Georgia, serif; letter-spacing: 2px; color: #8d867a; }
.site-brand .beta { font: 400 18px "Alegreya SC", Georgia, serif; letter-spacing: 1px; color: #8f887b; margin-left: 8px; font-style: normal; }
.site-brand:hover .bm { filter: brightness(1.25); }
.site-ver { color: #8d867a; font-size: 19px; padding: 4px 14px; border: 1px solid #2c261e; border-radius: 12px; white-space: nowrap; }
.site-ver b { color: #e2cf9e; font-weight: 600; }
.m-only { display: none; }
@media (max-width: 820px) {
  .site-top { gap: 6px 14px; padding: 2px 8px; }
  .site-brand { gap: 6px; }
  .site-brand .bm { font-size: 22px; letter-spacing: 3px; }
  .site-brand .bs { font-size: 12px; letter-spacing: 1px; }
  .site-brand .beta { font-size: 11px; margin-left: 4px; }
  .site-ver { font-size: 16px; padding: 2px 9px; }
  .m-only { display: revert; }
  .d-only { display: none; }
}

/* the buttons of the header (the same as on the planner): Builds, Donate, language, Sign in (js/auth-bar.js appends the sign-in button) */
.site-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.site-top > .auth-bar { margin-left: 4px; }
.lang { position: relative; display: flex; }
.lang-btn { display: flex; align-items: center; gap: 6px; min-height: 41px; box-sizing: border-box; padding: 0 2px; background: none; border: 8px solid transparent; border-image: url("../icons/ui/button.png") 14 fill / 8px stretch; color: #e2cf9e; cursor: pointer; font: inherit; }
.lang-btn:hover { filter: brightness(1.35); }
.lang-btn .lang-name { display: none; }
.lang-flag { display: inline-flex; align-items: center; flex: none; }
.lang-flag svg { display: block; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255,255,255,.25); }
.lang-caret { font-size: 20px; line-height: 1; }
.lang-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; margin: 0; padding: 4px; list-style: none; min-width: 210px; max-height: 70vh; overflow-y: auto; background: #100d0b; border: 2px solid #b8923f; border-radius: 4px; box-shadow: 0 8px 24px rgba(0,0,0,.6); }
.lang-list li { display: flex; align-items: center; gap: 10px; padding: 6px 10px; cursor: pointer; color: #e2cf9e; font-size: 16px; white-space: nowrap; border-radius: 3px; }
.lang-list li:hover, .lang-list li[aria-selected="true"] { background: #2a2118; }
.lang-list li[aria-selected="true"] { color: #fff; }
html.rtl .lang-list, html.rtl .lang-btn { direction: ltr; }

.site-right, .topbar-right { display: flex; align-items: center; gap: 8px; }
.site-top > .site-right > .auth-bar, .topbar-right > .auth-bar { margin-left: 0; }
@media (max-width: 820px) { .site-right { margin-left: auto; } .site-top > .auth-bar { margin-left: 0; } }
@media (max-width: 420px) { .site-brand .bs { display: none; } }
.site-right .lang-btn { background: #17130f; border: 1px solid #5a4a35; border-image: none; border-radius: 6px; min-height: 40px; padding: 0 10px; gap: 6px; color: #e2cf9e; filter: none; }
.site-right .lang-btn:hover { border-color: #d7b97a; color: #fff; filter: none; }
.site-right .lang-caret { font-size: 18px; }
@media (max-width: 820px) { .site-right .lang-btn { min-height: 40px; padding: 0 8px; } }
