/* appbar.2.css - the store bar on phones (Snapblocks idea A1, mockup approved by the partner 2026-11-13).
   assets/appbar.1.js builds the bar and decides whether it may exist on this load; this file only draws it. Loaded by index.html,
   story.html and how-it-works.html, never by /map or /e. Colours are the site's tokens only, so the bar follows the theme by itself.
   One transform, 200 ms, the strong ease-out curve; the hidden bar is also visibility:hidden, so it is not focusable. No blur, no
   shadow animation, no backdrop-filter. Under reduced motion the bar appears and leaves with no slide (the global rule in styles.css
   already removes every transition; the rule at the end says so for this file as well). Versioned name: new bytes, new name.
   appbar.2 (1.5.1, J4): the Get button fills with --accent-action, the Arctic #16314A in light, the emerald in dark (unchanged). */
.appbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 4px 10px 14px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
  background: var(--background-cardElevated);
  border-top: 1px solid var(--border-default);
  color: var(--text-primary);
  font-family: var(--font-family);
  transform: translateY(0);
  visibility: visible;
  transition: transform 200ms cubic-bezier(0.23, 1, 0.32, 1), visibility 0s linear 0s;
}
.appbar.is-hidden {
  transform: translateY(110%);
  visibility: hidden;
  transition: transform 200ms cubic-bezier(0.23, 1, 0.32, 1), visibility 0s linear 200ms;
}
.appbar-icon { width: 32px; height: 32px; flex: none; border-radius: 8px; }
.appbar-who { flex: 1 1 auto; min-width: 0; line-height: 1.25; }
.appbar-name { display: block; font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appbar-sub { display: block; font-size: 12px; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appbar-go {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  background: var(--accent-action);
  color: var(--text-inverse);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}
.appbar-x {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 8px;
  color: var(--text-secondary);
  cursor: pointer;
}
.appbar-x svg { width: 18px; height: 18px; }
.appbar-go:focus-visible, .appbar-x:focus-visible { outline: 2px solid var(--border-focused); outline-offset: 2px; }
/* Narrow phones (under 380 px, for example 360 px Androids): the two lines go, the icon stays, the button takes the room. */
@media (max-width: 379px) {
  .appbar-who { display: none; }
  .appbar-go { flex: 1 1 auto; }
}
/* The bar is a phone thing: from 768 px up it never shows, even if a script made it. */
@media (min-width: 768px) {
  .appbar { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .appbar, .appbar.is-hidden { transition: none; }
}
