@charset "UTF-8";
/* ==========================================================================
   VLACKBOX MEDIA — 공개 페이지 스타일
   ========================================================================== */

:root {
  --brand-blue: #06319b;
  --brand-ink: #0d1b2a;
  --text-primary: #16202c;
  --text-secondary: #5a6673;
  --text-muted: #8a94a0;
  --line: #e3e7ec;
  --line-strong: #c9d0d8;
  --bg: #ffffff;
  --bg-soft: #f6f8fa;
  --red: #d92d20;
  --radius: 4px;
  --wrap: 1180px;
  --font: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Malgun Gothic", "맑은 고딕", sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg);
  word-break: keep-all;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand-blue); }

h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

.dot { color: var(--text-muted); margin: 0 6px; }
.muted { color: var(--text-muted); }

/* ── 헤더 ───────────────────────────────────────────── */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-top { border-bottom: 1px solid var(--line); }

.header-top-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
}

.brand { display: flex; align-items: baseline; gap: 6px; }
.brand:hover { color: inherit; }

.brand-mark {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--brand-ink);
}

.brand-sub {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--brand-blue);
}

.header-search {
  flex: 1;
  max-width: 420px;
  display: flex;
  gap: 6px;
}

.header-search input {
  flex: 1;
  min-width: 0;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 14px;
}

.header-search input:focus {
  outline: 2px solid var(--brand-blue);
  outline-offset: -1px;
}

.header-search button {
  height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--radius);
  background: var(--brand-ink);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
}

.header-search button:hover { background: var(--brand-blue); }

.header-utility {
  margin-left: auto;
  display: flex;
  gap: 18px;
  font-size: 14px;
  color: var(--text-secondary);
}

.header-nav-inner {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.header-nav-inner::-webkit-scrollbar { display: none; }

.nav-link {
  padding: 13px 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}

.nav-link:hover { color: var(--brand-blue); }

.nav-link.is-active {
  color: var(--brand-ink);
  border-bottom-color: var(--brand-blue);
}

/* ── 속보 ───────────────────────────────────────────── */

.breaking-bar {
  background: var(--brand-ink);
  color: #fff;
  font-size: 14px;
}

.breaking-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  overflow: hidden;
}

.breaking-label {
  flex-shrink: 0;
  padding: 3px 9px;
  background: var(--red);
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 700;
}

.breaking-list {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scrollbar-width: none;
}

.breaking-list::-webkit-scrollbar { display: none; }
.breaking-list a { color: #e8edf4; white-space: nowrap; }
.breaking-list a:hover { color: #fff; text-decoration: underline; }

/* ── 레이아웃 ───────────────────────────────────────── */

.site-main { padding-bottom: 64px; }

.layout-two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 48px;
  margin-top: 40px;
}

.column-main { min-width: 0; }

.section-block { margin-bottom: 48px; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 12px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--brand-ink);
}

.section-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.section-more { font-size: 14px; color: var(--text-secondary); }

.page-head { margin: 32px 0 20px; }

.page-title {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.page-desc { margin-top: 6px; color: var(--text-secondary); font-size: 15px; }

.breadcrumb {
  display: flex;
  align-items: center;
  padding-top: 20px;
  font-size: 13px;
  color: var(--text-secondary);
}

.empty-message {
  padding: 60px 20px;
  text-align: center;
  color: var(--text-muted);
  background: var(--bg-soft);
  border-radius: var(--radius);
}

/* ── 메인 톱기사 ────────────────────────────────────── */

.lead-section {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 36px;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
}

.lead-thumb {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-soft);
  border-radius: var(--radius);
}

.lead-thumb img { width: 100%; height: 100%; object-fit: cover; }

.lead-body { margin-top: 18px; }

.lead-title {
  margin-top: 8px;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.025em;
}

.lead-summary {
  margin-top: 12px;
  color: var(--text-secondary);
  font-size: 16px;
}

.lead-side { display: flex; flex-direction: column; gap: 20px; }

.side-item {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.lead-side .side-item:last-child { border-bottom: 0; padding-bottom: 0; }

.side-thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-soft);
  border-radius: var(--radius);
}

.side-thumb img { width: 100%; height: 100%; object-fit: cover; }

.side-title {
  margin-top: 4px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

/* ── 기사 카드 ──────────────────────────────────────── */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 24px;
}

.card-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-soft);
  border-radius: var(--radius);
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card:hover .card-thumb img { transform: scale(1.03); }

.badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 8px;
  border-radius: var(--radius);
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}

.badge-breaking { background: var(--red); }

.card-body { padding-top: 12px; }

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
}

.tag-country { color: var(--brand-blue); }
.tag-category { color: var(--text-secondary); }

.tag-type {
  padding: 1px 6px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  color: var(--text-secondary);
  font-weight: 600;
}

.card-title {
  margin-top: 8px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
}

.card-summary {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-date { margin-top: 10px; font-size: 13px; color: var(--text-muted); }

/* ── 기사 목록(가로형) ──────────────────────────────── */

.row-list { display: flex; flex-direction: column; }

.row-item {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.row-item:first-child { padding-top: 0; }

.row-thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-soft);
  border-radius: var(--radius);
}

.row-thumb img { width: 100%; height: 100%; object-fit: cover; }

.row-title {
  margin-top: 8px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.4;
}

.row-summary {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.row-meta {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-muted);
}

/* ── 카테고리 탭 ────────────────────────────────────── */

.category-tabs {
  display: flex;
  gap: 6px;
  padding-bottom: 4px;
  margin-bottom: 8px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar { display: none; }

.tab {
  padding: 9px 15px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}

.tab.is-active { color: var(--brand-blue); border-bottom-color: var(--brand-blue); }

/* ── 기사 상세 ──────────────────────────────────────── */

.article-detail { padding-top: 24px; }

.article-title {
  margin-top: 10px;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.article-subtitle {
  margin-top: 12px;
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 18px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--text-secondary);
}

.meta-author { font-weight: 600; color: var(--text-primary); }

.article-figure { margin: 28px 0; }

.article-figure img { width: 100%; border-radius: var(--radius); }

.article-figure figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-muted);
}

.figure-source { margin-left: 6px; }

.article-summary {
  margin: 24px 0;
  padding: 18px 20px;
  background: var(--bg-soft);
  border-left: 3px solid var(--brand-blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 16px;
  color: var(--text-secondary);
}

.article-content {
  margin-top: 28px;
  font-size: 17px;
  line-height: 1.85;
}

.article-content p { margin-bottom: 22px; }
.article-content h2 { margin: 40px 0 16px; font-size: 23px; font-weight: 800; }
.article-content h3 { margin: 32px 0 12px; font-size: 19px; font-weight: 700; }
.article-content img { margin: 24px auto; border-radius: var(--radius); }
.article-content a { color: var(--brand-blue); text-decoration: underline; }
.article-content ul { margin-bottom: 22px; padding-left: 20px; list-style: disc; }
.article-content ol { margin-bottom: 22px; padding-left: 20px; list-style: decimal; }
.article-content li { margin-bottom: 8px; }

.article-content blockquote {
  margin: 28px 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--line-strong);
  color: var(--text-secondary);
}

.article-content table {
  width: 100%;
  margin-bottom: 24px;
  border-collapse: collapse;
  font-size: 15px;
}

.article-content th,
.article-content td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  text-align: left;
}

.article-content th { background: var(--bg-soft); font-weight: 700; }

/* ── 태그 · 칩 ──────────────────────────────────────── */

.chip-list { display: flex; flex-wrap: wrap; gap: 8px; }

.chip {
  display: inline-block;
  padding: 6px 12px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-secondary);
}

.chip:hover { background: var(--brand-blue); border-color: var(--brand-blue); color: #fff; }

.article-tags { margin-top: 32px; }

/* ── 외부 링크 ──────────────────────────────────────── */

.external-links {
  margin-top: 40px;
  padding: 24px;
  background: var(--bg-soft);
  border-radius: var(--radius);
}

.link-list { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }

.link-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.link-list a:hover { border-color: var(--brand-blue); }

.link-type {
  flex-shrink: 0;
  padding: 3px 9px;
  background: var(--brand-blue);
  border-radius: 2px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}

.link-title { flex: 1; font-weight: 600; font-size: 15px; }
.link-arrow { color: var(--text-muted); }

/* ── 기자 ───────────────────────────────────────────── */

.author-box {
  display: flex;
  gap: 16px;
  margin-top: 40px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.author-photo {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-soft);
}

.author-photo-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-muted);
}

.author-photo-large { width: 96px; height: 96px; }

.author-name { font-weight: 700; font-size: 16px; }
.author-position { font-size: 14px; color: var(--text-secondary); }
.author-bio { margin-top: 6px; font-size: 14px; color: var(--text-secondary); }
.author-email { margin-top: 6px; font-size: 14px; }

.author-profile {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin: 32px 0;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.author-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.author-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
}

.author-card:hover { border-color: var(--brand-blue); }

/* ── 사이드바 ───────────────────────────────────────── */

.column-side { min-width: 0; }

.sidebar-block {
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.sidebar-title {
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 2px solid var(--brand-ink);
  font-size: 16px;
  font-weight: 800;
}

.rank-list { display: flex; flex-direction: column; gap: 12px; }

.rank-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  line-height: 1.45;
}

.rank-number {
  flex-shrink: 0;
  width: 22px;
  font-weight: 800;
  color: var(--brand-blue);
  font-variant-numeric: tabular-nums;
}

/* ── 광고 ───────────────────────────────────────────── */

.ad-slot {
  position: relative;
  margin: 28px 0;
  padding: 16px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
}

.ad-slot img { margin: 0 auto; }

.ad-label {
  position: absolute;
  top: 6px;
  right: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

/* ── 검색 · 페이지네이션 ────────────────────────────── */

.search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.search-form input[type="search"] {
  flex: 1;
  min-width: 200px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 15px;
}

.search-form select {
  height: 42px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 14px;
  background: #fff;
}

.search-form button {
  height: 42px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--radius);
  background: var(--brand-ink);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  cursor: pointer;
}

.search-form button:hover { background: var(--brand-blue); }

.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 40px;
}

.page-link {
  min-width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text-secondary);
}

.page-link:hover { border-color: var(--brand-blue); color: var(--brand-blue); }

.page-link.is-current {
  background: var(--brand-ink);
  border-color: var(--brand-ink);
  color: #fff;
  font-weight: 700;
}

/* ── 푸터 ───────────────────────────────────────────── */

.site-footer {
  padding: 44px 0 56px;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  font-size: 14px;
  color: var(--text-secondary);
}

.footer-title { font-size: 20px; font-weight: 800; color: var(--brand-ink); }
.footer-title span { color: var(--brand-blue); }
.footer-desc { margin-top: 6px; }

.footer-links { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 20px; }
.footer-meta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 14px; }
.footer-copy { margin-top: 24px; font-size: 13px; color: var(--text-muted); }

/* ── 오류 페이지 ────────────────────────────────────── */

.error-page {
  padding: 120px 20px 140px;
  text-align: center;
}

.error-code {
  font-size: 64px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--brand-blue);
  line-height: 1;
}

.error-title { margin-top: 16px; font-size: 26px; font-weight: 800; }
.error-desc { margin-top: 12px; color: var(--text-secondary); }

.error-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
}

.error-button {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 24px;
  border-radius: var(--radius);
  background: var(--brand-ink);
  color: #fff;
  font-weight: 600;
}

.error-button:hover { background: var(--brand-blue); color: #fff; }
.error-link { color: var(--text-secondary); }

/* ── 반응형 ─────────────────────────────────────────── */

@media (max-width: 1024px) {
  .layout-two-column { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .lead-section { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .lead-title { font-size: 28px; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .author-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  body { font-size: 15px; }

  .header-top-inner { flex-wrap: wrap; gap: 12px; min-height: 0; padding-top: 14px; padding-bottom: 12px; }
  .header-search { order: 3; flex-basis: 100%; max-width: none; }
  .header-utility { margin-left: auto; gap: 14px; font-size: 13px; }

  .page-title { font-size: 24px; }
  .article-title { font-size: 25px; }
  .article-subtitle { font-size: 16px; }
  .article-content { font-size: 16px; line-height: 1.8; }
  .lead-title { font-size: 24px; }

  .card-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .author-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .row-item { grid-template-columns: 120px minmax(0, 1fr); gap: 14px; padding: 18px 0; }
  .row-title { font-size: 16px; }
  .row-summary { display: none; }

  .side-item { grid-template-columns: 96px minmax(0, 1fr); }

  .author-profile { flex-direction: column; gap: 16px; }
  .external-links { padding: 18px; }
}
