/* ══════════════════════════════════════════════════════════════
   Wreddi shell chrome — v1.10 "Apple × Material"
   The file keeps its old name (every page links it) but the neumorphic / liquid-glass look is gone.
   It now holds only the shared chrome: the bottom tab bar, the page wash and a few reusable surfaces.
   Blur is used in exactly two places — the tab bar and sticky top bars — instead of on every card,
   which is what made the old version heavy on low-end phones.
   ══════════════════════════════════════════════════════════════ */

/* ── Page wash: a barely-there brand tint at the top, like Apple's large-title headers ── */
.glass-backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(900px 360px at 50% -120px, var(--brand-lt), transparent 70%);
}

/* ── Tab bar (shared across every page via /js/shared-nav.js) ────
   A floating, fully rounded capsule (iOS 26 / Material 3 expressive style): translucent + blurred,
   inset from the screen edges. The active tab gets a tonal capsule behind its icon and label. */
.glass-nav {
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 12px);
  transform: translateX(-50%);
  width: min(calc(100vw - 24px), 440px);
  z-index: 60;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 2px;
  padding: 6px;
  border-radius: 999px;
  background: var(--bar);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  box-shadow: 0 0 0 .5px var(--bd), 0 2px 6px rgba(16,24,40,.06), 0 12px 32px rgba(16,24,40,.16);
}
[data-theme=dark] .glass-nav {
  box-shadow: 0 0 0 .5px rgba(255,255,255,.10), 0 12px 32px rgba(0,0,0,.65);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass-nav { background: var(--bar-solid); }
}
html[data-lowpower] .glass-nav { background: var(--bar-solid); }

.glass-nav-item {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 7px 2px 6px;
  border-radius: 999px;
  color: var(--t3);
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
/* the active capsule */
.glass-nav-item::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--brand-lt);
  opacity: 0;
  transform: scale(.82);
  transition: opacity .2s var(--ease-o), transform .32s var(--ease-s);
}
.glass-nav-item.on::before { opacity: 1; transform: scale(1); }
.glass-nav-item:active::before { opacity: 1; transform: scale(1); background: var(--fill); }
.glass-nav-item.on:active::before { background: var(--brand-glow); }

.glass-nav-item i, .glass-nav-item svg {
  position: relative;
  width: 22px;
  height: 22px;
  margin: 0;
  font-size: 20px;
  line-height: 1;
  transition: transform .25s var(--ease-s), color .2s;
}
.glass-nav-item.on svg, .glass-nav-item.on i { transform: scale(1.06); }
.glass-nav-item span {
  position: relative;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.glass-nav-item.on { color: var(--brand); }
.glass-nav-item.on span { font-weight: 700; }
.glass-nav-item:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }

.glass-nav-badge {
  position: absolute;
  top: 8px;
  left: calc(50% + 7px);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--no);
  box-shadow: 0 0 0 2px var(--bar-solid);
  z-index: 1;
}

/* ── Reusable surfaces (kept for pages that still use the old class names) ── */
.glass, .glass-card, .liquid-card {
  background: var(--surf);
  border-radius: var(--r20);
  box-shadow: var(--sh);
}

/* Keeps content from sitting underneath the tab bar on every screen */
.scr.on { padding-bottom: var(--nav-space, 92px); }
body.has-glass-nav { padding-bottom: var(--nav-space, 92px); }

/* Font Awesome icon sizing helper used across the UI */
.fa-ico { width: 1em; text-align: center; }
