/* App-style mobile shell: top app bar + bottom tab bar (phones and small tablets, portrait and landscape) */
.tabbar{display:none}
@media (max-width:820px),(max-height:520px) and (orientation:landscape){
  :root{--tab-h:64px}
  body{padding-bottom:calc(var(--tab-h) + env(safe-area-inset-bottom))}
  /* top app bar: always solid */
  .nav{background:rgba(5,43,27,.94)!important;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);box-shadow:0 1px 0 rgba(255,255,255,.08);padding-top:max(10px,env(safe-area-inset-top))!important;padding-bottom:10px}
  .nav .brand img{height:38px}
  .nav .nav-cta{display:none}
  .menu-btn{margin-left:auto}
  .clock{display:none}
  /* bottom tab bar */
  .tabbar{position:fixed;z-index:55;left:0;right:0;bottom:0;display:grid;grid-template-columns:repeat(5,1fr);align-items:end;height:calc(var(--tab-h) + env(safe-area-inset-bottom));padding:0 6px env(safe-area-inset-bottom);background:rgba(5,43,27,.96);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);border-top:1px solid rgba(255,255,255,.12);box-shadow:0 -8px 24px rgba(0,0,0,.25)}
  .tab{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;height:var(--tab-h);color:#b9cbc0;text-decoration:none;font:700 10.5px Montserrat,Arial,sans-serif;letter-spacing:.04em;background:none;border:0;cursor:pointer;-webkit-tap-highlight-color:transparent;position:relative}
  .tab svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;transition:transform .2s}
  .tab.on{color:#f0b429}
  .tab.on svg{transform:translateY(-1px) scale(1.08)}
  .tab.on:after{content:"";position:absolute;top:0;left:30%;right:30%;height:3px;border-radius:0 0 4px 4px;background:#f0b429}
  .tab:active svg{transform:scale(.9)}
  .tab.q{color:#2a1a00}
  .tab.q span.pill{display:grid;place-items:center;width:54px;height:54px;margin-top:-22px;border-radius:50%;background:#f0b429;border:2px solid #052b1b;box-shadow:0 6px 16px rgba(240,180,41,.45),0 0 0 4px rgba(5,43,27,.96)}
  .tab.q span.pill svg{stroke:#2a1a00;width:25px;height:25px}
  .tab.q em{font-style:normal;color:#f0b429;margin-top:-2px}
  /* floating items sit above the bar */
  .wa-float{bottom:calc(var(--tab-h) + env(safe-area-inset-bottom) + 12px)!important}
  .sol{bottom:calc(var(--tab-h) + env(safe-area-inset-bottom) + 12px + 62px)!important}
  .vback{left:10px!important;transform:none!important;bottom:calc(var(--tab-h) + env(safe-area-inset-bottom) + 12px)!important;padding:8px 12px!important;font-size:10px!important}
  .vback{max-width:112px}
  body.menu-open .tabbar{z-index:44}
  body.solf-open .tabbar{display:none}
  /* section top spacing under the fixed app bar */
  main>section:not(.hero){scroll-margin-top:64px}
}
@media (max-height:520px) and (orientation:landscape){
  :root{--tab-h:46px}
  .nav .brand img{height:30px}
  .tab{flex-direction:row;gap:7px;font-size:11px}
  .tab svg{width:19px;height:19px}
  .tab.q span.pill{width:40px;height:40px;margin-top:-14px}
  .tab.q span.pill svg{width:20px;height:20px}
  .tab.q em{display:none}
  .tab em,.tab>span.lbl{font-style:normal}
  .tabbar{padding-left:max(6px,env(safe-area-inset-left));padding-right:max(6px,env(safe-area-inset-right))}
  .wa-float{display:none!important}
  .hero{min-height:calc(100svh - var(--tab-h))}
}
@media (max-height:520px) and (orientation:landscape){
  .vback{top:calc(6px + env(safe-area-inset-top))!important;bottom:auto!important;left:auto!important;right:64px!important;padding:6px 10px!important;max-width:none!important;font-size:9px!important;z-index:60!important}
}
