:root {
  color-scheme: light;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1f2933;
  background: #fff;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background: #fff;
}

main {
  width: min(100% - 2rem, 52rem);
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.catalog-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #d8dee3;
}

h1 {
  margin: 0;
  color: #17222b;
  font-size: clamp(1.7rem, 4vw, 2.25rem);
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.legend {
  margin: 0.45rem 0 0;
  color: #697782;
  font-size: 0.78rem;
}

.search {
  flex: 0 1 14rem;
}

.talks {
  padding: 1rem 0;
  border-bottom: 1px solid #d8dee3;
}

.talks h2 {
  margin: 0 0 0.4rem;
  color: #52606b;
  font-size: 0.75rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.talk-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.talk-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.talk-table th,
.talk-table td {
  padding: 0.55rem 1rem 0.55rem 0;
  border-bottom: 1px solid #e6eaee;
  text-align: left;
  vertical-align: top;
}

.talk-table tbody tr:last-child td {
  border-bottom: none;
}

.talk-table th {
  color: #52606b;
  font-size: 0.78rem;
  font-weight: 650;
}

.talk-table td:first-child,
.talk-table td:nth-child(2) {
  white-space: nowrap;
}

.talk-table a {
  color: #235f91;
  text-decoration: underline;
  text-decoration-color: rgba(35, 95, 145, 0.35);
  text-underline-offset: 0.15em;
}

.talk-table a:hover {
  color: #17466d;
  text-decoration-color: currentColor;
}

.talk-link {
  color: #17222b;
  font-weight: 650;
  text-decoration: none;
}

.talk-link:hover {
  text-decoration: underline;
}

.back-link {
  display: inline-block;
  margin-bottom: 0.6rem;
  color: #697782;
  font-size: 0.8rem;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

.present-link {
  align-self: center;
  padding: 0.55rem 1rem;
  border-radius: 0.5rem;
  background: #17222b;
  color: #ffffff;
  font-weight: 650;
  text-decoration: none;
}

.talk-outline .catalog-item {
  grid-template-columns: 2.2rem 1fr 1.6rem 12rem;
}

.talk-part h2 {
  margin: 1.4rem 0 0.5rem;
  color: #52606b;
  font-size: 0.75rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.talk-available .catalog-item {
  grid-template-columns: 1fr 1.6rem 12rem;
  padding-left: calc(0.8rem + 2.2rem + 0.45rem);
}

.legend-swatch {
  display: inline-block;
  margin: 0 0.35rem 0.25rem 0;
  padding: 0.12rem 0.5rem;
  border-radius: 0.3rem;
  background: var(--category-tint, transparent);
  color: #405249;
}

.slide-ticks {
  color: #8a97a1;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.slide-count {
  justify-self: end;
  color: #697782;
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}

.talk-page {
  max-width: 44rem;
  padding: 0.5rem 0 1rem;
  color: #2b3740;
  line-height: 1.55;
}

.talk-page h2 {
  margin: 1.6rem 0 0.4rem;
  color: #17222b;
  font-size: 1.05rem;
}

.talk-page ul {
  margin: 0;
  padding-left: 1.3rem;
}

.talk-page li {
  margin: 0.15rem 0;
}

.talk-page a {
  color: #235f91;
  text-decoration: underline;
  text-decoration-color: rgba(35, 95, 145, 0.35);
  text-underline-offset: 0.15em;
}

.talk-page p {
  margin: 0.6rem 0;
}

.speaker {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  margin-top: 1.6rem;
}

.speaker h2 {
  margin-top: 0;
}

.speaker-photo {
  flex: 0 0 auto;
  width: 7rem;
  height: 7rem;
  border-radius: 50%;
  object-fit: cover;
}

.talk-map-note {
  margin: 1.6rem 0 0.5rem;
  font-size: 0.95rem;
}

.talk-map {
  --map-width: min(66rem, calc(100vw - 2rem));
  display: block;
  width: var(--map-width);
  max-width: none;
  margin: 0 0 0.4rem calc((100% - var(--map-width)) / 2);
  border: 1px solid #d8dee3;
  border-radius: 0.4rem;
}

.legend a {
  color: inherit;
}

.release-mark {
  margin-top: 2rem;
  color: #697782;
  font-size: 0.8rem;
  text-align: right;
}

.slide-number {
  color: #697782;
  font-size: 0.8rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.search span {
  display: block;
  margin-bottom: 0.3rem;
  color: #52606b;
  font-size: 0.75rem;
  font-weight: 650;
}

input[type="search"] {
  width: 100%;
  padding: 0.52rem 0.65rem;
  border: 1px solid #b8c2ca;
  border-radius: 0.4rem;
  outline: none;
  background: #fff;
  color: #17222b;
  font: inherit;
  font-size: 0.9rem;
}

input[type="search"]:focus {
  border-color: #4474a0;
  box-shadow: 0 0 0 3px rgba(68, 116, 160, 0.15);
}

.catalog-list {
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}

.catalog-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 0.45rem;
  margin-bottom: 0.2rem;
  padding: 0.72rem 0.8rem;
  border-radius: 0.4rem;
  background: var(--category-tint, transparent);
}

.deck-link {
  width: fit-content;
  color: #235f91;
  font-size: 1rem;
  font-weight: 580;
  line-height: 1.45;
  text-decoration: underline;
  text-decoration-color: rgba(35, 95, 145, 0.38);
  text-underline-offset: 3px;
}

.deck-link:hover {
  color: #17466d;
  text-decoration-color: currentColor;
}

.deck-link:focus-visible {
  border-radius: 3px;
  outline: 3px solid rgba(68, 116, 160, 0.22);
  outline-offset: 3px;
}

#empty-state {
  margin: 1.5rem 0;
  color: #697782;
  font-size: 0.9rem;
}

[hidden] {
  display: none !important;
}

@media (max-width: 38rem) {
  main {
    padding-top: 3.25rem;
  }

  .talk-table thead {
    display: none;
  }

  .talk-table,
  .talk-table tbody,
  .talk-table tr,
  .talk-table td {
    display: block;
  }

  .talk-table tr {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid #e6eaee;
  }

  .talk-table tbody tr:last-child {
    border-bottom: none;
  }

  .talk-table td {
    padding: 0;
    border-bottom: none;
    white-space: normal;
  }

  .talk-table td:last-child {
    order: -1;
    font-size: 1.15rem;
    line-height: 1.3;
  }

  .talk-table td:first-child,
  .talk-table td:nth-child(2) {
    color: #52606b;
    font-size: 0.9rem;
  }

  .talk-outline .catalog-item {
    grid-template-columns: 2.2rem 1fr auto;
  }

  .talk-available .catalog-item {
    grid-template-columns: 1fr auto;
  }

  .slide-ticks {
    display: none;
  }

  .speaker {
    flex-direction: column;
    gap: 0.6rem;
  }

  .speaker-photo {
    width: 5.5rem;
    height: 5.5rem;
  }

  .catalog-header {
    align-items: stretch;
    flex-direction: column;
    gap: 0.8rem;
  }

  .search {
    flex-basis: auto;
  }
}
