.download-content {
  padding-block: clamp(4.5rem, 8vw, 7.5rem);
}

.download-content__inner {
  width: 100%;
  max-width: calc(1400px + 2.5rem);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.download-content__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}

.download-content__eyebrow {
  margin: 0 0 0.75rem;
  font-size: clamp(0.875rem, 2vw, 1rem);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.08em;
  color: #e83837;
  text-transform: uppercase;
}

.download-content__title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: #151515;
}

.download-subs {
  position: relative;
  width: 100%;
  max-width: 72rem;
  margin-top: 2.75rem;
}

.download-subs__toggle {
  display: none;
}

.download-subs__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 0;
  width: 100%;
  min-height: 5rem;
  padding: 0.5rem;
  background-color: #f3f3f3;
  border-radius: 8px;
}

.download-subs__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-height: calc(5rem - 1rem);
  padding: 0 1.5rem;
  border: 0;
  border-radius: 8px;
  background-color: transparent;
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.6;
  color: #4f4f4f;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.download-subs__item:hover,
.download-subs__item:focus-visible {
  color: #111;
}

.download-subs__item:focus-visible {
  outline: 2px solid #e83837;
  outline-offset: 2px;
}

.download-subs__item.is-active,
.download-subs__item[aria-current="true"] {
  background-color: #e83837;
  color: #fff;
}

.download-types {
  align-self: stretch;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin-top: 2rem;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.download-types__track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  width: max-content;
  min-width: 100%;
  margin-inline: auto;
  padding: 6px 4px;
}

.download-types__link {
  flex: 0 0 auto;
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.32px;
  color: #3c3c3c;
  text-decoration: none;
  white-space: nowrap;
  word-break: keep-all;
  hyphens: manual;
}

.download-types__link:hover {
  color: #151515;
}

.download-types__link:focus-visible {
  outline: 2px solid #e83837;
  outline-offset: 3px;
  border-radius: 2px;
}

.download-types__link.is-active,
.download-types__link[aria-current="true"] {
  color: #e83837;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.download-types__link.is-active:hover,
.download-types__link[aria-current="true"]:hover {
  color: #e83837;
}

.download-types__sep {
  flex: 0 0 2px;
  width: 2px;
  height: 15px;
  background-color: #dedede;
}

.download-list {
  margin: 0;
  padding: 0;
  list-style: none;
  background-color: #fff;
}

.download-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 4.5rem;
  padding: 1.25rem 2.5rem 1.25rem 3.25rem;
  border-bottom: 1px solid #e3e3e3;
  background-color: #fff;
}

.download-row:first-child {
  border-top: 3px solid #e83837;
}

.download-row__no {
  flex: 0 0 3.125rem;
  width: 3.125rem;
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: #c0c0c0;
}

.download-row__title {
  flex: 1 1 auto;
  min-width: 0;
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: #151515;
  word-break: break-word;
}

.download-row__date {
  flex: 0 0 8.5rem;
  width: 8.5rem;
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  font-weight: 400;
  line-height: 1.35;
  color: #a9a9a9;
  text-align: right;
  white-space: nowrap;
}

.download-row__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  flex-shrink: 0;
  min-height: 2.625rem;
  padding: 0 1.375rem;
  border-radius: 8px;
  background-color: #111;
  color: #fff;
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.6;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.download-row__button svg {
  width: 1.5rem;
  height: 1.5rem;
}

.download-row__button:hover,
.download-row__button:focus-visible {
  background-color: #e83837;
}

.download-row__button:focus-visible {
  outline: 3px solid rgba(232, 56, 55, 0.25);
  outline-offset: 3px;
}

.download-state {
  margin: 0;
  padding: clamp(3rem, 7vw, 5rem) 1.25rem;
  border: 1px solid #d9dfe9;
  border-radius: 12px;
  background-color: #fff;
  color: #60636b;
  font-size: clamp(1rem, 2vw, 1.125rem);
  font-weight: 500;
  line-height: 1.6;
  text-align: center;
}

.download-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: clamp(4rem, 7vw, 6.25rem);
  padding-top: 12px;
}

.download-pagination__item,
.download-pagination__next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1;
  color: #474747;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.download-pagination__item:hover,
.download-pagination__item:focus-visible,
.download-pagination__next:hover,
.download-pagination__next:focus-visible {
  background-color: #f4f5f7;
  color: #e60012;
}

.download-pagination__item:focus-visible,
.download-pagination__next:focus-visible {
  outline: 2px solid rgba(232, 56, 55, 0.28);
  outline-offset: 2px;
}

.download-pagination__item.is-active {
  color: #e60012;
}

.download-pagination__next {
  margin-left: 2px;
}

.download-pagination__next img {
  display: block;
  width: 12px;
  height: 12px;
}

@media (max-width: 1024px) {
  .download-subs {
    max-width: 52rem;
  }

  .download-subs__item {
    flex: 1 1 auto;
    padding-inline: 1rem;
    font-size: 0.9375rem;
  }

  .download-row {
    gap: 1rem;
    padding: 1.125rem 1.5rem;
  }

  .download-row__date {
    flex-basis: 7rem;
    width: 7rem;
  }
}

@media (max-width: 767px) {
  .download-content {
    padding-block: 4rem;
  }

  .download-content__header {
    margin-bottom: 2rem;
    overflow: visible;
  }

  .download-subs {
    max-width: none;
    margin-top: 1.75rem;
  }

  .download-subs__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    min-height: 3.5rem;
    padding: 0 1.25rem;
    border: 0;
    border-radius: 8px;
    background-color: #f3f3f3;
    font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    color: #111;
    text-align: left;
    cursor: pointer;
  }

  .download-subs__toggle:focus-visible {
    outline: 2px solid #e83837;
    outline-offset: 2px;
  }

  .download-subs__toggle-icon {
    flex-shrink: 0;
    transition: transform 0.25s ease;
  }

  .download-subs.is-open .download-subs__toggle-icon {
    transform: rotate(180deg);
  }

  .download-subs__list {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    width: 100%;
    min-height: 0;
    max-height: 0;
    padding: 0;
    overflow: hidden;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.14);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-0.25rem);
    transition:
      max-height 0.28s ease,
      opacity 0.2s ease,
      transform 0.2s ease;
  }

  .download-subs.is-open .download-subs__list {
    max-height: 24rem;
    overflow-y: auto;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .download-subs__item {
    flex: none;
    justify-content: flex-start;
    width: 100%;
    min-height: 3.25rem;
    padding: 0.875rem 1.25rem;
    border-radius: 0;
    border-bottom: 1px solid #eee;
    font-size: 1rem;
    color: #333;
    white-space: normal;
  }

  .download-subs__item:last-child {
    border-bottom: 0;
  }

  .download-subs__item:hover,
  .download-subs__item:focus-visible {
    background-color: #f8f8f8;
    color: #e83837;
  }

  .download-subs__item.is-active,
  .download-subs__item[aria-current="true"] {
    background-color: #e83837;
    color: #fff;
  }

  .download-types {
    margin-top: 1.5rem;
  }

  .download-row {
    display: grid;
    grid-template-columns: 2.5rem minmax(0, 1fr);
    grid-template-areas:
      "no title"
      "no date"
      "button button";
    gap: 0.5rem 0.75rem;
    padding: 1.25rem 1rem;
  }

  .download-row__no {
    grid-area: no;
    width: auto;
    flex: none;
  }

  .download-row__title {
    grid-area: title;
  }

  .download-row__date {
    grid-area: date;
    width: auto;
    flex: none;
    text-align: left;
  }

  .download-row__button {
    grid-area: button;
    width: 100%;
    margin-top: 0.5rem;
  }

  .download-pagination {
    margin-top: 3rem;
  }
}
