@charset "utf-8";

/*
 * File    : sub-glossary.css
 * Author  : STUDIO-JT (JC)
 *
 * SUMMARY :
 * SEO/GEO 용어사전 (허브 + 상세)
 */

/* ---------------------------------------------------------------
 * 허브 (/seo-glossary/)
 * --------------------------------------------------------------- */
.glossary { padding: 100px 0 120px; }
.glossary_header { padding-bottom: 45px; }
/* 허브 대제목도 상세 h1 과 동일하게 400 (2026-07-21 jc) — 같은 50px 대제목이라 굵기 일치 유지. */
.glossary_header_title { font-size: 50px; font-weight: 400; line-height: 1.2; margin: 0 0 25px -4px; }
.glossary_header_description { font-size: 14px; font-weight: 500; line-height: 2.15; max-width: 620px; word-break: keep-all; }
.glossary_header_description p { margin: 0; }

/* toolbar — 검색 + 분류 칩 */
.glossary_toolbar { padding: 30px 0; border-top: 4px solid #222; }
.glossary_search { margin-bottom: 22px; }
.glossary_search_input { font-size: 16px; font-weight: 500; width: 100%; max-width: 420px; height: 52px; padding: 0 20px; color: #222; border: 2px solid #222; border-radius: 3px; background: #fff; -webkit-transition: border-color 300ms; transition: border-color 300ms; }
.glossary_search_input:focus { border-color: var(--c-primary); outline: 0; }
.glossary_search_input::placeholder { color: var(--c-hint); }
.glossary_filter { margin: -4px; font-size: 0; }
.glossary_filter_item { display: inline-block; margin: 4px; }
.glossary_filter_btn { font-size: 13px; font-weight: 700; padding: 9px 18px; cursor: pointer; color: #222; border: 2px solid #222; border-radius: 30px; background: #fff; -webkit-transition: all 300ms; transition: all 300ms; }
.glossary_filter_btn:hover { color: var(--c-primary); border-color: var(--c-primary); }
.glossary_filter_btn.is-active { color: #fff; border-color: var(--c-primary); background: var(--c-primary); }

/* 색인 바 (ㄱㄴㄷ + A-Z) */
.glossary_index { padding: 18px 0; border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); }
.glossary_index_anchor { font-size: 13px; font-weight: 700; display: inline-block; min-width: 30px; padding: 4px 0; text-align: center; color: var(--c-text-3); -webkit-transition: color 300ms; transition: color 300ms; }
.glossary_index_anchor:hover { color: var(--c-primary); }
.glossary_index_anchor.is-dimmed { opacity: .25; pointer-events: none; }

.glossary_count { font-size: 13px; font-weight: 500; margin: 22px 0 0; color: var(--c-text-3); }

/* 그룹 섹션 */
.glossary_group { padding: 45px 0 10px; }
.glossary_group_title { font-size: 28px; font-weight: 700; line-height: 1; margin-bottom: 25px; color: var(--c-primary); }
.glossary_list { margin: -10px; font-size: 0; }
.glossary_item { display: inline-block; vertical-align: top; width: 33.3333%; padding: 10px; -moz-box-sizing: border-box; box-sizing: border-box; }
.glossary_item_anchor { display: block; height: 100%; padding: 28px 26px 24px; border: 2px solid var(--c-line); border-radius: 3px; -webkit-transition: border-color 300ms, -webkit-transform 300ms; transition: border-color 300ms, transform 300ms; }
.glossary_item_anchor:hover { border-color: var(--c-primary); -webkit-transform: translateY(-4px); transform: translateY(-4px); }
.glossary_item_head { display: block; margin-bottom: 12px; }
.glossary_item_title { font-size: 20px; font-weight: 700; line-height: 1.4; display: block; color: #222; word-break: keep-all; }
.glossary_item_anchor:hover .glossary_item_title { color: var(--c-primary); }
.glossary_item_en { font-size: 13px; font-weight: 500; display: block; margin-top: 3px; color: var(--c-text-3); }
.glossary_item_desc { font-size: 14px; font-weight: 400; line-height: 1.75; display: block; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; color: var(--c-text-2); word-break: keep-all; }
.glossary_item_cats { display: block; margin-top: 16px; font-size: 0; }
.glossary_item_cat { font-size: 11px; font-weight: 700; display: inline-block; margin-right: 6px; padding: 4px 10px; color: var(--c-text-3); border-radius: 30px; background: var(--c-bg-3); }
.glossary_item.is-hidden { display: none; }
.glossary_group.is-hidden { display: none; }

.glossary_noresult,
.glossary_empty { font-size: 15px; font-weight: 500; padding: 80px 0; text-align: center; color: var(--c-text-3); }

/* ---------------------------------------------------------------
 * 상세 (/seo-glossary/{용어}/)
 * --------------------------------------------------------------- */
.glossary_view { padding: 100px 0 120px; }
.glossary_single { max-width: 780px; }
.glossary_single_header { padding-bottom: 35px; border-bottom: 4px solid #222; }
.glossary_single_breadcrumb { font-size: 13px; font-weight: 500; margin-bottom: 30px; color: var(--c-text-3); }
.glossary_single_breadcrumb a { color: var(--c-text-3); -webkit-transition: color 300ms; transition: color 300ms; }
.glossary_single_breadcrumb a:hover { color: var(--c-primary); }
.glossary_single_breadcrumb_divider { margin: 0 6px; color: var(--c-hint); }
/* 대제목 굵기 300→400 (2026-07-21 jc) — 300(Light)은 preload 대상이 아니라 첫 화면에서 늦게 떠
   교체가 눈에 보였다. 400(Regular)은 이미 preload 중이라 추가 다운로드 0 으로 즉시 렌더. 대표 승인. */
.glossary_single_title { font-size: 50px; font-weight: 400; line-height: 1.2; margin: 0 0 22px -3px; word-break: keep-all; }
.glossary_single_title_en { font-size: 18px; font-weight: 500; display: block; margin-top: 10px; color: var(--c-text-3); }
/* 요약 콜아웃 — 좌측 액센트 바 폐지, 둥근 회색 면만 (2026-07-21 jc, 대표 확정). 아이콘 없음. */
.glossary_single_summary { font-size: 17px; font-weight: 500; line-height: 1.9; margin-bottom: 30px; padding: 28px 30px; word-break: keep-all; overflow-wrap: anywhere; border-radius: 10px; background: var(--c-bg-2); }
.glossary_single_summary p { margin: 0; }
.glossary_single_meta { font-size: 13px; font-weight: 500; color: var(--c-text-3); }
.glossary_single_meta > span { margin-right: 18px; }
.glossary_single_meta_cat { font-size: 11px; font-weight: 700; display: inline-block; margin-right: 6px; padding: 4px 10px; color: var(--c-text-3); border-radius: 30px; background: var(--c-bg-3); }

.glossary_single_content { font-size: 16px; line-height: 2; padding: 45px 0 20px; word-break: keep-all; overflow-wrap: anywhere; }
.glossary_single_content h2 { font-size: 26px; font-weight: 700; line-height: 1.45; margin: 45px 0 18px; }
.glossary_single_content h3 { font-size: 20px; font-weight: 700; line-height: 1.5; margin: 35px 0 14px; }
.glossary_single_content p { margin-bottom: 22px; }
.glossary_single_content ul { margin: 0 0 22px; padding-left: 0; } /* 불릿 목록: 들여쓰기 없음 — 본문 좌측 정렬 (대표 요청) */
.glossary_single_content ul > li { position: relative; padding-left: 14px; list-style: none; }
.glossary_single_content ul > li:before { position: absolute; top: 15px; left: 0; display: block; width: 4px; height: 4px; content: ''; border-radius: 50%; background: var(--c-primary); }
.glossary_single_content ol { margin: 0 0 22px; padding-left: 24px; } /* 번호 목록: 원래대로 들여쓰기(번호 걸림 + 본문 hanging) (대표 요청) */
.glossary_single_content ol > li { list-style: decimal; padding-left: 4px; }
/* ── li 간 간격을 li 내부 행간보다 넓게 — 항목끼리 근접성 그룹핑 (대표 요청 2026-08-10).
   본문 16px·행간 2.0 기준 줄 사이 시각 간격 ≈ 16px → li 사이는 +8px 해서 약 1.5배. ── */
.glossary_single_content ul > li:not(:last-child),
.glossary_single_content ol > li:not(:last-child) { margin-bottom: 8px; }
.glossary_single_content a { color: var(--c-primary); border-bottom: 1px solid var(--c-primary); -webkit-transition: opacity 300ms; transition: opacity 300ms; }
.glossary_single_content a:hover { opacity: .7; }
.glossary_single_content table { width: 100%; margin-bottom: 22px; border-collapse: collapse; font-size: 14px; }
.glossary_single_content th,
.glossary_single_content td { padding: 12px 14px; text-align: left; border: 1px solid var(--c-line); }
.glossary_single_content th { font-weight: 700; background: var(--c-bg-2); }
.glossary_single_content pre.wp-block-code,
.glossary_single_content pre { font-size: 13px; line-height: 1.8; overflow-x: auto; margin-bottom: 22px; padding: 24px 26px; color: #f8f8f8; border-radius: 3px; background: #1e1e28; word-break: normal; }
.glossary_single_content pre code { font-family: 'SF Mono', Menlo, Consolas, 'Courier New', monospace; background: none; color: inherit; }
.glossary_single_content code { font-family: 'SF Mono', Menlo, Consolas, 'Courier New', monospace; font-size: .9em; padding: 2px 7px; border-radius: 3px; color: #c7254e; background: var(--c-bg-3); }
.glossary_single_content blockquote { margin: 0 0 22px; padding: 20px 26px; border-left: 4px solid var(--c-line); color: var(--c-text-3); background: var(--c-bg-2); }
.glossary_single_content blockquote p { margin: 0; }

/* ── 출처 태그 — 클릭하면 원문. 스튜디오 제이티 팔레트로 출처 유형 구분 ──
   블루(브랜드) = 구글/공식 · 옐로 하이라이트(브랜드 강조색) = 학술 논문 · 그레이 = 업계 실측.
   기존 사이트의 강조 하이라이트(#fbf4d4)·블루 링크 idiom 을 그대로 차용. */
.glossary_single_content .jt-src { font-family: 'Montserrat', 'NotoSansKR', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .01em; line-height: 1.5; display: inline-block; vertical-align: middle; margin: 0 1px; padding: 1px 7px; border-radius: 3px; border-bottom: 0 !important; white-space: nowrap; -webkit-transition: opacity 200ms; transition: opacity 200ms; } /* vertical-align: middle — 칩을 옆 텍스트 세로 중앙에 (baseline은 1.5px 처짐, 대표 지적 2026-08-10) */
.glossary_single_content a.jt-src:hover { opacity: .68; }
.glossary_single_content .jt-src--official { color: var(--c-primary); background: #e9edff; }
.glossary_single_content .jt-src--research { color: #222; background: #fbf4d4; }
.glossary_single_content .jt-src--data { color: var(--c-text-3); background: var(--c-bg-3); }

/* ── 출처 칩 뒤 자동 줄바꿈 — 칩이 문장 끝에 붙고 다음 문장은 새 줄에서 시작 (대표 요청 2026-07-12).
   본문 문단(p)·목록(li) 안의 칩에만 적용. 좌우 비교표(jt-verdict) 셀 안 칩은 제외.
   display:inline 이라야 ::after 의 강제 개행(\A)이 상위 문단의 인라인 흐름에 반영됨. ── */
.glossary_single_content p .jt-src,
.glossary_single_content li .jt-src { display: inline; }
.glossary_single_content p .jt-src::after,
.glossary_single_content li .jt-src::after { content: "\A"; white-space: pre; }

/* ── 공식 vs 실측 대비 표 — 요약 박스(블루 좌측선 + 옅은 배경) idiom 계승. 1행 공식 / 2행 실측 ── */
.glossary_single_content .jt-verdict { margin: 0 0 26px; }
.glossary_single_content .jt-verdict table { border: 0; }
.glossary_single_content .jt-verdict th { width: 132px; font-size: 13px; font-weight: 700; text-align: left; vertical-align: top; color: #222; background: var(--c-bg-2); border: 0; border-left: 4px solid var(--c-primary); }
.glossary_single_content .jt-verdict tr:nth-child(2) th { border-left-color: #222; }
.glossary_single_content .jt-verdict td { vertical-align: top; color: var(--c-text); background: var(--c-bg-2); border: 0; }
.glossary_single_content .jt-verdict tr + tr th,
.glossary_single_content .jt-verdict tr + tr td { border-top: 3px solid #fff; }

/* ── 허브 하단 관련 자산(용어사전 ↔ 도구 ↔ GEO 가이드) — 기존 버튼 idiom ── */
.glossary_hub_related { margin-top: 70px; padding-top: 45px; border-top: 1px solid var(--c-line); text-align: center; font-size: 0; }
.glossary_hub_related_anchor { font-size: 14px; font-weight: 500; display: inline-block; margin: 6px; min-width: 220px; padding: 16px 34px; text-align: center; color: #222; border: 2px solid #222; border-radius: 3px; -webkit-transition: all 300ms; transition: all 300ms; }
.glossary_hub_related_anchor:after { content: ' →'; }
.glossary_hub_related_anchor:hover { color: var(--c-primary); border-color: var(--c-primary); }

/* 관련 용어 */
.glossary_single_related { padding: 40px 0 0; border-top: 1px solid var(--c-line); }
.glossary_single_related_title { font-size: 22px; font-weight: 700; margin-bottom: 22px; }
.glossary_single_related_list { margin: -6px; font-size: 0; }
.glossary_single_related_item { display: inline-block; vertical-align: top; width: 50%; padding: 6px; -moz-box-sizing: border-box; box-sizing: border-box; }
.glossary_single_related_anchor { display: block; height: 100%; padding: 20px 22px; border: 2px solid var(--c-line); border-radius: 3px; -webkit-transition: border-color 300ms; transition: border-color 300ms; }
.glossary_single_related_anchor:hover { border-color: var(--c-primary); }
.glossary_single_related_name { font-size: 16px; font-weight: 700; display: block; color: #222; }
.glossary_single_related_anchor:hover .glossary_single_related_name { color: var(--c-primary); }
.glossary_single_related_en { font-size: 12px; font-weight: 500; margin-left: 6px; color: var(--c-text-3); }
.glossary_single_related_desc { font-size: 13px; line-height: 1.7; display: block; margin-top: 8px; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; color: var(--c-text-2); word-break: keep-all; }

.glossary_single_footer { margin-top: 45px; text-align: center; }
.glossary_single_footer_anchor { font-size: 14px; font-weight: 500; position: relative; display: inline-block; min-width: 241px; padding: 18px 40px; -webkit-transition: all 300ms; transition: all 300ms; text-align: center; letter-spacing: .05em; color: #222; border: 2px solid #222; border-radius: 3px; }
.glossary_single_footer_anchor:hover { color: var(--c-primary); border-color: var(--c-primary); }

/* ── "이 페이지" 목차 (On this page) — 본문 H2 자동 목차 (대표 요청 2026-07-13).
   데스크톱(≥1240px): 본문(780px) 왼쪽 여백에 고정 + 스크롤 스파이. 좁은 화면·모바일: 우하단 플로팅 버튼 → 바텀시트. ── */
.glossary_toc_title { font-family: 'Montserrat', 'NotoSansKR', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 14px; color: var(--c-sub); }
.glossary_toc_list { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--c-line); }
.glossary_toc_item { margin: 0; }
.glossary_toc_link { display: block; font-size: 13px; line-height: 1.45; margin-left: -1px; padding: 7px 0 7px 15px; border-left: 2px solid transparent; color: var(--c-text-3); text-decoration: none; word-break: keep-all; -webkit-transition: color 200ms, border-color 200ms; transition: color 200ms, border-color 200ms; }
.glossary_toc_link:hover { color: var(--c-text); }
.glossary_toc_link.is-active { font-weight: 700; color: var(--c-primary); border-left-color: var(--c-primary); }

/* 플로팅 버튼 + 딤 배경 (기본 = 좁은 화면·모바일) */
.glossary_toc_fab { display: flex; align-items: center; gap: 8px; position: fixed; right: 18px; bottom: 22px; z-index: 1002; height: 46px; padding: 0 18px 0 15px; border: 0; border-radius: 24px; background: var(--c-primary); color: #fff; font-family: 'NotoSansKR', sans-serif; font-size: 14px; font-weight: 700; cursor: pointer; box-shadow: 0 6px 20px rgba( 11, 33, 238, .28 ); -webkit-transition: opacity 300ms, visibility 300ms; transition: opacity 300ms, visibility 300ms; }
/* 문서 끝(관련 용어/푸터)에 다다르면 목차를 감춘다 — 푸터를 덮지 않도록 */
body.glossary-toc-hidden .glossary_toc_fab { opacity: 0; visibility: hidden; }
.glossary_toc_fab_icon { position: relative; display: block; width: 16px; height: 2px; background: currentColor; }
.glossary_toc_fab_icon::before, .glossary_toc_fab_icon::after { content: ''; position: absolute; left: 0; height: 2px; background: currentColor; }
.glossary_toc_fab_icon::before { top: -5px; width: 16px; }
.glossary_toc_fab_icon::after { top: 5px; width: 11px; }
.glossary_toc_backdrop { display: none; position: fixed; inset: 0; z-index: 1001; background: rgba( 0, 0, 0, .42 ); opacity: 0; -webkit-transition: opacity 250ms; transition: opacity 250ms; }

/* 데스크톱(≥1240px) — 본문 왼쪽 여백에 고정 목차, 플로팅 버튼 숨김 */
@media ( min-width: 1240px ) {
	.glossary_toc_wrap { position: fixed; top: 230px; right: min( 60px, calc( 50vw - 610px ) ); width: 200px; z-index: 90; -webkit-transition: opacity 300ms, visibility 300ms; transition: opacity 300ms, visibility 300ms; }
	body.glossary-toc-hidden .glossary_toc_wrap { opacity: 0; visibility: hidden; }
	.glossary_toc { max-height: calc( 100vh - 210px ); overflow-y: auto; }
	.glossary_toc_fab, .glossary_toc_backdrop { display: none !important; }
}

/* 좁은 화면·모바일(≤1239px) — 우하단 버튼 → 바텀시트 오버레이 */
@media ( max-width: 1239px ) {
	.glossary_toc_wrap { position: fixed; right: 0; bottom: 0; left: 0; z-index: 1003; max-height: 72vh; padding: 24px 22px calc( 24px + env( safe-area-inset-bottom ) ); overflow-y: auto; background: var(--c-bg); border-radius: 18px 18px 0 0; box-shadow: 0 -8px 30px rgba( 0, 0, 0, .16 ); -webkit-transform: translateY( 110% ); transform: translateY( 110% ); -webkit-transition: -webkit-transform 300ms ease; transition: transform 300ms ease; }
	.glossary_toc_title { font-size: 13px; }
	.glossary_toc_link { font-size: 15px; padding: 11px 0 11px 16px; }
	body.glossary-toc-open .glossary_toc_wrap { -webkit-transform: translateY( 0 ); transform: translateY( 0 ); }
	body.glossary-toc-open .glossary_toc_backdrop { display: block; opacity: 1; }
}


/* ***************************************************************
 * 벡터(의미) 검색 제안 스트립 — "비슷한 의미의 용어" (glossary.js 주입).
 * 요약박스 idiom(옅은 회색 박스) 계승, 칩은 브랜드 블루 텍스트 링크.
 * *************************************************************** */
.glossary_vec { margin: 18px 0 4px; padding: 14px 20px; font-size: 14px; line-height: 1.7; background: #f8f8f8; border-radius: 10px; }
.glossary_vec_label { display: inline-block; margin-right: 12px; font-weight: 700; color: #222; }
.glossary_vec_label::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--c-primary); vertical-align: 1px; }
.glossary_vec_chip { display: inline-block; margin-right: 14px; color: var(--c-primary); border-bottom: 1px solid transparent; -webkit-transition: border-color 300ms; transition: border-color 300ms; }
.glossary_vec_chip:hover { border-color: var(--c-primary); }

@media ( max-width: 767px ) {
	.glossary_vec { font-size: 13px; padding: 12px 16px; }
}

/* 본문 안 영상 임베드 - 본문 너비를 꽉 채웁니다.
   테마의 .jt-embed-video 가 이미 16:9 반응형을 처리하고 있고 기본 최대 너비만
   700rem 로 잡혀 있습니다. 용어사전 본문은 780rem 이라 그대로 두면 좌우가 남습니다. */
.glossary_single_content .jt-embed-video {
    max-width: 100%;
}
