/* The cookie banner and the footer's Cookie choices control (public/site/gtm.js builds both). Loaded only on pages
   that carry the Google tag (src/static.mjs TAG_ASSETS). Colours and spacing are the site's tokens (tokens.css). */
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: var(--space-3) var(--gutter) calc(var(--space-3) + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--border); box-shadow: 0 -8px 24px hsl(var(--shadow-color) / 0.12); }
.consent[hidden] { display: none; }
.consent__inner { display: grid; gap: var(--space-3); max-width: var(--container); margin: 0 auto; }
.consent__text { margin: 0; max-width: 72ch; font-size: var(--fs-small); line-height: 1.45; color: var(--text); }
/* Two buttons of one size and one style: neither choice is the easier one to press. */
.consent__actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.consent__actions .btn { min-height: 44px; padding: 0 var(--space-4); font-size: var(--fs-small); }
.consent .btn:focus-visible, .consent a:focus-visible, .consent-link:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (min-width: 720px) {
  .consent__inner { grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: var(--space-6); }
  .consent__actions { grid-template-columns: repeat(2, minmax(132px, auto)); }
}
/* While the banner is open the page ends above it, and the phone's dock, which holds the page's own button, rests on
   top of it. gtm.js keeps --consent-h at the banner's height. */
html[data-consent-open] body { padding-bottom: var(--consent-h, 0px); }
html[data-consent-open] .dock { bottom: var(--consent-h, 0px); }
/* In a footer the control takes the footer's own spacing. On a page with no footer it sits under the page's text. */
main p.consent-note { margin-top: var(--space-6); }
.consent-link { padding: 0; border: 0; background: none; font: inherit; color: var(--link); text-decoration: underline; cursor: pointer; }
.consent-link:hover { color: var(--accent-hover); }
/* In the site's footer it is one more entry of the About list, so it takes that list's look (site.css .foot__nav a). */
.foot__nav .consent-link { display: inline-flex; align-items: center; min-height: 40px; padding: var(--space-1) 0; font-size: var(--fs-small); line-height: 1.3; text-decoration: none; }
.foot__nav .consent-link[hidden] { display: none; }
.foot__nav .consent-link:hover { text-decoration: underline; }
@media (min-width: 1100px) { .foot__nav .consent-link { min-height: 34px; } }
@media print { .consent, .consent-note { display: none; } }
