/* ==========================================================================
   Avanti cookie consent - the banner, the footer links and the privacy page.
   Loaded by js/consent.js only when it has something to draw (and linked
   directly by privacy.html). Every colour comes from the site's own tokens in
   css/style.css (--paper, --ink, --ink-safe, --line, --f-b, --f-d), so a theme
   change in the panel recolours this too. No colour literals.
   Reject and Accept share one rule: same size, weight, colour, row.
   ========================================================================== */

/* ---- the sheet ---------------------------------------------------------- */
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 120;
  /* The sheet spans the viewport so the card can be centred inside it.
     Above 761px that leaves a transparent strip either side of the card,
     and it was still eating clicks: elementFromPoint(100,800) at 1440 wide
     returned SECTION.consent, not the page under it. This is not a modal
     and must never block the page it is asking about. */
  pointer-events: none; }
.consent__in { pointer-events: auto; }
.consent[hidden] { display: none; }
.consent:focus { outline: none; }
.consent__in {
  box-sizing: border-box; max-height: 88vh; max-height: 88dvh; overflow-y: auto;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  background: var(--paper); color: var(--ink-safe);
  border-top: 3px solid var(--ink); border-radius: 18px 18px 0 0;
  box-shadow: 0 -8px 28px rgb(var(--scrim-rgb) / .28);
  font: 400 1rem/1.45 var(--f-b);
}
.consent__t { margin: 0 0 6px; font: 400 1.3rem/1.15 var(--f-d); }
.consent__d { margin: 0 0 14px; font-size: .95rem; }
.consent__a { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ---- the three choices: one row, one size ------------------------------- */
.consent__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.consent__btn {
  box-sizing: border-box; min-height: 48px; padding: 0 14px;
  background: var(--ink); color: var(--paper);
  border: 2px solid var(--ink); border-radius: 999px;
  font: 700 1rem/1.1 var(--f-b); text-align: center; cursor: pointer;
}
.consent__reject, .consent__accept { background: var(--ink); color: var(--paper); border-color: var(--ink); font-weight: 700; }
.consent__more { grid-column: 1 / -1; background: var(--paper); color: var(--ink-safe); }
.consent__save { grid-column: 1 / -1; }
.consent__btn:active { transform: scale(.98); }
.consent__btn:focus-visible, .consent__a:focus-visible, .consent__opt:focus-within { outline: 3px solid var(--ink); outline-offset: 3px; }

/* ---- the category list -------------------------------------------------- */
.consent__opts { display: grid; gap: 10px; margin: 0 0 14px; }
.consent__opt {
  display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px;
  border: 2px solid var(--line); border-radius: 12px; cursor: pointer;
}
.consent__opt input { flex: none; width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--ink); }
.consent__tx { display: block; min-width: 0; }
.consent__ot { display: block; font-weight: 800; }
.consent__od { display: block; font-size: .9rem; color: var(--ink-muted); }
.consent__un { font-style: italic; }

@media (min-width: 761px) {
  .consent { left: 16px; right: 16px; bottom: 16px; }
  .consent__in { max-width: 760px; margin: 0 auto; border: 3px solid var(--ink); border-radius: 18px; padding-bottom: 16px; }
  .consent__row { grid-template-columns: repeat(3, 1fr); }
  .consent__more, .consent__save { grid-column: auto; }
}
@media (prefers-reduced-motion: no-preference) {
  html:not(.lite) .consent:not([hidden]) .consent__in { animation: consent-up .28s cubic-bezier(.22, 1, .36, 1); }
  @keyframes consent-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
}

/* ---- footer links (injected into .visit__base) -------------------------- */
.consent__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin: 0; }
.consent__link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px;
  background: none; border: 0; color: inherit; cursor: pointer;
  font: 700 .9375rem/1 var(--f-b); text-decoration: underline; text-underline-offset: 3px;
}

/* ---- privacy.html ------------------------------------------------------- */
.cp__hdr { border-bottom: 1px solid var(--line); background: var(--bg); }
.cp__hdr .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.cp__brand { display: inline-flex; align-items: center; min-height: 44px;
  font: 400 1.5rem/1 var(--f-d); color: var(--brand-red); text-decoration: none; }
.cp__back { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.cp__main { width: min(100% - 32px, 720px); margin: 0 auto; padding: 32px 0 72px; }
.cp__main h1 { margin: 0 0 .3em; font: 400 clamp(2rem, 1.4rem + 3vw, 3rem)/1.05 var(--f-d); }
.cp__main h2 { margin: 1.6em 0 .4em; font: 400 1.45rem/1.15 var(--f-d); }
.cp__lede { font-size: 1.15rem; }
.cp__asof { color: var(--muted); font-size: .9rem; }
.cp__list { margin: 0; padding: 0; display: grid; gap: 10px; }
.cp__item { padding: 12px 14px; background: var(--paper); border: 2px solid var(--line); border-radius: 12px; }
.cp__item dt { font-weight: 800; }
.cp__item dd { margin: 4px 0 0; }
.cp__main a { font-weight: 700; padding: 12px 2px; }
.cp__foot a { display: inline-flex; align-items: center; min-height: 44px; }
.cp__foot { border-top: 2px dashed var(--line); padding: 20px 0 40px; font-size: .9375rem; color: var(--muted); }
