html,
body {
  height: 100%;
}
main {
  height: calc(100% - var(--header-height));
  display: flex;
  flex-direction: column;
}
header #login-btn {
  position: absolute;
  top: 0;
  right: 0;
  width: 5.7rem;
  height: 100%;
}

#tab-nav {
  position: relative;
  width: 100%;
  padding: 0 1.8rem;
  display: flex;
  justify-content: center;
  align-items: center;
}
#tab-nav::after {
  content: "";
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0.05rem;
  background-color: #afafaf;
}

#tab-nav .tab {
  position: relative;
  width: 100%;
  height: 100%;
  line-height: 4.4rem;
  text-align: center;
  color: #111;
  font-size: 1.4rem;
  font-weight: 400;
}
#tab-nav .tab.is-active {
  color: #ff6712;
  font-weight: 600;
}
#tab-nav .tab.is-active::after {
  content: "";
  display: block;
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 0.15rem;
  background-color: #ff6712;
  z-index: 2;
}

#event-list-wrap {
  margin-top: 0.8rem;
  padding-bottom: 3rem;
  display: flex;
  justify-content: center;
  flex: 1;
}
#event-list-wrap #event-list {
  width: 100%;
}
#event-list-wrap .event-item {
  padding: 1.6rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  border-bottom: 1px solid #e5e5e5;
}
#event-list-wrap .event-item .event-title {
  overflow: hidden;
  width: 100%;
  max-height: 2.4rem;
  -webkit-line-clamp: 2; /* 2줄에서 말줄임표 적용 */
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
  font-size: 1.6rem;
  line-height: 2.4rem;
  color: #111;
  font-family: "Pretendard";
  font-style: normal;
  font-weight: 600;
  white-space: nowrap;
}
#event-list-wrap .event-item .event-period {
  color: #aaa;
  font-family: "Pretendard";
  font-size: 1.4rem;
  font-style: normal;
  font-weight: 400;
  line-height: 1.3; /* 128.571% */
}
#event-list-wrap .wrapper[data-status="END"] .event-item .event-title {
  color: #888;
}

#event-list-wrap .wrapper .event-list-tab-content {
  display: none;
  height: 100%;
}
#event-list-wrap .wrapper[data-status="ING"] .event-list-tab-content[data-tab="ING"] {
  display: block;
}
#event-list-wrap .wrapper[data-status="END"] .event-list-tab-content[data-tab="END"] {
  display: block;
}

#no-data {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;
  height: 100%;
  color: #888;
  text-align: center;
  font-family: "Pretendard";
  font-size: 1.6rem;
  font-style: normal;
  font-weight: 600;
  line-height: 1.5;
}
#no-data img {
  margin: 0 auto;
  width: 4.8rem;
}
