.agenda-page {
  width: 100%;
  background: var(--paper);
  padding: 40px 0 64px;
}

.agenda-wrap {
  width: min(780px, calc(100% - 64px));
  margin: 0 auto;
}

.agenda-intro {
  text-align: center;
  margin: 0 0 40px;
}

.agenda-intro h2 {
  margin: 0 0 8px;
  color: var(--iae);
  font-size: clamp(1.4rem, 3.2vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.agenda-intro p {
  margin: 0;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.45;
}

.agenda-days {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 22px 0 0;
}

.agenda-days a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--iae);
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  white-space: nowrap;
}

.agenda-days a:hover,
.agenda-days a:focus-visible {
  background: var(--iae);
  border-color: var(--iae);
  color: var(--white);
}

.agenda-day,
.agenda-campus {
  scroll-margin-top: 16px;
}

.agenda-day {
  margin: 0 0 96px;
}

.agenda-day__title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
  margin: 0 0 8px;
  padding: 0 0 14px;
  border-bottom: 2px solid var(--iae);
  color: var(--iae);
  font-size: clamp(1.12rem, 2.4vw, 1.28rem);
  font-weight: 700;
}

.agenda-day__title span {
  font-weight: 800;
}

.agenda-day__title small {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.agenda-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.agenda-item {
  display: grid;
  grid-template-columns: 10.25rem minmax(0, 1fr);
  gap: 6px 28px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.agenda-item:last-child {
  border-bottom: 0;
}

.agenda-item__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 3px 0 0;
  min-width: 0;
}

.agenda-item__time {
  order: 1;
  color: var(--iae);
  font-size: 0.92rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.35;
  white-space: nowrap;
}

.agenda-item__badge {
  order: 0;
}

.agenda-item__room {
  order: 2;
}

.agenda-item__badge,
.agenda-item__room {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.35;
  overflow-wrap: break-word;
}

.agenda-item__badge--ghost {
  color: var(--iae);
  font-weight: 600;
}

.agenda-item__body {
  min-width: 0;
}

.agenda-item__title {
  margin: 0;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.015em;
  overflow-wrap: break-word;
}

.agenda-item__desc {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.55;
  overflow-wrap: break-word;
}

.agenda-speakers {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.agenda-speaker {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.45;
  overflow-wrap: break-word;
}

.agenda-speaker strong {
  color: var(--iae);
  font-weight: 700;
}

.agenda-speaker span::before {
  content: " — ";
}

.agenda-item--break {
  padding: 14px 0;
}

.agenda-item--break .agenda-item__title {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.agenda-item.agenda-item--parallel {
  margin: 10px 0;
  padding: 16px 16px 16px 20px;
  border: 0;
  border-left: 3px solid var(--iae);
  border-radius: 0 12px 12px 0;
  background: var(--white);
}

.agenda-item--parallel + .agenda-item {
  border-top: 1px solid var(--line);
}

.agenda-campus {
  padding: 8px 0 0;
}

.agenda-campus h3 {
  margin: 0 0 18px;
  color: var(--iae);
  font-size: clamp(1.12rem, 2.4vw, 1.28rem);
}

.agenda-campus__map {
  display: block;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--white);
}

.agenda-campus__map img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 1024px) {
  .agenda-wrap {
    width: calc(100% - 40px);
  }

  .agenda-item {
    grid-template-columns: 9.25rem minmax(0, 1fr);
    gap: 6px 20px;
  }
}

@media (max-width: 900px) {
  .agenda-page {
    padding: 28px 0 88px;
  }

  .agenda-wrap {
    width: calc(100% - 32px);
  }

  .agenda-intro {
    margin: 0 0 28px;
  }

  .agenda-days a {
    min-height: 44px;
    padding: 0 14px;
  }

  .agenda-day {
    margin: 0 0 64px;
  }

  .agenda-day__title {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .agenda-item,
  .agenda-item--parallel {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .agenda-item__meta {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 8px;
    row-gap: 2px;
    padding: 0;
    align-items: baseline;
  }

  .agenda-item__badge {
    grid-column: 1 / -1;
  }

  .agenda-item__time {
    grid-column: 1;
  }

  .agenda-item__room {
    grid-column: 2;
  }

  .agenda-item__room::before {
    content: "· ";
    color: var(--muted);
  }

  .agenda-item.agenda-item--parallel {
    padding: 14px 16px 14px 20px;
  }

  .agenda-speaker strong,
  .agenda-speaker span {
    display: block;
  }

  .agenda-speaker span {
    margin-top: 2px;
  }

  .agenda-speaker span::before {
    content: none;
  }

  .agenda-campus__map {
    border-radius: 12px;
  }
}

@media (max-width: 640px) {
  .agenda-page {
    padding: 24px 0 104px;
  }

  .agenda-wrap {
    width: calc(100% - 24px);
  }

  .agenda-intro p {
    font-size: 0.92rem;
  }

  .agenda-days a {
    padding: 0 12px;
    font-size: 0.82rem;
  }

  .agenda-item {
    padding: 18px 0;
  }

  .agenda-item.agenda-item--parallel {
    padding: 14px 16px 14px 20px;
  }

  .agenda-item__title {
    font-size: 1rem;
  }

  .agenda-item__desc {
    font-size: 0.9rem;
  }

  .agenda-item--break {
    padding: 12px 0;
  }
}

@media (max-width: 360px) {
  .agenda-item__time {
    white-space: normal;
  }
}
