@charset "UTF-8";
/*
 * 클루보 블로그(/blog) 전용 스타일.
 *
 * guide.css 뒤에 로드된다. 색·폰트·본문 타이포그래피(.hb-doc)는 guide.css 의
 * 토큰과 규칙을 그대로 재사용하고, 여기서는 블로그 고유 레이아웃만 정의한다.
 *
 * 규칙
 *  - 콘텐츠 좌우 여백은 16px 로 통일한다.
 *  - 간격은 8배수 그리드(8·16·24·32·48)를 따른다.
 *  - 목록은 카드가 아니라 구분선(border-bottom)으로 나눈다.
 *  - 선택/호버 강조에 좌측 라인(border-left)을 쓰지 않는다.
 *  - 라이트 전용(다크 팔레트를 만들지 않는다).
 */

.bl-body {
    margin: 0;
    background: var(--hb-bg);
    color: var(--hb-text);
    font-family: var(--hb-font-sans);
    -webkit-text-size-adjust: 100%;
}

/* ===================== 상단 바 ===================== */

.bl-topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: var(--hb-topbar-h);
    padding: 0 16px;
    background: var(--hb-bg);
    border-bottom: 1px solid var(--hb-border);
}

.bl-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--hb-text);
    min-width: 0;
}

.bl-brand__logo {
    display: inline-flex;
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
}

.bl-brand__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.bl-brand__name {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bl-topnav {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 0 0 auto;
}

.bl-topnav__link {
    font-size: 14px;
    font-weight: 500;
    color: var(--hb-text-soft);
    text-decoration: none;
    white-space: nowrap;
}

.bl-topnav__link:hover {
    color: var(--hb-accent);
}

/* ===================== 본문 컨테이너 ===================== */

.bl-main {
    max-width: var(--hb-content-max);
    margin: 0 auto;
    padding: 32px 16px 48px;
}

/* ===================== 목록 ===================== */

.bl-intro {
    padding-bottom: 24px;
    border-bottom: 1px solid var(--hb-border);
}

.bl-intro__title {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.bl-intro__desc {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--hb-text-soft);
}

.bl-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.bl-list__item {
    border-bottom: 1px solid var(--hb-border-soft);
}

.bl-list__link {
    display: block;
    padding: 24px 0;
    text-decoration: none;
    color: inherit;
}

.bl-list__link:hover .bl-list__title {
    color: var(--hb-accent);
}

.bl-list__title {
    margin: 0 0 8px;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.01em;
    color: var(--hb-text);
    transition: color var(--hb-transition);
}

.bl-list__desc {
    margin: 0 0 8px;
    font-size: 14px;
    line-height: 1.65;
    color: var(--hb-text-soft);
}

.bl-list__date {
    display: block;
    font-size: 13px;
    color: var(--hb-text-muted);
}

.bl-empty {
    padding: 48px 0;
    text-align: center;
    color: var(--hb-text-muted);
}

/* ===================== 상세 ===================== */

.bl-crumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--hb-text-muted);
    /* 긴 제목이 좁은 화면에서 넘치지 않게 */
    flex-wrap: wrap;
}

.bl-crumb__link {
    color: var(--hb-text-soft);
    text-decoration: none;
}

.bl-crumb__link:hover {
    color: var(--hb-accent);
}

.bl-crumb__sep {
    color: var(--hb-text-faint);
}

.bl-crumb__current {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.bl-article__title {
    margin: 0 0 8px;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.02em;
    word-break: keep-all;
}

.bl-article__meta {
    margin: 0 0 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--hb-border);
    font-size: 13px;
    color: var(--hb-text-muted);
}

/* 본문(.hb-doc)은 guide.css 규칙을 그대로 쓴다. 여기서는 상단 여백만 조정. */
.bl-article__body > *:first-child {
    margin-top: 0;
}

/* ===================== 하단 CTA ===================== */

.bl-cta {
    margin-top: 48px;
    padding: 24px 16px;
    background: var(--hb-bg-subtle);
    border-radius: var(--hb-radius);
    text-align: center;
}

.bl-cta__text {
    margin: 0 0 16px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--hb-text-soft);
}

.bl-cta__btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--hb-accent);
    color: var(--hb-text-invert);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--hb-radius-sm);
    transition: background var(--hb-transition);
}

.bl-cta__btn:hover {
    background: var(--hb-accent-hover);
}

/* ===================== 이전/다음 ===================== */

.bl-pager {
    display: flex;
    gap: 16px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--hb-border);
}

.bl-pager__link {
    flex: 1 1 0;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}

.bl-pager__link--next {
    text-align: right;
}

.bl-pager__label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--hb-text-muted);
}

.bl-pager__title {
    /* 두 줄까지 노출하고 말줄임 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--hb-text);
}

.bl-pager__link:hover .bl-pager__title {
    color: var(--hb-accent);
}

/* ===================== 푸터 ===================== */

.bl-footer {
    padding: 32px 16px 48px;
    border-top: 1px solid var(--hb-border);
    text-align: center;
}

.bl-footer__text {
    margin: 0;
    font-size: 14px;
    color: var(--hb-text-soft);
}

.bl-footer__link {
    color: var(--hb-accent);
    text-decoration: none;
    font-weight: 600;
}

.bl-footer__link:hover {
    text-decoration: underline;
}

/* ===================== 모바일 ===================== */

@media (max-width: 640px) {
    .bl-main {
        padding: 24px 16px 40px;
    }

    .bl-intro__title {
        font-size: 24px;
    }

    .bl-article__title {
        font-size: 24px;
    }

    .bl-list__title {
        font-size: 17px;
    }

    /* 좁은 폭에서 상단 내비가 브랜드명을 밀어내지 않도록 */
    .bl-topnav {
        gap: 12px;
    }

    .bl-topnav__link {
        font-size: 13px;
    }

    /* 이전/다음은 세로로 쌓고 오른쪽 정렬을 푼다 */
    .bl-pager {
        flex-direction: column;
        gap: 24px;
    }

    .bl-pager__link--next {
        text-align: left;
    }
}
