/* News archive/list styles */
.news-page {
  width: min(calc(100% - 80px), var(--container));
  margin: 56px auto 88px;
}

.news-page__head {
  display: none;
}

.news-page__title {
  font-size: clamp(30px, 5vw, 42px);
  line-height: 1.3;
  margin: 0;
}

.news-page__category-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 28px;
  padding: 4px 0 18px;
  border-bottom: 1px solid #ece8e3;
}

.news-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-tabs__item {
  margin: 0;
  padding: 0;
}

.news-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid #e4e0db;
  border-radius: 999px;
  background: #fff;
  color: #8d9baa;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.news-tab:hover,
.news-tab.is-current {
  border-color: rgba(232, 119, 34, 0.35);
  background: rgba(232, 119, 34, 0.1);
  color: var(--orange-dark);
}

.news-page__query {
  margin: 0;
}

.news-page__posts {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-item {
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid #ece8e3;
  padding: 20px 0;
}

.news-item__meta {
  display: flex;
  gap: 14px;
  align-items: center;
  margin: 0;
  flex-shrink: 0;
}

.news-item__date {
  margin: 0;
  color: #666;
  font-size: 14px;
  letter-spacing: 0.01em;
  line-height: 1.5;
}

.news-item__date::before {
  content: "\25F7";
  display: inline-block;
  margin-right: 8px;
  font-size: 0.95em;
  color: #97a3af;
}

.news-item__category {
  margin: 0;
  font-size: 10px;
  line-height: 1;
}

.news-item__category a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: #737373;
  color: #fff;
  font-weight: 700;
}

.news-item__title {
  margin: 0;
  flex: 1;
  text-align: left;
  font-size: clamp(18px, 1.2vw, 24px);
  line-height: 1.45;
}

.news-item__title a {
  text-decoration: none;
}

.news-item__title a:hover {
  color: var(--orange-dark);
}

.news-page__empty {
  margin: 8px 0 0;
  color: #666;
}

.news-page__pagination {
  margin-top: 30px;
  gap: 8px;
}

.news-page__pagination a,
.news-page__pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #dfd7cf;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.news-page__pagination .current {
  border-color: var(--orange);
  background: var(--orange);
  color: #fff;
}

.news-single {
  width: min(calc(100% - 80px), 920px);
  margin: 56px auto 88px;
}

.news-single__inner {
  margin: 0;
}

.news-single__date {
  margin: 0 0 10px;
  color: #666;
  font-size: 14px;
}

.news-single__category {
  margin: 0 0 14px;
}

.news-single__category a {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(45, 45, 78, 0.08);
  color: #2d2d4e;
  font-size: 12px;
  font-weight: 700;
}

.news-single__title {
  margin: 0;
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.55;
}

.news-single__separator {
  margin: 22px 0 24px;
  border-color: #ece8e3;
}

.news-single__content {
  font-size: 16px;
  line-height: 2;
}

.news-single__content > * + * {
  margin-top: 1.1em;
}

.news-single__content a {
  color: var(--orange-dark);
  text-decoration: underline;
}

.news-single__back {
  margin-top: 34px;
}

.news-single__back a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid #dfd7cf;
  font-size: 13px;
  font-weight: 700;
}

.news-single__back a:hover {
  border-color: var(--orange);
  color: var(--orange-dark);
}

@media (max-width: 767px) {
  .news-page {
    width: calc(100% - 40px);
    margin: 34px auto 60px;
  }

  .news-page__category-nav,
  .news-tabs {
    gap: 14px;
  }

  .news-tab {
    min-height: 34px;
    padding: 0 12px;
    font-size: 13px;
  }

  .news-page__category-nav {
    margin-bottom: 24px;
    padding-bottom: 12px;
  }

  .news-item {
    flex-direction: column;
    align-items: flex-start;
    row-gap: 8px;
    padding: 14px 0;
  }

  .news-item__meta {
    gap: 10px;
  }

  .news-item__date {
    font-size: 13px;
  }

  .news-item__category a {
    min-width: 96px;
    min-height: 30px;
    padding: 0 10px;
  }

  .news-item__title {
    font-size: 18px;
  }

  .news-single {
    width: calc(100% - 40px);
    margin: 34px auto 60px;
  }

  .news-single__title {
    font-size: 24px;
  }

  .news-single__content {
    font-size: 15px;
  }
}
