:root {
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --badge-pink: #f43f5e;
    --badge-blue: #0284c7;
    --badge-purple: #8b5cf6;
    --border-color: #e2e8f0;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --card-hover-shadow: 0 10px 20px -3px rgba(37, 99, 235, 0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Pretendard', sans-serif; }
body { background-color: var(--bg-main); color: var(--text-main); line-height: 1.6; }

/* Header (Reference style) */
.icpk-top-header { background: #ffffff; border-bottom: 1px solid var(--border-color); position: sticky; top: 0; z-index: 50; }
.icpk-header-inner { max-width: 1240px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.icpk-header-left { display: flex; align-items: center; gap: 24px; flex: 1; }
.icpk-logo { display: flex; align-items: center; gap: 6px; text-decoration: none; color: #0f172a; font-size: 1.3rem; font-weight: 900; letter-spacing: -0.5px; }
.icpk-logo-mark { color: var(--primary); font-size: 1.4rem; }

.icpk-search-box { display: flex; align-items: center; background: #f1f5f9; border: 1px solid #cbd5e1; border-radius: 20px; padding: 4px 6px 4px 14px; max-width: 320px; width: 100%; }
.icpk-search-box input { border: none; background: transparent; outline: none; font-size: 0.82rem; color: #475569; width: 100%; cursor: pointer; }
.icpk-search-box button { background: var(--primary); color: #fff; border: none; border-radius: 14px; padding: 4px 12px; font-size: 0.78rem; font-weight: 700; cursor: pointer; }

.icpk-date-badge { background: #fef2f2; color: #e11d48; border: 1px solid #fecdd3; font-size: 0.75rem; font-weight: 800; padding: 5px 12px; border-radius: 20px; }

/* Sub Nav */
.icpk-sub-nav { border-top: 1px solid #f1f5f9; background: #ffffff; }
.icpk-nav-inner { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.icpk-nav-list { display: flex; list-style: none; gap: 28px; height: 46px; align-items: center; }
.icpk-nav-list a { text-decoration: none; font-size: 0.92rem; font-weight: 700; color: #475569; transition: color 0.2s; }
.icpk-nav-list a:hover, .icpk-nav-list a.active { color: var(--primary); }

/* Main Stage */
.icpk-main-stage { min-height: calc(100vh - 350px); }
.icpk-page-container { max-width: 1240px; margin: 0 auto; padding: 36px 20px 60px; }

.icpk-section-header { margin-bottom: 24px; }
.icpk-section-header h2 { font-size: 1.45rem; font-weight: 800; color: #0f172a; letter-spacing: -0.5px; }
.icpk-section-header p { color: var(--text-muted); font-size: 0.92rem; margin-top: 4px; }

/* 🌟 레퍼런스 스타일 1~14위 메타 뱃지 카드 3열 확장 그리드 (우측 배너 제거됨) 🌟 */
.icpk-badge-grid-3col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 30px; }
.icpk-badge-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 10px; padding: 16px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: var(--card-shadow); transition: border-color 0.2s, transform 0.2s; }
.icpk-badge-card:hover { border-color: #93c5fd; transform: translateY(-2px); box-shadow: var(--card-hover-shadow); }

.icpk-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid #f1f5f9; }
.icpk-rank-title-row { display: flex; align-items: center; gap: 8px; font-size: 1rem; font-weight: 800; color: #0f172a; }
.icpk-rank-pill { font-size: 0.75rem; font-weight: 800; padding: 2px 7px; border-radius: 4px; }
.icpk-rank-pill.top-1 { background: #ffe4e6; color: #e11d48; }
.icpk-rank-pill.top-2 { background: #fef3c7; color: #d97706; }
.icpk-rank-pill.top-3 { background: #dcfce7; color: #16a34a; }
.icpk-rank-pill.top-etc { background: #f1f5f9; color: #64748b; }

.btn-detail-link { font-size: 0.78rem; font-weight: 700; color: #64748b; text-decoration: none; padding: 3px 8px; border: 1px solid var(--border-color); border-radius: 4px; transition: all 0.2s; }
.btn-detail-link:hover { background: var(--primary); color: #ffffff; border-color: var(--primary); }

.icpk-card-body { display: flex; gap: 14px; align-items: center; }
.icpk-logo-thumb { width: 110px; height: 50px; border: 1px solid var(--border-color); border-radius: 6px; display: flex; align-items: center; justify-content: center; padding: 3px; flex-shrink: 0; background: #fff; }
.icpk-logo-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }

.icpk-meta-list { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.icpk-meta-row { display: flex; align-items: center; gap: 6px; font-size: 0.78rem; color: #334155; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icpk-pill-badge { font-size: 0.68rem; font-weight: 800; padding: 1px 6px; border-radius: 3px; color: #ffffff; flex-shrink: 0; }
.icpk-pill-badge.pink { background: var(--badge-pink); }
.icpk-pill-badge.blue { background: var(--badge-blue); }
.icpk-pill-badge.purple { background: var(--badge-purple); }

/* 🌟 레퍼런스 하단 안내 공지 박스 🌟 */
.icpk-notice-accordion-box { background: #f8fafc; border: 1px solid #cbd5e1; border-radius: 10px; padding: 16px 20px; margin-bottom: 45px; display: flex; justify-content: space-between; align-items: center; gap: 14px; box-shadow: var(--card-shadow); }
.icpk-notice-text { font-size: 0.85rem; color: #475569; font-weight: 600; line-height: 1.5; }
.btn-notice-toggle { background: #ffffff; border: 1px solid #cbd5e1; color: #0f172a; font-size: 0.78rem; font-weight: 800; padding: 6px 14px; border-radius: 6px; cursor: pointer; white-space: nowrap; }

/* 스펙 4각 비교 테이블 */
.icpk-section-block { margin-top: 40px; margin-bottom: 40px; }
.icpk-spec-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--border-color); border-radius: 10px; overflow: hidden; box-shadow: var(--card-shadow); }
.icpk-spec-table th { background: #f1f5f9; padding: 14px 16px; font-size: 0.85rem; font-weight: 700; color: #334155; border-bottom: 1px solid var(--border-color); }
.icpk-spec-table td { padding: 13px 16px; font-size: 0.88rem; border-bottom: 1px solid #f1f5f9; color: #334155; text-align: center; }
.icpk-spec-table td:nth-child(2) { text-align: left; font-weight: 700; color: #0f172a; }

/* Q&A 아코디언 */
.icpk-faq-accordion { display: flex; flex-direction: column; gap: 10px; }
.icpk-faq-item { background: #ffffff; border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden; box-shadow: var(--card-shadow); }
.icpk-faq-q { padding: 16px 20px; font-weight: 800; font-size: 0.95rem; color: #0f172a; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.icpk-faq-q:hover { background: #f8fafc; }
.icpk-faq-a { padding: 0 20px 16px; font-size: 0.88rem; color: #475569; line-height: 1.7; border-top: 1px solid #f8fafc; display: none; }
.icpk-faq-item.active .icpk-faq-a { display: block; }
.icpk-faq-arrow { font-size: 0.8rem; color: #64748b; transition: transform 0.2s; }
.icpk-faq-item.active .icpk-faq-arrow { transform: rotate(180deg); }

/* 클린 게시판 테이블 */
.icpk-clean-table-box { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 10px; overflow: hidden; box-shadow: var(--card-shadow); }
.icpk-clean-table { width: 100%; border-collapse: collapse; text-align: left; }
.icpk-clean-table th { background: #f1f5f9; padding: 14px 18px; font-size: 0.88rem; font-weight: 700; color: #475569; border-bottom: 1px solid var(--border-color); }
.icpk-clean-table td { padding: 14px 18px; font-size: 0.92rem; border-bottom: 1px solid #f1f5f9; color: var(--text-main); }
.icpk-clean-table tbody tr:last-child td { border-bottom: none; }
.icpk-clean-table tbody tr:hover { background: #f8fafc; }
.icpk-td-num { width: 60px; text-align: center; color: var(--primary); font-weight: 700; }
.icpk-td-title a { color: var(--text-main); text-decoration: none; font-weight: 600; display: block; }
.icpk-td-title a:hover { color: var(--primary); text-decoration: underline; }
.icpk-td-date { width: 110px; text-align: center; color: var(--text-muted); font-size: 0.82rem; }

/* 🌟 심층 SEO 콘텐츠 박스 🌟 */
.icpk-seo-content-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 36px; margin-bottom: 50px; line-height: 1.85; color: #334155; font-size: 0.95rem; box-shadow: var(--card-shadow); }
.icpk-seo-content-card h2 { font-size: 1.35rem; font-weight: 800; margin-bottom: 14px; color: #0f172a; }
.icpk-seo-content-card h3 { font-size: 1.1rem; font-weight: 700; margin: 24px 0 10px; color: var(--primary); }
.icpk-seo-content-card ul { margin: 10px 0 18px 24px; }
.icpk-seo-content-card li { margin-bottom: 6px; }

/* Article View */
.icpk-single-article { background: var(--bg-card); padding: 40px; border-radius: 12px; border: 1px solid var(--border-color); box-shadow: var(--card-shadow); }
.icpk-article-head { font-size: 1.75rem; font-weight: 800; margin-bottom: 12px; color: #0f172a; }
.icpk-article-meta { color: #64748b; font-size: 0.88rem; margin-bottom: 24px; border-bottom: 1px solid var(--border-color); padding-bottom: 16px; }
.icpk-article-body { font-size: 1.02rem; line-height: 1.85; color: #334155; }
.icpk-article-body h2 { font-size: 1.3rem; font-weight: 800; margin: 28px 0 12px; color: #0f172a; }
.icpk-article-body p { margin-bottom: 16px; }

/* Footer */
.icpk-site-footer { background: #0f172a; color: #94a3b8; padding: 50px 20px 30px; border-top: 1px solid #1e293b; }
.icpk-footer-container { max-width: 1240px; margin: 0 auto; }
.icpk-footer-top { display: flex; justify-content: space-between; gap: 40px; margin-bottom: 40px; flex-wrap: wrap; }
.icpk-footer-brand h3 { color: #ffffff; font-size: 1.2rem; font-weight: 800; margin-bottom: 8px; }
.icpk-footer-slogan { font-size: 0.88rem; color: #cbd5e1; margin-bottom: 8px; }
.icpk-footer-desc { max-width: 400px; font-size: 0.82rem; line-height: 1.5; color: #64748b; }
.icpk-footer-links { display: flex; gap: 50px; }
.icpk-link-col h4 { color: #ffffff; font-size: 0.92rem; font-weight: 700; margin-bottom: 12px; }
.icpk-link-col ul { list-style: none; }
.icpk-link-col li { margin-bottom: 8px; }
.icpk-link-col a { color: #94a3b8; text-decoration: none; font-size: 0.85rem; transition: color 0.2s; }
.icpk-link-col a:hover { color: #ffffff; }
.icpk-footer-bottom { border-top: 1px solid #1e293b; padding-top: 24px; font-size: 0.8rem; text-align: center; color: #64748b; }
.icpk-disclaimer-text { margin-top: 6px; font-size: 0.74rem; color: #475569; }

/* Responsive Mobile (3열 -> 2열 -> 1열) */
@media screen and (max-width: 1024px) {
    .icpk-badge-grid-3col { grid-template-columns: repeat(2, 1fr); }
}
@media screen and (max-width: 640px) {
    .icpk-header-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
    .icpk-header-left { width: 100%; flex-direction: column; align-items: flex-start; gap: 10px; }
    .icpk-search-box { max-width: 100%; }
    .icpk-sub-nav { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .icpk-nav-list { width: max-content; gap: 18px; }
    
    .icpk-page-container { padding: 20px 14px 40px; }
    .icpk-badge-grid-3col { grid-template-columns: 1fr; }
    .icpk-card-body { flex-direction: column; align-items: flex-start; gap: 10px; }
    .icpk-logo-thumb { width: 100%; height: 46px; }
    
    .icpk-clean-table-box, .icpk-spec-table { overflow-x: auto; }
    .icpk-clean-table { min-width: 440px; }
    .icpk-spec-table { min-width: 480px; }
    .icpk-single-article { padding: 20px 16px; }
    .icpk-footer-links { gap: 30px; }
}