/* Cookie consent banner (only when a tracking id is set in js/config.js) and the accessibility menu. */

/* ---------- cookie consent (shown only when a tracking id is set) ---------- */
.consent { position: fixed; z-index: 30; inset-inline: 20px; bottom: calc(20px + var(--bar)); max-width: 520px; margin-inline-start: auto; background: var(--white); border: 1px solid var(--line); padding: 20px 22px; box-shadow: 0 18px 44px -18px rgba(0,0,0,.3); font-size: 15px; line-height: 1.6; }
.consent p { margin-bottom: 14px; }
.consent a { color: var(--deep); }
.consent__row { display: flex; gap: 10px; }
.consent button { min-height: 44px; padding: 0 20px; border-radius: 4px; cursor: pointer; font-weight: 600; border: 1px solid var(--ink); background: transparent; transition: transform .16s var(--press); }
.consent button:active { transform: scale(.97); }
.consent [data-consent="yes"] { background: var(--deep); border-color: var(--deep); color: var(--sand); }
@media (max-width: 639px) { .consent { inset-inline: 12px; bottom: 12px; } .consent__row button { flex: 1; } }

/* ---------- accessibility menu ---------- */
.a11y { position: fixed; left: 20px; bottom: calc(20px + var(--bar)); z-index: 25; }
.a11y__toggle { width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--ink); color: var(--white); display: grid; place-items: center; cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.18); transition: transform .16s var(--press); }
.a11y__toggle:active { transform: scale(.94); }
.a11y__toggle svg { width: 28px; height: 28px; }
.a11y__panel { position: absolute; left: 0; bottom: 64px; width: 240px; background: rgba(255,255,255,.96); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid var(--line); padding: 16px; display: grid; gap: 6px; box-shadow: 0 16px 40px -12px rgba(0,0,0,.25); }
.a11y__panel[hidden] { display: none; }
.a11y__title { font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.a11y__panel button, .a11y__panel a { text-align: start; min-height: 44px; padding: 0 12px; background: var(--cream); border: 1px solid transparent; cursor: pointer; font-size: 15.5px; display: flex; align-items: center; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .a11y__panel button:hover, .a11y__panel a:hover { border-color: var(--gold); } }
.a11y__panel [aria-pressed="true"] { background: var(--gold); color: var(--ink); font-weight: 600; }
@media (max-width: 639px) {
  .a11y { left: 12px; bottom: auto; top: calc(var(--nav) + 12px); }
  .a11y__toggle { width: 44px; height: 44px; }
  .a11y__panel { bottom: auto; top: 56px; }
}
