/* ── Admin toggle switch ── */

.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc;
  transition: .3s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .3s;
}

input:checked + .slider {
  background-color: #48c78e;
}

input:checked + .slider:before {
  transform: translateX(24px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

/* ── Toggle wrapper ── */

.admin-visible-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-visible-toggle form {
  display: inline;
  margin: 0;
  padding: 0;
}

/* ── Bulma-compatible tag styles ── */

.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #f5f5f5;
  border-radius: 4px;
  color: #4a4a4a;
  font-size: 0.75rem;
  height: 2em;
  padding-left: 0.75em;
  padding-right: 0.75em;
  white-space: nowrap;
  line-height: 1.5;
}

/* ── Hidden event dimming ── */

.event-hidden .cd-timeline__content {
  opacity: 0.55;
  background-color: #f0f0f0;
}

.event-hidden .cd-timeline__content::before {
  border-right-color: #f0f0f0;
  border-left-color: #f0f0f0;
}

.event-hidden .cd-timeline__img {
  opacity: 0.55;
}
