/* Responsive navigation and consistent language/logout controls */
.site-header{display:flex;align-items:center;justify-content:space-between;gap:22px;min-height:76px}
.site-header .event-brand{flex:0 1 auto;min-width:0}
.site-header .event-brand img{display:block;max-width:min(240px,28vw);max-height:72px;object-fit:contain}
.site-header nav{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap;min-width:0}
.site-header nav>a:not(.button),.site-header nav form button,.site-header nav .fan-language{font-size:13px;line-height:1.2;white-space:nowrap}
.site-header nav>a:not(.button){display:inline-flex;align-items:center;min-height:38px;padding:8px 11px;border:1px solid transparent;border-radius:7px;text-decoration:none}
.site-header nav>a:not(.button):hover{background:#ffffff15;border-color:#ffffff20}
.site-header nav form{margin:0;display:flex;align-items:center}
.site-header nav form button.quiet{display:inline-flex;min-height:38px;height:38px;padding:8px 13px;gap:6px;border:1px solid #ffffff40;border-radius:7px;background:#ffffff10;color:var(--text,#fff);font-size:13px;font-weight:600;white-space:nowrap}
.site-header nav form button.quiet:hover{background:#ffffff24}
.site-header nav .fan-language{width:auto;min-width:92px;max-width:none;height:38px;min-height:38px;padding:7px 27px 7px 10px;border:1px solid #ffffff40;border-radius:7px;background-color:#191a20;color:#fff;font-size:13px;font-weight:700;cursor:pointer}
.site-header nav .fan-language option{background:#191a20;color:#fff}
@media(max-width:850px){.site-header{flex-wrap:wrap;gap:12px;padding:14px 20px}.site-header .event-brand img{max-width:170px;max-height:55px}.site-header nav{width:100%;justify-content:flex-start;gap:7px}.site-header nav>a:not(.button){padding:8px 9px}.site-header nav form button.quiet{padding:8px 10px}.site-header nav .fan-language{min-width:86px}}
@media(max-width:480px){.site-header nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.site-header nav>a:not(.button),.site-header nav form,.site-header nav form button.quiet,.site-header nav .fan-language{width:100%;max-width:none;min-width:0;justify-content:center;text-align:center}.site-header nav .fan-language{padding-left:10px}.site-header .event-brand img{max-width:160px}}

/* v0.4.12: mobile header is in normal flow; no overlap with live cards */
@media(max-width:850px){.site-header,.live-view .site-header{height:auto!important;min-height:0!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;position:relative!important}.site-header .event-brand{align-self:flex-start}.site-header nav{position:static!important;display:flex!important;flex-wrap:wrap!important;align-items:center!important;justify-content:flex-start!important;width:100%!important;gap:8px!important}.site-header nav>*{position:static!important;flex:0 1 auto!important;width:auto!important;max-width:100%!important}.site-header nav form button.quiet{width:auto!important}.site-header nav .fan-language{width:auto!important;min-width:85px!important}}
@media(max-width:480px){.site-header nav>a:not(.button){font-size:11px!important}.site-header nav form button.quiet{font-size:11px!important}.site-header nav .fan-language{font-size:12px!important}}

/* 2026-11-15: keep all mobile navigation in document flow */
@media(max-width:850px) {
 body.live-view:not(.map-only) .site-header {position:relative!important;inset:auto!important;height:auto!important;min-height:0!important;max-height:none!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:12px!important;padding:14px 16px!important;overflow:visible!important;z-index:20!important;}
 body.live-view:not(.map-only) .site-header .event-brand {position:static!important;display:block!important;align-self:flex-start!important;}
 body.live-view:not(.map-only) .site-header nav {position:static!important;inset:auto!important;transform:none!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;align-items:stretch!important;gap:8px!important;width:100%!important;height:auto!important;margin:0!important;padding:0!important;}
 body.live-view:not(.map-only) .site-header nav > * {position:static!important;transform:none!important;min-width:0!important;max-width:none!important;width:100%!important;height:auto!important;margin:0!important;box-sizing:border-box!important;}
 body.live-view:not(.map-only) .site-header nav > a,body.live-view:not(.map-only) .site-header nav form button,body.live-view:not(.map-only) .site-header nav select {display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;min-height:42px!important;box-sizing:border-box!important;margin:0!important;padding:8px!important;white-space:normal!important;text-align:center!important;font-size:13px!important;}
 body.live-view:not(.map-only) .site-header nav form {display:block!important;}
 body.live-view:not(.map-only) .live-panel {margin-top:0!important;}
}

/* Mobile branding: event left, organizer right, sponsors at bottom of LIVE. */
.fan-header-organizer{display:none}
@media(max-width:850px){
 body.live-view:not(.map-only) .site-header{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;align-items:center!important;column-gap:12px!important;row-gap:14px!important}
 body.live-view:not(.map-only) .site-header .event-brand{grid-column:1!important;grid-row:1!important;justify-self:start!important;align-self:center!important;max-width:100%!important}
 body.live-view:not(.map-only) .site-header .event-brand img{width:auto!important;max-width:100%!important;max-height:88px!important;object-fit:contain!important}
 body.live-view:not(.map-only) .site-header .fan-header-organizer{display:flex!important;grid-column:2!important;grid-row:1!important;justify-content:flex-end!important;align-items:center!important;min-width:0!important}
 body.live-view:not(.map-only) .site-header .fan-header-organizer img{display:block!important;max-width:100%!important;max-height:92px!important;width:auto!important;height:auto!important;object-fit:contain!important}
 body.live-view:not(.map-only) .site-header nav{grid-column:1/-1!important;grid-row:2!important}
 body.live-view:not(.map-only) .fan-live-sponsors{position:static!important;inset:auto!important;transform:none!important;display:block!important;width:100%!important;max-width:100%!important;margin:24px auto 0!important;padding:16px!important;box-sizing:border-box!important}
 body.live-view:not(.map-only) .fan-live-sponsors .fan-sponsor-desktop{display:none!important}
 body.live-view:not(.map-only) .fan-live-sponsors .fan-sponsor-mobile{display:flex!important;flex-wrap:wrap!important;justify-content:center!important;align-items:center!important;gap:16px!important;width:100%!important}
 body.live-view:not(.map-only) .fan-live-sponsors .fan-sponsor-mobile a{display:flex!important;align-items:center!important;justify-content:center!important;min-width:0!important;max-width:calc(50% - 12px)!important}
 body.live-view:not(.map-only) .fan-live-sponsors .fan-sponsor-mobile img{display:block!important;width:auto!important;height:auto!important;max-height:60px!important;max-width:140px!important;object-fit:contain!important}
 body.live-view:not(.map-only) .site-footer .fan-sponsors{display:none!important}
}
@media(max-width:400px){body.live-view:not(.map-only) .site-header .event-brand img{max-height:70px!important}body.live-view:not(.map-only) .site-header .fan-header-organizer img{max-height:78px!important}}

/* 2026-11-15: branding is visible on desktop and mobile */
@media(min-width:851px){
 body:not(.map-only) .site-header .fan-header-organizer{display:flex!important;align-items:center;justify-content:center;flex:0 0 auto;max-width:220px;min-width:110px;order:1}
 body:not(.map-only) .site-header .fan-header-organizer img{display:block;max-width:190px;max-height:72px;width:auto;height:auto;object-fit:contain}
 body:not(.map-only) .site-header nav{order:2;flex:1 1 auto}
 body.live-view:not(.map-only) .fan-live-sponsors{position:static!important;inset:auto!important;transform:none!important;display:block!important;width:100%!important;max-width:none!important;margin:20px auto 0!important;padding:18px 24px!important;box-sizing:border-box!important}
 body.live-view:not(.map-only) .fan-live-sponsors .fan-sponsor-desktop{display:flex!important;align-items:center!important;justify-content:center!important;flex-wrap:wrap!important;gap:22px!important}
 body.live-view:not(.map-only) .fan-live-sponsors .fan-sponsor-desktop a{display:flex!important;align-items:center!important;justify-content:center!important}
 body.live-view:not(.map-only) .fan-live-sponsors .fan-sponsor-desktop img{display:block!important;max-height:66px!important;max-width:180px!important;width:auto!important;height:auto!important;object-fit:contain!important}
 body.live-view:not(.map-only) .fan-live-sponsors .fan-sponsor-mobile{display:none!important}
 body.live-view:not(.map-only) .site-footer .fan-sponsors{display:none!important}
}
body.live-view.map-only .fan-header-organizer,body.live-view.map-only .fan-live-sponsors{display:none!important}
