/* The cookie banner (src/layout.html, consent.js): a small card at the
   bottom left, hairline and the page's surface, no larger than the law
   requires (brief 8.7). Above the Nerve bar (z 6) and under the menus (20).
   Hidden by the attribute until the script decides to show it. */
.cookies { position: fixed; left: var(--space-3); bottom: calc(var(--space-3) + env(safe-area-inset-bottom)); z-index: 8; box-sizing: border-box; width: min(360px, calc(100vw - 2 * var(--space-3))); padding: var(--space-3) var(--space-4); background: var(--surface); color: var(--text); border: 1px solid var(--rule-strong); font: 400 15px/22px var(--font-sans); }
/* While the Nerve bar is up at the foot of an issue or a post (issue.js sets
   its height), the box sits above it instead of across its line (11 Oct 2026). */
body:has(.nerve-bar.is-shown:not(.is-away)) .cookies { bottom: calc(var(--nerve-bar-h, 0px) + var(--space-3) + env(safe-area-inset-bottom)); }
.cookies[hidden] { display: none; }
.cookies p { margin: 0; }
.cookies__actions { display: flex; align-items: center; gap: var(--space-3); margin-top: var(--space-3) !important; }
.cookies .ab-btn { padding: 8px 14px; font-size: 15px; line-height: 22px; }
.cookies__decline { margin: 0; padding: 2px 0; border: 0; background: none; color: inherit; font: 500 15px/22px var(--font-sans); cursor: pointer; opacity: 0.8; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.cookies__decline:hover { opacity: 1; }
.cookies__decline:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
/* "Change your choice" in the privacy policy (section 15): a link in a sentence. */
.pg-choice { margin: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.pg-choice:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
@media print { .cookies { display: none; } }
/* Accept is a choice, not a way somewhere: no arrow on it. */
.cookies .ab-btn::after { display: none; }
