/* Event agenda in the companion rail: venue clock, what is on now, the day's timeline. */
.agenda {
  border-top: 1px solid var(--line);
  padding: 18px 20px 20px;
}
.agenda[hidden] {
  display: none;
}
.agenda-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.agenda-eyebrow,
.agenda-place {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}
.agenda h3 {
  margin: 0;
  font-size: 16px;
  letter-spacing: -0.2px;
}
.agenda-clock {
  display: grid;
  flex: 0 0 auto;
  justify-items: end;
  margin: 0;
  text-align: right;
}
.agenda-place {
  color: var(--muted);
  margin: 0 0 2px;
}
.agenda-clock time {
  font-size: 18px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.3px;
  line-height: 1.15;
}
.agenda-zone {
  margin-left: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 550;
}
.agenda-local {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}
.agenda-now {
  margin-top: 14px;
  border: 1px solid #62d9f645;
  border-radius: 12px;
  padding: 12px 14px;
  background: linear-gradient(135deg, #62d9f612, #aa8cff10);
}
.agenda-now[data-state="break"] {
  border-color: #ff9c8045;
  background: #ff9c800d;
}
.agenda-now[data-state="next"],
.agenda-now[data-state="done"] {
  border-color: var(--line);
  background: #0e1526;
}
.agenda-kicker {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.agenda-now[data-state="break"] .agenda-kicker {
  color: var(--coral);
}
.agenda-now[data-state="next"] .agenda-kicker,
.agenda-now[data-state="done"] .agenda-kicker {
  color: var(--violet);
}
.agenda-when {
  margin-left: auto;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2px;
  text-transform: none;
  white-space: nowrap;
}
.agenda-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  animation: agenda-pulse 2s ease-in-out infinite;
}
@keyframes agenda-pulse {
  50% {
    opacity: 0.3;
  }
}
.agenda-now-title {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.agenda-now-speakers {
  margin: 3px 0 0;
  color: #c2d2f4;
  font-size: 11px;
}
.agenda-now-time {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.agenda-progress {
  height: 4px;
  margin-top: 10px;
  border-radius: 4px;
  background: #ffffff14;
  overflow: hidden;
}
.agenda-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--brand-gradient);
}
.agenda-next {
  margin: 10px 0 0;
  padding-top: 9px;
  border-top: 1px solid #ffffff12;
  color: var(--muted);
  font-size: 11px;
}
.agenda-next strong {
  color: var(--text);
  font-weight: 600;
}
.agenda-days {
  display: flex;
  gap: 6px;
  margin-top: 14px;
  overflow-x: auto;
  scrollbar-width: none;
}
/* Outranks the companion's generic button font rule. */
.agenda .agenda-day {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 11px;
}
.agenda .agenda-day:hover {
  color: var(--text);
}
.agenda .agenda-day[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}
.agenda-list {
  position: relative;
  max-height: 340px;
  margin: 12px 0 0;
  padding: 0 4px 0 0;
  list-style: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.agenda-list.fade-top {
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 32px);
  mask-image: linear-gradient(to bottom, transparent, #000 32px);
}
.agenda-list.fade-bottom {
  -webkit-mask-image: linear-gradient(to top, transparent, #000 32px);
  mask-image: linear-gradient(to top, transparent, #000 32px);
}
.agenda-list.fade-top.fade-bottom {
  -webkit-mask-image: linear-gradient(transparent, #000 32px, #000 calc(100% - 32px), transparent);
  mask-image: linear-gradient(transparent, #000 32px, #000 calc(100% - 32px), transparent);
}
.agenda-item,
.agenda-marker {
  position: relative;
  display: grid;
  grid-template-columns: 58px 14px minmax(0, 1fr);
  column-gap: 8px;
}
.agenda-item {
  padding: 7px 6px 7px 0;
  border-radius: 8px;
}
/* The timeline rail runs through every row's dot column. */
.agenda-item::before,
.agenda-marker::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 72px;
  width: 2px;
  background: var(--line);
}
.agenda-list > :first-child::before {
  top: 12px;
}
.agenda-list > :last-child::before {
  bottom: calc(100% - 12px);
}
.agenda-time {
  padding-top: 1px;
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}
.agenda-dot {
  position: relative;
  z-index: 1;
  width: 10px;
  height: 10px;
  margin: 4px 0 0 2px;
  border: 2px solid #4a5877;
  border-radius: 50%;
  background: var(--surface);
}
.agenda-title {
  margin: 0;
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.agenda-meta {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.agenda-meta:empty {
  display: none;
}
.agenda-tag {
  display: inline-block;
  margin-left: 6px;
  border-radius: 4px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 1px 5px;
  text-transform: uppercase;
  vertical-align: 1px;
}
.agenda-item.is-past .agenda-dot {
  background: #4a5877;
}
.agenda-item.is-past .agenda-title,
.agenda-item.is-past .agenda-time,
.agenda-item.is-past .agenda-meta {
  color: #7a86a3;
}
.agenda-item.is-now {
  background: linear-gradient(90deg, #62d9f600, #62d9f614);
}
.agenda-item.is-now .agenda-time {
  color: var(--accent);
  font-weight: 650;
}
.agenda-item.is-now .agenda-dot {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 0 4px #62d9f633;
}
.agenda-item.is-break .agenda-title {
  color: var(--muted);
  font-weight: 500;
}
.agenda-item.is-break.is-now .agenda-dot {
  border-color: var(--coral);
  background: var(--coral);
  box-shadow: 0 0 0 4px #ff9c8033;
}
.agenda-item.is-break .agenda-tag {
  background: var(--coral);
}
.agenda-marker {
  align-items: center;
  padding: 3px 0;
}
.agenda-marker-time {
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.agenda-marker-line {
  position: relative;
  z-index: 1;
  grid-column: 2 / 4;
  height: 2px;
  margin-left: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), #62d9f600);
}
.agenda-marker-line::before {
  content: "";
  position: absolute;
  top: -3px;
  left: -1px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
@media (max-width: 850px) {
  .agenda-list {
    max-height: 380px;
  }
}
@media (pointer: coarse) {
  .agenda .agenda-day {
    min-height: 44px;
    padding: 5px 14px;
  }
}
