/* ============================================================
   BLOG POST — Recap 스타일 에디토리얼 레이아웃 (chestnut)
   전역 토큰(:root) 사용: --primary, --accent, --bg, --surface 등
   ============================================================ */

.bp-list,
.bp-article {
    background-color: var(--bg);
    color: var(--ink);
    font-family: var(--font-ko);
    padding-bottom: 80px;
}

.bp-container {
    width: 100%;
    max-width: 990px;
    margin: 0 auto;
    padding: 0 20px;
}
.bp-container--narrow {
    max-width: 720px;
}

/* 공통: 카테고리 라벨 */
.bp-cat {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 10px;
}

/* 공통: 메타(작성자 · 날짜) */
.bp-meta,
.bp-article-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text-muted);
}
.bp-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
}
.bp-author { font-weight: 600; color: var(--primary-deep); }
.bp-dot { color: var(--border); }

.bp-noimg {
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    opacity: 0.7;
}

/* ===================== 목록 페이지 ===================== */

.bp-list-head {
    text-align: center;
    padding: 50px 0 26px;
}
.bp-list-eyebrow {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.28em;
    color: var(--accent);
    margin-bottom: 10px;
}
.bp-list-title {
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--primary-deep);
    margin: 0;
}
.bp-list-desc {
    margin: 14px auto 0;
    max-width: 560px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* 카테고리 탭 */
.bp-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 14px 0 36px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 40px;
}
.bp-tab {
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    padding: 7px 16px;
    border: 1px solid var(--border);
    border-radius: 999px;
    transition: all 0.18s ease;
    background-color: var(--surface);
}
.bp-tab:hover { color: var(--primary); border-color: var(--primary); }
.bp-tab.is-active {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.bp-tab-count {
    font-size: 0.68rem;
    opacity: 0.7;
    margin-left: 2px;
}

/* 피처(대표) 글 */
.bp-feature {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 32px;
    align-items: center;
    text-decoration: none;
    color: inherit;
    margin-bottom: 56px;
    padding-bottom: 56px;
    border-bottom: 1px solid var(--border);
}
.bp-feature-media {
    aspect-ratio: 16 / 11;
    background-color: var(--surface-alt);
    background-size: cover;
    background-position: center center;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bp-feature-title {
    font-size: 1.85rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ink);
    margin: 0 0 14px;
}
.bp-feature:hover .bp-feature-title { color: var(--primary); }
.bp-feature-excerpt {
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.7;
    margin-bottom: 18px;
}

/* 카드 그리드 */
.bp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px 28px;
}
.bp-card {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}
.bp-card-media {
    aspect-ratio: 4 / 3;
    background-color: var(--surface-alt);
    background-size: cover;
    background-position: center center;
    border-radius: 10px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bp-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--ink);
    margin: 0 0 10px;
}
.bp-card:hover .bp-card-title { color: var(--primary); }
.bp-card-excerpt {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bp-empty {
    text-align: center;
    padding: 80px 0;
    color: var(--text-muted);
}

/* 페이지네이션 */
.bp-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 56px;
}
.bp-page {
    min-width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    background-color: var(--surface);
    transition: all 0.18s ease;
}
.bp-page:hover { color: var(--primary); border-color: var(--primary); }
.bp-page.is-active {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* ===================== 상세 페이지 ===================== */

.bp-article-head {
    text-align: center;
    padding: 56px 0 32px;
}
.bp-article-head .bp-cat { margin-bottom: 16px; }
.bp-article-title {
    font-size: 2.3rem;
    font-weight: 800;
    line-height: 1.28;
    color: var(--primary-deep);
    margin: 0 0 18px;
}
.bp-align-left { text-align: left; }
.bp-align-center { text-align: center; }
.bp-article-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0 auto 20px;
    max-width: 620px;
}
.bp-article-meta { justify-content: center; }

/* 커버 이미지 */
.bp-cover { margin: 10px 0 44px; }
.bp-cover-frame {
    aspect-ratio: 16 / 9;
    background-color: var(--surface-alt);
    background-size: cover;
    background-position: center center;
    border-radius: 12px;
}

/* 본문 prose */
.bp-body {
    font-size: 1.06rem;
    line-height: 1.95;
    color: var(--ink);
    word-break: keep-all;
}
.bp-body p { margin: 0 0 1.4em; }
.bp-body h1, .bp-body h2, .bp-body h3, .bp-body h4 {
    color: var(--primary-deep);
    font-weight: 700;
    line-height: 1.4;
    margin: 1.8em 0 0.7em;
}
.bp-body h2 { font-size: 1.5rem; }
.bp-body h3 { font-size: 1.25rem; }
.bp-body a { color: var(--primary); text-decoration: underline; }
.bp-body img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
    margin: 1.8em auto;
}
.bp-body figure { margin: 1.8em 0; }
.bp-body figcaption {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 8px;
}
.bp-body blockquote {
    margin: 1.6em 0;
    padding: 4px 22px;
    border-left: 4px solid var(--accent);
    color: var(--text-muted);
    font-style: italic;
}
.bp-body ul, .bp-body ol { margin: 0 0 1.4em; padding-left: 1.4em; }
.bp-body li { margin-bottom: 0.5em; }

/* 참고문헌 */
.bp-reference {
    margin-top: 56px;
    padding: 28px 28px 30px;
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
}
.bp-reference-title {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--accent);
    margin: 0 0 14px;
}
.bp-reference-body {
    font-size: 0.9rem;
    line-height: 1.85;
    color: var(--text-muted);
    word-break: break-word;
}
.bp-reference-body a { color: var(--primary); }

/* 이전/다음 글 */
.bp-postnav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 48px;
}
.bp-postnav-item {
    text-decoration: none;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px 18px;
    background-color: var(--surface);
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: border-color 0.18s ease;
}
.bp-postnav-item:hover { border-color: var(--primary); }
.bp-postnav-next { text-align: right; align-items: flex-end; }
.bp-postnav-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--accent);
}
.bp-postnav-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.4;
}

.bp-backwrap { text-align: center; margin-top: 44px; }
.bp-back {
    display: inline-block;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 999px;
    padding: 9px 24px;
    transition: all 0.18s ease;
}
.bp-back:hover { background-color: var(--primary); color: #fff; }

/* ===================== 반응형 ===================== */
@media (max-width: 860px) {
    .bp-grid { grid-template-columns: repeat(2, 1fr); }
    .bp-feature { grid-template-columns: 1fr; gap: 20px; }
    .bp-feature-media { aspect-ratio: 16 / 9; }
}
@media (max-width: 560px) {
    .bp-list-title { font-size: 2rem; }
    .bp-article-title { font-size: 1.7rem; }
    .bp-grid { grid-template-columns: 1fr; }
    .bp-feature-title { font-size: 1.5rem; }
    .bp-postnav { grid-template-columns: 1fr; }
    .bp-postnav-next { text-align: left; align-items: flex-start; }
    .bp-body { font-size: 1.0rem; }
}
