/* 읽을거리(기사) 페이지 전용 스타일 */
/* 이 파일은 기사 페이지에서만 불러온다. 전역 리셋(`* { margin:0 }`)은 두지 않는다.
   legal-style.css가 전역 리셋 탓에 다른 페이지의 Tailwind 레이아웃을 깬 적이 있다. */

:root {
  --gold: #c9a84c;
  --gold-light: #e8c870;
  --bg: #0a0d1a;
  --bg2: #0f1528;
  --bg3: #141b35;
  --text: #e8e0cc;
  --muted: rgba(232, 224, 204, 0.62);
  --border: rgba(201, 168, 76, 0.2);
}

html { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Noto Serif KR', 'Noto Sans KR', serif;
  -webkit-text-size-adjust: 100%;
}

/* ── 상단 네비 ── */
.art-nav {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 24px; border-bottom: 1px solid var(--border);
  background: rgba(10, 13, 26, 0.92); position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(8px);
}
.art-nav a { text-decoration: none; }
.art-nav .logo {
  font-family: 'Cinzel', serif; font-size: 13px; letter-spacing: .18em; color: var(--gold);
}
.art-nav .cta {
  font-size: 13px; color: var(--gold); border: 1px solid rgba(201, 168, 76, .5);
  border-radius: 3px; padding: 7px 14px; white-space: nowrap;
}
.art-nav .cta:hover { background: rgba(201, 168, 76, .12); }

/* ── 기사 본문 ── */
.art-wrap { max-width: 760px; margin: 0 auto; padding: 56px 24px 72px; }

.art-kicker {
  display: block; font-family: 'Cinzel', serif; font-size: 11px; letter-spacing: .22em;
  color: var(--gold); text-transform: uppercase; margin-bottom: 12px;
}
.art-wrap > h1 {
  font-size: clamp(26px, 5vw, 38px); font-weight: 700; line-height: 1.4;
  margin: 0 0 16px; color: var(--text);
}
.art-lead {
  font-size: 16px; line-height: 1.9; color: var(--muted);
  margin: 0 0 12px; padding-bottom: 28px; border-bottom: 1px solid var(--border);
}

.art-body h2 {
  font-size: clamp(19px, 3.4vw, 24px); font-weight: 700; line-height: 1.5;
  color: var(--gold-light); margin: 48px 0 14px;
  padding-bottom: 8px; border-bottom: 1px solid var(--border);
}
.art-body h3 {
  font-size: clamp(16px, 2.6vw, 18px); font-weight: 600; line-height: 1.6;
  color: var(--text); margin: 32px 0 10px;
}
.art-body p { font-size: 16px; line-height: 2.05; color: var(--muted); margin: 0 0 18px; }
.art-body strong { color: var(--text); font-weight: 600; }
.art-body em { color: var(--gold-light); font-style: italic; }

.art-body ul, .art-body ol { margin: 0 0 20px; padding-left: 22px; }
.art-body li { font-size: 16px; line-height: 2.05; color: var(--muted); margin-bottom: 8px; }

.art-body a { color: var(--gold); text-decoration: none; border-bottom: 1px solid rgba(201, 168, 76, .35); }
.art-body a:hover { color: var(--gold-light); }

.art-body hr { border: 0; border-top: 1px solid var(--border); margin: 40px 0 20px; }

/* 표는 좁은 화면에서 페이지를 밀지 않도록 자기 안에서 스크롤한다 */
.art-body .table-wrap { overflow-x: auto; margin: 0 0 22px; -webkit-overflow-scrolling: touch; }
.art-body table {
  width: 100%; min-width: 420px; border-collapse: collapse;
  background: var(--bg2); border: 1px solid var(--border); border-radius: 8px;
}
.art-body th, .art-body td {
  padding: 11px 14px; text-align: left; font-size: 14px; line-height: 1.75;
  border-bottom: 1px solid var(--border);
}
.art-body th { color: var(--gold); font-weight: 600; background: var(--bg3); white-space: nowrap; }
.art-body td { color: var(--muted); }
.art-body tr:last-child td { border-bottom: 0; }

/* ── 앞/뒤 글 ── */
.art-pager {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--border);
}
.art-pager a {
  display: block; background: var(--bg2); border: 1px solid var(--border);
  border-radius: 10px; padding: 16px 18px; text-decoration: none;
}
.art-pager a:hover { border-color: rgba(201, 168, 76, .45); }
.art-pager .dir { display: block; font-size: 11px; letter-spacing: .1em; color: var(--gold); margin-bottom: 6px; }
.art-pager .ttl { display: block; font-size: 14px; line-height: 1.6; color: var(--text); }
.art-pager .next { text-align: right; }

.art-all {
  display: block; text-align: center; margin-top: 20px;
  font-size: 14px; color: var(--gold); text-decoration: none;
}
.art-all:hover { color: var(--gold-light); }

@media (max-width: 620px) {
  .art-wrap { padding: 40px 20px 56px; }
  .art-pager { grid-template-columns: 1fr; }
  .art-pager .next { text-align: left; }
}
