@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap');
:root {
  --animation-duration-first: 20s; /* First word total animation duration */
  --animation-duration: 10s; /* Total animation duration */
}

@keyframes word {
  0% {
    transform: translateY(100%);
  }
  10% {
    transform: translateY(-10%);
    animation-timing-function: ease-out;
  }
  12.5% {
    transform: translateY(0);
  }
  25%,
  100% {
    transform: translateY(-110%);
  }
}

/* Pride-pinned events keep the standard card structure with a celebratory edge. */
.pride-pinned-card {
  border: 2px solid transparent;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(241, 245, 255, 0.96)) padding-box,
    linear-gradient(110deg, #e40303, #ff8c00, #ffed00, #008026, #004dff, #750787, #e40303) border-box;
  background-size: 100% 100%, 240% 100%;
  box-shadow: 0 14px 35px rgba(10, 1, 133, 0.24), 0 0 24px rgba(117, 7, 135, 0.16);
  animation: pride-border-shift 8s linear infinite;
}

.pride-card-ribbon {
  position: absolute;
  inset: 0 0 auto;
  height: 0.45rem;
  background: linear-gradient(90deg, #e40303 0 16.66%, #ff8c00 16.66% 33.32%, #ffed00 33.32% 49.98%, #008026 49.98% 66.64%, #004dff 66.64% 83.3%, #750787 83.3% 100%);
}

.pride-spotlight-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid rgba(10, 1, 133, 0.2);
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.82);
  padding: 0.25rem 0.65rem;
  color: #0a0185;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1rem;
  text-transform: uppercase;
}

.pride-date-tile {
  border: 1px solid rgba(10, 1, 133, 0.18);
  background: linear-gradient(145deg, #fff7bd, #ffd9ec 40%, #dce7ff) !important;
  color: #0a0185 !important;
  box-shadow: 0 4px 12px rgba(10, 1, 133, 0.12);
}

.pride-week-card {
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.pride-week-card:hover {
  transform: translateY(-2px);
  border-color: #0a0185;
  box-shadow: 0 12px 28px rgba(10, 1, 133, 0.12);
}

@keyframes pride-border-shift {
  from { background-position: 0 0, 0% 50%; }
  to { background-position: 0 0, 200% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  .pride-pinned-card { animation: none; }
}

.animate-word {
  animation: word var(--animation-duration) infinite;
}
.animate-word-delay-1 {
  animation: word var(--animation-duration) infinite;
  animation-delay: calc(-1 * (var(--animation-duration) / 8));
}
.animate-word-delay-2 {
  animation: word var(--animation-duration) infinite;
  animation-delay: calc(-2 * (var(--animation-duration) / 8));
}
.animate-word-delay-3 {
  animation: word var(--animation-duration) infinite;
  animation-delay: calc(-3 * (var(--animation-duration) / 8));
}
.animate-word-delay-4 {
  animation: word var(--animation-duration) infinite;
  animation-delay: calc(-4 * (var(--animation-duration) / 8));
}
.animate-word-delay-5 {
  animation: word var(--animation-duration) infinite;
  animation-delay: calc(-5 * (var(--animation-duration) / 8));
}
.animate-word-delay-6 {
  animation: word var(--animation-duration) infinite;
  animation-delay: calc(-6 * (var(--animation-duration) / 8));
}
.animate-word-delay-7 {
  animation: word var(--animation-duration) infinite;
  animation-delay: calc(-7 * (var(--animation-duration) / 8));
}

/* Make an inner link clickable across its parent card */
/* Do NOT position the link itself so the pseudo-element fills the positioned parent (the card) */
.stretched-link { position: static; }
.stretched-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
/* Ensure HTML lists and spacing render inside rich content blocks */
.rich ul {
  list-style: disc;
  margin-left: 1.25rem; /* ~pl-5 */
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
}

.rich ol {
  list-style: decimal;
  margin-left: 1.25rem;
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
}

.rich li {
  margin: 0.25rem 0; /* collapse-tight */
}

.rich p {
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
}

.rich h1, .rich h2, .rich h3, .rich h4, .rich h5, .rich h6 {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

/* Custom Trix Editor Styling - Tailwind-like buttons */

/* Toolbar styling */
trix-toolbar {
  @apply border border-gray-300 rounded-t-md bg-gray-50 p-2;
}

/* Button groups */
trix-toolbar .trix-button-group {
  @apply inline-flex rounded-md shadow-sm mr-2 mb-2;
}

/* Individual buttons */
trix-toolbar .trix-button {
  @apply relative inline-flex items-center px-3 py-2 text-sm font-medium text-gray-700 bg-white border border-gray-300 hover:bg-gray-50 hover:text-gray-900 focus:z-10 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500;
  border-radius: 0;
}

/* First button in group */
trix-toolbar .trix-button-group .trix-button:first-child {
  @apply rounded-l-md;
}

/* Last button in group */
trix-toolbar .trix-button-group .trix-button:last-child {
  @apply rounded-r-md;
}

/* Active/pressed button state */
trix-toolbar .trix-button.trix-active {
  @apply bg-indigo-600 text-white border-indigo-600;
}

/* Disabled button state */
trix-toolbar .trix-button:disabled {
  @apply opacity-50 cursor-not-allowed bg-gray-100;
}

/* Dialog styling (for links, etc.) */
trix-toolbar .trix-dialog {
  @apply bg-white border border-gray-300 rounded-md shadow-lg p-4 mt-2;
}

trix-toolbar .trix-dialog__link-fields {
  @apply space-y-3;
}

trix-toolbar .trix-dialog__link-fields input {
  @apply block w-full rounded-md border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 sm:text-sm;
}

/* Editor content area */
trix-editor {
  @apply rounded-b-md border-t-0;
  min-height: 200px;
}

trix-editor h1, .trix-content h1 {
  font-size: 1.875rem; /* ~text-3xl */
  line-height: 2.25rem; /* ~leading-9 */
  font-weight: 700; /* bold */
  margin-bottom: 0.5rem; /* mb-2 */
}
trix-editor h2, .trix-content h2 {
  font-size: 1.5rem; /* ~text-2xl */
  line-height: 2rem; /* ~leading-8 */
  font-weight: 700; /* bold */
  margin-bottom: 0.5rem;
}
trix-editor h3, .trix-content h3 {
  font-size: 1.25rem; /* ~text-xl */
  line-height: 1.75rem; /* ~leading-7 */
  font-weight: 600; /* semibold */
  margin-bottom: 0.5rem;
}
trix-editor h4, .trix-content h4 {
  font-size: 1.125rem; /* ~text-lg */
  line-height: 1.75rem; /* ~leading-7 */
  font-weight: 600; /* semibold */
  margin-bottom: 0.5rem;
}
trix-editor h5, .trix-content h5 {
  font-size: 1rem; /* ~text-base */
  line-height: 1.5rem; /* ~leading-6 */
  font-weight: 600; /* semibold */
  margin-bottom: 0.5rem;
}

/* Hide attachment buttons completely */
trix-toolbar .trix-button--icon-attach,
trix-toolbar .trix-button-group--file-tools {
  display: none !important;
}

/* Button icons - make them more visible */
trix-toolbar .trix-button::before {
  @apply text-gray-600;
}

trix-toolbar .trix-button.trix-active::before {
  @apply text-white;
}

/* Input fields in dialogs */
trix-toolbar .trix-input {
  @apply block w-full rounded-md border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 sm:text-sm px-3 py-2;
}

/* Dialog buttons */
trix-toolbar .trix-button--dialog {
  @apply inline-flex justify-center rounded-md border border-transparent bg-indigo-600 py-2 px-4 text-sm font-medium text-white shadow-sm hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 mr-2;
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

.bg-primary-color {
  background-color: #0a0185;
}

/* Increase spacing below paragraphs inside prose blocks site-wide */
.prose p {
  margin-bottom: 1rem; /* ~mb-4 */
}
