/* Page styles: news.css */

/* News detail */
.news-detail-page {
  background: #f6f5f0;
}

.news-detail-page h1,
.news-detail-page h2,
.news-detail-page h3,
.news-detail-page .display,
.news-detail-page .section-label {
  font-family: 'Syne', sans-serif;
  letter-spacing: 0;
}

.news-detail-page a {
  text-decoration: none;
}

.news-detail-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-height) + 72px) 0 78px;
  color: var(--ink-2);
  background:
    linear-gradient(90deg, rgba(7, 10, 18, 0.94) 0%, rgba(7, 10, 18, 0.78) 58%, rgba(7, 10, 18, 0.5) 100%),
    url('../images/hero-news.jpg') center / cover no-repeat;
}

.news-detail-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--blue);
}

.news-detail-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 960px;
}

.news-detail-breadcrumb {
  justify-content: flex-start;
  margin-bottom: 54px;
}

.news-detail-breadcrumb a,
.news-detail-breadcrumb span {
  color: rgba(248, 248, 245, 0.68);
}

.news-detail-breadcrumb a + a::before {
  content: '/';
  margin-right: 10px;
  color: rgba(248, 248, 245, 0.28);
}

.news-detail-hero .section-label {
  margin-bottom: 18px;
  color: rgba(248, 248, 245, 0.58);
}

.news-detail-hero .section-label::before {
  background: #8ba4d4;
}

.news-detail-title {
  max-width: 940px;
  margin: 0;
  font-family: 'Syne', sans-serif;
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.news-detail-hero p {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(248, 248, 245, 0.72);
  font-size: 17px;
  line-height: 1.72;
}

.news-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.news-detail-meta span {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 15px;
  color: rgba(248, 248, 245, 0.84);
  border: 1px solid rgba(248, 248, 245, 0.18);
  border-radius: 999px;
  background: rgba(248, 248, 245, 0.08);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.news-detail-cover-section {
  padding: 0 0 74px;
  background: linear-gradient(180deg, #10131b 0%, #10131b 42%, #f6f5f0 42%, #f6f5f0 100%);
}

.news-detail-cover {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(248, 248, 245, 0.14);
  border-radius: 6px;
  background: #10131b;
  box-shadow: 0 26px 80px rgba(14, 14, 14, 0.16);
}

.news-detail-cover img {
  width: 100%;
  height: min(62vw, 620px);
  min-height: 420px;
  object-fit: cover;
}

.news-detail-cover figcaption {
  padding: 18px 22px;
  color: rgba(248, 248, 245, 0.62);
  font-size: 13px;
  line-height: 1.65;
}

.news-detail-article-section {
  padding-top: 0;
}

.news-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 780px) minmax(260px, 320px);
  gap: 64px;
  align-items: start;
}

.news-detail-article {
  min-width: 0;
}

.news-detail-lede {
  margin: 0 0 34px;
  color: var(--ink-100);
  font-size: 1.16rem;
  line-height: 1.78;
  font-weight: 400;
}

.news-detail-article h2 {
  margin: 42px 0 16px;
  font-family: 'Syne', sans-serif;
  font-size: 2rem;
  line-height: 1.12;
}

.news-detail-article h1,
.news-detail-article h3,
.news-detail-article h4 {
  margin: 34px 0 16px;
  color: var(--ink-100);
  font-family: 'Syne', sans-serif;
  line-height: 1.18;
}

.news-detail-article h1 {
  font-size: 2.3rem;
}

.news-detail-article h3 {
  font-size: 1.45rem;
}

.news-detail-article h4 {
  font-size: 1.18rem;
}

.news-detail-article p {
  margin: 0 0 18px;
  color: var(--ink-60);
  font-size: 16px;
  line-height: 1.86;
}

.news-detail-article strong {
  color: var(--ink-100);
  font-weight: 700;
}

.news-detail-article a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.2s ease;
}

.news-detail-article a:hover {
  color: var(--blue-deep);
}

.news-detail-article a strong {
  color: inherit;
}

.news-detail-article blockquote {
  margin: 34px 0;
  padding: 28px 30px;
  color: var(--ink-100);
  border-left: 3px solid var(--blue);
  background: #fff;
  font-family: 'Syne', sans-serif;
  font-size: 1.55rem;
  line-height: 1.32;
}

.news-detail-article ul,
.news-detail-article ol {
  margin: 18px 0 24px 22px;
  color: var(--ink-60);
  font-size: 16px;
  line-height: 1.78;
}

.news-detail-article li {
  margin-bottom: 10px;
}

.news-detail-article img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 28px 0;
  border-radius: 6px;
}

.news-detail-article table {
  width: 100%;
  margin: 28px 0;
  border-collapse: collapse;
  display: block;
  overflow-x: auto;
}

.news-detail-article th,
.news-detail-article td {
  padding: 12px 14px;
  border: 1px solid rgba(14, 14, 14, 0.12);
  color: var(--ink-60);
  text-align: left;
}

.news-detail-inline-image {
  margin: 36px 0 10px;
  overflow: hidden;
  border: 1px solid rgba(14, 14, 14, 0.09);
  border-radius: 6px;
  background: #e8e8e2;
}

.news-detail-inline-image img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.news-detail-aside {
  position: sticky;
  top: calc(var(--nav-height) + 24px);
  display: grid;
  gap: 14px;
}

.news-detail-links {
  padding: 8px 0;
  border-top: 1px solid rgba(14, 14, 14, 0.1);
  border-bottom: 1px solid rgba(14, 14, 14, 0.1);
}

.news-detail-jump {
  min-height: 58px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  color: var(--ink-80);
  border-bottom: 1px solid rgba(14, 14, 14, 0.08);
  transition: color 0.2s ease, transform 0.2s ease;
}

.news-detail-jump:last-child {
  border-bottom: 0;
}

.news-detail-jump .material-symbols-rounded {
  color: var(--blue);
  font-size: 21px;
}

.news-detail-jump strong {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  line-height: 1.2;
}

.news-detail-jump:hover {
  color: var(--blue);
  transform: translateX(3px);
}

.news-detail-aside-card {
  padding: 24px;
  border: 1px solid rgba(14, 14, 14, 0.1);
  border-radius: 6px;
  background: #fff;
}

.news-detail-aside-kicker {
  display: block;
  margin-bottom: 12px;
  color: var(--blue);
  font-family: 'Syne', sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.news-detail-aside-card strong {
  display: block;
  font-family: 'Syne', sans-serif;
  font-size: 1.2rem;
  line-height: 1.18;
}

.news-detail-aside-card p {
  margin: 12px 0 0;
  color: var(--ink-60);
  font-size: 13px;
  line-height: 1.7;
}

.news-detail-point {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  color: var(--ink-80);
  font-size: 13px;
  border-top: 1px solid rgba(14, 14, 14, 0.08);
}

.news-detail-point .material-symbols-rounded {
  color: var(--blue);
  font-size: 18px;
}

.news-detail-back {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  border-radius: 6px;
  background: #111318;
  font-family: 'Syne', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  transition: background 0.2s ease, transform 0.2s ease;
}

.news-detail-back:hover {
  background: var(--blue);
  transform: translateY(-1px);
}

.news-detail-gallery-section {
  padding: 78px 0;
}

.news-detail-gallery {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 0.85fr;
  gap: 14px;
  margin-top: 22px;
}

.news-detail-gallery img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(14, 14, 14, 0.09);
}

.news-detail-gallery img:first-child {
  height: 420px;
}

.news-detail-next-section {
  padding: 74px 0;
  background: #fff;
}

.news-detail-next {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.54fr) auto;
  align-items: center;
  gap: 28px;
  padding: 34px;
  color: #fff;
  border-radius: 6px;
  background:
    linear-gradient(120deg, rgba(9, 13, 22, 0.94) 0%, rgba(22, 45, 110, 0.92) 100%),
    url('../images/news-audit.jpg') center / cover no-repeat;
}

.news-detail-next .section-label {
  margin-bottom: 12px;
  color: rgba(248, 248, 245, 0.62);
}

.news-detail-next .section-label::before {
  background: #8ba4d4;
}

.news-detail-next .display {
  max-width: 720px;
  font-size: 2.4rem;
}

.news-detail-next p {
  margin: 0;
  color: rgba(248, 248, 245, 0.68);
  font-size: 14px;
  line-height: 1.7;
}

@media (max-width: 1100px) {
  .news-detail-layout,
  .news-detail-next {
    grid-template-columns: 1fr;
  }

  .news-detail-aside {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .news-detail-back {
    grid-column: 1 / -1;
  }

  .news-detail-gallery {
    grid-template-columns: 1fr 1fr;
  }

  .news-detail-gallery img:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .news-detail-hero {
    padding: calc(var(--nav-height) + 38px) 0 52px;
  }

  .news-detail-breadcrumb {
    margin-bottom: 34px;
  }

  .news-detail-title {
    font-size: 2.35rem;
  }

  .news-detail-hero p {
    font-size: 15px;
  }

  .news-detail-cover-section {
    padding-bottom: 52px;
  }

  .news-detail-cover img {
    height: 360px;
    min-height: 0;
  }

  .news-detail-layout {
    gap: 38px;
  }

  .news-detail-lede {
    font-size: 1.18rem;
  }

  .news-detail-article h2 {
    font-size: 1.6rem;
  }

  .news-detail-article blockquote {
    padding: 22px;
    font-size: 1.22rem;
  }

  .news-detail-inline-image img {
    height: 260px;
  }

  .news-detail-aside,
  .news-detail-gallery {
    grid-template-columns: 1fr;
  }

  .news-detail-gallery img,
  .news-detail-gallery img:first-child {
    grid-column: auto;
    height: 240px;
  }

  .news-detail-next {
    padding: 26px;
  }

  .news-detail-next .display {
    font-size: 2rem;
  }
}

@media (max-width: 520px) {
  .news-detail-title {
    font-size: 2rem;
  }

  .news-detail-meta span {
    width: 100%;
    justify-content: center;
  }
}

