/* The cookie card (decision 083, direction B), shown by consent.js. Like the app's cards: white,
   a 1 px line, rounded corners, a soft shadow. Bottom left on a computer, across the bottom on a
   phone. It uses the tokens of the page's own sheet (style.css or home.css). */
.cookie-card { position: fixed; z-index: 60; left: max(16px, env(safe-area-inset-left, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px)); width: 360px; max-width: calc(100% - 32px); display: grid; gap: 12px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg); color: var(--text); box-shadow: 0 8px 28px rgba(12, 11, 18, .12); font-family: var(--body); }
.cookie-card[hidden], .cookie-card [hidden] { display: none; }
.cookie-title { font: 600 17px/1.3 var(--display); letter-spacing: -.01em; }
.cookie-title:focus { outline: none; }
.cookie-title:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }
.cookie-text { font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.cookie-answers { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cookie-card .btn { min-height: 40px; padding: 0 16px; font-size: 14.5px; }
.cookie-more { justify-self: start; padding: 2px 0; border: 0; background: none; color: var(--violet-text); font: 500 14.5px var(--body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cookie-more:hover { color: var(--violet-deep); }
.cookie-choices { display: grid; gap: 12px; }
.cookie-option { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; border-top: 1px solid var(--line); cursor: pointer; }
.cookie-option b { display: block; font-size: 14.5px; font-weight: 600; }
.cookie-option small { display: block; font-size: 13px; color: var(--muted); }
/* The switch: grey when off, violet (the accent) when on, like a switch on the Mac. */
.cookie-option input { appearance: none; -webkit-appearance: none; flex: none; position: relative; width: 40px; height: 24px; margin: 0; border-radius: 999px; background: #D5D9DB; cursor: pointer; transition: background .14s var(--ease); }
.cookie-option input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform .14s var(--ease); }
.cookie-option input:checked { background: var(--violet); }
.cookie-option input:checked::after { transform: translateX(16px); }
.cookie-option input:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 999px; }
@media (prefers-reduced-motion: no-preference) {
  .cookie-card { animation: cookie-in .32s var(--ease) both; }
  @keyframes cookie-in { from { opacity: 0; transform: translateY(12px); } }
}
@media (prefers-reduced-motion: reduce) {
  .cookie-option input, .cookie-option input::after { transition: none; }
}
/* On a phone: the whole width, with the site's 16 px gutter. */
@media (max-width: 600px) {
  .cookie-card { right: max(16px, env(safe-area-inset-right, 0px)); width: auto; max-width: none; }
}

/* "Cookie settings" in the footer: a button that looks like the footer's links. */
.site-footer .cookie-settings { padding: 0; border: 0; background: none; color: var(--muted); font: inherit; cursor: pointer; }
.site-footer .cookie-settings:hover { color: var(--text); }
