/* ─── COOKIE CONSENT BANNER ──────────────────────────
   Extracted from index.html so the markup stays light and this file
   is served from /cc-assets/* with a 1-year immutable cache (see
   build-static.js _headers). Uses the :root CSS variables defined in
   the page's main <style> block (--blue, --white, --yellow, etc.). */
#cc-consent-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px;
  z-index: 9999;
  background: var(--blue); color: var(--white);
  border-radius: 12px;
  padding: 20px 24px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
  font-family: var(--font-body);
  font-size: 0.9rem; line-height: 1.5;
  display: none;
  max-width: 1080px; margin: 0 auto;
}
#cc-consent-banner.cc-visible { display: block; animation: cc-slide-up 0.32s ease-out; }
@keyframes cc-slide-up { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.cc-banner-body { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.cc-banner-text { flex: 1 1 300px; min-width: 240px; }
.cc-banner-text a { color: var(--yellow); text-decoration: underline; }
.cc-banner-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cc-btn {
  font-family: var(--font-head); font-weight: 700;
  font-size: 0.72rem; letter-spacing: 0.09em; text-transform: uppercase;
  padding: 10px 18px; border-radius: 6px; border: 0;
  cursor: pointer; white-space: nowrap;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.cc-btn-primary { background: var(--yellow); color: var(--blue); }
.cc-btn-primary:hover { background: var(--white); }
.cc-btn-ghost { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.45); }
.cc-btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
#cc-consent-modal {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,0.6);
  display: none; align-items: center; justify-content: center;
  padding: 20px;
}
#cc-consent-modal.cc-visible { display: flex; }
.cc-modal-card {
  background: var(--white); color: var(--charcoal);
  border-radius: 14px; max-width: 540px; width: 100%;
  padding: 32px 28px;
  font-family: var(--font-body);
  max-height: 90vh; overflow-y: auto;
}
.cc-modal-card h3 { font-family: var(--font-head); font-weight: 800; color: var(--blue); margin: 0 0 8px 0; font-size: 1.3rem; }
.cc-modal-card p { font-size: 0.9rem; line-height: 1.5; margin: 0 0 20px 0; }
.cc-cat { display: flex; justify-content: space-between; align-items: flex-start; padding: 14px 0; border-top: 1px solid rgba(0,0,0,0.08); gap: 16px; }
.cc-cat h4 { font-family: var(--font-head); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--blue); margin: 0 0 4px 0; }
.cc-cat p { font-size: 0.82rem; margin: 0; color: rgba(45,55,72,0.75); }
.cc-switch { position: relative; flex-shrink: 0; width: 44px; height: 24px; }
.cc-switch input { opacity: 0; width: 0; height: 0; }
.cc-switch-track { position: absolute; inset: 0; background: #cbd5e0; border-radius: 999px; transition: background 0.18s; cursor: pointer; }
.cc-switch-track::before { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; background: #fff; border-radius: 50%; transition: transform 0.18s; }
.cc-switch input:checked + .cc-switch-track { background: var(--teal); }
.cc-switch input:checked + .cc-switch-track::before { transform: translateX(20px); }
.cc-switch input:disabled + .cc-switch-track { background: #a0aec0; cursor: not-allowed; opacity: 0.7; }
.cc-modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(0,0,0,0.08); }
.cc-modal-actions .cc-btn-primary { background: var(--blue); color: var(--white); }
.cc-modal-actions .cc-btn-primary:hover { background: var(--teal); }
@media (max-width: 640px) {
  #cc-consent-banner { left: 8px; right: 8px; bottom: 8px; padding: 16px 18px; font-size: 0.85rem; }
  .cc-btn { flex: 1 1 auto; padding: 12px 16px; }
}
