/* 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: 900;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.75rem 1.5rem;
  padding: 1rem var(--pad-x, 1.25rem) calc(1rem + env(safe-area-inset-bottom));
  background: var(--bg-paper); color: var(--ink);
  border-top: 3px double var(--gold);
  font-family: var(--font-body); font-size: 1.05rem; line-height: 1.45;
}
.consent[hidden] { display: none; }
.consent p { margin: 0; max-width: 62ch; }
.consent a { color: var(--ink); border-bottom: 1px solid var(--gold); }
.consent a:hover { color: var(--oxblood); border-bottom-color: var(--oxblood); }
.consent__actions { display: flex; gap: 0.75rem; }

.consent button {
  min-width: 8rem; min-height: 2.6rem; padding: 0.5rem 1.1rem; cursor: pointer;
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
  border-radius: var(--radius, 0); background: transparent; color: var(--ink); border: 1px solid var(--ink);
  transition: background-color var(--transition, 0.2s), color var(--transition, 0.2s);
}
.consent button:hover { background: var(--ink); color: var(--bg-paper); }
.consent button:focus-visible { outline: 2px solid var(--oxblood); outline-offset: 3px; }

@media (max-width: 560px) {
  .consent { justify-content: flex-start; }
  .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; } }
}
