/* Cookie banner and the footer's Cookie settings button. Tokens come from style.css. Accept and Reject must stay identical. */
.consent { position: fixed; z-index: 50; inset-inline: 0; inset-block-end: 0; max-block-size: 70dvh; overflow-y: auto; background: var(--ground); color: var(--ink); border-block-start: 3px solid var(--ink); padding: 1rem 16px max(1rem, env(safe-area-inset-bottom)); font: 400 1rem/1.45 var(--sans); }
.consent-in { display: grid; gap: .75rem; max-inline-size: 76rem; margin-inline: auto; }
.consent h2 { font-size: 1.125rem; font-weight: 900; line-height: 1.2; letter-spacing: 0; margin-block-end: .25rem; }
.consent p { max-inline-size: 66ch; }
.consent a { color: var(--link); }
.consent-now { font-weight: 700; margin-block-start: .25rem; }
.consent-actions { display: flex; gap: .75rem; }
.consent-actions .btn { flex: 1 1 0; min-inline-size: 0; min-block-size: 44px; }
.consent :focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }
@media (min-width: 48rem) {
  .consent-in { grid-template-columns: minmax(0, 1fr) 18rem; align-items: center; gap: 2rem; }
}

/* While the banner is up, the end of the page and anything focused can still scroll clear of it. */
html.consent-open { scroll-padding-block-end: 16rem; }
html.consent-open body { padding-block-end: 16rem; }
@media (min-width: 48rem) {
  html.consent-open { scroll-padding-block-end: 9rem; }
  html.consent-open body { padding-block-end: 9rem; }
}

.linklike { display: flex; align-items: center; min-block-size: 2.75rem; padding: .35rem 0; background: none; border: 0; color: inherit; font: inherit; line-height: 1.25; text-align: start; text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: .08em; cursor: pointer; }
.linklike:hover { text-decoration-thickness: .16em; }
.linklike[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
  .consent .btn { transition: none; }
}
@media (forced-colors: active) {
  .consent { border-color: CanvasText; }
}
@media print {
  .consent { display: none; }
  html.consent-open body { padding-block-end: 0; }
}
