html {
  scroll-behavior: smooth;
}

.ce-agenda {
  display: grid;
  gap: 1rem;
}

.ce-agenda p {
  text-align: left;
}

.ce-agenda-month {
  margin: 1.5rem 0 0.5rem;
  color: #b3da40 !important;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-underline-color: #b3da40;
  text-transform: capitalize;
}

.ce-agenda-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1rem;
  padding: 0.75rem;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 10px;
}

.ce-agenda-date {
  text-align: center;
  padding: 0.25rem 0;
  border-radius: 10px;
  background: rgba(0,0,0,0.03);
}

.ce-agenda-day {
  font-size: 2rem;
  line-height: 1.2;
  font-weight: 700;
  color: #b3da40;
}

.ce-agenda-dow {
  font-size: 0.85rem;
  opacity: 0.75;
  text-transform: capitalize;
}

.ce-agenda-time {
  margin: 0.25rem 0 0.5rem;
  font-size: 0.9em;
  color: #b3da40;
}

.ce-agenda-title {
  margin: 0 0 0.25rem;
  font-weight: 600;
}

.ce-agenda-location {
  display: inline-flex;
  align-items: center;
  gap: 0.25em;
}

.ce-agenda-location::before {
  content: "";
  display: inline-block;
  width: 1em;
  height: 1em;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z%22/%3E%3Ccircle cx=%2212%22 cy=%2210%22 r=%223%22/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z%22/%3E%3Ccircle cx=%2212%22 cy=%2210%22 r=%223%22/%3E%3C/svg%3E") no-repeat center / contain;
}

.ce-agenda-meta {
  margin: 0;
  opacity: 0.85;
}

.ce-agenda-excerpt {
  margin: 0.5rem 0 0;
  opacity: 0.9;
}

.ce-agenda-cta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0 0;
}

.ce-agenda-cta-list .button {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.ce-agenda-debug {
  margin: 1rem 0 0;
  padding: 0.75rem;
  background: rgba(0,0,0,0.04);
  font-size: 12px;
  white-space: pre-wrap;
}

.btn-icon-link::before {
  content: "";
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-right: 0.25em;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71%22/%3E%3Cpath d=%22M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71%22/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71%22/%3E%3Cpath d=%22M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71%22/%3E%3C/svg%3E") no-repeat center / contain;
}

.btn-icon-flyer::before {
  content: "";
  display: inline-block;
  width: 0.95em;
  height: 1.1em;
  margin-right: 0.25em;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z%22/%3E%3Cpolyline points=%2214 2 14 8 20 8%22/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z%22/%3E%3Cpolyline points=%2214 2 14 8 20 8%22/%3E%3C/svg%3E") no-repeat center / contain;
}

.btn-icon-internal::before {
  content: "";
  display: inline-block;
  width: 0.5em;
  height: 0.5em;
  margin-right: 0.25em;
  border-right: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
}

.ce-agenda-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  z-index: 999999;
}

.ce-agenda-lightbox img {
  max-width: min(1100px, 92vw);
  max-height: 92vh;
  width: auto;
  height: auto;
  box-shadow: 0 10px 40px rgba(0,0,0,0.35);
  border-radius: 8px;
  background: #fff;
}

.ce-agenda-lightbox-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(0,0,0,0.8);
  border: 0;
  width: 2.1rem;
  height: 2.1rem;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  z-index: 1;
  padding-left: 1rem;
  padding-right: 2rem;
  box-shadow: #b3da40 0 0 0 2px inset;
}

.ce-agenda-carousel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.5rem;
  max-width: 100%;
  overflow: hidden;
  contain: layout paint;
}

.ce-agenda-carousel-track {
  min-width: 0;
  max-width: 100%;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  gap: 0.75rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  padding: 0.25rem;
  -webkit-overflow-scrolling: touch;
}

.ce-agenda-card {
  scroll-snap-align: start;
  display: grid;
  gap: 0.35rem;
  padding: 0.85rem;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  background: rgba(0,0,0,0.03);
  color: inherit;
}

.ce-agenda-card-date {
  font-weight: 700;
  color: #b3da40;
  text-transform: capitalize;
}

.ce-agenda-card-title {
  font-weight: 600;
  text-decoration: none;
  color: inherit;
}

.ce-agenda-card-meta {
  font-size: 0.85em;
  opacity: 0.8;
}

.ce-agenda-card-actions {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.25rem;
}

.ce-agenda-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 1rem;
  text-decoration: none;
}

.ce-agenda-card-more {
  display: flex;
  background: transparent;
  border: 1px dashed rgba(0,0,0,0.2);
  align-items: center;
  justify-items: center;
  grid-auto-flow: column;
  gap: 0.25rem;
  justify-content: center;
}

.ce-agenda-card-more span {
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 999px;
  background: #b3da40;
  display: inline-block;
}

.ce-agenda-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

@media (max-width: 640px) {
  .ce-agenda-carousel {
    grid-template-columns: 1fr;
  }

  .ce-agenda-carousel-btn {
    display: none;
  }
}
