/* Footer stack of the institutional site and the sub-sites (site redesign).
   One navy block: the optional contact row ("Let's talk"), a gap, a
   hairline, the link columns, then the bottom line with the copyright. It
   used to be two bands (the contact section in the page, then the footer in
   another navy), which left an empty strip of navy between them. Loaded by
   base.html on every page; class names carry the sf- prefix so Tailwind
   never reads them as utilities. */

.sf {
  --sf-bg: #0f1e2e;
  --sf-line: rgba(255, 255, 255, 0.12);
  --sf-text: #c3cede;   /* 10.6:1 on the navy */
  --sf-title: #a9b8cc;  /* 8.5:1 */
  --sf-muted: #9aa9bc;  /* 7.1:1 */
  margin-top: -1px;
  padding: 0; /* the base layer pads every footer for the older pages */
  width: 100%;
  background: var(--sf-bg);
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  text-align: left;
}
/* The base layer gives h2 and p a colour, a size and a margin for the older
   pages. Zero specificity, and scoped to the parts written here: the
   newsletter form keeps its Tailwind utilities, which an unlayered rule
   would otherwise beat. */
:where(.sf-cta, .sf-col, .sf-bottom, .sf-space-brand) :where(h2, p) { color: inherit; margin: 0; font-size: inherit; line-height: inherit; }

/* Same container as every section: 1160px of content, 20px gutters on
   phones, 40px from 768px. */
.sf-wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 20px; }
@media (min-width: 768px) { .sf-wrap { padding-inline: 40px; } }

/* Contact row. */
.sf-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  padding-block: 64px 56px;
}
@media (min-width: 1024px) {
  .sf-cta { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 48px; padding-block: 88px 72px; }
}
.sf-cta-title {
  font-size: clamp(1.75rem, 1.35rem + 1.3vw, 2.5rem);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.sf-cta-text p {
  margin-top: 14px;
  max-width: 52ch;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--sf-text);
}
/* Two buttons of equal width: stacked on narrow phones, side by side from
   480px. */
.sf-cta-actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 480px) { .sf-cta-actions { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .sf-cta-actions { grid-template-columns: repeat(2, minmax(190px, auto)); } }
.sf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 12px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}
.sf-btn svg { width: 20px; height: 20px; flex: none; }
.sf-btn:hover { text-decoration: none; }
.sf-btn:focus-visible { outline: 3px solid #10c7ff; outline-offset: 3px; }
.sf-btn--primary { background: #10c7ff; color: #0f1e2e; }
.sf-btn--primary:hover { background: #3ad2ff; color: #0f1e2e; }
.sf-btn--ghost { border: 1.5px solid rgba(255, 255, 255, 0.35); color: #ffffff; }
.sf-btn--ghost:hover { border-color: #ffffff; background: rgba(255, 255, 255, 0.06); color: #ffffff; }

/* Link columns. */
.sf-main { display: grid; gap: 40px; padding-block: 48px 40px; }
.sf-cta + .sf-main { border-top: 1px solid var(--sf-line); }
@media (min-width: 768px) { .sf-main { grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: 48px; padding-block: 56px 48px; } }
.sf-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 24px; }
@media (min-width: 1024px) { .sf-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sf-col { display: flex; flex-direction: column; gap: 10px; font-size: 0.875rem; line-height: 1.45; }
.sf-col-title, .sf-news-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--sf-title);
  margin-bottom: 4px;
}
.sf-news-title { margin-bottom: 12px; }
.sf a.footer-link { color: #e2e8f0; }
.sf a.footer-link:hover { color: #ffffff; }
.sf a:focus-visible { outline: 2px solid #10c7ff; outline-offset: 3px; border-radius: 2px; }

/* Bottom line: the way home and the copyright. */
.sf-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-block: 24px 32px;
  border-top: 1px solid var(--sf-line);
  font-size: 0.8125rem;
  color: var(--sf-muted);
}
.sf-home { display: inline-flex; align-items: center; gap: 10px; color: #ffffff; font-size: 0.875rem; font-weight: 600; text-decoration: none; }
.sf-home:hover { color: #ffffff; text-decoration: underline; text-underline-offset: 4px; }
.sf-home img { width: 24px; height: 24px; }
.sf-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.sf-legal a { color: var(--sf-muted); text-decoration: none; }
.sf-legal a:hover { color: #ffffff; text-decoration: underline; text-underline-offset: 4px; }

/* Sub-site variant: the space's name and line, its pages, then the
   endorsement back to the institutional site. */
.sf-space-main { display: grid; gap: 32px; padding-block: 48px 40px; }
.sf-cta + .sf-space-main { border-top: 1px solid var(--sf-line); }
@media (min-width: 768px) { .sf-space-main { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; padding-block: 56px 48px; } }
.sf-space-name { font-size: 1.125rem; font-weight: 600; color: #ffffff; text-decoration: none; }
.sf-space-name:hover { color: #ffffff; text-decoration: underline; text-underline-offset: 4px; }
.sf-space-brand p { margin-top: 8px; max-width: 40ch; font-size: 0.875rem; line-height: 1.6; color: var(--sf-text); }
.sf-space-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; font-size: 0.875rem; align-content: start; }
@media (min-width: 640px) { .sf-space-nav { display: flex; flex-wrap: wrap; gap: 12px 28px; } }
@media (min-width: 768px) { .sf-space-nav { justify-content: flex-end; } }
/* The endorsement is a real link home: legible size, a visible mark. */
.sf-endorse { display: inline-flex; align-items: center; gap: 10px; color: #e2e8f0; font-size: 0.875rem; font-weight: 500; text-decoration: none; }
.sf-endorse img { width: 20px; height: 20px; }
.sf-endorse:hover { color: #ffffff; text-decoration: underline; text-underline-offset: 4px; }

@media (prefers-reduced-motion: reduce) { .sf-btn { transition: none; } }
