/* bitsnacks shared footer band.

   CANONICAL SOURCE: bitsnacks/web/shared/footer/bitsnacks-band.css
   Do not edit the vendored copy in any product repo. Edit here, then run
   `python3 web/shared/footer/sync.py sync`.

   Spec: web/shared/footer/SPEC.md.

   This file shares a page with a Tailwind build on Chicken Strip and with three
   sets of hand written CSS elsewhere. It must be immune to all of them, so:
   every selector is under .bsb, nothing is inherited that matters, no custom
   properties are defined or consumed, and there is no !important. */

.bsb {
  border-top: 3px solid #0039e8;
  background: #090909;
  color: #fdfdfd;
  font-family: "Avenir Next", "Helvetica Neue", system-ui, -apple-system,
    "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  text-align: left;
  -webkit-font-smoothing: antialiased;
}

.bsb *,
.bsb *::before,
.bsb *::after {
  box-sizing: border-box;
}

.bsb p {
  margin: 0;
}

.bsb ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.bsb a {
  color: inherit;
  text-decoration: none;
}

.bsb a:hover,
.bsb a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.bsb :focus-visible {
  outline: 2px solid #fdfdfd;
  outline-offset: 3px;
}

.bsb-shell,
.bsb-legal {
  width: min(1220px, calc(100vw - 3rem));
  margin: 0 auto;
}

.bsb-shell {
  display: grid;
  padding: 2.5rem 0 1.75rem;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  grid-template-columns: minmax(170px, 0.75fr) minmax(560px, 2.4fr) minmax(120px, 0.55fr);
}

/* The mark and the wordmark are one lockup, so they share one link and one
   focus ring. The mark is sized against the wordmark's INK height, not its box:
   133px of wordmark is 23.99px of ink, and the mark sits at 1.40x that. */
.bsb-wordmark-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.bsb-logomark {
  display: block;
  flex: none;
  width: 34px;
  height: 34px;
}

.bsb-wordmark {
  display: block;
  width: 133px;
  height: auto;
}

.bsb-strapline {
  max-width: 26ch;
  margin-top: 0.9rem;
  color: rgba(253, 253, 253, 0.84);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
}

.bsb-heading {
  margin-bottom: 0.7rem;
  color: rgba(253, 253, 253, 0.5);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.bsb-product-groups {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bsb-product-group {
  min-width: 0;
  padding: 0.85rem;
  border: 1px solid rgba(253, 253, 253, 0.1);
  border-radius: 1rem;
  background: rgba(253, 253, 253, 0.045);
}

.bsb-group-heading {
  display: flex;
  align-items: center;
  margin-bottom: 0.85rem;
  gap: 0.6rem;
}

.bsb-group-heading p {
  color: rgba(253, 253, 253, 0.62);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bsb-group-icon {
  width: 2rem;
  height: 2rem;
  display: grid;
  flex: none;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 0.62rem;
  background: linear-gradient(145deg, #1764ff, #0039e8);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 6px 14px rgba(0, 57, 232, 0.24);
}

.bsb-group-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: #ffffff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.bsb-product-group li + li {
  margin-top: 0.35rem;
}

.bsb-product-group a {
  min-height: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(253, 253, 253, 0.92);
  font-size: 0.82rem;
  font-weight: 600;
}

.bsb-slot {
  min-width: 1.75rem;
  padding: 0.12rem 0.28rem;
  border-radius: 0.34rem;
  background: #0039e8;
  color: #ffffff;
  font-size: 0.62rem;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-align: center;
}

.bsb-nav li + li {
  margin-top: 0.42rem;
}

.bsb-nav a {
  color: rgba(253, 253, 253, 0.88);
  font-size: 0.85rem;
}

.bsb-legal {
  display: grid;
  padding: 1.25rem 0 2.25rem;
  border-top: 1px solid rgba(253, 253, 253, 0.12);
  color: rgba(253, 253, 253, 0.55);
  font-size: 0.74rem;
  gap: 0.5rem 1.5rem;
  grid-template-columns: auto 1fr;
}

.bsb-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  justify-content: flex-end;
}

@media (max-width: 980px) {
  .bsb-shell {
    padding-top: 2rem;
    grid-template-columns: minmax(160px, 0.7fr) minmax(0, 2.3fr);
  }

  .bsb-nav {
    grid-column: 2;
  }

  .bsb-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.2rem;
  }

  .bsb-nav li + li {
    margin-top: 0;
  }
}

@media (max-width: 700px) {
  .bsb-shell {
    grid-template-columns: 1fr;
  }

  .bsb-product-groups,
  .bsb-nav {
    grid-column: auto;
  }

  .bsb-product-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bsb-legal {
    display: flex;
    flex-direction: column;
  }

  .bsb-contact {
    justify-content: flex-start;
  }
}

@media (max-width: 460px) {
  .bsb-shell,
  .bsb-legal {
    width: min(100% - 1.5rem, 1220px);
  }

  .bsb-product-groups {
    grid-template-columns: 1fr;
  }
}
