/* Shared footer. Page styles do not redefine the navigation container. */
.phone[data-screen] .bottom-nav {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  flex-shrink: 0; height: var(--nav-height); margin: 0;
  padding: var(--space-3) var(--space-5); border: 0;
  border-top: 1px solid var(--nav-border); border-radius: 0;
  background: var(--nav-surface); box-shadow: none; position: relative; z-index: 3;
}
.phone[data-screen] .bottom-nav + .home-indicator { height: 12px; background: var(--nav-surface); }
.phone[data-screen] .bottom-nav a {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: var(--nav-item-width); max-width: 100%; min-width: var(--control-height);
  min-height: var(--nav-item-height); justify-self: center; padding: 3px 0;
  gap: var(--space-1); border-radius: var(--nav-item-radius); background: transparent;
  color: var(--muted); font-size: var(--nav-label-size); line-height: 18px;
  position: relative; isolation: isolate;
}
.phone[data-screen] .bottom-nav a::before {
  content: ''; position: absolute; inset: -4px 6px; border-radius: inherit;
  background: transparent; z-index: -1; pointer-events: none;
}
.phone[data-screen] .bottom-nav .icon { width: 28px; height: 28px; object-fit: contain; }
.phone[data-screen] .bottom-nav a:hover::before { background: #fbf4ed; }
.phone[data-screen] .bottom-nav a[aria-current="page"] { color: var(--accent-strong); }
.phone[data-screen] .bottom-nav a[aria-current="page"]::before { background: var(--nav-selected); }
.phone[data-screen] .bottom-nav a:focus-visible { outline-offset: 1px; }
@media (max-width: 760px) {
  .phone[data-screen] .bottom-nav + .home-indicator { height: var(--safe-bottom); }
}
