/* CSF Mobile Bottom Bar v1.1.0 — fixed, mobile-only, iOS safe-area aware.
   Dark-brand skin (HART LEGACY LABS tokens with locked fallbacks); owned SVG
   line icons (no emoji). AA: gold badge carries near-black text (8.59:1). */
.csf-bbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  background: color-mix(in srgb, var(--bpc-background, #0b0d10) 92%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--bpc-border, #2b2f36);
  padding: 7px 0 calc(7px + env(safe-area-inset-bottom));
  box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.45);
}
.csf-bbar__i {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--bpc-body, #d1d5db);
  position: relative;
  /* the Filters item may be a <button> — reset native chrome to match anchors */
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font-family: inherit;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.csf-bbar__i:hover,
.csf-bbar__i:focus-visible {
  color: var(--bpc-primary, #c8a86b);
}
.csf-bbar__i:focus-visible {
  outline: 2px solid var(--bpc-primary, #c8a86b);
  outline-offset: 2px;
  border-radius: 4px;
}
.csf-ic {
  display: inline-flex;
  width: 22px;
  height: 22px;
  color: var(--bpc-primary, #c8a86b);
}
.csf-ic svg {
  width: 100%;
  height: 100%;
}
.csf-badge {
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(7px);
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 10px;
  background: var(--bpc-primary, #c8a86b);
  color: var(--bpc-background-deeper, #07080a); /* AA on gold — never white */
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}
/* Reserve space so the bar never covers content on mobile; hide on desktop. */
body {
  padding-bottom: 64px;
}
@media (min-width: 1025px) {
  .csf-bbar {
    display: none;
  }
  body {
    padding-bottom: 0;
  }
}
