/* Cookie consent banner — bottom-left editorial card */
.cookie-banner {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 9999;
  width: min(420px, calc(100vw - 32px));
  background: var(--cream, #f8f4ec);
  color: var(--ink, #123457);
  border: 1px solid var(--navy, #123457);
  border-radius: 14px;
  padding: 22px 22px 18px;
  box-shadow: 0 24px 60px -20px rgba(18, 52, 87, 0.35), 0 8px 20px -12px rgba(18, 52, 87, 0.2);
  font-family: var(--sans, 'Montserrat', sans-serif);
  animation: cookieUp .35s ease-out both;
}
@keyframes cookieUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.cookie-eyebrow {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--mono, 'Courier Prime', monospace);
  font-size: 10px; letter-spacing: 2.2px; text-transform: uppercase;
  color: var(--ink-soft, #7a91a8);
  margin-bottom: 10px;
}
.cookie-eyebrow .dash { width: 18px; height: 1px; background: currentColor; display: inline-block; }

.cookie-title {
  font-family: var(--serif, 'Instrument Serif', serif);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.15;
  color: var(--navy, #123457);
  margin: 0 0 8px;
}

.cookie-body {
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-mid, #3a5070);
  margin: 0 0 14px;
}
.cookie-body a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }

.cookie-actions {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 4px;
}

.cookie-btn {
  appearance: none;
  border: 1px solid var(--navy, #123457);
  background: transparent;
  color: var(--navy, #123457);
  font-family: var(--mono, 'Courier Prime', monospace);
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, transform .1s ease;
}
.cookie-btn:hover { background: var(--peri-soft, #e4e7fc); }
.cookie-btn:active { transform: translateY(1px); }
.cookie-btn--primary { background: var(--navy, #123457); color: var(--mint, #b7fdc4); }
.cookie-btn--primary:hover { background: #0e2843; color: var(--mint, #b7fdc4); }
.cookie-btn--ghost { border-color: transparent; color: var(--ink-mid, #3a5070); }
.cookie-btn--ghost:hover { background: var(--peri-soft, #e4e7fc); }

/* Preferences list */
.cookie-prefs {
  list-style: none; padding: 0; margin: 0 0 14px;
  border-top: 1px solid rgba(18,52,87,.12);
}
.cookie-prefs li { border-bottom: 1px solid rgba(18,52,87,.12); padding: 12px 0; }
.cookie-pref-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.cookie-pref-name {
  font-family: var(--sans); font-weight: 600; font-size: 13px; color: var(--navy);
}
.cookie-pref-desc {
  margin: 3px 0 0; font-size: 12px; color: var(--ink-mid); line-height: 1.45;
}

/* Toggle */
.cookie-toggle { position: relative; display: inline-block; width: 40px; height: 22px; cursor: pointer; flex-shrink: 0; }
.cookie-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.cookie-toggle-track {
  position: absolute; inset: 0; background: #cfd6e4; border-radius: 999px;
  transition: background .2s ease;
}
.cookie-toggle-track::before {
  content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px;
  background: #fff; border-radius: 50%;
  transition: transform .2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.cookie-toggle input:checked + .cookie-toggle-track { background: var(--navy, #123457); }
.cookie-toggle input:checked + .cookie-toggle-track::before { transform: translateX(18px); }
.cookie-toggle input:focus-visible + .cookie-toggle-track { outline: 2px solid var(--peri-dark); outline-offset: 2px; }

.cookie-toggle--locked {
  width: auto; height: auto; cursor: default;
  font-family: var(--mono); font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--ink-soft); padding-top: 4px;
}

@media (max-width: 520px) {
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 18px; }
  .cookie-title { font-size: 20px; }
  .cookie-actions .cookie-btn { flex: 1 1 auto; text-align: center; }
}

.footer-cookie-link {
  font-family: var(--mono, 'Courier Prime', monospace);
  font-size: 11px;
  letter-spacing: 1px;
  color: inherit;
  text-decoration: none;
  margin-left: 12px;
  cursor: pointer;
  opacity: .85;
}
.footer-cookie-link:hover { opacity: 1; text-decoration: underline; }
.m-footer .footer-cookie-link { display: block; margin: 6px 0 0; }
