/* The site footer (handbook 08 #site-footer).
 *
 * One stylesheet for every main-family page; the markup is copied verbatim into
 * each page and pinned by backend/tests/test_marketing_homepage.py. The colours
 * live here, not in the pages' :root tokens, because those differ from page to
 * page (about.html and the tools define none of them).
 *
 * Linked last in <head>, so it wins over a page's own element rules (a page's
 * `h2`, `ul` or `a`) at equal specificity.
 */
.sf {
  --sf-bg: #F7FAFC;
  --sf-line: #DCE4EA;
  --sf-ink: #0B1F1C;
  --sf-muted: #44555E;
  --sf-faint: #5E7079;
  --sf-brand: #0B7A70;
  --sf-chip: #FFFFFF;
  border-top: 1px solid var(--sf-line);
  background: var(--sf-bg);
  color: var(--sf-muted);
  font-weight: 400;
  line-height: 1.5;
  text-align: left;
}
/* A page's own `p` (about.html: 1.25rem, weight 300) must not reach in here. */
.sf p { font-weight: 400; }
.sf-in { max-width: 1180px; margin: 0 auto; padding: 3rem 1.5rem 1.75rem; }

.sf-top {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) repeat(4, minmax(0, 1fr));
  gap: 2rem 1.5rem;
}

.sf-brand { min-width: 0; }
.sf-logo { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--sf-ink); text-decoration: none; }
.sf-logo img { width: 28px; height: 28px; border-radius: 7px; display: block; }
.sf-logo span { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; }
.sf-tag { margin: 0.75rem 0 0; max-width: 17rem; font-size: 0.9rem; line-height: 1.5; color: var(--sf-muted); }
.sf-apps { margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.sf-apps a {
  display: inline-flex; align-items: center; height: 32px; padding: 0 0.8rem;
  border: 1px solid var(--sf-line); border-radius: 8px; background: var(--sf-chip);
  color: var(--sf-ink); font-size: 0.82rem; font-weight: 600; text-decoration: none;
}
.sf-apps a:hover { border-color: var(--sf-brand); color: var(--sf-brand); }

.sf-col { min-width: 0; }
.sf .sf-col h2 {
  margin: 0 0 0.85rem; padding: 0; border: 0;
  font-size: 0.72rem; font-weight: 700; line-height: 1.3;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--sf-ink);
}
.sf .sf-col ul { list-style: none; margin: 0; padding: 0; }
.sf .sf-col li { margin: 0 0 0.55rem; padding: 0; line-height: 1.35; }
.sf .sf-col li::before { content: none; }
.sf .sf-col a { color: var(--sf-muted); font-size: 0.9rem; text-decoration: none; }
.sf .sf-col a:hover { color: var(--sf-brand); text-decoration: underline; text-underline-offset: 3px; }

.sf-base {
  margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--sf-line);
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.6rem 1.5rem;
  font-size: 0.8rem; line-height: 1.5; color: var(--sf-faint);
}
.sf-base p { margin: 0; font-size: inherit; color: inherit; }
.sf-base nav { display: flex; gap: 1.25rem; }
.sf-base a { color: var(--sf-faint); text-decoration: none; }
.sf-base a:hover { color: var(--sf-brand); text-decoration: underline; text-underline-offset: 3px; }

.sf a:focus-visible { outline: 2px solid var(--sf-brand); outline-offset: 2px; border-radius: 3px; }

/* A dark page (the user guide) says so on <body>; the markup stays the same. */
.sf-dark .sf {
  --sf-bg: #0B1424;
  --sf-line: rgba(255, 255, 255, 0.08);
  --sf-ink: #EAF1F8;
  --sf-muted: #A8BBCC;
  --sf-faint: #8396AB;
  --sf-brand: #2DD4BF;
  --sf-chip: rgba(255, 255, 255, 0.04);
}

/* Tablet: the brand takes the top row, the four columns sit under it. */
@media (max-width: 900px) {
  .sf-top { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sf-brand { grid-column: 1 / -1; }
}
/* Phone: two columns, 16px gutter. */
@media (max-width: 600px) {
  .sf-in { padding: 2.25rem 1rem 1.5rem; }
  .sf-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 1rem; }
  .sf-base { flex-direction: column; }
}
