.news-page,
.article-page {
  background: var(--paper);
}

.page-template-page-news .site-header,
.single-post .site-header {
  position: sticky;
  top: 0;
  background: #0b141d;
}

.news-hero,
.article-page-header {
  position: relative;
  overflow: hidden;
  padding: 68px 0 58px;
  color: white;
  background:
    linear-gradient(90deg, rgba(11, 20, 29, .97), rgba(11, 20, 29, .76)),
    url("assets/images/hero.webp") center 42% / cover;
}

.news-hero::after,
.article-page-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--coral) 0 34%, var(--orange) 34% 68%, var(--sky) 68%);
}

.news-breadcrumb {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  color: #aeb9c1;
  font-size: 13px;
}

.news-breadcrumb a:hover {
  color: var(--orange);
}

.news-hero-kicker {
  position: relative;
  z-index: 2;
  display: block;
  margin-bottom: 12px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .14em;
}

.news-hero h1,
.article-page-header h1 {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin-bottom: 14px;
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1.12;
}

.news-hero p {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin-bottom: 0;
  color: #bdc8cf;
  font-size: 17px;
}

.news-content {
  padding: 58px 0 84px;
}

.news-page .news-layout,
.article-page .article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 40px;
  align-items: start;
}

.news-results-bar {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 17px;
  padding: 0 3px 14px;
  border-bottom: 3px solid var(--ink);
}

.news-results-bar strong {
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 25px;
}

.news-results-bar span {
  color: var(--muted);
  font-size: 12px;
}

.news-list {
  display: grid;
  gap: 16px;
}

.news-row {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) 52px;
  gap: 23px;
  align-items: center;
  padding: 15px;
  background: var(--white);
  border: 1px solid var(--line);
  transition: transform .2s ease, box-shadow .2s ease;
}

.news-row:hover {
  transform: translateY(-2px);
  box-shadow: 8px 8px 0 rgba(242, 102, 73, .14);
}

.news-row-image {
  display: block;
  overflow: hidden;
  background: var(--paper-2);
}

.news-row-image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform .35s ease;
}

.news-row:hover .news-row-image img {
  transform: scale(1.035);
}

.news-row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
}

.news-row-meta span {
  color: var(--coral);
  font-weight: 800;
}

.news-row-title {
  margin-bottom: 8px;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 22px;
  line-height: 1.42;
}

.news-row-title a:hover {
  color: var(--coral);
}

.news-row-copy p {
  display: -webkit-box;
  margin-bottom: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.62;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.news-row-arrow {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--coral);
  border-radius: 50%;
  font-size: 19px;
  font-weight: 850;
  transition: transform .2s ease;
}

.news-row:hover .news-row-arrow {
  transform: translateX(3px);
}

.news-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 31px;
}

.news-pagination .page-numbers {
  min-width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 800;
}

.news-pagination .page-numbers.current,
.news-pagination .page-numbers:hover {
  color: white;
  background: var(--coral);
  border-color: var(--coral);
}

.news-sidebar,
.article-sidebar {
  position: sticky;
  top: 96px;
}

.sidebar-panel {
  margin-bottom: 19px;
  padding: 25px;
  background: var(--white);
  border: 1px solid var(--line);
}

.sidebar-panel h3 {
  margin-bottom: 19px;
  padding-bottom: 13px;
  border-bottom: 3px solid var(--orange);
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 18px;
}

.sidebar-post-list {
  display: grid;
  gap: 15px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.sidebar-post-list li {
  display: grid;
  grid-template-columns: 29px 1fr;
  gap: 10px;
}

.sidebar-post-list span {
  color: var(--coral);
  font-family: Georgia, serif;
  font-size: 13px;
  font-weight: 800;
}

.sidebar-post-list a {
  color: #4d5a64;
  font-size: 14px;
  line-height: 1.6;
}

.sidebar-post-list a:hover {
  color: var(--coral);
}

.sidebar-category-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.sidebar-category-list li {
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.sidebar-category-list li:last-child {
  border-bottom: 0;
}

.sidebar-category-list a {
  color: var(--muted);
  font-size: 14px;
}

.sidebar-note {
  color: white;
  background: var(--ink);
  border-color: var(--ink);
}

.sidebar-note strong {
  display: block;
  margin-bottom: 8px;
  color: var(--orange);
}

.sidebar-note p {
  margin-bottom: 0;
  color: #b9c4cb;
  font-size: 13px;
}

.news-empty {
  padding: 50px;
  background: var(--white);
  border: 1px solid var(--line);
  text-align: center;
}

.article-page-meta {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: 15px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 800;
}

.article-page-lead {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin-bottom: 0;
  color: #c1ccd3;
  font-size: 17px;
}

.article-layout {
  padding-top: 49px;
  padding-bottom: 85px;
}

.article-main {
  min-width: 0;
}

.article-featured {
  margin: 0 0 35px;
  overflow: hidden;
  background: var(--paper-2);
  border: 1px solid var(--line);
}

.article-featured img {
  width: 100%;
  max-height: 620px;
  object-fit: cover;
}

.article-content {
  padding: 44px 50px;
  color: #34434d;
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 17px;
  line-height: 1.92;
}

.article-content > *:first-child {
  margin-top: 0;
}

.article-content > *:last-child {
  margin-bottom: 0;
}

.article-content h2 {
  margin: 44px 0 15px;
  padding-bottom: 11px;
  border-bottom: 3px solid var(--coral);
  font-size: 29px;
}

.article-content h3 {
  margin: 33px 0 11px;
  color: var(--coral);
  font-size: 21px;
}

.article-content p,
.article-content li {
  color: #52616b;
}

.article-content ul,
.article-content ol {
  padding-left: 23px;
}

.article-content img {
  margin: 26px auto;
}

.article-content blockquote {
  margin: 31px 0;
  padding: 21px 25px;
  color: var(--ink);
  background: var(--paper-2);
  border-left: 5px solid var(--orange);
}

.post-navigation {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  margin-top: 29px;
}

.post-nav-item,
.post-nav-index {
  min-height: 88px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px 21px;
  background: var(--white);
  border: 1px solid var(--line);
}

.post-nav-item span {
  margin-bottom: 5px;
  color: var(--coral);
  font-size: 11px;
  font-weight: 850;
}

.post-nav-item a {
  display: -webkit-box;
  overflow: hidden;
  font-size: 14px;
  font-weight: 750;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.post-nav-next {
  text-align: right;
}

.post-nav-index {
  align-items: center;
  color: white;
  background: var(--coral);
  border-color: var(--coral);
  font-size: 13px;
  font-weight: 850;
}

.related-articles {
  margin-top: 44px;
}

.related-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.related-heading h2 {
  margin: 0;
  font-size: 29px;
}

.related-heading a {
  color: var(--coral);
  font-size: 13px;
  font-weight: 800;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.related-card {
  padding: 21px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--orange);
}

.related-card time {
  display: block;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 11px;
}

.related-card h3 {
  margin: 0;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 16px;
  line-height: 1.55;
}

.related-card h3 a:hover {
  color: var(--coral);
}

.article-toc-note p {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 980px) {
  .news-page .news-layout,
  .article-page .article-layout {
    grid-template-columns: 1fr;
  }

  .news-sidebar,
  .article-sidebar {
    position: static;
  }
}

@media (max-width: 700px) {
  .news-hero,
  .article-page-header {
    padding: 46px 0 42px;
  }

  .news-content {
    padding: 38px 0 58px;
  }

  .news-results-bar {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .news-row {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
  }

  .news-row-title {
    font-size: 17px;
  }

  .news-row-copy p,
  .news-row-arrow {
    display: none;
  }

  .article-layout {
    padding-top: 30px;
  }

  .article-content {
    padding: 29px 22px;
    font-size: 16px;
  }

  .article-content h2 {
    font-size: 24px;
  }

  .post-navigation {
    grid-template-columns: 1fr;
  }

  .post-nav-next {
    text-align: left;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }
}
