.event-hero {
  min-height: 390px;
  padding: 104px 4vw 58px;
  background:
    linear-gradient(90deg, rgba(251, 250, 247, 0.94), rgba(251, 250, 247, 0.78)),
    url("../assets/crop-gallery-01.jpg") center / cover;
  border-bottom: 1px solid var(--line);
}

.event-hero h1 {
  margin: 0 0 22px;
  font-family: var(--display-serif);
  font-size: 64px;
  font-weight: 500;
  line-height: 1.15;
}

.event-hero > p:last-child {
  max-width: 680px;
  color: var(--muted);
  font-size: 17px;
}

.event-tabs {
  display: flex;
  padding: 0 4vw;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.event-tabs a {
  min-width: 180px;
  padding: 22px 28px;
  border-right: 1px solid var(--line);
  text-align: center;
  font-weight: 700;
}

.event-tabs a:first-child {
  border-left: 1px solid var(--line);
}

.event-tabs a.is-active {
  color: #fff;
  background: var(--dark);
}

.event-search {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  padding: 54px 4vw;
  background: #f3efe7;
}

.status-filter,
.search-panel {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
}

.status-filter h2,
.search-panel h2 {
  margin-bottom: 18px;
  font-size: 18px;
}

.status-filter div {
  display: grid;
  gap: 10px;
}

.status-filter button,
.search-actions button,
.pagination a,
.pagination span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 16px;
  background: #fff;
}

.status-filter button.is-active,
.pagination .is-current {
  color: #fff;
  background: var(--dark);
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  margin-bottom: 10px;
  font-weight: 700;
}

fieldset label {
  display: block;
  color: var(--muted);
  line-height: 2;
}

.search-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.event-list-section,
.event-report {
  padding: 86px 4vw;
}

.event-count {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.event-empty {
  margin: 0;
  padding: 28px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
}

.event-list {
  border-top: 1px solid var(--line);
}

.event-item a {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 130px;
  gap: 28px;
  align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.event-date {
  display: grid;
  place-items: center;
  min-height: 120px;
  border: 1px solid var(--line);
  background: #fff;
}

.event-date span,
.event-date small {
  color: var(--muted);
  font-size: 12px;
}

.event-date strong {
  font-family: Georgia, serif;
  font-size: 34px;
  line-height: 1;
}

.event-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.event-tags span {
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 4px 10px;
  color: var(--accent);
  font-size: 12px;
}

.event-item h3 {
  margin-bottom: 8px;
  font-size: 22px;
}

.event-item p {
  margin: 0;
  color: var(--muted);
}

.event-arrow {
  justify-self: end;
  border: 1px solid var(--dark);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 38px;
}

.event-report {
  background: #f1eee6;
}

.report-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.report-grid article {
  background: #fff;
  border: 1px solid var(--line);
}

.report-grid div {
  aspect-ratio: 16 / 10;
  background: #e7e1d7;
  border-bottom: 1px solid var(--line);
}

.report-grid h3,
.report-grid p {
  padding-inline: 20px;
}

.report-grid h3 {
  margin: 20px 0 8px;
}

.report-grid p {
  color: var(--muted);
}

.event-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 42px;
  padding: 76px 4vw 96px;
  background: var(--paper);
}

.event-detail-main,
.event-detail-side {
  border: 1px solid var(--line);
  background: #fff;
}

.event-detail-main {
  padding: 34px;
}

.event-detail-main h2 {
  margin: 34px 0 14px;
  font-size: 24px;
}

.event-detail-main p {
  line-height: 1.9;
}

.event-detail-image {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  margin-bottom: 22px;
}

.event-detail-side {
  position: sticky;
  top: 24px;
  padding: 26px;
}

.event-detail-side h2 {
  margin: 0 0 18px;
  font-size: 22px;
}

.event-detail-side dl {
  display: grid;
  margin: 0 0 24px;
}

.event-detail-side dl div {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.event-detail-side dt {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.event-detail-side dd {
  margin: 0;
  line-height: 1.6;
}

@media (max-width: 1080px) {
  .event-search,
  .filter-grid,
  .event-item a,
  .report-grid,
  .event-detail-layout {
    grid-template-columns: 1fr;
  }

  .event-arrow {
    justify-self: start;
  }

  .event-detail-side {
    position: static;
  }
}

@media (max-width: 720px) {
  .event-hero {
    min-height: 300px;
    padding: 66px 20px 34px;
  }

  .event-hero h1 {
    font-size: 42px;
  }

  .event-tabs,
  .event-search,
  .event-list-section,
  .event-report {
    padding-inline: 20px;
  }

  .event-tabs {
    overflow-x: auto;
  }

  .event-search {
    padding-block: 34px;
  }

  .event-list-section,
  .event-report {
    padding-block: 58px;
  }

  .event-date {
    min-height: 88px;
  }

  .event-detail-layout {
    padding: 48px 20px 64px;
  }

  .event-detail-main,
  .event-detail-side {
    padding: 22px;
  }
}
