/* =========================================================
   기능 추가분 스타일 — 템플릿(css/styles.css)은 건드리지 않고 여기서만 더한다.
   템플릿의 토큰(--red · --black · --gray-* · --header-h · --container)만 쓴다.
   ========================================================= */

/* ── 페이지 내용 · 테마 ── */
.cms-hidden{display:none!important}
[hidden]{display:none!important}
h1,h2,h3,h4{font-family:var(--font-heading,inherit)}
.nav-cta,.hero-cta,.cta .btn,.intro-link,.form-large .form-control,.form-large .form-submit-large,.faq-compact-cta,
.service-card,.value-card,.team-card,.insight-img,.case-card,.biz-img,.philosophy-img,.path-card,.location-card-floating,.form-large,.team-photo{border-radius:var(--radius,0)}
.logo img.hk-cms-logo{display:block;height:36px;width:auto;max-width:240px;object-fit:contain}
.logo:has(img.hk-cms-logo)::before{display:none}
.hk-cms-logo-text{font-weight:800;letter-spacing:-.04em}
.footer-info span span::before{content:none;margin:0}
/* 템플릿의 인라인 색(#FF5757)을 클래스로 — 편집기가 인라인 style 을 지우기 때문 */
.process .section-head h2 .red{color:#FF5757}
.insight-img{background-color:var(--gray-100)}
a.insight-card{display:block;color:inherit}
.faq-a-text{min-width:0;overflow-wrap:anywhere}
.faq-a-text p+p,.faq-a-text ul,.faq-a-text ol{margin-top:10px}
.faq-a-text ul{list-style:disc;padding-left:1.2em}.faq-a-text ol{list-style:decimal;padding-left:1.2em}
.faq-a-text a{color:var(--red);text-decoration:underline}

/* ── 모바일 메뉴 (템플릿은 토글 버튼만 있고 열리는 메뉴가 없다) ── */
@media (max-width:768px){
  .header.nav-open .nav-list{display:flex;flex-direction:column;gap:0;position:absolute;top:var(--header-h);left:0;right:0;background:#fff;border-bottom:1px solid var(--gray-200);padding:8px 20px 16px;box-shadow:0 12px 24px rgba(0,0,0,.08)}
  .header.nav-open .nav-list a{display:block;padding:14px 0;font-size:16px;border-bottom:1px solid var(--gray-100)}
  .header.nav-open .nav-toggle span{background:transparent}
  .header.nav-open .nav-toggle span::before{top:0;transform:rotate(45deg)}
  .header.nav-open .nav-toggle span::after{top:0;transform:rotate(-45deg)}
}

/* ── 공통 알림 · 폼 메시지 ── */
.hk-msg{margin-top:20px;padding:14px 18px;font-size:14px;font-weight:600;line-height:1.6;background:var(--red-soft);color:var(--red-dark)}
.hk-msg.is-ok{background:#e8f8ee;color:#166534}
.hk-msg[hidden]{display:none}
.hk-toast{position:fixed;left:50%;bottom:32px;transform:translate(-50%,16px);z-index:1400;max-width:calc(100vw - 32px);padding:14px 20px;background:var(--black);color:#fff;font-size:15px;font-weight:600;box-shadow:0 12px 32px rgba(0,0,0,.25);opacity:0;transition:opacity .25s,transform .25s;pointer-events:none}
.hk-toast.is-on{opacity:1;transform:translate(-50%,0)}
.hk-empty{grid-column:1/-1;padding:56px 20px;text-align:center;color:var(--gray-600);font-size:15px;font-weight:600;border:1px dashed var(--gray-300)}
.hk-empty a{color:var(--red);text-decoration:underline}

/* ── 인사이트 목록 · 상세 · 정책 문서 (템플릿 컴포넌트로 조립한 새 페이지) ── */
.insights-page{padding:100px 0 140px}
.hk-pager{display:flex;justify-content:center;gap:6px;flex-wrap:wrap;margin-top:56px}
.hk-pager:empty{display:none}
.hk-pager a,.hk-pager span{min-width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;padding:0 12px;font-size:14px;font-weight:700;color:var(--gray-700);border:1px solid var(--gray-300)}
.hk-pager a:hover{border-color:var(--black);color:var(--black)}
.hk-pager span.is-on{background:var(--black);border-color:var(--black);color:#fff}
.page-hero h1.hk-post-title{font-size:44px;line-height:1.25;word-break:keep-all}
.hk-post-section,.hk-policy-section{padding:100px 0 140px;background:#fff}
.hk-post{max-width:880px;margin:0 auto}
.hk-post__img img{width:100%;display:block;margin-bottom:40px}
.hk-post__body{font-size:17px;line-height:1.9;color:var(--gray-700);font-weight:500}
.hk-post__body p+p,.hk-post__body ul,.hk-post__body ol,.hk-post__body blockquote,.hk-post__body table,.hk-post__body figure{margin-top:18px}
.hk-post__body h1,.hk-post__body h2,.hk-post__body h3,.hk-post__body h4{margin-top:40px;margin-bottom:12px;color:var(--black);font-weight:800;letter-spacing:-.02em}
.hk-post__body h2{font-size:28px}.hk-post__body h3{font-size:22px}.hk-post__body h4{font-size:18px}
.hk-post__body ul{list-style:disc;padding-left:1.4em}.hk-post__body ol{list-style:decimal;padding-left:1.4em}
.hk-post__body li+li{margin-top:6px}.hk-post__body li>p{margin:0}
.hk-post__body img{max-width:100%;height:auto}
.hk-post__body blockquote{padding:16px 24px;border-left:4px solid var(--red);background:var(--gray-50);color:var(--gray-700)}
.hk-post__body hr{margin:40px 0;border:0;border-top:1px solid var(--gray-200)}
.hk-post__body table{width:100%;border-collapse:collapse;font-size:15px}
.hk-post__body th,.hk-post__body td{padding:10px 12px;border:1px solid var(--gray-200);text-align:left;vertical-align:top}
.hk-post__body th{background:var(--gray-50);font-weight:700;color:var(--black)}
.hk-post__body a{color:var(--red);text-decoration:underline}
.hk-post__body del{color:var(--gray-500)}
.hk-post__nav{margin-top:64px;border-top:2px solid var(--black);border-bottom:1px solid var(--gray-200)}
.hk-post__nav-item{display:grid;grid-template-columns:90px 1fr;gap:16px;padding:18px 0;border-bottom:1px solid var(--gray-200);color:var(--black);font-size:15px}
.hk-post__nav-item:last-child{border-bottom:0}
.hk-post__nav-item .k{font-size:12px;font-weight:800;letter-spacing:.15em;color:var(--red);text-transform:uppercase;padding-top:3px}
.hk-post__nav-item .t{font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hk-post__nav-item.is-none .t{color:var(--gray-500);font-weight:500}
a.hk-post__nav-item:hover .t{color:var(--red)}
.hk-post__foot{margin-top:40px}
.prose{max-width:880px;margin:0 auto;font-size:16px;line-height:1.9;color:var(--gray-700);font-weight:500}
.prose h3{margin:40px 0 12px;font-size:20px;font-weight:800;color:var(--black);letter-spacing:-.02em}
.prose h3:first-child{margin-top:0}
.prose p+p,.prose ul,.prose ol,.prose table{margin-top:14px}
.prose ul{list-style:disc;padding-left:1.4em}.prose ol{list-style:decimal;padding-left:1.4em}
.prose li+li{margin-top:4px}.prose li>p{margin:0}
.prose table{width:100%;border-collapse:collapse;font-size:15px}
.prose th,.prose td{padding:10px 12px;border:1px solid var(--gray-200);text-align:left;vertical-align:top}
.prose th{background:var(--gray-50);font-weight:700;color:var(--black)}
.prose a{color:var(--red);text-decoration:underline}
.prose blockquote{padding:16px 24px;border-left:4px solid var(--red);background:var(--gray-50)}
.prose hr{margin:32px 0;border:0;border-top:1px solid var(--gray-200)}
.hk-404{background-attachment:scroll}
@media (max-width:768px){
  .insights-page,.hk-post-section,.hk-policy-section{padding:72px 0 96px}
  .page-hero h1.hk-post-title{font-size:28px}
  .hk-post__body{font-size:16px}
  .hk-post__body table,.prose table{display:block;overflow-x:auto;white-space:nowrap}
  .hk-post__nav-item{grid-template-columns:70px 1fr}
}

/* ── 카카오 상담 버튼 ── */
.kakao-float{position:fixed;right:24px;bottom:28px;z-index:900;display:inline-flex;align-items:center;gap:8px;min-height:48px;padding:0 18px;border-radius:999px;background:#FEE500;color:#191919;font-size:14px;font-weight:800;box-shadow:0 8px 24px rgba(0,0,0,.18);opacity:0;transform:translateY(12px);transition:opacity .3s,transform .3s}
.kakao-float.show{opacity:1;transform:none}
.kakao-float svg{width:20px;height:20px}
@media (max-width:767px){.kakao-float{right:16px;bottom:20px;padding:0 14px}}

/* ── 팝업 (본사 사양: 딤 없음 · 9개 위치 · 이미지 원본 크기 · 하단 버튼 2개) ── */
.hk-popup{position:fixed;z-index:1200;width:max-content;max-width:calc(100vw - 32px);background:#fff;border:1px solid var(--gray-200);box-shadow:0 20px 48px rgba(0,0,0,.18);overflow:hidden;animation:hkPopIn .3s ease}
@keyframes hkPopIn{from{opacity:0}to{opacity:1}}
.hk-popup.isX-left{left:24px}
.hk-popup.isX-center{left:50%}
.hk-popup.isX-right{right:24px}
.hk-popup.isY-top{top:calc(var(--header-h) + 16px)}
.hk-popup.isY-middle{top:50%}
.hk-popup.isY-bottom{bottom:24px}
.hk-popup{transform:translate(var(--tx,0),var(--ty,0)) translate(var(--cx,0),var(--cy,0))}
.hk-popup.isX-center{--tx:-50%}
.hk-popup.isY-middle{--ty:-50%}
.hk-popup__img{display:block;width:auto;height:auto;max-width:calc(100vw - 32px);max-height:calc(80vh - 52px)}
.hk-popup__imglink{display:block;line-height:0;cursor:pointer}
.hk-popup__body{padding:24px;max-width:100%}
.hk-popup__body h3{font-size:17px;font-weight:800;line-height:1.5;color:var(--black)}
.hk-popup__text{margin-top:8px;font-size:14px;line-height:1.75;color:var(--gray-700);overflow-wrap:anywhere}
.hk-popup__text p{margin:0}.hk-popup__text p+p,.hk-popup__text ul,.hk-popup__text ol{margin-top:8px}
.hk-popup__text ul{list-style:disc;padding-left:1.2em}.hk-popup__text ol{list-style:decimal;padding-left:1.2em}
.hk-popup__foot{display:flex;width:0;min-width:100%;border-top:1px solid var(--gray-200)}
.hk-popup__foot button{flex:1 1 0;min-height:48px;padding:0 12px;border:0;background:#fff;font:inherit;font-size:14px;font-weight:700;color:var(--gray-600);cursor:pointer;white-space:normal}
.hk-popup__foot button+button{border-left:1px solid var(--gray-200);color:var(--black)}
@media (max-width:768px){
  .hk-popup.isX-left,.hk-popup.isX-right{left:50%;right:auto;--tx:-50%}
  .hk-popup.isY-top{top:calc(var(--header-h) + 8px)}
  .hk-popup.isY-bottom{bottom:16px}
}

/* ── 디자인 모드: 목록형 영역의 "관리자에서 수정" 안내 ── */
.hk-manage-pin{display:none}
html.hk-design [data-hk-manage]{position:relative;outline:1px dashed rgba(204,0,0,.45);outline-offset:4px}
html.hk-design .hk-manage-pin{display:inline-flex;align-items:center;gap:6px;position:absolute;top:8px;right:8px;z-index:60;min-height:32px;padding:0 12px;border-radius:999px;background:rgba(26,26,26,.85);color:#fff;font-size:12px;font-weight:700;white-space:nowrap;pointer-events:auto;text-decoration:none}
html.hk-design .hk-manage-pin:hover{background:var(--red)}
html.hk-design .insights-grid[data-hk-manage] .hk-manage-pin{top:-44px}

/* ── 좁은 화면 보정(320~360px): 긴 상호 옆의 햄버거 버튼이 줄어들지 않게 · 문의 유형 카드의 긴 이메일이 카드를 넓히지 않게 ── */
.nav-toggle{flex:none}
.path-card{min-width:0}
.path-link{overflow-wrap:anywhere;word-break:break-all}
@media (max-width:1024px){.paths-grid{grid-template-columns:minmax(0,1fr)}}
