/* Cookie consent (GDPR): banner + preferences dialog. Shared by every page. */
.cc-banner,
.cc-modal {
  --cc-ink: #1d1d1f;
  --cc-ink-2: #424245;
  --cc-ink-3: #6e6e73;
  --cc-line: #e3e3e8;
  --cc-red: #c8161f;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', 'Helvetica Neue', Arial, sans-serif;
  color: var(--cc-ink);
  -webkit-font-smoothing: antialiased;
}

.cc-banner {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 1000;
  width: min(440px, calc(100% - 40px));
  padding: 22px;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 30px 80px -24px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.05);
  animation: cc-in 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.cc-banner[hidden],
.cc-modal[hidden] {
  display: none;
}

@keyframes cc-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

.cc-title {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.cc-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--cc-ink-2);
}

.cc-text a {
  color: var(--cc-ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cc-gpc {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--cc-ink-3);
}

.cc-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 16px;
}

.cc-actions .cc-link {
  grid-column: 1 / -1;
}

.cc-btn {
  appearance: none;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--cc-ink);
  background: var(--cc-ink);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background 200ms, color 200ms, border-color 200ms;
}

.cc-btn:hover {
  background: #000;
}

/* reject is exactly as prominent as accept */
.cc-btn.cc-alt {
  background: var(--cc-ink);
}

.cc-link {
  appearance: none;
  min-height: 40px;
  border: 1px solid var(--cc-line);
  border-radius: 999px;
  background: #fff;
  color: var(--cc-ink);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

.cc-link:hover {
  border-color: var(--cc-ink);
}

.cc-btn:focus-visible,
.cc-link:focus-visible,
.cc-switch input:focus-visible + span {
  outline: 2px solid var(--cc-red);
  outline-offset: 3px;
}

.cc-modal {
  position: fixed;
  inset: 0;
  z-index: 1001;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.cc-dialog {
  width: min(560px, 100%);
  max-height: calc(100svh - 40px);
  overflow-y: auto;
  padding: 26px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.45);
}

.cc-dialog h2 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.cc-cats {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--cc-line);
}

.cc-cat {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--cc-line);
}

.cc-cat b {
  font-size: 15px;
}

.cc-cat p {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--cc-ink-3);
}

.cc-always {
  font-size: 13px;
  font-weight: 600;
  color: var(--cc-ink-3);
}

.cc-switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 28px;
}

.cc-switch input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.cc-switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #d2d2d7;
  transition: background 200ms;
  pointer-events: none;
}

.cc-switch span::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.cc-switch input:checked + span {
  background: var(--cc-red);
}

.cc-switch input:checked + span::after {
  transform: translateX(18px);
}

.cc-dialog .cc-actions {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 20px;
}

@media (max-width: 560px) {
  .cc-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    padding: 16px;
    border-radius: 18px;
  }
  /* compact on phones: one row of buttons, reject and accept stay equally prominent */
  .cc-banner .cc-title {
    font-size: 15px;
    margin-bottom: 4px;
  }
  .cc-banner .cc-text {
    font-size: 13px;
    line-height: 1.45;
  }
  .cc-banner .cc-actions {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 6px;
    margin-top: 12px;
  }
  .cc-banner .cc-actions .cc-link {
    grid-column: auto;
    min-height: 44px;
  }
  .cc-banner .cc-btn,
  .cc-banner .cc-link {
    padding: 0 8px;
    font-size: 13px;
  }
  .cc-dialog .cc-actions {
    grid-template-columns: 1fr;
  }
}

/* consent-gated embeds (e.g. Calendly) */
.cc-embed {
  display: grid;
  place-items: center;
  min-height: 320px;
  padding: 28px;
  border-radius: 22px;
  background: #f5f5f7;
  text-align: center;
}

.cc-embed p {
  max-width: 420px;
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.5;
  color: #424245;
}

.cc-embed .cc-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.cc-embed iframe {
  width: 100%;
  min-height: 700px;
  border: 0;
  border-radius: 18px;
  background: #fff;
}

.cc-embed.loaded {
  display: block;
  padding: 0;
  background: none;
}
