/* ============== COOKIE BANNER ============== */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  animation: cb-up 280ms cubic-bezier(0.2,0.7,0.2,1);
}
@keyframes cb-up {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 28px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}
.cookie-text p {
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.5;
  color: rgba(255,255,255,0.92);
  margin: 0;
  max-width: 64ch;
}
.cookie-text strong { color: #fff; font-weight: 600; }
.cookie-text a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.cookie-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 8px;
}
.cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-link {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(255,255,255,0.4);
  cursor: pointer;
  transition: color 140ms, border-color 140ms;
}
.cookie-link:hover { color: #fff; border-bottom-color: #fff; }
.cookie-btn {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  background: #fff;
  padding: 11px 22px;
  border-radius: 2px;
  cursor: pointer;
  display: inline-block;
  transition: background 140ms;
}
.cookie-btn:hover { background: #f0f0f0; }

/* preferences modal */
.cookie-overlay {
  position: fixed;
  inset: 0;
  z-index: 101;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: cb-fade 200ms ease-out;
}
@keyframes cb-fade { from { opacity: 0; } to { opacity: 1; } }
.cookie-prefs {
  background: var(--paper);
  color: var(--ink);
  max-width: 580px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px 36px 28px;
  border: 1px solid var(--ink);
  border-radius: 2px;
}
.cookie-prefs .cookie-eyebrow {
  color: var(--ink-muted);
}
.cookie-prefs h3 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.012em;
  margin: 6px 0 12px;
  color: var(--ink);
}
.cookie-prefs > p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-bottom: 20px;
}
.cookie-cat {
  display: block;
  padding: 16px 0;
  border-top: 1px solid var(--border-soft);
  cursor: pointer;
}
.cookie-cat:has(.cat-state) { cursor: default; }
.cookie-cat .cat-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.cookie-cat .cat-head strong {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}
.cookie-cat .cat-state {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cookie-cat input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: var(--ink);
  cursor: pointer;
}
.cookie-cat p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-muted);
  margin: 0;
}
.cookie-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--ink);
}
.cookie-actions .cookie-link {
  color: var(--ink-muted);
  border-bottom-color: var(--border-soft);
}
.cookie-actions .cookie-link:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}
.cookie-actions .cookie-btn {
  background: var(--ink);
  color: var(--paper);
}
.cookie-actions .cookie-btn:hover { background: #222; }
.cookie-foot {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.cookie-foot:hover { color: var(--ink); }

@media (max-width: 720px) {
  .cookie-banner-inner { grid-template-columns: 1fr; gap: 16px; padding: 18px 20px; }
  .cookie-banner-actions { justify-content: flex-start; }
  .cookie-prefs { padding: 24px 22px; }
}
