/* assets/ev/ev-blog.css — 인사이트(블로그) 목록·글 화면. 2026-10-12 Claude.
 *   전달본(v40)에는 블로그 화면이 없어 새 디자인의 규격으로 만들었다: 글자색 #16181d · 본문 회색 #40474f/#687180 · 강조 #0a05e8 ·
 *   옅은 바탕 #f5f7fd · 선 #dde3ed · 카드 모서리 20px. 머리말·버튼은 ev.css 의 .ev-section-heading / .ev-button 을 그대로 쓴다.
 *   본문(.ev-post-body)은 CRM 편집기가 저장한 HTML 이라 태그 단위로 꾸민다.
 *   2026-10-15 구조 맞춤(사용자 "블러그 하이브리드 고급형처럼"): 하이브리드 블로그(syshand.com/blog)의 글 구조 — 전체 폭 대표 이미지 · 본문 카드 ·
 *   오른쪽 인기 글(따라 내려옴) · 목차 접기 · 핵심 요약 상자 · 소제목 왼쪽 막대 · 함께 보면 좋은 글 카드. 색은 EViTiCS 규격(#0a05e8 등). */
.ev-blog-top { background: #f5f7fd; padding-bottom: 56px; }
.ev-blog-body { padding-top: 56px; }

/* 분류 · 검색 */
.ev-blog-filter { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-bottom: 40px; }
.ev-blog-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.ev-blog-cats a { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border: 1px solid #dde3ed; border-radius: 999px; background: #fff; color: #40474f; font-size: .9375rem; font-weight: 600; transition: border-color .2s, color .2s, background .2s; }
.ev-blog-cats a:hover { border-color: #0a05e8; color: #0a05e8; }
.ev-blog-cats a.is-on { background: #0a05e8; border-color: #0a05e8; color: #fff; }
.ev-blog-search { display: flex; align-items: center; width: min(100%, 300px); height: 44px; border: 1px solid #cbd3e0; border-radius: 12px; background: #fff; overflow: hidden; }
.ev-blog-search:focus-within { border-color: #0a05e8; box-shadow: 0 0 0 3px rgba(10, 5, 232, .15); }
.ev-blog-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; padding: 0 14px; font-size: .9375rem; color: #16181d; }
.ev-blog-search button { display: grid; place-items: center; width: 44px; height: 100%; border: 0; background: transparent; color: #0a05e8; cursor: pointer; }
.ev-blog-search button:hover { background: #f5f7fd; }

/* 목록 */
.ev-blog-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin: 0; padding: 0; list-style: none; }
.ev-blog-card { min-width: 0; }
.ev-blog-card > a { display: flex; flex-direction: column; height: 100%; border: 1px solid #dde3ed; border-radius: 20px; background: #fff; overflow: hidden; color: inherit; transition: border-color .2s, box-shadow .2s, transform .2s; }
.ev-blog-card > a:hover { border-color: #b8b5ff; box-shadow: 0 18px 50px rgba(10, 5, 232, .09); transform: translateY(-3px); }
.ev-blog-thumb { display: block; aspect-ratio: 16 / 9; background: #f5f7fd; overflow: hidden; }
.ev-blog-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ev-blog-thumb-none { display: grid; place-items: center; background: linear-gradient(135deg, #f5f7fd, #e7e9ff); }
.ev-blog-thumb-none b { color: #0a05e8; font-size: 1.125rem; font-weight: 800; letter-spacing: -.02em; }
.ev-blog-meta { display: flex; align-items: center; gap: 10px; padding: 22px 24px 0; font-size: .8125rem; color: #687180; }
.ev-blog-meta em, .ev-post-cat { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; background: #eff3fb; font-style: normal; font-size: .75rem; font-weight: 700; color: #0a05e8; }
.ev-blog-date { display: block; margin: auto 24px 0; padding: 18px 0 22px; font-size: .8125rem; color: #8a92a0; }
.ev-blog-crumb { margin-bottom: 20px; }
.ev-blog-card h2 { margin: 10px 24px 0; font-size: 1.25rem; font-weight: 800; line-height: 1.4; letter-spacing: -.03em; color: #16181d; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.ev-blog-card p { margin: 10px 24px 0; font-size: .9375rem; line-height: 1.7; color: #687180; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.ev-blog-empty { padding: 72px 24px; border: 1px dashed #cbd3e0; border-radius: 20px; background: #f5f7fd; text-align: center; color: #687180; line-height: 1.8; }
.ev-blog-empty b { color: #16181d; font-size: 1.125rem; }
.ev-blog-empty a { color: #0a05e8; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.ev-blog-pages { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 48px; }
.ev-blog-pages a { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid #dde3ed; border-radius: 12px; background: #fff; color: #40474f; font-weight: 700; }
.ev-blog-pages a:hover { border-color: #0a05e8; color: #0a05e8; }
.ev-blog-pages a.is-on { background: #16181d; border-color: #16181d; color: #fff; }

/* 글 — 대표 이미지(전체 폭) · 본문 카드 + 인기 글 */
.ev-post { background: #f5f7fd; }
.ev-post-banner { height: clamp(220px, 28vw, 420px); background: #e7e9ff; overflow: hidden; }
.ev-post-banner img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ev-post-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; max-width: 880px; padding-top: 48px; padding-bottom: 80px; }
.ev-post-grid.after-banner { padding-top: 32px; }
.ev-post-grid.has-side { max-width: 1240px; grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
.ev-post-main { min-width: 0; padding: 40px 44px 48px; border: 1px solid #dde3ed; border-radius: 20px; background: #fff; box-shadow: 0 14px 40px rgba(10, 5, 232, .05); }
/* 블로그 설정 ② 대표이미지 '본문 카드 위' · ③ 실명 직함 · 이미지 참고 문구 */
.ev-post-cardimg { margin: -40px -44px 28px; border-radius: 20px 20px 0 0; overflow: hidden; background: #e7e9ff; }
.ev-post-cardimg img { display: block; width: 100%; height: auto; max-height: 460px; object-fit: cover; }
.ev-post-job { color: #687180; }
.ev-post-body .ev-ai-cap { margin-top: 8px; text-align: center; font-size: .75rem; color: #8a92a0; }
.ev-post-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .8125rem; color: #8a92a0; }
.ev-post-crumb a { color: #687180; font-weight: 600; }
.ev-post-crumb a:hover { color: #0a05e8; }
.ev-post-crumb-now { min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-post-head { margin-top: 22px; }
.ev-post-head h1 { margin: 12px 0 0; font-size: clamp(1.625rem, 3.6vw, 2.375rem); font-weight: 800; line-height: 1.35; letter-spacing: -.04em; color: #16181d; overflow-wrap: anywhere; }
.ev-post-info { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0 0; font-size: .875rem; color: #687180; }
.ev-post-info b { color: #16181d; font-weight: 700; }
/* 목차(기본 접힘 — 첫 화면에 요약·본문 우선) */
.ev-post-toc { margin-top: 28px; border: 1px solid #dde3ed; border-radius: 14px; background: #fff; }
.ev-post-toc summary { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; font-size: .9375rem; font-weight: 700; color: #16181d; cursor: pointer; list-style: none; }
.ev-post-toc summary::-webkit-details-marker { display: none; }
.ev-post-toc summary::after { content: "▾"; color: #8a92a0; transition: transform .2s; }
.ev-post-toc[open] summary::after { transform: rotate(180deg); }
.ev-post-toc summary:focus-visible { outline: 2px solid #0a05e8; outline-offset: 2px; border-radius: 14px; }
.ev-post-toc ol { margin: 0; padding: 0 20px 18px; list-style: none; display: grid; gap: 8px; }
.ev-post-toc li.lv3 { padding-left: 16px; }
.ev-post-toc a { color: #40474f; font-size: .9375rem; line-height: 1.6; }
.ev-post-toc a:hover { color: #0a05e8; text-decoration: underline; text-underline-offset: 3px; }
/* 핵심 요약 — 검색·AI 가 그대로 인용하기 좋은 한 단락(구조화데이터 abstract · speakable 과 같은 글) */
.ev-post-summary { margin-top: 24px; padding: 20px 24px; border-left: 4px solid #0a05e8; border-radius: 12px; background: #f5f7fd; }
.ev-post-summary b { display: block; font-size: .8125rem; font-weight: 800; letter-spacing: .02em; color: #0a05e8; }
.ev-post-summary p { margin: 8px 0 0; font-size: 1rem; line-height: 1.8; color: #2b3138; }
/* 본문 */
.ev-post-body { margin-top: 36px; font-size: 1.0625rem; line-height: 1.9; color: #2b3138; overflow-wrap: anywhere; }
.ev-post-body > *:first-child { margin-top: 0; }
.ev-post-body p { margin: 1.15em 0; }
.ev-post-body h2 { position: relative; margin: 2.2em 0 .8em; padding-left: 16px; font-size: 1.5rem; font-weight: 800; line-height: 1.4; letter-spacing: -.035em; color: #16181d; scroll-margin-top: 96px; }
.ev-post-body h2::before { content: ""; position: absolute; left: 0; top: .2em; bottom: .2em; width: 4px; border-radius: 2px; background: #0a05e8; }
.ev-post-body h3 { margin: 1.8em 0 .6em; font-size: 1.1875rem; font-weight: 800; line-height: 1.45; letter-spacing: -.03em; color: #16181d; scroll-margin-top: 96px; }
.ev-post-body h4 { margin: 1.5em 0 .5em; font-size: 1.0625rem; font-weight: 800; color: #16181d; }
.ev-post-body a { color: #0a05e8; text-decoration: underline; text-underline-offset: 3px; }
.ev-post-body strong, .ev-post-body b { font-weight: 700; color: #16181d; }
.ev-post-body ul, .ev-post-body ol { margin: 1.1em 0; padding-left: 1.4em; }
.ev-post-body ul { list-style: disc; } .ev-post-body ol { list-style: decimal; }
.ev-post-body li { margin: .4em 0; }
.ev-post-body img { max-width: 100%; height: auto; border-radius: 14px; margin: 1.4em auto; display: block; box-shadow: 0 10px 30px rgba(16, 16, 16, .08); }
.ev-post-body figure { margin: 1.6em 0; } .ev-post-body figure img { margin-bottom: 0; } .ev-post-body figcaption { margin-top: 10px; text-align: center; font-size: .8125rem; color: #687180; }
.ev-post-body blockquote { margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 3px solid #0a05e8; color: #40474f; }
.ev-post-body hr { margin: 2.4em 0; border: 0; border-top: 1px solid #dde3ed; }
.ev-post-body table { width: 100%; margin: 1.6em 0; border-collapse: separate; border-spacing: 0; border: 1px solid #dde3ed; border-radius: 14px; overflow: hidden; font-size: .9375rem; }
.ev-post-body th, .ev-post-body td { border-bottom: 1px solid #dde3ed; border-right: 1px solid #edf0f5; padding: 12px 14px; text-align: center; vertical-align: middle; }
.ev-post-body tr:last-child td { border-bottom: 0; } .ev-post-body th:last-child, .ev-post-body td:last-child { border-right: 0; }
.ev-post-body th { background: #eff3fb; font-weight: 700; color: #16181d; }
.ev-post-body td:first-child { font-weight: 700; color: #16181d; }
.ev-post-body pre { margin: 1.6em 0; padding: 16px 18px; border-radius: 14px; background: #101010; color: #f5f7fd; font-size: .875rem; line-height: 1.7; overflow-x: auto; }
.ev-post-body code { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: .9em; }
.ev-post-body :not(pre) > code { padding: 2px 6px; border-radius: 6px; background: #eff3fb; color: #0a05e8; }
.ev-post-body iframe, .ev-post-body video { max-width: 100%; }
.ev-post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 40px 0 0; padding: 0; list-style: none; }
.ev-post-tags a { display: inline-flex; padding: 6px 12px; border-radius: 999px; background: #eff3fb; color: #0a05e8; font-size: .875rem; font-weight: 600; }
.ev-post-tags a:hover { background: #e0e4ff; }
/* 함께 보면 좋은 글 — 썸네일 카드 3개 */
.ev-post-related { margin-top: 56px; padding-top: 36px; border-top: 1px solid #dde3ed; }
.ev-post-related h2 { margin: 0; font-size: 1.3125rem; font-weight: 800; letter-spacing: -.03em; color: #16181d; }
.ev-post-related ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 20px 0 0; padding: 0; list-style: none; }
.ev-post-related a { display: flex; flex-direction: column; height: 100%; border: 1px solid #dde3ed; border-radius: 14px; background: #fff; overflow: hidden; color: inherit; transition: border-color .2s, box-shadow .2s; }
.ev-post-related a:hover { border-color: #b8b5ff; box-shadow: 0 10px 30px rgba(10, 5, 232, .08); }
.ev-post-related-thumb, .ev-side-thumb { display: block; aspect-ratio: 16 / 10; background: #f5f7fd; overflow: hidden; }
.ev-post-related-thumb img, .ev-side-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ev-post-related-thumb.is-none, .ev-side-thumb.is-none { display: grid; place-items: center; background: linear-gradient(135deg, #f5f7fd, #e7e9ff); }
.ev-post-related-thumb.is-none b, .ev-side-thumb.is-none b { color: #0a05e8; font-size: .9375rem; font-weight: 800; }
.ev-post-related-body, .ev-side-body { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; }
.ev-post-related-body b, .ev-side-body b { font-size: .9375rem; font-weight: 700; line-height: 1.45; color: #16181d; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.ev-post-related-body time, .ev-side-body time { font-size: .8125rem; color: #8a92a0; }
.ev-post-back { margin: 40px 0 0; }
/* 인기 글(오른쪽, 따라 내려옴) */
.ev-post-side { min-width: 0; }
.ev-post-side-stick { position: sticky; top: 96px; }
.ev-post-side h2 { margin: 0 0 14px; padding-bottom: 12px; border-bottom: 2px solid #16181d; font-size: 1rem; font-weight: 800; color: #16181d; }
.ev-post-side ul { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.ev-post-side li a { display: flex; flex-direction: column; border: 1px solid #dde3ed; border-radius: 14px; background: #fff; overflow: hidden; color: inherit; transition: border-color .2s, box-shadow .2s; }
.ev-post-side li a:hover { border-color: #b8b5ff; box-shadow: 0 10px 30px rgba(10, 5, 232, .08); }
.ev-side-more { display: inline-block; margin-top: 16px; font-size: .875rem; font-weight: 700; color: #40474f; }
.ev-side-more:hover { color: #0a05e8; }

@media (max-width: 1023px) {
  .ev-blog-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .ev-post-grid.has-side { grid-template-columns: minmax(0, 1fr); max-width: 880px; }
  .ev-post-side-stick { position: static; }
  .ev-post-side ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .ev-blog-top { padding-bottom: 36px; } .ev-blog-body { padding-top: 36px; }
  .ev-blog-filter { margin-bottom: 28px; } .ev-blog-search { width: 100%; }
  .ev-blog-list { grid-template-columns: 1fr; }
  .ev-post-body { font-size: 1rem; line-height: 1.85; }
  .ev-post-body h2 { font-size: 1.375rem; } .ev-post-body h3 { font-size: 1.125rem; }
  .ev-post-grid { padding-top: 24px; padding-bottom: 56px; gap: 28px; }
  .ev-post-main { padding: 24px 18px 32px; border-radius: 16px; }
  .ev-post-related ul, .ev-post-side ul { grid-template-columns: 1fr; }
  .ev-post-summary { padding: 16px 18px; }
  .ev-post-cardimg { margin: -24px -18px 20px; border-radius: 16px 16px 0 0; }
  .ev-post-body table { display: block; overflow-x: auto; }   /* 좁은 화면에서만 표를 가로로 밀어 본다 */
}
@media (prefers-reduced-motion: reduce) { .ev-blog-card > a, .ev-blog-cats a, .ev-post-related a, .ev-post-side li a, .ev-post-toc summary::after { transition: none; } .ev-blog-card > a:hover { transform: none; } }
