/* Generated by apps/web/src/site-footer/docs-footer.ts — do not edit; run `bun run generate:site-footer`. */
/* The universal footer. Shared by the web app and, as a generated copy, the docs site: colours and type come
   from the --sqk-footer-* properties, which default to the design-system tokens and which the docs site maps
   onto its own palette. Chrome stays flat and achromatic; only the Emitter Board art carries colour. */
.sqk-site-footer {
  --sqk-footer-bg: var(--sqk-bg-raised);
  --sqk-footer-fg: var(--sqk-gray-lit);
  --sqk-footer-heading: var(--sqk-white);
  --sqk-footer-line: var(--sqk-line2);
  --sqk-footer-active: var(--sqk-active);
  --sqk-footer-font-data: var(--sqk-font-data);
  --sqk-footer-font-body: inherit;
  /* One logo unit: the brand row sits on the logo's own 16-unit dot lattice. */
  --sqk-footer-u: 0.2px;

  display: block;
  margin-top: 40px;
  border-top: 1px solid var(--sqk-footer-line);
  background: var(--sqk-footer-bg);
  color: var(--sqk-footer-fg);
  font-family: var(--sqk-footer-font-body);
  font-size: 14px;
  line-height: 1.5;
}

.sqk-site-footer__top {
  display: grid;
  grid-template-columns: minmax(220px, 300px) 1fr;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 32px 24px;
}

/* The hamster mark, then the X and Discord tiles in the slot of the logo's blue square: 14 x 14 dots on the
   same 16-unit pitch, 18 units apart edge to edge, and level with the hamster's top and bottom rows. */
.sqk-site-footer__lattice { display: flex; align-items: flex-start; }
.sqk-site-footer__lattice a { display: block; line-height: 0; }
.sqk-site-footer__mark { display: block; width: calc(350 * var(--sqk-footer-u)); height: calc(238 * var(--sqk-footer-u)); }
.sqk-site-footer__tile { position: relative; overflow: hidden; margin-top: calc(7 * var(--sqk-footer-u)); }
.sqk-site-footer__tile + .sqk-site-footer__tile { margin-left: calc(16 * var(--sqk-footer-u)); }
.sqk-site-footer__home + .sqk-site-footer__tile { margin-left: calc(9 * var(--sqk-footer-u)); }
.sqk-site-footer__tile svg { display: block; width: calc(224 * var(--sqk-footer-u)); height: calc(224 * var(--sqk-footer-u)); }
/* Pointing at a tile passes a band across its dots: a layer of the footer's own colour, moved by transform. */
.sqk-site-footer__tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, color-mix(in srgb, var(--sqk-footer-bg) 70%, transparent) 50%, transparent 70%);
  transform: translateX(-100%);
  pointer-events: none;
}
.sqk-site-footer__tile:hover::after,
.sqk-site-footer__tile:focus-visible::after { animation: sqk-site-footer-sweep 0.6s ease-out both; }
@keyframes sqk-site-footer-sweep { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.sqk-site-footer a:focus-visible { outline: 2px solid var(--sqk-footer-active); outline-offset: 3px; }

/* Text rules are scoped under the footer so a host site's own p/h2/ul rules can't reach them. */
.sqk-site-footer .sqk-site-footer__tag { margin: 14px 0 0; max-width: 30ch; font-size: 13px; }

.sqk-site-footer__groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.sqk-site-footer .sqk-site-footer__heading {
  margin: 0 0 10px;
  color: var(--sqk-footer-heading);
  font: 600 11px/1.4 var(--sqk-footer-font-data);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.sqk-site-footer .sqk-site-footer__list { margin: 0; padding: 0; list-style: none; }
.sqk-site-footer .sqk-site-footer__list li { margin: 0 0 7px; padding: 0; }
.sqk-site-footer__link { position: relative; color: var(--sqk-footer-fg); font-size: 13.5px; text-decoration: none; }
/* Square cells, as everywhere in the system: outlined on hover and focus, filled for the current site. */
.sqk-site-footer__link::before {
  content: "";
  position: absolute;
  top: 0.5em;
  left: -14px;
  box-sizing: border-box;
  width: 6px;
  height: 6px;
  border: 1.5px solid var(--sqk-footer-active);
  opacity: 0;
}
.sqk-site-footer__link:hover,
.sqk-site-footer__link:focus-visible { color: var(--sqk-footer-active); }
.sqk-site-footer__link:hover::before,
.sqk-site-footer__link:focus-visible::before { opacity: 1; }
.sqk-site-footer__link[aria-current] { color: var(--sqk-footer-heading); font-weight: 600; }
.sqk-site-footer__link[aria-current]::before { opacity: 1; border: 0; background: var(--sqk-footer-active); }

.sqk-site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 32px 22px;
  border-top: 1px solid var(--sqk-footer-line);
  font: 12px/1.5 var(--sqk-footer-font-data);
}

@media (max-width: 760px) {
  .sqk-site-footer__top { grid-template-columns: 1fr; gap: 28px; padding-inline: 20px; }
  .sqk-site-footer__groups { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
  .sqk-site-footer__bottom { padding-inline: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .sqk-site-footer__tile::after { display: none; }
}
