/* BCE cookie / storage consent panel (built by app/consent.js).
   Sits under the intro overlay (z-index 100000) so it appears as the intro lifts.
   The three buttons share one style on purpose: accepting must be no easier
   than refusing. */
.bce-consent {
  position: fixed;
  inset-inline-start: 24px;
  bottom: 24px;
  z-index: 9000;
  width: min(420px, calc(100vw - 32px));
  padding: 22px 22px 18px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  box-shadow: 0 18px 48px rgba(14, 20, 17, 0.18);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  animation: bce-consent-in .4s var(--ease-out) both;
}
@keyframes bce-consent-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
.bce-consent .cs-title {
  margin: 0 0 6px;
  font-family: var(--font-serif);
  font-size: 20px;
  line-height: 1.3;
  font-weight: 500;
  color: var(--green-deep);
}
.bce-consent .cs-text { margin: 0 0 14px; color: var(--muted); }
.bce-consent .cs-opts { display: grid; gap: 10px; margin-bottom: 16px; }
.bce-consent .cs-opt {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  cursor: pointer;
}
.bce-consent .cs-opt input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--green-1);
  cursor: pointer;
}
.bce-consent .cs-opt input:disabled { cursor: default; }
.bce-consent .cs-opt input:focus-visible { outline: 3px solid var(--green-1); outline-offset: 2px; }
.bce-consent .cs-opt strong { color: var(--ink); font-weight: 700; }
.bce-consent .cs-opt span { color: var(--muted); }
.bce-consent .cs-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.bce-consent .cs-btn {
  flex: 1 1 auto;
  padding: 10px 14px;
  background: transparent;
  color: var(--green-1);
  border: 1px solid var(--green-1);
  border-radius: 2px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  cursor: pointer;
  transition: background-color .18s var(--ease-out), color .18s var(--ease-out), transform .12s var(--ease-out);
}
.bce-consent .cs-btn:hover { background: var(--green-1); color: var(--cream); }
.bce-consent .cs-btn:focus-visible { outline: 3px solid var(--green-1); outline-offset: 2px; }
.bce-consent .cs-btn:active { transform: var(--press); }
.bce-consent .cs-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--green-1);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Footer "Cookie settings" — a button styled like the footer links beside it. */
.bce-cookie-settings {
  padding: 0;
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  text-decoration: inherit;
  cursor: pointer;
}
.bce-cookie-settings:hover { text-decoration: underline; }

@media (max-width: 560px) {
  .bce-consent { inset-inline-start: 16px; bottom: 16px; padding: 18px 16px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .bce-consent { animation: none; }
  .bce-consent .cs-btn { transition: none; }
}
