.agenda {
  --agenda-blue: #0c3a58;
  --agenda-rail: 10.5rem;
  --agenda-dot: 0.7rem;
  text-align: left;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
  padding: 1.25rem 1.15rem 1.35rem;
  box-shadow: 0 18px 40px -28px rgb(15 23 42 / 0.45);
}

.agenda-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.85rem 1rem;
  margin-bottom: 0.35rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid #eef2f6;
}

.agenda-kicker {
  margin: 0 0 0.3rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #64748b;
}

.agenda-heading {
  margin: 0 0 0.25rem;
  font-size: 1.35rem;
  line-height: 1.25;
  font-weight: 700;
  color: #0f172a;
}

.agenda-meta {
  margin: 0;
  color: #64748b;
  font-size: 0.92rem;
}

.agenda-actions {
  display: flex;
  gap: 0.5rem;
}

.agenda-action {
  appearance: none;
  border: 1px solid #0c3a58;
  background: #dbe8f6;
  color: #0c3a58;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.agenda-action:hover,
.agenda-action:focus-visible {
  background: #0c3a58;
  border-color: #0c3a58;
  color: #fff;
  outline: none;
}

.agenda-list {
  position: relative;
  display: flex;
  flex-direction: column;
}

.agenda-item {
  border: 0;
}

.agenda-item + .agenda-item {
  border-top: 1px solid #f1f5f9;
}

.agenda-summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.65rem 0.85rem;
  align-items: center;
  cursor: pointer;
  list-style: none;
  padding: 1rem 0.15rem;
  border-radius: 0.85rem;
  transition: background 0.15s ease;
}

.agenda-summary::-webkit-details-marker,
.agenda-summary::marker {
  display: none;
  content: "";
}

.agenda-summary:hover,
.agenda-item[open] > .agenda-summary {
  background: #f8fafc;
}

.agenda-summary:focus-visible {
  outline: 2px solid #89b0d0;
  outline-offset: 2px;
}

.agenda-time {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--agenda-blue);
  white-space: nowrap;
}

.agenda-summary-main {
  grid-column: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  min-width: 0;
}

.agenda-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
}

.agenda-hint {
  font-size: 0.78rem;
  font-weight: 600;
  color: #94a3b8;
}

.agenda-ce {
  display: inline-flex;
  align-items: center;
  border: 0;
  border-radius: 999px;
  padding: 0.16rem 0.55rem;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
  background: #f6ead6;
  color: #53280c;
  cursor: pointer;
}

.agenda-ce:hover,
.agenda-ce:focus-visible {
  background: #f0c014;
  outline: 2px solid #0c3a58;
  outline-offset: 2px;
}

.agenda-workshop-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.45rem;
  margin: 0 0 0.55rem;
}

.agenda-ce-label,
.agenda-no-ce {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.16rem 0.55rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.agenda-ce-label {
  background: #f6ead6;
  color: #53280c;
}

.agenda-no-ce {
  background: #eef2f6;
  color: #475569;
}

.agenda-chevron {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 1.15rem;
  height: 1.15rem;
  color: #94a3b8;
  transition: transform 0.2s ease;
  flex-shrink: 0;
  align-self: center;
}

.agenda-item[open] .agenda-chevron {
  transform: rotate(180deg);
  color: var(--agenda-blue);
}

.agenda-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.18rem 0.62rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pill-welcome { background: #c5c9a4; color: #0c3a58; }
.pill-session { background: #89b0d0; color: #0c3a58; }
.pill-processing { background: #f0c014; color: #53280c; }
.pill-intermission { background: #f6ead6; color: #53280c; }
.pill-panel { background: #72243c; color: #f6ead6; }
.pill-closing { background: #0c3a58; color: #fff; }
.pill-networking { background: #dbe8f6; color: #0c3a58; }

.agenda-body {
  padding: 0 0.15rem 1.15rem;
}

.agenda-desc {
  margin: 0;
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.65;
}

.agenda-ce-note {
  margin: 0.85rem 0 0;
  max-width: 46rem;
  color: #64748b;
  font-size: 0.75rem;
  line-height: 1.55;
}

.agenda-note {
  margin: 0.55rem 0 0;
  color: #334155;
  font-size: 0.9rem;
  font-weight: 600;
}

.agenda-workshops {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin-top: 1rem;
}

.agenda-workshop {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.95rem;
  padding: 1rem 1.05rem 1.1rem;
}

.agenda-workshop[data-workshop-id] {
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.agenda-workshop[data-workshop-id]:hover,
.agenda-workshop[data-workshop-id]:focus-visible {
  background: #fff;
  border-color: #89b0d0;
  box-shadow: 0 10px 24px -18px rgb(12 58 88 / 0.55);
  outline: 2px solid #0c3a58;
  outline-offset: 2px;
}

.agenda-workshop-more {
  display: inline-flex;
  margin: 0.75rem 0 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: #0c3a58;
}

.agenda-workshop-soon {
  display: inline-flex;
  margin: 0.75rem 0 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: #64748b;
}

.agenda-workshop[data-workshop-id]:hover .agenda-workshop-more,
.agenda-workshop[data-workshop-id]:focus-visible .agenda-workshop-more {
  text-decoration: underline;
}

.agenda-workshop-title {
  margin: 0 0 0.35rem;
  font-size: 0.98rem;
  line-height: 1.45;
  font-weight: 700;
  color: #0f172a;
}

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

.agenda-points {
  margin: 0.35rem 0 0;
  padding: 0 0 0 1.15rem;
  color: #475569;
  font-size: 0.88rem;
  line-height: 1.55;
}

.agenda-points li + li {
  margin-top: 0.22rem;
}

@media (min-width: 768px) {
  .agenda {
    padding: 1.6rem 1.6rem 1.7rem;
  }

  .agenda-heading {
    font-size: 1.55rem;
  }

  .agenda-list::before {
    content: "";
    position: absolute;
    left: var(--agenda-rail);
    top: 1.15rem;
    bottom: 1.15rem;
    width: 2px;
    transform: translateX(-50%);
    background: #e2e8f0;
  }

  .agenda-summary {
    grid-template-columns: 9.5rem 1fr auto;
    column-gap: 2rem;
    padding: 1.05rem 0.65rem 1.05rem 0;
  }

  .agenda-time {
    grid-column: 1;
    grid-row: 1;
    position: relative;
    font-size: 0.86rem;
    line-height: 1.4;
  }

  .agenda-time::after {
    content: "";
    position: absolute;
    left: var(--agenda-rail);
    top: 0.32rem;
    width: var(--agenda-dot);
    height: var(--agenda-dot);
    border-radius: 999px;
    transform: translateX(-50%);
    background: #fff;
    border: 2px solid var(--agenda-blue);
    box-shadow: 0 0 0 4px #fff;
    z-index: 1;
  }

  .agenda-item[open] .agenda-time::after {
    background: var(--agenda-blue);
    box-shadow: 0 0 0 4px #dbe8f6;
  }

  .agenda-summary-main {
    grid-column: 2;
    grid-row: 1;
  }

  .agenda-chevron {
    grid-column: 3;
    grid-row: 1;
  }

  .agenda-body {
    padding: 0 0.65rem 1.25rem 11.5rem;
  }

  .agenda-workshops {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .agenda-workshop:only-child {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1100px) {
  .agenda-workshops-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .agenda-chevron,
  .agenda-action,
  .agenda-summary {
    transition: none;
  }
}

body.workshop-dialog-open {
  overflow: hidden;
}

.workshop-dialog[hidden] {
  display: none;
}

.workshop-dialog {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.workshop-dialog-backdrop {
  position: absolute;
  inset: 0;
  background: rgb(12 58 88 / 0.48);
}

.workshop-dialog-panel {
  position: relative;
  z-index: 1;
  width: min(44rem, 100%);
  max-height: calc(100vh - 2.5rem);
  overflow: auto;
  padding: 1.4rem 1.35rem 1.5rem;
  background: #fff;
  border: 1px solid #c5d7e6;
  border-radius: 1rem;
  border-left: 4px solid #0c3a58;
  box-shadow: 0 24px 48px -20px rgb(12 58 88 / 0.55);
  outline: none;
}

.workshop-dialog-close {
  position: sticky;
  top: 0;
  float: right;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin: -0.15rem -0.2rem 0.5rem 0.75rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #0c3a58;
  color: #f6ead6;
  cursor: pointer;
}

.workshop-dialog-close svg {
  width: 1.05rem;
  height: 1.05rem;
  display: block;
}

.workshop-dialog-close:hover,
.workshop-dialog-close:focus-visible {
  background: #2f5d78;
  outline: 2px solid #89b0d0;
  outline-offset: 2px;
}

.workshop-dialog-kind {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #72243c;
}

.workshop-dialog-title {
  margin: 0 2.2rem 0.4rem 0;
  font-size: 1.15rem;
  line-height: 1.35;
  font-weight: 800;
  color: #0c3a58;
}

.workshop-dialog-speaker {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #2f5d78;
}

.workshop-dialog-speaker .agenda-speaker-link {
  color: #0c3a58;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

.workshop-dialog-speaker .agenda-speaker-link:hover,
.workshop-dialog-speaker .agenda-speaker-link:focus-visible {
  color: #14304d;
}

.workshop-dialog-speaker .agenda-speaker-link:focus-visible {
  outline: 2px solid #0c3a58;
  outline-offset: 2px;
}

.workshop-dialog-copy p {
  margin: 0 0 0.85rem;
  color: #334155;
  font-size: 0.95rem;
  line-height: 1.65;
}

.workshop-dialog-copy p:last-child {
  margin-bottom: 0;
}

.workshop-dialog-objectives-label {
  margin: 1.1rem 0 0.45rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0c3a58;
}

.workshop-dialog-objectives {
  margin: 0;
  padding: 0 0 0 1.35rem;
  color: #1f2937;
  font-size: 0.92rem;
  line-height: 1.55;
  list-style: decimal;
  list-style-position: outside;
}

.workshop-dialog-objectives li + li {
  margin-top: 0.4rem;
}
