/* Binder tabs are the navigation: a bar on the phone, pearl tabs down the right edge on desktop. */
.tabs {
  position: fixed; z-index: 40; inset: auto 0 0 0;
  height: calc(var(--bar-bottom) + var(--safe));
  padding: 8px 8px var(--safe);
  display: grid; grid-template-columns: repeat(5, 1fr) 1.9fr; gap: 6px; align-items: end;
  background: var(--panel); border-top: 1px solid var(--moulding);
}
.tab {
  position: relative; display: flex; align-items: center; justify-content: center;
  height: 48px; min-width: 44px;
  background: var(--pearl); color: var(--ink);
  border: 1px solid var(--pearl-shade); border-bottom: 0; border-radius: 7px 7px 0 0;
  font-size: 1.25rem; font-weight: 500; letter-spacing: 0.02em; text-decoration: none;
  transition: transform 260ms var(--ease-heavy), background-color 200ms ease, color 200ms ease;
}
.tab::after { content: ""; position: absolute; left: -1px; right: -1px; top: 100%; height: 8px; background: inherit; }
.tab[aria-current="location"] { background: var(--green); color: var(--pearl); border-color: var(--green); transform: translateY(-4px); }
.tab-buy { background: var(--green); color: var(--pearl); border-color: var(--green); font-size: 1.0625rem; }
.tb-verb { margin-right: 0.25em; }
.tab:active { transform: translateX(2px); }
.tab[aria-current="location"]:active { transform: translate(2px, -4px); }

@media (min-width: 900px) {
  .tabs {
    inset: 50% 0 auto auto; transform: translateY(-50%);
    width: 56px; height: auto; padding: 0; gap: 8px;
    display: flex; flex-direction: column; align-items: flex-end;
    background: none; border: 0;
  }
  .tab {
    width: 56px; height: 56px; justify-content: flex-start; padding-left: 9px;
    border: 1px solid var(--pearl-shade); border-right: 0; border-radius: 8px 0 0 8px;
    transform: translateX(20px);
  }
  .tab::after { display: none; }
  .tab[aria-current="location"] { transform: translateX(14px); }
  .tab:active, .tab[aria-current="location"]:active { transform: translateX(18px); }
  .tab-buy { font-size: 1rem; padding-left: 6px; border-color: var(--green); }
  .tb-verb { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (hover: hover) and (pointer: fine) and (min-width: 900px) {
  .tab:hover { transform: translateX(14px); }
}
