/* block:bf-feed/me 0.1.0 */
/* 내 정보 카드 */
.bff-me-card { padding: 22px; border-radius: var(--bfc-card-r, 24px); background: var(--bfc-surface, #fff); color: var(--bfc-ink, #16181d); }
.bff-me-card__top { display: flex; align-items: center; gap: 12px; }
.bff-me-card__face { display: inline-flex; width: 56px; height: 56px; overflow: hidden; border-radius: 50%; background: var(--bfc-chip-2, #ececee); flex-shrink: 0; }
.bff-me-card__face img { width: 100%; height: 100%; object-fit: cover; }
.bff-me-card__who { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.bff-me-card__name { overflow: hidden; font-size: 18px; font-weight: 800; letter-spacing: -0.02em; text-overflow: ellipsis; white-space: nowrap; }
.bff-me-card__level { display: inline-flex; align-items: center; gap: 6px; color: var(--bfc-muted, #60606b); font-size: 13.5px; font-weight: 600; }
.bff-me-card__icon { display: inline-flex; }
.bff-me-card__icon :is(svg, img) { width: 20px; height: 20px; }
.bff-me-card__lv { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; background: var(--bfc-solid, #16181d); color: var(--bfc-on-solid, #fff); font-size: 11.5px; font-weight: 800; }
.bff-me-card__set { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--bfc-chip, #f4f4f5); color: var(--bfc-ink-2, #3f3f46); font-size: 18px; }
.bff-me-card__set:hover { background: var(--bfc-chip-2, #ececee); color: var(--bfc-ink, #16181d); }
.bff-me-card__bar { height: 8px; margin-top: 18px; overflow: hidden; border-radius: 4px; background: var(--bfc-chip-2, #ececee); }
.bff-me-card__bar span { display: block; height: 100%; border-radius: 4px; background: var(--bfc-primary, #2f5bff); }
.bff-me-card__next { margin: 8px 0 0; color: var(--bfc-muted, #60606b); font-size: 13px; }
.bff-me-card__point { display: flex; align-items: center; gap: 8px; margin-top: 16px; padding: 12px 14px; border-radius: 16px; background: var(--bfc-chip, #f4f4f5); color: var(--bfc-ink-2, #3f3f46); font-size: 14px; text-decoration: none; }
.bff-me-card__point strong { margin-left: auto; color: var(--bfc-ink, #16181d); font-weight: 800; }
.bff-me-card__point:hover { background: var(--bfc-chip-2, #ececee); }
.bff-me-card__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.bff-me-card__btns .bff-act { position: relative; padding: 0 10px; }
.bff-me-card__btns .bff-act[hidden] { display: none; }
.bff-me-card__count { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--bfc-point, #e5484d); color: #fff; font-size: 11px; font-weight: 800; line-height: 18px; box-sizing: border-box; }
.bff-me-card__count[hidden] { display: none; }
.bff-me-card__foot { display: flex; justify-content: flex-end; gap: 14px; margin-top: 14px; font-size: 13px; }
.bff-me-card__foot a { color: var(--bfc-muted, #60606b); text-decoration: none; }
.bff-me-card__foot a:hover { color: var(--bfc-ink, #16181d); text-decoration: underline; }
.bff-me-card.is-guest .bff-me-card__hello { margin: 0; color: var(--bfc-ink, #16181d); font-size: 16px; font-weight: 700; line-height: 1.5; word-break: keep-all; overflow-wrap: anywhere; text-wrap: pretty; }
.bff-me-card.is-guest .bff-me-card__btns { margin-top: 16px; }

/* block:bf-feed/members 0.1.0 */
/* 활동 회원 */
.bff-members__list { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.bff-members__list li { display: flex; align-items: center; gap: 12px; }
.bff-members__ava { position: relative; width: 40px; height: 40px; overflow: visible; }
.bff-members__ava img { border-radius: 50%; }
.bff-members__on { position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px; border: 2px solid var(--bfc-surface, #fff); border-radius: 50%; background: var(--bfc-accent, #2f9e6b); }
.bff-members__who { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.bff-members__name { overflow: hidden; color: var(--bfc-ink, #16181d); font-size: 15px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.bff-members__name a { color: inherit; text-decoration: none; }
.bff-members__count { color: var(--bfc-muted, #60606b); font-size: 12.5px; }
.bff-members__home { display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border-radius: 17px; background: var(--bfc-chip, #f4f4f5); color: var(--bfc-ink-2, #3f3f46); font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.bff-members__home:hover { background: var(--bfc-chip-2, #ececee); color: var(--bfc-ink, #16181d); }

/* block:bf-feed/ranking 0.3.0 */
/* 인기 글 순위: 큰 번호 01 ~ 05, 1~3위는 먹색 번호 */
.bfc-rank__list { margin: 0; padding: 0; list-style: none; counter-reset: none; }
.bfc-rank__list > li > a, .bfc-rank__row { display: flex; align-items: center; gap: 12px; padding: 9px 0; color: var(--bfc-ink, #16181d); font-size: 15px; text-decoration: none; }
.bfc-rank__list > li + li { border-top: 1px solid var(--bfc-line-soft, #f4f4f5); }
.bfc-rank__list > li > a:hover .bfc-rank__text { text-decoration: underline; text-underline-offset: 3px; }
.bfc-rank__no { flex-shrink: 0; width: 26px; color: var(--bfc-faint, #6b6b75); font-size: 17px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.bfc-rank__no.is-top { color: var(--bfc-ink, #16181d); }
.bfc-rank__text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.bfc-rank__list > li > a > em { display: inline-flex; align-items: center; gap: 3px; flex-shrink: 0; color: var(--bfc-muted, #60606b); font-size: 12.5px; font-style: normal; font-weight: 600; }
.bfc-rank__list > li > a > em .bf-icon { font-size: 14px; }
/* 회원 이름(사이드뷰): 메뉴가 잘리지 않게 바깥은 그대로 두고 이름 글자만 줄인다 */
.bfc-rank__who { overflow: visible; }
.bfc-rank__who .sv_wrap { max-width: 100%; }
.bfc-rank__who .sv_member, .bfc-rank__who .sv_guest { display: inline-block; max-width: 100%; overflow: hidden; padding: 2px 0; margin: -2px 0; color: inherit; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; text-decoration: none; }
.bfc-rank__pt { flex-shrink: 0; color: var(--bfc-muted, #60606b); font-size: 13px; font-weight: 600; }

/* block:bf-feed/tags 0.1.0 */
/* 인기 태그: 회색 알약, 앞의 몇 개는 먹색 */
.bfc-tags__list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.bfc-tags__list a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 18px; background: var(--bfc-chip, #f4f4f5); color: var(--bfc-ink-2, #3f3f46); font-size: 14px; font-weight: 600; text-decoration: none; }
.bfc-tags__list a:hover { background: var(--bfc-chip-2, #ececee); color: var(--bfc-ink, #16181d); }
.bfc-tags__list a.is-accent { background: var(--bfc-solid, #16181d); color: var(--bfc-on-solid, #fff); }

/* block:bf-feed/writer 0.1.0 */
/* 글쓴이 카드 (글 보기 화면에서만) */
.bff-writer { display: flex; flex-direction: column; gap: 16px; }
.bff-writer__title { margin: 0; color: var(--bfc-muted, #60606b); font-size: 14px; font-weight: 700; }
.bff-writer__top { display: flex; align-items: center; gap: 12px; }
.bff-writer__face { display: inline-flex; width: 56px; height: 56px; overflow: hidden; border-radius: 50%; background: var(--bfc-chip-2, #ececee); flex-shrink: 0; }
.bff-writer__face img { width: 100%; height: 100%; object-fit: cover; }
.bff-writer__who { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bff-writer__name { display: inline-flex; align-items: center; gap: 6px; overflow: hidden; color: var(--bfc-ink, #16181d); font-size: 17px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.bff-writer__icon { display: inline-flex; }
.bff-writer__icon :is(svg, img) { width: 18px; height: 18px; }
.bff-writer__count { color: var(--bfc-muted, #60606b); font-size: 14px; }
.bff-writer__btns { display: flex; gap: 8px; }
.bff-writer__btns .bff-act { flex: 1; justify-content: center; padding: 0 10px; }

/* footer:bf-feed/sitemap 0.1.0 */
/* 피드 바닥: 회색 바탕 위 둥근 카드 두 장 — 먹색 가입 안내 · 흰 카드(전체 메뉴 + 고객센터 + 회사 정보) */
.bff-ft { display: flex; flex-direction: column; gap: 16px; padding-top: 8px; padding-bottom: 32px; color: var(--bfc-muted, #60606b); font-size: 13px; }

/* 가입 안내 (먹색 카드) */
.bff-ft .bfc-ft__cta { border-radius: var(--bfc-card-r, 24px); background: #16181d; color: #fff; }
html[data-bfc-theme="dark"] .bff-ft .bfc-ft__cta { background: #222227; }
.bfc-ft__cta-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 36px 40px; }
.bfc-ft__cta-label { margin: 0 0 8px; color: #c4c4cc; font-size: 13px; font-weight: 600; }
.bfc-ft__cta-title { margin: 0; color: #fff; font-size: 26px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.35; }
.bfc-ft__cta-text { margin: 10px 0 0; color: #c4c4cc; font-size: 14.5px; }
.bfc-ft__cta-btns { display: flex; flex-wrap: wrap; gap: 8px; flex-shrink: 0; }
.bfc-ft__btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px; border-radius: 22px; font-size: 14.5px; font-weight: 700; text-decoration: none; }
.bff-ft .bfc-ft__btn--light { background: #fff; color: #16181d; }
.bff-ft .bfc-ft__btn--light:hover { background: #ececee; color: #16181d; }
.bfc-ft__btn--ghost { background: rgba(255, 255, 255, .12); color: #fff; }
.bfc-ft__btn--ghost:hover { background: rgba(255, 255, 255, .2); color: #fff; }

/* 흰 카드 */
.bff-ft__card { border-radius: var(--bfc-card-r, 24px); background: var(--bfc-surface, #fff); }
.bfc-ft__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 32px 40px; }
.bfc-ft__grid.has-support { grid-template-columns: minmax(0, 1fr) 280px; }
.bfc-ft__support { align-self: start; padding: 20px; border-radius: 20px; background: var(--bfc-chip, #f4f4f5); }
.bfc-ft__support-title { margin: 0 0 8px; color: var(--bfc-ink, #16181d); font-size: 15px; font-weight: 800; }
.bfc-ft__support-text { margin: 0 0 14px; line-height: 1.6; font-size: 13px; }
.bfc-ft__support-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bfc-ft__sbtn { display: flex; align-items: center; justify-content: center; min-height: 40px; border-radius: 20px; background: var(--bfc-surface, #fff); color: var(--bfc-ink, #16181d); font-weight: 700; text-decoration: none; }
.bfc-ft__sbtn:hover { background: var(--bfc-solid, #16181d); color: var(--bfc-on-solid, #fff); }

.bfc-ft__bottom { border-top: 1px solid var(--bfc-line-soft, #f4f4f5); }
.bfc-ft__bottom-row { display: flex; gap: 32px; align-items: flex-start; padding: 24px 40px 30px; }
.bfc-ft__logo { flex-shrink: 0; min-width: 120px; }
.bfc-ft__logo .bf-logo-w__text { display: inline-flex; align-items: center; gap: 8px; color: var(--bfc-ink, #16181d); font-weight: 800; }
.bfc-ft__logo .bf-logo-w__text::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--bfc-primary, #2f5bff); }
.bfc-ft__logo a { text-decoration: none; }
.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, #16181d); text-decoration: none; }
.bfc-ft__links a:hover { text-decoration: underline; }
.bfc-ft__copy { margin-top: 6px; color: var(--bfc-faint, #6b6b75); }
.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) {
    .bff-ft { gap: 12px; padding-bottom: 20px; }
    .bfc-ft__cta-row { flex-direction: column; align-items: flex-start; padding: 24px 20px; }
    .bfc-ft__cta-title { font-size: 21px; }
    .bfc-ft__cta-btns { width: 100%; }
    .bfc-ft__btn { flex: 1; padding: 0 14px; }
    .bfc-ft__grid { gap: 24px; padding: 24px 20px; }
    .bfc-ft__bottom-row { flex-direction: column; gap: 12px; padding: 20px 20px 24px; }
}

/* header:bf-feed/float 0.1.0 */
/*
 * 피드 테마 머리: 회색 바탕 위에 떠 있는 흰 둥근 막대 하나
 * 로고(대표 색 점 + 이름) · 주메뉴 알약(지금 위치는 먹색) · 광고 메뉴 · 회색 알약 검색창 · 둥근 단추(다크 · 메신저 · 아이콘 메뉴)
 * 휴대폰: 주메뉴 대신 아래 고정 막대(.bff-tabbar)와 전체 메뉴 창
 */
.bf-region--header:has(> .bff-hd), .bf-region--header:has(.bff-hd) { background: transparent; }
.bf-region--header.is-stuck:has(.bff-hd) { box-shadow: none; }
.bff-hd { color: var(--bfc-ink, #16181d); }
.bff-hd__wrap { padding-top: 16px; padding-bottom: 4px; }
.bff-hd__bar { display: flex; align-items: center; gap: 14px; min-height: 68px; padding: 0 12px 0 24px; border-radius: 34px; background: var(--bfc-surface, #fff); box-sizing: border-box; transition: box-shadow .2s; }
.bf-region--header.is-stuck .bff-hd__bar { box-shadow: 0 8px 28px rgba(22, 24, 29, .10); }
html[data-bfc-theme="dark"] .bf-region--header.is-stuck .bff-hd__bar { box-shadow: 0 8px 28px rgba(0, 0, 0, .5); }

/* 로고: 그림이 없으면 대표 색 점 + 굵은 이름 */
.bff-hd__logo { flex-shrink: 0; min-width: 0; }
.bff-hd__logo .bf-logo-w { margin: 0; font-size: inherit; }
.bff-hd__logo .bf-logo-w__link { display: inline-flex; align-items: center; color: inherit; text-decoration: none; }
.bff-hd__logo .bf-logo-w__text { display: inline-flex; align-items: center; gap: 8px; font-size: var(--bf-logo-fs, 20px); font-weight: 800; letter-spacing: -.03em; white-space: nowrap; }
.bff-hd__logo .bf-logo-w__text::before, .bfc-drawer__logo .bf-logo-w__text::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--bfc-primary, #2f5bff); flex-shrink: 0; }
.bfc-drawer__logo .bf-logo-w__text { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; }

/* 주메뉴: 알약 단추, 지금 위치는 먹색 바탕 · 흰 글자 */
.bff-hd__nav { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.bff-hd .bfc-hd__menu { flex: 0 1 auto; min-width: 0; }
.bff-hd .bf-menu-w--horizontal .bf-menu-w__list--d0 { flex-wrap: nowrap; gap: 4px; }
.bff-hd .bf-menu-w__list--d0 > .bf-menu-w__item > a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: 20px; color: var(--bfm-color, var(--bfc-ink-2, #3f3f46)); font-size: 15px; font-weight: 600; white-space: nowrap; transition: background-color .15s, color .15s; }
.bff-hd .bf-menu-w__list--d0 > .bf-menu-w__item > a:hover { background: var(--bfc-chip, #f4f4f5); color: var(--bfm-hover, var(--bfc-ink, #16181d)); }
.bff-hd .bf-menu-w__list--d0 > .bf-menu-w__item.is-current > a,
.bff-hd .bf-menu-w__list--d0 > .bf-menu-w__item:has(.is-current) > a { background: var(--bfc-solid, #16181d); color: var(--bfc-on-solid, #fff); font-weight: 700; }
.bff-hd .bf-menu-w__caret { display: none; }
.bff-hd .bf-menu-w--horizontal .bf-menu-w__list--d1 { min-width: 180px; margin-top: 6px; padding: 8px; border: 0; border-radius: 18px; background: var(--bfc-surface, #fff); box-shadow: var(--bfc-shadow-lg, 0 10px 30px rgba(22, 24, 29, .12)); }
.bff-hd .bf-menu-w--horizontal .bf-menu-w__list--d1 a { padding: 10px 14px; border-radius: 12px; color: var(--bfm-color, var(--bfc-ink-2, #3f3f46)); font-size: 14.5px; font-weight: 500; }
.bff-hd .bf-menu-w--horizontal .bf-menu-w__list--d1 a:hover { background: var(--bfm-sub-hover, var(--bfc-chip, #f4f4f5)); color: var(--bfm-hover, var(--bfc-ink, #16181d)); }
.bff-hd .bf-menu-w--horizontal .bf-menu-w__list--d1 .is-current > a { background: var(--bfc-chip, #f4f4f5); color: var(--bfc-ink, #16181d); font-weight: 700; }
.bff-hd .bf-menu-w__new { margin-left: 2px; }
.bff-hd .bfc-hd__ads { flex-shrink: 0; }
.bff-hd .bfc-hd__ads:not(:has(.bfc-adnav)) { display: none; }

/* 검색창: 회색 알약 */
.bff-hd__search { flex: 0 1 260px; min-width: 0; }
.bff-hd__wx { flex-shrink: 0; }
.bff-hd__wx:empty, .bff-hd__wx:not(:has(.bff-wx)), .bff-hd__wx:has(.bfwt-error) { display: none; }
@media (max-width: 1180px) { .bff-hd__wx { display: none; } }
.bff-hd .bf-search-w { align-items: center; height: 44px; padding: 0 4px 0 0; border: 0; border-radius: 22px; background: var(--bfsw-bg, var(--bfc-chip, #f4f4f5)); }
.bff-hd .bf-search-w__input { height: 100%; padding: 0 6px 0 18px; border: 0; background: transparent; color: var(--bfsw-text, var(--bfc-ink, #16181d)); font-size: 14.5px; }
.bff-hd .bf-search-w__input::placeholder { color: var(--bfsw-ph, var(--bfc-faint, #6b6b75)); }
.bff-hd .bf-search-w__btn { width: 38px; height: 38px; border-radius: 50%; background: transparent; color: var(--bfsw-icon, var(--bfc-ink-2, #3f3f46)); font-size: 19px; }
.bff-hd .bf-search-w__btn:hover { background: var(--bfc-surface, #fff); color: var(--bfc-ink, #16181d); }
.bff-hd .bf-search-w__ticker { display: none; }

/* 오른쪽 둥근 단추 */
.bff-hd__right { display: flex; align-items: center; gap: 6px; flex-shrink: 0; margin-left: auto; }
.bff-hd__btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--bfc-chip, #f4f4f5); color: var(--bfc-ink, #16181d); font-size: 20px; line-height: 1; cursor: pointer; transition: background-color .15s; }
.bff-hd__btn:hover { background: var(--bfc-chip-2, #ececee); color: var(--bfc-ink, #16181d); }
.bff-hd__btn[hidden] { display: none !important; }
.bff-hd__btn .bf-icon { font-size: 20px; }
.bff-hd__search-btn, .bff-hd__menu-btn { display: none; }
.bff-hd__count, .bff-tabbar__count { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border: 2px solid var(--bfc-surface, #fff); border-radius: 10px; background: var(--bfc-point, #e5484d); color: #fff; font-size: 10.5px; font-weight: 800; line-height: 14px; text-align: center; box-sizing: border-box; }
.bff-hd__count[hidden], .bff-tabbar__count[hidden] { display: none; }

/* 공지 한 줄 (설정에서 켤 때): 막대 아래 작은 줄 */
.bff-hd__notice { margin-top: 8px; padding: 0 20px; font-size: 13px; color: var(--bfc-muted, #60606b); }

/* 넓은 화면이 아니면 검색창은 단추로 */
@media (max-width: 1180px) {
    .bff-hd__search { display: none; flex-basis: auto; }
    .bff-hd__search-btn { display: inline-flex; }
    .bff-hd.is-search-open .bff-hd__bar { flex-wrap: wrap; padding-bottom: 12px; }
    .bff-hd.is-search-open .bff-hd__search { display: block; order: 9; flex: 1 1 100%; }
}

@media (max-width: 1024px) {
    .bff-hd__bar { gap: 10px; padding-left: 20px; }
    .bff-hd .bf-menu-w__list--d0 > .bf-menu-w__item > a { padding: 0 12px; font-size: 14.5px; }
    .bff-hd .bfc-hd__menu { overflow-x: auto; scrollbar-width: none; }
    .bff-hd .bfc-hd__menu::-webkit-scrollbar { display: none; }
}

/* 휴대폰: 막대는 로고 · 검색 · 아이콘 메뉴만, 주메뉴는 전체 메뉴 창으로 */
@media (max-width: 768px) {
    .bff-hd__wrap { padding-top: 8px; padding-bottom: 0; }
    .bff-hd__bar { min-height: 56px; gap: 4px; padding: 0 4px 0 8px; border-radius: 0; background: transparent; }
    .bf-region--header.is-stuck .bff-hd__bar { box-shadow: none; }
    .bf-region--header.is-stuck:has(.bff-hd) { background: var(--bfc-page, #f7f7f8); }
    .bff-hd__nav { display: none; }
    .bff-hd__btn { background: var(--bfc-surface, #fff); }
    .bff-hd .bfc-dark-btn.bff-hd__btn, .bff-hd__msg { display: none !important; }
    .bff-hd__menu-btn { display: inline-flex; }
    .bff-hd.has-tabbar .bff-hd__menu-btn { display: none; }
    .bff-hd.is-search-open .bff-hd__bar { padding-bottom: 8px; }
    .bff-hd .bf-search-w { background: var(--bfsw-bg, var(--bfc-surface, #fff)); }
    .bff-hd__notice { display: none; }
}

/* ---------- 휴대폰 아래 고정 막대 ---------- */
.bff-tabbar { display: none; }

@media (max-width: 768px) {
    html:has(.bff-tabbar) { --bfc-tabbar-h: 88px; }
    .bf-site:has(.bff-tabbar) { padding-bottom: var(--bfc-tabbar-h); }
    .bff-tabbar { position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 8000; display: flex; align-items: center; gap: 4px; padding: 8px; border-radius: 36px; background: #16181d; box-shadow: 0 10px 30px rgba(22, 24, 29, .25); transform: translateX(-50%); }
    html[data-bfc-theme="dark"] .bff-tabbar { background: #26262b; box-shadow: 0 10px 30px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 255, 255, .06); }
    .bff-tabbar__item { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; padding: 0; border: 0; border-radius: 50%; background: none; color: #c4c4cc; font: inherit; font-size: 22px; line-height: 1; text-decoration: none; cursor: pointer; }
    .bff-tabbar__item .bf-icon { font-size: 22px; }
    .bff-tabbar__item:hover, .bff-tabbar__item:focus-visible { color: #fff; }
    .bff-tabbar__item.is-on { background: #fff; color: #16181d; }
    .bff-tabbar__write { background: var(--bfc-primary, #2f5bff); color: #fff; }
    .bff-tabbar__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .bff-tabbar__new, .bff-tabbar__msg { display: inline-flex; align-items: center; justify-content: center; }
    .bff-tabbar__msg { display: none; }
    html.bff-msg-on .bff-tabbar__new { display: none; }
    html.bff-msg-on .bff-tabbar__msg { display: inline-flex; }
    .bff-tabbar__count { top: 4px; right: 2px; border-color: #16181d; }
    .bff-tabbar__me { display: inline-flex; width: 30px; height: 30px; overflow: hidden; border-radius: 50%; background: #3a3a42; }
    .bff-tabbar__me img { width: 100%; height: 100%; object-fit: cover; }
    .bff-tabbar__item.is-on .bff-tabbar__me { box-shadow: 0 0 0 2px #16181d; }

    /* 아래 막대와 겹치지 않게: 앱 안내 띠는 막대 위로, 메신저 떠 있는 단추는 막대 안 메신저 칸이 대신한다 */
    html:has(.bff-tabbar) .bf-app-banner { bottom: calc(var(--bfc-tabbar-h) + 10px + env(safe-area-inset-bottom, 0px)); }
    html.bff-msg-on:has(.bff-tabbar) .bfmsg-float { display: none; }
    /* 메신저 기능이 없을 때 남는 다른 떠 있는 단추(맨 위로 등)도 막대 위로 */
    html:has(.bff-tabbar) .bfmsg-float { bottom: calc(var(--bfc-tabbar-h) + 10px + env(safe-area-inset-bottom, 0px)); }
}

@media print {
    .bff-tabbar, .bff-hd__right { display: none !important; }
}

/* ---------- 휴대폰 전체 메뉴 (오른쪽에서 열리는 창) ---------- */
.bfc-drawer { position: fixed; inset: 0; z-index: 10000; }
/* 창을 body 로 옮겨 띄우므로 사이트 영역(.bf-site)의 글꼴이 닿지 않는다 → 같은 글꼴을 직접 건다 */
.bfc-drawer, .bfc-drawer :is(button, input, select, textarea) { font-family: var(--bf-font, inherit); }
.bfc-drawer[hidden] { display: none; }
.bfc-drawer__backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .45); opacity: 0; transition: opacity .2s; }
.bfc-drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; display: flex; flex-direction: column; width: min(88vw, 380px); background: var(--bfc-surface, #fff); color: var(--bfc-ink, #27272a); box-shadow: -10px 0 30px rgba(0, 0, 0, .18); transform: translateX(100%); transition: transform .22s ease; }
.bfc-drawer.is-open .bfc-drawer__backdrop { opacity: 1; }
.bfc-drawer.is-open .bfc-drawer__panel { transform: none; }
.bfc-drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-shrink: 0; height: 64px; padding: 0 10px 0 18px; border-bottom: 1px solid var(--bfc-line, #e6e6ea); }
.bfc-drawer__logo { min-width: 0; }
.bfc-drawer__logo img { max-height: 30px; width: auto; }
.bfc-drawer__close { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 0; background: none; color: var(--bfc-ink-2, #52525b); font-size: 26px; cursor: pointer; }
.bfc-drawer__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; }

/* 주메뉴: 1단은 굵은 줄 전체가 펼침 단추, 2단은 옅은 바탕 */
.bfc-drawer__nav ul { margin: 0; padding: 0; list-style: none; }
.bfc-drawer__nav .bf-menu-w__list--d0 > li { border-bottom: 1px solid var(--bfc-line, #e6e6ea); }
.bfc-drawer__nav .bf-menu-w__list--d0 > li > a, .bfc-drawer__nav .bfc-drawer__top { position: relative; display: flex; align-items: center; width: 100%; min-height: 62px; padding: 0 48px 0 18px; border: 0; background: none; color: var(--bfc-ink, #27272a); font: inherit; font-size: 17px; font-weight: 800; letter-spacing: -.01em; text-align: left; text-decoration: none; cursor: pointer; }
.bfc-drawer__row { display: flex; align-items: center; }
.bfc-drawer__nav a { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; text-decoration: none; }
.bfc-drawer__nav .is-current > a, .bfc-drawer__nav .is-current > .bfc-drawer__row > a, .bfc-drawer__nav .is-current > .bfc-drawer__top { color: var(--bfc-primary, #3e9fde); }
.bfc-drawer__sub { position: relative; flex-shrink: 0; width: 48px; height: 44px; border: 0; background: none; cursor: pointer; }
.bfc-drawer__sub::before, .bfc-drawer__nav .bf-menu-w__list--d0 > li > a::after { content: ""; position: absolute; top: 0; bottom: 0; margin: auto; width: 20px; height: 20px; background: var(--bfc-faint, #a1a1aa); transition: transform .2s;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 13.172l4.95-4.95 1.414 1.414L12 16 5.636 9.636 7.05 8.222z'/%3E%3C/svg%3E") center / 20px no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 13.172l4.95-4.95 1.414 1.414L12 16 5.636 9.636 7.05 8.222z'/%3E%3C/svg%3E") center / 20px no-repeat; }
.bfc-drawer__sub::before { left: 0; right: 0; }
.bfc-drawer__nav .bfc-drawer__top::before { left: auto; right: 16px; }
/* 하위 메뉴 없는 1단은 오른쪽 화살표 */
.bfc-drawer__nav .bf-menu-w__list--d0 > li > a::after { right: 16px; transform: rotate(-90deg); }
.bfc-drawer li.is-open > .bfc-drawer__sub::before, .bfc-drawer li.is-open > .bfc-drawer__row .bfc-drawer__sub::before { transform: rotate(180deg); background: var(--bfc-primary, #3e9fde); }
/* 2단: 바탕색 없이 왼쪽 안내선 + 들여쓰기 (밝은 · 어두운 화면 모두 테마 색을 따른다) */
.bfc-drawer__nav .bf-menu-w__list--d1 { display: none; margin: -4px 14px 14px 26px; padding: 2px 0 2px 10px; border-left: 2px solid var(--bfc-line, #e6e6ea); }
.bfc-drawer__nav li.is-open > .bf-menu-w__list--d1 { display: block; }
.bfc-drawer__nav .bf-menu-w__list--d1 a { padding: 9px 12px; border-radius: 8px; color: var(--bfc-ink-2, #52525b); font-size: 15px; font-weight: 500; transition: background .15s, color .15s; }
.bfc-drawer__nav .bf-menu-w__list--d1 a:hover, .bfc-drawer__nav .bf-menu-w__list--d1 a:focus-visible { background: color-mix(in srgb, var(--bfc-ink, #27272a) 5%, transparent); color: var(--bfc-ink, #27272a); }
/* 지금 보는 화면: 대표 색 글자 + 옅은 대표 색 바탕 (마우스를 올린 줄과 구별) */
.bfc-drawer__nav .bf-menu-w__list--d1 .is-current > a, .bfc-drawer__nav .bf-menu-w__list--d1 .is-current > .bfc-drawer__row > a {
    background: color-mix(in srgb, var(--bfc-primary, #3e9fde) 11%, transparent); color: var(--bfc-primary, #3e9fde); font-weight: 700;
}
.bfc-drawer__nav .bf-menu-w__list--d2 { display: none; margin: 0 0 4px 12px; padding-left: 10px; border-left: 1px solid var(--bfc-line, #e6e6ea); }
.bfc-drawer__nav li.is-open > .bf-menu-w__list--d2 { display: block; }
.bfc-drawer__nav .bf-menu-w__list--d2 a { padding: 7px 12px; font-size: 14px; }
/* 1단 펼친 줄: 글자를 대표 색으로 */
.bfc-drawer__nav .bf-menu-w__list--d0 > li.is-open > .bfc-drawer__top { color: var(--bfc-primary, #3e9fde); }

/* 아래: 작은 링크 · 다크 모드 */
.bfc-drawer__foot { padding: 16px 18px calc(22px + env(safe-area-inset-bottom)); }
.bfc-drawer__links { display: flex; flex-wrap: wrap; align-items: center; margin: 0 0 16px; color: var(--bfc-muted, #6e6e77); font-size: 13.5px; }
.bfc-drawer__links a { color: inherit; text-decoration: none; }
.bfc-drawer__links a + a::before { content: ""; display: inline-block; width: 1px; height: 11px; margin: 0 10px; background: var(--bfc-line, #e6e6ea); vertical-align: -1px; }
.bfc-drawer__dark { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 48px; border: 1px solid var(--bfc-line, #e6e6ea); border-radius: var(--bfc-radius, 4px); background: var(--bfc-surface, #fff); color: var(--bfc-ink-2, #52525b); font: inherit; font-size: 15px; cursor: pointer; }
.bfc-drawer__dark .bfc-dark-btn__label { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
html.bfc-drawer-open { overflow: hidden; }

@media (max-width: 768px) {
    .bfc-hd__menu-btn { display: inline-flex; }
}
/* 주메뉴 줄 오른쪽 광고 메뉴 (광고 모듈이 넣을 때만 보인다) */
.bfc-hd__nav-row { display: flex; align-items: center; gap: 16px; }
.bfc-hd__menu { flex: 1; min-width: 0; }
.bfc-hd__ads { flex-shrink: 0; }
.bfc-hd__ads:not(:has(.bfc-adnav)) { display: none; }
.bfc-drawer__ads:not(:has(.bfc-adnav)) { display: none; }
.bfc-drawer__ads { padding: 16px 18px 0; }
.bfc-drawer__ads .bfc-adnav { flex-wrap: wrap; }
.bfc-drawer__ads .bfc-adnav a { height: 40px; padding: 0 16px; font-size: 14.5px; }

/* 피드 모양: 전체 메뉴 창도 둥근 모서리 · 회색 알약 */
.bfc-drawer__panel { border-radius: 28px 0 0 28px; }
.bfc-drawer__head { border-bottom: 0; }
.bfc-drawer__close { border-radius: 50%; background: var(--bfc-chip, #f4f4f5); width: 44px; height: 44px; font-size: 22px; }
.bfc-drawer__nav .bf-menu-w__list--d0 > li { border-bottom-color: var(--bfc-line-soft, #f4f4f5); }
.bfc-drawer__dark { border: 0; border-radius: 22px; background: var(--bfc-chip, #f4f4f5); color: var(--bfc-ink, #16181d); font-weight: 600; }
.bfc-drawer__ads:not(:has(.bfc-adnav)) { display: none; }
@media (max-width: 768px) {
    .bfc-drawer__links a { padding: 8px 0; }
}

/* layout:bf-feed/side 0.2.0 */
/* 피드 본문 + 오른쪽 칸 (넓은 화면 스킨도 이 간격을 함께 쓴다) */
.bfc-body.bff-body { padding-top: 16px; padding-bottom: 56px; }
.bfc-body.bf-body--side { gap: var(--bfc-body-gap, 24px); }
.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.bff-body { padding-top: 8px; padding-bottom: 32px; }
    .bfc-body--m-noside .bfc-side { display: none; }
}

/* widget:bf-feed/ad-links 0.1.0 */
/* 광고 메뉴 (주메뉴 줄 오른쪽 · 휴대폰 전체 메뉴 아래) */
.bfc-adnav { display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.bfc-adnav a { display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 12px; border: 1px solid var(--bfc-primary-line, rgba(62, 159, 222, .3)); border-radius: 999px; background: var(--bfc-primary-soft, rgba(62, 159, 222, .1)); color: var(--bfc-primary, #3e9fde); font-size: 13.5px; font-weight: 800; text-decoration: none; white-space: nowrap; transition: background-color .15s, color .15s; }
.bfc-adnav a .bf-icon { width: 1em; height: 1em; fill: currentColor; }
.bfc-adnav a:hover, .bfc-adnav a.is-on { background: var(--bfc-primary, #3e9fde); color: #fff; }

/* widget:bf-feed/drawer-account 0.1.1 */
/* 휴대폰 전체 메뉴 회원 칸 */
.bfc-acc { padding: 18px 18px 16px; background: color-mix(in srgb, var(--bfc-primary, #3e9fde) 6%, var(--bfc-surface, #fff)); }
.bfc-acc__hello { display: flex; align-items: center; gap: 6px; margin: 0 0 12px; color: var(--bfc-ink-2, #52525b); font-size: 14.5px; }
.bfc-acc__hello strong { color: var(--bfc-ink, #27272a); font-weight: 800; }
.bfc-acc__hello a { color: inherit; text-decoration: none; }
.bfc-acc__hello a:hover strong { color: var(--bfc-primary, #3e9fde); }
.bfc-acc__admin { display: inline-flex; align-items: center; gap: 3px; margin-left: auto; color: var(--bfc-muted, #6e6e77); font-size: 12.5px; text-decoration: none; }
.bfc-acc__main { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bfc-acc__main a:only-child { grid-column: 1 / -1; }
.bfc-acc__btn { display: flex; align-items: center; justify-content: center; height: 46px; border: 1px solid var(--bfc-line, #e6e6ea); border-radius: var(--bfc-radius, 4px); background: var(--bfc-surface, #fff); color: var(--bfc-primary, #3e9fde); font-size: 15px; font-weight: 700; text-decoration: none; }
.bfc-acc__btn.is-primary { border-color: var(--bfc-primary, #3e9fde); background: var(--bfc-primary, #3e9fde); color: #fff; }
.bfc-acc__small { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.bfc-acc__small a { position: relative; display: flex; align-items: center; justify-content: center; gap: 5px; height: 44px; 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: 14px; font-weight: 600; text-decoration: none; }
.bfc-acc__small a .bf-icon { color: var(--bfc-primary, #3e9fde); font-size: 16px; }
.bfc-acc__badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--bfc-point, #ff6b5b); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }

/* widget:bf-feed/quick-icons 0.2.0 */
/* 머리 오른쪽 둥근 단추 · 내 메뉴 (단추 모양은 머리 스킨의 .bff-hd__btn) */
.bff-quick { display: flex; align-items: center; gap: 6px; }
.bff-me { position: relative; }
.bff-me__face { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; overflow: hidden; border-radius: 50%; background: var(--bfc-chip-2, #ececee); cursor: pointer; list-style: none; }
.bff-me__face::-webkit-details-marker { display: none; }
.bff-me__face img { width: 100%; height: 100%; object-fit: cover; }
.bff-me[open] .bff-me__face, .bff-me__face:focus-visible { box-shadow: 0 0 0 3px var(--bfc-chip-3, #d9d9de); outline: none; }
.bff-me__panel { position: absolute; top: calc(100% + 10px); right: 0; z-index: 50; width: 220px; padding: 8px; border-radius: 20px; background: var(--bfc-surface, #fff); box-shadow: var(--bfc-shadow-lg, 0 10px 30px rgba(22, 24, 29, .12)); }
.bff-me__name { margin: 6px 10px 8px; color: var(--bfc-muted, #60606b); font-size: 13px; }
.bff-me__name strong { color: var(--bfc-ink, #16181d); font-size: 15px; }
.bff-me__panel ul { margin: 0; padding: 0; list-style: none; }
.bff-me__panel a { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 12px; border-radius: 12px; color: var(--bfc-ink-2, #3f3f46); font-size: 14.5px; text-decoration: none; }
.bff-me__panel a:hover, .bff-me__panel a:focus-visible { background: var(--bfc-chip, #f4f4f5); color: var(--bfc-ink, #16181d); outline: none; }
.bff-me__panel .bf-icon { font-size: 18px; color: var(--bfc-muted, #60606b); }
.bff-login { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 22px; background: var(--bfc-solid, #16181d); color: var(--bfc-on-solid, #fff); font-size: 14.5px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.bff-login:hover { color: var(--bfc-on-solid, #fff); opacity: .9; }

/* 휴대폰: 아래 막대에 내 정보 칸이 있으므로 회원 그림 · 로그인은 막대에서 뺀다 (아래 막대를 끈 머리는 그대로) */
@media (max-width: 768px) {
    .has-tabbar .bff-me, .has-tabbar .bff-login { display: none; }
    .bff-login { min-height: 40px; padding: 0 16px; }
}

/* widget:bf-feed/sitemap 0.1.2 */
.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-ink, #16181d); text-decoration: underline; }
.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-feed/weather-mini 0.1.0 */
/* 머리 작은 날씨: 날씨 모듈 한 줄 모양을 테두리 · 바탕 없이 줄이고 지역 이름 · 최저/최고 · 자료 표시는 숨긴다 (title 에 지역) */
.bff-wx { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 22px; color: var(--bfc-ink-2, #3f3f46); font-size: 14px; text-decoration: none; white-space: nowrap; }
a.bff-wx:hover { background: var(--bfc-chip, #f4f4f5); color: var(--bfc-ink, #16181d); }
.bff-wx .bfwt { --bfwt-bg: transparent; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; color: inherit; font-size: inherit; }
.bff-wx .bfwt__loading { min-height: 0; }
.bff-wx .bfwt__loading span { width: 14px; height: 14px; border-width: 2px; }
.bff-wx .bfwt-line { gap: 6px; }
.bff-wx .bfwt-line__i { font-size: 18px; }
.bff-wx .bfwt-line__t { order: 2; color: var(--bfc-ink, #16181d); font-size: 14px; font-weight: 700; letter-spacing: 0; }
.bff-wx .bfwt-line__txt { flex: none; order: 1; overflow: visible; color: inherit; font-size: 14px; }
.bff-wx .bfwt-line__name, .bff-wx .bfwt-line__txt small, .bff-wx .bfwt-foot, .bff-wx .bfwt-note, .bff-wx .bfwt-admin { display: none; }
/* 받지 못하면 칸째 숨긴다 (머리에는 안내를 띄우지 않음) */
.bff-wx:has(.bfwt-error) { display: none; }
@media (max-width: 1180px) { .bff-wx { display: none; } }

/* widget:bf/menu 1.4.0 */
.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(--bfm-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(--bfm-hover, var(--bf-color-primary)); }
.bf-menu-w__caret { opacity: .55; }
/* 새 글 표시: 최근 게시물 블록의 N 과 같은 모양 */
.bf-menu-w__new { display: inline-flex; align-items: center; justify-content: center; width: 15px; height: 15px; margin-left: -2px; border-radius: 50%; background: #ef4444; color: #fff; font-size: 9px; font-style: normal; font-weight: 700; line-height: 1; }
.bf-menu-w__toggle { display: none; padding: 6px; border: 0; background: transparent; color: var(--bfm-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,
.bf-menu-w--horizontal .bf-menu-w__item.is-open > .bf-menu-w__list--d1 { display: block; }
/* Esc 로 닫은 하위 메뉴: 마우스가 올라가 있거나 초점이 남아 있어도 닫힌 채로 둔다 (마우스를 떼거나 초점이 나가면 풀린다) */
.bf-menu-w--horizontal .bf-menu-w__item.is-closed > .bf-menu-w__list--d1 { display: none; }
.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, .bf-menu-w--horizontal .bf-menu-w__list--d1 a:focus-visible { background: var(--bfm-sub-hover, color-mix(in srgb, var(--bf-color-primary) 12%, var(--bf-color-bg))); }

/* 세로 메뉴 */
.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; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
    /* 펼친 메뉴 · 세로로 쌓은 메뉴: 누름 영역 44px */
    .bf-menu-w--m-toggle .bf-menu-w__item > a, .bf-menu-w--m-stack .bf-menu-w__item > a { min-height: 44px; box-sizing: border-box; }
    .bf-menu-w--m-scroll .bf-menu-w__item > a { min-height: 44px; box-sizing: border-box; }
    .bf-menu-w--horizontal .bf-menu-w__item.is-closed > .bf-menu-w__list--d1 { display: block; }
    .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; box-sizing: border-box; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
}

/* widget:bf/search 1.5.0 */
/* 입력 칸은 원래 넓이(글자 수 × 글자 크기)를 0 으로 두고 남은 자리만 채운다 — 휴대폰 글꼴 크기를 키우면 원래 넓이가 자리보다 커져 검색창이 화면 밖으로 나가던 문제 (삼성 인터넷) */
.bf-search-w { position: relative; display: flex; align-items: center; width: 100%; min-width: 0; box-sizing: border-box; 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; width: 0; 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; }
}

/* 1.4.0: 안내 문구 · 입력 글자 · 돋보기 색 (설정이 없으면 예전 그대로) */
.bf-search-w[style*="--bfsw-text"] .bf-search-w__input { color: var(--bfsw-text); }
.bf-search-w[style*="--bfsw-ph"] .bf-search-w__input::placeholder { color: var(--bfsw-ph); opacity: 1; }
.bf-search-w[style*="--bfsw-icon"] .bf-search-w__btn { color: var(--bfsw-icon); }
/* 1.5.0: 검색창 바탕색 · 테두리 색 */
.bf-search-w[style*="--bfsw-bg"] { background: var(--bfsw-bg); }
.bf-search-w[style*="--bfsw-line"] { border-color: var(--bfsw-line); }

/* 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); }
}

