#main-content.news-detail {
  color: var(--brand-ink);
  background: var(--brand-white);
}

.news-detail article > header {
  padding: 9.75rem 0 clamp(2rem, 4vw, 3.5rem);
  background: radial-gradient(ellipse at top right, var(--brand-border), transparent 60%),
    linear-gradient(110deg, var(--brand-surface), var(--brand-white));
  border-bottom: 1px solid var(--brand-border);
}

.news-detail .news-shell {
  width: min(calc(100% - 2.5rem), 68rem);
  margin-inline: auto;
}

.news-detail .news-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  color: var(--brand-blue);
  font-weight: 650;
}

.news-detail .news-back:hover,
.news-detail .news-related a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.news-detail .news-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.9rem;
  margin-block: 1.25rem 0.85rem;
}

.news-detail .news-meta span {
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: var(--brand-blue);
  color: var(--brand-white);
  font-size: 0.85rem;
  font-weight: 650;
}

.news-detail time {
  color: var(--brand-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.news-detail h1 {
  font-size: clamp(1.95rem, 4vw, 3.25rem);
  line-height: 1.25;
  font-weight: 750;
  color: var(--brand-deep);
  overflow-wrap: anywhere;
}

.news-detail .news-article-copy {
  width: min(calc(100% - 2.5rem), 52rem);
  margin-inline: auto;
  padding-block: clamp(1.6rem, 4vw, 3.5rem) clamp(2.8rem, 6vw, 5.5rem);
  font-size: clamp(1rem, 0.91rem + 0.32vw, 1.125rem);
  line-height: 1.85;
  overflow-wrap: anywhere;
}

.news-detail :is(p, li, figcaption, blockquote) {
  margin: 0;
}

.news-detail .news-article-copy > * + * {
  margin-top: 1.35em;
}

.news-detail .news-article-copy h2,
.news-detail .news-related h2 {
  color: var(--brand-deep);
  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
  font-weight: 720;
  line-height: 1.4;
}

.news-detail .news-article-copy h2 {
  margin-top: 2em;
  padding-inline-start: 0.75rem;
  border-inline-start: 4px solid var(--brand-cyan);
}

.news-detail .news-article-copy ul {
  list-style: disc;
  padding-inline-start: 1.5em;
}

.news-detail .news-article-copy a {
  color: var(--brand-blue);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.news-detail figure {
  margin-inline: 0;
}

.news-detail figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--brand-radius-card);
}

.news-detail figcaption {
  margin-top: 0.55rem;
  color: var(--brand-muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.news-detail .news-related {
  padding: 2rem 0 3.5rem;
  background: var(--brand-surface);
}

.news-detail .news-related ul {
  display: grid;
  gap: 0.75rem;
  margin-block: 1rem;
}

.news-detail .news-related a {
  color: var(--brand-blue);
  text-underline-offset: 0.2em;
}

@media (width < 768px) {
  .news-detail article > header {
    padding-top: 8.25rem;
  }
}

/* 1125: 只套用於新聞文章內頁，沿用 ETICA 品牌變數。 */
#main-content.news-detail {
  padding: 9rem 0 clamp(2rem,5vw,4rem);
  background: var(--brand-surface);
}
.news-detail article {
  width: min(calc(100% - 2.5rem), 68rem);
  margin-inline: auto;
  background: var(--brand-white);
  border-radius: var(--brand-radius-card);
  overflow: hidden;
}
.news-detail article > header {
  padding: clamp(1.5rem,4vw,3rem) 0 0;
  background: none;
  border: 0;
}
.news-detail article .news-shell,
.news-detail .news-article-copy {
  width: min(calc(100% - clamp(2rem,8vw,6rem)), 56rem);
}
.news-detail h1 { font-size: clamp(1.65rem,3vw,2.65rem); }
.news-detail article h1::after {
  content: ""; display: block; width: 2.5rem; height: 3px;
  margin-top: 1rem; background: var(--brand-cyan);
}
.news-detail .news-meta { margin-block: 1.1rem .75rem; }
.news-detail .news-article-copy { padding-top: 1.5rem; }
.news-detail .news-article-copy > figure:first-child img { border-radius: 0; }
.news-detail figcaption { font-style: italic; }
.news-detail .news-related { margin-top: 1.5rem; }
.news-detail .news-share { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.news-detail .news-share a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  background: var(--brand-blue); color: var(--brand-white); font-weight: 700;
}
.news-detail .news-share a:focus-visible { outline: 2px solid var(--brand-deep); outline-offset: 3px; }
@media (width < 768px) {
  #main-content.news-detail { padding-top: 7.5rem; }
  .news-detail article { width: calc(100% - 1.25rem); }
  .news-detail article .news-shell,.news-detail .news-article-copy { width: calc(100% - 2rem); }
}
