/* Brand-only adaptations for the imported news pages. */
#news .as-news-wordmark {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

#news .l-heder__left .l-header__logo {
  width: clamp(130px, 15rem, 180px);
}

#news .l-hambergerMenu__logo {
  width: clamp(130px, 15rem, 180px);
}

#news .l-footer__logo {
  aspect-ratio: 1;
}

#news .as-news-shuffle-rocket {
  display: inline-block;
  width: 0.92em;
  height: 0.92em;
  margin-inline: 0.02em;
  vertical-align: -0.12em;
  background: url("/assets/img/custom/rocket.gif") center / contain no-repeat;
  image-rendering: pixelated;
  transform: rotate(90deg);
}

/* 新闻详情：当默认封面区域被隐藏时，收掉原版为封面预留的大空白。 */
#news-post .p-news-post__article__img[hidden] {
  display: none !important;
}

#news-post .p-news-post__article__img {
  display: none !important;
}

/* Keep the detail card aligned with the original news-post surface. */
#news-post .p-news-post__article {
  background-color: #f7f7f7;
}

#news-post .p-news-post__article__inner:has(.p-news-post__article__img[hidden]) {
  padding-top: 3rem;
}

#news-post .p-news-post__article.as-news-post--without-cover .p-news-post__article__inner {
  padding-top: 3rem;
}

#news-post .p-news-post__article__img[hidden] + .p-news-post__article__content {
  margin-top: 2rem;
}

#news-post
  .p-news-post__article.as-news-post--without-cover
  .p-news-post__article__content {
  margin-top: 2rem;
}

@media screen and (max-width: 768px) {
  #news .l-heder__left .l-header__logo,
  #news .l-hambergerMenu__logo {
    width: 13rem;
  }

  #news-post .p-news-post__article__inner:has(.p-news-post__article__img[hidden]) {
    padding-top: 2rem;
  }

  #news-post .p-news-post__article.as-news-post--without-cover .p-news-post__article__inner {
    padding-top: 2rem;
  }

  #news-post .p-news-post__article__img[hidden] + .p-news-post__article__content {
    margin-top: 1.5rem;
  }

  #news-post
    .p-news-post__article.as-news-post--without-cover
    .p-news-post__article__content {
    margin-top: 1.5rem;
  }
}
