/* 주소랭킹 사이트(주소랭킹.live): 흰 바탕의 순위 리포트.
   주소랭킹(따뜻한 주황 · 크림)이나 주소랭킹링크(크림 매거진 · 명조 제목)와 겹치지 않게 차가운 회색과 초록 하나만 씁니다.
   글꼴은 기기 기본 글꼴(웹 글꼴 없음), 가운데 1120px 폭. 휴대폰 폭에서도 옆으로 밀리지 않습니다. */

:root {
  color-scheme: light;
  --bg: #f4f6f9;
  --surface: #ffffff;
  --ink: #0f172a;
  --text: #334155;
  --muted: #586273;
  --line: #e2e7ee;
  --accent: #0f6b52;
  --accent-strong: #0b5440;
  --accent-soft: #e5f3ed;
  --on-accent: #ffffff;
  --band: #0f172a;
  --band-text: #cbd5e1;
  --gold-bg: #fcefd2;
  --gold: #744700;
  --silver-bg: #e8ecf2;
  --silver: #3d4859;
  --bronze-bg: #f8e4d8;
  --bronze: #80391a;
  --radius: 14px;
  --font: -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', '맑은 고딕', 'Noto Sans KR', system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0b1220;
    --surface: #111a2b;
    --ink: #f1f5f9;
    --text: #cbd5e1;
    --muted: #9aa6b8;
    --line: #223049;
    --accent: #3ccf9b;
    --accent-strong: #6ee7b7;
    --accent-soft: #10291f;
    --on-accent: #04261a;
    --band: #10291f;
    --band-text: #b5d6c8;
    --gold-bg: #3a2a08;
    --gold: #fcd57a;
    --silver-bg: #1f2a3c;
    --silver: #d3dbe6;
    --bronze-bg: #3a1d0f;
    --bronze: #f5b892;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-width: 300px;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  word-break: keep-all;
  overflow-wrap: anywhere;
}
a { color: var(--accent-strong); }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { color: var(--ink); letter-spacing: -0.02em; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 10; padding: 10px 14px; border-radius: 8px; background: var(--ink); color: var(--surface); }
.empty { color: var(--muted); }

/* ---------- 머리 · 꼬리 ---------- */
.top { background: var(--surface); border-bottom: 1px solid var(--line); }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 18px; font-weight: 800; letter-spacing: -0.02em; text-decoration: none; }
.logo-mark { flex: none; width: 28px; height: 28px; }
.logo-mark rect { fill: var(--accent); }
.logo-mark path { fill: none; stroke: var(--on-accent); stroke-width: 3.4; stroke-linecap: round; }
.top-nav { display: flex; align-items: center; gap: 20px; font-size: 15px; }
.top-nav a { color: var(--text); font-weight: 600; text-decoration: none; }
.top-nav a:hover, .top-nav a[aria-current="page"] { color: var(--accent-strong); }
.top-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.top-nav .top-cta { padding: 7px 14px; border: 1px solid var(--accent); border-radius: 999px; color: var(--accent-strong); }
.top-nav .top-cta:hover { background: var(--accent-soft); }

.foot { padding: 32px 0 40px; border-top: 1px solid var(--line); background: var(--surface); }
.foot-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.foot-top p { max-width: 46em; margin: 0; color: var(--muted); font-size: 14px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 20px 0; }
.foot-nav a { color: var(--text); font-size: 14px; text-decoration: none; }
.foot-nav a:hover { color: var(--accent-strong); text-decoration: underline; }
.foot-copy { margin: 0; color: var(--muted); font-size: 13px; }

/* ---------- 공통 조각 ---------- */
.stamp { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong); font-size: 13px; font-weight: 700; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.lead { max-width: 40em; margin: 0 0 12px; font-size: 17px; line-height: 1.75; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.btn { display: inline-flex; align-items: center; gap: 6px; min-height: 46px; padding: 0 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font-size: 15px; font-weight: 700; text-decoration: none; }
.btn:hover { border-color: var(--muted); }
.btn-primary { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { border-color: var(--accent-strong); background: var(--accent-strong); }
.btn-light { border-color: transparent; background: #ffffff; color: #0f172a; }
.btn-light:hover { border-color: transparent; background: #e5f3ed; }

.site { display: flex; flex-direction: column; min-width: 0; }
.site a { overflow: hidden; color: var(--ink); font-size: 16px; font-weight: 700; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.site a:hover { color: var(--accent-strong); text-decoration: underline; }
.site small { color: var(--muted); font-size: 13px; }

.medal, .rank { flex: none; display: grid; place-items: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.medal { width: 30px; height: 30px; border-radius: 50%; font-size: 14px; }
.medal-1, .rank-1 { background: var(--gold-bg); color: var(--gold); }
.medal-2, .rank-2 { background: var(--silver-bg); color: var(--silver); }
.medal-3, .rank-3 { background: var(--bronze-bg); color: var(--bronze); }

/* ---------- 첫 화면 ---------- */
.hero { padding: 56px 0 48px; border-bottom: 1px solid var(--line); background: var(--surface); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr); align-items: center; gap: 40px; }
.hero h1 { margin: 18px 0 14px; font-size: clamp(30px, 4.4vw, 48px); line-height: 1.2; font-weight: 800; }
.facts { display: grid; gap: 12px; margin: 0; }
.facts div { padding: 18px 20px; border-radius: var(--radius); background: var(--bg); }
.facts dt { color: var(--muted); font-size: 14px; font-weight: 600; }
.facts dd { margin: 4px 0 0; color: var(--ink); font-size: 30px; font-weight: 800; line-height: 1.2; font-variant-numeric: tabular-nums; }
.facts small { margin-left: 3px; color: var(--muted); font-size: 15px; font-weight: 700; }

.section { padding: 56px 0; }
.section-head h2 { margin: 0 0 6px; font-size: 26px; }
.section-head p { margin: 0; color: var(--muted); font-size: 15px; }

.board { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 24px 0 0; padding: 0; list-style: none; }
.board-row { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.board-row h3 { margin: 0 0 12px; font-size: 19px; }
.board-row h3 a { color: var(--ink); text-decoration: none; }
.board-row h3 a span { color: var(--muted); font-size: 14px; font-weight: 600; }
.board-row h3 a:hover, .board-row h3 a:hover span { color: var(--accent-strong); }
.podium { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.podium li { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; background: var(--bg); }

.section-article { border-block: 1px solid var(--line); background: var(--surface); }
.wrap.article { width: min(780px, 100% - 32px); }
.article h2 { margin: 48px 0 14px; font-size: 24px; }
.article h2:first-child { margin-top: 0; }
.article p { margin: 0 0 14px; font-size: 16.5px; line-height: 1.8; }
.check-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 32px; line-height: 1.7; }
.check-list li::before { content: '✓'; position: absolute; left: 0; top: 2px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-strong); font-size: 13px; font-weight: 800; }
.steps { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; counter-increment: step; }
.steps li::before { content: counter(step); grid-row: span 2; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--surface); font-weight: 800; }
.steps strong { color: var(--ink); font-size: 16px; }
.steps span { line-height: 1.65; }
.jump-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.jump-list li { display: flex; flex-direction: column; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; }
.jump-list a { font-weight: 700; text-decoration: none; }
.jump-list a:hover { text-decoration: underline; }
.jump-list small { margin-top: 2px; color: var(--muted); font-size: 13px; }
.faq h3 { margin: 22px 0 6px; font-size: 17px; }

.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 32px; border-radius: 18px; background: var(--band); }
.cta-band h2 { margin: 0 0 6px; color: #ffffff; font-size: 22px; }
.cta-band p { margin: 0; color: var(--band-text); }

/* ---------- 분야별 순위 ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; color: var(--muted); font-size: 14px; }
.crumbs a { color: var(--muted); }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }
.page-head { max-width: 820px; padding: 20px 0 4px; }
.page-head h1 { margin: 16px 0 12px; font-size: clamp(28px, 4vw, 40px); line-height: 1.25; font-weight: 800; }
.ranking-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; align-items: start; gap: 28px; margin: 24px 0 40px; }
.rank-list { margin: 0; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); list-style: none; }
.rank-item { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-top: 1px solid var(--line); }
.rank-item:first-child { border-top: 0; }
.rank { width: 34px; height: 34px; border-radius: 10px; background: var(--bg); color: var(--text); font-size: 15px; }
.rank-item.is-top .site a { font-size: 17px; }
.ranking-side { display: grid; gap: 14px; }
.side-card { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.side-card h2 { margin: 0 0 10px; font-size: 18px; }
.side-card p { margin: 0 0 12px; line-height: 1.7; }
.side-card .muted { color: var(--muted); font-size: 14px; }
.side-card.is-accent { border-color: transparent; background: var(--accent-soft); }
.others { padding: 0 0 56px; }
.others h2 { margin: 0 0 12px; font-size: 20px; }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chip-list a { display: inline-flex; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; }
.chip-list a:hover { border-color: var(--accent); color: var(--accent-strong); }

/* ---------- 사이트 추천 ---------- */
.section-posts { padding-top: 0; }
.section-head.with-link { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 20px; }
.more-link { font-size: 15px; font-weight: 700; text-decoration: none; }
.more-link:hover { text-decoration: underline; }
.post-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 24px 0 0; padding: 0; list-style: none; }
.post-cards a { display: flex; flex-direction: column; height: 100%; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text); text-decoration: none; }
.post-cards a:hover { border-color: var(--accent); }
.post-cards h2, .post-cards h3 { margin: 0 0 8px; font-size: 18px; line-height: 1.45; }
.post-cards a:hover h2, .post-cards a:hover h3 { color: var(--accent-strong); }
.post-cards p { flex: 1; margin: 0 0 12px; font-size: 15px; line-height: 1.65; }
.post-date { color: var(--muted); font-size: 13px; }
.board-posts { padding: 8px 0 56px; }
.board-posts .post-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 16px; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 28px; color: var(--muted); font-size: 15px; }
.pagination a { font-weight: 700; text-decoration: none; }

.post-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; align-items: start; gap: 36px; padding-bottom: 56px; }
.post { min-width: 0; }
.post .page-head { max-width: none; }
.prose { max-width: 720px; font-size: 16.5px; line-height: 1.85; }
.prose h2 { margin: 40px 0 12px; font-size: 22px; line-height: 1.4; }
.prose h3 { margin: 28px 0 10px; font-size: 18px; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--accent); }
.prose blockquote { margin: 0 0 18px; padding: 12px 16px; border-left: 3px solid var(--accent); border-radius: 0 10px 10px 0; background: var(--accent-soft); }
.prose hr { margin: 32px 0; border: 0; border-top: 1px solid var(--line); }
.prose code { padding: 1px 6px; border-radius: 6px; background: var(--bg); font-size: 0.92em; }
.prose strong { color: var(--ink); }
.post-back { margin: 36px 0 0; padding-top: 20px; border-top: 1px solid var(--line); }
.side-list { display: grid; gap: 10px; margin: 0 0 12px; padding: 0; list-style: none; }
.side-list a { color: var(--ink); font-weight: 600; line-height: 1.5; text-decoration: none; }
.side-list a:hover { color: var(--accent-strong); text-decoration: underline; }

.message { padding: 80px 0; text-align: center; }
.message h1 { margin: 0 0 10px; font-size: 28px; }
.message p { margin: 0; color: var(--muted); }
.message .actions { justify-content: center; }

/* ---------- 좁은 화면 ---------- */
@media (max-width: 900px) {
  .ranking-grid, .post-grid { grid-template-columns: minmax(0, 1fr); }
  .post-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .board, .post-cards, .board-posts .post-cards { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .top-inner { flex-direction: column; align-items: flex-start; gap: 10px; padding: 12px 0; }
  .top-nav { flex-wrap: wrap; gap: 8px 16px; font-size: 14px; }
  .prose { font-size: 16px; }
  .prose h2 { margin-top: 32px; font-size: 20px; }
  .hero { padding: 36px 0 32px; }
  .lead { font-size: 16px; }
  .facts { gap: 8px; }
  .facts div { padding: 12px; }
  .facts dt { font-size: 12px; }
  .facts dd { font-size: 22px; }
  .facts small { font-size: 12px; }
  .section { padding: 40px 0; }
  .section-head h2 { font-size: 22px; }
  .article h2 { margin-top: 40px; font-size: 21px; }
  .article p { font-size: 16px; }
  .cta-band { padding: 24px; }
  .rank-item { padding: 12px 14px; }
}
