/* 금시세 거래소 비교 — Warm Gold Refined */

@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css');

:root {
    --gp-bg: #FAFAF8;
    --gp-surface: #ffffff;
    --gp-border: #eee;
    --gp-border-light: #f4f4f2;
    --gp-text: #1a1a1a;
    --gp-text-dim: #666;
    --gp-text-muted: #aaa;
    --gp-gold: #B8860B;
    --gp-gold-light: #FDF6E3;
    --gp-gold-accent: #DAA520;
    --gp-up: #D94040;
    --gp-down: #2E7DD1;
    --gp-radius: 14px;
    --gp-font: 'Pretendard Variable', 'Noto Sans KR', -apple-system, sans-serif;
}

body {
    background: var(--gp-bg);
    color: var(--gp-text);
    font-family: var(--gp-font);
    margin: 0;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* 네비게이션 */
.site-nav {
    background: #fff;
    border-bottom: 1px solid var(--gp-border);
    position: relative;
    z-index: 100;
}
.site-nav-inner {
    max-width: 880px;
    margin: 0 auto;
    padding: 11px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.site-nav-logo {
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--gp-gold);
    text-decoration: none;
    letter-spacing: -0.02em;
}
.site-nav-links a {
    color: var(--gp-text-dim);
    text-decoration: none;
    font-size: 0.82rem;
    margin-left: 16px;
    transition: color 0.15s;
}
.site-nav-links a:hover { color: var(--gp-gold); }

/* 히어로 */
.hub-hero { text-align: center; padding: 36px 20px 20px; }
.hub-hero-sub {
    color: var(--gp-gold);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
}
.hub-hero h1 {
    color: var(--gp-text);
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    margin: 0 0 8px;
}
.hub-hero p {
    color: var(--gp-text-dim);
    font-size: 0.86rem;
    line-height: 1.7;
}
.hub-container {
    max-width: 880px;
    margin: 0 auto;
    padding: 0 16px;
}

/* 메인 탭 */
.gp-main-tabs {
    display: flex;
    gap: 0;
    margin: 0 0 20px;
    border-bottom: 2px solid var(--gp-border);
}
.gp-main-tab {
    flex: 1;
    min-width: 0;
    padding: 11px 8px;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    background: transparent;
    color: var(--gp-text-muted);
    font-family: var(--gp-font);
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    white-space: nowrap;
}
.gp-main-tab:hover { color: var(--gp-text); }
.gp-main-tab.active {
    color: var(--gp-gold);
    border-bottom-color: var(--gp-gold);
    font-weight: 700;
}

/* 탭 패널 */
.gp-tab-panel { display: none; }
.gp-tab-panel.active { display: block; }

/* 섹션 제목 */
.gp-section-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--gp-text);
    margin: 0 0 6px;
    letter-spacing: -0.02em;
}
.gp-subsection { margin: 28px 0 0; }
.gp-subsection h3 {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--gp-text);
    margin: 0 0 10px;
}
.gp-update-time {
    font-size: 0.72rem;
    color: var(--gp-text-muted);
    margin-bottom: 14px;
    font-variant-numeric: tabular-nums;
}

/* ══════ 비교표 ══════ */
.gp-compare-table-wrap {
    overflow-x: auto;
    border-radius: var(--gp-radius);
    background: var(--gp-surface);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 20px rgba(0,0,0,0.03);
    border: 1px solid var(--gp-border);
}
.gp-compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.86rem;
    font-variant-numeric: tabular-nums;
}

/* 헤더 */
.gp-compare-table thead {
    background: #F9F7F3;
    border-bottom: 2px solid var(--gp-border);
}
.gp-compare-table th {
    padding: 13px 12px;
    font-weight: 700;
    font-size: 0.76rem;
    text-align: center;
    white-space: nowrap;
    color: var(--gp-text-dim);
    letter-spacing: 0.03em;
}
.gp-th-item { text-align: left; min-width: 50px; width: 60px; }
.gp-th-source { min-width: 110px; }
.gp-th-best { min-width: 70px; }

/* 바디 */
.gp-compare-table td {
    padding: 14px 12px;
    text-align: center;
    border-bottom: 1px solid var(--gp-border-light);
    vertical-align: middle;
}
.gp-compare-table tr:last-child td { border-bottom: none; }
.gp-compare-table tbody tr:hover td { background: #FDFCFA; }

/* ── 품목 구분 행 ── */
.gp-item-name {
    text-align: left !important;
    font-weight: 800 !important;
    font-size: 0.88rem !important;
    color: var(--gp-gold) !important;
    background: var(--gp-gold-light) !important;
    border-left: 3px solid var(--gp-gold-accent) !important;
    border-bottom: 1px solid #EDE8D5 !important;
    padding: 11px 12px 11px 16px !important;
}

/* 살때/팔때 라벨 */
.gp-item-sub {
    text-align: left;
    font-weight: 600;
    color: var(--gp-text-dim);
    font-size: 0.78rem;
    padding-left: 12px !important;
    white-space: nowrap;
    width: 60px;
}

/* 가격 */
.gp-price {
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--gp-text);
}
.gp-price-na {
    color: var(--gp-text-muted);
    font-size: 0.78rem;
}

/* ★ 최유리 하이라이트 */
.gp-best {
    background: var(--gp-gold-light) !important;
    position: relative;
}
.gp-best-star {
    color: var(--gp-gold-accent);
    font-weight: 900;
    font-size: 0.85rem;
}
.gp-best-label {
    font-size: 0.68rem;
    color: var(--gp-gold);
    font-weight: 600;
    display: block;
    margin-top: 2px;
}

/* 등락 */
.gp-change-up { color: var(--gp-up); font-size: 0.72rem; font-weight: 500; }
.gp-change-down { color: var(--gp-down); font-size: 0.72rem; font-weight: 500; }
.gp-change-flat { color: var(--gp-text-muted); font-size: 0.72rem; }

/* 스프레드 */
.gp-diff { font-size: 0.78rem; color: var(--gp-gold); font-weight: 600; }

/* ══════ 환산 테이블 ══════ */
.gp-conv-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--gp-surface);
    border-radius: var(--gp-radius);
    overflow: hidden;
    border: 1px solid var(--gp-border);
    font-size: 0.86rem;
}
.gp-conv-table thead { background: #F9F7F3; }
.gp-conv-table th {
    padding: 12px 14px;
    font-weight: 700;
    font-size: 0.76rem;
    text-align: left;
    color: var(--gp-text-dim);
    letter-spacing: 0.02em;
    border-bottom: 2px solid var(--gp-border);
}
.gp-conv-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--gp-border-light);
}
.gp-conv-table tr:last-child td { border-bottom: none; }
.gp-conv-table tbody tr:hover td { background: #FDFCFA; }
.gp-conv-price { font-weight: 700; color: var(--gp-text); font-variant-numeric: tabular-nums; }

/* 돌반지 행 */
.gp-ring-row td { background: var(--gp-gold-light); }
.gp-ring-row td:first-child { color: var(--gp-gold); font-weight: 700; }

/* 참고 메모 */
.gp-note { font-size: 0.72rem; color: var(--gp-text-muted); margin: 12px 0 0; line-height: 1.7; }
.gp-note p { margin: 2px 0; }

/* 로딩 */
.gp-loading { text-align: center; color: var(--gp-text-muted); padding: 48px 0; font-size: 0.82rem; }

/* TradingView */
.gp-tv-chart-wrap {
    width: 100%;
    height: 500px;
    border-radius: var(--gp-radius);
    overflow: hidden;
    border: 1px solid var(--gp-border);
    background: #fff;
    margin-bottom: 16px;
}

/* CTA 배너 */
.nf-cta-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #2D2D3F, #3d3d50);
    color: #fff;
    padding: 16px 20px;
    border-radius: var(--gp-radius);
    text-decoration: none;
    margin: 16px 0;
    transition: transform 0.15s;
}
.nf-cta-banner:hover { transform: translateY(-1px); }
.nf-cta-icon { font-size: 1.4rem; flex-shrink: 0; }
.nf-cta-text { flex: 1; }
.nf-cta-text strong { display: block; font-size: 0.9rem; }
.nf-cta-text small { color: #bbb; font-size: 0.75rem; }
.nf-cta-arrow { font-size: 1rem; color: var(--gp-gold-accent); }

/* SEO 섹션 */
.nf-seo-section {
    background: var(--gp-surface);
    border-radius: var(--gp-radius);
    padding: 28px;
    margin: 16px 0;
    border: 1px solid var(--gp-border);
}
.nf-seo-title { font-size: 1rem; font-weight: 800; margin: 0 0 16px; color: var(--gp-text); }
.nf-seo-section h3 { font-size: 0.9rem; font-weight: 700; margin: 22px 0 8px; color: var(--gp-text); }
.nf-seo-section p { font-size: 0.84rem; color: var(--gp-text-dim); line-height: 1.85; margin: 0 0 8px; }
.nf-txt-b { font-weight: 700; color: var(--gp-text); }
.nf-txt-hl { color: var(--gp-gold); font-weight: 600; }
.nf-txt-ul { text-decoration: underline; text-underline-offset: 3px; }

.nf-ad-slot { margin: 16px 0; }
.nf-disclaimer { text-align: center; font-size: 0.7rem; color: var(--gp-text-muted); padding: 20px 0; line-height: 1.7; }

/* FAQ */
.nf-faq-item { border-bottom: 1px solid var(--gp-border-light); }
.nf-faq-item:last-child { border-bottom: none; }
.nf-faq-q {
    width: 100%; display: flex; align-items: center; justify-content: space-between;
    background: none; border: none; padding: 15px 0;
    font-family: var(--gp-font); font-size: 0.88rem; font-weight: 600;
    color: var(--gp-text); cursor: pointer; text-align: left; transition: color 0.15s;
}
.nf-faq-q:hover { color: var(--gp-gold); }
.nf-faq-arrow { font-size: 0.65rem; color: var(--gp-text-muted); transition: transform 0.3s; flex-shrink: 0; margin-left: 10px; }
.nf-faq-arrow.open { transform: rotate(180deg); color: var(--gp-gold); }
.nf-faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; font-size: 0.82rem; color: var(--gp-text-dim); line-height: 1.85; padding: 0 0 0 4px; }
.nf-faq-a.show { max-height: 300px; padding: 0 0 16px 4px; }

/* 추천 서비스 */
.hub-crosslink { max-width: 880px; margin: 0 auto; padding: 20px 16px 0; }
.hub-section-title { color: var(--gp-text); font-size: 0.95rem; font-weight: 700; margin-bottom: 12px; }
.hub-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.hub-card {
    background: var(--gp-surface); border: 1px solid var(--gp-border); border-radius: 10px;
    padding: 16px 12px; text-decoration: none; text-align: center; transition: all 0.15s;
}
.hub-card:hover { border-color: var(--gp-gold-accent); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.hub-card-emoji { font-size: 1.5rem; display: block; margin-bottom: 6px; }
.hub-card-name { font-size: 0.82rem; font-weight: 700; color: var(--gp-text); display: block; }
.hub-card-desc { font-size: 0.7rem; color: var(--gp-text-muted); display: block; margin-top: 4px; }

/* 푸터 */
.site-footer { background: #2D2D3F; color: #999; padding: 28px 0; text-align: center; margin-top: 40px; }
.site-footer-inner { max-width: 880px; margin: 0 auto; padding: 0 20px; }
.site-footer-links a { color: #bbb; text-decoration: none; font-size: 0.78rem; margin: 0 12px; }
.site-footer-links a:hover { color: #fff; }
.site-footer-copy { font-size: 0.7rem; margin-top: 10px; color: #777; }

/* 반응형 */
@media (max-width: 700px) {
    .site-nav-inner { padding: 9px 12px; }
    .gp-main-tab { padding: 10px 4px; font-size: 0.78rem; }
    .gp-compare-table { font-size: 0.8rem; }
    .gp-compare-table th { padding: 10px 8px; font-size: 0.7rem; }
    .gp-compare-table td { padding: 10px 8px; }
    .gp-price { font-size: 0.84rem; }
    .gp-tv-chart-wrap { height: 350px; }
    .nf-seo-section { padding: 20px 16px; }
    .hub-hero h1 { font-size: 1.3rem; }
}
@media (max-width: 480px) {
    .gp-th-source { min-width: 80px; }
}
