/* block:bf-music/player 1.0.0 */
/* 뮤직 플레이어 블록 */
.bfmu.bfmu-block { margin: 0; }
.bfmu-block__empty { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 120px; margin: 0; padding: 16px; border: 1px dashed var(--bf-color-border, #d4d4d8); border-radius: var(--bf-radius, 8px); background: var(--bf-color-bg-soft, #f6f7f9); color: var(--bf-color-muted, #8b8b94); font-size: 14px; text-align: center; }
.bfmu-block__empty .bf-icon { width: 22px; height: 22px; flex: none; }

/* footer:bf/basic 1.0.0 */
.bff-basic { padding: 36px 0 40px; background: var(--bf-color-bg-soft); border-top: 1px solid var(--bf-color-border); color: var(--bf-color-muted); font-size: .875rem; line-height: 1.7; }
.bff-basic p { margin: 0; }
.bff-basic a { color: inherit; text-decoration: none; }
.bff-basic a:hover { color: var(--bf-color-primary); }
.bff-basic__links { margin-bottom: 14px; color: var(--bf-color-text); font-weight: 600; }
.bff-basic__info { margin-bottom: 10px; }
.bff-basic__copy { font-size: .8125rem; opacity: .85; }

/* header:bf/portal 1.3.3 */
.bfh-portal { background: var(--bf-color-header-bg, var(--bf-color-bg)); }
.bfh-portal__top { border-bottom: 1px solid var(--bf-color-border); font-size: .85rem; }
.bfh-portal__top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 36px; }
.bfh-portal__notice { color: var(--bf-color-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bfh-portal__main { display: flex; align-items: center; gap: 32px; min-height: 88px; }
.bfh-portal__logo { flex: 0 1 auto; min-width: 0; }
.bfh-portal__search { flex: 1; min-width: 0; display: flex; justify-content: center; }
.bfh-portal__search .bf-slot { width: 100%; min-width: 0; display: flex; justify-content: center; }
.bfh-portal__nav { position: relative; background: var(--bfh-nav-bg, var(--bf-color-primary)); }
.bfh-portal__nav .bf-menu-w__item > a { color: var(--bfh-nav-color, #fff); padding: 14px 18px; border-radius: 0; }
/* 1단 메뉴: 마우스를 올린 동안(펼친 하위 메뉴에 있는 동안 포함) · 키보드 · 지금 메뉴 — 막대 색 위에 어둡게 (헤더 설정으로 바꿈) */
.bfh-portal__nav .bf-menu-w__list--d0 > .bf-menu-w__item:hover > a,
.bfh-portal__nav .bf-menu-w__list--d0 > .bf-menu-w__item > a:focus-visible,
.bfh-portal__nav .bf-menu-w__list--d0 > .bf-menu-w__item.is-current > a { background: var(--bfh-nav-hover, rgba(0, 0, 0, .12)); color: var(--bfh-nav-color, #fff); }
/* 펼친 하위 메뉴: 흰 상자 안이라 본문 글자색, 올리면 메뉴 막대 색을 옅게 깐 바탕 (페이지 배경색과 겹치지 않게). 헤더 설정으로 바꿈 */
.bfh-portal__nav .bf-menu-w__list--d1 a { color: var(--bfh-sub-color, var(--bf-color-text)) !important; background: none !important; }
.bfh-portal__nav .bf-menu-w__list--d1 a:hover,
.bfh-portal__nav .bf-menu-w__list--d1 a:focus-visible,
.bfh-portal__nav .bf-menu-w__list--d1 .is-current > a { background: var(--bfh-sub-hover, color-mix(in srgb, var(--bfh-nav-bg, var(--bf-color-primary)) 16%, var(--bf-color-bg))) !important; color: var(--bfh-sub-hover-color, var(--bfh-sub-color, var(--bf-color-text))) !important; }
.bfh-portal__nav .bf-menu-w__toggle { color: var(--bfh-nav-color, #fff); }

@media (max-width: 768px) {
    .bfh-portal__notice { display: none; }
    .bfh-portal__top-row { justify-content: flex-end; }
    .bfh-portal__main { flex-wrap: wrap; gap: 12px; min-height: 0; padding-top: 12px; padding-bottom: 12px; }
    .bfh-portal__search { flex-basis: 100%; }
    .bfh-portal__nav .bf-menu-w { text-align: left; }
    .bfh-portal__nav .bf-menu-w__panel.is-open .bf-menu-w__item > a { color: var(--bfh-sub-color, var(--bf-color-text)); }

    /*
     * 펼친 메뉴의 지금 위치 (헤더 설정 m_current). 펼친 메뉴는 흰 상자라 막대용 바탕(어둡게 덮기 · 옅은 막대 색)은 모두 지우고 설정한 모양만 쓴다.
     * "지금 화면 줄" = 주소가 같거나(page) 이 화면이 속한(true) 메뉴 가운데 하위에 지금 메뉴가 없는 줄. 그 위 메뉴들은 굵게만.
     */
    .bfh-portal .bfh-portal__nav .bf-menu-w__panel.is-open .bf-menu-w__item > a,
    .bfh-portal .bfh-portal__nav .bf-menu-w__panel.is-open .bf-menu-w__item > a:hover,
    .bfh-portal .bfh-portal__nav .bf-menu-w__panel.is-open .bf-menu-w__item > a:focus-visible { background: none !important; box-shadow: none; }
    .bfh-portal .bfh-portal__nav .bf-menu-w__panel.is-open .bf-menu-w__item.is-current > a { font-weight: 800; }
    .bfh-portal .bfh-portal__nav .bf-menu-w__panel.is-open .bf-menu-w__item:not(:has(.bf-menu-w__list .is-current)) > a[aria-current] { color: var(--bfh-sub-hover-color, var(--bfh-sub-color, var(--bf-color-text))) !important; }

    /* A 세로줄 (기본): 지금 화면 줄에 옅은 막대 색 + 왼쪽 막대 색 줄 */
    .bfh-portal--m-bar .bfh-portal__nav .bf-menu-w__panel.is-open .bf-menu-w__item:not(:has(.bf-menu-w__list .is-current)) > a[aria-current] { background: var(--bfh-sub-hover, color-mix(in srgb, var(--bfh-nav-bg, var(--bf-color-primary)) 16%, var(--bf-color-bg))) !important; box-shadow: inset 4px 0 0 var(--bfh-nav-bg, var(--bf-color-primary)); border-radius: 0 6px 6px 0; }

    /* B 묶음 상자: 지금 화면이 속한 1차 메뉴와 하위 메뉴 전체를 옅은 막대 색 상자로, 지금 화면 줄은 점 */
    .bfh-portal--m-box .bfh-portal__nav .bf-menu-w__panel.is-open .bf-menu-w__list--d0 > .bf-menu-w__item.is-current { padding-bottom: 6px; border-radius: 12px; background: var(--bfh-sub-hover, color-mix(in srgb, var(--bfh-nav-bg, var(--bf-color-primary)) 16%, var(--bf-color-bg))); }
    .bfh-portal--m-box .bfh-portal__nav .bf-menu-w__panel.is-open .bf-menu-w__list--d0 > .bf-menu-w__item.is-current .bf-menu-w__list { background: transparent !important; }

    /* B · C 지금 화면 줄 앞의 점 (C 는 바탕 없이 막대 색 점) */
    .bfh-portal--m-box .bfh-portal__nav .bf-menu-w__panel.is-open .bf-menu-w__item:not(:has(.bf-menu-w__list .is-current)) > a[aria-current]::before,
    .bfh-portal--m-dot .bfh-portal__nav .bf-menu-w__panel.is-open .bf-menu-w__item:not(:has(.bf-menu-w__list .is-current)) > a[aria-current]::before { content: ""; flex: none; width: 6px; height: 6px; margin-right: 2px; border-radius: 50%; background: currentColor; }
    .bfh-portal--m-dot .bfh-portal__nav .bf-menu-w__panel.is-open .bf-menu-w__item:not(:has(.bf-menu-w__list .is-current)) > a[aria-current]::before { background: var(--bfh-nav-bg, var(--bf-color-primary)); box-shadow: 0 0 0 2px color-mix(in srgb, var(--bfh-nav-bg, var(--bf-color-primary)) 30%, transparent); }
}

/* 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/member-links 1.1.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: 2px; }
    .bf-member-w:not(.has-icons) { flex-wrap: wrap; gap: 0 12px; }
    .bf-member-w.has-icons span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .bf-member-w .bf-icon { font-size: 20px; }
    /* 누름 영역 */
    .bf-member-w a { justify-content: center; min-height: 44px; }
    .bf-member-w.has-icons a { min-width: 40px; }
}

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

