/**
 * Footer navigation columns.
 *
 * Written as plain CSS rather than Tailwind utilities on purpose: dist/styles.css
 * is a purged Tailwind build from Feb 2025 and the toolchain (node/npm/node_modules)
 * is not present on this host, so it cannot be regenerated. Utilities this block
 * needs (lg:grid-cols-5, focus ring classes, text-xs, list-none, leading-relaxed)
 * are absent from that build and would silently render as unstyled markup.
 *
 * Colours come from the theme custom properties so this stays in step with the
 * palette. Fallbacks match :root in theme/main.css.
 *
 * Contrast on the malachite footer background (#076264):
 *   #FFFFFF body links ....... 7.14:1  (AA and AAA normal text)
 *   #ADD7DC column headings .. 4.69:1  (AA normal text)
 */

.st-fnav__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.25rem 1.5rem;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

@media (min-width: 768px) {
  .st-fnav__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .st-fnav__grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2.5rem 2rem;
  }
}

.st-fnav__title {
  margin: 0 0 0.875rem;
  color: var(--color-snowcap, #add7dc);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.st-fnav__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.st-fnav__list li {
  margin: 0 0 0.625rem;
}

.st-fnav__list li:last-child {
  margin-bottom: 0;
}

.st-fnav__list a {
  display: inline-block;
  color: #fff;
  font-size: 0.9375rem;
  line-height: 1.45;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.st-fnav__list a:hover {
  color: var(--color-snowcap, #add7dc);
  border-bottom-color: var(--color-snowcap, #add7dc);
}

/* Visible focus on the dark teal band. Outline, not ring, so it survives the
   purged build and does not depend on Tailwind ring custom properties. */
.st-fnav__list a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
  border-radius: 2px;
  color: #fff;
}

/* Fallback for browsers without :focus-visible support. */
.st-fnav__list a:focus {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.st-fnav__list a:focus:not(:focus-visible) {
  outline: none;
}

@media (prefers-reduced-motion: reduce) {
  .st-fnav__list a {
    transition: none;
  }
}
