/* Consent card. Rendered from the root layout, so it sits outside every page's
   own theme scope and carries its own palette: the site's near-black surface
   and acid accent, which reads as Avue on the dark landing pages and as a
   deliberate object on the cream ones. */
.consent {
  position: fixed;
  z-index: 200;
  right: clamp(14px, 2vw, 24px);
  bottom: clamp(14px, 2vw, 24px);
  width: min(340px, calc(100vw - 28px));
  padding: 16px 16px 14px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 16px;
  background: rgba(12, 16, 17, .94);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: #d7dcda;
  font-family: "Schibsted Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  animation: consent-in .32s cubic-bezier(.2, .8, .2, 1) both;
}
.consent.is-leaving { animation: consent-out .2s ease both; }

@keyframes consent-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@keyframes consent-out {
  from { opacity: 1; transform: none; }
  to { opacity: 0; transform: translateY(8px); }
}

.consent__body { margin: 0; font-size: 13px; line-height: 1.5; }
.consent__link { color: #f2f0e9; text-decoration: underline; text-underline-offset: 2px; }
.consent__link:hover { color: #d7ee5a; }

.consent__actions { display: flex; gap: 8px; margin-top: 14px; }
.consent__btn {
  flex: 1;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.consent__btn:focus-visible { outline: 2px solid #d7ee5a; outline-offset: 2px; }
.consent__btn--ghost { color: #b7bfbc; border-color: rgba(255, 255, 255, .2); background: transparent; }
.consent__btn--ghost:hover { color: #f2f0e9; border-color: rgba(255, 255, 255, .38); }
.consent__btn--accept { color: #131712; background: #d7ee5a; }
.consent__btn--accept:hover { background: #e4f879; }

@media (prefers-reduced-motion: reduce) {
  .consent, .consent.is-leaving { animation: none; }
}
