/* Shared navigation and reference notes for the game and guides. */
.site-footer {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-top: 1px solid var(--border);
  padding: 24px 0 8px;
  color: var(--dim, var(--text-dim));
  font-size: 13px;
  line-height: 1.6;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer a:focus-visible,
.sources-notes summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}

.footer-top,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
}

.footer-top {
  justify-content: space-between;
}

.footer-links a {
  padding: 4px 0;
}

.footer-links [aria-current="page"] {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-intro {
  display: grid;
  gap: 4px;
}

.sources-notes {
  color: var(--dim, var(--text-dim));
  font-size: 13px;
  line-height: 1.6;
}

.sources-notes summary {
  width: fit-content;
  padding: 4px 0;
  cursor: pointer;
}

.sources-content {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  overflow-wrap: anywhere;
}

.footer-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
