/* =============================================
   차별화상회 뉴스 스타일 랜딩페이지 — 스타일시트
   가상 뉴스 사이트 UI
   ============================================= */

/* --- CSS Variables --- */
:root {
  --news-bg-page: #f0f0f0;
  --news-bg-white: #ffffff;
  --news-bg-aside: #f7f7f7;
  --news-bg-quote: #f4f8fb;
  --news-bg-table-header: #2b2b2b;
  --news-bg-table-alt: #f9f9f9;
  --news-bg-highlight: #fff8e1;
  --news-bg-comment: #fafafa;
  --news-bg-ad: #e9e9e9;
  --news-bg-cta: #1a73e8;
  --news-bg-cta-hover: #1557b0;
  --news-bg-badge: #e53935;

  --news-text-headline: #1a1a1a;
  --news-text-body: #333333;
  --news-text-secondary: #555555;
  --news-text-caption: #888888;
  --news-text-muted: #aaaaaa;
  --news-text-white: #ffffff;
  --news-text-link: #1a73e8;
  --news-text-category: #e53935;

  --news-border-light: #e0e0e0;
  --news-border-medium: #cccccc;
  --news-border-dark: #333333;
  --news-border-accent: #1a73e8;
  --news-border-quote: #1a73e8;

  --news-font-serif: 'Noto Serif KR', Georgia, serif;
  --news-font-sans: 'Noto Sans KR', 'Malgun Gothic', sans-serif;

  --news-max-article: 680px;
  --news-max-layout: 1080px;
  --news-sidebar-width: 300px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--news-font-sans);
  background: var(--news-bg-page);
  color: var(--news-text-body);
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
}

a {
  color: var(--news-text-link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* =============================================
   HEADER — 뉴스 사이트 상단
   ============================================= */

.news-site-header {
  background: var(--news-bg-white);
  border-bottom: 3px solid var(--news-border-dark);
}

.news-site-header__top {
  max-width: var(--news-max-layout);
  margin: 0 auto;
  padding: 12px 20px 8px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.news-site-header__logo {
  font-family: var(--news-font-serif);
  font-size: 26px;
  font-weight: 900;
  color: var(--news-text-headline);
  letter-spacing: -1px;
  line-height: 1;
}

.news-site-header__logo-sub {
  font-family: var(--news-font-sans);
  font-size: 11px;
  font-weight: 400;
  color: var(--news-text-caption);
  display: block;
  margin-top: 2px;
  letter-spacing: 0;
}

.news-site-header__utils {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--news-text-caption);
}

.news-site-header__utils a {
  color: var(--news-text-caption);
}

.news-site-nav {
  max-width: var(--news-max-layout);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  gap: 0;
  border-top: 1px solid var(--news-border-light);
}

.news-site-nav__link {
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--news-text-secondary);
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.news-site-nav__link:hover {
  color: var(--news-text-headline);
  text-decoration: none;
}

.news-site-nav__link--active {
  color: var(--news-text-category);
  font-weight: 700;
  border-bottom-color: var(--news-text-category);
}

/* =============================================
   LAYOUT — 본문 + 사이드바
   ============================================= */

.news-layout {
  max-width: var(--news-max-layout);
  margin: 0 auto;
  padding: 24px 20px 60px;
  display: grid;
  grid-template-columns: 1fr var(--news-sidebar-width);
  gap: 30px;
}

/* =============================================
   ARTICLE — 기사 본문
   ============================================= */

.news-article {
  background: var(--news-bg-white);
  padding: 32px 28px 40px;
  border: 1px solid var(--news-border-light);
}

/* --- 카테고리 + 메타 --- */
.article-category {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--news-text-category);
  border: 1px solid var(--news-text-category);
  padding: 2px 8px;
  margin-bottom: 14px;
}

.article-headline {
  font-family: var(--news-font-serif);
  font-size: 28px;
  font-weight: 900;
  line-height: 1.4;
  color: var(--news-text-headline);
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}

.article-subhead {
  font-size: 17px;
  line-height: 1.6;
  color: var(--news-text-secondary);
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--news-border-light);
}

.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--news-border-light);
}

.article-meta__info {
  font-size: 13px;
  color: var(--news-text-caption);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
}

.article-meta__reporter {
  font-weight: 700;
  color: var(--news-text-body);
}

.article-meta__share {
  display: flex;
  gap: 8px;
}

.article-meta__share-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--news-border-light);
  background: var(--news-bg-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--news-text-caption);
  cursor: pointer;
}

/* --- 요약 블릿 --- */
.article-summary-box {
  background: var(--news-bg-quote);
  border-left: 4px solid var(--news-border-accent);
  padding: 18px 20px;
  margin-bottom: 32px;
}

.article-summary-box__title {
  font-size: 13px;
  font-weight: 700;
  color: var(--news-text-link);
  margin-bottom: 8px;
}

.article-summary-box__list {
  list-style: none;
  font-size: 14px;
  line-height: 1.8;
  color: var(--news-text-body);
}

.article-summary-box__list li {
  padding-left: 14px;
  position: relative;
}

.article-summary-box__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 5px;
  height: 5px;
  background: var(--news-border-accent);
  border-radius: 50%;
}

/* --- 본문 텍스트 --- */
.article-body {
  font-size: 16px;
  line-height: 1.9;
  color: var(--news-text-body);
}

.article-body p {
  margin-bottom: 22px;
}

.article-body strong {
  font-weight: 700;
}

.article-body .news-bold-red {
  color: var(--news-text-category);
  font-weight: 700;
}

.article-body .news-bold-blue {
  color: var(--news-text-link);
  font-weight: 700;
}

/* --- 소제목 --- */
.article-body .section-title {
  font-family: var(--news-font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--news-text-headline);
  margin: 40px 0 16px;
  padding-left: 12px;
  border-left: 4px solid var(--news-border-dark);
}

/* --- 인용구 --- */
.article-quote {
  background: var(--news-bg-quote);
  border-left: 4px solid var(--news-border-quote);
  padding: 20px 24px;
  margin: 28px 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--news-text-secondary);
}

.article-quote__text {
  font-family: var(--news-font-serif);
  font-style: italic;
  margin-bottom: 8px;
}

.article-quote__source {
  font-size: 13px;
  color: var(--news-text-caption);
  font-style: normal;
}

/* --- 기사 이미지 --- */
.article-img {
  margin: 28px 0;
}

.article-img img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--news-border-light);
}

.article-img figcaption {
  font-size: 12px;
  color: var(--news-text-caption);
  text-align: center;
  margin-top: 6px;
  line-height: 1.5;
}

/* --- 이미지 플레이스홀더 --- */
.article-img-placeholder {
  background: var(--news-bg-ad);
  border: 1px dashed var(--news-border-medium);
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 28px 0;
  color: var(--news-text-muted);
  font-size: 14px;
}

.article-img-caption {
  font-size: 12px;
  color: var(--news-text-caption);
  text-align: center;
  margin-top: -20px;
  margin-bottom: 28px;
}

/* --- 비교 표 --- */
.article-comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 14px;
}

.article-comparison-table thead th {
  background: var(--news-bg-table-header);
  color: var(--news-text-white);
  padding: 12px 14px;
  text-align: center;
  font-weight: 700;
  font-size: 13px;
}

.article-comparison-table thead th:first-child {
  text-align: left;
}

.article-comparison-table tbody td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--news-border-light);
  text-align: center;
  vertical-align: middle;
}

.article-comparison-table tbody td:first-child {
  text-align: left;
  font-weight: 700;
  color: var(--news-text-headline);
  background: var(--news-bg-table-alt);
}

.article-comparison-table tbody tr:nth-child(even) td:not(:first-child) {
  background: var(--news-bg-table-alt);
}

.table-highlight-col {
  background: var(--news-bg-highlight);
  font-weight: 700;
  color: var(--news-text-headline);
}

.table-badge {
  display: inline-block;
  background: var(--news-bg-badge);
  color: var(--news-text-white);
  font-size: 11px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 2px;
  margin-left: 4px;
}

/* --- 인포박스 --- */
.article-infobox {
  background: var(--news-bg-highlight);
  border: 1px solid #e8d78e;
  padding: 20px 24px;
  margin: 28px 0;
  border-radius: 2px;
}

.article-infobox__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--news-text-headline);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e8d78e;
}

.article-infobox__content {
  font-size: 14px;
  line-height: 1.8;
  color: var(--news-text-body);
}

.article-infobox__content strong {
  color: var(--news-text-category);
}

/* --- CTA (기사 내 자연스러운 링크) --- */
.article-cta-banner {
  display: block;
  text-align: center;
  padding: 18px 24px;
  margin: 36px 0;
  background: var(--news-bg-cta);
  color: var(--news-text-white);
  font-size: 16px;
  font-weight: 700;
  border-radius: 4px;
  transition: background 0.2s;
}

.article-cta-banner:hover {
  background: var(--news-bg-cta-hover);
  text-decoration: none;
}

.article-cta-sub {
  text-align: center;
  font-size: 12px;
  color: var(--news-text-caption);
  margin-top: -28px;
  margin-bottom: 28px;
  padding-top: 6px;
}

/* --- 기사 태그 --- */
.article-tags {
  margin-top: 36px;
  padding-top: 16px;
  border-top: 1px solid var(--news-border-light);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.article-tags a {
  display: inline-block;
  padding: 4px 10px;
  font-size: 12px;
  color: var(--news-text-link);
  background: var(--news-bg-quote);
  border-radius: 2px;
}

/* --- 기사 푸터 (기자 정보) --- */
.article-reporter-box {
  margin-top: 28px;
  padding: 16px 20px;
  border: 1px solid var(--news-border-light);
  display: flex;
  gap: 14px;
  align-items: center;
}

.article-reporter-box__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--news-bg-ad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--news-text-caption);
  flex-shrink: 0;
}

.article-reporter-box__name {
  font-size: 14px;
  font-weight: 700;
  color: var(--news-text-headline);
}

.article-reporter-box__email {
  font-size: 12px;
  color: var(--news-text-caption);
}

/* =============================================
   SIDEBAR
   ============================================= */

.news-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* --- 사이드바 광고 배너 (실제 디스플레이 광고 스타일) --- */
.sidebar-ad-banner {
  display: block;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: 4px;
}

.sidebar-ad-banner--main {
  background: linear-gradient(145deg, #1a4a2e 0%, #2d6b45 60%, #1a6b3c 100%);
  min-height: 250px;
  padding: 20px 18px 16px;
  color: #fff;
}

.sidebar-ad-banner--alt {
  background: #fff;
  border: 1.5px solid #e0e0e0;
  min-height: 200px;
  padding: 18px 16px 14px;
  color: #222;
}

.sidebar-ad-banner__label {
  position: absolute;
  top: 6px;
  right: 8px;
  font-size: 9px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.5px;
  font-family: Arial, sans-serif;
}

.sidebar-ad-banner--alt .sidebar-ad-banner__label {
  color: #bbb;
}

.sidebar-ad-banner__body {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 8px;
}

.sidebar-ad-banner__tag {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 2px;
  letter-spacing: 0.5px;
  width: fit-content;
}

.sidebar-ad-banner__headline {
  font-size: 17px;
  font-weight: 900;
  line-height: 1.45;
  color: #fff;
  margin-top: 8px;
}

.sidebar-ad-banner__headline--alt {
  font-size: 18px;
  font-weight: 900;
  line-height: 1.45;
  color: #1a4a2e;
}

.sidebar-ad-banner__sub {
  font-size: 12px;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
}

.sidebar-ad-banner--alt .sidebar-ad-banner__sub {
  color: #666;
  font-size: 12px;
}

.sidebar-ad-banner__cta {
  margin-top: auto;
  display: inline-block;
  background: #fff;
  color: #1a4a2e;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 3px;
  width: fit-content;
}

.sidebar-ad-banner__cta--alt {
  background: #1a6b3c;
  color: #fff;
}

.sidebar-ad-banner__brand {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  margin-top: 8px;
  font-family: Arial, sans-serif;
  letter-spacing: 0.3px;
}

.sidebar-ad-banner:hover .sidebar-ad-banner__cta {
  background: #f0f0f0;
}

.sidebar-ad-banner--alt:hover {
  border-color: #1a6b3c;
}

/* --- 모바일 인라인 광고 (기사 본문 내 삽입) --- */
.inline-ad-banner {
  display: none;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: 6px;
  margin: 28px 0;
}

.inline-ad-banner--main {
  background: linear-gradient(145deg, #1a4a2e 0%, #2d6b45 60%, #1a6b3c 100%);
  padding: 20px 18px 16px;
  color: #fff;
}

.inline-ad-banner--alt {
  background: #fff;
  border: 1.5px solid #e0e0e0;
  padding: 18px 16px 14px;
  color: #222;
}

.inline-ad-banner__label {
  position: absolute;
  top: 6px;
  right: 8px;
  font-size: 9px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.5px;
}

.inline-ad-banner--alt .inline-ad-banner__label {
  color: #bbb;
}

.inline-ad-banner__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.inline-ad-banner__tag {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 2px;
  width: fit-content;
}

.inline-ad-banner__headline {
  font-size: 17px;
  font-weight: 900;
  line-height: 1.45;
  color: #fff;
}

.inline-ad-banner--alt .inline-ad-banner__headline {
  color: #1a4a2e;
}

.inline-ad-banner__sub {
  font-size: 12px;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
}

.inline-ad-banner--alt .inline-ad-banner__sub {
  color: #666;
}

.inline-ad-banner__cta {
  display: inline-block;
  margin-top: 8px;
  background: #fff;
  color: #1a4a2e;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 4px;
  width: fit-content;
  min-height: 48px;
  line-height: 28px;
}

.inline-ad-banner--alt .inline-ad-banner__cta {
  background: #1a6b3c;
  color: #fff;
}

@media (max-width: 768px) {
  .sidebar-ad-banner {
    display: none;
  }

  .inline-ad-banner {
    display: block;
  }
}

/* --- 관련기사 --- */
.sidebar-related {
  background: var(--news-bg-white);
  border: 1px solid var(--news-border-light);
  padding: 18px 16px;
}

.sidebar-related__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--news-text-headline);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--news-border-dark);
  margin-bottom: 12px;
}

.sidebar-related__list {
  list-style: none;
}

.sidebar-related__list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--news-border-light);
}

.sidebar-related__list li:last-child {
  border-bottom: none;
}

.sidebar-related__list a {
  font-size: 13px;
  color: var(--news-text-body);
  line-height: 1.5;
  display: block;
}

.sidebar-related__list a:hover {
  color: var(--news-text-link);
}

.sidebar-related__list .related-date {
  font-size: 11px;
  color: var(--news-text-muted);
  margin-top: 2px;
}

/* --- 인기기사 --- */
.sidebar-popular {
  background: var(--news-bg-white);
  border: 1px solid var(--news-border-light);
  padding: 18px 16px;
}

.sidebar-popular__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--news-text-headline);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--news-text-category);
  margin-bottom: 12px;
}

.sidebar-popular__list {
  list-style: none;
  counter-reset: popular-counter;
}

.sidebar-popular__list li {
  counter-increment: popular-counter;
  padding: 8px 0 8px 28px;
  border-bottom: 1px solid var(--news-border-light);
  font-size: 13px;
  color: var(--news-text-body);
  position: relative;
  line-height: 1.5;
}

.sidebar-popular__list li::before {
  content: counter(popular-counter);
  position: absolute;
  left: 0;
  top: 8px;
  width: 20px;
  height: 20px;
  background: var(--news-bg-table-header);
  color: var(--news-text-white);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
}

.sidebar-popular__list li:nth-child(-n+3)::before {
  background: var(--news-bg-badge);
}

.sidebar-popular__list li:last-child {
  border-bottom: none;
}

/* =============================================
   COMMENTS — 네이버 뉴스 스타일
   ============================================= */

.news-comments {
  max-width: var(--news-max-layout);
  margin: 0 auto;
  padding: 0 20px 60px;
}

.news-comments__container {
  background: var(--news-bg-white);
  border: 1px solid var(--news-border-light);
  padding: 24px 28px;
}

.news-comments__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--news-border-dark);
  margin-bottom: 0;
}

.news-comments__header-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--news-text-headline);
}

.news-comments__count {
  color: var(--news-text-link);
}

.news-comments__sort {
  display: flex;
  gap: 10px;
  font-size: 12px;
}

.news-comments__sort a {
  color: var(--news-text-caption);
}

.news-comments__sort a.active {
  color: var(--news-text-headline);
  font-weight: 700;
}

/* --- 개별 댓글 --- */
.news-comment {
  padding: 16px 0;
  border-bottom: 1px solid var(--news-border-light);
}

.news-comment:last-of-type {
  border-bottom: none;
}

.news-comment__top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.news-comment__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--news-bg-ad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--news-text-caption);
  flex-shrink: 0;
}

.news-comment__author {
  font-size: 13px;
  font-weight: 700;
  color: var(--news-text-headline);
}

.news-comment__date {
  font-size: 11px;
  color: var(--news-text-muted);
}

.news-comment__body {
  font-size: 14px;
  line-height: 1.7;
  color: var(--news-text-body);
  padding-left: 40px;
}

.news-comment__actions {
  display: flex;
  gap: 16px;
  padding-left: 40px;
  margin-top: 8px;
}

.news-comment__action-btn {
  font-size: 12px;
  color: var(--news-text-caption);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--news-font-sans);
  padding: 0;
}

.news-comment__action-btn:hover {
  color: var(--news-text-body);
}

/* --- 댓글 입력 (fake) --- */
.news-comments__input {
  margin-top: 16px;
  border: 1px solid var(--news-border-medium);
  border-radius: 2px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.news-comments__input-text {
  flex: 1;
  font-size: 13px;
  color: var(--news-text-muted);
}

.news-comments__input-btn {
  background: var(--news-bg-cta);
  color: var(--news-text-white);
  border: none;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--news-font-sans);
  border-radius: 2px;
}

/* =============================================
   FOOTER — 뉴스 사이트 하단
   ============================================= */

.news-site-footer {
  background: var(--news-bg-table-header);
  color: var(--news-text-muted);
  text-align: center;
  padding: 24px 20px;
  font-size: 11px;
  line-height: 1.6;
}

.news-site-footer a {
  color: var(--news-text-muted);
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 860px) {
  .news-layout {
    grid-template-columns: 1fr;
  }

  .news-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .sidebar-ad-banner {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .news-site-header__top {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .news-site-header__utils {
    align-self: flex-end;
  }

  .news-site-nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .news-site-nav__link {
    padding: 8px 14px;
    font-size: 13px;
    white-space: nowrap;
  }

  .news-article {
    padding: 20px 14px 28px;
  }

  .article-headline {
    font-size: 22px;
  }

  .article-subhead {
    font-size: 15px;
  }

  .article-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .article-body {
    font-size: 16px;
  }

  .article-body .section-title {
    font-size: 18px;
  }

  .article-comparison-table {
    font-size: 12px;
  }

  .article-comparison-table thead th,
  .article-comparison-table tbody td {
    padding: 8px 8px;
  }

  .news-sidebar {
    grid-template-columns: 1fr;
  }

  .news-comments__container {
    padding: 16px 14px;
  }

  .news-comments {
    padding: 0 10px 40px;
  }

  .news-layout {
    padding: 16px 10px 40px;
  }

  .article-cta-banner {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
  }

  .article-img img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
  }
}

@media (max-width: 400px) {
  .article-headline {
    font-size: 19px;
  }

  .article-body {
    font-size: 16px;
  }

  .article-comparison-table {
    font-size: 11px;
  }

  .news-site-header__logo {
    font-size: 22px;
  }
}

/* === TOP100 네이버 스타일 위젯 (뉴스) === */
.top100-widget {
  margin: 32px -4px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  background: #f9f9f7;
  overflow: hidden;
  font-family: 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
}

.top100-widget__header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid #e8e8e8;
  background: #fff;
  flex-wrap: wrap;
}

.top100-badge {
  background: #d63031;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 2px;
  letter-spacing: 0.2px;
  flex-shrink: 0;
}

.top100-title {
  font-size: 13px;
  font-weight: 700;
  color: #222;
}

.top100-sub {
  font-size: 12px;
  color: #888;
  padding-left: 4px;
}

.top100-live {
  margin-left: auto;
  font-size: 11px;
  color: #aaa;
}

.top100-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 12px 10px;
  background: #fff;
}

.top100-card {
  display: flex;
  flex-direction: column;
  padding: 0 6px;
  text-decoration: none;
  color: inherit;
  border-right: 1px solid #f0f0f0;
  cursor: pointer;
}

.top100-card:last-child {
  border-right: none;
}

.top100-card:hover .top100-card__title {
  text-decoration: underline;
}

.top100-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 3px;
  margin-bottom: 8px;
}

.top100-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.top100-rank {
  position: absolute;
  top: 0;
  left: 0;
  width: 36px;
  padding: 4px 0 8px 6px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.top100-rank--1 { background: rgba(168, 132, 32, 0.88); }
.top100-rank--2 { background: rgba(80, 80, 80, 0.82); }
.top100-rank--3 { background: rgba(90, 90, 90, 0.78); }

.rank-num {
  font-size: 16px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  font-family: Georgia, serif;
}

.rank-line {
  display: block;
  width: 16px;
  height: 2px;
  background: rgba(255,255,255,0.7);
  margin-top: 3px;
}

.top100-card__title {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  color: #111;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.top100-card__cat {
  font-size: 11px;
  color: #1ea460;
  font-weight: 500;
}

.top100-card__cat em {
  color: #bbb;
  font-style: normal;
  padding: 0 2px;
}

.top100-note {
  padding: 12px 14px;
  border-top: 1px solid #efefef;
  background: #fafaf8;
  font-size: 13px;
  color: #444;
  line-height: 1.7;
}

.top100-note p + p {
  margin-top: 4px;
}

@media (max-width: 768px) {
  .top100-widget {
    margin: 24px -14px;
    border-radius: 0;
  }

  .top100-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 4px 0;
  }

  .top100-card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    border-right: none;
    border-bottom: 1px solid #efefef;
  }

  .top100-card:last-child {
    border-bottom: none;
  }

  .top100-thumb {
    flex: 0 0 100px;
    width: 100px;
    height: 75px;
    aspect-ratio: unset;
    margin-bottom: 0;
    border-radius: 4px;
    overflow: hidden;
  }

  .top100-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .top100-card__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .top100-card__title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    margin-top: 0;
  }

  .top100-card__cat {
    font-size: 12px;
  }

  .top100-rank {
    width: 26px;
    padding: 2px 0 5px 3px;
  }

  .rank-num {
    font-size: 13px;
  }
}

/* === 추가 내용 박스 (뉴스) === */
.extra-content-box {
  background: #fff;
  border: 1.5px solid #e8e8e8;
  border-radius: 8px;
  padding: 24px 20px;
  margin: 24px 0;
  text-align: center;
  line-height: 2;
}

.extra-content-box__header {
  font-size: 15px;
  font-weight: 700;
  color: var(--news-text-headline);
  margin-bottom: 16px;
  letter-spacing: 0.3px;
}

.extra-content-box p {
  font-size: 14px;
  color: var(--news-text-body);
  margin-bottom: 10px;
}

.extra-highlight {
  color: var(--news-bg-badge);
  font-weight: 700;
  font-style: italic;
}

.extra-red {
  color: var(--news-bg-badge);
  font-weight: 700;
}

.extra-content-box__cta {
  display: inline-block;
  margin-top: 16px;
  background: var(--news-bg-badge);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 6px;
  text-decoration: none;
  letter-spacing: 0.3px;
}

.extra-content-box__cta:hover {
  background: #b52828;
}
