/* ==========================================================================
   Site footer — v2 pages.

   Skynet UI already defines .sk-footer, .sk-footer-grid, .sk-footer-title and
   .sk-footer-bottom, so this file is only what the framework does not cover:
   the blurb column, the wrapping rules and the tap-target sizes.

   Loaded by views/partials/footer-v2.ejs' consumers through header-v2.css's
   sibling link in the head of each page — see the note in footer-v2.ejs.
   ========================================================================== */

/* Five columns is one more than .sk-footer-grid assumes, and the about
   column carries a paragraph rather than links, so it gets more room. */
.skv2-footer .sk-footer-grid {
  display: grid;
  gap: 24px 32px;
  grid-template-columns: 1fr;
}
@media (min-width: 40em) {
  .skv2-footer .sk-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 64em) {
  .skv2-footer .sk-footer-grid { grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); }
}

/* A grid item defaults to min-width: auto — its MIN-CONTENT width, not zero —
   so one long label sizes its whole track. The lesson /status/v2 learned the
   hard way, and the reason `Support the project` does not widen the legal
   column on a phone. */
.skv2-footer .sk-footer-grid > * { min-width: 0; }

.skv2-footer-col { display: flex; flex-direction: column; }

/* The blurb column. Its own class rather than a bare div so the class checker
   can see it and so the grid's first track is addressable. */
.skv2-footer-about { display: flex; flex-direction: column; gap: 8px; }

.skv2-footer-blurb {
  margin: 0;
  color: var(--sk-muted);
  font-size: 14px;
  line-height: 1.6;
  max-width: 44ch;
}

/* Skynet UI paints <a> with --sk-primary, a FILL token, which as text on the
   footer's surface measures around 3:1 on the dark palettes. --sk-primary-text
   is the readable half in both modes. :not(.sk-btn) is load-bearing: without
   it this also repaints the "Classic view" button's own label, pale accent on
   the accent fill underneath — how /partnerships/v2 measured 1.94:1. */
.skv2-footer a:not(.sk-btn) {
  color: var(--sk-text-2);
  text-decoration: none;
  padding: 4px 0;
  overflow-wrap: anywhere;
}
.skv2-footer a:not(.sk-btn):hover,
.skv2-footer a:not(.sk-btn):focus-visible {
  color: var(--sk-primary-text);
  text-decoration: underline;
}

/* Skynet UI sizes for a mouse; a footer link is a tap target like any other. */
@media (pointer: coarse) {
  .skv2-footer a:not(.sk-btn) {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

.skv2-footer .sk-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
}
.skv2-footer .sk-footer-bottom > * { min-width: 0; }
.skv2-footer-classic { margin-left: auto; }
@media (max-width: 48em) {
  .skv2-footer-classic { margin-left: 0; }
}

/* --sk-danger as text, not the fill token: a heart glyph is text. */
.skv2-footer-heart { color: var(--sk-danger-text); }
