/* No More Silence app shell - only active inside the installed app (html.nms-app) */
/* pages use viewport-fit=cover: keep content clear of the notch in landscape (0 in portrait) */
html{padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right)}
.nms-tabs{display:none}
/* every page uses the full screen (viewport-fit=cover), so the safe areas are the same everywhere
   and the tab bar sits at exactly the same height on every tab */
html.nms-app{--nms-tabs-h:calc(65px + env(safe-area-inset-bottom));-webkit-text-size-adjust:100%;overscroll-behavior-y:none}
html.nms-app body{padding-bottom:calc(var(--nms-tabs-h) + 12px) !important}
html.nms-app .nms-tabs{
  display:grid;grid-template-columns:repeat(5,1fr);
  position:fixed;left:0;right:0;bottom:0;z-index:9999;
  height:var(--nms-tabs-h);box-sizing:border-box;
  padding:6px 4px env(safe-area-inset-bottom);
  background:rgba(0,0,0,.92);
  -webkit-backdrop-filter:saturate(140%) blur(18px);backdrop-filter:saturate(140%) blur(18px);
  border-top:1px solid #262626;
  font-family:Archivo,system-ui,-apple-system,sans-serif;
  transform:translateZ(0);will-change:transform;
  view-transition-name:nms-tabs;
  -webkit-user-select:none;user-select:none;-webkit-touch-callout:none;touch-action:manipulation;
}
html.nms-app .nms-tabs a{
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;
  height:52px;color:#8d8d8d;text-decoration:none;font:700 11px/1 Archivo,system-ui,sans-serif;
  letter-spacing:.02em;text-transform:uppercase;-webkit-tap-highlight-color:transparent;
  touch-action:manipulation;transition:color .1s ease,transform .1s ease;
}
html.nms-app .nms-tabs a *{pointer-events:none}
html.nms-app .nms-tabs a:active{transform:scale(.92)}
html.nms-app .nms-tabs a.on{color:#fff}
html.nms-app .nms-tabs a.on svg{color:#7b5cff;fill:#7b5cff}
html.nms-app .nms-tabs svg{width:24px;height:24px;fill:currentColor;flex:none}
html.nms-app .nms-tabs a:focus-visible{outline:2px solid #7b5cff;outline-offset:-4px}
/* a thin loading line while the next tab opens, so a tap always shows it was received */
html.nms-app.nms-going .nms-tabs::before{
  content:"";position:absolute;left:0;top:-1px;height:2px;width:100%;background:#7b5cff;
  transform-origin:left;animation:nms-load 1.2s ease-out forwards;
}
@keyframes nms-load{from{transform:scaleX(.05)}to{transform:scaleX(.9)}}
/* the site's top menu stays one line in the app (it wrapped onto 2-3 lines and changed height page to page) */
html.nms-app header.top{flex-wrap:nowrap;padding-top:calc(.8rem + env(safe-area-inset-top))}
html.nms-app header.top .logo{flex:none}
html.nms-app header.bar{padding-top:calc(.9rem + env(safe-area-inset-top))}
html.nms-app header.top nav{flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;white-space:nowrap;min-width:0}
html.nms-app header.top nav::-webkit-scrollbar{display:none}
html.nms-app .nms-toast{
  position:fixed;left:50%;bottom:calc(var(--nms-tabs-h) + 12px);z-index:10000;
  transform:translate(-50%,20px);opacity:0;pointer-events:none;
  background:#fff;color:#000;padding:10px 16px;font:700 14px Archivo,system-ui,sans-serif;
  transition:opacity .2s ease,transform .2s ease;white-space:nowrap;
}
html.nms-app .nms-toast.show{opacity:1;transform:translate(-50%,0)}
::view-transition-group(nms-tabs){animation:none}
@media (prefers-reduced-motion:reduce){html.nms-app .nms-tabs a,html.nms-app .nms-toast{transition:none}html.nms-app.nms-going .nms-tabs::before{animation:none}}
