/* blan.app: cookie choice banner and the footer "Cookie settings" button.
   Loaded on every page, including the older pages that use /styles.css, so it carries its own fallbacks
   for the site tokens (--paper, --ink, --hairline, --accent, --font-text). */

.cc {
  --cc-bg: var(--paper, #FFFFFF);
  --cc-ink: var(--ink, #221D19);
  --cc-line: var(--hairline, rgba(34, 29, 25, .14));
  --cc-focus: var(--accent, #1B62A7);
  --cc-shadow: 0 12px 32px rgba(34, 29, 25, .16), 0 2px 8px rgba(34, 29, 25, .08);
  position: fixed; z-index: 90;
  left: max(16px, env(safe-area-inset-left, 0px));
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: max(16px, env(safe-area-inset-bottom, 0px));
  display: grid; gap: 16px;
  padding: 18px 20px 20px;
  background: var(--cc-bg); color: var(--cc-ink);
  border-radius: 18px;
  box-shadow: 0 0 0 1px var(--cc-line), var(--cc-shadow);
  font: 400 .95rem/1.5 var(--font-text, -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif);
  -webkit-font-smoothing: antialiased;
}
@media (prefers-color-scheme: dark) {
  .cc {
    --cc-bg: var(--paper, #1C1916);
    --cc-ink: var(--ink, #F0ECE5);
    --cc-line: var(--hairline, rgba(240, 236, 229, .16));
    --cc-focus: var(--accent, #6FA3DA);
    --cc-shadow: 0 12px 32px rgba(0, 0, 0, .5), 0 2px 8px rgba(0, 0, 0, .3);
  }
}
@media (min-width: 600px) {
  .cc { right: auto; width: 400px; }
}
.cc[hidden] { display: none; }
.cc, .cc * { box-sizing: border-box; }
@media (prefers-reduced-motion: no-preference) {
  .cc { animation: cc-in 320ms cubic-bezier(.2, .8, .2, 1) both; }
  @keyframes cc-in { from { opacity: 0; transform: translateY(14px); } }
}

.cc .cc__text { margin: 0; color: var(--cc-ink); text-wrap: pretty; }
.cc .cc__text a { color: inherit; text-decoration: underline; text-underline-offset: .2em; }
.cc .cc__text a:hover { text-decoration-thickness: 2px; }

.cc .cc__actions { display: flex; gap: 10px; }
.cc .cc__btn {
  flex: 1 1 0; min-width: 0; min-height: 46px; padding: 0 18px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: var(--cc-ink);
  border: 1.5px solid var(--cc-ink); border-radius: 999px;
  font: 600 .95rem/1 var(--font-text, -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif);
  cursor: pointer; -webkit-appearance: none; appearance: none;
}
@media (prefers-reduced-motion: no-preference) {
  .cc .cc__btn { transition: background-color 150ms, color 150ms; }
}
.cc .cc__btn:hover { background: var(--cc-ink); color: var(--cc-bg); }
.cc .cc__btn:focus-visible,
.cc .cc__text a:focus-visible,
.cc:focus-visible { outline: 3px solid var(--cc-focus); outline-offset: 3px; }
.cc .cc__btn:focus-visible { border-radius: 999px; }
.cc .cc__text a:focus-visible { border-radius: 4px; outline-offset: 2px; }
.cc:focus-visible { border-radius: 18px; }

/* While the banner is open the page can scroll clear of it, and keyboard focus is never hidden behind it. */
html.cc-open { scroll-padding-bottom: var(--cc-h, 0px); }
html.cc-open body { padding-bottom: var(--cc-h, 0px); }

@media (forced-colors: active) { .cc { border: 1px solid CanvasText; } }
@media print { .cc { display: none; } }

/* Footer "Cookie settings": looks like the footer links on both kinds of pages. */
[data-cookie-settings] {
  -webkit-appearance: none; appearance: none;
  margin: 0; padding: 0; border: 0; background: none; border-radius: 0;
  font: inherit; color: inherit; text-align: left; cursor: pointer;
}
.site-footer__cols [data-cookie-settings] { display: flex; align-items: center; width: 100%; min-height: 44px; color: var(--ink); font-size: .96rem; }
.site-footer__cols [data-cookie-settings]:hover { text-decoration: underline; }
footer > [data-cookie-settings] { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; }
