/* Site footer (scripts/partials/footer.html, on every page). Colours come from the page tokens; the
   fallbacks are the same values for pages without them (404). */
.site-footer { margin-top: 40px; padding: 48px 0 32px; border-top: 1px solid var(--line, #2a3039); color: var(--text-3, #808a98); font: 14px/1.6 "Inter", "Inter Fallback", system-ui, sans-serif; }
.site-footer .wrap { display: block; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.site-footer a { color: var(--text-2, #b4bcc8); text-decoration: none; }
.site-footer a:hover { color: var(--text, #eef1f5); }
/* Every page loads this file: a link inside running text is underlined, so it is not told apart by colour
   alone (WCAG 1.4.1). Buttons, chips and menus have a class and keep their look. */
p a:not([class]), td a:not([class]), .crumbs a:not([class]) { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.sf-top { display: grid; grid-template-columns: minmax(160px, 220px) minmax(0, 1fr) minmax(220px, 280px); gap: 40px; align-items: start; }
.sf-brand .brand { font-family: var(--head, "Space Grotesk", "Space Grotesk Fallback", "Inter", "Inter Fallback", system-ui, sans-serif); font-weight: 700; font-size: 18px; color: var(--text, #eef1f5); letter-spacing: -0.01em; }
.sf-brand .brand span { color: var(--accent, #6bb3f5); }
.sf-brand p { margin: 8px 0 0; }
.sf-cols { display: grid; grid-template-columns: repeat(3, max-content); column-gap: 48px; row-gap: 24px; }
.sf-col { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.sf-col h2 { margin: 0 0 4px; font: 500 12px/1.4 var(--mono, "JetBrains Mono", "JetBrains Mono Fallback", ui-monospace, Consolas, monospace); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3, #808a98); }
.site-footer .br-promo { display: block; border: 1px solid var(--line-2, #363d48); border-radius: 12px; padding: 16px 18px; font-size: 13px; line-height: 1.5; color: var(--text-3, #808a98); transition: border-color 0.15s; }
.site-footer .br-promo:hover { border-color: var(--accent, #6bb3f5); color: var(--text-3, #808a98); }
.site-footer .br-promo b { display: block; color: var(--text, #eef1f5); font-size: 15px; margin: 2px 0 4px; }
.site-footer .br-promo .go { display: block; margin-top: 8px; color: var(--accent, #6bb3f5); font-weight: 500; }
.sf-bottom { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line, #2a3039); }
.sf-bottom p { margin: 0; }
.sf-bottom p:first-child { flex: none; white-space: nowrap; }
.sf-bottom .font-credit { max-width: 520px; font-size: 12px; line-height: 1.6; text-align: right; color: var(--text-3, #808a98); }
.sf-bottom .font-credit a { text-decoration: underline; }

@media (max-width: 1100px) {
  .sf-top { grid-template-columns: 1fr; gap: 28px; }
  .site-footer .br-promo { max-width: 360px; }
}
@media (max-width: 560px) {
  .site-footer .wrap { padding: 0 16px; }
  .sf-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; }
  .sf-bottom { flex-direction: column; gap: 12px; }
  .sf-bottom .font-credit { text-align: left; }
}
