/* Courageous shared menu drawer + button polish (rings and glow). Shared by both apps. */
.hamburger { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  width: 44px; height: 44px; min-height: 44px; padding: 0; margin: 0; cursor: pointer;
  border-radius: 999px; border: 1.5px solid var(--line-strong, #43566A); background: var(--panel, #1B2530); color: var(--fg, #EDF1F5); }
.hamburger .bars, .hamburger .bars::before, .hamburger .bars::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; content: ""; transition: transform .2s ease, opacity .2s ease; }
.hamburger .bars { position: relative; }
.hamburger .bars::before { position: absolute; top: -6px; left: 0; }
.hamburger .bars::after { position: absolute; top: 6px; left: 0; }
.hamburger[aria-expanded="true"] .bars { background: transparent; }
.hamburger[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.hamburger[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }
body header:not(.site) .hamburger { background: #fff; color: #111820; border: 2px solid #fff; width: 44px; padding: 0; margin: 0; }
header.site .row .hamburger { margin-left: .1rem; }

.navbackdrop { position: fixed; inset: 0; z-index: 998; background: rgba(5,9,13,.62); opacity: 0; visibility: hidden;
  transition: opacity .28s ease, visibility 0s linear .28s; -webkit-tap-highlight-color: transparent; }
.navbackdrop.open { opacity: 1; visibility: visible; transition: opacity .28s ease; }
.navdrawer { position: fixed; z-index: 999; top: 0; right: 0; bottom: 0; width: min(86vw, 340px);
  background: var(--panel, #1B2530); color: var(--fg, #EDF1F5); border-left: 1px solid var(--line, #33424F);
  box-shadow: -18px 0 48px rgba(0,0,0,.45); transform: translateX(100%); visibility: hidden;
  transition: transform .28s cubic-bezier(.2,.8,.2,1), visibility 0s linear .28s;
  display: flex; flex-direction: column; overscroll-behavior: contain; overflow-y: auto;
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); outline: none; }
.navdrawer.open { transform: translateX(0); visibility: visible; transition: transform .28s cubic-bezier(.2,.8,.2,1); }
.navdrawer.dragging, .navdrawer[style*="translateX"] { visibility: visible; }
.navdrawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 10px 20px; border-bottom: 1px solid var(--line, #33424F); }
.navdrawer-title { font-weight: 800; font-size: 1.15rem; letter-spacing: .01em; }
.navclose { width: 44px; height: 44px; min-height: 44px; border-radius: 999px; border: 1.5px solid var(--line-strong, #43566A); background: transparent; color: inherit; font-size: 1rem; cursor: pointer; padding: 0; margin: 0; display: inline-flex; align-items: center; justify-content: center; }
.navdrawer nav { padding: 12px 12px 8px; }
.navdrawer nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.navdrawer nav li { margin: 0; padding: 0; }
.navdrawer nav a { display: flex; align-items: center; min-height: 52px; padding: 0 16px; border-radius: 14px; text-decoration: none;
  color: inherit; font-weight: 700; font-size: 1.05rem; border: 1px solid transparent; transition: background .15s ease, border-color .15s ease, box-shadow .15s ease; }
.navdrawer nav a:hover { background: var(--accent-soft, #2A2019); border-color: var(--line-strong, #43566A); }
.navdrawer nav a[aria-current="page"] { background: var(--accent, #C8461A); color: #fff; border-color: var(--accent, #C8461A); box-shadow: 0 0 0 3px rgba(224,88,41,.22); }
.navdrawer-note { margin: auto 20px 18px; padding-top: 16px; font-size: .8rem; color: var(--muted, #A7B0BA); }
html.nav-open, html.nav-open body { overflow: hidden; }

/* desktop: the full link row stays across the header; the hamburger is still there to click */
@media (min-width: 1101px) { .navdrawer { width: 360px; } }
@media (prefers-reduced-motion: reduce) { .navdrawer, .navbackdrop, .hamburger .bars, .hamburger .bars::before, .hamburger .bars::after { transition: none !important; } }

/* ---- Rings and glow: every control gets a clear focus ring; hover gets a soft ring, the primary action a gentle glow ---- */
:where(.btn, button, .hamburger, .navclose, .theme-toggle, summary, .tag, .navdrawer a, header.site nav a) {
  transition: box-shadow .18s ease, border-color .18s ease, background-color .18s ease, transform .08s ease; }
.btn:hover:not(:disabled), button:hover:not(:disabled), .hamburger:hover, .navclose:hover, .theme-toggle:hover {
  box-shadow: 0 0 0 3px rgba(224,88,41,.18); }
.btn-primary:hover:not(:disabled), button:not(.secondary):not(.hamburger):not(.navclose):not(.theme-toggle):not(.btn):hover:not(:disabled), button.blue:hover:not(:disabled) {
  box-shadow: 0 0 0 4px rgba(224,88,41,.22), 0 6px 20px rgba(224,88,41,.30); }
header.site nav a:hover { box-shadow: 0 0 0 2px rgba(224,88,41,.18); }
:where(.btn, button, .hamburger, .navclose, .theme-toggle, summary, .tag, a):focus-visible {
  outline: 3px solid var(--focus, #F07345); outline-offset: 2px; box-shadow: 0 0 0 6px rgba(240,115,69,.28); }
.btn:active, button:active, .hamburger:active { box-shadow: 0 0 0 2px rgba(224,88,41,.18); }

/* phones: header order is brand, language, theme, hamburger */
@media (max-width: 1200px) { header.site .navwide { display: none; } }
/* desktop: one single row, links across the whole header */
@media (min-width: 1201px) {
  header.site > .wrap.row { max-width: 1360px; flex-wrap: nowrap; gap: .5rem; }
  header.site .brand { flex: 0 0 auto; margin-right: .25rem; white-space: nowrap; }
  header.site .brand .muted { display: none; }
  header.site .navwide { flex: 1 1 auto; min-width: 0; }
  header.site .navwide ul { flex-wrap: nowrap; justify-content: flex-start; gap: 0; }
  header.site .navwide a { padding: .55rem .4rem; font-size: .84rem; white-space: nowrap; }
  header.site .lang, header.site .theme { flex: 0 0 auto; white-space: nowrap; }
  header.site .theme { font-size: 0; width: 44px; min-height: 44px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
  header.site .theme::before { content: "\25D0"; font-size: 1.35rem; line-height: 1; }
}

/* phones: header order is brand, language, theme, hamburger */
@media (max-width: 640px) {
  header.site .row { gap: .35rem; }
  header.site .lang { order: 2; } header.site .theme { order: 3; } header.site .hamburger { order: 4; }
}

/* check-in pages, phones: theme becomes an icon, controls sit together on the right of one tidy row */
@media (max-width: 560px) {
  body header:not(.site) { align-items: center; row-gap: 8px; }
  body header:not(.site) .spacer { flex: 1 1 0; }
  body header:not(.site) .theme-toggle { font-size: 0; width: 44px; min-height: 44px; padding: 0; gap: 0; justify-content: center; margin: 0 0 0 auto; }
  body header:not(.site) .theme-toggle::before { width: 20px; height: 20px; }
  body header:not(.site) .hamburger { margin-left: 2px; }
}

/* staff pages: the role picker in the header gets a full-size tap target */
body header select { min-height: 44px; }

/* the toggle draws its own svg icon, so the shared half-circle stays off here */
header.site .theme::before, header.site .theme-toggle::before { display: none !important; }
header.site .brand .mark { background: none; border-radius: 50%; }
