/* ===========================================================
   Imperum cookie consent (banner + preferences modal)
   Self-contained, prefixed `ck-`. Restyled 17 Sep 2026 on the v3
   site grammar: light card, ImperumSans only, the site's own
   button pills, no tracked small caps. Class names, copy and the JS
   API are unchanged (see README.md).
   =========================================================== */

.ck-root {
  --ck-font: "ImperumSans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ck-ink: #1C1D1F;
  --ck-muted: #616B79;
  --ck-line: #DDE3EB;
  --ck-line-strong: #CBD3DE;
  --ck-red: #EF3341;
  --ck-red-soft: #FF6E78;
  --ck-shadow: 0 1px 2px rgba(9,19,36,.06), 0 24px 56px -18px rgba(9,19,36,.28);
  position: relative; z-index: 1300;
  font-family: var(--ck-font); color: var(--ck-ink);
  -webkit-font-smoothing: antialiased;
}
.ck-root *, .ck-root *::before, .ck-root *::after { box-sizing: border-box; }

/* ---------- shared buttons: the site's .btn pills ---------- */
.ck-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 14px/1 var(--ck-font);
  letter-spacing: -.005em;
  padding: 12px 20px; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent; white-space: nowrap;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 120ms ease;
}
.ck-btn:active { transform: translateY(1px); }
.ck-btn--primary {
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,0) 45%), linear-gradient(90deg, #E00030, #E31E42);
  color: #fff;
  box-shadow: 0 1px 2px rgba(9,19,36,.06), 0 10px 24px -10px rgba(224,0,48,.45);
}
.ck-btn--primary:hover {
  background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,0) 45%), linear-gradient(90deg, #E8153F, #EA3556);
  box-shadow: 0 1px 2px rgba(9,19,36,.06), 0 14px 30px -10px rgba(224,0,48,.5);
}
.ck-btn--ghost {
  background: #fff; color: var(--ck-ink);
  border-color: var(--ck-line-strong);
  box-shadow: 0 1px 2px rgba(9,19,36,.04), 0 8px 20px -12px rgba(9,19,36,.18);
}
.ck-btn--ghost:hover { border-color: #B9C4D3; }
.ck-btn:focus-visible { outline: 2px solid var(--ck-red-soft); outline-offset: 2px; }

/* ===========================================================
   BANNER: fixed bottom, light card inside the content column
   =========================================================== */
.ck-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1300;
  padding: 16px;
  display: flex; justify-content: center;
  pointer-events: none;
  animation: ck-rise 360ms cubic-bezier(0.22,1,0.36,1) both;
}
@keyframes ck-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.ck-banner__card {
  pointer-events: auto;
  width: 100%; max-width: 1176px;
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px 32px;
  background: #fff; color: var(--ck-ink);
  border: 1px solid var(--ck-line);
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: var(--ck-shadow);
}
.ck-banner__text { min-width: 0; }
.ck-banner__text p {
  margin: 0; font: 400 15px/1.55 var(--ck-font); color: var(--ck-muted);
  max-width: 72ch; text-wrap: pretty;
}
.ck-banner__text a { color: var(--ck-ink); font-weight: 550; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--ck-line-strong); }
.ck-banner__text a:hover { color: var(--ck-red); text-decoration-color: currentColor; }
.ck-banner__actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }

@media (max-width: 880px) {
  .ck-banner__card { grid-template-columns: 1fr; gap: 16px; }
  .ck-banner__actions { justify-content: stretch; }
  .ck-banner__actions .ck-btn { flex: 1; }
}
@media (max-width: 520px) {
  .ck-banner { padding: 12px 16px; }
  .ck-banner__card { padding: 18px; border-radius: 14px; }
  .ck-banner__actions { flex-direction: column-reverse; }
  .ck-banner__actions .ck-btn { width: 100%; }
}

/* Keep the card above the home indicator on notched phones. Sits after the
   media queries so the shorthand padding above cannot reset it. */
.ck-banner { padding-bottom: max(16px, env(safe-area-inset-bottom)); }

/* ===========================================================
   MODAL: preferences
   =========================================================== */
.ck-scrim {
  position: fixed; inset: 0; z-index: 1400;
  background: rgba(9,19,36,0.42); backdrop-filter: blur(3px);
  animation: ck-fade 200ms ease both;
}
@keyframes ck-fade { from { opacity: 0; } to { opacity: 1; } }

.ck-modal {
  position: fixed; z-index: 1410; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); overflow: auto;
  background: #fff; color: var(--ck-ink);
  font-family: var(--ck-font);
  border: 1px solid var(--ck-line); border-radius: 18px;
  box-shadow: 0 40px 90px -24px rgba(9,19,36,0.35);
  animation: ck-pop 240ms cubic-bezier(0.22,1,0.36,1) both;
}
@keyframes ck-pop { from { opacity: 0; transform: translate(-50%,-46%) scale(0.98); } to { opacity: 1; transform: translate(-50%,-50%) scale(1); } }

.ck-modal__head { padding: 26px 28px 18px; position: relative; border-bottom: 1px solid var(--ck-line); }
.ck-modal__head h2 { margin: 0 44px 0 0; font: 550 24px/1.2 "ImperumDisplay", var(--ck-font); letter-spacing: -.03em; color: var(--ck-ink); }
.ck-modal__head p { margin: 10px 0 0; font: 400 15px/1.55 var(--ck-font); color: var(--ck-muted); }
.ck-modal__close {
  position: absolute; top: 20px; right: 20px; width: 34px; height: 34px;
  display: grid; place-items: center; border-radius: 999px; cursor: pointer;
  background: #fff; border: 1px solid var(--ck-line-strong); color: var(--ck-muted);
  transition: border-color 160ms ease, color 160ms ease;
}
.ck-modal__close:hover { border-color: #B9C4D3; color: var(--ck-ink); }
.ck-modal__close:focus-visible { outline: 2px solid var(--ck-red-soft); outline-offset: 2px; }
.ck-modal__close svg { width: 15px; height: 15px; }

.ck-cats { padding: 6px 28px; }
.ck-cat {
  display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; align-items: start;
  padding: 18px 0; border-bottom: 1px solid var(--ck-line);
}
.ck-cat:last-child { border-bottom: 0; }
.ck-cat__title { font: 550 16px/1.3 var(--ck-font); color: var(--ck-ink); }
.ck-cat__desc { margin: 6px 0 0; font: 400 14px/1.55 var(--ck-font); color: var(--ck-muted); max-width: 54ch; }
.ck-cat__state { grid-row: 1; grid-column: 2; }

/* toggle switch */
.ck-switch { position: relative; display: inline-flex; align-items: center; }
.ck-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.ck-track {
  width: 44px; height: 26px; border-radius: 999px; cursor: pointer;
  background: #E6EBF2; border: 1px solid var(--ck-line-strong);
  transition: background 180ms ease, border-color 180ms ease;
  display: inline-flex; align-items: center; padding: 2px;
}
.ck-knob { width: 20px; height: 20px; border-radius: 999px; background: #fff; transition: transform 200ms cubic-bezier(0.22,1,0.36,1); box-shadow: 0 1px 2px rgba(9,19,36,0.25); }
.ck-switch input:checked + .ck-track { background: var(--ck-red); border-color: var(--ck-red); }
.ck-switch input:checked + .ck-track .ck-knob { transform: translateX(18px); }
.ck-switch input:focus-visible + .ck-track { outline: 2px solid var(--ck-red-soft); outline-offset: 2px; }
.ck-switch input:disabled + .ck-track { cursor: not-allowed; }

.ck-always {
  font: 500 13px/1 var(--ck-font);
  color: #15803D; background: #ECFDF3;
  border: 1px solid #BBF7D0; border-radius: 999px; padding: 7px 11px; white-space: nowrap;
}

.ck-modal__foot {
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end;
  padding: 18px 28px 26px; border-top: 1px solid var(--ck-line);
}
.ck-modal__foot .ck-btn--save { margin-left: auto; }
@media (max-width: 520px) {
  .ck-modal__head { padding: 22px 20px 16px; }
  .ck-cats { padding: 4px 20px; }
  .ck-modal__foot { padding: 16px 20px 20px; }
  .ck-modal__foot .ck-btn { flex: 1 1 100%; margin-left: 0; }
  .ck-cat { grid-template-columns: 1fr; }
  .ck-cat__state { grid-row: auto; grid-column: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .ck-banner, .ck-scrim, .ck-modal, .ck-knob { animation: none !important; transition: none !important; }
}
