@import url("https://fonts.googleapis.com/css2?family=Fira+Sans:wght@500;600&family=Merriweather:wght@400;500;600&display=swap");

:root {
  color-scheme: light;
  font-family: "Merriweather", Georgia, serif;
  font-size: 14px;
  color: #333;
  background: #fff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  line-height: 1.65;
}

.lab-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  grid-template-areas: "schedule info";
  gap: 72px;
  max-width: 920px;
  margin: 100px auto;
  padding: 0 24px;
}

.lab-info {
  grid-area: info;
  position: sticky;
  top: 100px;
  align-self: start;
  font-size: 12px;
}

.lab-schedules {
  grid-area: schedule;
  min-width: 0;
}

h1,
h2 {
  font-family: "Fira Sans", sans-serif;
  color: #222;
  line-height: 1.3;
  font-weight: 600;
}

h1 {
  margin: 0 0 8px;
  font-size: 21px;
  letter-spacing: -0.6px;
}

h2 {
  margin: 30px 0 10px;
  font-size: 13px;
}

p {
  margin: 0 0 16px;
}

.affiliation,
.meeting-time {
  color: #666;
  font-size: 13px;
}

.lab-info .affiliation {
  font-size: 12px;
}

.lab-info .meeting-time {
  font-size: inherit;
}

.meeting-hours {
  white-space: nowrap;
}

.lab-schedule + .lab-schedule {
  margin-top: 48px;
}

a {
  color: #315b78;
  text-underline-offset: 3px;
}

a:hover {
  color: #17374d;
}

a:focus-visible,
summary:focus-visible {
  outline: 2px solid #315b78;
  outline-offset: 4px;
}

table {
  width: 100%;
  margin-top: 26px;
  border-collapse: collapse;
  font-size: 13px;
}

th,
td {
  padding: 11px 10px 11px 0;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #ededed;
}

th {
  color: #666;
  font-size: 11px;
  font-weight: 500;
  border-bottom-color: #d8d8d8;
}

th:first-child,
td:first-child {
  width: 76px;
  white-space: nowrap;
}

th:last-child,
td:last-child {
  width: 82px;
  padding-right: 0;
}

.about-card {
  margin-top: 32px;
  padding: 26px;
  background: #f5f6f3;
  border: 1px solid #e4e7df;
  border-radius: 22px;
}

.about-card h2:first-child {
  margin-top: 0;
}

.about-card p:last-child {
  margin-bottom: 0;
}

.term {
  font-family: "Fira Sans", sans-serif;
  margin: 0 0 10px;
  color: #647353;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

.abstract {
  margin-top: 6px;
  overflow: hidden;
}

.abstract summary,
.slides-link {
  color: #315b78;
  font-size: 11px;
  cursor: pointer;
}

.abstract summary {
  list-style: none;
  width: fit-content;
}

.abstract summary::-webkit-details-marker {
  display: none;
}

.abstract summary::before {
  content: "›";
  display: inline-block;
  margin-right: 6px;
  transition: transform 280ms ease;
}

.abstract[open] summary::before {
  transform: rotate(90deg);
}

.abstract-text {
  padding: 10px 0 4px;
  color: #555;
  font-size: 12px;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.slides-link {
  display: inline-block;
  margin-top: 6px;
}

@media (prefers-reduced-motion: reduce) {
  .abstract summary::before {
    transition: none;
  }
}

@media (max-width: 700px) {
  .lab-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "schedule" "info";
    gap: 42px;
    max-width: 500px;
    margin: 48px auto;
  }

  .lab-info {
    position: static;
  }
}
