/* Shared news presentation: homepage previews, archive and reading pages. */
.home-redesign .kh-news-section {
  justify-content: center;
  padding-block: clamp(32px, 3.2vw, 80px);
  background: #f3f4f6;
  scroll-margin-top: 132px;
}

.home-redesign .kh-news-section .kh-section-heading {
  margin-bottom: 32px;
}

.home-news-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 24px;
}

.home-news-feature,
.home-news-summary {
  min-width: 0;
  color: #17191c;
}

.home-news-image {
  display: grid;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #e5e8ec;
}

.home-news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-news-image.is-image-missing svg {
  width: 40px;
  height: 40px;
  color: #78818d;
}

.home-news-feature-copy { padding-top: 24px; }

.news-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  color: #737a83;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
}

.home-news-feature h3,
.home-news-summary h3 {
  margin: 12px 0 0;
  font-size: 23px;
  font-weight: 600;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.home-news-feature p,
.home-news-summary p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  margin: 16px 0 0;
  color: #69717b;
  font-size: 15px;
  line-height: 1.8;
}

.news-read {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  font-size: 14px;
  font-weight: 500;
}

.news-read svg { width: 20px; height: 20px; }
.home-news-summaries { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }

.home-news-summary {
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: #fff;
}

.home-news-summary h3 { display: -webkit-box; overflow: hidden; font-size: 20px; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.home-news-summary .news-read { margin-top: auto; padding-top: 24px; }
.home-news-feature:hover h3, .home-news-summary:hover h3, .news-list-row:hover h2 { color: #11659a; }

.news-page { color: #17191c; background: #fff; }
.news-wide { width: min(1180px, calc(100% - 96px)); margin-inline: auto; }

.news-masthead {
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: flex-end;
  padding: 160px 0 56px;
  color: #fff;
  background: #18232e var(--news-banner-image, url('/assets/default-media/024c0f7a350b47b2626664145306d3e1-optimized.webp')) center / cover no-repeat;
  isolation: isolate;
}

.news-masthead::before { position: absolute; inset: 0; z-index: -1; background: rgba(0, 0, 0, 0.48); content: ''; }
.news-masthead p { margin: 0 0 12px; font-size: 13px; letter-spacing: 0.14em; }
.news-masthead h1, .news-masthead h2 { margin: 0; font-size: 36px; font-weight: 600; line-height: 1.4; }
.news-breadcrumb { background: #f3f4f6; }
.news-breadcrumb .news-wide { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; min-height: 64px; padding-block: 16px; color: #737a83; font-size: 13px; }
.news-breadcrumb a { display: inline-flex; align-items: center; gap: 8px; }
.news-breadcrumb svg { width: 16px; height: 16px; }
.news-breadcrumb span[aria-current] { color: #333a43; }
.news-archive { padding-block: 64px 96px; }
.news-filters { display: flex; flex-wrap: wrap; gap: 32px; margin-bottom: 32px; border-bottom: 1px solid #e1e4e8; }
.news-filters button { padding: 0 0 16px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; color: #737a83; background: transparent; font: inherit; cursor: pointer; }
.news-filters button[aria-pressed='true'] { color: #17191c; border-bottom-color: currentColor; }
.news-list-row { display: flex; align-items: center; justify-content: space-between; gap: 48px; padding-block: 32px; border-bottom: 1px solid #e1e4e8; }
.news-list-row h2 { margin: 12px 0; font-size: 23px; font-weight: 600; line-height: 1.5; }
.news-list-row p { max-width: 900px; margin: 0; color: #69717b; font-size: 15px; line-height: 1.8; }
.news-list-arrow { flex-shrink: 0; display: grid; place-items: center; width: 40px; height: 40px; }
.news-list-arrow svg { width: 24px; height: 24px; }
.news-empty { padding: 48px 0; color: #737a83; line-height: 1.8; }
.news-detail .news-empty { min-height: 300px; }
.news-empty h1 { color: #17191c; font-size: 28px; font-weight: 600; }
.news-empty a { display: inline-flex; align-items: center; gap: 12px; margin-top: 16px; color: #11659a; }
.news-empty svg { width: 20px; height: 20px; }
.home-news-grid a:focus-visible, .news-page main a:focus-visible, .news-page main button:focus-visible { outline: 2px solid #11659a; outline-offset: 4px; }

/* Article geometry follows the reference reader, with the site's own branding. */
[data-page='news-detail'] .news-wide { width: min(1180px, calc(100% - 20px)); }
[data-page='news-detail'] .news-masthead { height: auto; aspect-ratio: 16 / 5; min-height: 0; padding: 0 3.6%; align-items: center; }
[data-page='news-detail'] .news-masthead .news-wide { width: 100%; }
[data-page='news-detail'] .news-masthead p { display: none; }
[data-page='news-detail'] .news-masthead h2 { font-size: 40px; font-weight: 700; line-height: 1.2; }
.news-category-bar { background: #eef0f3; }
.news-category-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 73px; margin: 0 3%; }
.news-category-links { display: flex; flex-shrink: 0; gap: 26px; }
.news-category-links a { min-width: 136px; padding: 10px 24px; border: 1px solid #eceef0; border-radius: 24px; color: #666; background: #fff; text-align: center; font-size: 14px; line-height: 20px; }
.news-category-links a:hover, .news-category-links a[aria-current] { color: #111; }
.news-detail-breadcrumb { display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-width: 0; color: #737d89; font-size: 12px; white-space: nowrap; }
.news-detail-breadcrumb a { display: inline-flex; gap: 6px; align-items: center; flex-shrink: 0; }
.news-detail-breadcrumb svg { width: 13px; height: 13px; }
.news-detail-breadcrumb [data-news-crumb-title] { max-width: 380px; overflow: hidden; text-overflow: ellipsis; color: #17191c; }
.news-detail { padding-block: 40px; }
.news-article-header { text-align: center; }
.news-article-header h1 { max-width: none; margin: 0 0 16px; font-size: 24px; font-weight: 700; line-height: 24px; }
.news-article-meta { position: relative; display: flex; align-items: center; justify-content: flex-start; gap: 24px; min-height: 64px; padding: 16px 0; border-block: 1px solid #f0f0f0; font-size: 14px; color: #999; }
.news-publication { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 24px; text-align: left; max-width: 44%; }
.news-publication time { white-space: nowrap; }
.news-share { position: absolute; left: 45%; top: 50%; transform: translateY(-50%); display: flex; align-items: center; gap: 10px; }
.news-share a, .news-share button { display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 50%; padding: 6px; background: #24ace9; color: white; cursor: pointer; transition: opacity 150ms; }
.news-share a:hover, .news-share button:hover { opacity: .8; }
.news-share svg { width: 100%; height: 100%; }
.news-share .share-weibo { background: #ed222a; }
.news-share .share-wechat { background: #35b436; }
.news-article-body { width: min(680px, 100%); max-width: none; margin: 16px auto 40px; font-family: Arial, 'Microsoft YaHei', sans-serif; font-size: 14px; line-height: 28px; color: #000; }
.news-article-body p, .news-article-body div { margin: 0; }
.news-article-body h2 { margin: 12px 0 4px; font-size: 20px; font-weight: 700; line-height: 28px; }
.news-article-body h3, .news-article-body h4 { margin: 12px 0 4px; font-size: 18px; font-weight: 700; line-height: 28px; }
.news-article-body ul, .news-article-body ol { margin: 0; padding-left: 24px; }
.news-article-body li { margin: 0; }
.news-article-body a { color: #11659a; text-decoration: underline; }
.news-article-body figure { margin: 16px 0; }
.news-article-body img { max-width: 100%; height: auto; }
.news-article-body blockquote { margin: 12px 0; padding-left: 16px; border-left: 2px solid #ddd; }
.news-article-pagination { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; padding: 20px 0; border-top: 1px solid #f0f0f0; }
.news-article-pagination a { display: flex; gap: 0; min-width: 0; }
.news-article-pagination a:last-child { justify-content: flex-end; }
.news-article-pagination span { font-size: 14px; font-weight: 400; line-height: 24px; color: #555; }
.news-article-pagination a span:first-child { flex-shrink: 0; }
.news-article-pagination a span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-no-adjacent:last-child { text-align: right; }
.news-related { margin: 40px 0 20px; }
.news-related > h2 { margin: 0 0 32px; font-size: 24px; font-weight: 700; text-align: center; }
.news-related > div { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.news-related a { display: block; padding: 0 0 20px; border-top: 0; border-bottom: 1px solid #eee; }
.news-related h3 { margin: 0 0 8px; font-size: 16px; font-weight: 700; line-height: 24px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-related time { display: block; margin: 8px 0; font-size: 12px; color: #999; }
.news-related p { margin: 8px 0 0; line-height: 24px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-share-feedback { position: fixed; z-index: 1000; bottom: 32px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 32px); padding: 12px 20px; border-radius: 6px; color: #fff; background: #20242b; box-shadow: 0 4px 16px #0002; font-size: 14px; }
.news-share-feedback[hidden] { display: none; }
.news-copy-field { position: fixed; top: -1000px; }

@media (max-width: 1024px) {
  .home-news-summaries { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .home-news-summary { padding: 20px; }
  .home-news-feature h3, .home-news-summary h3 { font-size: 20px; }
  .news-wide { width: calc(100% - 48px); }
}

@media (max-width: 768px) {
  .home-redesign .kh-news-section { padding-block: 64px; }
  .home-news-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .home-news-summaries { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .news-wide { width: calc(100% - 32px); }
  .news-masthead { min-height: 260px; padding-bottom: 40px; }
  .news-masthead h1, .news-masthead h2 { font-size: 30px; }
  .news-archive, .news-detail { padding-block: 40px 64px; }
  .news-list-row { gap: 16px; padding-block: 24px; }
  .news-list-row h2 { font-size: 20px; }
  .news-list-arrow { width: 24px; }

}

@media (max-width: 991px) {
  [data-page='news-detail'] .news-masthead { height: 240px; aspect-ratio: auto; align-items: flex-end; padding-bottom: 40px; }
  [data-page='news-detail'] .news-masthead h2 { font-size: 36px; }
  .news-category-inner { min-height: 64px; justify-content: center; }
  .news-category-links { gap: 12px; }
  .news-detail-breadcrumb { display: none; }
  .news-article-meta { min-height: 204px; align-items: flex-start; }
  .news-publication { grid-template-columns: minmax(0, 1fr); max-width: none; gap: 60px; line-height: 24px; }
  .news-share { left: 0; top: auto; bottom: 16px; transform: none; }
}
@media (max-width: 768px) {
  .news-detail { padding-block: 40px; }
  .news-article-body { margin: 16px auto 40px; font-size: 14px; line-height: 28px; }
  .news-article-body h2 { font-size: 20px; }
  .news-related > div { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .news-article-pagination { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .news-article-pagination a:last-child { justify-content: flex-start; }
  .news-no-adjacent:last-child { text-align: left; }
}
@media (max-width: 480px) {
  .news-related > div { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .news-share a, .news-share button { transition: none; }
}
