/* The visit-counting question (website standard POLICY-15, FORM-11), from the standard's
   templates/site/assets/css/consent.css, restyled with this site's tokens (styles.css :root).
   A BAR along the bottom of the screen, never a popup: no overlay, no dimming, no focus trap; the page keeps working
   underneath. consent.js pads the page bottom by the bar's height (--consent-pad) so the bar never hides the footer's
   Privacy choices control. The two buttons are equal: same size, same style, neither highlighted (app LEGAL-04). */
:root { --consent-pad: 0px; }
body { padding-bottom: var(--consent-pad); }

.consent {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 28px;
  padding: 16px 32px calc(16px + env(safe-area-inset-bottom));
  background: var(--ink-2); color: var(--paper);
  border-top: 1px solid var(--gold-2);
  font-family: var(--body); font-size: 15px; line-height: 1.5;
}
.consent[hidden] { display: none; }
.consent p { margin: 0; max-width: 62ch; color: var(--paper); }
.consent a { color: var(--gold-hi); text-decoration: underline; text-underline-offset: 3px; }
.consent a:hover { color: var(--paper); }
.consent__actions { display: flex; gap: 12px; }

.consent button {
  min-width: 120px; min-height: 42px; padding: 10px 18px; cursor: pointer;
  font-family: var(--mono); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.15em;
  border-radius: 0; background: transparent; color: var(--paper); border: 1px solid var(--gold-2);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.consent button:hover { border-color: var(--gold-hi); color: var(--gold-hi); }
.consent button:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }

@media (max-width: 560px) {
  .consent { justify-content: flex-start; padding-left: 20px; padding-right: 20px; }
  .consent__actions { width: 100%; }
  .consent button { flex: 1; }
}
@media (prefers-reduced-motion: no-preference) {
  .consent:not([hidden]) { animation: consent-in .2s ease-out; }
  @keyframes consent-in { from { transform: translateY(100%); } to { transform: none; } }
}
