/* Site tabs (Shaked 23.11, option B): the app, running a night (the calculator page), sign-up.
   On a phone: a bar fixed to the bottom, like the app's own tabs. On a wide screen: the same three as
   pills under the logo. The home page switches between its two panels with #join (CSS :target, so it
   works without JavaScript); "running a night" is the calculator's own page with the same bar. */
.site-tabs{position:fixed;inset:auto 0 0 0;z-index:40;display:flex;justify-content:space-around;gap:4px;
  padding:6px max(10px,env(safe-area-inset-left)) calc(8px + env(safe-area-inset-bottom));
  background:rgba(8,20,15,.94);border-top:1px solid rgba(210,188,120,.22);
  -webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}
.site-tabs a{flex:1 1 0;max-width:150px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;
  min-height:54px;padding:4px 2px;border-radius:14px;color:rgba(250,247,237,.55);text-decoration:none;
  font-family:Heebo,system-ui,-apple-system,"Segoe UI",sans-serif;font-size:13px;font-weight:500;line-height:1.2;text-align:center;
  -webkit-tap-highlight-color:transparent}
.site-tabs svg{flex:none;width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.site-tabs a.on{color:#f6df9a}
.site-tabs a:focus-visible{outline:2px solid #d2bc78;outline-offset:-2px}
body.has-tabs{padding-bottom:calc(80px + env(safe-area-inset-bottom))}

/* Home page panels: the app (headline and features) by default, sign-up at #join. */
.panel-join{display:none}
body:has(#join:target) .panel-app,body[data-tab=join] .panel-app{display:none}
body:has(#join:target) .panel-join,body[data-tab=join] .panel-join{display:block}
body:has(#join:target) .site-tabs a[data-tab=app]{color:rgba(250,247,237,.55)}
body:has(#join:target) .site-tabs a[data-tab=join]{color:#f6df9a}
/* A tab opens at the top of the page, with the logo in view, not scrolled to the panel. */
.panel{scroll-margin-top:100vh}

/* The calculator: the bar steps aside while a window or the floating keypad is open. */
body:has([role=dialog]) .site-tabs,body:has(.amount-keypad.is-floating) .site-tabs{display:none}

@media (min-width:760px){
  .site-tabs{position:sticky;top:12px;inset:auto;z-index:40;width:max-content;margin:4px auto 8px;padding:5px;gap:6px;
    border:1px solid rgba(210,188,120,.22);border-radius:999px;background:rgba(8,20,15,.86)}
  .site-tabs a{flex:none;max-width:none;flex-direction:row;gap:8px;min-height:44px;padding:0 20px;border-radius:999px;font-size:15px}
  .site-tabs svg{width:18px;height:18px}
  .site-tabs a.on,body:has(#join:target) .site-tabs a[data-tab=join]{background:linear-gradient(180deg,#f6df9a,#c39a45);color:#17140b;font-weight:700}
  body:has(#join:target) .site-tabs a[data-tab=app]{background:none}
  body.has-tabs{padding-bottom:0}
}
[lang=ar] .site-tabs a{font-family:Heebo,"Noto Sans Arabic","Segoe UI",system-ui,sans-serif;letter-spacing:0}
[lang|=zh] .site-tabs a{font-family:"PingFang TC","Noto Sans TC","Microsoft JhengHei",Heebo,system-ui,sans-serif;letter-spacing:0}
[lang=zh-Hans] .site-tabs a{font-family:"PingFang SC","Noto Sans SC","Microsoft YaHei",Heebo,system-ui,sans-serif}

/* 23.11: no zoom on a quick double tap of a tab or button; pinching to zoom stays (accessibility). */
html{touch-action:manipulation}
