/* news: list */
.news-notice-list {
  min-width: 0;
  margin: var(--space-none);
  padding: var(--space-none);
  list-style: none;
  border-top: 1px solid var(--color-border-strong);
  border-bottom: 1px solid var(--color-border-strong);
}

.news-notice-item {
  display: flex;
  align-items: center;
  gap: var(--space-content-gap);
  padding: var(--space-content-gap) var(--space-none);
  color: inherit;
  text-decoration: none;
}

.news-notice-item + .news-notice-item,
.news-notice-list > li + li {
  border-top: 1px solid var(--color-border);
}

.news-notice-main {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: var(--space-comp-gap);
}

.news-notice-head {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-comp-gap);
  flex: none;
}

.news-notice-badge-wrap {
  width: 120px;
  display: inline-flex;
  align-items: center;
}

.news-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-control-badge-y) var(--space-control-badge-x);
  background: var(--color-bg-muted);
  color: var(--color-text);
  font-size: var(--typo-caption-size);
  line-height: var(--typo-body-line);
  font-weight: var(--typo-body-weight);
  white-space: nowrap;
}

.news-title {
  flex: 0 1 auto;
  min-width: 0;
  margin: var(--space-none);
  font-size: var(--typo-lead-size);
  line-height: var(--typo-body-line);
  font-weight: var(--typo-body-weight);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.news-title-row,
.news-input-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: var(--space-content-sm);
}

.news-title:hover,
.news-notice-item:hover .news-title,
.news-page .news-card:hover .news-card-title {
  color: var(--color-text-link-hover);
}

.news-flag {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-control-badge-y) var(--space-control-badge-x);
  border: 1px solid var(--color-border-brand);
  color: var(--color-brand);
  font-size: var(--typo-caption-size);
  line-height: var(--typo-body-line);
  font-weight: var(--typo-body-weight);
  white-space: nowrap;
}

.news-date {
  margin: var(--space-none);
  width: 160px;
  flex: none;
  text-align: center;
  color: var(--color-text-muted);
  font-size: var(--typo-body-size);
  line-height: var(--typo-body-line);
  font-weight: var(--typo-body-weight);
}

.news-board,
.news-list {
  min-width: 0;
  display: grid;
  gap: var(--space-content-gap);
}

.news-search-row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-comp-gap);
}

.news-select-wrap {
  width: 180px;
  display: block;
}

.news-select + .select2-container.news-select2 {
  width: 180px !important;
  display: block;
}

.news-input {
  flex: 1;
  min-width: 0;
}

.news-search-btn {
  width: 120px;
}

.news-total {
  margin: var(--space-none);
  color: var(--color-text);
  font-size: var(--typo-body-size);
  line-height: var(--typo-body-line);
  font-weight: var(--typo-body-weight);
}

.news-total span {
  color: var(--color-brand);
}

.news-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-content-gap);
}

.news-card {
  --card-shortcut-color: var(--color-brand);
  min-width: 0;
  min-height: 420px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-panel);
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease;
}

.news-card:hover {
  --card-shortcut-color: var(--color-text-link-hover);
  border-color: var(--color-text-link-hover);
}

.news-card-link {
  flex: 1;
  min-width: 0;
  padding: var(--space-comp-pad-lg);
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-content-gap);
}

.news-card-body {
  display: grid;
  gap: var(--space-content-gap);
}

.news-card-heading {
  display: grid;
  gap: var(--space-content-sm);
}

.news-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-comp-gap);
}

.news-card-title {
  margin: var(--space-none);
  color: var(--color-text);
  font-size: var(--typo-lead-size);
  line-height: var(--typo-body-line);
  font-weight: var(--typo-body-weight);
  transition: color 0.2s ease;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-desc {
  margin: var(--space-none);
  color: var(--color-text-muted);
  font-size: var(--typo-body-size);
  line-height: var(--typo-body-line);
  font-weight: var(--typo-body-weight);
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.news-card-date {
  color: var(--color-text-muted);
  font-size: var(--typo-body-sm-size);
  line-height: var(--typo-body-line);
  font-weight: var(--typo-body-weight);
}

.news-card-arrow {
  overflow: hidden;
  font-size: 0;
  line-height: 0;
}

/* news: detail */
.news-detail-content {
  display: grid;
  gap: var(--space-page-section-lg);
}

.news-detail-main,
.news-detail-article {
  display: grid;
  gap: var(--space-content-xl);
}

.news-detail-header {
  display: grid;
  gap: var(--space-comp-gap);
  border-bottom: 1px solid var(--color-border-strong);
  padding-bottom: var(--space-content-gap);
}

.news-detail-badge {
  width: fit-content;
  padding: var(--space-control-badge-y) var(--space-control-badge-x);
  background: var(--color-bg-muted);
  color: var(--color-text);
  font-size: var(--typo-body-sm-size);
  line-height: var(--typo-body-line);
}

.news-detail-title {
  margin: var(--space-none);
  color: var(--color-text);
  font-size: var(--typo-section-title-size);
  line-height: var(--typo-body-line);
  font-weight: var(--typo-head-weight);
}

.news-detail-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-content-group);
}

.news-detail-date {
  margin: var(--space-none);
  color: var(--color-text-muted);
  font-size: var(--typo-body-size);
  line-height: var(--typo-body-line);
}

.news-detail-share {
  width: 40px;
  height: 40px;
  border: 0;
  background: url("../images/common/btn-open-window.svg") center / 24px 24px no-repeat;
  padding: var(--space-none);
}

.news-detail-body {
  display: grid;
  gap: var(--space-none);
}

.news-detail-body p {
  margin: var(--space-none);
  color: var(--color-text);
  font-size: var(--typo-body-size);
  line-height: var(--typo-body-line);
  white-space: normal;
}

.news-detail-files-title {
  margin: var(--space-none);
  color: var(--color-text);
  font-size: var(--typo-body-size);
  line-height: var(--typo-body-line);
  font-weight: var(--typo-head-weight);
}

@media (max-width: 1023.98px) {
  .news-notice-item {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-content-gap);
  }

  .news-notice-main {
    width: 100%;
    display: grid;
    align-items: start;
  }

  .news-notice-head {
    justify-content: space-between;
  }

  .news-notice-badge-wrap {
    width: auto;
  }

  .news-title {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .news-date {
    width: auto;
    text-align: left;
    font-size: var(--typo-body-lg-size);
  }

  .news-search-row {
    display: grid;
    gap: var(--space-comp-gap);
  }

  .news-board {
    gap: var(--space-content-xl);
  }

  .news-select-wrap {
    width: 180px;
  }

  .news-input-wrap {
    width: 100%;
  }

  .news-input {
    font-size: var(--typo-body-lg-size);
  }

  .news-total {
    font-size: var(--typo-body-lg-size);
  }

  .news-grid {
    grid-template-columns: 1fr;
    gap: var(--space-content-gap);
  }

  .news-card {
    min-height: 420px;
  }

  .news-card-link {
    padding: var(--space-comp-pad-lg);
  }

  .news-card-title {
    font-size: var(--typo-lead-size);
  }

  .news-card-desc {
    font-size: var(--typo-body-lg-size);
  }

  .news-card-date {
    font-size: var(--typo-body-mo-size);
  }

  .news-detail-content {
    padding-top: var(--space-page-top-lg);
    font-family: var(--typo-body-family);
  }

  .news-detail-main {
    gap: var(--space-content-xl);
  }

  .news-detail-back {
    font-size: var(--typo-body-mo-size);
  }

  .news-detail-title {
    font-size: var(--typo-section-title-mo-size);
  }

  .news-detail-date,
  .news-detail-body p,
  .news-detail-files-title {
    font-size: var(--typo-body-lg-size);
  }
}

@media (min-width: 767px) and (max-width: 1023.98px) {
  .news-notice-item {
    flex-direction: row;
    align-items: center;
    gap: var(--space-content-gap);
  }

  .news-notice-main {
    width: auto;
    display: flex;
    align-items: center;
    gap: var(--space-comp-gap);
  }

  .news-notice-head {
    justify-content: flex-start;
  }

  .news-notice-badge-wrap {
    width: 120px;
  }

  .news-title {
    display: block;
    white-space: nowrap;
    -webkit-line-clamp: unset;
    -webkit-box-orient: initial;
  }

  .news-date {
    width: 160px;
    text-align: center;
    font-size: var(--typo-body-size);
  }

  .news-search-row {
    display: flex;
    align-items: flex-start;
    gap: var(--space-comp-gap);
  }

  .news-board {
    gap: var(--space-content-gap);
  }

  .news-input-wrap {
    width: auto;
  }

  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .news-card-desc {
    font-size: var(--typo-body-size);
  }

  .news-card-date {
    font-size: var(--typo-body-sm-size);
  }
}
