/* K53 Pass site footer (the markup's one home is tools/site-footer.mjs; every page carries the same
   footer). Ink band, DESIGN.md "Taxi-rank loud": flat colour, no gradients or glow.
   Row 1: Follow K53 Pass + five round profile buttons + "All our socials" (to /socials).
   Row 2: Privacy · Terms & refunds · the support email.
   Last row: fine print (unofficial, sign artwork credit, the release version) + the Bascorp badge.
   Why its own file, not app.css: /socials, /privacy, /terms and 404 are not app-shell pages. A
   returning visitor's service worker serves ITS version's app.css to them until it updates, but a
   file that version never cached (this one) comes from the network, so the new footer is never
   drawn with old rules. Every selector is scoped under .site-foot so it also beats the footer rules
   an older app.css still carries. */
.site-foot { flex-shrink: 0; display: block; padding: 0 0 env(safe-area-inset-bottom); color: var(--white); background: var(--ink); font-size: 15px; }
.site-foot .foot-in { max-width: 1080px; margin: 0 auto; padding: 28px var(--gutter) 4px; }
.site-foot :focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; box-shadow: 0 0 0 3px var(--ink); }

/* Row 1: follow */
.site-foot .foot-follow { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; padding-bottom: 24px; border-bottom: 2px solid #3d3d3d; }
.site-foot .foot-h { margin: 0; color: var(--yellow); font-size: 22px; font-weight: 900; line-height: 1.15; }
.site-foot .foot-soc { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.site-foot .foot-ico { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; color: var(--ink); background: var(--yellow); border-radius: 50%; text-decoration: none; }
.site-foot .foot-ico:hover { background: var(--white); }
.site-foot .foot-ico:active { transform: translateY(2px); }
.site-foot .foot-ico svg { display: block; }
.site-foot .foot-all { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; margin-left: auto; padding: 0 20px; color: var(--yellow); background: transparent; border: var(--bw) solid var(--yellow); border-radius: 999px; font-size: 17px; font-weight: 800; line-height: 1.2; text-decoration: none; }
.site-foot .foot-all:hover { color: var(--ink); background: var(--yellow); }
.site-foot .foot-all:active { transform: translateY(2px); }
.site-foot .foot-all svg { flex: none; }

/* Row 2: links */
.site-foot .foot-links { display: flex; flex-wrap: wrap; gap: 0 28px; margin: 0; padding: 12px 0; border-bottom: 2px solid #3d3d3d; }
.site-foot .foot-links a { display: inline-flex; align-items: center; min-height: 48px; margin: 0; padding: 0; color: var(--white); font-weight: 700; text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 5px; overflow-wrap: anywhere; }
.site-foot .foot-links a:hover { color: var(--yellow); }
.site-foot .foot-links a[aria-current="page"] { color: var(--yellow); text-decoration: none; }

/* Last row: fine print + badge (the badge is the last thing in the footer, right on wide screens,
   centred on phones, per the Bascorp badge instructions) */
.site-foot .foot-last { display: flex; flex-wrap: wrap; align-items: center; column-gap: 24px; }
.site-foot .foot-fine { flex: 1 1 420px; max-width: 72ch; margin: 0; padding: 14px 0; color: #c9c9c9; font-size: 14px; line-height: 1.5; } /* 11.6:1 on ink */
.site-foot .foot-ver { display: block; margin-top: 2px; color: inherit; font-size: inherit; opacity: 1; white-space: nowrap; font-variant-numeric: tabular-nums; }
.site-foot .foot-badge { flex: 0 0 auto; margin: 0 -12px 0 auto; } /* the badge keeps its 12px clear space; -12px puts its visible edge on the column edge */

/* The "A bascorp agency product" badge: official files in /img, markup and CSS unchanged from the
   Bascorp instructions. The footer is dark ink, so the dark badge shows. */
.bascorp-badge { display: inline-flex; line-height: 0; margin: 12px; }
.bascorp-badge img { height: 36px; width: auto; }
.bascorp-badge .bb-light { display: none; }
.bascorp-badge .bb-dark { display: inline; }
@media (max-width: 480px) { .bascorp-badge img { height: 30px; } }

@media (max-width: 599px) {
  .site-foot .foot-in { padding-top: 24px; }
  .site-foot .foot-h { flex-basis: 100%; }
  .site-foot .foot-all { margin-left: 0; }
  .site-foot .foot-badge { flex-basis: 100%; margin: 0 -12px; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .site-foot .foot-ico:active, .site-foot .foot-all:active { transform: none; } }
