/* Cookie banner and the footer "Cookie settings" control. Uses the site.css tokens (loaded first). */
.consent-panel{position:fixed;z-index:1000;left:16px;right:16px;bottom:16px;display:grid;gap:12px;max-width:34rem;padding:14px 16px;border:1px solid var(--line);border-radius:16px;background:var(--card);color:var(--fg);box-shadow:var(--shadow-lg);font:400 .9375rem/1.45 var(--font)}
.consent-panel[hidden]{display:none}
.consent-panel p{margin:0;color:var(--mute)}
.consent-panel a{color:var(--link)}
.consent-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.consent-actions button{margin:0;height:40px;padding:0 16px;border:1px solid transparent;border-radius:99px;font:600 .9375rem/1 var(--font);white-space:nowrap;cursor:pointer;transition:background-color .15s,border-color .15s}
.consent-actions .consent-accept{background:var(--accent);color:var(--accent-fg)}
.consent-actions .consent-accept:hover{background:var(--accent-hover)}
.consent-actions .consent-reject{background:var(--card);color:var(--fg);border-color:var(--line2)}
.consent-actions .consent-reject:hover{border-color:var(--faint)}
@media(min-width:720px){
  .consent-panel{right:auto;bottom:20px;left:20px;grid-template-columns:auto auto;align-items:center;gap:20px;width:max-content;max-width:calc(100vw - 40px);padding:12px 14px 12px 18px}
  .consent-actions{grid-template-columns:repeat(2,5.25rem);gap:8px}
  .consent-actions button{height:36px;padding:0 12px}
}
@media(prefers-reduced-motion:no-preference){.consent-panel{animation:consent-in .25s ease-out}}
@keyframes consent-in{from{opacity:0;transform:translateY(8px)}}
@media(forced-colors:active){.consent-panel{border-color:CanvasText}.consent-actions button{border-color:ButtonText}}
/* Keeps the end of the page (the footer's last row) clear of the banner, with the footer's own background. */
body:has(.consent-panel:not([hidden]))>footer{padding-bottom:6rem}
@media(min-width:720px){body:has(.consent-panel:not([hidden]))>footer{padding-bottom:3.5rem}}

/* Footer "Cookie settings": the same as the other footer links (site.css: body>footer nav a). */
.consent-settings{margin:0;padding:0;border:0;background:none;font:inherit;letter-spacing:inherit;color:var(--mute);text-decoration:none;text-underline-offset:.18em;cursor:pointer}
.consent-settings:hover{color:var(--fg);text-decoration:underline}
