/* block:bf-community/ad-card 0.2.0 */
.bfc-ad { display: grid; gap: 8px; }
.bfc-ad__card { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; min-height: var(--bfc-ad-min, 120px); padding: 16px 18px; overflow: hidden; border-radius: var(--bfc-radius, 4px); background-position: center; background-size: cover; color: #fff; text-decoration: none; box-sizing: border-box; }
.bfc-ad__card::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .03) 0 2px, transparent 2px 10px); pointer-events: none; }
a.bfc-ad__card:hover { filter: brightness(1.12); }
.bfc-ad__label { align-self: flex-start; margin-bottom: auto; padding: 3px 7px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 3px; font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.bfc-ad__title { position: relative; z-index: 1; color: #fff; font-size: 17px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.35; }
.bfc-ad__text { position: relative; z-index: 1; color: rgba(255, 255, 255, .75); font-size: 12px; }
.bfc-ad__more { justify-self: end; color: var(--bfc-faint, #9c9ca5); font-size: 12px; text-decoration: none; }
.bfc-ad__more:hover { color: var(--bfc-primary, #3e9fde); }

/* block:bf-community/ranking 0.1.0 */
.bfc-rank__list { margin: 0; padding: 0; list-style: none; }
.bfc-rank__list a, .bfc-rank__row { display: flex; align-items: center; gap: 10px; padding: 8px 0; color: var(--bfc-ink, #27272a); font-size: 13.5px; text-decoration: none; }
.bfc-rank__list a:hover .bfc-rank__text { color: var(--bfc-primary, #3e9fde); }
.bfc-rank__no { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 3px; background: var(--bfc-surface-2, #f4f4f5); color: var(--bfc-muted, #6e6e77); font-size: 11px; font-weight: 800; }
.bfc-rank__no.is-top { background: var(--bfc-primary, #3e9fde); color: #fff; }
.bfc-rank__text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bfc-rank__list em { flex-shrink: 0; color: var(--bfc-primary, #3e9fde); font-size: 11.5px; font-style: normal; font-weight: 800; }
.bfc-rank__pt { flex-shrink: 0; color: var(--bfc-faint, #9c9ca5); font-size: 12px; }

/* block:bf-community/stats 0.1.0 */
.bfc-stats__now { padding: 12px 14px; border-radius: var(--bfc-radius, 4px); background: var(--bfc-primary-soft, #e8f4fd); }
.bfc-stats__now p { margin: 0; display: flex; align-items: center; gap: 6px; color: var(--bfc-ink, #27272a); font-size: 13px; }
.bfc-stats__now strong { color: var(--bfc-primary, #3e9fde); font-size: 18px; font-weight: 800; }
.bfc-stats__live { width: 7px; height: 7px; border-radius: 50%; background: #17bfa0; box-shadow: 0 0 0 3px color-mix(in srgb, #17bfa0 25%, transparent); }
.bfc-stats__split { margin-top: 2px !important; color: var(--bfc-faint, #9c9ca5) !important; font-size: 11.5px !important; }
.bfc-stats__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 12px 0 0; padding: 0; text-align: center; }
.bfc-stats__grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 12px; border-top: 1px solid var(--bfc-line-soft, #f1f1f3); }
.bfc-stats__grid div + div { border-left: 1px solid var(--bfc-line-soft, #f1f1f3); }
.bfc-stats__grid dt { color: var(--bfc-faint, #9c9ca5); font-size: 11.5px; }
.bfc-stats__grid dd { margin: 2px 0 0; color: var(--bfc-ink, #27272a); font-size: 15px; font-weight: 800; }

/* block:bf-community/support-box 0.1.0 */
.bfc-support { text-align: center; }
.bfc-support__title { display: inline-flex; align-items: center; gap: 6px; margin: 0; color: var(--bfc-ink, #27272a); font-size: 15px; font-weight: 800; }
.bfc-support__title .bf-icon { color: var(--bfc-primary, #3e9fde); }
.bfc-support__text { margin: 10px 0 0; color: var(--bfc-muted, #6e6e77); font-size: 12.5px; line-height: 1.6; }
.bfc-support__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.bfc-support__btns:has(> :only-child) { grid-template-columns: 1fr; }
.bfc-support__btn { display: flex; align-items: center; justify-content: center; height: 38px; border: 1px solid var(--bfc-line, #e6e6ea); border-radius: var(--bfc-radius, 4px); background: var(--bfc-surface, #fff); color: var(--bfc-ink, #27272a); font-size: 13px; font-weight: 700; text-decoration: none; }
.bfc-support__btn:hover { border-color: var(--bfc-primary, #3e9fde); color: var(--bfc-primary, #3e9fde); }
.bfc-support__btn.is-primary { border-color: var(--bfc-primary, #3e9fde); background: var(--bfc-primary, #3e9fde); color: #fff; }
.bfc-support__btn.is-primary:hover { background: var(--bfc-primary-dark, #2b82c4); color: #fff; }

/* block:bf-community/tags 0.1.0 */
.bfc-tags__list { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.bfc-tags__list a { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border: 1px solid var(--bfc-line, #e6e6ea); border-radius: 3px; background: var(--bfc-surface, #fff); color: var(--bfc-muted, #6e6e77); font-size: 12px; font-weight: 600; text-decoration: none; }
.bfc-tags__list a:hover { border-color: var(--bfc-primary, #3e9fde); color: var(--bfc-primary, #3e9fde); }
.bfc-tags__list a.is-accent { height: 30px; border-color: transparent; background: var(--bfc-primary, #3e9fde); color: #fff; font-size: 13px; font-weight: 700; }

/* footer:bf-community/sitemap 0.1.1 */
/* 커뮤니티 푸터: 가입 안내 띠 · 전체 메뉴와 고객센터 · 로고와 회사 정보 */
.bfc-ft { color: var(--bfc-muted, #6e6e77); font-size: 13px; }

/* 가입 안내 띠 (늘 어두운 바탕) */
.bfc-ft__cta { background: #101826 linear-gradient(120deg, #0f1724 0%, #162336 60%, #0f1724 100%); color: #fff; }
.bfc-ft__cta-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 56px; padding-bottom: 56px; }
.bfc-ft__cta-label { margin: 0 0 12px; color: rgba(255, 255, 255, .6); font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.bfc-ft__cta-title { margin: 0; color: #fff; font-size: 30px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.35; }
.bfc-ft__cta-text { margin: 12px 0 0; color: rgba(255, 255, 255, .75); font-size: 14px; }
.bfc-ft__cta-btns { display: flex; flex-wrap: wrap; gap: 10px; flex-shrink: 0; }
.bfc-ft__btn { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 24px; border-radius: var(--bfc-radius, 4px); font-size: 14.5px; font-weight: 700; text-decoration: none; }
.bfc-ft .bfc-ft__btn--light { background: #fff; color: #18181b; }
.bfc-ft .bfc-ft__btn--light:hover { background: var(--bfc-primary, #3e9fde); color: #fff; }
.bfc-ft__btn--ghost { border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .08); color: #fff; }
.bfc-ft__btn--ghost:hover { background: rgba(255, 255, 255, .16); }

/* 전체 메뉴 + 고객센터 */
.bfc-ft__main { background: var(--bfc-surface, #fff); border-top: 1px solid var(--bfc-line, #e6e6ea); }
.bfc-ft__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 44px; padding-bottom: 44px; }
.bfc-ft__grid.has-support { grid-template-columns: minmax(0, 1fr) 300px; }
.bfc-ft__support { align-self: start; padding: 22px 20px; border-radius: var(--bfc-radius, 4px); background: color-mix(in srgb, var(--bfc-primary, #3e9fde) 7%, var(--bfc-surface, #fff)); }
.bfc-ft__support-title { margin: 0 0 10px; color: var(--bfc-ink, #27272a); font-size: 13px; font-weight: 800; }
.bfc-ft__support-text { margin: 0 0 16px; line-height: 1.6; font-size: 12.5px; }
.bfc-ft__support-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bfc-ft__sbtn { display: flex; align-items: center; justify-content: center; height: 38px; border: 1px solid var(--bfc-line, #e6e6ea); border-radius: var(--bfc-radius, 4px); background: var(--bfc-surface, #fff); color: var(--bfc-primary, #3e9fde); font-weight: 700; text-decoration: none; }
.bfc-ft__sbtn:hover { border-color: var(--bfc-primary, #3e9fde); }

/* 맨 아래 정보 */
.bfc-ft__bottom { background: var(--bfc-surface, #fff); border-top: 1px solid var(--bfc-line-soft, #f1f1f3); }
.bfc-ft__bottom-row { display: flex; gap: 32px; align-items: flex-start; padding-top: 26px; padding-bottom: 36px; }
.bfc-ft__logo { flex-shrink: 0; min-width: 120px; }
.bfc-ft__meta { min-width: 0; line-height: 1.7; }
.bfc-ft__meta p { margin: 0; }
.bfc-ft__links { margin-bottom: 6px; }
.bfc-ft__links a { color: var(--bfc-ink, #27272a); text-decoration: none; }
.bfc-ft__links a:hover { color: var(--bfc-primary, #3e9fde); }
.bfc-ft__copy { margin-top: 6px; color: var(--bfc-faint, #9c9ca5); }
.bfc-ft__info a, .bfc-ft__copy a { color: inherit; }

@media (max-width: 1024px) {
    .bfc-ft__grid.has-support { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 768px) {
    .bfc-ft__cta-row { flex-direction: column; align-items: flex-start; padding-top: 40px; padding-bottom: 40px; }
    .bfc-ft__cta-title { font-size: 23px; }
    .bfc-ft__cta-btns { width: 100%; }
    .bfc-ft__btn { flex: 1; height: 44px; padding: 0 14px; }
    .bfc-ft__grid { gap: 28px; padding-top: 32px; padding-bottom: 32px; }
    .bfc-ft__bottom-row { flex-direction: column; gap: 14px; }
}

/* header:bf-community/portal 0.1.2 */
/* 커뮤니티 헤더: 윗줄(공지·회원 메뉴) · 가운데(로고·검색·아이콘) · 아랫줄(주메뉴) */
.bfc-hd { background: var(--bfc-surface, #fff); color: var(--bfc-ink, #27272a); }
.bfc-hd.has-nav-border { border-bottom: 1px solid var(--bfc-line, #e6e6ea); }

/* 윗줄 */
.bfc-hd__top { border-bottom: 1px solid var(--bfc-line-soft, #f1f1f3); color: var(--bfc-muted, #6e6e77); font-size: 12.5px; }
.bfc-hd__top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 36px; }
.bfc-hd__notice { flex: 1; min-width: 0; }
.bfc-hd__util { display: flex; align-items: center; gap: 0; flex-shrink: 0; }
.bfc-hd__util > * + *::before { content: ""; display: inline-block; width: 1px; height: 10px; margin: 0 12px; background: var(--bfc-line, #e6e6ea); vertical-align: middle; }
.bfc-hd .bf-member-w { gap: 0; font-size: 12.5px; }
.bfc-hd .bf-member-w li + li::before { content: ""; display: inline-block; width: 1px; height: 10px; margin: 0 12px; background: var(--bfc-line, #e6e6ea); vertical-align: middle; }
.bfc-hd .bf-member-w a { color: var(--bfc-muted, #6e6e77); }
.bfc-hd .bf-member-w li:has(a[href*="register.php"]) a { color: var(--bfc-primary, #3e9fde); font-weight: 700; }
.bfc-hd__util-link { display: inline-flex; align-items: center; gap: 4px; color: var(--bfc-muted, #6e6e77); text-decoration: none; white-space: nowrap; }
.bfc-hd__util-link:hover { color: var(--bfc-primary, #3e9fde); }
.bfc-hd__util-link .bf-icon { font-size: 14px; }

/* 가운데 줄 */
.bfc-hd__main { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr) auto; align-items: center; gap: 32px; height: 80px; }
.bfc-hd__logo { min-width: 0; }
.bfc-hd__search { min-width: 0; max-width: 560px; width: 100%; }
.bfc-hd__right { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.bfc-hd__search-btn { display: none; padding: 6px; border: 0; background: none; color: var(--bfc-ink-2, #52525b); font-size: 22px; line-height: 1; cursor: pointer; }

/* 큰 검색창: 하늘색 테두리 + 오른쪽 하늘색 버튼
 * 테두리는 입력 칸에만 둔다. 상자 전체에 테두리를 두고 버튼을 안에 넣으면 화면 배율(125% 등)에 따라
 * 테두리와 버튼 사이로 흰 배경이 실선처럼 비친다. */
.bfc-hd .bf-search-w { align-items: stretch; height: 46px; border: 0; border-radius: var(--bfc-radius, 4px); background: transparent; }
.bfc-hd .bf-search-w__input { height: auto; padding: 0 16px; border: 2px solid var(--bfc-primary, #3e9fde); border-right: 0; border-radius: var(--bfc-radius, 4px) 0 0 var(--bfc-radius, 4px); background: var(--bfc-surface, #fff); color: var(--bfc-ink, #27272a); font-size: 14.5px; box-sizing: border-box; }
.bfc-hd .bf-search-w__input::placeholder { color: var(--bfc-faint, #9c9ca5); }
.bfc-hd .bf-search-w__btn { width: 54px; height: auto; border-radius: 0 var(--bfc-radius, 4px) var(--bfc-radius, 4px) 0; background: var(--bfc-primary, #3e9fde); color: #fff; font-size: 20px; }
.bfc-hd .bf-search-w__btn:hover { background: var(--bfc-primary-dark, #2b82c4); color: #fff; }
/* 검색창 안 왼쪽 실시간 인기 검색어: 입력 칸과 같은 테두리로 이어 붙인다 */
.bfc-hd .bf-search-w__ticker { width: 190px; height: auto; border: 2px solid var(--bfc-primary, #3e9fde); border-right: 0; border-radius: var(--bfc-radius, 4px) 0 0 var(--bfc-radius, 4px); background: var(--bfc-surface, #fff); color: var(--bfc-ink, #27272a); box-sizing: border-box; }
.bfc-hd .bf-search-w__ticker::after { background: var(--bfc-line, #e6e6ea); }
.bfc-hd .bf-search-w__ticker b, .bfc-hd .bf-search-w__ticker-label { color: var(--bfc-primary, #3e9fde); }
.bfc-hd .bf-search-w__ticker ~ .bf-search-w__input { border-left: 0; border-radius: 0; }

/* 아랫줄 주메뉴 */
.bfc-hd__nav { border-top: 1px solid var(--bfc-line-soft, #f1f1f3); }
.bfc-hd .bf-menu-w--horizontal .bf-menu-w__list--d0 { gap: 0 8px; flex-wrap: nowrap; }
.bfc-hd .bf-menu-w__list--d0 > .bf-menu-w__item > a { position: relative; padding: 15px 14px 14px; border-radius: 0; color: var(--bfc-ink, #27272a); font-size: 15.5px; font-weight: 700; }
.bfc-hd .bf-menu-w__list--d0 > .bf-menu-w__item:first-child > a { padding-left: 0; }
.bfc-hd .bf-menu-w__list--d0 > .bf-menu-w__item > a:hover,
.bfc-hd .bf-menu-w__list--d0 > .bf-menu-w__item.is-current > a,
.bfc-hd .bf-menu-w__list--d0 > .bf-menu-w__item:has(.is-current) > a { color: var(--bfc-primary, #3e9fde); }
.bfc-hd .bf-menu-w__caret { display: none; }
.bfc-hd .bf-menu-w--horizontal .bf-menu-w__list--d1 { min-width: 170px; padding: 6px; border-color: var(--bfc-line, #e6e6ea); border-radius: var(--bfc-radius, 4px); background: var(--bfc-surface, #fff); box-shadow: var(--bfc-shadow-lg, 0 10px 30px rgba(0, 0, 0, .1)); }
.bfc-hd .bf-menu-w--horizontal .bf-menu-w__list--d1 a { padding: 9px 12px; border-radius: 3px; color: var(--bfc-ink-2, #52525b); font-size: 14px; font-weight: 500; }
.bfc-hd .bf-menu-w--horizontal .bf-menu-w__list--d1 a:hover { background: var(--bfc-primary-soft, #e8f4fd); color: var(--bfc-primary, #3e9fde); }

/* 태블릿 */
@media (max-width: 1024px) {
    .bfc-hd .bf-search-w__ticker { width: 150px; }
    .bfc-hd__main { gap: 20px; }
    .bfc-hd .bf-menu-w__list--d0 > .bf-menu-w__item > a { padding-left: 10px; padding-right: 10px; font-size: 15px; }
}

/* 모바일: 공지 숨김 · 검색은 버튼으로 열기 · 주메뉴는 가로로 밀어 보기 */
@media (max-width: 768px) {
    .bfc-hd__notice { display: none; }
    .bfc-hd__top-row { justify-content: flex-end; height: 32px; }
    .bfc-hd .bf-member-w span { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
    .bfc-hd .bf-member-w .bf-icon { font-size: inherit; }
    .bfc-hd__util > .bfc-hd__util-link:not(.bfc-dark-btn) { display: none; }
    .bfc-hd__util > .bfc-dark-btn::before { margin: 0 10px; }
    .bfc-hd__util .bfc-dark-btn__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .bfc-hd__util .bfc-dark-btn .bf-icon { font-size: 16px; }

    .bfc-hd__main { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; height: 60px; }
    .bfc-hd__search { display: none; grid-column: 1 / -1; grid-row: 2; max-width: none; padding-bottom: 12px; }
    .bfc-hd.is-search-open .bfc-hd__main { height: auto; padding-top: 10px; }
    .bfc-hd.is-search-open .bfc-hd__search { display: block; }
    .bfc-hd__search-btn { display: inline-flex; }
    .bfc-hd .bf-search-w { height: 42px; }
    .bfc-hd .bf-search-w__ticker ~ .bf-search-w__input { border-left: 2px solid var(--bfc-primary, #3e9fde); border-radius: var(--bfc-radius, 4px) 0 0 var(--bfc-radius, 4px); }

    .bfc-hd .bf-menu-w__list--d0 > .bf-menu-w__item > a { padding: 12px 12px 11px; font-size: 14.5px; }
    .bfc-hd .bf-menu-w__list--d0 > .bf-menu-w__item:first-child > a { padding-left: 0; }
}

/* layout:bf-community/side 0.1.0 */
/* 커뮤니티 오른쪽 사이드 레이아웃 */
.bfc-body.bf-body--side { gap: var(--bfc-body-gap, 24px); padding-top: 24px; padding-bottom: 64px; }
.bfc-side .bf-area { --bf-gap: 16px; }
.bfc-side .bf-row + .bf-row { margin-top: 16px; }

@media (max-width: 1024px) {
    .bfc-body.bf-body--side { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 768px) {
    .bfc-body.bf-body--side { padding-top: 16px; padding-bottom: 40px; }
    .bfc-body--m-noside .bfc-side { display: none; }
}

/* widget:bf-community/notice-ticker 0.1.0 */
.bfc-notice { display: flex; align-items: center; gap: 10px; min-width: 0; }
.bfc-notice__label { flex-shrink: 0; padding: 1px 7px; border: 1px solid var(--bfc-primary-line, #aad6f2); border-radius: 3px; color: var(--bfc-primary, #3e9fde); font-size: 10.5px; font-weight: 800; letter-spacing: .04em; line-height: 16px; }
.bfc-notice__list { position: relative; flex: 1; min-width: 0; height: 20px; margin: 0; padding: 0; list-style: none; overflow: hidden; }
.bfc-notice__list li { position: absolute; inset: 0; opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s; pointer-events: none; }
.bfc-notice__list li.is-on { opacity: 1; transform: none; pointer-events: auto; }
.bfc-notice__list a { display: block; overflow: hidden; color: inherit; line-height: 20px; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.bfc-notice__list a:hover { color: var(--bfc-primary, #3e9fde); }

/* widget:bf-community/quick-icons 0.1.0 */
.bfc-quick { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.bfc-quick a { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 46px; padding: 4px 4px; color: var(--bfc-ink-2, #52525b); text-decoration: none; }
.bfc-quick a:hover { color: var(--bfc-primary, #3e9fde); }
.bfc-quick__icon { position: relative; display: inline-flex; font-size: 21px; line-height: 1; }
.bfc-quick__badge { position: absolute; top: -6px; right: -9px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--bfc-point, #ff6b5b); color: #fff; font-size: 10px; font-weight: 700; line-height: 16px; text-align: center; box-sizing: border-box; }
.bfc-quick__label { font-size: 11px; letter-spacing: -0.02em; }

@media (max-width: 768px) {
    .bfc-quick { gap: 0; }
    .bfc-quick a { min-width: 38px; padding: 4px 2px; }
    .bfc-quick__label { display: none; }
    .bfc-quick__icon { font-size: 22px; }
}

/* widget:bf-community/sitemap 0.1.0 */
.bfc-sitemap { display: grid; grid-template-columns: repeat(var(--bfc-sitemap-cols, 7), minmax(0, 1fr)); gap: 24px 16px; }
.bfc-sitemap__head { display: block; margin-bottom: 14px; color: var(--bfc-ink, #27272a); font-size: 14px; font-weight: 800; text-decoration: none; }
.bfc-sitemap__list { margin: 0; padding: 0; list-style: none; }
.bfc-sitemap__list li + li { margin-top: 9px; }
.bfc-sitemap__list a { color: var(--bfc-muted, #6e6e77); font-size: 13px; text-decoration: none; }
.bfc-sitemap a:hover { color: var(--bfc-primary, #3e9fde); }
.bfc-sitemap__empty { color: var(--bfc-muted, #6e6e77); font-size: 13px; }

@media (max-width: 1024px) {
    .bfc-sitemap { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
    .bfc-sitemap { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
}

/* widget:bf/member-links 1.0.0 */
.bf-member-w { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: .8125rem; }
.bf-member-w a { display: inline-flex; align-items: center; gap: 4px; color: var(--bf-color-muted); text-decoration: none; white-space: nowrap; }
.bf-member-w a:hover, .bf-member-w a:focus { color: var(--bf-color-primary); }
/* 모바일: 글자는 숨기고(스크린리더용으로 남김) 아이콘만 한 줄로 촘촘하게 */
@media (max-width: 768px) {
    .bf-member-w { flex-wrap: nowrap; gap: 10px; }
    .bf-member-w span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .bf-member-w .bf-icon { font-size: 20px; }
}

/* widget:bf/menu 1.0.1 */
.bf-menu-w__list { list-style: none; margin: 0; padding: 0; }
.bf-menu-w__item { position: relative; }
.bf-menu-w__item > a { display: flex; align-items: center; gap: 6px; padding: 10px 14px; color: var(--bf-color-text); font-weight: 600; text-decoration: none; border-radius: var(--bf-radius); white-space: nowrap; }
.bf-menu-w__item > a:hover, .bf-menu-w__item > a:focus, .bf-menu-w__item.is-current > a { color: var(--bf-color-primary); }
.bf-menu-w__caret { opacity: .55; }
.bf-menu-w__toggle { display: none; padding: 6px; border: 0; background: transparent; color: var(--bf-color-text); font-size: 26px; line-height: 1; cursor: pointer; }
.bf-menu-w__empty { color: var(--bf-color-muted); font-size: .9rem; }

/* 가로 메뉴 */
.bf-menu-w--horizontal .bf-menu-w__list--d0 { display: flex; flex-wrap: wrap; gap: 2px; }
.bf-menu-w--horizontal.bf-text-center .bf-menu-w__list--d0 { justify-content: center; }
.bf-menu-w--horizontal.bf-text-right .bf-menu-w__list--d0 { justify-content: flex-end; }
.bf-menu-w--horizontal .bf-menu-w__list--d1 { display: none; position: absolute; left: 0; top: 100%; z-index: 50; min-width: 190px; padding: 6px; background: var(--bf-color-bg); border: 1px solid var(--bf-color-border); border-radius: var(--bf-radius); box-shadow: 0 10px 30px rgba(0, 0, 0, .08); text-align: left; }
.bf-menu-w--horizontal .bf-menu-w__item:hover > .bf-menu-w__list--d1,
.bf-menu-w--horizontal .bf-menu-w__item:focus-within > .bf-menu-w__list--d1 { display: block; }
.bf-menu-w--horizontal .bf-menu-w__list--d1 a { padding: 8px 10px; font-weight: 500; }
.bf-menu-w--horizontal .bf-menu-w__list--d1 a:hover { background: var(--bf-color-bg-soft); }

/* 세로 메뉴 */
.bf-menu-w--vertical .bf-menu-w__item > a { padding: 9px 10px; }
.bf-menu-w--vertical .bf-menu-w__list--d1 { padding-left: 14px; }
.bf-menu-w--vertical .bf-menu-w__list--d1 a { font-weight: 500; }

@media (max-width: 768px) {
    .bf-menu-w--m-scroll .bf-menu-w__list--d0 { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
    .bf-menu-w--m-scroll .bf-menu-w__list--d0::-webkit-scrollbar { display: none; }
    .bf-menu-w--m-scroll .bf-menu-w__list--d1 { display: none !important; }

    .bf-menu-w--m-stack .bf-menu-w__list--d0,
    .bf-menu-w--m-toggle .bf-menu-w__list--d0 { flex-direction: column; flex-wrap: nowrap; }
    .bf-menu-w--m-stack .bf-menu-w__list--d1,
    .bf-menu-w--m-toggle .bf-menu-w__list--d1 { display: block; position: static; padding: 0 0 0 14px; border: 0; box-shadow: none; }

    .bf-menu-w--m-toggle { text-align: right; }
    .bf-menu-w--m-toggle .bf-menu-w__toggle { display: inline-flex; }
    .bf-menu-w--m-toggle .bf-menu-w__panel { display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: 90; padding: 10px 16px 18px; background: var(--bf-color-bg); border-bottom: 1px solid var(--bf-color-border); box-shadow: 0 10px 20px rgba(0, 0, 0, .06); text-align: left; }
    .bf-menu-w--m-toggle .bf-menu-w__panel.is-open { display: block; }
}

/* widget:bf/search 1.3.1 */
.bf-search-w { position: relative; display: flex; align-items: center; width: 100%; border: 1px solid var(--bf-color-border); border-radius: 999px; background: var(--bf-color-bg); }
.bf-search-w:focus-within { border-color: var(--bf-color-primary); }
.bf-search-w__input { flex: 1; min-width: 0; height: 40px; padding: 0 16px; border: 0; border-radius: 999px 0 0 999px; background: transparent; font-size: .95rem; outline: none; }
.bf-search-w__btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 40px; border: 0; border-radius: 0 999px 999px 0; background: transparent; color: var(--bf-color-muted); font-size: 20px; cursor: pointer; }
.bf-search-w__btn:hover { color: var(--bf-color-primary); }

/* 펼침 목록 (실시간 인기 검색어 등) */
.bf-suggest { position: absolute; z-index: 60; top: calc(100% + 6px); left: 0; right: 0; min-width: 260px; padding: 6px 0; border: 1px solid var(--bf-color-border, #e5e7eb); border-radius: 4px; background: var(--bf-color-bg, #fff); color: var(--bf-color-text, #1f2937); box-shadow: 0 10px 28px rgba(15, 23, 42, .12); text-align: left; }
.bf-suggest[hidden] { display: none; }
.bf-suggest__head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 6px 14px 8px; }
.bf-suggest__head strong { font-size: 13px; font-weight: 800; }
.bf-suggest__head small { color: var(--bf-color-muted, #6b7280); font-size: 11.5px; }
.bf-suggest__list { margin: 0; padding: 0; list-style: none; }
.bf-suggest__item { display: flex; align-items: center; gap: 10px; padding: 7px 14px; color: inherit; font-size: 14px; text-decoration: none; }
.bf-suggest__item:hover, .bf-suggest__item.is-active { background: color-mix(in srgb, var(--bf-color-primary, #0ea5e9) 8%, transparent); }
.bf-suggest__n { flex: none; width: 18px; color: var(--bf-color-muted, #6b7280); font-size: 13px; font-weight: 700; text-align: center; }
.bf-suggest__n.is-top { color: var(--bf-color-primary, #0ea5e9); }
.bf-suggest__word { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bf-suggest__ch { flex: none; color: var(--bf-color-muted, #9ca3af); font-size: 11px; font-weight: 700; }
.bf-suggest__ch.is-new { color: #10b981; }
.bf-suggest__ch.is-up { color: #ef4444; }
.bf-suggest__ch.is-down { color: #3b82f6; }

/* 검색창 안 왼쪽: 실시간 인기 검색어가 몇 초마다 위로 넘어간다 (누르면 그 검색어로 검색) */
.bf-search-w__ticker { position: relative; flex: none; display: flex; align-items: center; gap: 8px; width: 180px; height: 40px; padding: 0 12px 0 16px; overflow: hidden; }
.bf-search-w__ticker::after { content: ""; position: absolute; top: 25%; right: 0; bottom: 25%; width: 1px; background: var(--bf-color-border, #e5e7eb); }
.bf-search-w__ticker-label { flex: none; padding: 1px 5px; border-radius: 2px; background: color-mix(in srgb, var(--bf-color-primary, #0ea5e9) 12%, transparent); color: var(--bf-color-primary, #0ea5e9); font-size: 11px; font-weight: 800; line-height: 1.5; }
.bf-search-w__ticker-list { position: relative; flex: 1; min-width: 0; height: 100%; margin: 0; padding: 0; list-style: none; }
.bf-search-w__ticker-list li { position: absolute; inset: 0; display: flex; align-items: center; transform: translateY(100%); opacity: 0; transition: transform .45s ease, opacity .45s ease; }
.bf-search-w__ticker-list li.is-on { transform: none; opacity: 1; }
.bf-search-w__ticker-list li.is-out { transform: translateY(-100%); opacity: 0; }
.bf-search-w__ticker-list li:first-child { transform: none; opacity: 1; }
.bf-search-w__ticker-list.is-ready li:first-child:not(.is-on) { transform: translateY(100%); opacity: 0; }
.bf-search-w__ticker-list.is-ready li.is-out:first-child { transform: translateY(-100%); }
.bf-search-w__ticker a { display: flex; align-items: center; gap: 6px; min-width: 0; width: 100%; color: inherit; font-size: 13.5px; text-decoration: none; }
.bf-search-w__ticker a:hover span { text-decoration: underline; }
.bf-search-w__ticker b { flex: none; color: var(--bf-color-primary, #0ea5e9); font-weight: 800; }
.bf-search-w__ticker span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bf-search-w__ticker em { flex: none; font-size: 9px; font-style: normal; font-weight: 800; }
.bf-search-w__ticker em.is-new { color: #10b981; }
.bf-search-w__ticker em.is-up { color: #ef4444; }
.bf-search-w__ticker em.is-down { color: #3b82f6; }
@media (prefers-reduced-motion: reduce) {
    .bf-search-w__ticker-list li { transition: none; }
}
/* 좁은 화면에서는 검색어 칸을 넓게 쓰도록 숨긴다 */
@media (max-width: 768px) {
    .bf-search-w__ticker { display: none; }
}

/* widget:bf/site-logo 1.1.0 */
.bf-logo-w { margin: 0; font-size: inherit; line-height: 1; min-width: 0; }
.bf-logo-w__link { display: inline-flex; align-items: center; max-width: 100%; color: var(--bf-color-text); text-decoration: none; }
.bf-logo-w__link img { width: auto; max-width: 100%; vertical-align: middle; }
/* 어두운 화면용 로고: 테마가 어두운 화면일 때 html 에 data-bf-dark 또는 자기 표시를 붙이고 바꿔 보여 준다 */
.bf-logo-w__img--dark { display: none; }
html[data-bf-dark] .bf-logo-w__img--light { display: none; }
html[data-bf-dark] .bf-logo-w__img--dark { display: inline; }
.bf-logo-w__text { font-size: var(--bf-logo-fs, 22px); font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 모바일: 긴 사이트 이름이 옆 메뉴 버튼을 가리지 않도록 줄이고 말줄임 */
@media (max-width: 768px) {
    .bf-logo-w__text { font-size: min(var(--bf-logo-fs, 22px), 18px); }
}

