/*
Theme Name: Headclinic
Theme URI: https://headclinic.co.kr/
Description: 두통·어지럼증·자율신경 클리닉 블로그 — 변박사한의원 신경순환 특화 채널. 독립 커스텀 테마(부모 테마 없음). 시스템 폰트·네이비 모노크롬·글라스 헤더로 Core Web Vitals 최적화. 본원(byunbaksa.co.kr) 엔티티와 sameAs로 연결.
Author: 변박사한의원
Version: 1.0.0
Text Domain: headclinic
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
*/

/* ============================================================
   RESET (scoped under body.hc — 어드민바 제외)
   ============================================================ */
.hc *, .hc *::before, .hc *::after { margin: 0; padding: 0; box-sizing: border-box; }
#wpadminbar, #wpadminbar * { margin: revert; padding: revert; box-sizing: revert; }

/* ============================================================
   :ROOT 디자인 토큰 (본원 byunbaksa 시스템 계승 — 네이비 모노크롬)
   ============================================================ */
:root {
  --navy: #1B2A4A;
  --navy-deep: #0F1D35;
  --navy-light: #2C4470;
  --blue-accent: #3B6CB4;
  --blue-soft: #5B8FD4;
  --blue-pale: #EEF3FB;
  --white: #FFFFFF;
  --gray-50: #F8F9FB;
  --gray-100: #EFF1F5;
  --gray-200: #D8DCE4;
  --gray-300: #B0B8C8;
  --gray-400: #8892A4;
  --gray-500: #6B7280;
  --text-primary: #1B2A4A;
  --text-secondary: #4A5568;
  --text-muted: #667085;
  --shadow-sm: 0 1px 3px rgba(27,42,74,0.06);
  --shadow-md: 0 4px 16px rgba(27,42,74,0.08);
  --shadow-lg: 0 8px 32px rgba(27,42,74,0.10);
  --radius: 12px;
  --radius-lg: 20px;
}

/* ============================================================
   BASE
   ============================================================ */
html { scroll-behavior: smooth; }
body.hc {
  /* 시스템 폰트 스택(웹폰트 0) — iOS/맥=Apple SD Gothic Neo, 안드로이드=Noto Sans CJK, 윈도우=맑은고딕. CWV 최상. */
  font-family: -apple-system, BlinkMacSystemFont, system-ui, 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
  color: var(--text-primary);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.hc a { color: inherit; }
.hc img { max-width: 100%; height: auto; }
.hc .site-main { display: block; padding-bottom: 76px; }
@media (max-width: 600px) { .hc .site-main { padding-bottom: 48px; } }
.hc .wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ════════════════════════════════════════════════════════════
   FLOATING GLASS PILL HEADER (본원 이식 · 네이비 톤)
   ════════════════════════════════════════════════════════════ */
.hc .hdr { position: fixed; top: 14px; left: 0; right: 0; z-index: 1600;
  padding: 0 clamp(14px, 3vw, 30px); transition: top .4s cubic-bezier(0.16,1,0.3,1); pointer-events: none; }
.hc .hdr-inner { pointer-events: auto; max-width: 1180px; margin: 0 auto;
  background: rgba(255,255,255,.70); backdrop-filter: blur(22px) saturate(180%); -webkit-backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(255,255,255,.9); border-radius: 16px; padding: 0 24px; overflow: hidden;
  box-shadow: 0 0 0 .5px rgba(27,42,74,.15), 0 2px 8px -2px rgba(27,42,74,.14), 0 20px 44px -16px rgba(27,42,74,.46), inset 0 1px 0 rgba(255,255,255,.8);
  transition: box-shadow .4s cubic-bezier(0.16,1,0.3,1), border-radius .38s cubic-bezier(0.16,1,0.3,1), background .4s; }
.hc .hdr.solid { top: 8px; }
.hc .hdr.solid .hdr-inner { background: rgba(255,255,255,.74); box-shadow: 0 0 0 .5px rgba(27,42,74,.15), 0 2px 8px -2px rgba(27,42,74,.14), 0 22px 48px -16px rgba(27,42,74,.48), inset 0 1px 0 rgba(255,255,255,.8); }
.hc .hdr.dropopen .hdr-inner { border-radius: 20px; box-shadow: 0 0 0 .5px rgba(27,42,74,.15), 0 24px 58px -20px rgba(27,42,74,.44), inset 0 1px 0 rgba(255,255,255,.7); }
.hc .hdr.navopen .hdr-inner { background: rgba(255,255,255,.95); border-radius: 20px; box-shadow: 0 0 0 .5px rgba(27,42,74,.15), 0 26px 62px -20px rgba(27,42,74,.46), inset 0 1px 0 rgba(255,255,255,.8); }
.hc .hdr-bar { position: relative; height: 60px; display: grid; grid-template-columns: 1.6fr auto 1fr; align-items: center; transition: height .4s cubic-bezier(0.16,1,0.3,1); }
.hc .hdr.solid .hdr-bar { height: 54px; }
.hc .hdr-left { justify-self: start; display: flex; align-items: center; gap: 14px; min-width: 0; }
.hc .hdr-logo { display: flex; align-items: baseline; gap: 3px; flex-shrink: 0; font-size: 18px; font-weight: 700; letter-spacing: -0.5px; color: var(--navy); text-decoration: none; white-space: nowrap; }
.hc .hdr-logo span { color: var(--navy); }
.hc .hdr-logo small { font-size: 11px; font-weight: 500; color: var(--text-muted); letter-spacing: 0; }

/* 좌측 회전 티커 (증상 라인업 ⟳ 진료상태) */
.hc .hdr-ticker { height: 22px; overflow: hidden; min-width: 0; }
.hc .hdr-ticker-track { display: flex; flex-direction: column; transition: transform .6s cubic-bezier(0.16,1,0.3,1); }
.hc .hdr-ticker-item { height: 22px; line-height: 22px; white-space: nowrap; font-size: 13px; letter-spacing: -0.01em; color: var(--text-secondary); }
.hc .hdr-ticker-item .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #9A9CA0; margin-right: 6px; vertical-align: middle; position: relative; top: -1px; }
.hc .hdr-ticker-item.st-open  .dot { background: #12B76A; animation: hcPulse 2.4s ease-in-out infinite; }
.hc .hdr-ticker-item.st-break .dot { background: #F79009; }
.hc .hdr-ticker-item.st-closed .dot { background: #C3C5C8; }
.hc .hdr-ticker-item .st { font-weight: 600; color: var(--navy); }
.hc .hdr-ticker-item.st-closed .st { color: #9A9CA0; font-weight: 500; }
.hc .hdr-ticker-item .sub { color: #9A9CA0; margin-left: 4px; }
@keyframes hcPulse { 0%{box-shadow:0 0 0 0 rgba(18,183,106,.45);} 70%{box-shadow:0 0 0 5px rgba(18,183,106,0);} 100%{box-shadow:0 0 0 0 rgba(18,183,106,0);} }

.hc .hdr-nav { justify-self: center; display: flex; gap: clamp(14px, 1.8vw, 28px); }
.hc .hdr-nav a { font-size: 15px; font-weight: 500; letter-spacing: -0.01em; color: var(--text-secondary); position: relative; padding: 10px 0; text-decoration: none; white-space: nowrap; }
.hc .hdr-nav a::after { content:''; position: absolute; left: 0; right: 0; bottom: 6px; height: 1.5px; background: var(--blue-accent); transform: scaleX(0); transform-origin: left; transition: transform .4s cubic-bezier(0.16,1,0.3,1); }
.hc .hdr-nav a:hover::after, .hc .hdr-nav a.on::after { transform: scaleX(1); }
.hc .hdr-nav a:hover, .hc .hdr-nav a.on { color: var(--navy); }
.hc .hdr-right { justify-self: end; display: flex; align-items: center; }

/* PC 가로 서브메뉴 (아코디언) */
.hc .hdr-drop { max-height: 0; overflow: hidden; transition: max-height .38s cubic-bezier(0.16,1,0.3,1); border-top: 0 solid #E8E9EC; }
.hc .hdr.dropopen .hdr-drop { max-height: 72px; border-top: .5px solid #E8E9EC; }
.hc .hdr-sub { display: none; justify-content: center; flex-wrap: wrap; gap: clamp(20px, 3vw, 40px); padding: 17px 2px 19px; }
.hc .hdr-sub.show { display: flex; }
.hc .hdr-sub a { font-size: 13.5px; color: #9A9CA0; letter-spacing: -0.01em; transition: color .25s cubic-bezier(0.16,1,0.3,1); white-space: nowrap; text-decoration: none; }
.hc .hdr-sub a:hover { color: var(--navy); }

/* 버거 */
.hc .hdr-burger { display: none; width: 26px; height: 14px; position: relative; background: none; border: none; cursor: pointer; padding: 0; }
.hc .hdr-burger span { position: absolute; left: 0; width: 26px; height: 1.5px; background: var(--navy); transition: transform .38s cubic-bezier(0.16,1,0.3,1), opacity .2s; }
.hc .hdr-burger span:nth-child(1) { top: 3px; }
.hc .hdr-burger span:nth-child(2) { top: 10px; }
.hc .hdr.navopen .hdr-burger span:nth-child(1) { top: 6.5px; transform: rotate(45deg); }
.hc .hdr.navopen .hdr-burger span:nth-child(2) { top: 6.5px; transform: rotate(-45deg); }
@media (max-width: 900px) {
  .hc .hdr-bar { grid-template-columns: 1fr auto; height: 54px; }
  .hc .hdr-nav, .hc .hdr-drop { display: none; }
  .hc .hdr-burger { display: block; }
}
@media (max-width: 600px) { .hc .hdr-logo { font-size: 16px; } .hc .hdr-ticker-item { font-size: 12px; } }
@media (max-width: 360px) { .hc .hdr-ticker { display: none; } }

/* 모바일 2단 패널 */
.hc .hdr-mob { display: none; max-height: 0; overflow: hidden; transition: max-height .42s cubic-bezier(0.16,1,0.3,1); }
.hc .hdr.navopen .hdr-mob { overflow-y: auto; -webkit-overflow-scrolling: touch; }
.hc .hdr-mob-cols { display: flex; border-top: 1px solid #E8E9EC; min-height: 280px; }
.hc .hdr-mob-left { flex: 0 0 46%; border-right: 1px solid #E8E9EC; padding: 10px 0; }
.hc .hdr-mob-left button { display: flex; align-items: baseline; gap: 8px; width: 100%; text-align: left; padding: 13px 6px; font-size: 15.5px; font-weight: 500; letter-spacing: -0.02em; color: #9A9CA0; position: relative; transition: color .25s cubic-bezier(0.16,1,0.3,1); background: none; border: none; cursor: pointer; }
.hc .hdr-mob-left button .en { font-size: 11px; font-weight: 400; letter-spacing: .04em; color: #C3C5C8; }
.hc .hdr-mob-left button.on { color: var(--navy); }
.hc .hdr-mob-left button.on::before { content:''; position: absolute; left: -1px; top: 10px; bottom: 10px; width: 2.5px; background: var(--blue-accent); border-radius: 2px; }
.hc .hdr-mob-right { flex: 1; padding: 12px 0 12px 20px; }
.hc .hdr-mob-sub { display: none; flex-direction: column; }
.hc .hdr-mob-sub.show { display: flex; }
.hc .hdr-mob-sub a { padding: 11px 4px; font-size: 14.5px; color: var(--text-secondary); letter-spacing: -0.01em; transition: color .25s cubic-bezier(0.16,1,0.3,1); text-decoration: none; }
.hc .hdr-mob-sub a:hover { color: var(--blue-accent); }
.hc .hdr-mob-foot { display: flex; flex-wrap: wrap; gap: 18px; padding: 18px 4px 4px; border-top: 1px solid #E8E9EC; font-size: 13px; color: #9A9CA0; }
.hc .hdr-mob-foot a { color: #9A9CA0; transition: color .25s cubic-bezier(0.16,1,0.3,1); text-decoration: none; }
.hc .hdr-mob-foot a:hover { color: var(--navy); }
@media (max-width: 900px) { .hc .hdr-mob { display: block; } }

/* ============================================================
   통합 히어로 (.bb-hero)
   ============================================================ */
.hc .bb-hero { background: linear-gradient(180deg, var(--blue-pale) 0%, var(--white) 82%); }
.hc .bb-hero-inner { max-width: 900px; margin: 0 auto; padding: 150px 24px 68px; }
.hc .bb-hero-kick { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--blue-accent); margin: 0 0 20px; text-decoration: none; }
.hc .bb-hero h1 { font-size: clamp(30px, 4vw, 46px); font-weight: 400; letter-spacing: -0.035em; line-height: 1.24; color: var(--navy); margin: 0; word-break: keep-all; }
.hc .bb-hero h1 em { font-style: normal; font-weight: 800; }
.hc .bb-hero-desc { font-size: 17px; color: var(--text-secondary); line-height: 1.85; max-width: 600px; margin-top: 22px; word-break: keep-all; }
.hc .bb-hero-tagline { margin-top: 16px; font-size: 14px; color: var(--text-muted); letter-spacing: -0.01em; }
.hc .bb-hero-tagline em { font-style: normal; font-weight: 700; color: var(--navy); }
@media (max-width: 760px) {
  .hc .bb-hero-inner { padding: 118px 20px 52px; }
  .hc .bb-hero h1 { font-size: clamp(26px, 8vw, 34px); line-height: 1.3; }
  .hc .bb-hero-desc { font-size: 15.5px; margin-top: 18px; }
}

/* 글 상세 히어로 변형 (좌측정렬 텍스트) */
.hc .bb-hero--article .bb-hero-inner { max-width: 780px; padding: 128px 24px 46px; }
.hc .bb-hero--article .breadcrumb { margin-bottom: 16px; }
.hc .bb-hero--article .bb-hero-kick { text-transform: none; letter-spacing: 0.02em; margin: 0 0 14px; transition: color .2s; }
.hc .bb-hero--article .bb-hero-kick:hover { color: var(--navy); }
.hc .bb-hero--article h1 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 400; letter-spacing: -0.03em; line-height: 1.32; }
.hc .bb-hero--article h1 em { font-weight: 800; }
@media (max-width: 768px) {
  .hc .bb-hero--article .bb-hero-inner { padding: 108px 20px 38px; }
  .hc .bb-hero--article h1 { font-size: clamp(22px, 6.4vw, 30px); line-height: 1.36; }
}

/* breadcrumb */
.hc .breadcrumb { font-size: 12.5px; color: var(--text-muted); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.hc .breadcrumb a { color: var(--text-muted); text-decoration: none; transition: color .2s; }
.hc .breadcrumb a:hover { color: var(--navy); }
.hc .breadcrumb .sep { color: var(--gray-300); }
.hc .breadcrumb .current { color: var(--text-secondary); }

/* 글 메타 */
.hc .bb-post-meta { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-top: 20px; font-size: 13.5px; color: var(--text-muted); }
.hc .bb-post-meta-item { display: inline-flex; align-items: center; gap: 6px; }
.hc .bb-post-meta-item svg { opacity: 0.7; }

/* ============================================================
   섹션 헤더 + 카드 시스템 (.bb-*)
   ============================================================ */
.hc .bb-section { padding: 64px 0 20px; }
.hc .bb-sec-head { margin-bottom: 34px; display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.hc .bb-sec-headcol { min-width: 0; }
.hc .bb-eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--navy); }
.hc .bb-eyebrow::before { content: ""; width: 20px; height: 2px; border-radius: 2px; background: var(--navy); }
.hc .bb-sec-title { font-size: 25px; font-weight: 700; color: var(--navy); letter-spacing: -0.9px; margin: 14px 0 0; word-break: keep-all; }
.hc .bb-sec-lead { font-size: 14.5px; color: var(--text-secondary); line-height: 1.75; margin: 12px 0 0; max-width: 720px; word-break: keep-all; }
.hc .bb-sec-more { margin-left: auto; flex-shrink: 0; font-size: 13px; font-weight: 600; color: var(--navy); display: inline-flex; align-items: center; gap: 6px; text-decoration: none; white-space: nowrap; transition: gap 0.25s cubic-bezier(.16,1,.3,1), opacity 0.2s; opacity: 0.72; }
.hc .bb-sec-more:hover { gap: 10px; opacity: 1; }

/* 카드 그리드 (블로그 피드 = 반응형 그리드) */
.hc .bb-cardgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .hc .bb-cardgrid { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (max-width: 600px) { .hc .bb-cardgrid { grid-template-columns: 1fr; gap: 16px; } }

/* 카드 */
.hc .bb-card { --ease: cubic-bezier(0.16, 1, 0.3, 1); position: relative; display: flex; flex-direction: column; min-height: 210px; background: #fff; border: 1px solid var(--gray-100); border-radius: 22px; padding: 32px 30px 26px; text-decoration: none; color: inherit; box-shadow: 0 22px 44px -34px rgba(27,42,74,0.38); transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.4s var(--ease); }
.hc a.bb-card:hover { transform: translateY(-6px); border-color: transparent; box-shadow: 0 36px 66px -36px rgba(27,42,74,0.5); }
.hc .bb-card-kicker { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue-accent); margin-bottom: 13px; }
.hc .bb-card-title { font-size: 18px; font-weight: 700; color: var(--navy); letter-spacing: -0.5px; margin: 0 0 11px; word-break: keep-all; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hc .bb-card-desc { font-size: 13.5px; color: var(--text-secondary); line-height: 1.78; margin: 0; word-break: keep-all; flex-grow: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hc .bb-card-foot { margin-top: 22px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hc .bb-card-meta { font-size: 12px; color: var(--text-muted); letter-spacing: 0.02em; min-width: 0; }
.hc .bb-card-go { margin-left: auto; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: var(--gray-50); color: var(--navy); flex-shrink: 0; transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.4s var(--ease); }
.hc .bb-card-go svg { display: block; }
.hc a.bb-card:hover .bb-card-go { background: var(--navy); color: #fff; transform: translateX(3px); }

/* 썸네일 카드 변형 (대표이미지 있을 때) */
.hc .bb-card--thumb { padding: 0; overflow: hidden; }
.hc .bb-card-thumb { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--gray-50); }
.hc .bb-card--thumb .bb-card-body { padding: 24px 28px 22px; display: flex; flex-direction: column; flex-grow: 1; }

/* ============================================================
   PAGINATION
   ============================================================ */
.hc .pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 52px 0 0; }
.hc .pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 14px; border-radius: 11px; border: 1px solid var(--gray-200); background: #fff; color: var(--text-secondary); font-size: 14px; font-weight: 600; text-decoration: none; transition: all .2s; }
.hc .pagination a.page-numbers:hover { border-color: var(--navy); color: var(--navy); }
.hc .pagination .page-numbers.current { background: var(--navy); color: #fff; border-color: var(--navy); }
.hc .pagination .page-numbers.dots { border-color: transparent; background: transparent; }

/* ============================================================
   SINGLE POST 본문
   ============================================================ */
.hc .author-intro { max-width: 720px; margin: 0 auto; padding: 26px 24px 0; }
.hc .author-intro-card { display: flex; gap: 16px; align-items: center; padding: 16px 20px; background: white; border: 1px solid var(--gray-100); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.hc .author-intro-photo { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; border: 1px solid var(--gray-100); flex-shrink: 0; background: var(--gray-50); }
.hc .author-intro-info { flex: 1; min-width: 0; }
.hc .author-intro-name { font-size: 15px; font-weight: 700; color: var(--navy); letter-spacing: -0.3px; margin-bottom: 2px; }
.hc .author-intro-title { font-size: 12px; color: var(--text-muted); font-weight: 500; }
.hc .author-intro-link { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--navy); font-weight: 600; text-decoration: none; padding: 7px 13px; border-radius: 8px; border: 1px solid var(--gray-200); background: white; transition: all 0.2s; flex-shrink: 0; }
.hc .author-intro-link:hover { border-color: var(--navy); background: var(--navy); color: white; }

.hc .post-body { max-width: 720px; margin: 0 auto; padding: 40px 24px 70px; }
.hc .post-body h2 { color: var(--navy); font-size: 24px; font-weight: 700; line-height: 1.4; letter-spacing: -0.6px; margin: 54px 0 20px; scroll-margin-top: 96px; word-break: keep-all; opacity: 0; transform: translateY(8px); transition: opacity 0.45s ease-out, transform 0.45s ease-out; }
.hc .post-body h2.in { opacity: 1; transform: translateY(0); }
.hc .post-body h3 { color: var(--navy); font-size: 19px; font-weight: 700; line-height: 1.45; letter-spacing: -0.4px; margin: 36px 0 14px; word-break: keep-all; }
@media (prefers-reduced-motion: reduce) { .hc .post-body h2 { opacity: 1; transform: none; transition: none; } }
.hc .post-body p { font-size: 17px; color: var(--text-secondary); line-height: 1.95; margin: 0; word-break: keep-all; }
.hc .post-body p strong { color: var(--navy); font-weight: 600; }
.hc .post-body p:empty { display: none; }
.hc .post-body p + p { margin-top: 22px; }
.hc .post-body p + p.break-soft { margin-top: 16px; }
.hc .post-body p + p.break-hard { margin-top: 32px; }
.hc .post-body h2 + p, .hc .post-body h3 + p { margin-top: 0; }
.hc .post-body p:first-of-type { font-size: 18px; color: var(--navy); line-height: 1.9; }
.hc .post-body ul, .hc .post-body ol { margin: 20px 0; padding-left: 1.3em; color: var(--text-secondary); font-size: 16.5px; line-height: 1.9; }
.hc .post-body li { margin: 7px 0; }
.hc .post-body li::marker { color: var(--blue-accent); }
.hc .post-body img { border-radius: var(--radius); margin: 28px 0; }
.hc .post-body figure { margin: 28px 0; }
.hc .post-body figcaption { font-size: 13px; color: var(--text-muted); text-align: center; margin-top: 10px; }
.hc .post-body blockquote { margin: 28px 0; padding: 18px 24px; border-left: 3px solid var(--blue-accent); background: var(--gray-50); border-radius: 0 var(--radius) var(--radius) 0; color: var(--text-secondary); font-size: 16px; line-height: 1.85; }
.hc .post-body a { color: var(--blue-accent); text-decoration: underline; text-underline-offset: 2px; }

/* 목차(TOC) */
.hc .post-toc { margin: 0 0 30px; padding: 18px 22px; background: #fff; border: 1px solid var(--gray-100); border-radius: var(--radius); box-shadow: 0 18px 40px -36px rgba(27,42,74,0.34); }
.hc .post-toc-title { font-weight: 700; color: var(--navy); font-size: 15px; letter-spacing: -0.2px; margin-bottom: 9px; }
.hc .post-toc-list { margin: 0; padding-left: 1.25em; }
.hc .post-toc-list li { margin: 5px 0; line-height: 1.55; }
.hc .post-toc-list li::marker { color: var(--text-muted); }
.hc .post-toc-list a { color: var(--text-secondary); text-decoration: none; transition: color .15s; }
.hc .post-toc-list a:hover { color: var(--navy); text-decoration: underline; }

/* 핵심 요약(AEO 답변박스) — 목차(.post-toc)와 동일 톤. 목차 위 배치, 검색 스니펫·AI 발췌용 3줄 */
.hc .post-summary { margin: 0 0 18px; padding: 18px 22px; background: #fff; border: 1px solid var(--gray-100); border-radius: var(--radius); box-shadow: 0 18px 40px -36px rgba(27,42,74,0.34); }
.hc .post-summary-label { font-weight: 700; color: var(--navy); font-size: 15px; letter-spacing: -0.2px; margin-bottom: 9px; }
.hc .post-summary-list { margin: 0; padding-left: 1.25em; }
.hc .post-summary-list li { margin: 5px 0; line-height: 1.6; color: var(--text-secondary); word-break: keep-all; }
.hc .post-summary-list li::marker { color: var(--text-muted); }

/* 관련 안내 밴드 (본원 퍼널) */
.hc .related-hub { max-width: 720px; margin: 44px auto 0; padding: 0 24px; }
.hc .related-hub-card { display: block; background: #fff; color: inherit; border: 1px solid var(--gray-100); border-radius: var(--radius-lg); padding: 30px 34px; text-decoration: none; position: relative; overflow: hidden; box-shadow: 0 18px 40px -36px rgba(27,42,74,0.34); transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), box-shadow 0.4s cubic-bezier(0.16,1,0.3,1), border-color 0.3s; }
.hc .related-hub-card:hover { transform: translateY(-3px); border-color: var(--navy); box-shadow: 0 22px 48px -34px rgba(27,42,74,0.42); }
.hc .related-hub-label { font-size: 12px; color: var(--blue-accent); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 10px; }
.hc .related-hub-title { font-size: 21px; font-weight: 800; color: var(--navy); margin-bottom: 8px; letter-spacing: -0.5px; line-height: 1.35; word-break: keep-all; }
.hc .related-hub-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 16px; max-width: 80%; word-break: keep-all; }
.hc .related-hub-arrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--navy); }
.hc .related-hub-go { position: absolute; right: 28px; bottom: 28px; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; transition: transform 0.3s; }
.hc .related-hub-card:hover .related-hub-go { transform: translateX(3px); }

/* 관련글 */
.hc .related-posts { max-width: 1180px; margin: 72px auto 0; padding: 0 24px; }
.hc .related-posts .bb-sec-title { margin-top: 12px; }

/* 이전/다음 글 */
.hc .post-adjacent { max-width: 900px; margin: 40px auto 0; padding: 0 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hc .post-adjacent-link { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border: 1px solid var(--gray-100); border-radius: var(--radius); text-decoration: none; background: #fff; transition: border-color .18s, background .18s; }
.hc .post-adjacent-link:hover { border-color: var(--navy); background: var(--gray-50); }
.hc .post-adjacent-link.next { text-align: right; }
.hc .post-adjacent-label { font-size: 12px; font-weight: 600; color: var(--text-muted); }
.hc .post-adjacent-title { font-size: 14px; font-weight: 600; color: var(--text-secondary); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 768px) { .hc .post-adjacent { grid-template-columns: 1fr; } }

/* ============================================================
   CTA SECTION (내원 유도 → 본원/네이버)
   ============================================================ */
.hc .cta-section { background: var(--blue-pale); padding: 78px 24px 70px; text-align: center; color: var(--navy); margin-top: 72px; }
.hc .cta-section h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 700; margin-bottom: 12px; letter-spacing: -0.5px; color: var(--navy); word-break: keep-all; }
.hc .cta-section p { font-size: 15px; color: var(--text-secondary); margin-bottom: 30px; word-break: keep-all; }
.hc .cta-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hc .cta-btn { display: inline-flex; align-items: center; gap: 10px; background: #fff; color: var(--navy); border: 1px solid var(--gray-200); padding: 14px 26px; border-radius: 12px; font-size: 15px; font-weight: 600; text-decoration: none; transition: transform 0.25s cubic-bezier(.16,1,.3,1), box-shadow 0.25s, border-color 0.25s; box-shadow: 0 10px 26px -16px rgba(27,42,74,0.28); }
.hc .cta-btn:hover { transform: translateY(-2px); border-color: var(--navy); box-shadow: 0 16px 34px -16px rgba(27,42,74,0.4); }
.hc .cta-mark-naver { display: inline-flex; width: 20px; height: 20px; background: #03C75A; color: #fff; font-weight: 800; font-size: 12px; border-radius: 6px; align-items: center; justify-content: center; line-height: 1; }
.hc .cta-mark-kakao { display: inline-flex; width: 20px; height: 20px; background: #FEE500; color: #3A1D1D; border-radius: 6px; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; }

/* ============================================================
   FOOTER
   ============================================================ */
.hc .footer { background: var(--gray-50); color: var(--text-muted); padding: 62px 24px 108px; border-top: 1px solid var(--gray-100); }
.hc .footer-top { max-width: 1180px; margin: 0 auto; }
.hc .footer-logo { font-size: 17px; font-weight: 700; color: var(--navy); letter-spacing: -0.02em; }
.hc .footer-tagline { font-size: clamp(19px, 2.4vw, 25px); font-weight: 400; color: var(--navy); letter-spacing: -0.03em; line-height: 1.4; margin: 14px 0 0; word-break: keep-all; }
.hc .footer-tagline em { font-style: normal; font-weight: 700; }
.hc .footer-eeat { font-size: 13.5px; color: var(--text-secondary); line-height: 1.8; margin: 18px 0 0; max-width: 640px; word-break: keep-all; }
.hc .footer-bottom { max-width: 1180px; margin: 38px auto 0; padding-top: 24px; border-top: 1px solid var(--gray-100); display: flex; justify-content: space-between; align-items: flex-start; gap: 18px 40px; flex-wrap: wrap; }
.hc .footer-info { font-size: 12.5px; color: var(--text-muted); line-height: 1.9; }
.hc .footer-links { display: flex; flex-wrap: wrap; gap: 18px; flex-shrink: 0; }
.hc .footer-links a, .hc .footer-links button { color: var(--text-secondary); text-decoration: none; font-size: 13.5px; font-weight: 500; transition: color 0.2s; background: none; border: none; padding: 0; cursor: pointer; font-family: inherit; }
.hc .footer-links a:hover, .hc .footer-links button:hover { color: var(--navy); }
.hc .footer-copy { max-width: 1180px; margin: 18px auto 0; font-size: 12px; color: var(--text-muted); letter-spacing: 0.01em; }
@media (max-width: 760px) {
  .hc .footer { padding: 36px 20px 88px; }
  .hc .footer-logo { font-size: 14.5px; }
  .hc .footer-tagline { font-size: 16.5px; margin-top: 8px; }
  .hc .footer-eeat { font-size: 12.5px; line-height: 1.65; margin-top: 11px; }
  .hc .footer-bottom { flex-direction: column; gap: 12px; margin-top: 22px; padding-top: 16px; }
  .hc .footer-info { font-size: 11.5px; line-height: 1.75; }
  .hc .footer-links { gap: 12px 16px; }
  .hc .footer-copy { font-size: 11px; margin-top: 12px; }
}

/* ============================================================
   하단 연락 스티키바 (슬림 · 글라스 · 전화/네이버/카톡)
   ============================================================ */
.hc .cbar { position: fixed; left: 0; right: 0; bottom: 12px; z-index: 1500; padding: 0 12px; pointer-events: none; }
.hc .cbar-inner { pointer-events: auto; max-width: 440px; margin: 0 auto; display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.82); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); border: 1px solid rgba(255,255,255,.9); border-radius: 16px; padding: 8px; box-shadow: 0 0 0 .5px rgba(27,42,74,.14), 0 2px 8px rgba(27,42,74,.10), 0 18px 40px -16px rgba(27,42,74,.4); }
.hc .cbar-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 44px; padding: 0 8px; border-radius: 12px; font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; border: 1px solid transparent; box-shadow: 0 3px 10px -4px rgba(27,42,74,.4); transition: transform .2s, box-shadow .2s; }
.hc .cbar-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px -6px rgba(27,42,74,.42); }
.hc .cbar-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.hc .cbar-btn.tel { background: var(--navy); color: #fff; }
.hc .cbar-btn.naver { background: #03C75A; color: #fff; }
.hc .cbar-btn.kakao { background: #FEE500; color: #3A1D1D; }
.hc .cbar-btn .lb { display: inline; }
@media (max-width: 480px) {
  .hc .cbar-btn { font-size: 13px; padding: 0 6px; gap: 6px; }
}

/* ============================================================
   REVEAL
   ============================================================ */
.hc .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); will-change: opacity, transform; }
.hc .reveal.in-view, .hc .reveal.in { opacity: 1; transform: translateY(0); }
.hc .reveal.d1 { transition-delay: 0.08s; }
.hc .reveal.d2 { transition-delay: 0.16s; }
.hc .reveal.d3 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) { .hc .reveal { opacity: 1; transform: none; transition: none; } }

/* ============================================================
   검색 / 404 / 빈 상태
   ============================================================ */
.hc .state { max-width: 720px; margin: 0 auto; padding: 150px 24px 90px; text-align: center; }
.hc .state h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; color: var(--navy); letter-spacing: -0.03em; margin-bottom: 14px; }
.hc .state p { font-size: 16px; color: var(--text-secondary); line-height: 1.8; margin-bottom: 28px; word-break: keep-all; }
.hc .state .searchform { display: flex; gap: 8px; max-width: 460px; margin: 0 auto 24px; }
.hc .state .searchform input[type=search] { flex: 1; height: 48px; padding: 0 18px; border: 1px solid var(--gray-200); border-radius: 12px; font-size: 15px; font-family: inherit; color: var(--navy); }
.hc .state .searchform button { height: 48px; padding: 0 22px; border: none; border-radius: 12px; background: var(--navy); color: #fff; font-size: 15px; font-weight: 700; cursor: pointer; }
.hc .state .btn-home { display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: 12px; background: var(--navy); color: #fff; font-weight: 700; text-decoration: none; }

/* ============================================================
   PRIVACY MODAL
   ============================================================ */
.hc .privacy-modal-backdrop { display: none; position: fixed; inset: 0; background: rgba(15,23,42,0.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); z-index: 2000; align-items: center; justify-content: center; padding: 24px; }
.hc .privacy-modal-backdrop.open { display: flex; }
.hc .privacy-modal { background: white; width: 100%; max-width: 720px; max-height: 85vh; border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,0.25); display: flex; flex-direction: column; overflow: hidden; }
.hc .privacy-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 22px 28px; border-bottom: 1px solid #E5E7EB; }
.hc .privacy-modal-title { font-size: 18px; font-weight: 700; color: #1B2A4A; letter-spacing: -0.3px; }
.hc .privacy-modal-close { width: 36px; height: 36px; border: none; background: transparent; color: #475569; cursor: pointer; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: background 0.2s; padding: 0; }
.hc .privacy-modal-close:hover { background: #F8FAFC; color: #1B2A4A; }
.hc .privacy-modal-body { padding: 24px 28px 32px; overflow-y: auto; color: #475569; font-size: 14px; line-height: 1.75; }
.hc .privacy-modal-body h3 { color: #1B2A4A; font-size: 15px; font-weight: 700; margin: 22px 0 8px; letter-spacing: -0.2px; }
.hc .privacy-modal-body h3:first-child { margin-top: 0; }
.hc .privacy-modal-body p { margin: 0 0 8px; }
.hc .privacy-modal-body ul { margin: 0 0 8px; padding-left: 18px; }
.hc .privacy-modal-body li { margin-bottom: 4px; }
.hc .privacy-modal-body .privacy-meta { margin-top: 24px; padding-top: 16px; border-top: 1px dashed #D8DCE4; font-size: 13px; color: #94A3B8; }

/* ============================================================
   explainer(원장 설명 클립) — 음소거 루프 MP4 + CSS 자막 오버레이
   자막 = figcaption 실제 텍스트(검색·AI 크롤 가능, AEO). 영상=assets/explainer-{n}.mp4.
   바=중앙 정렬 / 글씨=좌측 / 폭=내용 맞춤. (본원 byunbaksa .bb-explainer 계승, .hc 스코프)
   ============================================================ */
/* 폰트·여백을 clamp()+vw 로 뷰포트에 매끄럽게 축소 → 모바일·태블릿·인앱브라우저 자막이
   영상을 덮지 않게(600px 고정 브레이크포인트의 절벽 제거). 블로그스팟(power_blogger)과 동일값. */
.hc .bb-explainer { margin: clamp(20px,5vw,44px) auto; max-width: 560px; }
.hc .bb-explainer-media { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: var(--navy-deep); box-shadow: 0 3px 10px -4px rgba(27,42,74,0.10), 0 30px 56px -34px rgba(27,42,74,0.46); }
.hc .bb-explainer-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.hc .bb-explainer-lower { position: absolute; left: 50%; transform: translateX(-50%); bottom: 5%; z-index: 2; width: -webkit-max-content; width: max-content; max-width: 90%; }
.hc .bb-explainer-tab { display: block; width: -webkit-fit-content; width: fit-content; font-size: clamp(9.5px,2.8vw,11.5px); font-weight: 700; letter-spacing: -0.2px; padding: 3px 10px; border-radius: 8px 8px 0 0; white-space: nowrap; background: var(--navy); color: #fff; }
.hc .bb-explainer-box { display: block; width: auto; max-width: 100%; border-radius: 0 11px 11px 11px; padding: clamp(6px,1.6vw,9px) clamp(12px,3.2vw,18px); background: rgba(255,255,255,0.86); backdrop-filter: blur(9px) saturate(1.4); -webkit-backdrop-filter: blur(9px) saturate(1.4); box-shadow: 0 8px 24px -10px rgba(0,0,0,0.4); }
.hc .bb-explainer-cap { margin: 0; font-size: clamp(12px,3.4vw,16.5px); font-weight: 700; line-height: 1.4; letter-spacing: -0.3px; word-break: keep-all; text-align: left; color: var(--navy); }
/* ★override: 본문 리드문단 규칙 `.post-body p:first-of-type`(18px, 특이성 0,3,1)이 자막을 덮어씀
   — 자막 <p>가 자기 박스 안 '첫 p'라 걸림. !important 로 확실히 이기게(경쟁 규칙엔 !important 없음). */
.hc .post-body .bb-explainer-cap { margin: 0 !important; font-size: clamp(12px,3.4vw,16.5px) !important; line-height: 1.4 !important; }

/* ============================================================
   클리닉 허브(카테고리 아카이브) — 서브클리닉 칩 + 자주 묻는 질문
   ★T-2a. 허브가 담는 키워드 표면을 넓히는 블록. 데이터 = helpers.php hc_verticals().
   기존 .post-toc / .post-summary 와 동일 톤(흰 배경 · 네이비 제목 · 얕은 그림자).
   ============================================================ */
.hc .hc-hub-subs, .hc .hc-hub-faq { max-width: 1120px; margin-inline: auto; }
.hc .hc-hub-h2 { font-size: clamp(19px, 2.2vw, 23px); font-weight: 700; color: var(--navy); letter-spacing: -0.4px; margin: 0 0 16px; }

.hc .hc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.hc .hc-chip {
  display: inline-block; padding: 8px 15px; border-radius: 999px;
  background: #fff; border: 1px solid var(--gray-200);
  color: var(--text-secondary); font-size: 14.5px; font-weight: 600;
  letter-spacing: -0.2px; word-break: keep-all;
}
.hc a.hc-chip { text-decoration: none; transition: border-color .15s, color .15s; }
.hc a.hc-chip:hover { border-color: var(--blue-accent); color: var(--navy); }

.hc .hc-faq-item {
  padding: 18px 22px; margin-bottom: 10px; background: #fff;
  border: 1px solid var(--gray-100); border-radius: var(--radius);
  box-shadow: 0 18px 40px -36px rgba(27,42,74,0.34);
}
.hc .hc-faq-q { font-size: 16px; font-weight: 700; color: var(--navy); letter-spacing: -0.3px; margin: 0 0 7px; word-break: keep-all; }
.hc .hc-faq-a { margin: 0; color: var(--text-secondary); font-size: 15.5px; line-height: 1.8; word-break: keep-all; }

@media (max-width: 640px) {
  .hc .hc-chip { font-size: 13.5px; padding: 7px 13px; }
  .hc .hc-faq-item { padding: 16px 18px; }
}

/* 지역 페이지(/local/) 본문 문단 — 허브 블록과 같은 톤 */
.hc .hc-local-p { margin: 0 0 14px; color: var(--text-secondary); font-size: 16px; line-height: 1.85; word-break: keep-all; max-width: 760px; }
.hc .hc-local-p:last-child { margin-bottom: 0; }
.hc .hc-local-addr { color: var(--text-muted); font-size: 15px; }
