/* ==========================================================================
   ONE BCG — cookie consent

   Neutral surfaces, charcoal and slate only. No red anywhere in this file:
   red is the site's interaction accent, and a consent interface must not use
   the colour that signals "primary action" when two of its choices have to
   carry equal weight.

   Accept all and Reject non-essential share one class, .cc-btn--equal, so
   they are identical in size, weight and colour and cannot drift apart.
   ========================================================================== */
.cc{
  --cc-ink:#151412;
  --cc-ink-2:#403C36;
  --cc-ink-3:#5A554B;
  --cc-slate:#2B3038;
  --cc-slate-2:#3A414B;
  --cc-line:rgba(21,20,18,.16);
  --cc-line-2:rgba(21,20,18,.28);
  --cc-surface:#FFFFFF;
  --cc-surface-2:#F4F1EC;
}

/* ------------------------------------------------------------------ banner */
.cc-bar{
  position:fixed;left:0;right:0;bottom:0;z-index:120;
  background:var(--cc-surface);
  border-top:1px solid var(--cc-line-2);
  box-shadow:0 -1px 24px rgba(21,20,18,.07);
  color:var(--cc-ink);
}
.cc-bar[hidden]{display:none}
.cc-bar__in{
  max-width:1280px;margin:0 auto;padding:1.15rem clamp(1rem,4vw,2.5rem);
  display:flex;align-items:center;gap:clamp(1rem,3vw,2.5rem);flex-wrap:wrap;
}
.cc-bar__t{
  margin:0;flex:1 1 30rem;min-width:0;
  font-size:var(--ty-body);line-height:var(--ty-body-lh);
  font-weight:400;color:var(--cc-ink-2);
}
.cc-bar__t a{color:var(--cc-ink);text-underline-offset:3px}
.cc-bar__a{display:flex;align-items:center;gap:.7rem;flex-wrap:wrap}

/* ----------------------------------------------------------------- buttons */
.cc-btn{
  font-family:inherit;font-size:var(--ty-meta);font-weight:var(--ty-meta-w);
  letter-spacing:var(--ty-meta-ls);text-transform:uppercase;
  min-height:46px;padding:0 1.35rem;
  border-radius:2px;cursor:pointer;
  display:inline-flex;align-items:center;justify-content:center;
  transition:background .2s ease,border-color .2s ease,color .2s ease;
}
/* the two equal-weight choices */
.cc-btn--equal{
  background:var(--cc-slate);border:1px solid var(--cc-slate);color:#fff;
}
/* in the banner the pair is held to one width so neither can read as the
   lighter option; inside the dialog they size to content and still match */
.cc-bar .cc-btn--equal{min-width:13.5rem}
.cc-btn--equal:hover{background:var(--cc-slate-2);border-color:var(--cc-slate-2)}
/* the quiet third choice */
.cc-btn--quiet{
  background:transparent;border:1px solid var(--cc-line-2);color:var(--cc-ink);
}
.cc-btn--quiet:hover{background:var(--cc-surface-2);border-color:var(--cc-ink-3)}
.cc-btn:focus-visible{outline:2px solid var(--cc-slate);outline-offset:3px}

/* ------------------------------------------------------------ preferences */
.cc-modal{
  width:min(40rem,calc(100vw - 2rem));
  padding:0;border:1px solid var(--cc-line-2);border-radius:3px;
  background:var(--cc-surface);color:var(--cc-ink);
}
.cc-modal::backdrop{background:rgba(21,20,18,.42)}
.cc-modal__in{padding:clamp(1.5rem,4vw,2.25rem)}
.cc-modal__h{
  margin:0 0 .5rem;font-size:var(--ty-st);font-weight:var(--ty-st-w);
  line-height:var(--ty-st-lh);letter-spacing:var(--ty-st-ls);
}
.cc-modal__p{margin:0 0 1.5rem;color:var(--cc-ink-2);font-size:var(--ty-body);line-height:var(--ty-body-lh)}
.cc-cat{list-style:none;margin:0 0 1.75rem;padding:0;border-top:1px solid var(--cc-line)}
.cc-cat__i{
  display:grid;grid-template-columns:1fr auto;gap:.35rem 1.25rem;align-items:start;
  padding:1.1rem 0;border-bottom:1px solid var(--cc-line);
}
.cc-cat__n{
  grid-column:1;margin:0;font-size:var(--ty-body);font-weight:400;color:var(--cc-ink);
}
.cc-cat__d{grid-column:1;margin:0;font-size:var(--ty-meta);letter-spacing:.01em;text-transform:none;line-height:1.6;color:var(--cc-ink-3)}
.cc-cat__c{grid-column:2;grid-row:1 / span 2;align-self:center;display:flex;align-items:center;gap:.6rem}
.cc-cat__s{font-size:var(--ty-meta);font-weight:var(--ty-meta-w);letter-spacing:var(--ty-meta-ls);text-transform:uppercase;color:var(--cc-ink-3);min-width:3.4rem;text-align:right}

/* switch: a real checkbox, restyled, never hidden from assistive tech */
.cc-sw{position:relative;display:inline-flex;flex:0 0 auto}
.cc-sw input{
  position:absolute;inset:0;width:100%;height:100%;margin:0;
  opacity:0;cursor:pointer;z-index:1;
}
/* the track is decoration: it must never swallow the click meant for the
   checkbox sitting underneath it */
.cc-sw__t{pointer-events:none}
.cc-sw__t{
  width:46px;height:26px;border-radius:13px;
  background:var(--cc-surface-2);border:1px solid var(--cc-line-2);
  display:block;position:relative;transition:background .2s ease,border-color .2s ease;
}
.cc-sw__t::after{
  content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;
  border-radius:50%;background:var(--cc-ink-3);
  transition:transform .2s ease,background .2s ease;
}
.cc-sw input:checked + .cc-sw__t{background:var(--cc-slate);border-color:var(--cc-slate)}
.cc-sw input:checked + .cc-sw__t::after{transform:translateX(20px);background:#fff}
.cc-sw input:focus-visible + .cc-sw__t{outline:2px solid var(--cc-slate);outline-offset:3px}
.cc-sw input:disabled{cursor:default}
.cc-sw input:disabled + .cc-sw__t{background:var(--cc-slate);border-color:var(--cc-slate);opacity:.45}
.cc-sw input:disabled + .cc-sw__t::after{transform:translateX(20px);background:#fff}

.cc-modal__a{display:flex;gap:.7rem;flex-wrap:wrap;justify-content:flex-end}

/* ---------------------------------------------- footer "Cookie settings" */
.cc-open{
  font-family:inherit;background:none;border:0;padding:0;cursor:pointer;
  color:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;
  text-align:left;
}
.cc-open:hover{text-decoration:underline;text-underline-offset:3px}
.cc-open:focus-visible{outline:2px solid currentColor;outline-offset:3px}
.cc-open[hidden]{display:none}

/* --------------------------------------------------------------- narrow */
@media (max-width:760px){
  .cc-bar__in{padding:1rem 1rem 1.1rem;gap:.95rem;align-items:stretch}
  .cc-bar__t{flex:1 1 100%}
  .cc-bar__a{width:100%}
  .cc-btn{width:100%;min-width:0}
  .cc-modal__a{flex-direction:column-reverse}
  .cc-modal__a .cc-btn{width:100%}
}

@media (prefers-reduced-motion:reduce){
  .cc-btn,.cc-sw__t,.cc-sw__t::after{transition:none}
}
