
:root {
  --paper: #ffffff;
  --ink: #1b1b1b;
  --sub: #5c5c5c;
  --faint: #8f8f8f;
  --line: #e5e5e5;
  --ph: #eeeeee;
  --accent: #1f6b57;   /* 짙은 초록 하나, 글자·선에만 */
  --serif: 'Gowun Batang', serif;
  --sans: 'Pretendard', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --wrap: 1160px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; word-break: keep-all; overflow-wrap: break-word; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: auto; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.pic { background: var(--ph); position: relative; aspect-ratio: 3/2; }
.pic::after { content: attr(data-ph); position: absolute; left: 12px; bottom: 10px; right: 12px; font-size: 11.5px; line-height: 1.4; color: #9a9a9a; }

/* 마스트헤드: 가운데 정렬 */
.mast { text-align: center; padding: 30px 0 18px; }
.logo { font-family: var(--serif); font-size: 40px; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.logo i { font-style: normal; color: var(--accent); }
.mast p { font-size: 13px; color: var(--sub); margin-top: 10px; }
.nav { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.nav .wrap { display: flex; justify-content: center; align-items: center; gap: 34px; height: 48px; font-size: 15px; font-weight: 600; overflow-x: auto; white-space: nowrap; position: relative; }
.nav a.on { color: var(--accent); }
.nav .search { position: absolute; right: 32px; color: var(--faint); display: flex; }
.nav .search svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 2; }

/* 공통 */
.cat { font-size: 12.5px; font-weight: 700; color: var(--accent); }
.meta { font-size: 12.5px; color: var(--faint); font-variant-numeric: tabular-nums; }
.serif { font-family: var(--serif); font-weight: 700; letter-spacing: -.02em; text-wrap: balance; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; border-top: 1px solid var(--ink); padding-top: 12px; margin-bottom: 20px; }
.sec-head h2 { font-family: var(--serif); font-size: 22px; font-weight: 700; }
.sec-head a { font-size: 13px; color: var(--sub); }
a:hover .t { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* 대표 글: 사진 왼쪽 크게, 제목 오른쪽 */
.lead { display: grid; grid-template-columns: 1.25fr 1fr; gap: 36px; padding: 36px 0 40px; border-bottom: 1px solid var(--line); align-items: center; }
.lead .pic { aspect-ratio: 4/3; }
.lead h1 { font-size: 36px; line-height: 1.32; margin: 10px 0 16px; }
.lead .sum { font-size: 16.5px; color: var(--sub); line-height: 1.75; }
.lead .meta { display: block; margin-top: 14px; }

/* 대표 글 아래 두 번째 줄: 짝 글 + 최신 글 */
.second { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 36px; padding: 32px 0 48px; }
.pair .pic { aspect-ratio: 16/10; margin-bottom: 14px; }
.pair .t { font-family: var(--serif); font-size: 20px; font-weight: 700; line-height: 1.42; display: block; margin: 6px 0 8px; }
.pair p { font-size: 14.5px; color: var(--sub); line-height: 1.7; }
.latest { grid-column: span 2; border-left: 1px solid var(--line); padding-left: 36px; }
.latest h2 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.latest ul { list-style: none; columns: 2; column-gap: 32px; }
.latest li { border-top: 1px solid var(--line); padding: 13px 0; break-inside: avoid; }
.latest li .t { font-size: 15.5px; font-weight: 600; line-height: 1.45; display: block; margin: 2px 0 3px; }

/* 공간별 묶음 */
.topics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; padding-bottom: 52px; }
.topic .first .pic { margin-bottom: 12px; }
.topic .first .t { font-family: var(--serif); font-size: 19px; font-weight: 700; line-height: 1.42; display: block; margin-bottom: 6px; }
.topic .first p { font-size: 14px; color: var(--sub); line-height: 1.65; }
.topic ul { list-style: none; margin-top: 14px; }
.topic li { border-top: 1px solid var(--line); padding: 11px 0; }
.topic li .t { font-size: 15px; font-weight: 600; line-height: 1.45; }

/* 고르는 법 띠: 바탕색 없이 굵은 선으로만 구분 */
.guide { border-top: 3px double var(--ink); padding: 36px 0 40px; margin-bottom: 56px; display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; }
.guide h2 { font-family: var(--serif); font-size: 27px; line-height: 1.38; margin: 8px 0 12px; }
.guide p { color: var(--sub); font-size: 15px; line-height: 1.75; }
.guide ol { list-style: none; counter-reset: c; }
.guide li { counter-increment: c; display: grid; grid-template-columns: 34px 1fr; gap: 6px; border-top: 1px solid var(--line); padding: 14px 0; }
.guide li:first-child { border-top: 0; padding-top: 0; }
.guide li::before { content: counter(c); font-family: var(--serif); font-weight: 700; font-size: 19px; color: var(--accent); line-height: 1.35; }
.guide li .t { font-size: 16px; font-weight: 600; }

/* 글 화면 */
.article { max-width: 700px; margin: 0 auto; padding: 44px 20px 30px; }
.article .cat { display: block; margin-bottom: 12px; }
.article h1 { text-align: center; font-family: var(--serif); font-size: 36px; line-height: 1.34; letter-spacing: -.02em; text-wrap: balance; }
.article .dek { text-align: center; text-wrap: balance; font-size: 18px; color: var(--sub); line-height: 1.75; margin-top: 16px; }
.byline { display: flex; gap: 14px; margin-top: 22px; padding-bottom: 22px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--faint); }
.byline b { color: var(--ink); font-weight: 600; }
.figure { margin: 30px 0; }
.figure .pic { aspect-ratio: 16/10; }
.figure figcaption { font-size: 13px; color: var(--faint); margin-top: 8px; }
.body { font-size: 17.5px; line-height: 1.95; }
.body p { margin: 0 0 22px; }
.body h2 { font-family: var(--serif); font-size: 25px; line-height: 1.4; margin: 46px 0 14px; }
.body h3 { font-size: 19px; margin: 30px 0 8px; }
.body .key { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 18px 0; margin: 28px 0; font-size: 16.5px; }
.body .key b { display: block; font-family: var(--serif); font-size: 18px; margin-bottom: 8px; }
.body .key ul { list-style: none; }
.body .key li { padding: 5px 0 5px 16px; position: relative; line-height: 1.7; }
.body .key li::before { content: ""; position: absolute; left: 0; top: 15px; width: 6px; height: 6px; background: var(--accent); }
.body table { width: 100%; border-collapse: collapse; margin: 10px 0 28px; font-size: 15px; line-height: 1.6; }
.body caption { caption-side: top; text-align: left; font-weight: 700; font-size: 14px; padding-bottom: 8px; }
.body th { text-align: left; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 10px 8px; font-size: 14px; }
.body td { border-bottom: 1px solid var(--line); padding: 11px 8px; vertical-align: top; }
.related { max-width: 700px; margin: 0 auto 60px; padding: 0 20px; }
.related ul { list-style: none; }
.related li { border-bottom: 1px solid var(--line); padding: 13px 0; }
.related li .t { font-weight: 600; }

/* 바닥글 */
.foot { border-top: 1px solid var(--ink); padding: 28px 0 42px; font-size: 13px; color: var(--sub); }
.foot .wrap { display: flex; justify-content: space-between; gap: 20px; }
.foot .logo { font-size: 24px; color: var(--ink); }
.foot nav { display: flex; gap: 18px; }

@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .mast { padding: 20px 0 12px; }
  .logo { font-size: 30px; }
  .mast p { font-size: 12px; margin-top: 6px; }
  .nav .wrap { justify-content: flex-start; gap: 22px; height: 44px; font-size: 14.5px; }
  .nav .search { display: none; }
  .lead { grid-template-columns: 1fr; gap: 18px; padding: 20px 0 30px; }
  .lead h1 { font-size: 26px; margin: 6px 0 10px; }
  .lead .sum { font-size: 15.5px; }
  .second { grid-template-columns: 1fr; gap: 30px; padding: 24px 0 40px; }
  .latest { grid-column: auto; border-left: 0; padding-left: 0; }
  .latest ul { columns: 1; }
  .topics { grid-template-columns: 1fr; gap: 34px; }
  .guide { grid-template-columns: 1fr; gap: 20px; padding: 28px 0 30px; }
  .guide h2 { font-size: 22px; }
  .article { padding: 26px 16px 20px; }
  .article h1 { font-size: 27px; }
  .article .dek { font-size: 16.5px; }
  .body { font-size: 16.5px; line-height: 1.9; }
  .body h2 { font-size: 21px; }
  .body table { display: block; overflow-x: auto; }
  .related { padding: 0 16px; }
  .foot .wrap { flex-direction: column; }
}

/* 목록 페이지 */
.page-head { padding: 34px 0 26px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-family: var(--serif); font-size: 32px; }
.page-head p { color: var(--sub); margin-top: 8px; max-width: 640px; }
.rows { list-style: none; margin-bottom: 64px; }
.rows li a { display: grid; grid-template-columns: 220px 1fr; gap: 28px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.rows .t { font-family: var(--serif); font-size: 21px; font-weight: 700; line-height: 1.42; display: block; margin: 4px 0 8px; }
.rows p { font-size: 15px; color: var(--sub); line-height: 1.7; }
.pic img { width: 100%; height: 100%; object-fit: cover; }
.pic:has(img)::after { display: none; }

/* 본문 요소 */
.body blockquote { border-left: 2px solid var(--line); padding: 2px 0 2px 16px; margin: 18px 0 22px; font-size: 15.5px; color: var(--sub); line-height: 1.8; }
.body blockquote p { margin: 0; }
.body blockquote.key { border-left: 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 18px 0; margin: 28px 0; font-size: 16.5px; color: var(--ink); }
.body blockquote.key p { margin: 0 0 8px; }
.body blockquote.key strong { font-family: var(--serif); font-size: 18px; }
.body blockquote.key ul { list-style: none; margin: 0; }
.body blockquote.key li { padding: 5px 0 5px 16px; position: relative; line-height: 1.7; }
.body blockquote.key li::before { content: ""; position: absolute; left: 0; top: 15px; width: 6px; height: 6px; background: var(--accent); }
.body ul, .body ol { margin: 0 0 22px 22px; }
.body li { margin: 4px 0; }
.body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.body h3 { font-size: 19px; margin: 30px 0 8px; }
.body .refs { font-size: 14px; color: var(--sub); }
.page-body { max-width: 700px; margin: 0 auto; padding: 0 20px 80px; }
.page-body p { font-size: 16.5px; line-height: 1.9; margin-bottom: 18px; }
.page-body h2 { font-family: var(--serif); font-size: 22px; margin: 34px 0 10px; }
@media (max-width: 760px) {
  .page-head h1 { font-size: 26px; }
  .rows li a { grid-template-columns: 112px 1fr; gap: 14px; padding: 18px 0; }
  .rows .t { font-size: 16.5px; margin: 2px 0 0; }
  .rows p { display: none; }
}
.body img { width: 100%; height: auto; margin: 8px 0 0; }
.body p.cap { font-size: 13px; color: var(--faint); margin: 6px 0 26px; }

.comparison-hero { margin: 34px 0; }
.comparison-hero h2 { font-size: 22px; font-weight: 700; line-height: 1.4; margin-bottom: 16px; }
.comparison-hero table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 15px; line-height: 1.65; }
.comparison-hero thead { background: var(--accent); color: white; }
.comparison-hero thead th { padding: 20px 14px; text-align: left; font-size: 18px; font-weight: 700; vertical-align: middle; }
.comparison-hero thead th:first-child { width: 20%; font-size: 13px; font-weight: 500; }
.comparison-hero tbody th, .comparison-hero td { border-bottom: 1px solid #d5e2dd; padding: 16px 14px; text-align: left; vertical-align: top; }
.comparison-hero tbody th { font-size: 13px; font-weight: 600; color: var(--accent); background: #f2f7f4; }
.comparison-hero td + td { border-left: 1px solid #e5ece8; }
.comparison-hero tbody tr:last-child { background: #edf5f0; }
.comparison-hero tbody tr:last-child th, .comparison-hero tbody tr:last-child td { border-bottom: 2px solid var(--accent); font-weight: 600; }
@media (max-width: 760px) {
  .comparison-hero { margin: 26px 0; }
  .comparison-hero h2 { font-size: 20px; }
  .comparison-hero table { font-size: 13.5px; }
  .comparison-hero thead th { padding: 16px 10px; font-size: 16px; }
  .comparison-hero thead th:first-child { width: 22%; font-size: 12px; }
  .comparison-hero tbody th, .comparison-hero td { padding: 13px 10px; }
  .comparison-hero tbody th { font-size: 12px; }
}