/* ==========================================================================
   Cookie consent — Consent Mode v2 bridge for GTM container GTM-WZCRCX3N
   --------------------------------------------------------------------------
   Deliberately isolated from the main stylesheet so the whole consent layer
   can be removed by deleting this file, js/consent.js and the two <link>/
   <script> tags in each page's <head>. It uses only existing brand tokens —
   no new colours, typefaces or icons — so it reads as part of the system
   without touching it.

   A slim card is used rather than a full-width bar: it never covers the
   page's own content, and on mobile it stays clear of the sticky header.
   ========================================================================== */

.consent {
  --consent-ink: #0e0e0e;
  position: fixed;
  z-index: 300; /* above the fixed header (120) and the mobile drawer */
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  /* max-width + auto left margin docks it bottom-right on wide screens and
     lets it go full-width on a phone. */
  max-width: 420px;
  margin-left: auto;
  display: grid;
  gap: 0.7rem;
  padding: 1.1rem 1.25rem;
  background: rgba(14, 14, 14, 0.97);
  color: var(--paper, #f7f6f3);
  border: 1px solid rgba(247, 246, 243, 0.16);
  font-family: var(--font-ui, "Inter", Helvetica, Arial, sans-serif);
}

.consent[hidden] { display: none; }

.consent__title {
  margin: 0;
  font-size: var(--step--2, 0.75rem);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange, #ff7900);
}

.consent__desc {
  margin: 0;
  font-size: var(--step--1, 0.875rem);
  line-height: 1.55;
  color: rgba(247, 246, 243, 0.74);
}

.consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.1rem;
}

.consent__btn {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  min-height: 40px;
  padding: 0.5rem 1.05rem;
  background: transparent;
  color: var(--paper, #f7f6f3);
  border: 1px solid rgba(247, 246, 243, 0.34);
  border-radius: 999px;
  font-family: inherit;
  font-size: var(--step--2, 0.75rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: border-color 0.3s var(--ease, ease), color 0.3s var(--ease, ease),
              background 0.3s var(--ease, ease);
}

.consent__btn:hover {
  border-color: var(--orange, #ff7900);
  color: var(--orange, #ff7900);
}

/* Accept and Decline are given the same size and weight, so declining is as
   easy as accepting — the requirement under GDPR/UK GDPR. Only the primary
   is filled; neither is hidden behind a "settings" step. */
.consent__btn--primary {
  background: var(--orange, #ff7900);
  border-color: var(--orange, #ff7900);
  color: #141414;
}
.consent__btn--primary:hover {
  background: #ff9134;
  border-color: #ff9134;
  color: #141414;
}

.consent__btn:focus-visible {
  outline: 2px solid var(--orange, #ff7900);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .consent__btn { transition: none; }
}
