:root {
    --kecta-bg-body: #f8fafc;
    --kecta-bg-card: #ffffff;
    --kecta-primary: #059669; /* 세이지 에메랄드 */
    --kecta-primary-hover: #047857;
    --kecta-navy-dark: #0f172a;
    --kecta-text-main: #1e293b;
    --kecta-text-muted: #64748b;
    --kecta-border: #e2e8f0;
    --kecta-pill-pink: #f43f5e;
    --kecta-pill-blue: #0284c7;
    --kecta-pill-purple: #8b5cf6;
    --kecta-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --kecta-hover-shadow: 0 10px 20px -3px rgba(5, 150, 105, 0.12);
}

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

/* Header */
.kecta-header { background: #ffffff; border-bottom: 1px solid var(--kecta-border); position: sticky; top: 0; z-index: 50; }
.kecta-header-top { border-bottom: 1px solid #f1f5f9; padding: 12px 0; }
.kecta-header-inner { max-width: 1240px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; }
.kecta-brand-wrap { display: flex; align-items: center; gap: 10px; }
.kecta-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.kecta-emblem { background: var(--kecta-navy-dark); color: #6ee7b7; font-size: 0.8rem; font-weight: 900; padding: 3px 8px; border-radius: 4px; letter-spacing: 0.5px; }
.kecta-title { font-size: 1.25rem; font-weight: 900; color: var(--kecta-navy-dark); letter-spacing: -0.5px; }
.kecta-top-right { display: flex; gap: 8px; align-items: center; }
.kecta-verified-pill { background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0; font-size: 0.75rem; font-weight: 800; padding: 4px 10px; border-radius: 20px; }
.kecta-date-pill { background: #f1f5f9; color: #475569; font-size: 0.75rem; font-weight: 700; padding: 4px 10px; border-radius: 20px; }

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

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

/* 🌟 KECTA KPI 요약 대시보드 바 🌟 */
.kecta-kpi-bar { background: var(--kecta-navy-dark); color: #ffffff; border-radius: 12px; padding: 22px 28px; margin-bottom: 36px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; box-shadow: var(--kecta-shadow); }
.kecta-kpi-item { border-right: 1px solid #1e293b; padding-right: 16px; }
.kecta-kpi-item:last-child { border-right: none; padding-right: 0; }
.kecta-kpi-label { font-size: 0.78rem; font-weight: 600; color: #94a3b8; margin-bottom: 4px; }
.kecta-kpi-val { font-size: 1.35rem; font-weight: 900; color: #6ee7b7; letter-spacing: -0.5px; }

/* Section Header */
.kecta-section-head { margin-bottom: 24px; }
.kecta-section-head h2 { font-size: 1.4rem; font-weight: 800; color: var(--kecta-navy-dark); letter-spacing: -0.5px; }
.kecta-section-head p { color: var(--kecta-text-muted); font-size: 0.9rem; margin-top: 4px; }

/* 🌟 1~14위 3열 실측 원장 카드 그리드 🌟 */
.kecta-audit-grid-3col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 40px; }
.kecta-audit-card { background: var(--kecta-bg-card); border: 1px solid var(--kecta-border); border-radius: 10px; padding: 18px 16px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: var(--kecta-shadow); transition: border-color 0.2s, transform 0.2s; }
.kecta-audit-card:hover { border-color: #6ee7b7; transform: translateY(-2px); box-shadow: var(--kecta-hover-shadow); }

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

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

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

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

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

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

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

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

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

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

/* Responsive Mobile (3열 -> 2열 -> 1열) */
@media screen and (max-width: 1024px) {
    .kecta-audit-grid-3col { grid-template-columns: repeat(2, 1fr); }
    .kecta-kpi-bar { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .kecta-kpi-item:nth-child(2) { border-right: none; }
}
@media screen and (max-width: 640px) {
    .kecta-header-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
    .kecta-nav { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .kecta-nav-list { width: max-content; gap: 18px; }
    
    .kecta-container { padding: 20px 14px 40px; }
    .kecta-kpi-bar { grid-template-columns: 1fr; gap: 12px; padding: 16px; }
    .kecta-kpi-item { border-right: none; border-bottom: 1px solid #1e293b; padding-bottom: 10px; }
    .kecta-kpi-item:last-child { border-bottom: none; padding-bottom: 0; }
    
    .kecta-audit-grid-3col { grid-template-columns: 1fr; }
    .kecta-card-body { flex-direction: column; align-items: flex-start; gap: 10px; }
    .kecta-logo-box { width: 100%; height: 46px; }
    
    .kecta-clean-table-box, .kecta-spec-table { overflow-x: auto; }
    .kecta-clean-table { min-width: 440px; }
    .kecta-spec-table { min-width: 480px; }
    .kecta-single-article { padding: 20px 16px; }
    .kecta-footer-links { gap: 30px; }
}