/* DS-004: token replacement for event actions and share menus. */
.event-actions {
  display: grid;
  justify-items: center;
  gap: var(--tkc-space-4);
  margin: var(--tkc-space-5) auto;
  text-align: center;
}

/* A quiet line rather than a pill: the countdown above already carries the
   emphasis, and one strong element per block keeps the section calm. */
.next-session {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--tkc-space-2);
  margin: 0;
  color: var(--tkc-color-text);
  font-size: var(--tkc-size-100);
}

.next-session-label {
  color: var(--tkc-color-accent);
  font-weight: var(--tkc-weight-bold);
}

.event-buttons,
.session-tile-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--tkc-space-2);
}

.event-btn-group {
  position: relative;
}

.event-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--tkc-space-3) var(--tkc-space-5);
  color: var(--tkc-color-text);
  background-color: var(--tkc-color-surface);
  border: thin solid var(--tkc-color-border);
  border-radius: var(--tkc-radius-pill);
  font-family: var(--tkc-font-text);
  font-size: var(--tkc-size-100);
  font-weight: var(--tkc-weight-medium);
  line-height: var(--tkc-leading-normal);
  text-decoration: none;
  cursor: pointer;
  transition:
    color var(--tkc-motion-fast) ease,
    background-color var(--tkc-motion-fast) ease,
    border-color var(--tkc-motion-fast) ease;
}

.event-btn:focus-visible,
.event-cal-menu :is(a, button):focus-visible,
.event-share-menu :is(a, button):focus-visible {
  outline: medium solid var(--tkc-color-focus);
  outline-offset: var(--tkc-space-1);
}

/* One primary action; the others are outline buttons, matching the document
   links that follow them. */
.event-btn-primary {
  color: var(--tkc-color-bg);
  background-color: var(--tkc-color-text);
  border-color: var(--tkc-color-text);
}

.event-btn:hover {
  color: var(--tkc-color-accent-strong);
  border-color: var(--tkc-color-accent);
}

.event-btn-primary:hover {
  color: var(--tkc-color-bg);
  background-color: var(--tkc-color-accent-strong);
  border-color: var(--tkc-color-accent-strong);
}

.event-cal-menu,
.event-share-menu {
  position: absolute;
  top: calc(100% + var(--tkc-space-1));
  left: 50%;
  z-index: 20;
  min-width: calc(var(--tkc-space-8) * 3);
  padding: var(--tkc-space-2);
  background-color: var(--tkc-color-surface);
  border: thin solid var(--tkc-color-border);
  border-radius: var(--tkc-radius-md);
  box-shadow: var(--tkc-shadow-md);
  transform: translateX(-50%);
}

.event-cal-menu :is(a, button),
.event-share-menu :is(a, button) {
  display: block;
  width: 100%;
  padding: var(--tkc-space-2) var(--tkc-space-3);
  color: var(--tkc-color-text);
  background-color: transparent;
  border: 0;
  border-radius: var(--tkc-radius-sm);
  font-size: var(--tkc-size-100);
  font-weight: var(--tkc-weight-medium);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.event-cal-menu :is(a, button):hover,
.event-share-menu :is(a, button):hover {
  color: var(--tkc-color-accent);
  background-color: color-mix(in srgb, var(--tkc-color-accent) 10%, transparent);
}

@media (prefers-reduced-motion: reduce) {
  .event-btn {
    transition-duration: 0s;
  }
}
