/* Cookie consent notice — compact corner card, loaded on every page (including home). */
.cookie-notice,
.cookie-notice * {
  box-sizing: border-box;
}
.cookie-notice {
  position: fixed;
  z-index: 80;
  left: max(1rem, env(safe-area-inset-left));
  bottom: max(1rem, env(safe-area-inset-bottom));
  width: min(22rem, calc(100vw - 2rem));
  padding: 1rem 1.125rem;
  border: 1px solid color-mix(in srgb, var(--page-text) 20%, transparent);
  border-radius: var(--radius-md);
  background: var(--page-bg);
  color: var(--page-text);
  font-family: var(--font-sans);
  box-shadow: 0 1rem 3rem #0004;
}
.cookie-notice[hidden] {
  display: none;
}
.cookie-text {
  margin: 0 0 0.75rem;
  font-size: var(--text-xs);
  line-height: 1.55;
  color: var(--page-muted);
}
.cookie-text a {
  color: var(--page-text);
  text-decoration: underline;
  text-underline-offset: 0.25rem;
  white-space: nowrap;
}
.cookie-actions {
  display: flex;
  gap: 0.5rem;
}
.cookie-actions button {
  flex: 1;
  min-height: 2.25rem;
  padding: 0.4375rem 0.75rem;
  border: 1px solid var(--orange);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--page-text);
  font-family: inherit;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  white-space: nowrap;
}
.cookie-actions button:first-child {
  background: var(--orange); color: var(--ls-on-action);
}
/* The home page is dark-only and does not set a page theme. */
.cookie-notice--dark {
  --page-bg: #101010;
  --page-text: #f1f0eb;
  --page-muted: #aaa9a3;
}
@media (max-width: 640px) {
  .cookie-notice {
    left: 0.75rem;
    bottom: max(0.75rem, env(safe-area-inset-bottom));
    width: calc(100vw - 1.5rem);
  }
}
