/* Privacy banner (see consent.js). Uses the page's design tokens; --forest keeps a fallback because only the home page defines it. */
.consent {
  position: fixed; z-index: 30; left: 16px; right: 16px; bottom: 16px; max-width: 520px;
  padding: 22px 22px 20px; border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 1px 2px rgba(13, 15, 20, 0.05), 0 24px 60px -20px rgba(13, 15, 20, 0.45);
  color: var(--ink); font-family: "Inter Tight", system-ui, sans-serif;
  max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; translate: 0 16px;
  transition: opacity 0.35s var(--ease), translate 0.35s var(--ease);
}
.consent.is-shown { opacity: 1; translate: 0 0; }
.consent__title { margin-bottom: 8px; font: 500 11.5px var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--mute); }
.consent__text { font-size: 14.5px; line-height: 1.5; }
.consent__text a { color: inherit; text-underline-offset: 3px; }
.consent__status { margin-top: 10px; font: 500 11.5px var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--mute); }
/* All three buttons share the same size and shape; "Accept all" is the filled one. */
.consent__actions { display: flex; gap: 10px; margin-top: 18px; }
.consent__actions button,
.consent-open-btn {
  flex: 1; height: 46px; padding: 0 20px; border: 1.5px solid var(--ink); border-radius: 999px;
  background: #fff; color: var(--ink); font: 600 14px "Inter Tight", system-ui, sans-serif; cursor: pointer;
  transition: background 0.3s, color 0.3s;
}
.consent__actions button:hover, .consent-open-btn:hover { background: var(--ink); color: #fff; }
.consent__actions button:focus-visible, .consent-open-btn:focus-visible, .consent a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.consent-open-btn { flex: none; display: inline-block; margin-top: 14px; }
@media (min-width: 641px) { .consent { left: 24px; right: auto; bottom: 24px; width: 520px; } }
@media (prefers-reduced-motion: reduce) { .consent { transition: none; } }

/* ---------- three choices on screen 1 ---------- */
.consent__actions--three { display: grid; grid-template-columns: repeat(3, 1fr); }
.consent__actions--three button { padding: 0 8px; }
@media (max-width: 640px) {
  .consent__actions--three { grid-template-columns: 1fr 1fr; }
  .consent__actions--three [data-action="customise"] { grid-column: 1 / -1; order: 3; }
}

/* ---------- screen 2: customise ---------- */
.consent__groups { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.consent__group { padding: 14px 16px 15px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 255, 255, 0.6); }
.consent__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 6px; }
.consent__head h3 { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.consent__badge { padding: 4px 10px; border-radius: 999px; background: var(--ink); color: #fff; font: 500 10.5px var(--mono); letter-spacing: 0.04em; text-transform: uppercase; }
.consent__group > p { font-size: 13.5px; line-height: 1.5; color: var(--mute); }
.consent__switch { position: relative; display: inline-block; width: 46px; height: 28px; flex-shrink: 0; cursor: pointer; }
.consent__switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.consent__track { position: absolute; inset: 0; border-radius: 999px; background: rgba(13, 15, 20, 0.2); transition: background 0.3s; }
.consent__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); transition: translate 0.3s var(--ease); }
.consent__switch input:checked + .consent__track { background: var(--ink); }
.consent__switch input:checked + .consent__track::after { translate: 18px 0; }
.consent__switch input:focus-visible + .consent__track { outline: 2px solid var(--ink); outline-offset: 3px; }
.consent__details { margin-top: 10px; }
.consent__details summary { cursor: pointer; font: 500 11.5px var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink); }
.consent__details summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.consent__cookies { list-style: none; margin-top: 10px; border-top: 1px solid var(--line); }
.consent__cookies li { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.consent__cookies code { font: 700 12.5px var(--mono); color: var(--ink); }
.consent__cookies span { font: 500 11.5px var(--mono); color: var(--mute); text-align: right; }
.consent__cookies p { grid-column: 1 / -1; font-size: 13px; color: var(--ink); }
@media (min-width: 641px) { .consent.is-custom { width: 560px; } }

/* "Accept all" is the filled, primary button, in the site's forest green */
.consent__actions button[data-action="accept"] { background: var(--forest, #2f4a3f); border-color: var(--forest, #2f4a3f); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18); }
.consent__actions button[data-action="accept"]:hover { background: #3b5c4e; border-color: #3b5c4e; }
