/* The slide-in menu of the header (the burger button) and the buttons of the header: ONE set of rules for the planner and for every other page (js/menu.js builds the entries).
 * On a wide screen only Builds, Reset all (planner) and Donate show in the header; on a phone everything is in the menu that slides in from the left. */

/* the buttons (the planner has the same look from css/style.css; the other pages get it here) */
.site-actions .btn { display: inline-flex; align-items: center; background: none; border: 8px solid transparent; border-image: url("../icons/ui/button.png") 14 fill / 8px stretch; border-radius: 0; color: #e2cf9e; padding: 1px 12px; letter-spacing: 1px; font-size: 16px; line-height: normal; text-decoration: none; white-space: nowrap; cursor: pointer; font-family: "Alegreya SC", Georgia, serif; font-weight: 400; }
.site-actions .btn:hover { filter: brightness(1.35); }
.site-actions .btn.danger { color: #e98a7c; }
.site-actions .btn.m-only, .site-actions .mi.m-only { display: none; }
.site-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.burger, .menu-title, .scrim { display: none; }
.m-only { display: none; }
.new-badge { color: #ff3b30; font-weight: 700; font-size: 0.75em; letter-spacing: 1px; margin-left: 6px; vertical-align: 2px; }

@media (max-width: 820px) {
  .m-only { display: revert; }
  /* compact header (other pages; the planner has its own height) */
  .site-top { z-index: 95; flex-wrap: nowrap; height: 52px; min-height: 52px; padding: 0 8px; gap: 8px; align-items: center; border-width: 0 0 2px; border-image: none; border-bottom: 2px solid #4a3a28; box-sizing: border-box; }
  .burger { order: -1; display: grid; place-items: center; width: 40px; height: 40px; flex: none; border: 1px solid #4a3a28; border-radius: 4px; background: #17130f; color: #e2cf9e; font-size: 24px; padding: 0; cursor: pointer; margin-left: 0; }
  #mMenu { position: fixed; top: 0; left: 0; bottom: 0; width: max-content; min-width: 150px; max-width: 80vw; z-index: 90; margin: 0; padding: 16px 14px; background: #100d0b; border-right: 2px solid #b8923f; display: flex; flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 10px; transform: translateX(-105%); transition: transform .2s ease; overflow-y: auto; }
  body.menu-open #mMenu { transform: none; }
  #mMenu .menu-title { display: block; font: 400 24px "Alegreya SC", Georgia, serif; color: #e2cf9e; margin-bottom: 4px; }
  #mMenu .btn { display: flex; align-items: center; gap: 10px; text-align: left; padding: 2px 12px; font-size: 16px; width: 100%; white-space: nowrap; border-width: 5px; border-image-width: 5px; box-sizing: border-box; }
  #mMenu .btn .mi { display: block; width: 24px; height: 24px; object-fit: contain; flex: none; margin: 0; }
  #mMenu .btn .mi.mi-loot { width: 40px; height: 40px; margin: -5px -3px -5px -5px; }   /* the sack icon has a glow around it: a bit bigger, still inside the button */
  .scrim { position: fixed; inset: 0; background: transparent; z-index: 80; }
  body.menu-open .scrim { display: block; }
}
