.bk-hidden,
.bk-modal.bk-hidden {
  display: none !important;
}

.bk-form-msg {
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  font-size: 0.95rem;
  text-align: center;
}

.bk-form-msg--ok {
  background: #ecfdf3;
  color: #067647;
  border: 1px solid #abefc6;
}

.bk-join-success {
  max-width: 28rem;
  margin: 0 auto 2rem;
  padding: 1.25rem 1.5rem;
  font-size: 1.05rem;
  line-height: 1.5;
  text-align: center;
}

.bk-form-msg--err {
  background: #fef3f2;
  color: #b42318;
  border: 1px solid #fecdca;
}

.bk-b-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.bk-b-alert {
  color: hsl(352 68% 42%);
  font-weight: inherit;
}

.bk-events {
  padding: 4rem 0 5rem;
  background: hsl(352 20% 97%);
}

.bk-events-inner {
  max-width: 40rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.bk-events-head {
  text-align: center;
  margin-bottom: 1.75rem;
}

.bk-events h2 {
  font-family: ui-serif, Georgia, serif;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin: 0 0 0.35rem;
}

.bk-events-sub {
  margin: 0;
  font-size: 0.95rem;
  color: #6b7280;
}

.bk-events-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 4rem;
}

.bk-events-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.bk-events-nav-btn {
  font: inherit;
  border: 1px solid #e8e4e2;
  background: #fff;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  color: #1a1a1a;
}

.bk-events-nav-btn:hover:not(:disabled) {
  border-color: hsl(352 68% 42%);
  color: hsl(352 68% 42%);
}

.bk-events-nav-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.bk-events-counter {
  font-size: 0.85rem;
  color: #6b7280;
  min-width: 8rem;
  text-align: center;
}

.bk-events-empty {
  text-align: center;
  color: #6b7280;
  padding: 1.5rem 1rem;
  background: #fff;
  border: 1px dashed #e8e4e2;
  border-radius: 1rem;
}

.bk-event-card {
  background: #fff;
  border: 1px solid #e8e4e2;
  border-radius: 1rem;
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.bk-event-card-body {
  flex: 1;
  min-width: 0;
}

.bk-event-date {
  font-size: 0.8rem;
  color: #6b7280;
  margin-bottom: 0.2rem;
}

.bk-event-title {
  font-weight: 600;
}

.bk-event-desc {
  font-size: 0.9rem;
  color: #6b7280;
  margin: 0.35rem 0 0;
}

.bk-event-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.bk-event-action {
  font: inherit;
  font-size: 0.8rem;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  text-decoration: none;
}

.bk-event-action--signup {
  color: hsl(352 68% 42%);
  font-weight: 500;
}

.bk-event-action--signup:hover {
  text-decoration: underline;
}

.bk-event-action--details {
  color: #6b7280;
}

.bk-event-action--details:hover {
  color: #4b5563;
  text-decoration: underline;
}

.bk-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.bk-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  border: none;
  cursor: pointer;
}

.bk-modal-box {
  position: relative;
  background: #fff;
  border-radius: 1.5rem;
  padding: 1.5rem;
  width: min(420px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.bk-modal-box h3 {
  margin: 0 0 0.35rem;
  font-family: ui-serif, Georgia, serif;
}

.bk-modal-box label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.bk-modal-box input {
  font: inherit;
  padding: 0.65rem 0.8rem;
  border: 1px solid #e8e4e2;
  border-radius: 0.75rem;
}

.bk-modal-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.bk-modal-actions button {
  flex: 1;
  font: inherit;
  padding: 0.7rem;
  border-radius: 0.75rem;
  border: 1px solid #e8e4e2;
  cursor: pointer;
}

.bk-modal-actions .primary {
  background: hsl(352 68% 42%);
  border-color: hsl(352 68% 42%);
  color: #fff;
}

#root a,
#root button,
#root summary,
#root [role="button"],
#root label[for],
.bk-event-action,
.bk-events-nav-btn {
  cursor: pointer;
}

#root input,
#root textarea,
#root select {
  cursor: text;
}
