/*
 * The cookie notice (02/11/2026, scripts/consent.js): one small line at the bottom edge with "OK" to
 * close it. It never covers the page, so the site stays usable while it is up. Colors come from
 * tokens.css, so it follows the light and dark themes.
 */
.consent {
  position: fixed;
  z-index: 1000;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 24rem;
  padding: 0.5rem 0.75rem;
  border: var(--hairline-strong);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 6px 18px rgb(0 0 0 / 0.14);
  color: var(--ink-1);
  font-size: 0.8125rem;
  line-height: 1.4;
}

.consent__text {
  margin: 0;
}

.consent__text a {
  color: inherit;
  text-decoration: underline;
}

.consent__button {
  flex: none;
  min-height: 2rem;
  padding: 0 0.75rem;
  border: 1px solid currentColor;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.consent__button:hover {
  background: var(--paper-deep);
}

.consent__button:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring-panel);
}

@media (max-width: 40rem) {
  .consent {
    right: 0.75rem;
    bottom: 0.75rem;
    left: 0.75rem;
    max-width: none;
  }
}
