/*
  Footer for the API reference (Scalar). Scoped to .api-docs-footer only, so the reference
  itself is untouched. Colours and font follow Scalar's own theme variables (light and dark
  mode), with light fallbacks.
*/

.api-docs-footer {
  margin-top: 48px;
  border-top: 1px solid var(--scalar-border-color, #e5e7eb);
  background: var(--scalar-background-2, #fafafa);
  color: var(--scalar-color-1, #3b4151);
  font-family: var(--scalar-font, sans-serif);
}

.api-docs-footer__inner {
  box-sizing: border-box;
  max-width: 1460px;
  margin: 0 auto;
  padding: 28px 20px 24px;
}

.api-docs-footer__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px 32px;
  margin: 0;
}

.api-docs-footer__item { min-width: 0; }

.api-docs-footer__item dt {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--scalar-color-2, #6b7280);
}

.api-docs-footer__item dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.api-docs-footer__item a {
  color: #106440; /* site brand green (dark) - accessible on the light footer */
  text-decoration: none;
}

.dark-mode .api-docs-footer__item a { color: #79D6A5; } /* brand green (light) on Scalar's dark theme */

.api-docs-footer__item a:hover,
.api-docs-footer__item a:focus-visible { text-decoration: underline; }

.api-docs-footer__copy {
  margin: 22px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--scalar-border-color, #eceef1);
  font-size: 12px;
  color: var(--scalar-color-2, #6b7280);
}

@media (max-width: 480px) {
  .api-docs-footer__inner { padding: 22px 16px 20px; }
}
