/* block:bf-community/hero 0.3.2 */
.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: var(--bfc-accent, #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%, color-mix(in srgb, var(--bfc-accent, var(--bfc-accent, #17bfa0)) 55%, transparent) 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: var(--bfc-accent, #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; }
/* 옆 카드들을 묶음 하나로 묶었으면 줄을 나눠 차지하지 않고 묶음과 같은 높이로 (빈 줄만큼 아래 여백이 생기지 않게) */
.bf-block:has(> .bfc-hero[data-rows]):has(+ .bf-b-bf-group), .bf-b-bf-group + .bf-block:has(> .bfc-hero[data-rows]) { grid-row: auto; }
/* 그 묶음은 배너 높이에 맞춰 늘어나고, 안의 블록(카드)이 남은 높이를 똑같이 나눠 채운다 (배너와 아래 끝이 맞게) */
.bf-block:has(> .bfc-hero[data-rows]) + .bf-b-bf-group, .bf-b-bf-group:has(+ .bf-block > .bfc-hero[data-rows]) { align-self: stretch; }
:is(.bf-block:has(> .bfc-hero[data-rows]) + .bf-b-bf-group, .bf-b-bf-group:has(+ .bf-block > .bfc-hero[data-rows])) > .bf-group { display: flex; flex-direction: column; height: 100%; box-sizing: border-box; }
:is(.bf-block:has(> .bfc-hero[data-rows]) + .bf-b-bf-group, .bf-b-bf-group:has(+ .bf-block > .bfc-hero[data-rows])) > .bf-group > .bf-blocks { flex: 1; grid-auto-rows: 1fr; }

@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; }
    /* 이전 · 다음 · 멈춤 단추를 손가락으로 누르기 쉽게 */
    .bfc-hero__dots, .bfc-hero__nav { height: 40px; }
    .bfc-hero__nav button { width: 40px; height: 40px; font-size: 18px; }
    .bfc-hero__slide { padding-bottom: 66px; }
}

/* block:bf/accordion 1.0.0 */
.bfb-accordion__list { border-top: 1px solid var(--bf-color-border); }
.bfb-accordion__item { border-bottom: 1px solid var(--bf-color-border); }
.bfb-accordion__q { display: flex; align-items: center; justify-content: space-between; gap: 12px; box-sizing: border-box; min-height: 52px; padding: 14px 4px; color: var(--bf-color-text); font-weight: 700; line-height: 1.5; word-break: keep-all; overflow-wrap: anywhere; cursor: pointer; list-style: none; }
.bfb-accordion__q::-webkit-details-marker { display: none; }
.bfb-accordion__q::marker { content: ""; }
.bfb-accordion__q:hover { color: var(--bf-color-primary); }
.bfb-accordion__q:focus-visible { outline: 2px solid var(--bf-color-primary); outline-offset: -2px; border-radius: var(--bf-radius); }
.bfb-accordion__q-text { flex: 1; min-width: 0; }
.bfb-accordion__arrow { flex-shrink: 0; color: var(--bf-color-muted); font-size: 1.4rem; transition: transform .2s; }
.bfb-accordion__item[open] > .bfb-accordion__q .bfb-accordion__arrow { transform: rotate(180deg); }
.bfb-accordion__a { padding: 0 4px 18px; color: var(--bf-color-muted); line-height: 1.7; overflow-wrap: anywhere; }

/* 모양: 상자 */
.bf-b-bf-accordion.is-box .bfb-accordion__list { display: grid; gap: 10px; border-top: 0; }
.bf-b-bf-accordion.is-box .bfb-accordion__item { border: 1px solid var(--bf-color-border); border-radius: var(--bf-radius); background: var(--bf-color-bg); }
.bf-b-bf-accordion.is-box .bfb-accordion__item[open] { border-color: var(--bf-color-primary); }
.bf-b-bf-accordion.is-box .bfb-accordion__q { padding: 14px 18px; }
.bf-b-bf-accordion.is-box .bfb-accordion__a { padding: 0 18px 18px; }

/* 빈 자리 안내: 편집 화면에서만 보이고, 방문자 화면에서는 블록 칸째 숨긴다 */
.bfb-accordion__empty { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 120px; border: 2px dashed var(--bf-color-border); border-radius: var(--bf-radius); color: var(--bf-color-muted); font-size: .9rem; }
.bfb-accordion__empty .bf-icon { font-size: 32px; }
html.bfe-on .bfb-accordion__empty { display: flex; }
html:not(.bfe-on) .bf-block:has(> .bfb-accordion__empty) { display: none; }

@media (prefers-reduced-motion: reduce) {
    .bfb-accordion__arrow { transition: none; }
}

/* block:bf/banner 1.1.1 */
.bfb-banner { position: relative; overflow: hidden; border-radius: var(--bf-radius); }
.bf-row--bleed .bfb-banner { border-radius: 0; }
.bfb-banner__title { margin: 0; font-size: 2.4rem; font-weight: 800; line-height: 1.25; word-break: keep-all; }
.bfb-banner__text { margin: 14px 0 0; font-size: 1.05rem; line-height: 1.6; opacity: .85; }
.bfb-banner__btn { display: inline-flex; align-items: center; gap: 6px; margin-top: 26px; padding: 13px 26px; border-radius: var(--bf-radius); background: #fff; color: #111827; font-weight: 700; text-decoration: none; transition: transform .15s; }
.bfb-banner__btn:hover { transform: translateY(-2px); }

/* 큰 배너 */
.bfb-banner--hero { display: flex; align-items: center; min-height: var(--bfb-h); background: var(--bfb-bg) var(--bfb-img, none) center / cover no-repeat; color: var(--bfb-color); }
.bfb-banner--hero::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, var(--bfb-overlay)); }
.bfb-banner--hero .bfb-banner__body { position: relative; width: 100%; }
.bfb-banner--hero .bfb-banner__inner { max-width: var(--bf-container-width); margin: 0 auto; padding: 40px var(--bf-gutter); box-sizing: border-box; }

/* 이미지 배너 */
.bfb-banner--image img { display: block; width: 100%; height: auto; }

/* 이미지 + 글 나란히 */
.bfb-banner--split { display: grid; grid-template-columns: 1fr 1fr; min-height: var(--bfb-h); background: var(--bfb-bg); color: var(--bfb-color); }
.bfb-banner--split .bfb-banner__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bfb-banner--split .bfb-banner__body { display: flex; align-items: center; padding: 40px; }
.bfb-banner--split .bfb-banner__title { font-size: 1.9rem; }

.bfb-banner__empty { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 6px; height: 100%; min-height: 160px; border: 2px dashed var(--bf-color-border); border-radius: var(--bf-radius); color: var(--bf-color-muted); font-size: .9rem; }
.bfb-banner__empty .bf-icon { font-size: 32px; }
/* 빈 자리 안내는 편집 화면에서만 (0.9.41 — 방문자 화면에도 점선 상자가 보였다) */
html.bfe-on .bfb-banner__empty { display: flex; }
html:not(.bfe-on) .bf-block:has(> .bfb-banner__empty) { display: none; }

@media (max-width: 768px) {
    .bfb-banner--hero { min-height: calc(var(--bfb-h) * .75); }
    .bfb-banner__title { font-size: 1.6rem; }
    .bfb-banner--split { grid-template-columns: 1fr; }
    .bfb-banner--split .bfb-banner__media { aspect-ratio: 16 / 9; }
    .bfb-banner--split .bfb-banner__body { padding: 28px 20px; }
}
@media (prefers-reduced-motion: reduce) {
    .bfb-banner__btn { transition: none; }
    .bfb-banner__btn:hover { transform: none; }
}

/* block:bf/button 1.0.0 */
.bfb-button { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.bfb-button__btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; box-sizing: border-box; min-height: 44px; padding: 10px 22px; border: 1px solid transparent; border-radius: var(--bf-radius); font-weight: 700; line-height: 1.3; text-align: center; text-decoration: none; word-break: keep-all; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s, opacity .15s; }
.bfb-button--sm .bfb-button__btn { min-height: 36px; padding: 6px 16px; font-size: .9rem; }
.bfb-button--lg .bfb-button__btn { min-height: 54px; padding: 14px 32px; font-size: 1.1rem; }

.bfb-button__btn--fill { background: var(--bf-color-primary); border-color: var(--bf-color-primary); color: #fff; }
.bfb-button__btn--fill:hover { opacity: .88; color: #fff; }
.bfb-button__btn--line { background: transparent; border-color: var(--bf-color-primary); color: var(--bf-color-primary); }
.bfb-button__btn--line:hover { background: color-mix(in srgb, var(--bf-color-primary) 10%, transparent); color: var(--bf-color-primary); }
.bfb-button__btn--text { padding-left: 8px; padding-right: 8px; background: transparent; color: var(--bf-color-primary); }
.bfb-button__btn--text:hover { text-decoration: underline; color: var(--bf-color-primary); }
.bfb-button__btn:focus-visible { outline: 2px solid var(--bf-color-primary); outline-offset: 2px; }

.bfb-button__icon { font-size: 1.15em; }
.bfb-button__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* 링크가 빈 단추: 편집 화면에서만 점선으로 보인다 (방문자에게는 나오지 않음) */
.bfb-button__btn.is-nolink { display: none; border-style: dashed; opacity: .75; cursor: default; }
html.bfe-on .bfb-button__btn.is-nolink { display: inline-flex; }
.bfb-button__hint { margin-left: 4px; font-size: .8em; font-weight: 400; opacity: .9; }
html:not(.bfe-on) .bf-block:has(> .bfb-button.is-empty) { display: none; }

/* 빈 자리 안내: 편집 화면에서만 보이고, 방문자 화면에서는 블록 칸째 숨긴다 */
.bfb-button__empty { display: none; align-items: center; justify-content: center; gap: 6px; min-height: 64px; border: 2px dashed var(--bf-color-border); border-radius: var(--bf-radius); color: var(--bf-color-muted); font-size: .9rem; }
html.bfe-on .bfb-button__empty { display: flex; }
html:not(.bfe-on) .bf-block:has(> .bfb-button__empty) { display: none; }

@media (max-width: 768px) {
    /* 휴대폰에서는 작은 단추도 누르기 쉬운 높이로 */
    .bfb-button--sm .bfb-button__btn { min-height: 44px; }
    .bfb-button.is-wide-m { flex-direction: column; align-items: stretch; }
}

@media (prefers-reduced-motion: reduce) {
    .bfb-button__btn { transition: none; }
}

/* block:bf/features 1.2.0 */
.bfb-features { scroll-margin-top: 100px; }
.bfb-features__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--bfb-cols, 3), minmax(0, 1fr)); gap: 20px; }
.bfb-features__item { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.bf-b-bf-features.is-card .bfb-features__item { padding: 30px 24px; border: 1px solid var(--bf-color-border); border-radius: calc(var(--bf-radius) * 1.5); background: var(--bf-color-bg); }
.bfb-features__icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: color-mix(in srgb, var(--bf-color-primary) 10%, transparent); color: var(--bf-color-primary); font-size: 26px; }
.bfb-features__title { margin: 0; font-size: 1.1rem; font-weight: 700; }
.bfb-features__title a { color: inherit; text-decoration: none; }
.bfb-features__text { margin: 0; color: var(--bf-color-muted); line-height: 1.6; font-size: .95rem; }
@media (max-width: 768px) {
    .bfb-features__list { grid-template-columns: minmax(0, 1fr); }
}

