/* ============================================================
   스킨 토큰 — setup-site.sh가 사이트별 값으로 치환하는 유일한 지점.
   흰 도화지 미니멀 금형 (docs/mold-volume-image-css-v1.md §3).
   전 사이트 동일값 금지: 아래 토큰 조합으로 사이트마다 다른 인상을 만든다.
   ============================================================ */
:root {
    --skin-brand: #1a9e4b;          /* 주소허브 — 그린(로고 하부) 링크·제목 강조 */
    --skin-accent: #4285f4;         /* 블루(로고 지붕) 표 헤더 라인 */
    --skin-ink: #202124;            /* 본문 텍스트색 (워드마크 톤) */
    --skin-muted: #5f6368;          /* 캡션·메타 */
    --skin-line: #e3e8e4;           /* 표·구분선 */
    --skin-radius: 10px;            /* 표·이미지 모서리 (로고 라운드 톤) */
    --skin-content-width: 760px;    /* 본문 폭 (빠른주소 820과 변주) */
    --skin-heading-font: inherit;   /* 제목 폰트 */
}

/* ---- 흰 도화지: 배경 흰색, 본문은 텍스트만 흐르는 문서 느낌 ---- */
body {
    background: #fff;
    color: var(--skin-ink);
}

/* 본문 가독 폭·줄간격 — 카드/그림자/박스 장식 없이 텍스트 중심 */
.entry-content {
    max-width: var(--skin-content-width);
    margin-left: auto;
    margin-right: auto;
    font-size: 1.02rem;
    line-height: 1.85;
    word-break: keep-all;       /* 한글 어절 단위 줄바꿈 */
    overflow-wrap: break-word;
}
.entry-content > * + * { margin-top: 1.25em; }

/* ---- 제목 위계: 굵기·간격만으로 구분, 장식 최소 ---- */
.entry-content h2,
.entry-content h3,
.entry-content h4 {
    font-family: var(--skin-heading-font);
    line-height: 1.35;
    color: var(--skin-ink);
}
.entry-content h2 {
    font-size: 1.6rem;
    margin-top: 2.2em;
    padding-bottom: 0.3em;
    border-bottom: 2px solid var(--skin-brand);   /* 흰 바탕 위 유일한 색 신호 */
}
.entry-content h3 { font-size: 1.25rem; margin-top: 1.8em; }
.entry-content h4 { font-size: 1.08rem; margin-top: 1.5em; }

/* ---- 링크: 액센트 1색 ---- */
a { color: var(--skin-brand); }
.entry-content a { text-underline-offset: 2px; }

/* ---- 리스트: 여백만, 마커 기본 ---- */
.entry-content ul,
.entry-content ol { padding-left: 1.4em; }
.entry-content li + li { margin-top: 0.5em; }

/* ---- 표: 단순 가로줄형 (--skin-table 변주는 setup이 격자형으로 교체 가능) ---- */
.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.6em 0;
    font-size: 0.96rem;
}
.entry-content th,
.entry-content td {
    padding: 0.7em 0.9em;
    border-bottom: 1px solid var(--skin-line);
    text-align: left;
    vertical-align: top;
}
.entry-content thead th {
    border-bottom: 2px solid var(--skin-accent);
    font-weight: 700;
}

/* ---- 이미지: 페이지당 다수, 블록 배치 + 충분한 상하 여백 ---- */
.entry-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.8em auto;
    border-radius: var(--skin-radius);
}
.entry-content figure { margin: 1.8em 0; }
.entry-content figcaption {
    font-size: 0.86rem;
    color: var(--skin-muted);
    text-align: center;
    margin-top: 0.5em;
}

/* ---- 기존 금형 규칙 (유지) ---- */
.rank-math-breadcrumb {
    font-size: 0.85em;
    margin: 0 auto 1em;
    padding: 16px 22px 0;
    max-width: 1120px;
}
button, .button, input[type="submit"] { border-radius: var(--skin-radius); }

/* 헤더 로고 (2x 원본을 축소 표시) */
.site-logo img { max-height: 52px; width: auto; }

/* 풀폭 랜딩 페이지에서 사이트 배경과 본문 연결 */
.page .site-content { padding-top: 0; }

/* ============ CTA 버튼 + 3열 그리드 (금형 표준) ============ */
.bp-actions { text-align: center; margin: 2em 0; }
.bp-top { margin-top: 0; margin-bottom: 1.6em; }
.bp-btn {
    display: inline-block; background: var(--skin-brand); color: #fff !important;
    font-weight: 700; padding: 0.85em 2.4em; border-radius: var(--skin-radius);
    text-decoration: none; font-size: 1.08rem; box-shadow: 0 2px 10px rgba(0,0,0,0.18);
}
.bp-btn:hover { filter: brightness(0.93); }

/* 홈 최신글 바로가기 목록 */
.bp-recent { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 1.5em 0; }
.bp-recent a { display: block; border: 1px solid var(--skin-line); border-radius: var(--skin-radius); overflow: hidden; text-decoration: none; background: #fff; transition: box-shadow .15s, transform .15s; }
.bp-recent a:hover { box-shadow: 0 6px 20px rgba(28,31,36,0.10); transform: translateY(-2px); }
.bp-recent img { width: 100%; height: 140px; object-fit: cover; display: block; margin: 0; border-radius: 0; }
.bp-recent .bp-recent-t { display: block; padding: 12px 14px; color: var(--skin-ink); font-weight: 600; line-height: 1.38; font-size: .92rem; }

/* 블로그·카테고리 글 목록 3열 컴팩트 카드 */
body:is(.blog, .archive) .site-main { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
body:is(.blog, .archive) .site-main > .page-header,
body:is(.blog, .archive) .site-main > nav,
body:is(.blog, .archive) .site-main > .paging-navigation { grid-column: 1 / -1; }
body:is(.blog, .archive) .site-main > article { margin: 0; border: 1px solid var(--skin-line); border-radius: var(--skin-radius); overflow: hidden; background: #fff; display: flex; flex-direction: column; transition: box-shadow .15s ease, transform .15s ease; }
body:is(.blog, .archive) .site-main > article:hover { box-shadow: 0 6px 20px rgba(28,31,36,0.10); transform: translateY(-2px); }
body:is(.blog, .archive) .site-main > article .inside-article { padding: 0; }
body:is(.blog, .archive) .site-main > article .post-image { margin: 0; }
body:is(.blog, .archive) .site-main > article .post-image img { width: 100%; height: 150px; object-fit: cover; display: block; border-radius: 0; margin: 0; }
body:is(.blog, .archive) .site-main > article .entry-header { padding: 14px 16px 0; }
body:is(.blog, .archive) .site-main > article .entry-summary { padding: 0 16px; font-size: .86rem; color: var(--skin-muted); }
body:is(.blog, .archive) .site-main > article .entry-meta,
body:is(.blog, .archive) .site-main > article footer.entry-meta { padding: 0 16px 14px; font-size: .8rem; }
body:is(.blog, .archive) .site-main > article .entry-title { font-size: .98rem; line-height: 1.38; margin: 0; }
body:is(.blog, .archive) .site-main > article .entry-title a { color: var(--skin-ink); }
body:is(.blog, .archive) .site-main > article .entry-title a:hover { color: var(--skin-brand); }
@media (max-width: 768px) { body:is(.blog, .archive) .site-main, .bp-recent { grid-template-columns: 1fr; } }
