/* ======================================================
 * Shared column article styles (v1)
 * 칼럼 페이지의 공통 스타일: 페이지 헤드·리드박스·TOC·데이터표·
 * FAQ·참고자료·사이드바·SERP 프리뷰·점수 위젯·토스트
 * (site-footer.css의 CSS 변수를 사용합니다)
 * ==================================================== */

/* Page head */
.page-head { max-width: 1180px; margin: 0 auto; padding: 32px 24px 20px; }
.crumb { font-size: 13px; color: var(--gray); margin-bottom: 18px; }
.crumb a { color: var(--gray); }
.crumb .sep { margin: 0 6px; color: var(--gray-2); }
.cat-badge { display: inline-block; padding: 4px 10px; border-radius: 4px; font-size: 12px; font-weight: 800; color: #fff; letter-spacing: 0.02em; margin-bottom: 12px; }
.cat-badge.health { background: var(--cat-health); }
.cat-badge.product { background: var(--cat-product); }
.cat-badge.service { background: var(--cat-service); }
.cat-badge.brand { background: var(--cat-brand); }

h1.page-title { font-size: 30px; font-weight: 800; line-height: 1.3; letter-spacing: -0.02em; margin: 4px 0 8px; color: var(--ink); text-wrap: pretty; }
.subtitle { font-size: 16px; color: var(--gray); margin: 0 0 16px; font-weight: 500; }
.meta-line { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--gray); padding-top: 14px; border-top: 1px solid var(--line-2); }
.meta-line .m-item strong { color: var(--ink); font-weight: 700; }
.share-line { display: flex; gap: 8px; margin-top: 12px; }
.btn-share { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 6px; font-size: 12.5px; font-weight: 600; color: var(--gray); background: var(--white); cursor: pointer; }
.btn-share:hover { border-color: var(--brand); color: var(--brand); }

/* Content grid */
.content-grid { max-width: 1180px; margin: 0 auto; padding: 8px 24px 24px; display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
@media (max-width: 960px) { .content-grid { grid-template-columns: 1fr; gap: 28px; } }
.article { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 40px 44px; }
@media (max-width: 640px) { .article { padding: 28px 22px; } }

/* Lead + TOC */
.lead-box { background: var(--brand-light); border-left: 4px solid var(--brand); padding: 18px 22px; margin-bottom: 22px; border-radius: 4px; font-size: 15.5px; color: var(--ink); line-height: 1.75; }
.lead-box strong { color: var(--brand-dark); }
.lead-box .cite-as { display: block; margin-top: 10px; padding-top: 10px; border-top: 1px dashed rgba(26,58,95,0.25); font-size: 12px; color: var(--brand-dark); font-family: 'SF Mono', Menlo, Consolas, monospace; }
.toc { background: #fafbfc; border: 1px solid var(--line); border-radius: 8px; padding: 18px 22px; margin-bottom: 32px; }
.toc-title { font-size: 13px; font-weight: 800; color: var(--brand); letter-spacing: 0.08em; margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 22px; }
.toc li { margin-bottom: 6px; font-size: 14.5px; color: var(--ink); }
.toc li a { color: var(--ink); }
.toc li a:hover { color: var(--brand); }

/* Article typography */
.article h2 { font-size: 22px; font-weight: 800; margin: 40px 0 16px; padding-bottom: 8px; border-bottom: 2px solid var(--brand); color: var(--ink); letter-spacing: -0.01em; scroll-margin-top: 20px; }
.article h3 { font-size: 17px; font-weight: 700; color: var(--brand); margin: 24px 0 10px; }
.article p { margin: 0 0 14px; font-size: 16px; line-height: 1.85; text-wrap: pretty; }
.article p strong { color: var(--brand-dark); font-weight: 700; }
.article ul { padding-left: 22px; margin: 0 0 16px; }
.article ul li { margin-bottom: 8px; line-height: 1.75; }
sup.ref { font-size: 11px; color: var(--brand); font-weight: 700; vertical-align: super; }
sup.ref a { color: var(--brand); text-decoration: none; padding: 0 2px; }
sup.ref a:hover { text-decoration: underline; }

/* Data table */
table.data { width: 100%; border-collapse: collapse; margin: 18px 0 20px; font-size: 14px; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
table.data thead th { background: var(--brand); color: #fff; padding: 10px 12px; text-align: left; font-weight: 700; font-size: 13px; letter-spacing: 0.02em; }
table.data tbody td { padding: 10px 12px; border-top: 1px solid var(--line-2); line-height: 1.6; vertical-align: top; }
table.data tbody tr:nth-child(even) td { background: #f7f9fb; }
table.data td:first-child { font-weight: 700; color: var(--ink); background: var(--brand-light) !important; width: 22%; }
table.data .highlight { color: var(--brand-dark); font-weight: 700; }

/* Common boxes */
.insight { background: #fffbe8; border: 1px solid #e8dd9a; border-left: 4px solid #b8860b; border-radius: 6px; padding: 18px 22px; margin: 24px 0; }
.insight-head { font-size: 13px; font-weight: 800; color: #6b4a00; margin-bottom: 8px; letter-spacing: 0.02em; }
.insight p { font-size: 14.5px; color: #4a3200; margin: 0; line-height: 1.75; }
.insight p + p { margin-top: 10px; }
.insight strong { color: #6b4a00; }
.warn-box { background: #fff5eb; border: 1px solid #e8c8a5; border-left: 4px solid #b8621b; border-radius: 6px; padding: 14px 18px; margin: 20px 0; font-size: 14px; color: #4a3200; line-height: 1.7; }
.warn-box strong { color: #8a4a15; }
.danger-box { background: #fef2f2; border: 1px solid #f5c5c5; border-left: 4px solid var(--score-c); border-radius: 6px; padding: 14px 18px; margin: 20px 0; font-size: 14px; color: #6b1a1a; line-height: 1.7; }
.danger-box strong { color: #8b1a1a; }
.conclusion { background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%); color: #fff; padding: 22px 26px; border-radius: 10px; margin: 28px 0 24px; }
.conclusion-head { font-size: 12px; font-weight: 800; letter-spacing: 0.1em; margin-bottom: 8px; color: #f4d97a; }
.conclusion p { font-size: 15.5px; margin: 0; line-height: 1.7; color: #fff; }
.article .conclusion p strong { color: #f4d97a; background: transparent; }
.conclusion ol, .conclusion ul { margin: 8px 0 0; padding-left: 22px; color: #fff; }
.conclusion li { margin-bottom: 4px; font-size: 14.5px; line-height: 1.65; }
.article .conclusion li strong { color: #f4d97a; }

/* FAQ */
.faq-section { margin: 32px 0 20px; }
.faq { background: var(--white); border: 1px solid var(--line); border-radius: 8px; margin-bottom: 10px; padding: 0; }
.faq summary { padding: 14px 18px; font-size: 15px; font-weight: 700; color: var(--ink); cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; line-height: 1.5; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: 'Q.'; color: var(--brand); font-weight: 900; font-size: 15px; flex-shrink: 0; }
.faq summary::after { content: '+'; color: var(--gray-2); font-size: 20px; line-height: 1; flex-shrink: 0; font-weight: 300; }
.faq[open] summary::after { content: '−'; color: var(--brand); }
.faq-body { padding: 0 18px 16px 40px; font-size: 14.5px; color: var(--gray); line-height: 1.75; }
.faq-body strong { color: var(--brand-dark); }

/* References */
.references { background: #fafbfc; border: 1px solid var(--line); border-radius: 8px; padding: 18px 22px; margin: 20px 0; }
.references-title { font-size: 15px; font-weight: 800; color: var(--ink); margin-bottom: 10px; }
.references ol { margin: 0; padding-left: 20px; font-size: 13.5px; line-height: 1.8; color: var(--gray); }
.references ol li { margin-bottom: 6px; }
.ref-tag { display: inline-block; padding: 1px 7px; border-radius: 3px; font-size: 10.5px; font-weight: 800; color: #fff; letter-spacing: 0.02em; margin-right: 4px; vertical-align: middle; }
.ref-tag.official { background: #2e7d5b; }
.ref-tag.paper { background: #2a6fbd; }
.ref-tag.law { background: #8a5a00; }
.ref-tag.brand { background: #6b4fa0; }
.ref-tag.news { background: #c62828; }

/* Related */
#related { margin: 28px 0 18px; }
.related-head { font-size: 15px; font-weight: 800; color: var(--ink); margin-bottom: 12px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.related-item { display: block; padding: 14px 16px; background: var(--white); border: 1px solid var(--line); border-radius: 6px; text-decoration: none; color: inherit; transition: all 0.15s; }
.related-item:hover { border-color: var(--brand); text-decoration: none; transform: translateY(-1px); }
.r-cat { display: inline-block; padding: 2px 7px; font-size: 10.5px; font-weight: 800; color: #fff; border-radius: 3px; margin-bottom: 6px; letter-spacing: 0.02em; }
.r-cat.health { background: var(--cat-health); }
.r-cat.service { background: var(--cat-service); }
.r-cat.brand { background: var(--cat-brand); }
.r-title { font-size: 13.5px; font-weight: 700; color: var(--ink); line-height: 1.4; text-wrap: pretty; }
.last-updated { margin-top: 16px; font-size: 12.5px; color: var(--gray-2); text-align: right; padding-top: 12px; border-top: 1px solid var(--line-2); }

/* Sidebar */
.sidebar { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 960px) { .sidebar { position: static; } }
.infobox { background: var(--white); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; font-size: 13.5px; }
.ib-title { background: var(--brand); color: #fff; padding: 10px 14px; font-weight: 800; font-size: 13px; text-align: center; letter-spacing: 0.02em; }
.ib-body dl { margin: 0; padding: 0; }
.ib-body dt { background: var(--brand-light); padding: 8px 14px; font-weight: 700; font-size: 12.5px; color: var(--brand-dark); border-top: 1px solid var(--line-2); }
.ib-body dt:first-child { border-top: none; }
.ib-body dd { margin: 0; padding: 8px 14px; font-size: 13.5px; color: var(--ink); }
.brand-chip { display: inline-block; padding: 3px 10px; border-radius: 4px; font-size: 10.5px; font-weight: 900; color: #fff; letter-spacing: 0.08em; }
.brand-chip.wsa { background: linear-gradient(90deg, #FF0401 0%, #4F4B48 100%); }

/* SERP preview */
.serp-block { background: var(--white); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.serp-head { background: #f4f6f8; padding: 10px 14px; font-size: 12.5px; font-weight: 800; color: var(--ink); border-bottom: 1px solid var(--line-2); letter-spacing: 0.02em; }
.serp-tabs { display: flex; border-bottom: 1px solid var(--line-2); }
.serp-tab { flex: 1; padding: 10px 8px; background: none; border: none; border-bottom: 2px solid transparent; font-size: 12.5px; font-weight: 700; color: var(--gray); cursor: pointer; transition: all 0.15s; font-family: inherit; }
.serp-tab:hover { color: var(--brand); }
.serp-tab.active { color: var(--brand); border-bottom-color: var(--brand); background: #fff; }
.serp-panel { display: none; padding: 14px; font-size: 13px; }
.serp-panel.active { display: block; }
.serp-google .fav { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.serp-google .fav .dot { width: 22px; height: 22px; border-radius: 50%; background: var(--brand); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; }
.serp-google .fav .name { font-size: 12px; color: #202124; font-weight: 500; }
.serp-google .url-line { font-size: 12px; color: #4d5156; margin-bottom: 4px; word-break: break-all; }
.serp-google .crumb-sep { margin: 0 4px; color: #70757a; }
.serp-google .g-title { font-size: 16px; color: #1a0dab; font-weight: 500; line-height: 1.35; margin-bottom: 4px; }
.serp-google .g-desc { font-size: 12.5px; color: #4d5156; line-height: 1.5; }
.serp-google .g-desc .date { color: #70757a; }
.serp-naver .n-top { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.serp-naver .n-logo { width: 20px; height: 20px; background: #03c75a; color: #fff; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; font-weight: 900; font-size: 12px; }
.serp-naver .n-site { font-size: 12px; color: var(--gray); }
.serp-naver .n-title { font-size: 15px; font-weight: 700; color: #1a1d21; line-height: 1.4; margin-bottom: 4px; }
.serp-naver .n-desc { font-size: 12.5px; color: #54595d; line-height: 1.55; margin-bottom: 6px; }
.serp-naver .n-meta { font-size: 11.5px; color: #8a8f95; }
.serp-naver .n-meta .b { font-weight: 700; color: #03c75a; }
.serp-gpt { background: #f7f7f8; padding: 12px; border-radius: 6px; margin: -4px; }
.serp-gpt .gpt-top { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; font-size: 11.5px; color: #6e6e80; font-weight: 700; }
.serp-gpt .gpt-ico { background: linear-gradient(135deg, #10a37f 0%, #1a7c66 100%); color: #fff; width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; border-radius: 4px; font-size: 10px; }
.serp-gpt .gpt-q { font-size: 13px; font-weight: 700; color: #1a1d21; margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px dashed #d0d0d8; }
.serp-gpt .gpt-a { font-size: 12.5px; color: #353740; line-height: 1.65; margin-bottom: 10px; }
.serp-gpt .gpt-a strong { color: var(--brand-dark); background: #fffbe8; padding: 0 2px; }
.serp-gpt .gpt-cite { display: flex; align-items: flex-start; gap: 6px; font-size: 11.5px; padding: 6px 8px; background: #fff; border-radius: 4px; border: 1px solid #e0e0e8; }
.serp-gpt .gpt-cite .num { background: #6e6e80; color: #fff; width: 16px; height: 16px; border-radius: 3px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 10px; flex-shrink: 0; }
.serp-gpt .gpt-cite a { color: #10a37f; word-break: break-all; }

/* Score widget */
.score-block { background: var(--white); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.score-head { background: #f4f6f8; padding: 10px 14px; font-size: 12.5px; font-weight: 800; color: var(--ink); border-bottom: 1px solid var(--line-2); letter-spacing: 0.02em; display: flex; justify-content: space-between; align-items: center; }
.score-head .auto-tag { font-size: 10px; background: var(--brand); color: #fff; padding: 2px 6px; border-radius: 3px; font-weight: 700; letter-spacing: 0.03em; }
.score-main { padding: 18px 16px; text-align: center; border-bottom: 1px solid var(--line-2); }
.score-num { font-size: 44px; font-weight: 900; color: var(--ink); line-height: 1; letter-spacing: -0.02em; }
.score-num .max { font-size: 20px; color: var(--gray-2); font-weight: 500; }
.score-badge { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; color: #fff; margin-top: 8px; letter-spacing: 0.03em; }
.score-badge.a-plus { background: var(--score-a-plus); }
.score-badge.a { background: var(--score-a); }
.score-badge.b { background: var(--score-b); }
.score-badge.c { background: var(--score-c); }
.score-pct { font-size: 12px; color: var(--gray); margin-top: 6px; }
.sbar-row { padding: 10px 16px; border-bottom: 1px solid var(--line-2); }
.sbar-label { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 700; margin-bottom: 6px; color: var(--ink); }
.sbar-label .sbar-val { color: var(--gray); font-weight: 600; }
.sbar-track { height: 8px; background: #eceef1; border-radius: 999px; overflow: hidden; }
.sbar-fill { height: 100%; border-radius: 999px; transition: width 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.sbar-fill.seo { background: linear-gradient(90deg, #4a90d9, #2a6fbd); }
.sbar-fill.geo { background: linear-gradient(90deg, #10a37f, #0a7d61); }
.score-details { background: #fafbfc; border-top: 1px solid var(--line-2); }
.score-details:first-of-type { border-top: none; }
.score-details summary { padding: 10px 16px; font-size: 12.5px; font-weight: 700; color: var(--ink); cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 8px; transition: background 0.15s; }
.score-details summary:hover { background: #f4f6f8; }
.score-details summary::-webkit-details-marker { display: none; }
.score-details summary::before { content: '▸'; font-size: 10px; color: var(--gray-2); transition: transform 0.2s; margin-right: 4px; }
.score-details[open] summary::before { transform: rotate(90deg); }
.score-details .sum-label { flex: 1; }
.score-details .sum-val { font-size: 11.5px; font-variant-numeric: tabular-nums; color: var(--gray); font-weight: 700; padding: 2px 8px; background: #eceef1; border-radius: 999px; }
.score-details[open] .sum-val { background: var(--brand-light); color: var(--brand-dark); }
.chk-list { list-style: none; padding: 0; margin: 0; max-height: 320px; overflow-y: auto; }
.chk-list li { display: flex; justify-content: space-between; align-items: center; padding: 6px 16px; font-size: 12px; border-top: 1px solid var(--line-2); }
.chk-list li .name { display: flex; align-items: center; gap: 6px; color: var(--ink); }
.chk-list li .name::before { display: inline-block; width: 14px; height: 14px; border-radius: 50%; text-align: center; line-height: 14px; font-size: 10px; font-weight: 900; color: #fff; }
.chk-list li.pass .name::before { content: '✓'; background: var(--score-a); }
.chk-list li.fail .name::before { content: '✗'; background: var(--score-c); }
.chk-list li.fail .name { color: var(--gray); }
.chk-list li .w { font-weight: 700; font-size: 11.5px; color: var(--gray); font-variant-numeric: tabular-nums; }
.chk-list li.pass .w { color: var(--score-a); }
.chk-list li.fail .w { color: var(--score-c); }
.honesty-banner { background: #e8f5e9; border: 1px solid #a5d6a7; color: #1a4d1a; padding: 12px 14px; font-size: 12.5px; border-radius: 6px; line-height: 1.6; }
.honesty-banner strong { color: #0d3a0d; }

/* Copy toast */
#copyToast { position: fixed; bottom: 32px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 12px 22px; border-radius: 999px; font-size: 13.5px; font-weight: 600; opacity: 0; pointer-events: none; transition: all 0.3s; z-index: 999; }
#copyToast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
