@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@400;600;700&display=swap');

/* Aurora Design System Variables */
:root {
  --accent: #6366f1;
  --accent-hover: #4f46e5;
  --spinnerColor: #6366f1;
  --dangerColor: #e11d48;
}

/* Article blurred preview for non-subscribers */
div.extra {
  color: transparent;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
  user-select: none;
}

/* CKEditor prose content */
.prose img {
  max-width: 100%;
  height: auto;
}

/* Pagination (flask-paginate) */
.pagination {
  display: flex;
  gap: 0.25rem;
  justify-content: center;
  list-style: none;
  padding: 0;
}

.pagination li a,
.pagination li span {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  border-radius: 0.75rem;
  color: #64748b;
  text-decoration: none;
  border: 1px solid #e2e8f0;
  transition: all 0.15s;
}

.pagination li a:hover {
  background-color: #6366f1;
  color: white;
  border-color: #6366f1;
}

.pagination li.active span {
  background-color: #6366f1;
  color: white;
  border-color: #6366f1;
}

.pagination li.disabled span {
  color: #d1d5db;
  pointer-events: none;
}

/********** Stripe **********/
.result-message {
  line-height: 22px;
  font-size: 1rem;
  text-align: center;
  margin-top: 10px;
}

#card-element-errors {
  color: var(--dangerColor);
}

#stripeCard {
  height: 2.4em;
  padding-top: 0.7em;
  direction: ltr;
}

.focused {
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.3), 0 1px 1px 0 rgba(0, 0, 0, 0.07),
    0 0 0 4px rgba(99, 102, 241, 0.15);
  outline: none;
  z-index: 9;
}

/* Spinner animation */
.spinner {
  color: var(--spinnerColor);
  font-size: 22px;
  font-weight: bold;
  text-indent: -9999em;
  overflow: hidden;
  width: 1em;
  height: 1em;
  border-radius: 50%;
  margin: 4px auto;
  position: relative;
  transform: translateZ(0);
  animation: load6 1.7s infinite ease, round 1.7s infinite ease;
}

@keyframes load6 {
  0% { box-shadow: 0 -0.83em 0 -0.4em, 0 -0.83em 0 -0.42em, 0 -0.83em 0 -0.44em, 0 -0.83em 0 -0.46em, 0 -0.83em 0 -0.477em; }
  5%, 95% { box-shadow: 0 -0.83em 0 -0.4em, 0 -0.83em 0 -0.42em, 0 -0.83em 0 -0.44em, 0 -0.83em 0 -0.46em, 0 -0.83em 0 -0.477em; }
  10%, 59% { box-shadow: 0 -0.83em 0 -0.4em, -0.087em -0.825em 0 -0.42em, -0.173em -0.812em 0 -0.44em, -0.256em -0.789em 0 -0.46em, -0.297em -0.775em 0 -0.477em; }
  20% { box-shadow: 0 -0.83em 0 -0.4em, -0.338em -0.758em 0 -0.42em, -0.555em -0.617em 0 -0.44em, -0.671em -0.488em 0 -0.46em, -0.749em -0.34em 0 -0.477em; }
  38% { box-shadow: 0 -0.83em 0 -0.4em, -0.377em -0.74em 0 -0.42em, -0.645em -0.522em 0 -0.44em, -0.775em -0.297em 0 -0.46em, -0.82em -0.09em 0 -0.477em; }
  100% { box-shadow: 0 -0.83em 0 -0.4em, 0 -0.83em 0 -0.42em, 0 -0.83em 0 -0.44em, 0 -0.83em 0 -0.46em, 0 -0.83em 0 -0.477em; }
}

@keyframes round {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}