/* The visit-counting question (website standard POLICY-15, FORM-11), from the standard's
   templates/site/assets/css/consent.css, in the site's tokens (site.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; /* above the sounding gauge (40) and header (50) */
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .75rem 1.25rem;
  padding: .9rem var(--gutter) calc(.9rem + env(safe-area-inset-bottom));
  background: var(--abyss); color: var(--foam);
  border-top: 1px solid rgb(201 154 62 / .45);
  box-shadow: 0 -10px 30px rgb(3 14 26 / .35);
  font-family: var(--body); font-size: .95rem; line-height: 1.5;
}
.consent[hidden] { display: none; }
.consent p { margin: 0; max-width: 62ch; }
.consent a { color: var(--brass-light); text-decoration: underline; text-underline-offset: 2px; }
.consent__actions { display: flex; gap: .6rem; }

.consent button {
  min-width: 110px; min-height: 40px; padding: .5rem 1rem; cursor: pointer;
  font: inherit; font-weight: 600; font-variation-settings: 'wdth' 108; border-radius: 8px;
  background: transparent; color: inherit; border: 1.5px solid currentColor;
}
.consent button:hover { background: rgb(238 248 248 / .08); }
.consent button:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }

/* The footer control looks like the footer's links. */
.privacy-choices {
  font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer;
  text-decoration: underline; text-underline-offset: 2px;
}
.privacy-choices:hover { color: var(--foam); }

@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; } }
}
