/* Site footer styles */

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 1rem 2rem 0;
  margin-top: 3rem;
  border-top: 1px solid var(--border-muted);
  font-size: 0.9rem;
  color: var(--text-muted);
}

@media (min-width: 769px) {
  .docs-page .site-footer {
    /* Tracks the resizable sidebar (was a hardcoded copy of the
       --nav-width default, which ignored drag-resize). */
    margin-left: var(--nav-width);
  }
}

.footer-updated {
  font-style: italic;
}

.footer-attribution {
  font-size: 0.85rem;

  a {
    color: var(--text-muted);
  }
}

/* Documents bar on main page */
.documents-bar {
  text-align: center;
  padding: 2rem 0 0;
  margin-top: 3rem;
  border-top: 1px solid var(--border-muted);

  h2 {
    font-size: var(--font-size-lg);
    margin-bottom: 0.25rem;
  }

  p {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    margin-bottom: 1rem;
  }
}

.documents-bar-links {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;

  a {
    text-decoration: none;
    color: inherit;
  }

  kbd {
    cursor: pointer;
    background: transparent;
    border: 1px solid var(--border-muted);
    color: var(--text-muted);
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;

    &:hover {
      background: var(--primary-hover);
      border-color: var(--text-muted);
      color: var(--primary-inverse);
    }
  }
}
