/*
Theme Name: Blocksy Child (Kaicore AEO)
Template: blocksy
Author: Kaicore
Description: Blocksy 자식 테마 — 인블로그 수준 읽기 본문 와꾸(읽기 폭/타이포/TOC/FAQ/관련글). 커스텀 CSS는 이 파일에서 관리(DISALLOW_FILE_EDIT=true라 admin 코드편집 불가).
Version: 0.2.0
Text Domain: blocksy-child
*/

/* ============================================================
   읽기 본문 와꾸 (인블로그 레퍼런스)
   - 본문 폭 720px (700~800 범위)
   - 좌측 정렬, 넉넉한 행간(1.8), 17px
   ============================================================ */

:root {
  --kc-read-width: 720px;
  --kc-read-line: 1.8;
  --kc-read-size: 1.0625rem; /* 17px */
  --kc-font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    system-ui, "Segoe UI", Roboto, "Helvetica Neue", "Apple SD Gothic Neo",
    "Noto Sans KR", sans-serif;
}

/* Pretendard 전역 적용 (제목/본문/버튼/메뉴 등 테마 전반) */
body,
button,
input,
select,
optgroup,
textarea,
.entry-content {
  font-family: var(--kc-body-font, var(--kc-font));
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--kc-heading-font, var(--kc-body-font, var(--kc-font)));
}

/* 사이트별 스킨 변수(--kc-accent 등)는 functions.php가 옵션이 있을 때만 인라인으로 정의한다.
   아래 var(--kc-*, <값>)의 두 번째 값이 미설정 사이트의 기존 색이다. */

/* 전체 배경 화이트 (Blocksy 기본 팔레트 회색 → 흰색) */
body { background-color: var(--kc-bg, #ffffff) !important; }

/* 단일 글/페이지 본문 컨테이너 폭 */
.single .entry-content,
.page .entry-content,
.single .ct-post-summary,
.post-type-archive .entry-content {
  max-width: var(--kc-read-width);
  margin-left: auto;
  margin-right: auto;
}

/* 본문 타이포 — 좌측 정렬, 행간/크기 + AEO 가독성(빌더 미리보기 == 발행본)
   ※ aeo 레포 frontend globals.css `.aeo-content` 규칙과 1:1 동일, 스코프만 .entry-content.
     전부 표준 마크다운 요소만 타겟 → 기존 발행글에도 즉시 적용(raw HTML 불필요). */
.entry-content {
  counter-reset: aeo-h2;       /* h2 자동 번호 배지 카운터 */
  font-size: var(--kc-read-size);
  line-height: var(--kc-read-line);
  font-weight: 360;            /* Pretendard Variable 가변웨이트 — airy하게(헤딩/strong 미영향) */
  color: var(--kc-text, #3a4f66); /* 본문 텍스트 톤 */
  text-align: left;
  word-break: keep-all;        /* 한국어 단어 단위 줄바꿈 */
  overflow-wrap: break-word;
}

.entry-content p { margin: 0 0 1.05em; }

/* 본문 콘텐츠 H1 톤다운 — 번호배지 H2(24px)와 위계 정리.
   ※ 포스트 제목은 Blocksy가 .entry-content 밖 아티클 헤더에 별도 렌더 → 여기 미해당. */
.entry-content h1 {
  font-size: 28px;
  line-height: 1.35;
  font-weight: 800;
  color: var(--kc-ink, #1a1f27);
  margin: 1.4em 0 0.5em;
}

/* 섹션 제목 H2 — 24px + 자동 번호 배지(CSS counter, 마크업 0) */
.entry-content h2 {
  font-size: 24px;
  line-height: 1.4;
  font-weight: 800;
  color: var(--kc-ink, #1a1f27);
  margin: 2.2em 0 0.5em;
  scroll-margin-top: 90px;     /* TOC 앵커 점프 위치 유지 */
  display: flex;
  align-items: baseline;
  gap: 0.5em;
}
.entry-content h2::before {
  counter-increment: aeo-h2;
  content: counter(aeo-h2);
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.7em;
  height: 1.7em;
  padding: 0 0.45em;
  border-radius: 0.45em;
  background: var(--kc-accent-soft, #eef3ff);
  color: var(--kc-accent, #2f6bff);
  font-size: 0.6em;
  font-weight: 800;
  transform: translateY(-0.1em);
}

/* 소제목 H3 — 19px */
.entry-content h3 {
  font-size: 19px;
  line-height: 1.45;
  font-weight: 700;
  color: var(--kc-sub, #33465c);
  margin: 1.8em 0 0.5em;
  scroll-margin-top: 90px;
}

.entry-content ul, .entry-content ol { margin: 0 0 1.4em; padding-left: 1.4em; }
.entry-content li { margin: 0.4em 0; }
.entry-content img { border-radius: 10px; }

/* 핵심 용어 밑줄 강조 (**볼드**) */
.entry-content strong {
  font-weight: 700;
  color: var(--kc-ink, #1a1f27);
  text-decoration: underline;
  text-decoration-color: var(--kc-accent-line, #bcd0ff);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

/* 콜아웃 카드 — blockquote(마크다운 >)를 자동 카드화 (요약/결론/주의).
   .kc-callout 블록 패턴과 accent 팔레트 통일(#2f6bff). raw HTML 없이 > 인용만으로 카드. */
.entry-content blockquote {
  background: var(--kc-panel, #f4f7fb);
  border: 0;
  border-left: 4px solid var(--kc-accent, #2f6bff);
  border-radius: 10px;
  margin: 1.6em 0;
  padding: 16px 20px;
  color: var(--kc-sub, #33465c);
}
.entry-content blockquote p { margin: 0.4em 0; }
.entry-content blockquote ul { margin: 0.3em 0; }
.entry-content blockquote strong { text-decoration: none; }

/* 비교표 — zebra 스트라이프 + 다크 헤더 */
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.6em 0;
  font-size: 15px;
  border: 1px solid #e6eaf0;
  border-radius: 10px;
  overflow: hidden;
}
.entry-content th,
.entry-content td {
  padding: 12px 14px;
  text-align: left;
  border: 0;
  border-bottom: 1px solid #eef1f5;
}
.entry-content thead th { background: var(--kc-table-head, #2b3648); color: var(--kc-accent-ink, #fff); font-weight: 700; }
.entry-content tbody tr:nth-child(even) { background: #f6f8fb; }
.entry-content td:first-child { font-weight: 700; color: var(--kc-ink, #1a1f27); }

/* 본문 링크 — 밑줄 제거(파란색 유지), hover 시에만 밑줄 */
.entry-content a { color: var(--kc-accent, #2f6bff); text-decoration: none; }
.entry-content a:hover { text-decoration: underline; }
.entry-content hr { border: 0; border-top: 1px solid #e6eaf0; margin: 2.4em 0; }

/* 모바일 — 본문/제목 축소 (AEO 640px 브레이크포인트) */
@media (max-width: 640px) {
  .entry-content h2 { font-size: 21px; }
  .entry-content h3 { font-size: 18px; }
}

/* 대표 이미지 라운드 */
.ct-featured-image img { border-radius: 12px; }

/* ============================================================
   TL;DR / 요약 콜아웃 (블록 패턴 .kc-callout)
   ============================================================ */
.kc-callout {
  border: 0;
  border-left: 4px solid var(--kc-accent, #2f6bff);   /* blockquote 카드와 accent 통일 */
  background: var(--kc-panel, #f4f7fb);
  border-radius: 10px;
  padding: 1.1em 1.3em;
  margin: 0 auto 1.8em;
  max-width: var(--kc-read-width);
}
.kc-callout > *:first-child { margin-top: 0; }
.kc-callout > *:last-child { margin-bottom: 0; }
.kc-callout strong { text-decoration: none; }   /* 카드 내부는 밑줄 강조 제외 */
.kc-callout .kc-callout__label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--kc-accent, #2f6bff);
  margin-bottom: 0.4em;
}

/* ============================================================
   본문 내 FAQ (블록 패턴 .kc-faq, <details>)
   ============================================================ */
.kc-faq {
  max-width: var(--kc-read-width);
  margin: 1.8em auto;
}
.kc-faq__item {
  border-bottom: 1px solid #e6e8eb;
  padding: 0.2em 0;
}
.kc-faq__q {
  cursor: pointer;
  font-weight: 600;
  padding: 0.85em 0;
  list-style: none;
}
.kc-faq__q::-webkit-details-marker { display: none; }
.kc-faq__q::after { content: "+"; float: right; color: #888; }
details[open] .kc-faq__q::after { content: "−"; }
.kc-faq__a { padding: 0 0 0.9em; color: #333; line-height: 1.75; }

/* ============================================================
   목차(TOC) — 커스텀 (assets/toc.js 생성)
   모바일: 본문 상단 접이식 박스 / 데스크톱(>=1280px): 본문 왼쪽 sticky
   ============================================================ */
.kc-toc {
  border: 1px solid #e6e8eb;
  border-radius: 10px;
  background: #fafbfc;
  padding: 0.5em 1.1em 0.8em;
  margin: 0 auto 1.8em;
  max-width: var(--kc-read-width);
  font-size: 0.92rem;
}
.kc-toc__title {
  cursor: pointer;
  font-weight: 700;
  padding: 0.5em 0;
  list-style: none;
  color: #1a1a1a;
}
.kc-toc__title::-webkit-details-marker { display: none; }
.kc-toc__title::after { content: " ▾"; color: #999; font-size: 0.85em; }
.kc-toc[open] .kc-toc__title::after { content: " ▴"; }
.kc-toc__list { list-style: none; margin: 0.4em 0 0; padding: 0; }
.kc-toc__item { margin: 0; line-height: 1.4; }
.kc-toc__h3 { padding-left: 0.9em; }
.kc-toc a {
  color: #9aa0a8;
  text-decoration: none;
  display: block;
  padding: 0.32em 0;
  font-size: 0.9rem;
  transition: color 0.12s;
}
.kc-toc__h3 a { font-size: 0.86rem; }
.kc-toc a:hover { color: #1a1a1a; }
.kc-toc a.is-active { color: #1a1a1a; font-weight: 600; }

/* 데스크톱: 본문 좌측 여백에 고정(따라붙음) — 본문과 넉넉히 간격 */
@media (min-width: 1300px) {
  .kc-toc {
    position: fixed;
    top: 104px;
    left: calc(50% - 660px);
    width: 210px;
    max-width: 210px;
    max-height: calc(100vh - 150px);
    overflow-y: auto;
    margin: 0;
    background: transparent;
    border: none;
    padding: 0;
  }
  .kc-toc__title { cursor: default; pointer-events: none; font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; color: #b0b6bd; }
  .kc-toc__title::after { display: none; }
  /* 활성 항목 왼쪽 얇은 바 (읽기 진행 느낌) */
  .kc-toc__list { border-left: 1px solid #ececf0; padding-left: 0.9em; }
  .kc-toc a { margin-left: -0.9em; padding-left: 0.9em; border-left: 2px solid transparent; }
  .kc-toc a.is-active { border-left-color: #1a1a1a; }
}

/* ============================================================
   헤더 — 로고 있으면 로고만 (사이트명 텍스트 숨김, pickle 스타일),
   로고 없으면 텍스트 워드마크(옵션 kaicore_header_wordmark, functions.php가
   content 값을 인라인 출력). 홈 링크가 항상 좌상단에 존재하도록.
   ============================================================ */
.kc-has-logo .site-title-container,
.kc-has-logo .ct-header .site-title { display: none !important; }
body:not(.kc-has-logo) .ct-header .site-title { margin: 0; }
body:not(.kc-has-logo) .ct-header .site-title a {
  display: inline-flex;
  align-items: center;
  font-size: 0; /* 원 사이트명 텍스트 숨김(스크린리더는 읽음) — ::after가 워드마크 표시 */
  line-height: 1;
  text-decoration: none;
}
body:not(.kc-has-logo) .ct-header .site-title a::after {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--kc-ink, #1a1a1a);
  font-family: var(--kc-heading-font, inherit);
  white-space: nowrap;
}
.site-logo-container img,
.site-logo-container .ct-image-default,
.site-logo-container .default-logo img {
  max-height: 34px !important;
  width: auto !important;
}
/* 헤더 두께 축소 — Blocksy --height 변수(기본 120px) 강제 축소 */
#header [data-row="middle"] {
  --height: 58px !important;
  --header-height: 58px !important;
  min-height: 58px !important;
  align-items: center !important;
}
#header [data-row="middle"] > .ct-container { padding-top: 4px !important; padding-bottom: 4px !important; align-items: center; }
/* 로고 수직 중앙 (위로 쏠림 방지) */
.site-logo-container { display: flex; align-items: center; align-self: center; height: 100%; }
.site-logo-container img { display: block; }

/* ============================================================
   푸터 — 깔끔한 좌(브랜드)/우(링크) 한 줄
   ============================================================ */
.ct-footer,
.ct-footer [data-row],
.ct-footer [data-column] { background-color: #fff !important; }
.ct-footer-copyright { width: 100%; }
.kc-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5em;
  width: 100%;
  font-size: 0.9rem;
  color: #8a9099;
}
.kc-footer a { color: #8a9099; text-decoration: none; }
.kc-footer a:hover { color: #1a1a1a; }
.kc-footer__sep { margin: 0 0.55em; color: #ccc; }

/* 모바일: 본문 폭 자동 + 패딩 */
@media (max-width: 800px) {
  :root { --kc-read-size: 1rem; }
  .entry-content, .kc-callout, .kc-faq { max-width: 100%; }
  .kc-footer { justify-content: center; text-align: center; }
}

/* ============================================================
   홈 (front-page.php) — 카테고리 탭 + 히어로(1/2/2) + 3열 그리드
   ============================================================ */
.kc-home { max-width: 1180px; margin: 0 auto; padding: 26px 20px 64px; }

/* 홈/아카이브 히어로 — 풀폭 배너 (graphic 그라데이션 / photo 사진) */
.kc-page-hero {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  min-height: 430px;
  padding: 80px 20px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.kc-page-hero__inner { max-width: 1180px; margin: 0 auto; width: 100%; position: relative; z-index: 2; }
.kc-page-hero__eyebrow { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; margin: 0 0 1.1em; color: #fff; opacity: 0.92; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.22); }
.kc-page-hero__title { font-size: 3rem; font-weight: 600; letter-spacing: -0.025em; margin: 0; line-height: 1.14; color: #fff; text-shadow: 0 1px 16px rgba(0, 0, 0, 0.22); }
.kc-page-hero__sub { font-size: 1.02rem; font-weight: 400; margin: 0.9em 0 0; line-height: 1.65; color: #fff; opacity: 0.9; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.22); }

/* graphic — 카이코어 프리미엄 메시 그라데이션 배너 */
.kc-page-hero--graphic {
  color: #fff;
  background: var(--kc-hero-bg,
    radial-gradient(85% 130% at 10% 0%, rgba(104, 142, 255, 0.45), transparent 55%),
    radial-gradient(75% 120% at 92% 100%, rgba(58, 96, 220, 0.5), transparent 60%),
    radial-gradient(60% 90% at 60% 20%, rgba(150, 120, 255, 0.28), transparent 60%),
    linear-gradient(135deg, #0c1330 0%, #1a2a6e 50%, #2743a8 100%));
}
.kc-page-hero--graphic::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(120% 120% at 50% 120%, rgba(0, 0, 0, 0.22), transparent 55%);
}
/* AI 노드 네트워크 배경 (그래픽 히어로 canvas, 인터랙티브) */
.kc-hero-net { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; display: block; }

/* photo — 사진 배너 + 강한 어두운 오버레이(밝은 사진에도 흰 글씨 가독) */
.kc-page-hero--photo { background-size: cover; background-position: center; color: #fff; }
.kc-page-hero--photo::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.32) 52%, rgba(0, 0, 0, 0.18) 100%);
}

/* flat — 이미 대비가 잡힌 디자인 배경: 가독성 오버레이 없이 원본 그대로 */
.kc-page-hero--flat::before { display: none; }

/* 히어로 우상단 브랜드 로고 — 콘텐츠 폭(1180) 우측 끝에 맞추고, 좁아지면 최소 여백 20px */
.kc-page-hero__logo {
  position: absolute;
  top: 44px;
  right: max(20px, calc((100% - 1180px) / 2));
  height: 43px;
  width: auto;
  z-index: 3;
}

/* masthead — 흰 바탕 + 잉크 글씨 + 우측 막대 그래픽 (kaicore_home_hero_style=masthead, 사진 없을 때) */
.kc-page-hero--masthead {
  min-height: 320px;
  background: var(--kc-bg, #fff);
  border-bottom: 1px solid var(--kc-ink, #16181d);
}
.kc-page-hero--masthead .kc-page-hero__eyebrow,
.kc-page-hero--masthead .kc-page-hero__title,
.kc-page-hero--masthead .kc-page-hero__sub { text-shadow: none; opacity: 1; }
.kc-page-hero--masthead .kc-page-hero__eyebrow { color: var(--kc-accent, #2f6bff); }
.kc-page-hero--masthead .kc-page-hero__title { color: var(--kc-ink, #16181d); font-weight: 700; }
.kc-page-hero--masthead .kc-page-hero__sub { color: var(--kc-text, #5a6470); }
.kc-hero-bars {
  position: absolute; z-index: 1; bottom: 0;
  right: max(20px, calc((100% - 1180px) / 2));
  height: 72%; display: flex; align-items: flex-end; gap: 16px;
}
.kc-hero-bars span { width: 44px; background: var(--kc-accent-line, #bcd0ff); }
.kc-hero-bars span:nth-child(1) { height: 38%; }
.kc-hero-bars span:nth-child(2) { height: 46%; }
.kc-hero-bars span:nth-child(3) { height: 54%; }
.kc-hero-bars span:nth-child(4) { height: 63%; }
.kc-hero-bars span:nth-child(5) { height: 78%; background: var(--kc-accent, #2f6bff); border-top: 5px solid var(--kc-secondary, var(--kc-accent, #2f6bff)); }

@media (max-width: 700px) {
  .kc-hero-bars { height: 46%; gap: 6px; opacity: 0.35; }
  .kc-hero-bars span { width: 16px; }
  .kc-page-hero { min-height: 220px; padding: 46px 18px; }
  .kc-page-hero__title { font-size: 1.8rem; }
  .kc-page-hero__logo { top: 18px; height: 26px; }
}

/* 카테고리 탭 */
.kc-tabs { display: flex; flex-wrap: wrap; gap: 0.35em; margin: 6px 0 30px; align-items: center; }
.kc-tab {
  font-size: 0.95rem; color: #6b7280; text-decoration: none;
  padding: 0.45em 0.95em; border-radius: 999px; font-weight: 500;
  transition: color 0.12s, background 0.12s;
}
.kc-tab:hover { color: #1a1a1a; background: #f2f3f5; }
.kc-tab.is-active { color: #1a1a1a; background: #f2f3f5; font-weight: 700; }

/* 카드 — 박스/테두리 없는 흰색 */
.kc-card__link { display: block; text-decoration: none; color: inherit; }
.kc-card__media {
  width: 100%; aspect-ratio: 16 / 10; background-size: cover; background-position: center;
  background-color: #eef1f4; border-radius: 14px;
}
.kc-card__media.is-empty { background-image: linear-gradient(135deg, #e9edf2, #f6f8fa); }
.kc-card__body { padding: 0.9em 0.15em 0; }
.kc-card__cat { display: inline-block; font-size: 0.78rem; color: var(--kc-secondary, #8a9099); margin-bottom: 0.35em; }
.kc-card__title { font-size: 1.02rem; font-weight: 700; line-height: 1.42; margin: 0 0 0.35em; color: var(--kc-ink, #16181d); }
.kc-card__link:hover .kc-card__title { color: var(--kc-accent-hover, #2b6cb0); }
.kc-card__excerpt { font-size: 0.92rem; color: #5a6470; line-height: 1.6; margin: 0.3em 0 0.5em; word-break: keep-all; }
.kc-card__meta { font-size: 0.82rem; color: #9aa0a8; }

/* 히어로 — 1(대형) / 2 / 2 */
.kc-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 28px; margin-bottom: 50px; }
.kc-hero__lead { grid-column: 1 / -1; }
.kc-hero__lead .kc-card__link { display: grid; grid-template-columns: 1.25fr 1fr; gap: 30px; align-items: center; }
.kc-hero__lead .kc-card__media { aspect-ratio: 16 / 9; }
.kc-hero__lead .kc-card__title { font-size: 1.7rem; line-height: 1.3; }
.kc-hero__lead .kc-card__body { padding-top: 0; }

/* 그리드 — 3열 무한스크롤 */
.kc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 28px; }
/* 그리드 칸이 긴 일본어 제목(끊을 곳 없는 문자열)에 밀려 화면 밖으로 나가지 않게 */
.kc-hero > *, .kc-grid > *, .kc-related__grid > *, .kc-hero__lead .kc-card__link > * { min-width: 0; }
.kc-card__title { overflow-wrap: anywhere; }
.kc-loading { text-align: center; color: #9aa0a8; padding: 26px 0; font-size: 0.9rem; }

@media (max-width: 960px) {
  .kc-hero { grid-template-columns: 1fr 1fr; }
  .kc-hero__lead .kc-card__link { grid-template-columns: 1fr; }
  .kc-hero__lead .kc-card__title { font-size: 1.35rem; }
  .kc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .kc-hero, .kc-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   브레드크럼 (단일 글 본문 상단)
   ============================================================ */
.kc-breadcrumb {
  max-width: var(--kc-read-width);
  margin: 0 auto 1.5em;
  font-size: 0.85rem;
  color: #9aa0a8;
  display: flex; flex-wrap: wrap; align-items: center;
  word-break: keep-all;
}
.kc-breadcrumb a { color: #9aa0a8; text-decoration: none; }
.kc-breadcrumb a:hover { color: var(--kc-accent-hover, #2b6cb0); }
.kc-bc-sep { margin: 0 0.45em; color: #cdd2d8; }
.kc-bc-current { color: #5a6470; }

/* ============================================================
   공유 버튼 (단일 글, 본문 끝)
   ============================================================ */
.kc-share { max-width: var(--kc-read-width); margin: 2.8em auto 0; }
.kc-share__label { display: block; font-size: 1.05rem; font-weight: 700; margin-bottom: 0.75em; color: var(--kc-ink, #16181d); }
.kc-share__btns { display: flex; gap: 0.5em; }
.kc-share__btn {
  width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; color: #6b7280; background: transparent; border: none; cursor: pointer;
  text-decoration: none; transition: color 0.12s, background 0.12s;
}
.kc-share__btn:hover { color: #16181d; background: #f2f3f5; text-decoration: none; }
.kc-share__copy.is-copied { color: #2b9d5f; }

/* ============================================================
   관련 글 (단일 글 끝)
   ============================================================ */
.kc-related {
  max-width: var(--kc-read-width);
  margin: 3.2em auto 1em;
  border-top: 1px solid #eceef1;
  padding-top: 2em;
}
.kc-related__title { font-size: 1.2rem; font-weight: 700; margin: 0 0 1.1em; }
.kc-related__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.kc-related__item .kc-card__media { aspect-ratio: 16 / 10; border-radius: 10px; }
.kc-related__item .kc-card__body { padding-top: 0.7em; }
.kc-related__item .kc-card__title { font-size: 0.92rem; }
.kc-related__item .kc-card__cat { font-size: 0.72rem; }
@media (max-width: 600px) {
  .kc-related__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   홈 레이아웃 (kc-home-layouts.php, 옵션 kaicore_home_layout) — 바탕은 흰색 유지.
   사진 칸은 실사가 있을 때만 출력된다(없으면 글 카드). 데이터 없는 칸은 마크업 자체가 없다.
   ============================================================ */
.kc-l { max-width: 1180px; margin: 0 auto; padding: 0 20px 72px; color: var(--kc-ink, #16181d); }
.kc-l a { color: inherit; text-decoration: none; }
.kc-l a:hover .kc-sp-item__title, .kc-l a:hover .kc-zn-toc__title, .kc-l a:hover .kc-zn-back__title,
.kc-l h2 a:hover, .kc-l a:hover .kc-tl-list__title, .kc-l a:hover .kc-pt-board__title,
.kc-l a:hover .kc-dd-notes__title, .kc-l a:hover .kc-ix-list__title, .kc-sp-lead:hover .kc-sp-lead__title { color: var(--kc-accent, #2f6bff); }
.kc-l ul, .kc-l ol { list-style: none; margin: 0; padding: 0; }
.kc-l li { margin: 0; }
.kc-l h2, .kc-l p { margin: 0; }
.kc-l * { min-width: 0; }
.kc-l [class*="__title"] { overflow-wrap: anywhere; word-break: keep-all; }
/* 일본어는 띄어쓰기가 없어 keep-all이면 구두점에서만 줄이 바뀐다 */
html[lang^="ja"] .kc-l [class*="__title"], html[lang^="ja"] .kc-l p,
html[lang^="ja"] .entry-content, html[lang^="ja"] .entry-content :is(p, li, h2, h3, h4, td, th, figcaption) { word-break: normal; line-break: strict; }
.kc-l-h {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--kc-ink, #16181d); border-bottom: 1px solid var(--kc-ink, #16181d);
  padding-bottom: 10px; margin-bottom: 4px !important; font-family: var(--kc-body-font, var(--kc-font));
}
.kc-l-meta { font-size: 0.8rem; color: #737a84; }
.kc-l-accent2 { color: var(--kc-secondary, var(--kc-accent, #2f6bff)); font-weight: 700; letter-spacing: 0.02em; }
.kc-l-empty { padding: 36px 0; color: #737a84; border-bottom: 1px solid #e6e8eb; }

/* 제호(공통) — 라이브 히어로 문구 그대로 */
.kc-l-mast { padding: 52px 0 32px; }
.kc-l-mast__eyebrow { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--kc-accent, #2f6bff); margin-bottom: 0.9em !important; }
.kc-l-mast__title { font-size: 2.5rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; margin: 0; color: var(--kc-ink, #16181d); overflow-wrap: anywhere; }
.kc-l-mast__sub { margin-top: 0.7em !important; font-size: 1.02rem; line-height: 1.65; color: var(--kc-text, #5a6470); }

/* 카테고리 칩(공통) */
.kc-l-cats ul { display: flex; flex-wrap: wrap; gap: 8px 10px; }
.kc-l-cats a { display: inline-flex; align-items: baseline; gap: 0.5em; padding: 0.5em 0.95em; border: 1px solid #e0e3e8; border-radius: 999px; font-size: 0.92rem; }
.kc-l-cats a:hover { border-color: var(--kc-accent, #2f6bff); color: var(--kc-accent, #2f6bff); }
.kc-l-cats__n { font-size: 0.78rem; color: #8a9099; }

/* ── seasonal-photo (평창) ── */
.kc-sp-mast { padding: 40px 0 26px; }
.kc-sp-band {
  position: relative; width: 100vw; margin-left: calc(50% - 50vw); min-height: 560px;
  display: flex; align-items: flex-end; padding-bottom: 0;
}
.kc-sp-band__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kc-sp-lead {
  position: relative; z-index: 1; background: #fff; width: min(620px, calc(100% - 40px));
  margin-left: max(20px, calc((100% - 1180px) / 2 + 20px));
  padding: 30px 36px 28px; display: flex; flex-direction: column; gap: 12px;
}
.kc-sp-lead__title { font-size: 1.9rem; line-height: 1.35; margin: 0; color: var(--kc-ink, #16181d); }
.kc-sp-lead__ex { font-size: 1rem; line-height: 1.75; color: var(--kc-text, #4a5145); }
.kc-sp-band.is-text { width: auto; margin-left: 0; min-height: 0; }
.kc-sp-band.is-text .kc-sp-lead { width: auto; max-width: 760px; margin: 0; padding: 24px 0 0; border-top: 2px solid var(--kc-accent, #2f6bff); }
.kc-sp-cats { margin: 40px 0 0; }
.kc-sp-list { margin-top: 44px; }
.kc-sp-list ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
.kc-sp-item a { display: block; padding: 18px 0; border-bottom: 1px solid #eceef1; }
.kc-sp-item.has-photo a { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 18px; align-items: start; }
.kc-sp-item__img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.kc-sp-item__title { display: block; font-family: var(--kc-heading-font, inherit); font-size: 1.12rem; font-weight: 700; line-height: 1.5; margin-bottom: 6px; }

/* ── zine (을지로) ── */
.kc-zn-mast { border-bottom: 2px solid var(--kc-ink, #16181d); padding: 48px 0 24px; }
.kc-zn-issue { margin-top: 16px !important; font-size: 0.85rem; letter-spacing: 0.04em; color: #6b6455; }
.kc-zn-top { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; margin-top: 36px; align-items: start; }
.kc-zn-feature__img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; margin-bottom: 18px; }
.kc-zn-feature__title { font-size: 1.85rem; line-height: 1.45; margin: 0.3em 0 0.5em !important; }
.kc-zn-feature__ex { font-size: 0.98rem; line-height: 1.95; color: var(--kc-text, #3b4359); }
.kc-zn-toc ol { counter-reset: zn; }
.kc-zn-toc li { counter-increment: zn; border-top: 1px solid #d9dde4; }
.kc-zn-toc li:first-child { border-top: 0; }
.kc-zn-toc li a { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 10px; padding: 15px 0; }
.kc-zn-toc li a::before { content: counter(zn, decimal-leading-zero); grid-row: span 2; font-weight: 700; color: var(--kc-secondary, var(--kc-accent, #2f6bff)); font-family: var(--kc-heading-font, inherit); }
.kc-zn-toc li a > * { grid-column: 2; }
.kc-zn-toc__title, .kc-zn-back__title { display: block; font-family: var(--kc-heading-font, inherit); font-weight: 700; font-size: 1rem; line-height: 1.55; margin-bottom: 4px; }
.kc-zn-index { margin-top: 56px; }
.kc-zn-index .kc-l-cats { margin-top: 16px; }
.kc-zn-back { margin-top: 56px; }
.kc-zn-back ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 28px; margin-top: 12px; }
.kc-zn-back li a { display: block; border-top: 1px solid var(--kc-ink, #16181d); padding: 14px 0 22px; }

/* ── text-led (VIP) ── */
.kc-tl-mast { text-align: center; border-bottom: 1px solid #e2e5ea; padding: 44px 0 24px; }
.kc-tl-mast .kc-l-mast__title { font-size: 2rem; font-weight: 400; letter-spacing: 0.02em; }
.kc-tl-mast .kc-l-mast__sub { font-family: var(--kc-heading-font, inherit); font-style: italic; }
.kc-tl-cats ul { justify-content: center; margin-top: 16px; gap: 4px 22px; }
.kc-tl-cats a { border: 0; padding: 0.2em 0; border-radius: 0; font-size: 0.9rem; }
.kc-tl-lead { max-width: 760px; margin: 64px auto 48px; }
.kc-tl-eyebrow { font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; color: var(--kc-secondary, var(--kc-accent, #2f6bff)); }
.kc-tl-lead__title { font-size: 2.9rem; line-height: 1.14; font-weight: 400; margin: 0.35em 0 0.5em !important; }
.kc-tl-lead__dek { font-family: var(--kc-heading-font, inherit); font-size: 1.28rem; line-height: 1.6; color: var(--kc-text, #3e4a56); margin-bottom: 1em !important; }
.kc-tl-more { border-bottom: 1px solid var(--kc-secondary, var(--kc-accent, #2f6bff)); font-size: 0.95rem; }
.kc-tl-lead__img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; margin-top: 32px; }
.kc-tl-sec { max-width: 760px; margin: 0 auto 48px; }
.kc-tl-sec li a { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 15px 0; border-bottom: 1px solid #eef0f3; }
.kc-tl-res__name, .kc-tl-list__title { font-family: var(--kc-heading-font, inherit); font-size: 1.22rem; line-height: 1.35; }
.kc-tl-sec .kc-l-meta { white-space: nowrap; }

/* ── portal (CONSTRUCTION JOBS) ── */
.kc-pt-mast { padding: 40px 0 30px; border-bottom: 1px solid #e6e9ee; }
.kc-pt-search { display: flex; margin-top: 24px; max-width: 720px; height: 54px; border: 2px solid var(--kc-accent, #2f6bff); border-radius: 28px; overflow: hidden; background: #fff; }
.kc-pt-search:focus-within { box-shadow: 0 0 0 3px var(--kc-accent-line, #bcd0ff); }
.kc-pt-search input { flex: 1; min-width: 0; border: 0 !important; padding: 0 22px; font-size: 1rem; outline: none; background: #fff; height: 100%; box-shadow: none !important; }
.kc-pt-search button { border: 0; background: var(--kc-accent, #2f6bff); color: var(--kc-accent-ink, #fff); font-weight: 700; font-size: 1rem; padding: 0 28px; cursor: pointer; border-radius: 0; }
.kc-pt-tiles { margin-top: 40px; }
.kc-pt-tiles ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 16px; }
.kc-pt-tiles a { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px; border: 1px solid #e3e7ec; border-radius: 12px; height: 100%; box-sizing: border-box; }
.kc-pt-tiles a:hover { border-color: var(--kc-accent, #2f6bff); }
.kc-pt-tile__name { font-size: 1.15rem; font-weight: 700; }
.kc-pt-tile__last { font-size: 0.9rem; line-height: 1.55; color: var(--kc-text, #5a6470); margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kc-pt-board { margin-top: 44px; }
.kc-pt-board li a { display: grid; grid-template-columns: 120px minmax(0, 1fr) 96px; gap: 16px; padding: 14px 4px; border-bottom: 1px solid #eceef1; align-items: baseline; }
.kc-pt-board__cat { font-size: 0.85rem; color: var(--kc-accent, #2f6bff); font-weight: 600; }
.kc-pt-board__title { font-size: 1rem; font-weight: 500; line-height: 1.5; }
.kc-pt-board time { text-align: right; }

/* ── data-desk (커리어데이터랩) ── */
.kc-dd-mast { border-top: 6px solid var(--kc-ink, #16181d); border-bottom: 1px solid var(--kc-ink, #16181d); margin-top: 32px; padding: 36px 0 30px; }
.kc-dd-cats { margin-top: 24px; }
.kc-dd-notes { margin-top: 40px; max-width: 860px; }
.kc-dd-notes ol { counter-reset: dd; }
.kc-dd-notes li { counter-increment: dd; }
.kc-dd-notes li a { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 12px; padding: 22px 0; border-bottom: 1px solid #e6e8eb; }
.kc-dd-notes li a::before { content: counter(dd, decimal-leading-zero); grid-row: span 3; font-family: var(--kc-heading-font, inherit); font-size: 1.7rem; line-height: 1; color: var(--kc-accent, #2f6bff); }
.kc-dd-notes li a > * { grid-column: 2; }
.kc-dd-notes__title { display: block; font-family: var(--kc-heading-font, inherit); font-size: 1.2rem; font-weight: 700; line-height: 1.45; margin-bottom: 6px; }
.kc-dd-notes__ex { display: block; font-size: 0.93rem; line-height: 1.65; color: var(--kc-text, #5a6470); margin-bottom: 6px; }

/* ── index (카이코어 블로그) ── */
.kc-ix-mast { border-bottom: 1px solid #e6e8eb; }
.kc-ix { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; margin-top: 36px; align-items: start; }
.kc-ix-cats { margin-top: 10px; }
.kc-ix-cats ul { flex-direction: column; gap: 0; }
.kc-ix-cats a { display: flex; justify-content: space-between; border: 0; border-radius: 0; padding: 0.45em 0; }
.kc-ix-list li a { display: grid; grid-template-columns: 96px 110px minmax(0, 1fr); gap: 16px; padding: 15px 0; border-bottom: 1px solid #eceef1; align-items: baseline; }
.kc-ix-list__cat { font-size: 0.85rem; color: var(--kc-accent, #2f6bff); font-weight: 600; }
.kc-ix-list__title { font-size: 1.05rem; font-weight: 600; line-height: 1.5; }

@media (max-width: 760px) {
  .kc-l { padding: 0 18px 56px; }
  .kc-l-mast { padding: 34px 0 24px; }
  .kc-l-mast__title { font-size: 1.75rem; }
  .kc-sp-band { display: block; min-height: 0; }
  .kc-sp-band__img { position: static; height: auto; aspect-ratio: 4 / 3; }
  .kc-sp-lead { width: auto; margin: -48px 16px 0; padding: 22px 20px; }
  .kc-sp-band.is-text .kc-sp-lead { margin: 0; }
  .kc-sp-lead__title { font-size: 1.4rem; }
  .kc-sp-list ul, .kc-zn-top, .kc-zn-back ul, .kc-ix { grid-template-columns: minmax(0, 1fr); }
  .kc-sp-item.has-photo a { grid-template-columns: 112px minmax(0, 1fr); gap: 14px; }
  .kc-zn-top { gap: 36px; }
  .kc-zn-feature__title { font-size: 1.4rem; }
  .kc-tl-lead { margin: 40px auto 36px; }
  .kc-tl-lead__title { font-size: 2rem; }
  .kc-tl-lead__dek { font-size: 1.1rem; }
  .kc-pt-search { height: 48px; }
  .kc-pt-search input { padding: 0 16px; }
  .kc-pt-search button { padding: 0 18px; }
  .kc-pt-board li a, .kc-ix-list li a { grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; }
  .kc-pt-board__title, .kc-ix-list__title { grid-column: 1 / -1; grid-row: 2; }
  .kc-pt-board time { text-align: left; }
  .kc-dd-notes li a { grid-template-columns: 44px minmax(0, 1fr); }
  .kc-dd-notes li a::before { font-size: 1.25rem; }
  .kc-ix { gap: 28px; margin-top: 24px; }
  .kc-ix-cats ul { flex-direction: row; gap: 8px; }
  .kc-ix-cats a { border: 1px solid #e0e3e8; border-radius: 999px; padding: 0.45em 0.9em; }
}

/* 사진 크레딧 (functions.php kc_credit) — 작고 옅게 */
.kc-credit, .kc-credits { font-size: 12px; line-height: 1.5; color: #8a8f98; }
figcaption.kc-credit, figcaption .kc-credit { display: block; margin-top: 6px; text-align: left; }
.kc-credit a, .kc-credits a { color: inherit; text-decoration: underline; text-decoration-color: #c8ccd2; }
.kc-credits { margin: 32px 0 0; padding-top: 12px; border-top: 1px solid #eceef1; }
.kc-credits__title { margin: 0 0 4px; font-weight: 600; }
.kc-credits ul { margin: 0; padding-left: 1.1em; }
/* 본문 삽입 동네 사진(kc-photo) — 세로 사진이 화면을 다 덮지 않게 높이 상한 */
.kc-photo img { max-height: 600px; width: auto; max-width: 100%; height: auto; }

/* ============================================================
   글 상세 — 사이트별 (body.kc-site-<kaicore_home_layout>, functions.php body_class)
   홈 레이아웃과 같은 제호·괘선·메타·관련글 모양을 글 상세에 잇는다.
   본문 가독성 규칙(위 .entry-content, aeo 빌더 미리보기 1:1)은 그대로 두고
   H2 번호·표 머리·링크 밑줄만 사이트 스코프로 덮는다. 바탕은 흰색 유지.
   ============================================================ */

/* 공통 — 관련 글 제목은 본문 H2가 아니다(번호 배지·목차 제외) · 카드 제목에 본문 H3 여백이 붙던 것 정리 */
.entry-content .kc-related__title { display: block; }
.entry-content .kc-related h2.kc-related__title::before { content: none; } /* 사이트별 h2::before(0,2,2)보다 우선 */
.entry-content .kc-card__title { margin: 0 0 0.35em; }

/* 제호 줄 (blocksy:single:top) */
.kc-sm { max-width: var(--kc-read-width); margin: 8px auto 28px; padding: 0 0 12px; border-bottom: 1px solid var(--kc-ink, #16181d); font-size: 0.85rem; line-height: 1.4; }
.kc-sm a { color: var(--kc-ink, #16181d); text-decoration: none; display: inline-flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.kc-sm__eyebrow { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--kc-accent, #2f6bff); }
.kc-sm__title { font-family: var(--kc-heading-font, inherit); font-weight: 700; }
.kc-sm a:hover .kc-sm__title { color: var(--kc-accent, #2f6bff); }

/* 메타 줄 — 아바타 없이 홈 목록처럼 이름·날짜·분류 */
[class*="kc-site-"].single-post .hero-section .entry-meta .ct-media-container-static { display: none; }
[class*="kc-site-"].single-post .hero-section .entry-meta { --theme-font-size: 0.82rem; letter-spacing: 0.02em; }
[class*="kc-site-"].single-post .hero-section .entry-meta .meta-categories a { color: var(--kc-secondary, var(--kc-accent, #2f6bff)); font-weight: 700; }

/* 공유·관련 글 머리 — 홈 섹션 머리(.kc-l-h)와 같은 작은 대문자 + 잉크 괘선 */
[class*="kc-site-"] .kc-share__label,
[class*="kc-site-"] .entry-content .kc-related__title,
[class*="kc-site-"] .kc-lost .kc-related__title {
  font-family: var(--kc-body-font, var(--kc-font)); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--kc-ink, #16181d); border-bottom: 1px solid var(--kc-ink, #16181d);
  padding-bottom: 10px; margin: 0 0 4px;
}
[class*="kc-site-"] .kc-related { border-top: 0; padding-top: 0; }
/* 관련 글 = 홈 목록처럼 줄 목록(사진 칸은 평창만) */
[class*="kc-site-"] .kc-related__grid { display: block; }
[class*="kc-site-"] .kc-related__item .kc-card__link { padding: 15px 0; border-bottom: 1px solid #eceef1; }
[class*="kc-site-"] .kc-related__item .kc-card__media { display: none; }
[class*="kc-site-"] .kc-related__item .kc-card__body { padding: 0; display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 4px 16px; align-items: baseline; }
[class*="kc-site-"] .kc-related__item .kc-card__cat { grid-column: 1; grid-row: 1; margin: 0; font-size: 0.82rem; font-weight: 600; color: var(--kc-accent, #2f6bff); }
[class*="kc-site-"] .kc-related__item .kc-card__title { grid-column: 2; grid-row: 1; font-family: var(--kc-heading-font, inherit); font-size: 1.02rem; color: var(--kc-ink, #16181d); margin: 0; }
[class*="kc-site-"] .kc-related__item .kc-card__meta { grid-column: 3; grid-row: 1; white-space: nowrap; }
[class*="kc-site-"] .kc-related__item .kc-card__link:hover .kc-card__title { color: var(--kc-accent, #2f6bff); }

/* ── seasonal-photo (평창): 세리프 제호 · 테라코타 번호 · 사진 썸네일 목록 ── */
.kc-site-seasonal-photo .kc-sm { border-bottom: 2px solid var(--kc-accent, #2f6bff); }
.kc-site-seasonal-photo .entry-content h2::before { background: none; color: var(--kc-secondary, var(--kc-accent, #2f6bff)); font-family: var(--kc-heading-font, inherit); font-size: 0.8em; min-width: 0; padding: 0; content: counter(aeo-h2, decimal-leading-zero); }
.kc-site-seasonal-photo .kc-related__item .kc-card__media { display: block; aspect-ratio: 3 / 2; border-radius: 0; }
.kc-site-seasonal-photo .kc-related__item .kc-card__link { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 18px; align-items: start; padding: 18px 0; }
.kc-site-seasonal-photo .kc-related__item .kc-card__body { grid-template-columns: minmax(0, 1fr); }
.kc-site-seasonal-photo .kc-related__item .kc-card__cat,
.kc-site-seasonal-photo .kc-related__item .kc-card__title,
.kc-site-seasonal-photo .kc-related__item .kc-card__meta { grid-column: 1; grid-row: auto; }
.kc-site-seasonal-photo .kc-related__item .kc-card__cat { color: var(--kc-secondary, var(--kc-accent, #2f6bff)); }
.kc-site-seasonal-photo .kc-related__item .kc-card__title { font-size: 1.12rem; line-height: 1.5; }

/* ── zine (을지로): 잉크 2px 괘선 · 01 번호 · 밝은 표 머리 · 지난 글 3열 ── */
.kc-site-zine .kc-sm { border-bottom-width: 2px; }
.kc-site-zine .hero-section .entry-header { border-bottom: 2px solid var(--kc-ink, #16181d); padding-bottom: 20px; }
.kc-site-zine .entry-content h2::before { background: none; color: var(--kc-secondary, var(--kc-accent, #2f6bff)); font-family: var(--kc-heading-font, inherit); min-width: 0; padding: 0; font-size: 0.75em; content: counter(aeo-h2, decimal-leading-zero); }
.kc-site-zine .entry-content thead th { background: transparent; color: var(--kc-ink, #16181d); border-bottom: 2px solid var(--kc-ink, #16181d); }
.kc-site-zine .entry-content table { border: 0; border-radius: 0; }
/* 본문 문단·표·목록 속 링크만(목차·브레드크럼·관련 글 제외) */
.kc-site-zine .entry-content :is(p, td, li:not(.kc-toc__item)) > a { text-decoration: underline; text-decoration-color: var(--kc-accent-line, #bcd0ff); text-underline-offset: 3px; }
.kc-site-zine .entry-content .kc-related__title { margin-bottom: 14px; }
.kc-site-zine .kc-related__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 24px; }
.kc-site-zine .kc-related__item .kc-card__link { border-top: 1px solid var(--kc-ink, #16181d); border-bottom: 0; padding: 14px 0 22px; }
.kc-site-zine .kc-related__item .kc-card__body { grid-template-columns: minmax(0, 1fr); }
.kc-site-zine .kc-related__item .kc-card__cat,
.kc-site-zine .kc-related__item .kc-card__title,
.kc-site-zine .kc-related__item .kc-card__meta { grid-column: 1; grid-row: auto; }
.kc-site-zine .kc-related__item .kc-card__cat { color: var(--kc-secondary, var(--kc-accent, #2f6bff)); }

/* ── text-led (VIP): 가운데 제호 · 세리프 400 · 번호 없음 · 괘선 표 ── */
.kc-site-text-led .kc-sm { text-align: center; border-bottom-color: #e2e5ea; }
.kc-site-text-led .kc-sm a { justify-content: center; }
.kc-site-text-led .kc-sm__title { font-weight: 400; font-style: italic; }
.kc-site-text-led .hero-section .entry-header { text-align: center; }
.kc-site-text-led .hero-section .entry-header .page-title { font-weight: 400; letter-spacing: 0.01em; }
.kc-site-text-led .hero-section .entry-header .page-description { font-family: var(--kc-heading-font, inherit); font-size: 1.15rem; }
.kc-site-text-led .hero-section .entry-meta { justify-content: center; }
.kc-site-text-led .entry-content h2 { font-weight: 400; }
.kc-site-text-led .entry-content h2::before { content: none; }
.kc-site-text-led .entry-content thead th { background: transparent; color: var(--kc-ink, #16181d); border-bottom: 1px solid var(--kc-ink, #16181d); }
.kc-site-text-led .entry-content table { border: 0; border-radius: 0; }
.kc-site-text-led .entry-content :is(p, td, li:not(.kc-toc__item)) > a { text-decoration: underline; text-decoration-color: var(--kc-secondary, var(--kc-accent-line, #bcd0ff)); text-underline-offset: 3px; }
.kc-site-text-led .kc-related__item .kc-card__body { grid-template-columns: minmax(0, 1fr) auto; }
.kc-site-text-led .kc-related__item .kc-card__cat { display: none; }
.kc-site-text-led .kc-related__item .kc-card__title { grid-column: 1; font-size: 1.22rem; font-weight: 400; line-height: 1.35; }
.kc-site-text-led .kc-related__item .kc-card__meta { grid-column: 2; }

/* ── portal (CONSTRUCTION JOBS): 게시판 — 칠한 번호 배지 · 분류 칩 · 게시판형 관련 글 ── */
.kc-site-portal .kc-sm { border-bottom-color: #e6e9ee; }
.kc-site-portal .entry-content h2::before { background: var(--kc-accent, #2f6bff); color: var(--kc-accent-ink, #fff); border-radius: 4px; }
.kc-site-portal .hero-section .entry-meta .meta-categories a { color: var(--kc-accent, #2f6bff); }
.kc-site-portal .kc-related__title { border-bottom-width: 2px; }

/* ── data-desk (커리어데이터랩): 굵은 괘선 · 큰 번호 노트 ── */
.kc-site-data-desk .kc-sm { border-top: 6px solid var(--kc-ink, #16181d); border-bottom: 1px solid var(--kc-ink, #16181d); padding-top: 12px; }
/* 분류 글자는 노랑 보조색 대신 청록 — 흰 바탕 대비 */
.kc-site-data-desk.single-post .hero-section .entry-meta .meta-categories a { color: var(--kc-accent, #2f6bff); }
.kc-site-data-desk .entry-content h2::before { background: none; color: var(--kc-accent, #2f6bff); font-family: var(--kc-heading-font, inherit); font-size: 1em; min-width: 0; padding: 0; content: counter(aeo-h2, decimal-leading-zero); }
.kc-site-data-desk .entry-content thead th { background: transparent; color: var(--kc-ink, #16181d); border-bottom: 2px solid var(--kc-ink, #16181d); }
.kc-site-data-desk .entry-content table { border: 0; border-radius: 0; }
.kc-site-data-desk .kc-related__grid { counter-reset: dd; }
.kc-site-data-desk .kc-related__item { counter-increment: dd; }
.kc-site-data-desk .kc-related__item .kc-card__link { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 12px; }
.kc-site-data-desk .kc-related__item .kc-card__link::before { content: counter(dd, decimal-leading-zero); font-family: var(--kc-heading-font, inherit); font-size: 1.5rem; line-height: 1; color: var(--kc-accent, #2f6bff); }

/* ── index (카이코어 블로그): 날짜·분류·제목 줄 목록 · 옅은 번호 ── */
.kc-site-index .kc-sm { border-bottom-color: #e6e8eb; }
.kc-site-index .entry-content h2::before { background: none; color: #9aa0a8; min-width: 0; padding: 0; content: counter(aeo-h2, decimal-leading-zero); }
.kc-site-index .kc-related__item .kc-card__body { grid-template-columns: 96px 110px minmax(0, 1fr); }
.kc-site-index .kc-related__item .kc-card__meta { grid-column: 1; }
.kc-site-index .kc-related__item .kc-card__cat { grid-column: 2; }
.kc-site-index .kc-related__item .kc-card__title { grid-column: 3; font-weight: 600; }

@media (max-width: 760px) {
  [class*="kc-site-"] .kc-related__item .kc-card__body,
  .kc-site-index .kc-related__item .kc-card__body { grid-template-columns: auto minmax(0, 1fr); }
  [class*="kc-site-"] .kc-related__item .kc-card__cat { grid-column: 1; grid-row: 1; }
  [class*="kc-site-"] .kc-related__item .kc-card__meta { grid-column: 2; grid-row: 1; }
  [class*="kc-site-"] .kc-related__item .kc-card__title { grid-column: 1 / -1; grid-row: 2; }
  .kc-site-seasonal-photo .kc-related__item .kc-card__link { grid-template-columns: 112px minmax(0, 1fr); gap: 14px; }
  .kc-site-seasonal-photo .kc-related__item .kc-card__body { grid-template-columns: minmax(0, 1fr); }
  .kc-site-seasonal-photo .kc-related__item .kc-card__cat,
  .kc-site-seasonal-photo .kc-related__item .kc-card__meta,
  .kc-site-seasonal-photo .kc-related__item .kc-card__title { grid-column: 1; grid-row: auto; }
  .kc-site-zine .entry-content .kc-related__title { margin-bottom: 14px; }
.kc-site-zine .kc-related__grid { grid-template-columns: minmax(0, 1fr); }
  .kc-site-zine .kc-related__item .kc-card__cat, .kc-site-zine .kc-related__item .kc-card__meta, .kc-site-zine .kc-related__item .kc-card__title { grid-column: 1; grid-row: auto; }
}

/* 좁은 화면(본문 위 목차): H2 앞 4개만, H3·나머지는 '목차 전체 보기'로 (10/21) — 데스크톱 sticky 목차는 그대로 */
.kc-toc__toggle { display: none; }
@media (max-width: 1299px) {
  .kc-toc:not(.is-expanded) .kc-toc__h3,
  .kc-toc:not(.is-expanded) .kc-toc__more { display: none; }
  .kc-toc__toggle { display: inline-block; margin-top: 0.5em; padding: 0; border: 0; background: none; font: inherit; font-size: 0.86rem; color: var(--kc-accent, #2f6bff); cursor: pointer; }
}

/* ============================================================
   사이트 점검(10/21) 수정
   ============================================================ */
/* 본문 표 — 넓은 표는 상자 안에서 가로 스크롤(functions.php가 <table>을 .kc-table-scroll로 감싼다). 머리·줄무늬·사이트별 스킨은 table 규칙 그대로 */
.kc-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.6em 0; }
.kc-table-scroll > table { margin: 0; }

/* 메뉴 항목이 없는 사이트 — 빈 데스크톱 메뉴 칸과 빈 패널만 여는 햄버거를 숨긴다(메뉴가 생기면 자동으로 다시 보임) */
#header-menu-1:not(:has(li)) { display: none; }
body:not(:has(#offcanvas .ct-panel-content :is(a, button, input, select))) .ct-header-trigger { display: none; }

/* 검색 0건 안내문 — Blocksy가 모바일에서 숨기던 것을 보이게 */
.ct-no-results .page-description.ct-hidden-sm { display: block !important; }

/* 검색 0건·404 아래 최근 글 + 홈 링크 */
.kc-lost { box-sizing: content-box; padding: 0 20px; margin: 0 auto 64px; }
.kc-lost__home { margin: 18px 0 0; font-size: 0.92rem; }
.kc-lost__home a { color: var(--kc-accent, #2f6bff); text-decoration: none; font-weight: 600; }
.kc-lost__home a:hover { text-decoration: underline; }

/* 카테고리 — 홈 제호(kc_l_mast)만 쓰고 아래 탭·카드는 기존 그리드 */
.kc-l--cat { padding-bottom: 0; }

/* 한국어 제목은 단어 단위 줄바꿈(ja는 띄어쓰기가 없어 넘치므로 제외) */
html[lang^="ko"] :is(.page-title, .site-title, .kc-card__title, .kc-page-hero__title, .kc-l-mast__title, .kc-sm__title, .entry-card .entry-title) { word-break: keep-all; }

/* ============================================================
   journal (카이코어 블로그, 10/27) — kaicore_home_layout=journal 인 사이트만.
   홈: .kc-l--journal / 글 상세: body.kc-site-journal. 다른 사이트에는 이 클래스가 붙지 않는다.
   사진 칸 없음(발행 커버는 제목 박힌 그림이라 안 쓴다) — 글자·남색으로 위계를 만든다. 바탕은 흰색.
   ============================================================ */
/* 홈 */
.kc-jr-mast { padding: 44px 0 30px; }
.kc-jr-mast .kc-l-mast__title { font-size: 2.2rem; letter-spacing: -0.02em; }
.kc-jr-top { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 48px; align-items: start; }
.kc-l .kc-jr-lead a {
  display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; min-height: 320px; box-sizing: border-box;
  padding: 40px 44px 36px; border-radius: 6px; background: var(--kc-accent, #2f6bff); color: var(--kc-accent-ink, #fff);
}
.kc-jr-lead .kc-jr-meta, .kc-jr-lead .kc-jr-cat { color: inherit; opacity: 0.78; }
.kc-jr-lead__title { font-size: 2.05rem; font-weight: 700; line-height: 1.32; letter-spacing: -0.02em; color: inherit; max-width: 24em; }
.kc-jr-lead__dek { font-size: 1.04rem; line-height: 1.7; opacity: 0.86; max-width: 42em; }
.kc-jr-lead__more { font-size: 0.92rem; font-weight: 600; margin-top: 4px; }
.kc-jr-lead a:hover .kc-jr-lead__more { text-decoration: underline; text-underline-offset: 4px; }
.kc-jr-side .kc-jr-cats ul { flex-direction: column; gap: 0; }
.kc-jr-side .kc-jr-cats a { display: flex; justify-content: space-between; border: 0; border-bottom: 1px solid #eceef1; border-radius: 0; padding: 0.85em 0; font-weight: 600; }
.kc-jr-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 0.8rem; color: #737a84; }
.kc-jr-cat { color: var(--kc-accent, #2f6bff); font-weight: 700; }
.kc-jr-list { margin-top: 56px; }
.kc-jr-list ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
.kc-jr-list li a { display: flex; flex-direction: column; gap: 7px; height: 100%; box-sizing: border-box; padding: 24px 0; border-bottom: 1px solid #eceef1; }
.kc-jr-list__title { font-size: 1.15rem; font-weight: 700; line-height: 1.45; letter-spacing: -0.01em; }
.kc-jr-list__dek { font-size: 0.93rem; line-height: 1.65; color: var(--kc-text, #5a6470); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kc-l a:hover .kc-jr-list__title { color: var(--kc-accent, #2f6bff); }
@media (max-width: 760px) {
  .kc-jr-mast { padding: 28px 0 20px; }
  .kc-jr-mast .kc-l-mast__title { font-size: 1.6rem; }
  .kc-jr-mast .kc-l-mast__sub { font-size: 0.94rem; }
  .kc-jr-top { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .kc-l .kc-jr-lead a { min-height: 0; padding: 26px 22px 24px; gap: 10px; }
  .kc-jr-lead__title { font-size: 1.42rem; }
  .kc-jr-lead__dek { font-size: 0.95rem; }
  .kc-jr-side .kc-l-h { display: none; }
  .kc-jr-side .kc-jr-cats ul { flex-direction: row; gap: 8px; }
  .kc-jr-side .kc-jr-cats a { border: 1px solid #e0e3e8; border-radius: 999px; padding: 0.4em 0.85em; font-weight: 500; font-size: 0.86rem; }
  .kc-jr-list { margin-top: 36px; }
  .kc-jr-list ul { grid-template-columns: minmax(0, 1fr); }
  .kc-jr-list li a { padding: 18px 0; }
  .kc-jr-list__title { font-size: 1.05rem; }
}

/* 글 상세 — 브레드크럼은 제목 위 작은 줄(functions.php blocksy:single:top), 목차는 좁은 화면에서 접힘(toc.js) */
.kc-site-journal .kc-bc-top { margin: 4px auto 14px; font-size: 0.8rem; }
.kc-site-journal .kc-bc-top a:last-child { color: var(--kc-accent, #2f6bff); font-weight: 600; }
.kc-site-journal.single-post .hero-section .page-title { font-size: 2.15rem; line-height: 1.32; letter-spacing: -0.02em; }
/* 본문 첫 줄이 제목을 되풀이하는 H1/H2면 숨긴다(옛 발행 글 — 본문 HTML은 그대로).
   ponytail: '맨 앞 제목 = 제목 되풀이'로 본다. 새 발행 글은 문단으로 시작한다(aeo #354). */
.kc-site-journal .entry-content > :is(h1, h2):first-child,
.kc-site-journal .entry-content > .kc-toc:first-child + :is(h1, h2) { display: none; }
/* 맨 앞 '핵심 요약' 상자 → 상자 없는 요약 문단(왼쪽 남색 줄) */
.kc-site-journal .entry-content > :is(blockquote:first-child, :is(h1, h2):first-child + blockquote, .kc-toc:first-child + blockquote, .kc-toc:first-child + :is(h1, h2) + blockquote) {
  background: none; border-radius: 0; border-left: 3px solid var(--kc-accent, #2f6bff);
  margin: 0 0 1.5em; padding: 2px 0 2px 18px; font-size: 1rem; line-height: 1.7; color: var(--kc-ink, #1a1f27);
}
.kc-site-journal .entry-content > blockquote > p:first-child:has(+ p > strong:first-child) {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; color: var(--kc-accent, #2f6bff); margin: 0 0 0.25em;
}
.kc-site-journal .entry-content > blockquote li { margin: 0.15em 0; }
/* 소제목 리듬 — H2는 괘선으로 장을 끊고, H3는 본문 크기 굵은 글씨로 낮춘다(보고서처럼 촘촘해 보이던 것) */
.kc-site-journal .entry-content h2 { font-size: 23px; margin: 2.4em 0 0.6em; padding-top: 1.1em; border-top: 1px solid #e6e8eb; }
.kc-site-journal .entry-content h2::before { background: none; min-width: 0; padding: 0; color: var(--kc-accent, #2f6bff); font-size: 0.62em; letter-spacing: 0.04em; content: counter(aeo-h2, decimal-leading-zero); }
.kc-site-journal .entry-content h3 { font-size: var(--kc-read-size); font-weight: 700; color: var(--kc-ink, #1a1f27); margin: 1.6em 0 0.3em; }
/* 접힌 목차 = 한 줄 */
@media (max-width: 1299px) {
  .kc-site-journal .kc-toc { background: #fff; padding: 0.15em 1em; margin-bottom: 1.4em; }
  .kc-site-journal .kc-toc[open] { padding-bottom: 0.8em; }
}
/* 관련 글 줄 = 날짜 · 분류 · 제목 */
.kc-site-journal .kc-related__item .kc-card__cat { color: var(--kc-accent, #2f6bff); }
@media (max-width: 760px) {
  .kc-site-journal.single-post .hero-section .page-title { font-size: 1.55rem; }
  .kc-site-journal .entry-content h2 { font-size: 20px; }
}
