/*
Theme Name: Dojeon Legal Column
Theme URI: https://blogdojeon.com
Author: 법무법인 도전
Author URI: https://dojeonlaw.com
Description: 법무법인 도전 법률 칼럼 사이트의 SEO·AEO 최적화 워드프레스 테마. 회생·이혼·민사·형사 4개 카테고리, 변호사별(박준우·조정현) 자동 매칭, YMYL 카테고리 E-E-A-T 신호 강화, 토픽 클러스터 구조를 제공합니다.
Version: 1.23.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: Proprietary
License URI: https://dojeonlaw.com
Text Domain: dojeon
Tags: legal, law-firm, blog, seo, aeo, korean
*/

/* ===== CSS Variables (Design System) ===== */
:root {
  /* Brand Colors */
  --navy: #1A2B4A;
  --navy-light: #2E6B9E;
  --blue-accent: #2E8FD0;
  --cream: #FAF6EE;
  --cream-darker: #F1E8D6;
  --card: #FFFDF8;
  
  /* Text */
  --text-primary: #1A2B4A;
  --text-secondary: #5D6B7C;
  --text-tertiary: #9AA5B3;
  
  /* Borders */
  --border: #E5DBC6;
  --border-strong: #C9B896;
  
  /* Accent */
  --amber: #8B5F2A;
  --amber-bg: #F5E8CF;
  
  /* Kakao */
  --kakao-yellow: #FAE100;
  --kakao-brown: #3C1E1E;
  /* Naver TalkTalk (v1.12.0) */
  --naver-green: #03C75A;
  
  /* Semantic Colors (NEW for highlight, warning, etc.) */
  --highlight: #C0392B;
  --warning-bg: #FFF8E1;
  --warning-border: #F5C518;
  --info-bg: #E8F0F7;
  --info-border: #2E6B9E;
  
  /* Spacing Scale */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
  --space-2xl: 64px;
  
  /* Typography Scale */
  --fs-xs: 11px;
  --fs-sm: 13px;
  --fs-base: 16px;
  --fs-md: 17px;
  --fs-lg: 19px;
  --fs-xl: 22px;
  --fs-2xl: 28px;
  --fs-3xl: 38px;
}

/* ===== Reset ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  /* v1.9.0: 폰트 비차단 로딩으로 첫 1~2초 시스템 폰트 노출 가능(FOUT).
     iOS/macOS = Apple SD Gothic Neo, Android = Noto Sans KR/CJK,
     Windows = Malgun Gothic 로 우아하게 폴백되도록 한국어 시스템 폰트 우선 배치. */
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', 'Noto Sans CJK KR', 'Malgun Gothic', '맑은 고딕', sans-serif;
  background: var(--cream);
  color: var(--text-primary);
  font-size: var(--fs-base);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--blue-accent); }

img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--navy);
  color: var(--cream);
  padding: 8px 16px;
  z-index: 999;
  text-decoration: none;
}
.skip-link:focus { top: 0; }

/* ===== Header ===== */
.site-header {
  background: rgba(255, 253, 248, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 0.5px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  max-width: 1200px;
  margin: 0 auto;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.site-logo svg { width: 26px; height: 28px; }
/* v1.6.3: 헤더 로고 + "도전 법률 블로그" 텍스트를 단일 <a class="site-branding"> 로 묶음.
   .site-branding 자체가 anchor 라 빈 공간까지 클릭 영역이 되며, hover 시 텍스트만 강조한다. */
.site-branding {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.site-branding-text {
  font-family: 'Noto Serif KR', serif;
  font-size: 1.0625rem;   /* 17px */
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.01em;
  line-height: 1;
}
.site-branding:hover .site-branding-text { color: var(--blue-accent); }

/* 헤더 custom-logo 사이즈 — v1.6.1 부터 48px. 단일 .site-branding anchor 안과
   the_custom_logo() 출력(폴백/외부 사용) 둘 다 매치. */
.custom-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
}
.custom-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.site-logo .title {
  font-family: 'Noto Serif KR', serif;
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.main-nav {
  flex: 1;
  display: flex;
  gap: 24px;
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
  margin-left: 40px;
  list-style: none;
}
.main-nav li { position: relative; }
.main-nav > li > a { cursor: pointer; transition: color 0.15s; padding: 8px 0; display: inline-block; }
.main-nav > li > a:hover { color: var(--navy); }
.main-nav > li.current-menu-item > a,
.main-nav > li.current-menu-parent > a { color: var(--navy); font-weight: 600; }

/* Dropdown */
.main-nav .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--card);
  border: 0.5px solid var(--border);
  border-radius: 8px;
  min-width: 200px;
  padding: 8px 0;
  box-shadow: 0 4px 12px rgba(26, 43, 74, 0.08);
  list-style: none;
  z-index: 99;
}
.main-nav li:hover > .sub-menu,
.main-nav li:focus-within > .sub-menu { display: block; }
.main-nav .sub-menu a {
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--text-secondary);
}
.main-nav .sub-menu a:hover { background: var(--cream-darker); color: var(--navy); }

/* v1.11.3: header-cta 그룹 wrapper — 상담예약 + 카톡 상담 두 버튼을 8px gap 으로 묶음.
   ≤900px 에서 wrapper 통째로 숨김(반응형 단일 진입점). */
.header-cta-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--navy);
  color: var(--cream);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.15s;
}
.header-cta:hover { background: #0F1A2E; color: var(--cream); }
.header-cta svg { width: 13px; height: 13px; }
/* v1.11.3: 헤더 카톡 상담 버튼 — header-cta 와 동일 사이즈(높이/패딩/radius/폰트).
   amber #8B5F2A + cream #FAF6EE = 5.13:1 (AA). 사이트 톤 일관성(노랑 X). */
.header-kakao-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--amber);
  color: var(--cream);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.15s;
  text-decoration: none;
}
.header-kakao-cta:hover { background: #6F4A1F; color: var(--cream); }
.header-kakao-cta svg { width: 13px; height: 13px; flex-shrink: 0; }

/* Mobile menu */
.mobile-menu-btn {
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 4px;
  margin-left: 12px;
}
.mobile-menu-btn svg { width: 24px; height: 24px; color: var(--navy); }

.mobile-drawer {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26, 43, 74, 0.5);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.mobile-drawer.open { display: block; opacity: 1; pointer-events: auto; }
.mobile-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 80%;
  max-width: 320px;
  background: var(--card);
  padding: 24px 24px 32px;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.mobile-drawer.open .mobile-drawer-panel { transform: translateX(0); }
.mobile-drawer-close {
  align-self: flex-end;
  background: transparent;
  border: 0;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-secondary);
  padding: 4px 8px;
  margin: -8px -8px 16px;
}
.mobile-drawer-panel ul { list-style: none; padding: 0; }
.mobile-drawer-panel a {
  display: block;
  padding: 14px 0;
  border-bottom: 0.5px solid var(--border);
  font-size: 15px;
  color: var(--navy);
  font-weight: 500;
}
.mobile-drawer-panel .sub-menu a {
  padding-left: 16px;
  font-size: 14px;
  color: var(--text-secondary);
}
.mobile-drawer-panel a.current-menu-item,
.mobile-drawer-panel a.current { color: var(--amber); font-weight: 600; }
/* v1.11.3: 모바일 드로어 하단 CTA — navy 박스 컨테이너 제거(드로어 자체가 컨테이너).
   3버튼 직접 stack: 전화 2(navy bg + cream text, 12.2:1 AAA) + 카톡 1(amber bg + cream text, 5.13:1 AA).
   v1.11.2 의 navy 박스 + cream 버튼 → v1.11.3 박스 제거 + navy/amber solid 버튼으로 색상 반전.
   .mobile-drawer-panel a 의 border-bottom/color/padding 상속을 끊기 위해 !important 사용. */
.mobile-drawer-actions {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mobile-drawer-action {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 12px 16px !important;
  border-radius: 8px;
  border-bottom: 0 !important;
  font-weight: 600;
  text-align: center;
  line-height: 1.4;
  transition: background 0.15s;
}
.mobile-drawer-action-tel {
  background: var(--navy);
  color: var(--cream) !important;
}
.mobile-drawer-action-tel:hover {
  background: #0F1A2E;
  color: var(--cream) !important;
}
.mobile-drawer-action-label { font-size: 13px; }
.mobile-drawer-action-phone {
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}
/* 카톡 — amber #8B5F2A + cream #FAF6EE = 5.13:1 (AA). 사이트 톤 일관성 위해 노랑 X. */
.mobile-drawer-action-kakao {
  flex-direction: row !important;
  gap: 6px;
  background: var(--amber);
  color: var(--cream) !important;
  font-size: 14px;
}
.mobile-drawer-action-kakao svg { flex-shrink: 0; }
.mobile-drawer-action-kakao:hover {
  background: #6F4A1F;
  color: var(--cream) !important;
}
/* v1.12.0: 드로어 네이버 톡톡 — 카톡과 동일 amber 톤(사이트 일관성). 브랜드 그린 원하면 background 만 var(--naver-green) 으로. */
.mobile-drawer-action-navertalk {
  flex-direction: row !important;
  gap: 6px;
  background: var(--amber);
  color: var(--cream) !important;
  font-size: 14px;
}
.mobile-drawer-action-navertalk svg { flex-shrink: 0; }
.mobile-drawer-action-navertalk:hover {
  background: #6F4A1F;
  color: var(--cream) !important;
}

/* ===== Hero ===== */
.hero { padding: 56px 0 40px; }
.hero-eyebrow {
  font-size: var(--fs-xs);
  color: var(--amber);
  letter-spacing: 0.18em;
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: uppercase;
}
.hero-headline {
  font-family: 'Noto Serif KR', serif;
  font-size: var(--fs-3xl);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: var(--navy);
}
.hero-headline .accent { color: var(--amber); }
.hero-sub {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 580px;
  margin: 0 0 24px;
}
.hero-search {
  display: flex;
  max-width: 460px;
  border: 0.5px solid var(--border-strong);
  border-radius: 8px;
  overflow: hidden;
  background: var(--card);
}
.hero-search input {
  flex: 1;
  padding: 12px 16px;
  border: 0;
  background: transparent;
  font-size: 14px;
  outline: 0;
  color: var(--navy);
  font-family: inherit;
}
.hero-search input::placeholder { color: var(--text-tertiary); }
.hero-search button {
  padding: 12px 24px;
  background: var(--navy);
  color: var(--cream);
  border: 0;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}

/* ===== Sticky Category Tabs ===== */
.category-tabs-wrap {
  position: sticky;
  top: 65px;
  background: rgba(250, 246, 238, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 0.5px solid var(--border);
  z-index: 90;
  padding: 12px 0;
}
.category-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  padding: 0 24px;
  max-width: 1200px;
  margin: 0 auto;
  scrollbar-width: none;
}
.category-tabs::-webkit-scrollbar { display: none; }
.category-tab {
  display: inline-block;
  padding: 6px 14px;
  border: 0.5px solid var(--border-strong);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-secondary);
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s;
  flex-shrink: 0;
  background: transparent;
}
.category-tab:hover { background: var(--cream-darker); color: var(--navy); }
.category-tab.active {
  background: var(--navy);
  color: var(--cream);
  border-color: var(--navy);
}

/* ===== Featured Article ===== */
.featured { padding: 40px 0 32px; }
.featured-inner {
  background: var(--card);
  border-radius: 16px;
  border: 0.5px solid var(--border);
  padding: 32px;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  align-items: center;
}
.featured-inner .thumb {
  background: var(--amber-bg);
  aspect-ratio: 1;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.featured-inner .thumb svg { width: 64px; height: 64px; }
.featured-inner .thumb img { width: 100%; height: 100%; object-fit: cover; }
.featured h2, .featured-inner h2 {
  font-family: 'Noto Serif KR', serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--navy);
  margin: 8px 0 12px;
}
.featured h2 a, .featured-inner h2 a { color: inherit; }
.featured h2 a:hover, .featured-inner h2 a:hover { color: var(--blue-accent); }
.featured .excerpt {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 16px;
}
.featured .meta {
  font-size: 12px;
  color: var(--text-tertiary);
  letter-spacing: 0.02em;
}
.cat-chip {
  display: inline-block;
  padding: 3px 10px;
  background: var(--amber-bg);
  color: var(--amber);
  font-size: 11px;
  font-weight: 600;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

/* ===== Posts Grid ===== */
.posts-section { padding: 40px 0 56px; }
.posts-title {
  font-family: 'Noto Serif KR', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 24px;
}
/* v1.6.0: 카드 그리드를 폭 기준 auto-fill 로 변경.
   320px 미만이면 한 칸이 너무 좁아 가독성 떨어지므로 그 아래는 미디어쿼리로 1열 유지. */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}
.post-card {
  background: var(--card);
  border-radius: 12px;
  border: 0.5px solid var(--border);
  overflow: hidden;
  display: flex;            /* v1.6.0: 세로 stack */
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26, 43, 74, 0.08);
}
/* v1.6.0: 카드 전체를 단일 링크로 감싸 클릭 영역 확장. nested anchor 회피를 위해 chip 은 span. */
.post-card .post-card-link {
  display: flex;
  flex-direction: column;
  flex: 1;
  text-decoration: none;
  color: inherit;
}
.post-card .post-card-link:hover { color: inherit; }
/* v1.6.0: 썸네일 영역 — OG 표준 1200x630 비율 그대로. */
.post-card .thumbnail {
  aspect-ratio: 1200 / 630;
  width: 100%;
  overflow: hidden;
  background: var(--amber-bg);
}
.post-card .thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.post-card .thumbnail-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}
.post-card .thumbnail-placeholder svg { width: 48px; height: 48px; opacity: 0.85; }
.post-card .thumbnail-placeholder.t1 { background: #F5E8CF; }
.post-card .thumbnail-placeholder.t2 { background: #DCE8F0; }
.post-card .thumbnail-placeholder.t3 { background: #F1E8D6; }
.post-card .thumbnail-placeholder.t4 { background: #E5EAD9; }
.post-card .thumbnail-placeholder.t5 { background: #F5E8CF; }
.post-card .thumbnail-placeholder.t6 { background: #E5EAD9; }
/* v1.6.0: 텍스트 영역 .content 도입. */
.post-card .content {
  padding: 16px 20px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.post-card .chip {
  display: inline-block;
  align-self: flex-start;
  padding: 3px 8px;
  margin-bottom: 10px;
  font-size: 10px;
  font-weight: 600;
  border-radius: 3px;
  letter-spacing: 0.04em;
}
/* v1.10.3 추가: chip 4종 모두 4.5:1 이상.
   c1(회생) 5.55:1 / c3(민사) 5.73:1 / c4(형사) 6.02:1 모두 AA 통과.
   c2(이혼)는 navy-light #2E6B9E 가 #DCE8F0 위 4.62:1(경계선)이라 var(--navy) #1A2B4A 로 강화 → 9.7:1(AAA). */
.post-card .chip.c1, .post-card .chip-회생 { background: var(--amber-bg); color: var(--amber); }
.post-card .chip.c2, .post-card .chip-이혼 { background: #DCE8F0; color: var(--navy); }
.post-card .chip.c3, .post-card .chip-민사 { background: #E5EAD9; color: #4A5C3F; }
.post-card .chip.c4, .post-card .chip-형사 { background: #F0DCDC; color: #8B3A3A; }
.post-card .post-title {
  font-family: 'Noto Serif KR', serif;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--navy);
  margin: 0 0 12px;
}
.post-card:hover .post-title { color: var(--blue-accent); }
.post-card .meta {
  font-size: 12px;
  /* v1.10.1: var(--text-tertiary) #9AA5B3 → #4A5867 강화. .post-card 배경(#FFFDF8) 기준 6.6:1 (WCAG AA 통과). */
  color: #4A5867;
  margin-top: auto;          /* 카드 높이가 다른 형제와 다를 때 메타를 바닥에 정렬 */
}
.post-card .meta time { color: inherit; }   /* v1.10.1: time 요소 색상도 메타와 동일하게 강화. */

.see-all-wrap {
  text-align: center;
  margin-top: 32px;
}
.see-all-btn {
  display: inline-block;
  padding: 12px 28px;
  border: 0.5px solid var(--border-strong);
  border-radius: 999px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
.see-all-btn:hover { background: var(--navy); color: var(--cream); }

/* v1.15.0: Author Card — 김앤파트너스 스타일 참조. 원형 사진 + 가운데 정렬 + 소개 버튼.
   기존 .author-box (좌측 letter avatar 수평) 디자인은 v1.15.0 부터 .dojeon-author-card 로 대체. */
.dojeon-author-card {
  margin: 48px auto 32px;
  max-width: 720px;
  padding: 40px 28px 36px;
  background: #fbf5e8;
  border: 1px solid #ecdec0;
  border-radius: 14px;
  text-align: center;
}
.dojeon-author-photo-wrap {
  display: flex;
  justify-content: center;
  margin: 0 0 18px;
}
.dojeon-author-photo {
  display: block;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  background: #fff;
  border: 3px solid #ffffff;
  box-shadow: 0 4px 18px rgba(0,0,0,0.08);
}
.dojeon-author-photo-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Noto Serif KR', serif;
  font-size: 48px;
  font-weight: 700;
  color: var(--amber, #c97a3f);
  background: #ffffff;
}
.dojeon-author-role-card {
  font-family: 'Noto Serif KR', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--navy, #1a2c44);
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}
.dojeon-author-bio {
  font-size: 14.5px;
  line-height: 1.85;
  color: #3d4757;
  margin: 0 auto 22px;
  max-width: 560px;
  text-align: center;
}
.dojeon-author-cta-wrap { margin: 0; }
.dojeon-author-cta {
  display: inline-block;
  padding: 10px 24px;
  background: #ffffff;
  border: 1px solid #d9c89b;
  border-radius: 999px;
  color: var(--navy, #1a2c44);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.dojeon-author-cta:hover {
  background: var(--amber, #c97a3f);
  border-color: var(--amber, #c97a3f);
  color: #ffffff;
}

@media (max-width: 540px) {
  .dojeon-author-card { padding: 32px 20px 28px; margin: 36px auto 28px; }
  .dojeon-author-photo { width: 108px; height: 108px; }
  .dojeon-author-photo-fallback { font-size: 40px; }
  .dojeon-author-role-card { font-size: 17px; }
  .dojeon-author-bio { font-size: 14px; }
}

/* v1.14.0: 상담 폼 — Contact Form 7 기반 AJAX 폼. CF7_inquiry_form_template.md 참조.
   Image 8 스타일: 베이지 박스 + 라디오·input·버튼 골든 톤. */
/* v1.17.0: 폼 사이즈 김앤파트너스 스타일로 축소 (760px → 460px). */
.dojeon-inquiry-section {
  margin: 48px auto 40px;
  max-width: 460px;
  padding: 28px 26px 26px;
  background: #fdf6ed;
  border: 1px solid #e8d9b8;
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(201,122,63,0.08);
}
.dojeon-inquiry-section .dojeon-inquiry-title {
  text-align: center;
  font-family: 'Noto Serif KR', serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--navy, #1a2c44);
  margin: 0 0 6px;
}
.dojeon-inquiry-section .dojeon-inquiry-sub {
  text-align: center;
  font-size: 13px;
  color: #6b7280;
  margin: 0 0 22px;
}
/* v1.20.0: CF7 가 폼 안에 자동으로 추가하는 <p>·<br>·wpcf7-form-control-wrap 의 기본 여백을
   리셋. wpcf7_autop_or_not filter 가 비활성화돼도 CF7 핵심 컨트롤이 .wpcf7-form-control-wrap
   래퍼를 두르고 그게 자체 margin/padding 을 가질 수 있어, 명시적으로 0 강제. */
.dojeon-inquiry-section .wpcf7,
.dojeon-inquiry-section .wpcf7 form,
.dojeon-inquiry-section .wpcf7 p,
.dojeon-inquiry-section .wpcf7 br { margin: 0; padding: 0; }
.dojeon-inquiry-section .wpcf7 br { display: none; }
.dojeon-inquiry-section .wpcf7-form-control-wrap {
  display: block;
  margin: 0;
  padding: 0;
  position: static;
}
.dojeon-inquiry-section .wpcf7-not-valid-tip {
  display: block;
  margin: 4px 0 0;
  font-size: 12px;
  color: #d33;
}

/* v1.18.0: 김앤파트너스 스타일 매칭 — 항목 간 간격 좁힘. */
.dojeon-form { display: flex; flex-direction: column; gap: 12px; }
.dojeon-form-row { margin: 0; }
.dojeon-form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 540px) {
  .dojeon-form-grid-2 { grid-template-columns: 1fr; }
}
.dojeon-form-field { display: block; }
.dojeon-form-label,
.dojeon-form-radios legend {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy, #1a2c44);
  margin: 0 0 5px;
  padding: 0;
}
.dojeon-form input[type="text"],
.dojeon-form input[type="tel"],
.dojeon-form input[type="email"],
.dojeon-form select,
.dojeon-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  background: #ffffff;
  border: 1px solid #e0d4b8;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
  color: #1a1a2e;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.dojeon-form input[type="text"]:focus,
.dojeon-form input[type="tel"]:focus,
.dojeon-form input[type="email"]:focus,
.dojeon-form select:focus,
.dojeon-form textarea:focus {
  outline: none;
  border-color: var(--amber, #c97a3f);
  box-shadow: 0 0 0 3px rgba(201,122,63,0.18);
}
.dojeon-form textarea { resize: vertical; min-height: 100px; }

/* v1.18.0: 업무분야 라디오 — 김앤파트너스 스타일 segmented control.
   3개 옵션이 단일 베이지 컨테이너 안에서 균등 분할. 선택 시 짙은 앰버 fill + 흰 글자. */
.dojeon-form-radios { border: none; padding: 0; margin: 0; }
.dojeon-form-radios .wpcf7-radio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: #fbf2dd;
  border-radius: 10px;
  padding: 5px;
}
.dojeon-form-radios .wpcf7-list-item {
  margin: 0;
  display: block;
}
.dojeon-form-radios .wpcf7-list-item > label,
.dojeon-form-radios .wpcf7-list-item label {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 11px 4px;
  background: transparent;
  border: none;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  color: #a08358;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  line-height: 1.3;
  width: 100%;
  box-sizing: border-box;
}
.dojeon-form-radios .wpcf7-list-item label:hover { color: var(--navy, #1a2c44); }
.dojeon-form-radios .wpcf7-list-item input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0; height: 0;
}
/* 선택된 옵션 강조 — :has() 모던 브라우저 + checked sibling fallback 동시 */
.dojeon-form-radios .wpcf7-list-item:has(input[type="radio"]:checked) label,
.dojeon-form-radios .wpcf7-list-item input[type="radio"]:checked ~ .wpcf7-list-item-label {
  background: var(--amber, #c97a3f);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(201,122,63,0.28);
  font-weight: 700;
}

/* 개인정보 동의 */
.dojeon-form-consent {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #4a5867;
  padding: 8px 0 0;
}
.dojeon-form-consent .wpcf7-list-item { margin: 0; }
.dojeon-form-consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--amber, #c97a3f);
  margin: 0;
}

/* Submit */
.dojeon-form-submit-wrap { text-align: center; margin: 8px 0 0; }
.dojeon-form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  padding: 14px 24px;
  background: var(--amber, #c97a3f);
  color: #ffffff;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.08s ease;
}
.dojeon-form-submit:hover { background: #b46a32; }
.dojeon-form-submit:active { transform: translateY(1px); }
.dojeon-form-submit:disabled,
.dojeon-form-submit[disabled] { opacity: 0.65; cursor: not-allowed; }

/* CF7 응답 메시지 */
.dojeon-inquiry-section .wpcf7-response-output {
  margin: 16px 0 0;
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 14px;
  text-align: center;
}
.dojeon-inquiry-section .wpcf7 form.sent .wpcf7-response-output {
  background: #e8f5e9;
  border-color: #2e7d32;
  color: #1b5e20;
}
.dojeon-inquiry-section .wpcf7 form.invalid .wpcf7-response-output,
.dojeon-inquiry-section .wpcf7 form.spam .wpcf7-response-output {
  background: #fef3f2;
  border-color: #d33;
  color: #d33;
}
.dojeon-inquiry-section .wpcf7-spinner { margin: 0 12px; }

/* v1.14.0: 목차 (TOC) — H2 3개 이상인 글 자동 노출.
   모바일 (~1279px): details 접힘 형태로 본문 흐름 안에 위치.
   데스크탑 (1280px+): 글 영역 왼쪽 빈 여백에 sticky 떠 있음, 현재 보는 H2 active 강조. */
.dojeon-toc {
  margin: 0 0 32px 0;
  background: #fdf6ed;
  border: 1px solid #e8d9b8;
  border-radius: 10px;
  overflow: hidden;
}
.dojeon-toc-details { width: 100%; }
.dojeon-toc-summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: 'Noto Serif KR', serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--navy, #1a2c44);
}
.dojeon-toc-summary::-webkit-details-marker { display: none; }
.dojeon-toc-summary::marker { content: ''; }
.dojeon-toc-summary:focus-visible {
  outline: 2px solid var(--amber, #c97a3f);
  outline-offset: -2px;
}
.dojeon-toc-arrow {
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--navy, #1a2c44);
  border-bottom: 2px solid var(--navy, #1a2c44);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.dojeon-toc-details[open] .dojeon-toc-arrow { transform: rotate(-135deg); }
.dojeon-toc-list {
  list-style: none;
  margin: 0;
  padding: 4px 20px 16px 20px;
  border-top: 1px solid #f0e2c4;
}
.dojeon-toc-list .dojeon-toc-item {
  margin: 0;
  padding: 6px 0;
}
.dojeon-toc-list .dojeon-toc-item a {
  display: inline-block;
  color: #555a66;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.55;
  transition: color 0.15s ease;
  border-left: 2px solid transparent;
  padding-left: 8px;
  margin-left: -10px;
}
.dojeon-toc-list .dojeon-toc-item a:hover { color: var(--amber, #c97a3f); }
.dojeon-toc-list .dojeon-toc-h3 a {
  padding-left: 24px;
  font-size: 13px;
  color: #6b7280;
}
.dojeon-toc-list .dojeon-toc-active a,
.dojeon-toc-list .dojeon-toc-item a[aria-current="true"] {
  color: var(--amber, #c97a3f);
  font-weight: 700;
  border-left-color: var(--amber, #c97a3f);
}

/* 데스크탑 sticky — 1280px 이상에서 글 영역 좌측 빈 여백에 떠 있음.
   single-article 가 max-width 720~840px 안에 있는 컨테이너 안 → viewport 좌측 빈 영역에 fixed-like. */
@media (min-width: 1280px) {
  .dojeon-toc {
    position: sticky;
    top: 84px;
    float: left;
    width: 220px;
    margin: 0 28px 32px -260px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    z-index: 5;
  }
  .dojeon-toc-summary { cursor: default; pointer-events: none; }
  .dojeon-toc-arrow { display: none; }
  /* details 강제 열림 */
  .dojeon-toc-details { pointer-events: auto; }
}
@media (min-width: 1440px) {
  .dojeon-toc { margin-left: -300px; }
}

/* 스크롤 시 H2 가 헤더에 가리지 않도록 padding 보정 (smooth scroll 시점) */
html { scroll-padding-top: 90px; }

/* v1.13.0: 최근 칼럼 "더보기" 버튼 — REST 페이지네이션 (6개씩 추가). */
.load-more-wrap {
  text-align: center;
  margin-top: 36px;
}
.load-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 38px;
  background: var(--amber-bg, #FDF6ED);
  color: var(--amber, #C97A3F);
  border: 1.5px solid var(--amber, #C97A3F);
  border-radius: 999px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.1s ease;
}
.load-more-btn:hover  { background: var(--amber, #C97A3F); color: #fff; }
.load-more-btn:active { transform: translateY(1px); }
.load-more-btn:disabled,
.load-more-btn[disabled] { opacity: 0.65; cursor: not-allowed; }

/* ===== CTA Strip ===== */
.cta-strip {
  background: var(--navy);
  color: var(--cream);
  padding: 56px 0;
}
.cta-strip-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}
.cta-strip h3 {
  font-family: 'Noto Serif KR', serif;
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--cream);
}
.cta-strip p {
  color: var(--cream-darker);
  font-size: 14px;
  opacity: 0.85;
}
/* v1.10.5: 글로벌 cta-strip 좌측 보조 링크 — 본사 사이트 종합 진입점.
   navy 배경 위 cream(#FAF6EE) = 12.2:1 (AAA). underline 으로 비색상 식별. */
.cta-strip .cta-strip-secondary {
  margin-top: 16px;
  font-size: 13px;
  opacity: 1;            /* 부모 p 의 opacity 0.85 override — 보조 링크가 충분히 보이도록 */
}
.cta-strip-org-link {
  color: var(--cream);
  text-decoration: underline;
  text-decoration-thickness: 0.5px;
  text-underline-offset: 3px;
  font-weight: 600;
}
.cta-strip-org-link:hover {
  color: var(--cream-darker);
  text-decoration-thickness: 1.5px;
}
.cta-strip-btn {
  display: inline-block;
  padding: 14px 28px;
  background: var(--cream);
  color: var(--navy);
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  transition: background 0.15s;
  text-align: center;
  line-height: 1.5;
}
.cta-strip-btn:hover { background: var(--cream-darker); color: var(--navy); }
/* v1.10.0: 라벨 4분야 표기로 늘어난 만큼 라벨/번호 분리 마크업으로 모바일 스택 가능. */
.cta-strip-btn-label { display: inline; }
.cta-strip-btn-phone { display: inline; margin-left: 6px; font-variant-numeric: tabular-nums; }

/* v1.10.3: 글로벌 cta-strip 안 카카오톡 채널 버튼 — 두 변호사 검정톤 카드 아래 stack.
   amber-bg + amber 텍스트 = 5.55:1 (AA) + SVG 단색 아이콘으로 카톡임을 명시(노랑 X).
   다크네이비 배경 위에 따뜻한 톤 박스가 시각적 위계 차별화. */
.cta-strip-btn-kakao {
  background: var(--amber-bg);
  color: var(--amber);
}
.cta-strip-btn-kakao:hover {
  background: var(--amber);
  color: var(--cream);
}
.cta-strip-btn-kakao .cta-strip-btn-label svg {
  vertical-align: -2px;
  margin-right: 4px;
}

/* ===== Footer ===== */
/* v1.10.2: 링크 색상 분리 — 본문 텍스트는 그레이-네이비, 링크는 어두운 파랑 톤으로
   "링크다운" 시각 신호 부여. 모두 4.5:1 이상 (Lighthouse 접근성 100점 목표).
   배경 #F1E8D6 기준:
   - 본문 #2E3D55 → 8.0:1 (AAA)
   - 링크 평상 #1A4480 → 7.9:1 (AAA, 파란 링크 톤)
   - 링크 hover #1A2B4A → 11.5:1 (AAA, 평상보다 진하게)
   - 사업자 정보·copyright #4A5867 → 5.6:1 (AA)
   v1.10.1 의 .site-footer a #2E3D55 는 통과는 했으나 본문과 동색이라 링크 식별성 약했음.
   v1.10.0 까지 footer.php 인라인 style="color: var(--blue-accent)" #2E8FD0(2.89:1)이
   공식 사이트 링크에 박혀 있어 specificity 로 .site-footer a override → v1.10.2 에서 인라인 제거. */
.site-footer {
  background: var(--cream-darker);
  padding: 40px 0 32px;
  font-size: 13px;
  color: #2E3D55;
  line-height: 2;
  border-top: 0.5px solid var(--border);
}
.site-footer a { color: #1A4480; }
.site-footer a:hover { color: var(--navy); }
.site-footer strong { color: var(--navy); }
.footer-official-link { margin-top: 12px; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-brand {
  font-family: 'Noto Serif KR', serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.footer-links {
  text-align: right;
  font-size: 12px;
}

/* v1.10.1: 사업자 정보 박스 — footer-inner 아래 한 줄/두 줄 가독성 균형. */
.business-info {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 0.5px solid var(--border);
  font-size: 12.5px;
  line-height: 1.85;
  color: #4A5867;
}
.business-info-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}
.business-info-row strong { color: var(--navy); font-weight: 600; }
.business-info-row .sep {
  color: #9AA5B3;
  font-weight: 300;
}
.business-info a {
  /* v1.10.2: footer 링크 톤 통일 #1A4480 (7.9:1, AAA) + underline 으로 링크 식별성 유지. */
  color: #1A4480;
  text-decoration: underline;
  text-decoration-thickness: 0.5px;
  text-underline-offset: 2px;
}
.business-info a:hover { color: var(--navy); text-decoration-thickness: 1px; }
.business-info .copyright {
  margin-top: 14px;
  color: #4A5867;
  font-size: 12px;
  letter-spacing: 0.02em;
}

/* v1.10.3: footer 사업자 정보 라인 안 카카오톡 채널 링크 — 작은 텍스트 + 14px SVG.
   사이트 톤 단색(노랑 X). cream-darker 배경 #1A4480 위 7.9:1, AAA. */
.footer-kakao-link-wrap { display: inline-flex; align-items: center; }
.footer-kakao-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #1A4480;
  text-decoration: underline;
  text-decoration-thickness: 0.5px;
  text-underline-offset: 2px;
}
.footer-kakao-link svg { flex-shrink: 0; }
.footer-kakao-link:hover {
  color: var(--navy);
  text-decoration-thickness: 1px;
}

/* v1.10.3: about-park / about-jo 페이지 본문 끝 자동 카톡 + 직통 라인.
   functions.php 의 the_content 필터가 page slug 매칭으로 자동 삽입. */
.about-contact-strip {
  margin: 40px 0 0;
  padding: 24px 28px;
  background: var(--cream-darker);
  border-radius: 12px;
  border: 0.5px solid var(--border);
}
.about-contact-strip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  font-size: 15px;
}
.about-contact-strip .about-contact-tel {
  font-weight: 700;
  /* cream-darker 위 #1A4480 7.9:1 (AAA). 색상 + underline 으로 비색상 식별. */
  color: #1A4480;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 0.5px;
}
.about-contact-strip .about-contact-tel:hover {
  color: var(--navy);
  text-decoration-thickness: 1.5px;
}
.about-contact-strip .about-contact-kakao {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #1A4480;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 0.5px;
  font-weight: 600;
}
.about-contact-strip .about-contact-kakao svg { flex-shrink: 0; }
.about-contact-strip .about-contact-kakao:hover {
  color: var(--navy);
  text-decoration-thickness: 1.5px;
}
.about-contact-strip .about-contact-hint {
  margin: 10px 0 0;
  font-size: 12px;
  color: #4A5867;
  line-height: 1.5;
}
/* v1.10.5: about 페이지 본사 사이트 종합 진입점 보조 링크. */
.about-contact-strip .about-contact-org {
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 0.5px solid var(--border);
  font-size: 13px;
}
.about-contact-strip .about-contact-org-link {
  color: #1A4480;
  text-decoration: underline;
  text-decoration-thickness: 0.5px;
  text-underline-offset: 3px;
  font-weight: 500;
}
.about-contact-strip .about-contact-org-link:hover {
  color: var(--navy);
  text-decoration-thickness: 1.5px;
}

/* ===== Floating Kakao Button ===== */
.kakao-floating {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: kakaoBob 2.4s ease-in-out infinite;
}
.kakao-tooltip {
  background: var(--navy);
  color: var(--cream);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.kakao-tooltip strong { color: var(--kakao-yellow); }
@keyframes kakaoBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
.kakao-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--kakao-yellow);
  border: 0;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}
.kakao-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.kakao-btn:active { transform: scale(0.96); }
.kakao-btn svg {
  width: 32px;
  height: 32px;
  color: var(--kakao-brown);
}
.kakao-btn .badge {
  position: absolute;
  top: 0;
  right: 0;
  width: 12px;
  height: 12px;
  background: #E24B4A;
  border-radius: 50%;
  border: 2px solid white;
}

/* ===== Floating Naver TalkTalk (v1.12.0) — 카톡 플로팅 위에 stack ===== */
.navertalk-floating {
  position: fixed;
  right: 24px;
  bottom: 96px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: kakaoBob 2.4s ease-in-out infinite;
}
.navertalk-tooltip {
  background: var(--navy);
  color: var(--cream);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.navertalk-tooltip strong { color: var(--naver-green); }
.navertalk-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--naver-green);
  border: 0;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}
.navertalk-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.navertalk-btn:active { transform: scale(0.96); }
.navertalk-btn svg {
  width: 32px;
  height: 32px;
  color: #ffffff;
}
.navertalk-btn .badge {
  position: absolute;
  top: 0;
  right: 0;
  width: 12px;
  height: 12px;
  background: #E24B4A;
  border-radius: 50%;
  border: 2px solid white;
}

/* ===== Single Post (AEO Critical) ===== */
.single-article {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 24px 64px;
}

.single-article .breadcrumbs {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}
.single-article .breadcrumbs a:hover { color: var(--navy); }
.single-article .breadcrumbs .separator { margin: 0 6px; opacity: 0.5; }

.single-article header.entry-header {
  margin-bottom: 32px;
}
/* v1.10.3 추가: 본문 헤더 카테고리 링크.
   amber on amber-bg = 5.55:1 (AA). 색상-only 식별 회피용 hover 시 색 반전(amber bg + cream text)
   으로 비색상 시각 단서 추가(WCAG 1.4.1). chip 모양(둥근 사각형 + 패딩 + 배경)이 이미
   비색상 단서 역할도 겸함. */
.single-article .entry-category {
  display: inline-block;
  padding: 4px 12px;
  background: var(--amber-bg);
  color: var(--amber);
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
  margin-bottom: 16px;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.single-article .entry-category:hover,
.single-article .entry-category:focus-visible {
  background: var(--amber);
  color: var(--cream);
}
.single-article h1.entry-title {
  font-family: 'Noto Serif KR', serif;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-bottom: 20px;
}
.single-article .entry-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 13px;
  /* v1.10.3: var(--text-secondary) #5D6B7C (white 위 4.69:1 경계) → #4A5867 (6.6:1) 강화. */
  color: #4A5867;
  padding: 16px 0;
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
}
.single-article .entry-meta .author {
  font-weight: 600;
  color: var(--navy);
}
/* v1.10.3: 인라인 style 제거 → 클래스. white 위 6.6:1. */
.single-article .entry-meta .job-title {
  font-weight: normal;
  color: #4A5867;
  margin-left: 4px;
}
.single-article .entry-meta .entry-modified { color: #4A5867; }
/* v1.10.3: separator var(--text-tertiary) #9AA5B3 (2.4:1 미달) → #4A5867 (6.6:1, AA). */
.single-article .entry-meta .separator { color: #4A5867; opacity: 0.8; }

/* v1.10.3: 본문 끝 태그 박스 — 인라인 style 제거 → 클래스로 이전.
   chip 배경 cream-darker 위 텍스트 #2E3D55 (8:1, AAA). */
.single-article .entry-tags {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 0.5px solid var(--border);
}
.single-article .entry-tags-label {
  font-size: 13px;
  color: #4A5867;
  margin-right: 12px;
}
.single-article .entry-tag-chip {
  display: inline-block;
  padding: 4px 12px;
  margin: 0 4px 4px 0;
  background: var(--cream-darker);
  color: #2E3D55;
  font-size: 13px;
  border-radius: 999px;
  text-decoration: none;
}
.single-article .entry-tag-chip:hover {
  background: var(--border);
  color: var(--navy);
}

/* Direct Answer Box (AEO core) */
.direct-answer {
  background: var(--info-bg);
  border-left: 4px solid var(--info-border);
  padding: 20px 24px;
  margin: 32px 0;
  border-radius: 0 8px 8px 0;
}
.direct-answer .label {
  font-size: 11px;
  font-weight: 600;
  color: var(--info-border);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.direct-answer p {
  font-size: var(--fs-base);
  color: var(--navy);
  line-height: 1.7;
  margin: 0;
  font-weight: 500;
}

/* Article Body */
.entry-content {
  font-size: var(--fs-base);
  line-height: 1.85;
  color: var(--text-primary);
}
.entry-content > * + * { margin-top: 1.2em; }
.entry-content h2 {
  font-family: 'Noto Serif KR', serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--navy);
  margin-top: 2em;
  margin-bottom: 0.8em;
  padding-bottom: 0.4em;
  border-bottom: 1px solid var(--border);
}
.entry-content h3 {
  font-family: 'Noto Serif KR', serif;
  font-size: 19px;
  font-weight: 600;
  color: var(--navy);
  margin-top: 1.8em;
  margin-bottom: 0.6em;
}
.entry-content h4 {
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--navy);
  margin-top: 1.5em;
  margin-bottom: 0.4em;
}
.entry-content p { margin-bottom: 1.2em; }
.entry-content strong { color: var(--navy); font-weight: 600; }
.entry-content em { font-style: italic; color: var(--text-secondary); }
.entry-content blockquote {
  border-left: 3px solid var(--amber);
  padding: 8px 0 8px 20px;
  margin: 24px 0;
  color: var(--text-secondary);
  font-style: italic;
  background: var(--amber-bg);
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content ul, .entry-content ol {
  padding-left: 24px;
  margin-bottom: 1.2em;
}
.entry-content li { margin-bottom: 0.5em; }
/* v1.10.3: 본문 링크 색상 강화 — `--blue-accent` #2E8FD0 (white 위 4.49:1, 경계선)
   → #1A4480 (white 위 7.9:1, AAA). 색상-only 식별 회피용 underline 유지. */
.entry-content a {
  color: #1A4480;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 0.5px;
}
.entry-content a:hover {
  color: var(--navy);
  text-decoration-thickness: 1.5px;
}
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}
.entry-content table th, .entry-content table td {
  padding: 12px 16px;
  border: 1px solid var(--border);
  text-align: left;
}
.entry-content table th {
  background: var(--cream-darker);
  color: var(--navy);
  font-weight: 600;
}
.entry-content code {
  background: var(--cream-darker);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.9em;
  font-family: 'SF Mono', Monaco, Consolas, monospace;
}
.entry-content figure { margin: 24px 0; }
.entry-content figcaption {
  font-size: 13px;
  /* v1.10.3: var(--text-tertiary) #9AA5B3 (white 위 2.34:1, 미달) → #4A5867 (6.6:1, AA). */
  color: #4A5867;
  text-align: center;
  margin-top: 8px;
}

/* Highlight (red+bold from Naver guide) */
.entry-content .highlight {
  color: var(--highlight);
  font-weight: 600;
}

/* Tip box */
.entry-content .tip-box {
  background: var(--warning-bg);
  border-left: 4px solid var(--warning-border);
  padding: 16px 20px;
  margin: 24px 0;
  border-radius: 0 8px 8px 0;
}
.entry-content .tip-box::before {
  content: "💡 ";
  margin-right: 4px;
}

/* Warning box */
.entry-content .warning-box {
  background: #FFF5F0;
  border-left: 4px solid #F97316;
  padding: 16px 20px;
  margin: 24px 0;
  border-radius: 0 8px 8px 0;
}
.entry-content .warning-box::before {
  content: "⚠️ ";
  margin-right: 4px;
}

/* v1.8.0: 메타박스 FAQ 박스 (.dojeon-faq-section).
   v1.11.0: 클릭형 아코디언 + Q/A 원형 뱃지 디자인.
   v1.11.1: 각 FAQ 항목이 항상 독립된 흰 카드(round + shadow). 접힘/펼침 모두 카드 형태 유지.
            카드 사이 12px 간격으로 시각 구분, hover 시 그림자 강화.
   - 색상은 cream-darker namespace 충돌 방지를 위해 hard-code.
   - WCAG AA 4.5:1 — 본문/질문 #1A1A1A on #FFFFFF (16:1 AAA), Q뱃지 #8B7244 on #E8DFC9 (5.0:1 AA),
     count #8B7244 on #F5F1EA (5.1:1 AA), A뱃지 #8B7244 on #FFFFFF (5.4:1 AA).
     화살표 #555 = 그래픽 UI(WCAG 1.4.11 ≥3:1) 충족. 사용자 스펙의 #B89968 / #888 은 흰
     배경 위 각각 2.7:1 / 3.6:1 로 AA 미달이라 darker tan/gray 로 보정(접근성 정책 유지). */
.dojeon-faq-section {
  margin: 56px 0 32px;
  padding: 32px 24px;
  background: #F5F1EA;
  border-radius: 12px;
}
.dojeon-faq-section .dojeon-faq-title {
  font-family: 'Noto Serif KR', serif;
  font-size: var(--fs-xl);
  font-weight: 700;
  color: #1A1A1A;
  margin: 0 0 20px;
}
.dojeon-faq-section .dojeon-faq-count {
  font-size: 14px;
  font-weight: 500;
  color: #8B7244;
  margin-left: 8px;
  letter-spacing: 0.01em;
}
.dojeon-faq-section .dojeon-faq-container {
  display: flex;
  flex-direction: column;
}
/* v1.11.1 핵심 — 각 항목은 항상 독립 흰 카드. */
.dojeon-faq-section .dojeon-faq-item {
  background: #FFFFFF;
  border-radius: 12px;
  margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}
.dojeon-faq-section .dojeon-faq-item:last-child {
  margin-bottom: 0;
}
.dojeon-faq-section .dojeon-faq-item:hover {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}
.dojeon-faq-section .dojeon-faq-question {
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  list-style: none;
  padding: 18px 24px;
  font-size: 15px;
  font-weight: 500;
  color: #1A1A1A;
  line-height: 1.5;
  -webkit-tap-highlight-color: transparent;
}
.dojeon-faq-section .dojeon-faq-question::-webkit-details-marker { display: none; }
.dojeon-faq-section .dojeon-faq-question::marker { content: ''; }
.dojeon-faq-section .dojeon-faq-question:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: -2px;
}
.dojeon-faq-section .dojeon-faq-question-text {
  flex: 1;
  min-width: 0;
}
.dojeon-faq-section .dojeon-faq-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #E8DFC9;
  color: #8B7244;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1;
}
.dojeon-faq-section .dojeon-faq-arrow {
  margin-left: auto;
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #555;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.dojeon-faq-section .dojeon-faq-arrow::before {
  content: '▼';
  font-size: 12px;
  line-height: 1;
}
.dojeon-faq-section .dojeon-faq-item[open] .dojeon-faq-arrow {
  transform: rotate(180deg);
}
/* 펼친 상태 — 카드는 흰 배경 그대로, summary 아래 구분선만. */
.dojeon-faq-section .dojeon-faq-item[open] .dojeon-faq-question {
  border-bottom: 1px solid #F0EBE0;
}
/* 답변 영역 — A 뱃지(좌) + 답변 텍스트(우). */
.dojeon-faq-section .dojeon-faq-answer {
  display: flex;
  gap: 16px;
  padding: 20px 24px;
}
.dojeon-faq-section .dojeon-faq-badge-a {
  background: transparent;
  color: #8B7244;
}
.dojeon-faq-section .dojeon-faq-answer-text {
  flex: 1;
  min-width: 0;
  /* 흰 카드 위 본문 — #1A1A1A 16:1 (AAA). */
  color: #1A1A1A;
  font-size: 15px;
  line-height: 1.75;
}
.dojeon-faq-section .dojeon-faq-answer-text p { margin: 0 0 12px; }
.dojeon-faq-section .dojeon-faq-answer-text p:last-child { margin-bottom: 0; }
.dojeon-faq-section .dojeon-faq-answer-text strong {
  font-weight: 700;
  color: #1A1A1A;
}
.dojeon-faq-section .dojeon-faq-answer-text a {
  color: #1A4480;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 0.5px;
}
.dojeon-faq-section .dojeon-faq-answer-text a:hover {
  color: var(--navy);
  text-decoration-thickness: 1.5px;
}
@media (max-width: 768px) {
  .dojeon-faq-section { padding: 24px 16px; margin: 40px 0 24px; }
  .dojeon-faq-section .dojeon-faq-title { font-size: var(--fs-lg); margin-bottom: 18px; }
  .dojeon-faq-section .dojeon-faq-question {
    padding: 14px 16px;
    font-size: 14px;
    gap: 12px;
  }
  .dojeon-faq-section .dojeon-faq-answer { padding: 16px; gap: 12px; }
  .dojeon-faq-section .dojeon-faq-badge { width: 26px; height: 26px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .dojeon-faq-section .dojeon-faq-item,
  .dojeon-faq-section .dojeon-faq-arrow { transition: none; }
}

/* FAQ Section (AEO - FAQPage schema target) */
.faq-section {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 0.5px solid var(--border);
}
.faq-section h2 {
  font-family: 'Noto Serif KR', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 24px;
}
.faq-item {
  border-bottom: 0.5px solid var(--border);
  padding: 20px 0;
}
.faq-item:last-child { border-bottom: 0; }
.faq-question {
  font-weight: 600;
  color: var(--navy);
  font-size: var(--fs-base);
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.faq-question::before {
  content: "Q.";
  color: var(--amber);
  font-weight: 700;
  flex-shrink: 0;
}
.faq-answer {
  color: var(--text-secondary);
  line-height: 1.8;
  padding-left: 24px;
}
.faq-answer p { margin-bottom: 0.8em; }
.faq-answer p:last-child { margin-bottom: 0; }

/* Author Box (E-E-A-T) */
.author-box {
  background: var(--card);
  border: 0.5px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin: 48px 0 32px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.author-box .author-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--amber-bg);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Noto Serif KR', serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--amber);
}
.author-box .author-info { flex: 1; }
.author-box .author-label {
  font-size: 11px;
  font-weight: 600;
  /* v1.10.3: var(--text-tertiary) #9AA5B3 (card 위 2.4:1, 미달) → #4A5867 (6.6:1, AA). */
  color: #4A5867;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.author-box .author-name {
  font-family: 'Noto Serif KR', serif;
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}
/* v1.10.3: 인라인 style 제거 → 클래스로 이전. card 배경 위 6.6:1. */
.author-box .author-role {
  font-size: 14px;
  color: #4A5867;
  font-weight: 500;
  margin-left: 4px;
}
.author-box .author-bio {
  font-size: 14px;
  /* v1.10.3: #5D6B7C → #2E3D55 (card 위 8:1, AAA — 안전선 위로 강화). */
  color: #2E3D55;
  line-height: 1.6;
}
/* v1.10.3: 변호사 소개 → 링크. 인라인 #2E8FD0 (4.49:1) 제거 → #1A4480 + underline (7.9:1, AAA). */
.author-box .author-link-row {
  margin-top: 12px;
  font-size: 13px;
}
.author-box .author-link {
  color: #1A4480;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 0.5px;
  font-weight: 500;
}
.author-box .author-link:hover {
  color: var(--navy);
  text-decoration-thickness: 1.5px;
}

/* v1.6.0: 본문 직답 박스 (article.html 의 <aside class="answer-box">). */
.answer-box {
  border-left: 4px solid var(--blue-accent);
  background: var(--cream-darker);
  padding: 20px 24px;
  border-radius: 0 12px 12px 0;
  margin: 32px 0;
}
.answer-box p {
  margin: 0;
  line-height: 1.7;
}
.answer-box p:first-child {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--blue-accent);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

/* v1.6.0: 본문 inline 자동 tel: 변환 링크 — 본문 흐름에 자연스럽게. */
.auto-tel-link {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.auto-tel-link:hover { color: var(--blue-accent); }

/* Funnel CTA (to dojeonlaw.com) — v1.6.1 박스 형태 복구.
   v1.6.0 에서 background 를 var(--cream) 으로 바꿨더니 body 배경과 같아 시각 구획이 사라졌다.
   따뜻한 톤은 유지하되 cream-darker 로 한 단계 진하게 + border 추가로 박스를 명확히 한다. */
.funnel-cta {
  background: var(--cream-darker);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  margin: 48px 0;
  text-align: center;
}
.funnel-cta > p:first-child,
.funnel-cta > strong:first-child {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}
.funnel-cta strong { font-weight: 700; }
.funnel-cta h3, .funnel-cta .funnel-cta-headline {
  font-family: 'Noto Serif KR', serif;
  font-size: 18px;
  color: var(--navy);
  margin-bottom: 8px;
}
/* v1.10.5: funnel-cta 부제 — 본 글 작성 변호사 명시(즉시 수임 신뢰 강화). */
.funnel-cta .funnel-cta-subtitle {
  font-size: 14px;
  color: #2E3D55;
  margin-bottom: 12px;
  line-height: 1.6;
  font-weight: 500;
}
.funnel-cta .funnel-cta-subtitle strong {
  color: var(--navy);
  font-weight: 700;
}
.funnel-cta p {
  font-size: 14px;
  /* v1.10.3: var(--text-secondary) #5D6B7C (cream-darker 위 4.21:1, 미달) → #2E3D55 (8:1, AAA). */
  color: #2E3D55;
  margin-bottom: 16px;
  line-height: 1.7;
}
/* v1.10.3: 본문 안 발생 가능한 a (footnote 등) — 4.5:1 + underline. */
.funnel-cta p a, .funnel-cta a:not(.cta-btn) {
  color: #1A4480;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 0.5px;
}
.funnel-cta p a:hover, .funnel-cta a:not(.cta-btn):hover {
  color: var(--navy);
  text-decoration-thickness: 1.5px;
}
.funnel-cta a[href^="tel:"]:not(.cta-btn) {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1A4480;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.funnel-cta .cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
/* v1.10.5: 양자택일 풀폭 액션 컨테이너 — 데스크탑/모바일 모두 1열 stack.
   funnel-cta-decisive 안에서 직통(navy primary) + 카톡(amber kakao) 2버튼만. */
.funnel-cta .cta-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 8px;
}
.funnel-cta .cta-btn-block {
  display: flex;
  width: 100%;
  padding: 14px 24px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  letter-spacing: 0.01em;
}
/* funnel-cta-decisive 변형은 cta-btn.kakao 의 기본 margin-top: 4px 가 불필요(.cta-actions gap 으로 처리). */
.funnel-cta-decisive .cta-btn.kakao { margin-top: 0; }
.funnel-cta .cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s;
}
.funnel-cta .cta-btn.primary {
  background: var(--navy);
  color: var(--cream);
}
.funnel-cta .cta-btn.primary:hover { background: #0F1A2E; color: var(--cream); }
.funnel-cta .cta-btn.secondary {
  background: var(--card);
  color: var(--navy);
  border: 0.5px solid var(--border-strong);
}
.funnel-cta .cta-btn.secondary:hover { background: var(--cream); color: var(--navy); }
/* v1.10.3: 카카오톡 full-width 버튼 — 사이트 톤(navy outline + amber-bg).
   카카오 노랑은 사용 X(접근성·디자인 일관성). 검정 primary 와 차별 두며 웜한 톤 유지. */
.funnel-cta .cta-btn.kakao {
  display: flex;
  width: 100%;
  padding: 14px 24px;
  background: var(--amber-bg);
  color: var(--amber);
  border: 0.5px solid var(--amber);
  margin-top: 4px;
}
.funnel-cta .cta-btn.kakao svg { flex-shrink: 0; }
.funnel-cta .cta-btn.kakao:hover {
  background: var(--amber);
  color: var(--cream);
}
/* 영업시간 보조 문구 — cream-darker 위 5.6:1. */
.funnel-cta .cta-kakao-hint {
  font-size: 12px;
  color: #4A5867;
  margin: 10px 0 0;
  line-height: 1.5;
}

/* Related Posts */
.related-posts {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 0.5px solid var(--border);
}
.related-posts h3 {
  font-family: 'Noto Serif KR', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 20px;
}
.related-posts-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  list-style: none;
}
.related-posts-list a {
  display: block;
  padding: 16px;
  background: var(--card);
  border: 0.5px solid var(--border);
  border-radius: 8px;
  transition: all 0.15s;
}
.related-posts-list a:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
}
.related-posts-list .related-cat {
  display: inline-block;
  font-size: 11px;
  color: var(--amber);
  font-weight: 600;
  margin-bottom: 4px;
}
.related-posts-list .related-title {
  font-size: 14px;
  color: var(--navy);
  font-weight: 500;
  line-height: 1.5;
}

/* ===== Archive / Category Page ===== */
.archive-header {
  padding: 56px 0 32px;
  text-align: center;
  border-bottom: 0.5px solid var(--border);
}
.archive-header .label {
  font-size: 11px;
  color: var(--amber);
  letter-spacing: 0.18em;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.archive-header h1 {
  font-family: 'Noto Serif KR', serif;
  font-size: 36px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 12px;
}
.archive-header .description {
  color: var(--text-secondary);
  font-size: 15px;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Pagination */
.pagination {
  margin: 48px 0;
  text-align: center;
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--text-secondary);
  border: 0.5px solid var(--border);
  background: var(--card);
}
.pagination a:hover { background: var(--cream-darker); color: var(--navy); }
.pagination .current {
  background: var(--navy);
  color: var(--cream);
  border-color: var(--navy);
}

/* ===== Search Results ===== */
.search-results-header {
  padding: 40px 0 24px;
}
.search-results-header h1 {
  font-family: 'Noto Serif KR', serif;
  font-size: 24px;
  color: var(--navy);
}
.search-results-header .count {
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: 8px;
}

/* ===== 404 ===== */
.error-404 {
  text-align: center;
  padding: 96px 24px;
}
.error-404 .code {
  font-family: 'Noto Serif KR', serif;
  font-size: 96px;
  color: var(--amber);
  font-weight: 600;
  line-height: 1;
}
.error-404 h1 {
  font-family: 'Noto Serif KR', serif;
  font-size: 28px;
  color: var(--navy);
  margin: 16px 0 12px;
}
.error-404 p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}
.error-404 a {
  display: inline-block;
  padding: 12px 24px;
  background: var(--navy);
  color: var(--cream);
  border-radius: 8px;
  font-weight: 500;
}

/* ===== Mobile Responsive ===== */
@media (max-width: 900px) {
  .featured-inner { grid-template-columns: 1fr; gap: 20px; padding: 24px; }
  .featured-inner .thumb { aspect-ratio: 16/9; max-width: 100%; }
  /* v1.6.0: posts-grid 는 auto-fill minmax(320px, 1fr) 가 폭에 따라 자동 컬럼 결정.
     이전엔 여기서 강제 2열로 덮어썼지만 이제는 자연스럽게 흐르도록 둔다. */
  .posts-grid { gap: 20px; }
  .related-posts-list { grid-template-columns: 1fr; }
  .hero-headline { font-size: 30px; }
  .single-article h1.entry-title { font-size: 26px; }
  .main-nav { display: none; }
  .header-cta-group { display: none; }
  .mobile-menu-btn { display: block; }
  .archive-header h1 { font-size: 28px; }
}

@media (max-width: 640px) {
  .header-inner { padding: 14px 16px; }
  .hero { padding: 36px 0 28px; }
  .hero-headline { font-size: 24px; }
  .hero-sub { font-size: 14px; }
  .posts-grid { grid-template-columns: 1fr; gap: 24px; }
  .featured h2, .featured-inner h2 { font-size: 20px; }
  .featured { padding: 28px 0; }
  .posts-section { padding: 32px 0; }
  .cta-strip { padding: 36px 0; }
  .cta-strip-inner { flex-direction: column; align-items: stretch; text-align: center; }
  /* v1.10.0: 4분야 라벨(개인회생·파산·민사·채권)이 좁은 화면에서 한 줄을 못 채우면
     wrap 허용. 라벨/번호 두 줄로 분리해 가독성 보장 + 번호는 약간 키움(터치 가독성). */
  .cta-strip-btn { white-space: normal; padding: 12px 20px; }
  .cta-strip-btn-label { display: block; font-size: 13px; }
  .cta-strip-btn-phone { display: block; margin-left: 0; margin-top: 4px; font-size: 16px; letter-spacing: 0.02em; }
  .footer-inner { flex-direction: column; }
  .footer-links { text-align: left; }
  /* v1.10.1: 좁은 화면에서 sep('|') 숨기고 사업자 정보 행은 자연 줄바꿈. */
  .business-info { margin-top: 24px; padding-top: 18px; font-size: 12px; line-height: 1.8; }
  .business-info-row .sep { display: none; }
  .business-info-row { gap: 0; }
  .business-info-row span { display: block; width: 100%; }
  .container { padding: 0 16px; }
  .category-tabs-wrap { padding: 10px 0; top: 57px; }
  .category-tabs { padding: 0 16px; }
  .kakao-tooltip { display: none; }
  .kakao-btn { width: 54px; height: 54px; }
  .kakao-btn svg { width: 28px; height: 28px; }
  .navertalk-tooltip { display: none; }
  .navertalk-btn { width: 54px; height: 54px; }
  .navertalk-btn svg { width: 28px; height: 28px; }
  .navertalk-floating { bottom: 88px; }
  .single-article { padding: 24px 16px 48px; }
  .single-article h1.entry-title { font-size: 22px; }
  .entry-content h2 { font-size: 20px; }
  .entry-content h3 { font-size: 17px; }
  .author-box { flex-direction: column; padding: 20px; }
  .author-box .author-avatar { width: 56px; height: 56px; font-size: 20px; }
  .archive-header { padding: 40px 0 24px; }
  .archive-header h1 { font-size: 22px; }
  .funnel-cta { padding: 20px; }
}

/* ===== Print Styles ===== */
@media print {
  .site-header, .site-footer, .kakao-floating, .funnel-cta, .related-posts,
  .author-box .author-avatar, .cta-strip { display: none; }
  body { background: white; color: black; }
  .single-article { max-width: 100%; padding: 0; }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .kakao-floating { animation: none; }
}
