.agenda-totem-wrapper {
  --agenda-blue: #164194;
  --agenda-cyan: #f29109;
  --agenda-badge-upcoming: #167a3f;
  --agenda-badge-past: #d64545;
  --agenda-toggle-show: #167a3f;
  --agenda-toggle-hide: #f29109;
  --agenda-text: #6f6f6f;
  --agenda-location-size: 0.875rem;
  --agenda-bg: #ffffff;
  text-align: left;
  line-height: 1.35;
}

.agenda-totem-wrapper,
.agenda-totem-wrapper * {
  box-sizing: border-box;
}

.agenda-totem-grid {
  display: grid;
  grid-template-columns: minmax(250px, 300px) 1fr;
  gap: 2rem;
}

.agenda-totem-filter-sticky {
  position: sticky;
  top: 12.5%;
  align-self: start;
}

.agenda-totem-filter-card {
  background: transparent;
}

.agenda-totem-filter-title {
  margin: 0 0 1rem;
  color: var(--agenda-blue);
  font-size: 1rem;
  text-transform: uppercase;
}

.agenda-totem-field {
  margin-bottom: 1rem;
}

.agenda-totem-input {
  display: block;
  width: 100% !important;
  max-width: none !important;
  min-width: 0;
  border: 1px solid var(--agenda-blue) !important;
  border-radius: 4px;
  color: var(--agenda-blue) !important;
  min-height: 36px;
  padding: 0.45rem 0.6rem;
  box-sizing: border-box;
  background: #fff;
}

.agenda-totem-wrapper [data-filter-search],
.agenda-totem-wrapper [data-filter-date],
.agenda-totem-wrapper [data-filter-category] {
  border-color: var(--agenda-blue) !important;
  border-radius: 4px !important;
}

.agenda-totem-input:focus {
  outline: none;
  border-color: var(--agenda-blue);
  box-shadow: 0 0 0 1px var(--agenda-blue);
}

.agenda-totem-visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.agenda-totem-calendar {
  margin-top: 2rem;
}

.agenda-totem-calendar-title {
  margin: 0 0 0.8rem;
  text-align: center;
  text-transform: uppercase;
  color: var(--agenda-blue);
  font-size: 0.85rem;
}

.agenda-totem-calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
  color: var(--agenda-blue);
  font-weight: 600;
  text-transform: capitalize;
}

.agenda-totem-btn-icon {
  border: 0;
  background: transparent;
  color: var(--agenda-blue);
  font-size: 1.2rem;
  cursor: pointer;
}

.agenda-totem-calendar-days,
.agenda-totem-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.agenda-totem-calendar-days {
  margin-bottom: 0.35rem;
}

.agenda-totem-calendar-days div {
  text-align: center;
  font-size: 0.72rem;
  color: var(--agenda-blue);
  font-weight: 700;
}

.agenda-totem-calendar-grid div {
  color: var(--agenda-blue);
  text-align: center;
  padding: 6px 0;
  border-radius: 4px;
  cursor: pointer;
  user-select: none;
}

.agenda-totem-calendar-grid div.is-range {
  background-color: #6ec6d8;
  color: #fff;
  font-weight: 600;
}

.agenda-totem-calendar-grid div.is-selected {
  background: var(--agenda-blue);
  color: #fff;
}

.agenda-totem-calendar-actions {
  margin-top: 1rem;
  display: grid;
  gap: 0.5rem;
}

.agenda-totem-btn {
  border: 0;
  border-radius: 6px;
  background: var(--agenda-blue);
  color: #fff;
  text-transform: uppercase;
  font-size: 0.75rem;
  padding: 0.75rem;
  cursor: pointer;
}

.agenda-totem-btn-toggle {
  width: 100%;
}

.agenda-totem-btn-toggle.is-showing-past {
  background: var(--agenda-toggle-hide);
}

.agenda-totem-btn-toggle.is-hiding-past {
  background: var(--agenda-toggle-show);
}

.agenda-totem-results {
  display: grid;
  gap: 1.75rem;
  padding-top: 0.75rem;
  align-content: start;
  justify-items: stretch;
}

.agenda-totem-item {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--agenda-blue);
  opacity: 1;
  transition: opacity 0.35s ease-in-out;
  align-self: start;
}

.agenda-totem-item.is-hidden {
  opacity: 0;
  pointer-events: none;
  display: none;
}

.agenda-totem-date-badge {
  width: 105px;
  height: 105px;
  flex: 0 0 105px;
  border-radius: 8px;
  background: var(--agenda-badge-upcoming);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.05;
  align-self: flex-start;
}

.agenda-totem-date-badge--upcoming {
  background: var(--agenda-badge-upcoming);
}

.agenda-totem-date-badge--past {
  background: var(--agenda-badge-past);
}

.agenda-totem-date-badge span {
  font-size: 0.95rem;
  text-transform: uppercase;
}

.agenda-totem-date-badge strong {
  font-size: 1.8rem;
}

.agenda-totem-date-badge em {
  font-size: 1.8rem;
  font-style: normal;
  text-transform: uppercase;
}

.agenda-totem-range {
  margin: 0;
  color: var(--agenda-blue);
  font-size: 0.875rem;
}

.agenda-totem-title {
  margin: 0.45rem 0;
  color: var(--agenda-blue);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
}

.agenda-totem-location {
  margin: 0 0 0.45rem;
  color: var(--agenda-blue);
  font-weight: 600;
  font-size: var(--agenda-location-size);
}

.agenda-totem-content p {
  margin: 0;
  color: var(--agenda-text);
  font-size: 0.875rem;
  max-width: 540px;
}

.agenda-totem-actions {
  margin: 0.8rem 0 0;
}

.agenda-totem-link {
  display: inline-block;
  background: var(--agenda-blue);
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.75rem;
  padding: 0.55rem 0.8rem;
  border-radius: 6px;
}

.agenda-totem-link:hover,
.agenda-totem-link:focus {
  color: #fff;
  opacity: 0.92;
}

.agenda-totem-no-results {
  color: var(--agenda-blue);
  font-weight: 600;
}

.agenda-totem-empty {
  border: 1px dashed #bfbfbf;
  padding: 0.75rem 1rem;
}

@media (max-width: 900px) {
  .agenda-totem-grid {
    grid-template-columns: 1fr;
  }

  .agenda-totem-filter-sticky {
    position: static;
  }

  .agenda-totem-item {
    flex-direction: column;
  }
}
