/* echeveau.net 메인 카드뉴스 v3 — 브랜드 팔레트 (2026-10-01)
 * Deep Navy #172033 · Warm White #FAF9F7 · Slate #667085 · Line #E6E8EC · CTA #24527A/#173A59 · Gold #B99A62
 * 무채색 90% · 네이비 8% · 골드 2%. 카테고리별 다색 카드는 쓰지 않는다.
 */
body.home, body.home .site, body.home .site-content, body.category, body.category .site, body.category .site-content { background: #FAF9F7; }
.ech-home { --ink: #172033; --muted: #667085; --line: #E6E8EC; --cta: #24527A; --cta-hover: #173A59; --gold: #B99A62;
  max-width: 1200px; margin: 0 auto; padding: 28px 16px 56px; color: var(--ink); word-break: keep-all; overflow-wrap: anywhere; }
.ech-home * { box-sizing: border-box; }

/* 상단 */
.ech-home-hero { padding: 4px 0 8px; }
.ech-home-brand { margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .18em; color: var(--gold); }
.ech-home .ech-home-title { margin: 0 0 10px; font-size: 30px; line-height: 1.25; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.ech-home-tagline { margin: 0 0 22px; font-size: 17px; line-height: 1.6; color: var(--muted); }
.ech-home-chips { display: flex; gap: 8px; margin: 0; padding: 0 0 4px; list-style: none; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.ech-home-chips::-webkit-scrollbar { display: none; }
.ech-home-chips li { flex: none; margin: 0; }
.ech-home .ech-home-chip { display: inline-flex; align-items: center; min-height: 42px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.ech-home .ech-home-chip:hover { border-color: var(--ink); color: var(--ink); }
.ech-home .ech-home-chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.ech-home-brand a { color: inherit; text-decoration: none; }
.ech-home-brand a:hover { text-decoration: underline; }

/* 카테고리 페이지 */
.ech-cat-count { display: inline-block; margin-left: 4px; font-size: 15px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.ech-cat-subs { margin-top: 10px; gap: 6px; }
.ech-home .ech-sub-chip { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; background: transparent; color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; border: 1px solid transparent; }
.ech-home .ech-sub-chip:hover { color: var(--ink); border-color: var(--line); background: #fff; }
.ech-home .ech-sub-chip.is-active { color: var(--ink); border-color: var(--gold); background: #fff; }

.ech-pager { margin: 40px 0 0; }
.ech-pager ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ech-pager li { margin: 0; }
.ech-pager a, .ech-pager span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font-size: 15px; font-weight: 600; text-decoration: none; }
.ech-pager a:hover { border-color: var(--ink); }
.ech-pager .current { background: var(--ink); border-color: var(--ink); color: #fff; }
.ech-pager .dots { border-color: transparent; background: transparent; }

/* 섹션 */
.ech-home-section { margin: 44px 0 0; }
.ech-home-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.ech-home .ech-home-h2 { position: relative; margin: 0; padding-left: 14px; font-size: 22px; line-height: 1.35; font-weight: 800; letter-spacing: -0.01em; color: var(--ink); }
.ech-home .ech-home-h2::before { content: ""; position: absolute; left: 0; top: .3em; bottom: .3em; width: 3px; border-radius: 2px; background: var(--gold); }
.ech-home .ech-home-more { flex: none; font-size: 15px; font-weight: 600; color: var(--muted); text-decoration: none; }
.ech-home .ech-home-more:hover { color: var(--cta); }

/* 카드 */
.ech-home-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
.ech-home-grid li { margin: 0; }
.ech-home .ech-card { display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.ech-home .ech-card:hover { border-color: #cfd3da; box-shadow: 0 8px 22px rgba(23, 32, 51, .07); color: var(--ink); }
.ech-home .ech-card:focus-visible { outline: 2px solid var(--cta); outline-offset: 3px; }

.ech-card-cover { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 150px; padding: 18px 20px; color: #fff; background: #172033; }
.ech-card-label { display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--gold); }
.ech-card-headline { margin: 0; font-size: 21px; line-height: 1.4; font-weight: 700; letter-spacing: -0.01em; color: #fff; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.ech-card-body { display: flex; flex-direction: column; gap: 12px; flex: 1; padding: 16px 20px 18px; }
.ech-card-excerpt { margin: 0; font-size: 16px; line-height: 1.65; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ech-card-go { margin-top: auto; font-size: 15px; font-weight: 700; color: var(--cta); }
.ech-home .ech-card:hover .ech-card-go { color: var(--cta-hover); }

.ech-home-ad { margin: 44px 0 0; min-height: 280px; text-align: center; }

@media (min-width: 640px) {
  .ech-home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .ech-card-cover { min-height: 0; aspect-ratio: 16 / 9; }
}
@media (min-width: 960px) {
  .ech-home { padding-top: 44px; }
  .ech-home .ech-home-title { font-size: 36px; }
  .ech-home-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .ech-card-headline { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) { .ech-home .ech-card { transition: none; } }
