/* ================================================================
   plugin/board/board_type.css
   게시판(리스트형/앨범형/웹진형/캘린더형/아코디언형) 공용 스타일
   색상: layout/(kr|en)/css/global.css 의 --white-color-1/--black-color-1/
         --point-color-1(주)/--point-color-2(서브)/--point-color-3(딥)
   폰트: --body-noto / 소·중·대 3단계
   ================================================================ */

.bd-wrap {
    --bd-font-sm: 13px;
    --bd-font-md: 16px;
    --bd-font-lg: 22px;
    width: 100%;    
    margin: 0 auto;
    padding: 40px 20px;
    font-family: var(--body-noto), sans-serif;
    color: var(--black-color-1);
    box-sizing: border-box;
}
.bd-wrap * {box-sizing: border-box;}
.bd-wrap img {max-width: 100%;}

/* ── 상단 바 : 좌측 총 개수 / 우측 검색+글쓰기 ───────────────── */
.bd-topbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}
.bd-count {font-size: var(--bd-font-md); color: var(--point-color-3); font-weight: 700;}
.bd-count b {color: var(--black-color-1); font-weight: 700;}
.bd-toolbar {display: flex; flex-wrap: wrap; align-items: center; gap: 8px;}
.bd-search {display: flex; align-items: center; gap: 6px;}
.bd-search input[type="text"],
.bd-search input[type="date"],
.bd-search select {
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--border-color-1, #ccc);
    border-radius: 6px;
    font-size: var(--bd-font-sm);
    font-family: inherit;
    background: var(--white-color-1);
    color: var(--black-color-1);
}
.bd-search input[type="text"] {width: 180px;}
.bd-search .bd-btn {flex-shrink: 0;}

/* 모바일: 검색줄이 화면 밖으로 넘치면 페이지 전체가 가로로 넓어져
   배경(.sm_con_wp) 오른쪽에 빈 여백이 생기므로, 화면 폭 안에서 줄어들도록 처리 */
@media (max-width: 720px) {
    .bd-toolbar {width: 100%;}
    .bd-search {flex: 1 1 100%; min-width: 0;}
    .bd-search select {flex: 0 1 auto; min-width: 0; max-width: 40%;}
    .bd-search input[type="text"],
    .bd-search input[type="date"] {flex: 1 1 auto; width: auto; min-width: 0;}
}
.bd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 18px;
    border: none;
    border-radius: 6px;
    background: var(--point-color-1);
    color: var(--white-color-1);
    font-size: var(--bd-font-sm);
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s ease;
    white-space: nowrap;
    text-decoration: none;
}
.bd-btn:hover {background: var(--point-color-3);}
.bd-btn.bd-btn-outline {background: var(--white-color-1); color: var(--point-color-1); border: 1px solid var(--point-color-1);}
.bd-btn.bd-btn-outline:hover {background: var(--point-color-1); color: var(--white-color-1);}
.bd-write-btn {background: var(--point-color-3);}

.bd-empty {text-align: center; padding: 80px 0; color: #999; font-size: var(--bd-font-md);}
.bd-opt-hide {display: none !important;}

/* ================================================================
   1) 리스트형
   ================================================================ */
/* 항목 타이틀(thead) 없이 사용 — 상단 포인트 라인은 표 자체에 */
.bd-list-table {width: 100%; border-collapse: collapse; table-layout: auto; border-top: 2px solid var(--point-color-1);}
/* colgroup 폭 지정 — 번호/조회수/날짜 등은 좁게 고정, 제목(.bd-col-title)은 폭을 지정하지 않아 남는 공간을 유연하게 채움 */
.bd-list-table col.bd-c-no {width: 60px;}
.bd-list-table col.bd-c-category {width: 110px;}
.bd-list-table col.bd-c-writer {width: 100px;}
.bd-list-table col.bd-c-views {width: 70px;}
.bd-list-table col.bd-c-date {width: 120px;}
.bd-list-table tbody tr {border-bottom: 1px solid var(--border-color-1, #e5e5e5); transition: background .15s;}
.bd-list-table tbody tr.bd-row-link {cursor: pointer;}
.bd-list-table tbody tr:hover {background: #f7fafd;}
.bd-list-table tbody td {padding: 30px 10px; font-size: var(--bd-font-md); text-align: center;}
/* 제목 1줄 고정 — 넘치면 ... 처리 (max-width:0 은 table-layout:auto 에서 셀이 내용 길이만큼 늘어나지 않게 하는 트릭) */
.bd-list-table td.bd-col-title {text-align: left; max-width: 0; width: 100%;}
.bd-list-table .bd-title-wrap {display: flex; align-items: center; gap: 4px; min-width: 0;}
.bd-list-table .bd-title-link {flex: 0 1 auto; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;}
.bd-list-table .bd-title-wrap .bd-down-btn {flex-shrink: 0;}
.bd-list-table .bd-col-title a {color: var(--black-color-1); text-decoration: none; font-weight: 500;}
.bd-list-table .bd-col-title a:hover {color: var(--point-color-1);}
.bd-cate-tag {
    display: inline-block; padding: 3px 10px; border-radius: 20px;
    background: var(--point-color-2); color: var(--white-color-1); font-size: var(--bd-font-sm);
}
.bd-file-ico {margin-left: 4px; color: var(--point-color-3); font-size: var(--bd-font-sm); vertical-align: middle;}

/* 모바일: 리스트형을 2줄로 재배치
     1줄: 번호 · 카테고리 · 작성자 · 조회수 · 작성일 (작게, 한 줄)
     2줄: 제목 (넘치면 ...) */
@media (max-width: 720px) {
    .bd-list-table, .bd-list-table tbody {display: block; width: 100%;}
    .bd-list-table tbody tr {display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; padding: 16px 4px;}
    .bd-list-table tbody td {display: block; width: auto; padding: 0; text-align: left; font-size: var(--bd-font-sm); color: #888; line-height: 1.5;}
    .bd-list-table .bd-cate-tag {padding: 1px 8px; font-size: 12px;}
    .bd-list-table td.bd-col-title {order: 1; flex: 0 0 100%; max-width: 100%; width: 100%; min-width: 0; margin-top: 8px; color: inherit;}
    .bd-list-table .bd-col-title a {font-size: var(--bd-font-md);}
}

/* ================================================================
   2) 앨범형
   ================================================================ */
.bd-album-grid {display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;}
.bd-album-item {display: block; min-width: 0; text-decoration: none; color: var(--black-color-1);} /* min-width:0 — 긴 제목이 칸 폭을 늘리지 않도록 */
.bd-album-thumb {width: 100%; aspect-ratio: 16/9; overflow: hidden; border-radius: 8px; background: #f2f2f2;}
.bd-album-thumb img {width: 100%; height: 100%; object-fit: cover; display: block;}
.bd-album-item:hover .bd-album-thumb img {transform: scale(1.05); transition: transform .25s ease;}
/* 썸네일 → 카테고리 → 날짜 → 제목 */
.bd-album-meta {margin-top: 12px; font-size: var(--bd-font-sm); color: #888; display: flex; gap: 8px;}
.bd-album-date {margin-top: 10px; font-size: var(--bd-font-sm); color: #888; line-height: 1.4;}
.bd-album-meta + .bd-album-date {margin-top: 6px;}
.bd-album-title {margin-top: 10px; font-size: var(--bd-font-md); font-weight: 600; line-height: 1.4;}
.bd-album-meta + .bd-album-title, .bd-album-date + .bd-album-title {margin-top: 4px;}
/* 제목 1줄 고정 — 넘치면 ... 처리, (조회수)는 잘리지 않고 제목 오른쪽에 유지 */
.bd-album-title {display: flex; align-items: baseline; gap: 4px; min-width: 0;}
.bd-album-title-txt {min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;}
.bd-album-views {flex-shrink: 0; font-size: var(--bd-font-sm); font-weight: 400; color: #888;}

/* 화면 폭별 열 개수: PC 3개 → 태블릿·큰 모바일 2개 → 작은 모바일 1개 */
@media (max-width: 900px) {.bd-album-grid {grid-template-columns: repeat(2, 1fr); gap: 20px;}}
@media (max-width: 600px) {.bd-album-grid {gap: 14px;}}
@media (max-width: 480px) {.bd-album-grid {grid-template-columns: 1fr; gap: 24px;}}

/* ================================================================
   3) 웹진형
   ================================================================ */
.bd-webzine-list {display: flex; flex-direction: column; gap: 18px;}
.bd-webzine-item {
    display: flex; gap: 20px; padding: 18px; border: 1px solid var(--border-color-1, #e5e5e5);
    border-radius: 10px; text-decoration: none; color: var(--black-color-1); transition: box-shadow .15s, border-color .15s;
}
.bd-webzine-item:hover {border-color: var(--point-color-1); box-shadow: 0 4px 16px rgba(0,0,0,.06);}
.bd-webzine-thumb {flex: 0 0 180px; aspect-ratio: 16/10; border-radius: 6px; overflow: hidden; background: #f2f2f2;}
.bd-webzine-thumb img {width: 100%; height: 100%; object-fit: cover; display: block;}
.bd-webzine-body {flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px;}
/* 세로 flex 안에서는 자식이 가로로 늘어나므로, 카테고리 태그는 글자 폭만큼만 */
.bd-webzine-body > .bd-cate-tag {align-self: flex-start;}
/* 제목 1줄 고정 — 넘치면 ... 처리 (부모 .bd-webzine-body 의 min-width:0 덕분에 폭 안에서 잘림) */
.bd-webzine-title {font-size: var(--bd-font-lg); font-weight: 700; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;}
.bd-webzine-desc {font-size: var(--bd-font-md); color: #666; line-height: 1.6; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;}
.bd-webzine-meta {margin-top: auto; font-size: var(--bd-font-sm); color: #999; display: flex; gap: 10px;}

@media (max-width: 640px) {
    .bd-webzine-item {flex-direction: column;}
    .bd-webzine-thumb {flex: none; width: 100%;}
}

/* ================================================================
   4) 캘린더형
   ================================================================ */
.bd-calendar-head {display: flex; align-items: center; justify-content: center; gap: 20px; margin-bottom: 16px;}
.bd-calendar-head .bd-cal-ym {font-size: var(--bd-font-lg); font-weight: 700; color: var(--point-color-3); min-width: 140px; text-align: center;}
.bd-calendar-head button {
    width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border-color-1, #ccc);
    background: var(--white-color-1); cursor: pointer; font-size: var(--bd-font-md); line-height: 1; color: var(--point-color-3);
}
.bd-calendar-head button:hover {background: var(--point-color-1); color: var(--white-color-1); border-color: var(--point-color-1);}
/* 이전/다음 화살표: SVG 모양을 마스크로 쓰고 버튼 글자색(currentColor)으로 칠함 → 마우스 오버 시 흰색으로 바뀜 */
.bd-calendar-head button {display: inline-flex; align-items: center; justify-content: center; padding: 0;}
.bd-cal-arr {
    display: block; width: 14px; height: 14px; background-color: currentColor;
    -webkit-mask: no-repeat center / contain; mask: no-repeat center / contain;
}
.bd-cal-arr-prev {-webkit-mask-image: url(/plugin/board/board_img/icon_arr_prev.svg); mask-image: url(/plugin/board/board_img/icon_arr_prev.svg);}
.bd-cal-arr-next {-webkit-mask-image: url(/plugin/board/board_img/icon_arr_next.svg); mask-image: url(/plugin/board/board_img/icon_arr_next.svg);}
.bd-calendar-grid {display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px;}
.bd-calendar-dow {text-align: center; font-size: var(--bd-font-sm); color: #999; padding-bottom: 6px;}
.bd-calendar-cell {
    min-width: 0; /* 긴 제목이 날짜 칸(그리드 열) 폭을 늘리지 않도록 */
    min-height: 90px; border: 1px solid var(--border-color-1, #eee); border-radius: 6px; padding: 6px;
    font-size: var(--bd-font-sm); position: relative; background: var(--white-color-1);
}
.bd-calendar-cell.bd-cal-empty {background: transparent; border: none;}
.bd-calendar-cell .bd-cal-day {font-weight: 700; margin-bottom: 4px; color: var(--black-color-1);}
.bd-calendar-cell.bd-cal-today .bd-cal-day {color: var(--point-color-1);}
.bd-calendar-cell.bd-cal-hit {background: var(--point-color-2); border-color: var(--point-color-3);}
.bd-calendar-cell.bd-cal-hit .bd-cal-day {color: var(--white-color-1);}
/* 일정 제목: 날짜 칸 폭을 최대한 사용해 1줄 표시, 넘치면 ... 처리 + (조회수)는 잘리지 않고 뒤에 유지 */
.bd-cal-post {
    display: flex; align-items: baseline; gap: 2px;
    width: 100%; min-width: 0; margin-top: 2px;
    font-size: 14px; color: var(--point-color-3); text-decoration: none;
}
.bd-cal-post-title {flex: 0 1 auto; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;}
.bd-cal-post-views {flex-shrink: 0; font-size: 12px; opacity: .75;}
.bd-calendar-cell.bd-cal-hit .bd-cal-post {color: var(--white-color-1); font-weight: 700;}
.bd-cal-post:hover .bd-cal-post-title {text-decoration: underline;}

/* ── 모바일 일정 목록 (800px 이하에서 달력 대신 표시) ─────────────
   좌우 버튼 + 년월(.bd-calendar-head)은 그대로, 글이 있는 날짜만 가로 꽉 차게 나열 */
.bd-cal-mlist {display: none;}

@media (max-width: 800px) {
    .bd-calendar-grid {display: none;}
    .bd-cal-mlist {display: flex; flex-direction: column; gap: 12px;}

    .bd-cal-mday {
        width: 100%; padding: 14px 16px;
        border: 1px solid var(--border-color-1, #e5e5e5); border-radius: 8px; background: var(--white-color-1);
    }
    .bd-cal-mday.bd-cal-hit {border-color: var(--point-color-1); box-shadow: 0 0 0 1px var(--point-color-1) inset;}

    /* 일(숫자) + 요일 */
    .bd-cal-mdate {display: flex; align-items: baseline; gap: 6px; padding-bottom: 10px; margin-bottom: 4px; border-bottom: 1px solid var(--border-color-1, #eee);}
    .bd-cal-mdate b {font-size: 22px; font-weight: 700; line-height: 1; color: var(--black-color-1);}
    .bd-cal-mdate span {font-size: var(--bd-font-sm); color: #888;}
    .bd-cal-mday.is-sun .bd-cal-mdate b, .bd-cal-mday.is-sun .bd-cal-mdate span {color: #e04545;}
    .bd-cal-mday.is-sat .bd-cal-mdate b, .bd-cal-mday.is-sat .bd-cal-mdate span {color: #3b74d6;}
    .bd-cal-mday.bd-cal-today .bd-cal-mdate b {color: var(--point-color-1);}

    /* 카테고리 → 제목 → 조회수 */
    .bd-cal-mposts {list-style: none; margin: 0; padding: 0;}
    .bd-cal-mposts li + li {border-top: 1px dashed var(--border-color-1, #eee);}
    .bd-cal-mposts a {display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px 0; text-decoration: none; color: var(--black-color-1);}
    .bd-cal-mposts li + li a {padding-top: 10px;}
    /* 제목 1줄 고정 — 가로폭을 넘으면 ... 처리 */
    .bd-cal-mtitle {
        align-self: stretch; min-width: 0;
        font-size: var(--bd-font-md); font-weight: 600; line-height: 1.45;
        overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
    }
    .bd-cal-mposts a:hover .bd-cal-mtitle {color: var(--point-color-1);}
    .bd-cal-mviews {font-size: var(--bd-font-sm); color: #999;}

    .bd-cal-mempty {padding: 50px 0; text-align: center; color: #999; font-size: var(--bd-font-md);}
}

/* ================================================================
   5) 아코디언형
   ================================================================ */
.bd-accordion-list {display: flex; flex-direction: column; gap: 10px;}
.bd-accordion-item {border: 1px solid var(--border-color-1, #e5e5e5); border-radius: 8px; overflow: hidden;}
.bd-accordion-head {
    display: flex; align-items: center; gap: 12px; padding: 16px 18px; cursor: pointer;
    background: var(--white-color-1); font-size: var(--bd-font-md); font-weight: 600;
}
.bd-accordion-head:hover {background: #f7fafd;}
/* Q / A 배지: 원형 배경 + icon_q.svg / icon_a.svg 글자 모양을 마스크로 흰색 표시 */
.bd-accordion-q, .bd-accordion-a {
    flex: 0 0 auto; position: relative; width: 26px; height: 26px; border-radius: 50%;
    color: var(--white-color-1);
}
.bd-accordion-q {background: var(--point-color-1);}
.bd-accordion-q::before, .bd-accordion-a::before {
    content: ''; position: absolute; inset: 0; background-color: currentColor;
    -webkit-mask: no-repeat center / 100% 100%; mask: no-repeat center / 100% 100%;
}
.bd-accordion-q::before {-webkit-mask-image: url(/plugin/board/board_img/icon_q.svg); mask-image: url(/plugin/board/board_img/icon_q.svg);}
.bd-accordion-a::before {-webkit-mask-image: url(/plugin/board/board_img/icon_a.svg); mask-image: url(/plugin/board/board_img/icon_a.svg);}
/* 번호 (관리자 > 번호 체크 시) */
.bd-accordion-no {flex: 0 0 auto; min-width: 24px; font-size: var(--bd-font-sm); font-weight: 500; color: #888; text-align: center;}
/* 제목: 잘리지 않고 줄바꿈 — 카테고리 태그 오른쪽의 제목 블록 안에서 줄이 바뀌므로
   두 번째 줄부터도 제목 첫 글자 위치에 맞춰 정렬됨.
   카테고리 태그는 제목이 여러 줄이 되어도 제목 블록의 세로 중앙에 위치 (Q/번호/화살표와 동일) */
.bd-accordion-title {flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px;}
.bd-accordion-title .bd-cate-tag {flex-shrink: 0;}
.bd-accordion-title-txt {flex: 1; min-width: 0; line-height: 1.5; word-break: keep-all; overflow-wrap: anywhere;}
/* 열림/닫힘 화살표: icon_arr_next.svg 를 회전 — 닫힘 ↓ / 열림 ↑ */
.bd-accordion-arrow {
    flex: 0 0 auto; width: 14px; height: 14px; color: #999; background-color: currentColor;
    -webkit-mask: url(/plugin/board/board_img/icon_arr_next.svg) no-repeat center / contain;
            mask: url(/plugin/board/board_img/icon_arr_next.svg) no-repeat center / contain;
    transform: rotate(90deg); transition: transform .35s ease, color .2s;
}
.bd-accordion-item.is-open .bd-accordion-arrow {transform: rotate(-90deg); color: var(--point-color-1);}
/* 내용: 부드럽게 열고 닫기 — 높이를 몰라도 되도록 grid 행 0fr ↔ 1fr 전환
   색상: 글자색(--black-color-1)과 반대되는 배경색(--white-color-1) */
.bd-accordion-body {
    display: grid; grid-template-rows: 0fr;
    transition: grid-template-rows .35s ease;
    background: var(--white-color-1); color: var(--black-color-1);
    font-size: var(--bd-font-md); line-height: 1.7;
}
.bd-accordion-item.is-open .bd-accordion-body {grid-template-rows: 1fr;}
.bd-accordion-clip {min-height: 0; overflow: hidden;}
.bd-accordion-inner {
    padding: 18px;
    border-top: 1px solid var(--border-color-1, #e5e5e5);
    opacity: 0; transform: translateY(-6px);
    transition: opacity .3s ease, transform .35s ease;
}
.bd-accordion-item.is-open .bd-accordion-inner {opacity: 1; transform: none;}
/* 내용 앞 A (QA 체크 시) — 머리줄 Q 와 같은 크기의 원형, 딥포인트 색 */
.bd-accordion-content {display: flex; align-items: flex-start; gap: 12px;}
.bd-accordion-content > .ed-content {flex: 1; min-width: 0;}
.bd-accordion-a {background: var(--point-color-3);}
/* 관리자 수정/삭제 — 가운데 */
.bd-accordion-admin {display: flex; justify-content: center; gap: 8px; margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--border-color-1, #e5e5e5);}
.bd-accordion-admin form {display: inline; margin: 0;}
@media (prefers-reduced-motion: reduce) {
    .bd-accordion-body, .bd-accordion-inner {transition: none;}
}
.bd-accordion-meta {font-size: var(--bd-font-sm); color: #999; margin-bottom: 20px;}

/* ================================================================
   무한스크롤 로딩 표시
   ================================================================ */
.bd-loadzone.is-error {color: #e04545; cursor: pointer;}
.bd-loadzone {text-align: center; padding: 30px 0; color: #999; font-size: var(--bd-font-sm);}
.bd-loadzone[hidden] {display: none;}

/* 리스트형 "목록 더보기" — 양옆 가로선 + 가운데 버튼 */
.bd-more-wrap {display: flex; align-items: center; gap: 16px;}
.bd-more-wrap::before,
.bd-more-wrap::after {content: ''; flex: 1; height: 1px; background: var(--border-color-1, #ddd);}
.bd-more-btn {
    flex: none;
    padding: 0 22px;
    height: 40px;
    border: 1px solid var(--border-color-1, #ccc);
    border-radius: 20px;
    background: var(--white-color-1);
    color: var(--black-color-1);
    font-size: var(--bd-font-sm);
    font-family: inherit;
    cursor: pointer;
    transition: border-color .2s, color .2s;
}
.bd-more-btn:hover {border-color: var(--point-color-1); color: var(--point-color-1);}
.bd-more-btn:disabled {cursor: default; color: #999; border-color: var(--border-color-1, #ccc);}
@media (max-width: 768px) {
    .bd-more-wrap {gap: 10px;}
    .bd-more-btn {padding: 0 16px; height: 36px;}
}

/* ================================================================
   글보기(view)
   ================================================================ */
.bd-view-head {border-bottom: 2px solid var(--point-color-1); padding-bottom: 18px; margin-bottom: 24px;}
/* 상세 카테고리: 목록(리스트형)과 같은 .bd-cate-tag 디자인 사용 — 여기서는 위치(아래 여백)만 지정 */
.bd-view-cate {margin-bottom: 10px; line-height: 1;}
.bd-view-title {font-size: var(--bd-font-lg); font-weight: 700; line-height: 1.4; margin-bottom: 10px; overflow-wrap: break-word;}
.bd-view-meta {display: flex; gap: 14px; font-size: var(--bd-font-sm); color: #999;}
.bd-view-thumb {margin-bottom: 24px; border-radius: 8px; overflow: hidden;}
.bd-view-thumb img {width: 100%; display: block;}
.bd-view-body {font-size: var(--bd-font-md); line-height: 1.8; min-height: 120px; word-break: break-word;}
.bd-view-body img {max-width: 100%;}
.bd-view-files {margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--border-color-1, #e5e5e5);}
.bd-view-files .bd-file-row {display: flex; align-items: center; gap: 8px; font-size: var(--bd-font-sm); margin-bottom: 6px;}
.bd-view-files a {color: var(--point-color-3); text-decoration: underline;}

/* 첨부파일 다운로드 버튼 (리스트형 목록: 아이콘만 / 상세·아코디언: 아이콘+파일명) */
.bd-down-btn {display: inline-flex; align-items: center; justify-content: center; gap: 6px; margin-left: 6px; vertical-align: middle; text-decoration: none;}
.bd-down-btn img {width: 18px; height: 18px; display: block;}
.bd-down-btn:hover {opacity: .7;}
.bd-down-named {margin-left: 0; padding: 6px 12px; border: 1px solid var(--border-color-1, #ddd); border-radius: 6px; color: var(--black-color-1); font-size: var(--bd-font-sm); max-width: 100%;}
.bd-view-files a.bd-down-named {text-decoration: none; color: var(--black-color-1);}
.bd-down-named span {overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0;}
.bd-down-named:hover,
.bd-view-files a.bd-down-named:hover {opacity: 1; border-color: var(--point-color-1); color: var(--point-color-1);}
@media (max-width: 768px) {
    .bd-down-btn img {width: 16px; height: 16px;}
}
.bd-view-fields {margin-top: 24px; display: flex; flex-direction: column; gap: 8px; font-size: var(--bd-font-sm); color: #666; overflow-wrap: break-word;}
.bd-view-fields strong {color: var(--black-color-1); margin-right: 8px;}
.bd-view-footer {display: flex; justify-content: space-between; margin-top: 30px;}

/* ================================================================
   글쓰기(write) — plugin/contact_form 과 동일한 톤의 입력 스타일
   ================================================================ */
.bd-write-form {display: flex; flex-direction: column; gap: 18px;}
.bd-field {display: flex; flex-direction: column; gap: 8px;}
.bd-field-label {font-size: var(--bd-font-sm); font-weight: 700; color: var(--black-color-1);}
.bd-field-label .bd-req {color: #e04545; margin-left: 2px;}
.bd-f-inp, .bd-f-ara, .bd-f-sel {
    width: 100%; border: 1px solid var(--border-color-1, #ccc); border-radius: 6px; padding: 10px 12px;
    font-size: var(--bd-font-md); font-family: inherit; background: var(--white-color-1); color: var(--black-color-1);
}
.bd-f-ara {min-height: 160px; resize: vertical; line-height: 1.6;}
.bd-f-choice {display: flex; flex-wrap: wrap; gap: 14px;}
.bd-f-choice label {display: inline-flex; align-items: center; gap: 6px; font-size: var(--bd-font-sm); cursor: pointer;}
/* 입력란 바로 아래 오류 문구 (첨부파일 형식/용량 등) */
.bd-field-err {margin-top: 6px; color: #e04545; font-size: var(--bd-font-sm); line-height: 1.5; word-break: keep-all;}
.bd-field-err[hidden] {display: none;}
.bd-date-group {display: flex; align-items: center; gap: 8px; flex-wrap: wrap;}
.bd-date-group select {flex: 1; min-width: 80px;}
.bd-file-wrap {position: relative; display: flex; align-items: center;}
.bd-file-wrap .bd-f-inp {padding-right: 46px; cursor: default;}
.bd-file-add {
    position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
    width: 30px; height: 30px; border-radius: 50%; background: var(--point-color-1); color: var(--white-color-1);
    display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 18px; line-height: 1;
}
.bd-file-add:hover {background: var(--point-color-3);}
/* + 아이콘: 구글 머티리얼 아이콘 "add" (Material Symbols Outlined) */
.bd-file-add .material-symbols-outlined {font-size: 22px; line-height: 1;}
.bd-write-btns {display: flex; justify-content: center; gap: 10px; margin-top: 10px;}

/* ── 예약게시 (글쓰기: 날짜·시간 + 오른쪽 스위치 / 목록·상세: 관리자에게만 보이는 "예약" 표시) ── */
.bd-sched-inp:disabled {opacity: .45; cursor: not-allowed;}
.bd-switch {position: relative; display: inline-flex; align-items: center; margin-left: auto; cursor: pointer; flex-shrink: 0;}
.bd-switch input {position: absolute; opacity: 0; width: 0; height: 0;}
.bd-switch-ui {position: relative; width: 44px; height: 24px; border-radius: 24px; background: #cfd4da; transition: background .2s;}
.bd-switch-ui::after {content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s;}
.bd-switch input:checked + .bd-switch-ui {background: #275efe;}
.bd-switch input:checked + .bd-switch-ui::after {transform: translateX(20px);}
.bd-switch input:focus-visible + .bd-switch-ui {box-shadow: 0 0 0 3px rgba(39,94,254,.3);}
.bd-sched-help {margin: 6px 0 0; font-size: var(--bd-font-sm); color: #888;}
.bd-sched {display: inline-block; margin-right: 6px; padding: 2px 7px; border-radius: 4px; background: #fff1bf; color: #8a6a00; font-size: 12px; font-weight: 600; line-height: 1.4; vertical-align: middle; white-space: nowrap;}
