/* article.css — article detail page styles */

/* 2-column grid */
.article-grid { display: grid; grid-template-columns: 1fr 300px; gap: 2.5rem; align-items: start; }
.article-grid__sidebar { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 1.5rem; }

/* Article header */
.article-header { border-bottom: 1px solid var(--gray-e); margin-bottom: 1.5rem; padding-bottom: 1rem; }
.article-kicker { font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--red); margin-bottom: .6rem; }
.article-title { font-size: 1.7rem; font-weight: 800; line-height: 1.3; margin-bottom: 1rem; word-break: keep-all; }
.article-meta { display: flex; align-items: center; gap: .5rem; font-size: .8rem; color: var(--gray-6); }
.article-author { display: flex; align-items: center; gap: .3rem; font-weight: 600; color: var(--black); }
.article-date { color: var(--gray-9); }
.article-sep { color: var(--gray-c); }
.article-header__divider { display: none; }

/* Summary (lead) — hidden: summary is redundant with article body */
.article-summary { display: none; }

/* Hero image */
.article-figure { margin: 0 0 1.75rem; }
.article-figure img { width: 100%; height: auto; object-fit: contain; display: block; border-radius: 4px; }

/* Article body content */
.article-content { font-size: 1rem; line-height: 1.85; color: #222; word-break: keep-all; }
.article-content p { margin-bottom: 1.1rem; }
.article-content h2 { font-size: 1.2rem; font-weight: 700; margin: 2rem 0 .8rem; border-bottom: 2px solid var(--gray-e); padding-bottom: .4rem; }
.article-content h3 { font-size: 1.05rem; font-weight: 700; margin: 1.5rem 0 .6rem; }
.article-content ul, .article-content ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }
.article-content li { margin-bottom: .35rem; }
.article-content blockquote { border-left: 3px solid var(--red); padding: .6rem 1rem; margin: 1.25rem 0; color: #555; background: #f9f9f9; border-radius: 0 4px 4px 0; }
.article-content img { max-width: 100%; height: auto; display: block; margin: 1rem auto; border-radius: 4px; }
.article-content .images_column { display: none !important; }
.article-content .column_image { margin-bottom: 1rem; }
.article-content .column_image img { max-width: 100%; }
/* Hide newswire download/enlarge UI */
.article-content .img-act { display: none; }
.article-content a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }

/* Share bar */
.article-share { display: flex; align-items: center; gap: .6rem; padding: 1.25rem 0; border-top: 1px solid var(--gray-e); border-bottom: 1px solid var(--gray-e); margin: 2rem 0 1.25rem; }
.article-share__label { font-size: .78rem; font-weight: 700; color: var(--gray-6); margin-right: .25rem; }
.article-share__btn { display: inline-flex; align-items: center; gap: .35rem; font-size: .78rem; font-weight: 600; padding: .4rem .85rem; border: 1.5px solid var(--gray-c); border-radius: 20px; transition: all var(--transition); background: #fff; cursor: pointer; }
.article-share__btn:hover { border-color: var(--black); background: var(--black); color: #fff; }
.article-share__btn--x:hover { border-color: #000; background: #000; color: #fff; }
.article-share__btn--kakao:hover { border-color: #fee500; background: #fee500; color: #3b1e08; }

/* Source link */
.article-source { font-size: .78rem; color: var(--gray-9); display: flex; align-items: center; gap: .35rem; margin-bottom: 1rem; }
.article-source a { color: var(--gray-6); text-decoration: underline; text-underline-offset: 2px; }

/* Related articles */
.article-related { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 2px solid var(--black); }
.article-related__title { font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1rem; }
.related-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.related-card { border: 1px solid var(--gray-e); border-radius: 4px; overflow: hidden; }
.related-card__img { display: block; overflow: hidden; }
.related-card__img img { width: 100%; height: auto; object-fit: contain; transition: transform .3s; display: block; }
.related-card__img:hover img { transform: scale(1.04); }
.related-card__body { padding: .7rem; }
.related-card__cat { font-size: .62rem; font-weight: 800; color: var(--red); letter-spacing: .06em; text-transform: uppercase; margin-bottom: .3rem; }
.related-card__title { font-size: .82rem; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.related-card__title a:hover { color: var(--red); }

/* Ad slot */
.widget--ad .widget__head { background: var(--gray-9); }
.ad-slot { padding: 0; }
.ad-wrap { position: relative; line-height: 0; }
.ad-image-link { display: block; }
.ad-image { width: 100%; height: auto; display: block; }
.ad-badge { position: absolute; top: 6px; right: 6px; background: rgba(0,0,0,.45); color: #fff; font-size: .6rem; font-weight: 700; letter-spacing: .04em; padding: 2px 6px; border-radius: 20px; line-height: 1.6; pointer-events: none; }
.ad-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; aspect-ratio: 1/1; background: var(--gray-f5); border: 1px dashed var(--gray-c); border-radius: 4px; color: var(--gray-9); gap: .3rem; }
.ad-placeholder span { font-size: .85rem; font-weight: 600; }
.ad-placeholder small { font-size: .72rem; }

/* Responsive */
@media (max-width: 768px) {
  .article-grid { grid-template-columns: 1fr; }
  .article-grid__sidebar { position: static; }
  .related-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .article-title { font-size: 1.35rem; }
  .related-list { grid-template-columns: 1fr; }
  .article-share { flex-wrap: wrap; }
}

/* 편집자 해설 박스 */
.editorial-note {
  background: #f0f6ff;
  border-left: 4px solid #1a6fd4;
  border-radius: 0 6px 6px 0;
  padding: .85rem 1.1rem;
  margin: 0 0 1.4rem;
  font-size: .92rem;
  line-height: 1.7;
  color: #1e3a5f;
}
.editorial-note strong {
  display: inline-block;
  margin-right: .4rem;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #1a6fd4;
  background: #d6e8ff;
  padding: 1px 7px;
  border-radius: 3px;
  vertical-align: middle;
}

/* 기사 이미지 figure */
.article-figure {
  margin: 1rem 0 1.4rem;
  text-align: center;
}
.article-figure img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}
.article-figure figcaption {
  font-size: .8rem;
  color: #888;
  margin-top: .4rem;
}

/* 출처 표기 */
.article-source {
  font-size: .8rem;
  color: #aaa;
  margin-top: 2rem;
  padding-top: .8rem;
  border-top: 1px solid #eee;
}
.article-source a {
  color: #aaa;
  text-decoration: underline;
}
