/* イベント（events.html）。見出し・目次などは doc.css を使う。
   年表は tools/events.mjs が content/events.json から作り、「開催予定」の印は events.js が付ける */

.lab-doc.lab-events {
  max-width: 900px;
}

/* 研究室の定例のイベント */
.lab-events-regular {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin: 1.4em 0 1.6em;
  padding: 0;
  list-style: none;
}
.lab-events-regular > li {
  display: flex;
  flex-direction: column;
  background: #f7f3ef;
}
.lab-events-regular img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.lab-events-regular-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2em 0.8em;
  margin: 0;
  padding: 0.9em 1.2em 0.3em;
  color: #6c3b19;
  font-size: 1.1em;
  font-weight: 700;
  line-height: 1.6;
}
.lab-events-regular-title span {
  color: #8a6a4f;
  font-family: Vollkorn, serif;
  font-size: 0.8em;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.lab-events-regular p {
  margin: 0;
  padding: 0 1.2em 1.1em;
  font-size: 0.92em;
  line-height: 1.9;
}
.lab-events-regular .lab-events-regular-link {
  margin-top: -0.4em;
  font-size: 0.85em;
}
.lab-events-regular-link a {
  color: #6c3b19;
  text-decoration: underline;
}

/* これまでのイベント（年表） */
.lab-events-years {
  margin: 1.6em 0 0;
}
.lab-events-year + .lab-events-year {
  margin-top: 2.2em;
}
.lab-events-year-heading {
  margin: 0 0 0.4em;
  color: #6c3b19;
  font-family: Vollkorn, serif;
  font-size: 1.4em;
  font-variant-numeric: lining-nums;
  font-weight: 500;
  line-height: 1.6;
}
.lab-events-list {
  margin: 0 0 0 6px;
  padding: 0 0 0 1.4em;
  border-left: 2px solid #e3d9cf;
  list-style: none;
}
.lab-event {
  position: relative;
  padding: 0.2em 0 1.4em;
}
.lab-event:last-child {
  padding-bottom: 0.4em;
}
.lab-event::before {
  content: "";
  position: absolute;
  top: 0.65em;
  left: calc(-1.4em - 7px);
  width: 12px;
  height: 12px;
  border: 2px solid #6c3b19;
  border-radius: 50%;
  background: #fff;
}
.lab-event.-upcoming::before {
  background: #6c3b19;
}
.lab-event p {
  margin: 0;
}
.lab-event-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.3em 0.8em;
}
.lab-event-meta time {
  color: #6c3b19;
  font-family: Vollkorn, serif;
  font-size: 1.05em;
  font-variant-numeric: lining-nums;
}
.lab-event-kind {
  padding: 0 0.5em;
  border: 1px solid #c9b8a6;
  color: #6c3b19;
  font-size: 0.75em;
  line-height: 1.8;
}
.lab-event-upcoming {
  padding: 0 0.6em;
  background: #6c3b19;
  color: #fff;
  font-size: 0.75em;
  font-weight: 700;
  line-height: 1.9;
}
.lab-event-title {
  margin: 0.2em 0 0;
  font-size: 1.05em;
  font-weight: 700;
  line-height: 1.7;
}
.lab-event-place {
  color: #666;
  font-size: 0.85em;
  line-height: 1.8;
}
.lab-event-body {
  margin-top: 0.3em !important;
  font-size: 0.92em;
  line-height: 1.9;
}
.lab-event-links {
  margin: 0.3em 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.85em;
  line-height: 1.8;
}
.lab-event-links a {
  color: #6c3b19;
  text-decoration: underline;
}
.lab-events-note {
  margin-top: 2.4em;
  color: #666;
  font-size: 0.85em;
}

@media only screen and (max-width: 641px) {
  .lab-events-regular {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
}
