/* block:bf-community/banner-strip 0.1.0 */
.bfc-strip { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--bfc-strip-h, 72px); padding: 14px 24px; border-radius: var(--bfc-radius, 4px); background-position: center; background-size: cover; color: #fff; text-decoration: none; box-sizing: border-box; }
.bfc-strip__main { display: flex; align-items: center; gap: 14px; min-width: 0; }
.bfc-strip__badge { flex-shrink: 0; padding: 4px 9px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 3px; color: rgba(255, 255, 255, .85); font-size: 10.5px; font-weight: 800; letter-spacing: .1em; }
.bfc-strip__title { min-width: 0; overflow: hidden; color: #fff; font-size: 16px; font-weight: 800; letter-spacing: -0.01em; text-overflow: ellipsis; white-space: nowrap; }
.bfc-strip__link { flex-shrink: 0; display: inline-flex; align-items: center; color: #fff; font-size: 13px; font-weight: 700; }
a.bfc-strip:hover .bfc-strip__link { color: #17bfa0; }

@media (max-width: 768px) {
    .bfc-strip { flex-direction: column; align-items: flex-start; padding: 16px 18px; }
    .bfc-strip__main { flex-direction: column; align-items: flex-start; gap: 8px; }
    .bfc-strip__title { white-space: normal; font-size: 15px; }
}

/* block:bf-community/category-icons 0.1.0 */
.bfc-caticons.bfc-box { padding: 24px 20px; }
.bfc-caticons__list { display: grid; grid-template-columns: repeat(var(--bfc-caticons, 6), minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.bfc-caticons__item { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 6px 4px; border-radius: var(--bfc-radius, 4px); color: var(--bfc-ink, #27272a); text-decoration: none; text-align: center; }
a.bfc-caticons__item:hover .bfc-caticons__tile { transform: translateY(-3px); box-shadow: 0 10px 20px color-mix(in srgb, var(--bfc-tile) 35%, transparent); }
.bfc-caticons__tile { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; padding: 4px; border: 1px solid var(--bfc-line, #e6e6ea); border-radius: 6px; background: var(--bfc-surface, #fff); box-sizing: border-box; transition: transform .2s, box-shadow .2s; }
.bfc-caticons__tile .bf-icon { width: 100%; height: 100%; padding: 8px; border-radius: 5px; background: var(--bfc-tile); color: #fff; box-sizing: border-box; }
.bfc-caticons__tile img { width: 100%; height: 100%; object-fit: contain; border-radius: 5px; }
.bfc-caticons__label { font-size: 13.5px; font-weight: 700; }
.bfc-caticons__count { margin-top: -4px; color: var(--bfc-faint, #9c9ca5); font-size: 11.5px; }

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

@media (max-width: 768px) {
    .bfc-caticons.bfc-box { padding: 16px 10px; }
    .bfc-caticons__list { grid-template-columns: repeat(min(var(--bfc-caticons, 6), 4), minmax(0, 1fr)); gap: 10px 4px; }
    .bfc-caticons__tile { width: 46px; height: 46px; }
    .bfc-caticons__label { font-size: 12.5px; }
}

/* block:bf-community/event-calendar 0.1.0 */
.bfc-cal__head { margin-bottom: 14px; }
.bfc-cal__month { display: inline-flex; align-items: center; gap: 4px; }
.bfc-cal__month strong { color: var(--bfc-primary, #3e9fde); font-size: 15px; font-weight: 800; }
.bfc-cal__month strong span { font-size: 13px; }
.bfc-cal__month a { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: var(--bfc-radius, 4px); color: var(--bfc-muted, #6e6e77); font-size: 16px; }
.bfc-cal__month a:hover { background: var(--bfc-primary-soft); color: var(--bfc-primary, #3e9fde); }

.bfc-cal__body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.bfc-cal__body.has-list { grid-template-columns: minmax(0, 1fr) 230px; }
.bfc-cal__grid { width: 100%; border-collapse: collapse; table-layout: fixed; }
.bfc-cal__grid th { padding: 6px 0 10px; color: var(--bfc-ink-2, #52525b); font-size: 12.5px; font-weight: 700; }
.bfc-cal__grid td { height: 58px; padding: 4px 3px; vertical-align: top; text-align: center; }
.bfc-cal__grid .is-sun, .bfc-cal__grid .is-sun .bfc-cal__day { color: #ef4f3f; }
.bfc-cal__grid .is-sat, .bfc-cal__grid .is-sat .bfc-cal__day { color: var(--bfc-primary, #3e9fde); }
.bfc-cal__day { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 4px; color: var(--bfc-ink, #27272a); font-size: 13px; font-weight: 600; }
.bfc-cal__grid .is-today .bfc-cal__day { background: var(--bfc-primary, #3e9fde); color: #fff; }
.bfc-cal__ev { display: block; margin: 3px -3px 0; padding: 1px 4px; overflow: hidden; background: var(--bfc-primary-soft); color: var(--bfc-primary, #3e9fde); font-size: 10.5px; font-weight: 700; line-height: 16px; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.bfc-cal__ev.is-start { margin-left: 0; border-radius: 3px 0 0 3px; }
.bfc-cal__ev:hover { background: var(--bfc-primary, #3e9fde); color: #fff; }
.bfc-cal__more { display: block; color: var(--bfc-faint, #9c9ca5); font-size: 10.5px; }

.bfc-cal__list { padding-left: 20px; border-left: 1px solid var(--bfc-line, #e6e6ea); }
.bfc-cal__list-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-size: 13.5px; }
.bfc-cal__list-head a { color: var(--bfc-faint, #9c9ca5); font-size: 12px; text-decoration: none; }
.bfc-cal__list ul { margin: 0; padding: 0; list-style: none; }
.bfc-cal__list li + li { border-top: 1px solid var(--bfc-line-soft, #f1f1f3); }
.bfc-cal__list a { display: flex; gap: 10px; padding: 9px 0; color: var(--bfc-ink, #27272a); font-size: 13px; text-decoration: none; }
.bfc-cal__list a:hover .bfc-cal__title { color: var(--bfc-primary, #3e9fde); }
.bfc-cal__date { flex-shrink: 0; color: var(--bfc-primary, #3e9fde); font-size: 12px; font-weight: 700; }
.bfc-cal__title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 1024px) {
    .bfc-cal__body.has-list { grid-template-columns: minmax(0, 1fr); }
    .bfc-cal__list { padding-left: 0; border-left: 0; border-top: 1px solid var(--bfc-line, #e6e6ea); padding-top: 14px; }
}

@media (max-width: 768px) {
    .bfc-cal__grid td { height: 46px; padding: 2px 1px; }
    .bfc-cal__ev { font-size: 0; height: 4px; padding: 0; margin-top: 2px; }
}

/* 달 넘기는 동안 */
.bfc-cal.is-loading { opacity: .55; pointer-events: none; transition: opacity .15s; }

/* block:bf-community/hero 0.3.0 */
.bfc-hero { position: relative; height: 100%; min-height: var(--bfc-hero-h, 300px); box-sizing: border-box; overflow: hidden; border-radius: var(--bfc-radius, 4px); background: #0f1b2d; color: #fff; }
/* 장면 줄 (Swiper). 스크립트 전에도 첫 장면만 보이도록 줄을 가로로 두고 넘치는 부분은 숨긴다 */
.bfc-hero__track { height: 100%; min-height: inherit; }
.bfc-hero__track > .swiper-wrapper { min-height: inherit; }
.bfc-hero__slide { display: flex; align-items: center; gap: 24px; flex-shrink: 0; width: 100%; height: 100%; min-height: inherit; padding: 34px 40px; background-position: center; background-size: cover; box-sizing: border-box; }
.bfc-hero__body { position: relative; z-index: 1; flex: 1; min-width: 0; }
.bfc-hero__badge { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 16px; padding: 5px 12px; border-radius: 999px; background: #17bfa0; color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .06em; }
.bfc-hero__badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.bfc-hero__title { margin: 0; color: #fff; font-size: 30px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.32; }
.bfc-hero__title mark { padding: 0 2px; background: linear-gradient(transparent 62%, rgba(23, 191, 160, .55) 0); color: inherit; }
.bfc-hero__text { margin: 14px 0 0; color: rgba(255, 255, 255, .78); font-size: 13.5px; line-height: 1.6; }
.bfc-hero__btn { display: inline-flex; align-items: center; gap: 2px; margin-top: 22px; height: 36px; padding: 0 12px 0 16px; border-radius: var(--bfc-radius, 4px); background: #fff; color: #18181b; font-size: 13px; font-weight: 700; text-decoration: none; }
.bfc-hero__btn:hover { background: #17bfa0; color: #fff; }
.bfc-hero__media { flex: 0 0 42%; max-width: 42%; align-self: stretch; display: flex; align-items: center; justify-content: center; }
.bfc-hero__media img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }

.bfc-hero__ctrl { position: absolute; right: 18px; bottom: 16px; z-index: 2; display: flex; align-items: center; gap: 8px; }
.bfc-hero__dots { display: flex; align-items: center; gap: 5px; height: 30px; padding: 0 10px; border-radius: 4px; background: rgba(255, 255, 255, .12); }
.bfc-hero__dots span { width: 6px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .45); transition: width .3s, background-color .3s; }
.bfc-hero__dots span.is-on { width: 18px; background: #fff; }
.bfc-hero__nav { display: flex; align-items: center; height: 30px; border-radius: 4px; background: rgba(255, 255, 255, .12); }
.bfc-hero__nav button { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 30px; padding: 0; border: 0; background: none; color: #fff; font-size: 16px; cursor: pointer; }
.bfc-hero__nav button:hover { background: rgba(255, 255, 255, .12); }
.bfc-hero__count { padding: 0 4px; color: rgba(255, 255, 255, .7); font-size: 12px; white-space: nowrap; }
.bfc-hero__count b { color: #fff; }
.bfc-hero__pause { border-left: 1px solid rgba(255, 255, 255, .16) !important; }
.bfc-hero__ico-play { display: none; }
.bfc-hero.is-paused .bfc-hero__ico-play { display: inline-block; }
.bfc-hero.is-paused .bfc-hero__ico-pause { display: none; }

/* 옆 블록 여러 줄 높이 차지 (오른쪽에 안내 카드를 세로로 쌓을 때). 태블릿 이하에서는 한 줄씩 */
.bf-block:has(> .bfc-hero[data-rows="2"]) { grid-row: span 2; align-self: stretch; }
.bf-block:has(> .bfc-hero[data-rows="3"]) { grid-row: span 3; align-self: stretch; }

@media (max-width: 1024px) {
    .bf-block:has(> .bfc-hero) { grid-row: auto; }
}

@media (max-width: 768px) {
    .bfc-hero { height: auto; min-height: var(--bfc-hero-h-m, 260px); }
    .bfc-hero__slide { padding: 24px 22px 56px; }
    .bfc-hero__track, .bfc-hero__track > .swiper-wrapper, .bfc-hero__slide { min-height: var(--bfc-hero-h-m, 260px); }
    .bfc-hero__media { display: none; }
    .bfc-hero__title { font-size: 23px; }
    .bfc-hero__ctrl { right: 12px; bottom: 12px; }
}

/* block:bf-community/post-list 0.1.0 */
.bfc-pl__head { padding-bottom: 12px; border-bottom: 1px solid var(--bfc-line, #e6e6ea); margin-bottom: 4px; }
.bfc-pl__list { margin: 0; padding: 0; list-style: none; }
.bfc-pl__list li + li { border-top: 1px solid var(--bfc-line-soft, #f1f1f3); }
.bfc-pl__item { display: flex; align-items: center; gap: 12px; padding: 11px 0; color: var(--bfc-ink, #27272a); text-decoration: none; }
.bfc-pl__item::before { content: ""; flex-shrink: 0; width: 4px; height: 4px; border-radius: 50%; background: var(--bfc-faint, #9c9ca5); align-self: flex-start; margin-top: 9px; }
.bfc-pl__main { flex: 1; min-width: 0; display: grid; gap: 3px; }
.bfc-pl__line { display: flex; align-items: center; gap: 6px; min-width: 0; }
.bfc-pl__subject { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 600; }
.bfc-pl__item:hover .bfc-pl__subject { color: var(--bfc-primary, #3e9fde); }
.bfc-pl__cmt { flex-shrink: 0; color: var(--bfc-primary, #3e9fde); font-size: 12px; font-style: normal; font-weight: 800; }
.bfc-pl__excerpt { overflow: hidden; color: var(--bfc-faint, #9c9ca5); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.bfc-pl__meta { flex-shrink: 0; display: flex; gap: 10px; color: var(--bfc-faint, #9c9ca5); font-size: 12px; }
.bfc-pl__meta span:first-child { max-width: 80px; overflow: hidden; color: var(--bfc-ink-2, #52525b); text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 768px) {
    .bfc-pl__meta span:first-child { display: none; }
}

/* block:bf-community/promo-card 0.2.0 */
.bfc-promo { display: flex; align-items: center; justify-content: space-between; gap: 14px; height: 100%; min-height: var(--bfc-promo-min, 140px); padding: 20px 22px; border: 1px solid var(--bfc-line, #e6e6ea); border-radius: var(--bfc-radius, 4px); background: var(--bfc-surface, #fff); color: var(--bfc-ink, #27272a); text-decoration: none; box-sizing: border-box; transition: border-color .2s, box-shadow .2s; }
a.bfc-promo:hover { border-color: var(--bfc-primary-line, #aad6f2); box-shadow: var(--bfc-shadow, 0 4px 14px rgba(0, 0, 0, .07)); }
.bfc-promo__body { display: flex; flex-direction: column; min-width: 0; }
.bfc-promo__label { margin: 0 0 8px; color: var(--bfc-primary, #3e9fde); font-size: 10.5px; font-weight: 800; letter-spacing: .12em; }
.bfc-promo__title { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.35; }
.bfc-promo__title em { color: var(--bfc-primary, #3e9fde); font-style: normal; }
.bfc-promo__link { display: inline-flex; align-items: center; margin-top: 12px; color: var(--bfc-primary, #3e9fde); font-size: 12.5px; font-weight: 700; }
.bfc-promo__tile { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 6px; background: linear-gradient(135deg, color-mix(in srgb, var(--bfc-tile) 72%, #fff), var(--bfc-tile)); color: #fff; font-size: 30px; box-shadow: 0 8px 18px color-mix(in srgb, var(--bfc-tile) 35%, transparent); }
.bfc-promo__tile img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }

/* 칸 높이에 맞춰 늘어나도록 (큰 배너 옆에 쌓을 때) */
.bf-block:has(> .bfc-promo) { align-self: stretch; }

@media (max-width: 768px) {
    .bfc-promo { min-height: 0; padding: 18px; }
    .bfc-promo__title { font-size: 17px; }
    .bfc-promo__tile { width: 52px; height: 52px; font-size: 24px; }
}

/* block:bf-community/tab-latest 0.1.0 */
.bfc-tl__head { align-items: flex-start; padding-bottom: 14px; border-bottom: 1px solid var(--bfc-line, #e6e6ea); }
.bfc-tl__titles { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; min-width: 0; }
.bfc-tl__list { margin: 0; padding: 0; list-style: none; }
.bfc-tl__item { display: flex; align-items: center; gap: 16px; padding: 13px 2px; border-bottom: 1px solid var(--bfc-line-soft, #f1f1f3); }
.bfc-tl__item:last-child { border-bottom: 0; padding-bottom: 2px; }
.bfc-tl__main { flex: 1; min-width: 0; display: grid; gap: 4px; color: var(--bfc-ink, #27272a); text-decoration: none; }
.bfc-tl__line { display: flex; align-items: center; gap: 6px; min-width: 0; }
.bfc-tl__subject { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14.5px; font-weight: 600; }
.bfc-tl__main:hover .bfc-tl__subject { color: var(--bfc-primary, #3e9fde); }
.bfc-tl__cmt { flex-shrink: 0; color: var(--bfc-primary, #3e9fde); font-size: 12px; font-style: normal; font-weight: 800; }
.bfc-tl__lock { flex-shrink: 0; color: var(--bfc-faint, #9c9ca5); }
.bfc-tl__excerpt { overflow: hidden; color: var(--bfc-faint, #9c9ca5); font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; }
.bfc-tl__meta { flex-shrink: 0; display: flex; align-items: center; gap: 12px; color: var(--bfc-faint, #9c9ca5); font-size: 12px; }
.bfc-tl__meta > span { display: inline-flex; align-items: center; gap: 3px; }
.bfc-tl__name { max-width: 90px; overflow: hidden; color: var(--bfc-ink-2, #52525b); text-overflow: ellipsis; white-space: nowrap; display: inline-block !important; }

@media (max-width: 768px) {
    .bfc-tl__head { flex-direction: column; }
    .bfc-tl__titles { flex-direction: column; align-items: flex-start; }
    .bfc-tl__item { flex-direction: column; align-items: stretch; gap: 6px; }
    .bfc-tl__meta { gap: 10px; }
}

