/* ==========================================================================
   COOKIE CONSENT BANNER (built by consent.js)
   Uses the site's --navy / --gold / --slate variables where a page defines
   them, falling back to the same palette everywhere else. Selectors are two
   classes deep so Tailwind's runtime button reset can't override them.
   ========================================================================== */
.cc-banner {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 10001; /* above the mobile sticky CTA (8000) and the index.html pop-up (10000) */
  max-width: 420px;
  padding: 18px 20px;
  background: linear-gradient(135deg, #0d1b2e 0%, var(--navy, #143a74) 100%);
  border-top: 2px solid var(--gold, #c9a84c);
  border-radius: 4px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
  color: rgba(255, 255, 255, 0.9);
  font-family: 'Quicksand', sans-serif;
  animation: cc-slide-up 0.4s ease both;
}

.cc-banner .cc-text {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.55;
  color: inherit;
}

.cc-banner .cc-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.cc-banner .cc-btn {
  font-family: 'Quicksand', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 10px 22px;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.cc-banner .cc-accept {
  background: var(--gold, #c9a84c);
  color: var(--slate, #19314e);
  border: 2px solid var(--gold, #c9a84c);
}

.cc-banner .cc-accept:hover {
  background: transparent;
  color: var(--gold, #c9a84c);
}

.cc-banner .cc-decline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.cc-banner .cc-decline:hover {
  border-color: var(--gold, #c9a84c);
  color: var(--gold, #c9a84c);
}

.cc-banner .cc-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Mobile: full-width bar pinned to the bottom, like the circuit pages' sticky CTA */
@media (max-width: 768px) {
  .cc-banner {
    left: 0;
    right: 0;
    bottom: 0;
    max-width: none;
    border-radius: 0;
    padding: 14px 16px;
    padding-bottom: max(14px, env(safe-area-inset-bottom)); /* iOS home indicator */
  }

  .cc-banner .cc-text {
    margin-bottom: 12px;
    font-size: 13px;
  }

  .cc-banner .cc-btn {
    flex: 1;
    padding: 13px 10px;
  }
}

@keyframes cc-slide-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .cc-banner { animation: none; }
}
