/* =====================================================================
   공개 사이트 디자인 기준 (v0.1)
   - 색: 먹(잉크) 1 + 강조색 1(진한 빨강, 분류 표시에만) + 회색 3단
   - 글자: 제목은 명조(Noto Serif KR 700), 본문·UI 는 Pretendard
   - 크기 4단계 UI(13·15·17·20) + 제목 3단계(24·30·40)
   - 카드 테두리·그림자 대신 가는 선과 여백으로 구분
   ===================================================================== */
:root {
  --ink: #15181d;
  --ink-2: #3a404b;
  --muted: #6a7180;
  --line: #e4e6ea;
  --line-2: #cfd3da;
  --bg: #ffffff;
  --bg-2: #f6f6f3;
  --accent: #b3261e;
  --accent-bg: #fbeceb;
  --ok: #1f7a4d;
  --warn: #9a6200;
  --serif: 'Noto Serif KR', 'Nanum Myeongjo', 'Apple SD Gothic Neo', serif;
  --sans: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', system-ui, sans-serif;
  --fs-xs: 13px;
  --fs-s: 15px;
  --fs-m: 17px;
  --fs-l: 20px;
  --h-1: 40px;
  --h-2: 30px;
  --h-3: 24px;
  --wrap: 1200px;
  --gap: 32px;
  --r: 6px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 110px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--fs-s)/1.6 var(--sans); word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 2px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.hp { position: absolute !important; left: -9999px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; }
.narrow-l { max-width: 880px; }
.muted { color: var(--muted); }
.ic { flex: none; vertical-align: -3px; }
.hide-s { }

/* ---------- 머리 ---------- */
.masthead { background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.mh-top { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: baseline; gap: 10px; }
.logo:hover { text-decoration: none; }
.logo-en { font: 700 22px/1 var(--serif); letter-spacing: .02em; }
.logo-ko { font-size: var(--fs-xs); color: var(--muted); letter-spacing: .02em; }
.mh-actions { display: flex; align-items: center; gap: 14px; }
.mh-icon { display: inline-flex; padding: 6px; border-radius: 50%; }
.mh-icon:hover { background: var(--bg-2); }
.mh-link { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-s); font-weight: 500; }
.gnb { border-top: 1px solid var(--line); }
.gnb-in { display: flex; gap: 26px; overflow-x: auto; scrollbar-width: none; height: 44px; align-items: stretch; }
.gnb-in::-webkit-scrollbar { display: none; }
.gnb a { display: flex; align-items: center; white-space: nowrap; font-size: var(--fs-s); font-weight: 500; color: var(--ink-2); border-bottom: 2px solid transparent; }
.gnb a:hover { color: var(--ink); text-decoration: none; }
.gnb a[aria-current] { color: var(--ink); border-bottom-color: var(--ink); font-weight: 600; }

/* ---------- 버튼 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 44px; padding: 0 20px; border-radius: var(--r); border: 1px solid transparent; font-size: var(--fs-s); font-weight: 600; cursor: pointer; white-space: nowrap; }
.btn:hover { text-decoration: none; }
.btn-sm { height: 36px; padding: 0 14px; font-size: var(--fs-xs); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #000; }
.btn-line { background: var(--bg); border-color: var(--line-2); color: var(--ink); }
.btn-line:hover { border-color: var(--ink); }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; padding: 0; color: var(--muted); font-size: var(--fs-xs); cursor: pointer; }
.link-btn:hover { color: var(--ink); text-decoration: underline; }
.link-btn.strong { color: var(--ok); font-weight: 600; }
.icon-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); font-size: var(--fs-xs); color: var(--ink-2); cursor: pointer; }
.icon-btn:hover { border-color: var(--line-2); color: var(--ink); text-decoration: none; }
.icon-btn.on { border-color: var(--ink); color: var(--ink); }
.icon-btn.on .ic { fill: currentColor; }

/* ---------- 글자 단계 ---------- */
.t-lead { font: 700 var(--h-2)/1.3 var(--serif); margin: 6px 0 10px; letter-spacing: -.01em; }
.t-art { font: 700 var(--h-1)/1.28 var(--serif); margin: 8px 0 12px; letter-spacing: -.015em; }
.t-page { font: 700 var(--h-2)/1.3 var(--serif); margin: 0 0 8px; letter-spacing: -.01em; }
.t-post { font: 700 var(--h-3)/1.4 var(--sans); margin: 6px 0 10px; letter-spacing: -.01em; }
.t-item { font: 700 var(--fs-l)/1.4 var(--serif); margin: 4px 0 6px; letter-spacing: -.01em; }
.t-ins { font: 700 22px/1.38 var(--serif); margin: 6px 0 10px; }
.t-line { font-size: var(--fs-s); font-weight: 500; line-height: 1.5; }
.dek { font-size: var(--fs-m); color: var(--ink-2); margin: 0 0 12px; line-height: 1.6; }
.kicker { display: flex; align-items: center; gap: 8px; font-size: var(--fs-xs); font-weight: 600; color: var(--accent); letter-spacing: .01em; }
.kicker a:hover { text-decoration: underline; }
.kicker-type { color: var(--muted); font-weight: 500; }
.kicker-type::before { content: '·'; margin-right: 8px; color: var(--line-2); }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: var(--fs-xs); color: var(--muted); }
.h-sec { font: 700 var(--fs-l)/1.3 var(--sans); margin: 0; letter-spacing: -.01em; }
.h-sec a:hover { text-decoration: none; }
.h-en { display: block; font: 600 11px/1.2 var(--sans); letter-spacing: .14em; color: var(--muted); margin-bottom: 6px; }
.h-rail { font-size: var(--fs-s); font-weight: 700; margin: 0 0 10px; padding-bottom: 8px; border-bottom: 2px solid var(--ink); }
.more { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-xs); color: var(--muted); font-weight: 500; }
.more:hover { color: var(--ink); }

/* 표시 */
.flag { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; line-height: 1; padding: 4px 6px; border-radius: 3px; font-weight: 600; }
.flag-lock { background: #f1efe7; color: #6b5a1f; }
.flag-ad { background: #eef0f4; color: var(--ink-2); }
.flag-demo { background: #fff4d6; color: var(--warn); }
.lock-dot { color: #8d7a3a; }
.unv { font-size: 12px; color: var(--warn); margin-left: 6px; white-space: nowrap; }
.verified { display: inline-flex; color: #fff; background: #1d5fd1; border-radius: 50%; padding: 1px; vertical-align: -2px; }
.verified .ic { width: 11px; height: 11px; stroke-width: 3; }

/* ---------- 메인 ---------- */
.dateline { font-size: var(--fs-xs); color: var(--muted); padding: 14px 0 0; }
.top { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 3.2fr) minmax(0, 2.8fr); gap: var(--gap); padding: 16px 0 36px; border-bottom: 1px solid var(--line); }
.top-second { display: flex; flex-direction: column; gap: 22px; border-left: 1px solid var(--line); padding-left: var(--gap); }
.top-latest { border-left: 1px solid var(--line); padding-left: var(--gap); }
.lead-media { display: block; margin-bottom: 14px; aspect-ratio: 16/9; overflow: hidden; background: var(--bg-2); }
.lead-media img { width: 100%; height: 100%; object-fit: cover; }
.ph { width: 100%; height: 100%; background: linear-gradient(135deg, #f1f1ee, #e8e8e3); min-height: 60px; }
.card-s-media { display: block; aspect-ratio: 16/10; overflow: hidden; background: var(--bg-2); margin-bottom: 10px; }
.card-s-media img { width: 100%; height: 100%; object-fit: cover; }
.card-s .t-item { font-size: 18px; }
.lines { list-style: none; margin: 0; padding: 0; }
.line { display: flex; gap: 10px; padding: 11px 0; border-top: 1px solid var(--line); }
.line:first-child { border-top: 0; padding-top: 0; }
.lines-tight .line { padding: 9px 0; }
.lead-more { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--gap); border-top: 1px solid var(--line); }
.lead-more .line { border-top: 0; padding: 14px 0 0; }
.lead-more .t-line { font-weight: 600; }
.line .kicker { margin-bottom: 2px; }
.line-n { font: 700 var(--fs-l)/1.2 var(--serif); color: var(--line-2); min-width: 20px; }
.line-time { display: block; font-size: 12px; color: var(--accent); font-weight: 600; margin-bottom: 2px; }
.top-latest .more { margin-top: 12px; }

.band { padding: 36px 0; border-bottom: 1px solid var(--line); }
.band-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.band-tint { background: var(--bg-2); border-bottom: 0; }
.band-data .pf-list { columns: 2; column-gap: var(--gap); }

/* 플랫폼 변화 한 줄 */
.pf-list { list-style: none; margin: 0; padding: 0; }
.pf-row { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); break-inside: avoid; }
.pf-title { font-weight: 500; line-height: 1.45; }
.pf-meta { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--muted); white-space: nowrap; }
.pf-badge { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .01em; color: var(--ink); white-space: nowrap; }
.pf-badge::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; background: var(--muted); vertical-align: 0; }
.pf-instagram::before { background: #c13584; } .pf-tiktok::before { background: #111; } .pf-youtube::before { background: #e00; }
.pf-threads::before { background: #555; } .pf-facebook::before { background: #1877f2; } .pf-x::before { background: #000; }
.st { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 7px; border-radius: 3px; background: #eef0f3; color: var(--ink-2); white-space: nowrap; }
.st-announced, .st-rolled_out { background: #e6f3ec; color: var(--ok); }
.st-testing, .st-partial, .st-announced_soon { background: #eef2fb; color: #2d4f9b; }
.st-needs_check { background: #fff4d6; color: var(--warn); }
.st-ended { background: #f1f1f1; color: var(--muted); }

.cols3 { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: var(--gap); padding: 36px 0; border-bottom: 1px solid var(--line); }
.cols3 .col + .col { border-left: 1px solid var(--line); padding-left: var(--gap); }
.cols3 .h-sec { margin-bottom: 16px; }
.cols3 .card-s { padding-bottom: 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.cols3 .lines .line:first-child { border-top: 0; padding-top: 11px; }
.row-sum { margin: 0 0 8px; color: var(--ink-2); font-size: var(--fs-s); line-height: 1.6; }

.ins-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.ins { border-top: 2px solid var(--ink); padding-top: 14px; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; padding: 36px 0; }
.band .split { padding: 0; }
.guide-list { list-style: none; margin: 0; padding: 0; }
.guide-list li, .files li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); }
.guide-list li:first-child { border-top: 0; padding-top: 0; }
.guide-ic { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: var(--r); background: var(--bg-2); color: var(--ink-2); flex: none; }
.lines-num .line { align-items: baseline; }

/* 커뮤니티 목록 */
.post-list { list-style: none; margin: 0 0 14px; padding: 0; }
.post-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.post-row:first-child { border-top: 0; }
.post-title { font-weight: 500; flex: 1 1 60%; min-width: 0; }
.post-meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--muted); width: 100%; }
.q { font-size: 12px; font-weight: 700; color: #2d4f9b; padding: 2px 6px; border: 1px solid #c9d4ee; border-radius: 3px; white-space: nowrap; }
.q-done { color: var(--ok); border-color: #bfe0cd; }
.nick a { color: var(--ink-2); font-weight: 600; }

/* 뉴스레터 */
.nl { background: var(--ink); color: #fff; margin-top: 8px; }
.nl-in { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-top: 40px; padding-bottom: 40px; }
.nl-title { font: 700 var(--h-3)/1.35 var(--serif); margin: 0 0 6px; }
.nl-sub { margin: 0; color: #c9ccd3; }
.nl-form { display: flex; gap: 8px; flex: 0 1 440px; }
.nl-form input[type=email] { flex: 1; height: 44px; border-radius: var(--r); border: 1px solid #4a505c; background: #22262d; color: #fff; padding: 0 14px; min-width: 0; }
.nl-form .btn-ink { background: #fff; color: var(--ink); }

/* ---------- 섹션 목록 ---------- */
.sec-head { padding: 36px 0 20px; }
.sec-head.center { text-align: center; max-width: 720px; margin: 0 auto; }
.sec-desc { color: var(--ink-2); margin: 0 0 16px; max-width: 720px; }
.center .sec-desc { margin: 0 auto 16px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 8px; }
.chips::-webkit-scrollbar { display: none; }
.chips a { white-space: nowrap; font-size: var(--fs-xs); font-weight: 500; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); }
.chips a:hover { border-color: var(--line-2); text-decoration: none; }
.chips a[aria-current] { background: var(--ink); border-color: var(--ink); color: #fff; }
.list-wrap { max-width: 880px; padding-bottom: 48px; }
.sec-lead { padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.sec-lead .lead { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.sec-lead .lead-media { margin: 0; }
.rows .row { display: flex; gap: 24px; justify-content: space-between; padding: 22px 0; border-bottom: 1px solid var(--line); }
.row-text { min-width: 0; flex: 1; }
.row-media { flex: 0 0 180px; aspect-ratio: 3/2; overflow: hidden; background: var(--bg-2); }
.row-media img { width: 100%; height: 100%; object-fit: cover; }
.pager { display: flex; gap: 4px; justify-content: center; padding: 28px 0; }
.pager a, .pager span { min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; padding: 0 10px; border-radius: var(--r); font-size: var(--fs-xs); }
.pager a:hover { background: var(--bg-2); text-decoration: none; }
.pager [aria-current] { background: var(--ink); color: #fff; font-weight: 700; }
.empty-state { padding: 64px 0; text-align: center; color: var(--muted); }
.err-code { font: 700 56px/1 var(--serif); color: var(--line-2); margin: 0 0 12px; }

/* ---------- 기사 ---------- */
.art-wrap { max-width: 760px; padding-top: 32px; }
.art-head { padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.art-sub { font-size: var(--fs-l); line-height: 1.55; color: var(--ink-2); margin: 0 0 18px; }
.art-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; }
.byline { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: var(--fs-xs); color: var(--muted); }
.byline strong { color: var(--ink); }
.art-actions { display: flex; gap: 6px; }
.sponsor-note { font-size: var(--fs-xs); background: #eef0f4; padding: 8px 12px; border-radius: var(--r); margin: 0 0 14px; }
.keypoints { background: var(--bg-2); border-left: 3px solid var(--ink); padding: 16px 20px; margin: 0 0 28px; }
.keypoints h2 { font-size: var(--fs-xs); letter-spacing: .08em; margin: 0 0 6px; color: var(--muted); }
.keypoints ul { margin: 0; padding-left: 18px; }
.keypoints li { font-size: var(--fs-m); line-height: 1.6; margin: 4px 0; font-weight: 500; }
.art-cover { margin: 0 0 28px; }
.art-cover figcaption, .prose figcaption { font-size: var(--fs-xs); color: var(--muted); margin-top: 8px; }
.stage-nav { position: sticky; top: 108px; z-index: 5; display: flex; gap: 4px; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); padding: 8px 0; margin-bottom: 8px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.stage-nav a { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .06em; padding: 6px 10px; border-radius: 999px; color: var(--ink-2); white-space: nowrap; }
.stage-nav a:hover { background: var(--bg-2); text-decoration: none; }
.sn-n { display: inline-flex; width: 18px; height: 18px; align-items: center; justify-content: center; border-radius: 50%; background: var(--ink); color: #fff; font-size: 11px; }
.stage { padding-top: 24px; }
.stage-label { display: flex; align-items: baseline; gap: 10px; margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.stage-n { font: 700 var(--fs-l)/1 var(--serif); color: var(--accent); }
.stage-en { font-size: 12px; font-weight: 700; letter-spacing: .12em; }
.stage-ko { font-size: var(--fs-m); font-weight: 700; }
.prose { font-size: var(--fs-m); line-height: 1.85; color: #1f232a; }
.prose p { margin: 0 0 1.15em; }
.prose h2 { font: 700 22px/1.4 var(--sans); margin: 1.8em 0 .6em; }
.prose h3 { font: 700 var(--fs-l)/1.4 var(--sans); margin: 1.6em 0 .5em; }
.prose h4 { font-size: var(--fs-m); margin: 1.4em 0 .4em; }
.prose a { color: #1d4ed8; text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.15em; }
.prose li { margin: .3em 0; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--line-2); color: var(--ink-2); }
.prose figure { margin: 1.6em 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose code { font-size: .9em; background: var(--bg-2); padding: 1px 5px; border-radius: 3px; }
.prose mark { background: #fff1b8; padding: 0 2px; }
.prose .note { background: #fff8e6; border: 1px solid #f0dfaf; padding: 12px 16px; border-radius: var(--r); margin: 1.2em 0; font-size: var(--fs-s); }
.prose .checklist { list-style: none; padding: 0; }
.prose .checklist li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px dashed var(--line); margin: 0; }
.prose .cb { flex: none; width: 18px; height: 18px; border: 1.5px solid var(--line-2); border-radius: 4px; margin-top: 6px; }
.tbl { overflow-x: auto; margin: 1.4em 0; }
.tbl table { border-collapse: collapse; width: 100%; font-size: var(--fs-s); line-height: 1.5; }
.tbl th, .tbl td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.tbl thead th { border-bottom: 2px solid var(--ink); font-weight: 700; white-space: nowrap; }
.teaser { color: var(--muted); -webkit-mask-image: linear-gradient(#000 30%, transparent); mask-image: linear-gradient(#000 30%, transparent); }
.paywall { margin: 8px 0 28px; padding: 28px; border: 1px solid var(--line-2); border-radius: 10px; text-align: center; background: linear-gradient(#fff, #fbfbf8); }
.pw-kicker { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; font-weight: 700; color: #6b5a1f; margin: 0 0 8px; }
.pw-title { font: 700 22px/1.4 var(--serif); margin: 0 0 8px; }
.pw-desc { color: var(--ink-2); margin: 0 0 18px; }
.pw-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.files, .trust { margin-top: 36px; }
.files ul { list-style: none; margin: 0; padding: 0; }
.file-name { flex: 1; font-weight: 500; }
.file-name small { display: block; color: var(--muted); font-weight: 400; }
.src-list { list-style: none; padding: 0; margin: 0 0 12px; }
.src-list li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-s); }
.src-list a { text-decoration: underline; text-underline-offset: 3px; }
.src-tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 3px; background: #eef0f3; color: var(--ink-2); margin-right: 6px; }
.src-official { background: #e6f3ec; color: var(--ok); }
.src-meta { display: block; font-size: 12px; color: var(--muted); }
.trust-note { font-size: var(--fs-xs); color: var(--muted); line-height: 1.7; }
.trust-note a { text-decoration: underline; }
.fact { font-weight: 700; margin-right: 6px; }
.fact-checked { color: var(--ok); } .fact-needs_review { color: var(--warn); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 8px; }
.tags a { font-size: var(--fs-xs); color: var(--ink-2); background: var(--bg-2); padding: 5px 10px; border-radius: 999px; }
.related { padding-top: 40px; padding-bottom: 48px; border-top: 1px solid var(--line); margin-top: 40px; }
.related .h-sec { margin-bottom: 18px; }
.rel-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.rel-grid .t-item { font-size: 17px; }

/* ---------- 플랫폼 DB ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 8px 0 0; }
.fl select, .fl input { height: 36px; border: 1px solid var(--line-2); border-radius: var(--r); padding: 0 10px; background: #fff; font-size: var(--fs-xs); }
.fl-q { flex: 1 1 200px; } .fl-q input { width: 100%; }
.count-line { font-size: var(--fs-xs); margin: 14px 0 4px; }
.pf-table { margin-bottom: 8px; }
.pf-tr { display: grid; grid-template-columns: 110px minmax(0, 1fr) 90px 92px 96px 90px; gap: 12px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-s); }
.pf-th { font-size: 12px; font-weight: 700; color: var(--muted); border-bottom: 2px solid var(--ink); padding: 8px 0; }
.pf-cell-title a { font-weight: 600; }
.pf-cell-sub { font-size: var(--fs-xs); color: var(--muted); }
.pf-detail { max-width: 880px; padding-top: 24px; padding-bottom: 48px; }
.crumbs { font-size: var(--fs-xs); color: var(--muted); margin-bottom: 12px; }
.crumbs a:hover { color: var(--ink); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0 0 24px; border-top: 1px solid var(--line); }
.facts > div { padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.facts dd { margin: 0; font-weight: 600; font-size: var(--fs-s); }
.facts a { text-decoration: underline; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0; }
.compare > div { background: var(--bg-2); padding: 16px 18px; border-radius: var(--r); font-size: var(--fs-s); }
.compare h3 { font-size: var(--fs-xs); letter-spacing: .04em; margin: 0 0 8px; color: var(--muted); }
.compare p { margin: 0 0 .6em; }
.timeline ol { list-style: none; padding: 0; margin: 0; }
.timeline li { display: flex; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-xs); }
.timeline time { color: var(--muted); min-width: 84px; }
.search-sec { margin: 28px 0; }
.rel-link { font-size: var(--fs-s); }
.rel-link a { text-decoration: underline; }

/* ---------- 커뮤니티 ---------- */
.com-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 40px; padding-bottom: 48px; }
.com-nav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 124px; align-self: start; }
.com-nav a { padding: 8px 12px; border-radius: var(--r); font-size: var(--fs-s); color: var(--ink-2); }
.com-nav a:hover { background: var(--bg-2); text-decoration: none; }
.com-nav a[aria-current] { background: var(--ink); color: #fff; font-weight: 600; }
.com-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); margin-bottom: 4px; }
.seg { display: flex; gap: 2px; background: var(--bg-2); padding: 3px; border-radius: 8px; overflow-x: auto; }
.seg a { padding: 6px 12px; border-radius: 6px; font-size: var(--fs-xs); white-space: nowrap; color: var(--ink-2); }
.seg a:hover { text-decoration: none; color: var(--ink); }
.seg a[aria-current] { background: #fff; color: var(--ink); font-weight: 700; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.notice-list { background: var(--bg-2); padding: 0 14px; border-radius: var(--r); }
.post { padding: 8px 0 20px; border-bottom: 1px solid var(--line); }
.post-body { margin-top: 20px; font-size: var(--fs-m); }
.post-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 20px; }
.post-actions form { display: inline; }
.spacer { flex: 1; }
.cmts { padding: 24px 0 48px; }
.cmt { padding: 16px 0; border-bottom: 1px solid var(--line); }
.cmt-child { margin-left: 28px; padding-left: 16px; border-left: 2px solid var(--line); }
.cmt-accepted { background: #f3faf6; margin: 0 -14px; padding: 16px 14px; border-radius: var(--r); border-bottom: 0; }
.cmt-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: var(--fs-xs); color: var(--muted); }
.cmt-hl { color: var(--muted); }
.cmt-body { margin-top: 6px; }
.cmt-body p { margin: 0 0 .5em; }
.cmt-tools { display: flex; gap: 12px; margin-top: 4px; }
.cmt-tools form { display: inline; }
.cmt-form { margin-top: 20px; display: grid; gap: 8px; justify-items: end; }
.cmt-form textarea { width: 100%; }
.reply-to { justify-self: start; margin: 0; font-size: var(--fs-xs); color: var(--muted); }
.login-cta { padding: 20px; background: var(--bg-2); border-radius: var(--r); text-align: center; }
.login-cta a { font-weight: 700; text-decoration: underline; }

/* ---------- 입력 ---------- */
.form { display: grid; gap: 16px; margin-top: 16px; }
.field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > span, .field legend { font-size: var(--fs-xs); font-weight: 600; color: var(--ink-2); padding: 0; }
.field small, legend small { font-weight: 400; color: var(--muted); margin-left: 4px; }
.field input, .field select, .field textarea, .cmt-form textarea, .search-box input {
  width: 100%; border: 1px solid var(--line-2); border-radius: var(--r); padding: 10px 12px; background: #fff; font-size: var(--fs-s); line-height: 1.5; min-height: 44px; }
.field input:focus, .field select:focus, .field textarea:focus, .cmt-form textarea:focus, .search-box input:focus { outline: 2px solid var(--ink); outline-offset: -1px; border-color: var(--ink); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: var(--fs-s); }
.check input { margin-top: 4px; width: 16px; height: 16px; flex: none; }
.check a { text-decoration: underline; }
.hint { font-size: var(--fs-xs); color: var(--muted); margin: -8px 0 0; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; }
.alert { padding: 12px 14px; border-radius: var(--r); font-size: var(--fs-s); margin: 12px 0; }
.alert-ok { background: #e9f5ee; color: #155c39; }
.alert-err { background: var(--accent-bg); color: #8d1d17; }
.box { background: var(--bg-2); padding: 14px 16px; border-radius: var(--r); font-size: var(--fs-s); }
.box p { margin: 0; }
.pick { display: flex; flex-wrap: wrap; gap: 8px; }
.pick label { position: relative; }
.pick input { position: absolute; opacity: 0; inset: 0; }
.pick span { display: inline-block; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px; font-size: var(--fs-xs); cursor: pointer; }
.pick input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.pick input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.pick-l { flex-direction: column; }
.pick-l span { display: block; border-radius: var(--r); padding: 12px 14px; font-size: var(--fs-s); }
.pick-l small { display: block; color: var(--muted); margin-top: 2px; }
.pick-l input:checked + span small { color: #c9ccd3; }
.auth { display: flex; justify-content: center; padding: 48px 24px 64px; }
.auth-box { width: 100%; max-width: 400px; }
.auth-wide { max-width: 520px; }
.auth-alt { text-align: center; font-size: var(--fs-s); color: var(--muted); margin-top: 20px; }
.auth-alt a { color: var(--ink); font-weight: 600; text-decoration: underline; }
.search-box { display: flex; gap: 8px; max-width: 640px; }
.search-box .btn { width: 52px; padding: 0; }
.radios { border: 0; padding: 0; margin: 0 0 12px; display: grid; gap: 6px; }

/* 내 정보 */
.me-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; padding: 32px 0 20px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.me-nav { display: flex; flex-wrap: wrap; gap: 6px; }
.me-nav form { display: inline; }
.me-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; padding-bottom: 48px; }
.me-grid aside .h-rail { margin-top: 0; }
.me-grid aside > * + .h-rail { margin-top: 28px; }
.notes { list-style: none; padding: 0; margin: 0; }
.notes li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-xs); }
.notes li.unread a { font-weight: 700; }
.notes time { display: block; color: var(--muted); font-size: 12px; }
.upsell { margin-top: 28px; padding: 16px; border: 1px solid var(--line-2); border-radius: var(--r); font-size: var(--fs-s); }
.upsell p { margin: 0 0 10px; }
.profile-head { display: flex; gap: 18px; align-items: center; padding: 32px 0 20px; }
.avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; font: 700 26px/1 var(--serif); flex: none; }
.stats { display: flex; gap: 14px; font-size: var(--fs-xs); color: var(--muted); margin: 4px 0 0; }

/* 멤버십 표 */
.tbl-plan { max-width: 960px; margin: 8px auto 24px; }
.tbl-plan td { text-align: center; }
.tbl-plan thead th:not(:first-child) { text-align: center; }
.yes { color: var(--ok); }
.no { color: var(--line-2); }
.plan-cta { display: flex; gap: 8px; justify-content: center; padding-bottom: 56px; }

/* 대화 상자 */
.dlg { border: 0; border-radius: 10px; padding: 24px; width: min(420px, calc(100vw - 32px)); box-shadow: 0 20px 60px rgba(0,0,0,.2); }
.dlg::backdrop { background: rgba(15,17,21,.45); }
.dlg-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; font-size: var(--fs-xs); z-index: 60; }

/* ---------- 바닥 ---------- */
.foot { border-top: 1px solid var(--line); background: var(--bg); margin-top: 0; }
.foot-in { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-top: 32px; padding-bottom: 20px; }
.foot-brand strong { font: 700 var(--fs-m)/1.3 var(--serif); }
.foot-brand p { margin: 4px 0 0; font-size: var(--fs-xs); color: var(--muted); max-width: 360px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: var(--fs-xs); color: var(--ink-2); max-width: 560px; }
.foot-copy { font-size: 12px; color: var(--muted); padding-top: 12px; padding-bottom: 28px; border-top: 1px solid var(--line); }

/* ---------- 태블릿 ---------- */
@media (max-width: 1024px) {
  :root { --gap: 24px; --h-1: 34px; }
  .top { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
  .top-latest { grid-column: 1 / -1; border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 20px; }
  .top-latest .lines { columns: 2; column-gap: var(--gap); }
  .top-latest .line { break-inside: avoid; border-top: 0; padding: 0 0 12px; }
  .rel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pf-tr { grid-template-columns: 96px minmax(0, 1fr) 92px 92px; }
  .pf-tr > :nth-child(3), .pf-tr > :nth-child(6) { display: none; }
}

/* ---------- 휴대폰 ---------- */
@media (max-width: 720px) {
  :root { --gap: 20px; --h-1: 28px; --h-2: 24px; --h-3: 21px; --fs-m: 17px; }
  html { scroll-padding-top: 100px; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .mh-top { height: 56px; }
  .logo-en { font-size: 19px; }
  .logo-ko, .hide-s { display: none; }
  .mh-actions { gap: 8px; }
  .gnb-in { gap: 20px; height: 42px; }
  .top { grid-template-columns: 1fr; padding-top: 8px; }
  .top-second { border-left: 0; padding-left: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .lead-more { grid-template-columns: 1fr; }
  .lead-more .line + .line { border-top: 1px solid var(--line); padding-top: 11px; margin-top: 11px; }
  .top-second .card-s .t-item { font-size: 16px; }
  .top-latest .lines { columns: 1; }
  .lead-media { margin: 0 -16px 12px; }
  .band-data .pf-list { columns: 1; }
  .pf-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .pf-meta { order: 3; }
  .cols3 { grid-template-columns: 1fr; gap: 28px; }
  .cols3 .col + .col { border-left: 0; padding-left: 0; border-top: 2px solid var(--ink); padding-top: 20px; }
  .ins-grid, .split, .me-grid, .rel-grid { grid-template-columns: 1fr; gap: 24px; }
  .rel-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .rel-grid .t-item { font-size: 15px; }
  .nl-in { flex-direction: column; align-items: stretch; gap: 16px; }
  .nl-form { flex: none; }
  .sec-head { padding: 24px 0 12px; }
  .sec-lead .lead { grid-template-columns: 1fr; gap: 0; }
  .sec-lead .lead-media { margin: 0 -16px 12px; }
  .rows .row { gap: 14px; padding: 18px 0; }
  .row-media { flex-basis: 96px; aspect-ratio: 1; }
  .row-sum { display: none; }
  .rows .t-item { font-size: 17px; }
  .art-wrap { padding-top: 20px; }
  .art-sub { font-size: var(--fs-m); }
  .art-actions .icon-btn span { display: none; }
  .art-cover { margin: 0 -16px 24px; }
  .art-cover figcaption { padding: 0 16px; }
  .stage-nav { top: 98px; margin: 0 -16px 8px; padding: 8px 16px; }
  .paywall { padding: 22px 16px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .compare { grid-template-columns: 1fr; }
  .pf-th { display: none; }
  .pf-tr { grid-template-columns: auto minmax(0, 1fr); gap: 6px 12px; padding: 14px 0; }
  .pf-tr > :nth-child(2) { grid-column: 1 / -1; order: -1; }
  .pf-tr > :nth-child(5) { display: block; }
  .com-layout { grid-template-columns: 1fr; gap: 12px; }
  .com-nav { flex-direction: row; overflow-x: auto; position: static; scrollbar-width: none; gap: 6px; }
  .com-nav a { white-space: nowrap; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: var(--fs-xs); }
  .com-bar { flex-wrap: wrap; }
  .field-row { grid-template-columns: 1fr; }
  .cmt-child { margin-left: 10px; }
  .me-head { align-items: flex-start; }
  .tbl-plan th, .tbl-plan td { padding: 8px 6px; font-size: 12px; }
  .foot-in { flex-direction: column; gap: 16px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
@media print {
  .masthead, .foot, .nl, .art-actions, .stage-nav, .related, .paywall { display: none !important; }
  .art-wrap { max-width: none; }
}
