/* CryptoFlow 공통 스타일 — 가이드·정책 페이지용 (메인 계산기와 같은 색상 체계) */
:root {
    --bg: #121826;
    --panel: #1A2233;
    --panel-2: #232e42;
    --line: #2a3f5f;
    --text: #E5ECF6;
    --text-2: #cdd7e5;
    --muted: #8c9db3;
    --accent: #FFB800;
    --btc: #f7931a;
    --eth: #627eea;
}
* { box-sizing: border-box; }
body { font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif; margin: 0; background: var(--bg); color: var(--text); line-height: 1.75; }
a { color: var(--accent); }
a:hover { color: #ffd060; }

/* 상단 내비게이션 */
.site-nav { border-bottom: 1px solid var(--line); background: #0f1420; }
.site-nav .inner { max-width: 960px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.site-nav .brand { color: var(--text); font-weight: bold; font-size: 18px; text-decoration: none; display: flex; align-items: center; gap: 8px; }
.site-nav .brand img { width: 24px; height: 24px; border-radius: 6px; }
.site-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; flex-wrap: wrap; }
.site-nav ul a { display: block; padding: 6px 12px; border-radius: 6px; color: var(--text-2); text-decoration: none; font-size: 15px; }
.site-nav ul a:hover, .site-nav ul a[aria-current="page"] { background: var(--panel-2); color: var(--accent); }

/* 본문 */
main.page { max-width: 820px; margin: 0 auto; padding: 32px 16px 48px; }
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.breadcrumb a { color: var(--muted); }
main.page h1 { font-size: 30px; line-height: 1.35; margin: 0 0 12px; }
.post-meta { color: var(--muted); font-size: 14px; margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.lead { font-size: 18px; color: var(--text); }
main.page h2 { font-size: 22px; margin: 40px 0 12px; padding-left: 12px; border-left: 4px solid var(--accent); }
main.page h3 { font-size: 18px; margin: 28px 0 8px; color: var(--text); }
main.page p, main.page li { color: var(--text-2); font-size: 16px; }
main.page ul, main.page ol { padding-left: 22px; }
main.page li { margin-bottom: 6px; }
main.page strong { color: var(--text); }
.btc-accent { color: var(--btc); }
.eth-accent { color: var(--eth); }

/* 표 */
.table-wrap { overflow-x: auto; margin: 16px 0 24px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
th { background: var(--panel-2); color: var(--text); font-weight: bold; }
td { color: var(--text-2); }
td.num { text-align: right; font-variant-numeric: tabular-nums; }
caption { caption-side: bottom; text-align: left; font-size: 13px; color: var(--muted); padding-top: 8px; }

/* 박스 */
.callout { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 16px 20px; margin: 24px 0; }
.callout p { margin: 6px 0; }
.callout.key { border-left: 4px solid var(--accent); }
.formula { font-family: 'SFMono-Regular', Consolas, monospace; background: #0f1420; border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px; overflow-x: auto; color: var(--text); font-size: 15px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 32px 0; }
.cta a { display: inline-block; padding: 12px 20px; border-radius: 8px; background: var(--accent); color: #121826; font-weight: bold; text-decoration: none; }
.cta a.secondary { background: var(--panel-2); color: var(--text); border: 1px solid var(--line); }
.disclaimer { font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); margin-top: 40px; padding-top: 16px; }

/* 관련 글 / 가이드 목록 */
.related { margin-top: 40px; }
.related h2 { border-left: none; padding-left: 0; font-size: 18px; }
.card-list { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.card-list li { margin: 0; }
.card-list a { display: block; height: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 16px; text-decoration: none; color: var(--text); transition: border-color .2s, transform .2s; }
.card-list a:hover { border-color: var(--accent); transform: translateY(-2px); }
.card-list .tag { font-size: 12px; font-weight: bold; color: var(--muted); }
.card-list .tag.btc { color: var(--btc); }
.card-list .tag.eth { color: var(--eth); }
.card-list .title { display: block; font-weight: bold; margin: 4px 0 6px; line-height: 1.45; }
.card-list .desc { display: block; font-size: 14px; color: var(--muted); line-height: 1.6; }

/* 푸터 */
.site-footer { border-top: 1px solid var(--line); text-align: center; padding: 24px 16px; color: var(--muted); font-size: 14px; }
.site-footer nav { display: flex; justify-content: center; gap: 6px 16px; flex-wrap: wrap; margin-bottom: 8px; }
.site-footer a { color: var(--text-2); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer p { margin: 4px 0; }

@media (max-width: 600px) {
    main.page h1 { font-size: 24px; }
    .lead { font-size: 17px; }
    main.page h2 { font-size: 20px; }
}
