/* Site-wide footer (and the small header on content pages). Same-origin, no web fonts:
   it inherits the page's font (system fonts on every page).
   Look (Richard, 1 Dec 2026 11:26 UK, STILL-FOOTER-LIVE): black background, spacing copied
   from the Lone Wolf footer (measured on the LW sandbox theme at 1440 and 390):
   top 84px desktop / 75px mobile; 1200px content width; brand column 250px + 4 equal link
   columns, 20px gaps; brand items 11px apart, social icons 30px with 12px gaps; headings
   uppercase 1.5px tracking, 28px to the first link; links 16px on a 27.2px line, 4px apart;
   small print centred, a large gap below the columns (LW: about 370px desktop, 160px mobile;
   Still used 50px less than LW: 320px / 95px, Richard 1 Dec 11:55 UK)
   and about 36px / 27px to the bottom edge; on mobile the brand spans the width and the
   columns pair up two by two.
   Playful palette (3 Dec 2026, Richard t1277u): deep indigo #1b1740, lime headings.
   Footer top edge is square (no border-radius) on every page (Richard t1301u, 3 Dec 2026).
   Contrast on #1b1740: white 16.9:1; links/small print #d9d5f5 11.5:1; tags #c4bfe8 8.9:1; headings lime #d4f76b 13.9:1.
   Desktop gap above the copyright line reduced by 70px (320px to 250px; 170px to 100px when a
   note is present). Measured 320px at 1366 width. Mobile 95px left unchanged (Richard t1278u, 3 Dec 2026).
   Reduced by a further 70px (250px to 180px; 100px to 30px when a note is present).
   Mobile 95px still unchanged (Richard t1279u, 3 Dec 2026). */
footer.sf {
  max-width: none;
  margin: 0;
  padding: 75px 20px 27px;
  border-top: 0;
  background: #1b1740;
  color: #d9d5f5;
  border-radius: 0;
  font-size: 1rem;
  line-height: 1.7;
}
footer.sf a { color: #d9d5f5; font-size: inherit; text-decoration: none; }
footer.sf a:hover { color: #d4f76b; text-decoration: underline; text-underline-offset: 0.2em; }
footer.sf a:focus-visible { color: #fff; outline: 2px solid #fff; outline-offset: 3px; border-radius: 2px; }
footer.sf ul { list-style: none; margin: 0; padding: 0; }
footer.sf p { margin: 0; }
.sf-inner, .sf-note, .sf-fine { max-width: 1200px; margin: 0 auto; }
.sf-inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.sf-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; }
footer.sf .sf-wordmark { display: inline-block; color: #fff; font-size: 1.75rem; font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
footer.sf .sf-wordmark:hover { color: #fff; text-decoration: none; }
/* Same pill lockup as the header: overflow visible so the rounded caps
   are not clipped; baseline is the bottom edge (floated bars, no line
   boxes). Bar width stays 4px at the 1.75rem wordmark (root 16px),
   expressed in em, with radius = half the bar width (Richard, 4 Dec 2026). */
.sf-mark { display: inline-block; overflow: visible; box-sizing: border-box; width: calc(12em / 28); height: calc(19em / 26); line-height: 0; margin: 0 0.6rem 0 0; vertical-align: baseline; }
.sf-mark i { float: left; box-sizing: border-box; width: calc(4em / 28); height: 100%; margin: 0; background: currentColor; border-radius: calc(2em / 28); }
.sf-mark i + i { margin-left: calc(4em / 28); }
footer.sf .sf-line { color: #fff; font-size: 0.875rem; line-height: 1.4; }
/* Social icons (Richard, 1 Dec 13:36 UK): the first glyph lines up with the logo and tagline, and the
   icons sit 6px closer (pitch 42 -> 36px). Each link is a 36x40px tap target touching the next one
   (no gap, so targets never overlap). The row is pulled left by the X glyph's inset in its box
   (7px box padding + 4px inside the 24px viewBox = 11px); margins of -5px top / -1px bottom so the taller targets
   don't move the row or what follows it (the old row was ~34px tall from inline baseline slack). */
footer.sf .sf-social { display: flex; gap: 0; margin: -5px 0 -1px -11px; }
footer.sf .sf-social a { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 40px; color: #fff; }
footer.sf .sf-social a:hover { color: #d4f76b; }
.sf-icon { display: block; width: 22px; height: 22px; }
.sf-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
footer.sf .sf-h { margin: 0 0 28px; padding: 0; color: #d4f76b; font-size: 1rem; font-weight: 700; letter-spacing: 1.5px; line-height: 1.3; text-transform: uppercase; }
.sf-col li { margin: 0 0 4px; }
.sf-col a { display: inline; }
footer.sf .sf-tag { display: inline-block; margin-left: 0.35rem; padding: 0 0.45rem; border: 1px solid #8a83cc; border-radius: 1rem; color: #c4bfe8; font-size: 0.6875rem; line-height: 1.4; vertical-align: 0.15em; white-space: nowrap; }
.sf-note { margin-top: 70px; font-size: 0.8125rem; line-height: 1.5; text-align: center; }
.sf-note p { margin: 0.5rem 0 0 !important; }
footer.sf .sf-note a { text-decoration: underline; }
.sf-fine { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem 1rem; margin-top: 95px; font-size: 0.75rem; line-height: 1.7; text-align: center; }
.sf-note + .sf-fine { margin-top: 25px; }
@media (min-width: 48rem) {
  footer.sf { padding: 84px 2rem 36px; }
  .sf-inner { grid-template-columns: 250px minmax(0, 1fr); }
  /* Four columns equally spaced (Richard, 1 Dec 12:23 UK): each column is as wide as its text
     (Worth reading wraps at 13rem), Download starts at the left of the link area, Support
     ends at the right edge, and the space left over is shared equally between them. */
  .sf-cols { display: flex; justify-content: space-between; gap: 20px; }
  .sf-cols > .sf-col { flex: 0 1 auto; max-width: 13rem; }
  footer.sf .sf-h { padding-top: 10px; }
  .sf-note { margin-top: 150px; }
  .sf-fine { margin-top: 180px; }
  .sf-note + .sf-fine { margin-top: 30px; }
}

/* No gap above the footer (Richard, 1 Dec 11:55 UK): the section above runs to the footer's top edge.
   Pages whose last block is plain page background keep 3rem of breathing room in that same colour. */
main:has(+ footer.sf) { margin-bottom: 3rem; }

/* Small header on content pages. */
.sh { max-width: 72rem; margin: 0 auto; padding: 1rem 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.sh-wordmark { display: inline-flex; align-items: baseline; gap: 0.5rem; font-size: 1.5rem; font-weight: 600; letter-spacing: -0.04em; line-height: 1; color: var(--ink, #12363c); text-decoration: none; }
.sh nav { display: flex; gap: 1.25rem; font-size: 0.9375rem; }
.sh nav a { color: var(--ink, #12363c); }
