﻿@charset "utf-8";
@import url('./base.css');

/* Existing site: Noto Sans KR, 16px body, 18px card title (16px mobile). */
.ba-board {
    --ba-accent: var(--theme-color, #ff7354);
    font-family: var(--noto, 'Noto Sans KR', 'Malgun Gothic', sans-serif);
    font-size: 16px;
    color: #3e3e3e;
    line-height: 1.6;
    word-break: keep-all;
}
#container #bo_list.ba-board,
#container #bo_v.ba-board,
#container #bo_w.ba-board {
    width: 90%;
    max-width: 1400px;
    margin: 100px auto 120px;
    padding: 0;
    font-size: 16px;
}
#container #bo_v.ba-board,
#container #bo_w.ba-board { max-width: 1200px; }
.ba-board * { box-sizing: border-box; }
.ba-board ul { padding: 0; margin: 0; list-style: none; }
.ba-board a { color: inherit; text-decoration: none; }
.ba-board input, .ba-board select, .ba-board button, .ba-board textarea { font: inherit; }
.ba-board a:focus-visible, .ba-board button:focus-visible,
.ba-board input:focus-visible, .ba-board select:focus-visible { outline: 2px solid var(--ba-accent); outline-offset: 3px; }
.ba-board .sound_only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.ba-categories { border-bottom: 1px solid #ddd; margin-bottom: 35px; }
.ba-categories ul { display: flex; justify-content: center; gap: 40px; }
.ba-categories a { display: block; position: relative; padding: 12px 5px 18px; font-size: 16px; color: #777; }
.ba-categories #bo_cate_on { color: var(--ba-accent); font-weight: 500; }
.ba-categories #bo_cate_on:after { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 2px; background: var(--ba-accent); }
.ba-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.ba-toolbar p { margin: 0; font-size: 14px; }
.ba-toolbar strong { color: var(--ba-accent); font-weight: 500; }
.ba-page-count { color: #888; border-left: 1px solid #ddd; padding-left: 14px; margin-left: 14px; }
.ba-search { display: flex; align-items: center; width: 360px; min-width: 0; height: 44px; border-bottom: 1px solid #bbb; }
.ba-search select { width: 65px; flex-shrink: 0; border: 0; background: transparent; font-size: 14px; color: #777; }
.ba-search input { min-width: 0; flex: 1; padding: 8px; border: 0 !important; background: transparent; box-shadow: none !important; font-size: 14px; color: #3e3e3e; }
.ba-search input::placeholder { color: #888; }
.ba-search button { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; color: #777; }
.ba-member-note { margin: 0 0 25px; padding: 15px 20px; font-size: 14px; background: #f8f8f8; color: #777; }

.ba-grid { display: grid; grid-template-columns: repeat(var(--ba-gallery-cols, 2), minmax(0, 1fr)); gap: 40px 30px; }
.ba-grid .ba-photo { aspect-ratio: var(--ba-photo-ratio, 1 / 1.03); }
.ba-grid .ba-photo img { height: var(--ba-photo-height, 100%); }
.ba-card { min-width: 0; position: relative; border: 1px solid #ddd; background: #fff; }
.ba-card:hover { border-color: var(--ba-accent); }
.ba-pair { display: grid; position: relative; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; background: #fff; }
.ba-photo { position: relative; min-width: 0; margin: 0; aspect-ratio: 1 / 1.03; overflow: hidden; background: #f1f1f1; }
.ba-photo-link { display: block; width: 100%; height: 100%; }
.ba-photo picture { display: block; width: 100%; height: 100%; }
.ba-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ba-photo-label { position: absolute; top: 12px; left: 12px; z-index: 2; padding: 4px 10px; background: #3e3e3ecc; color: #fff; font-size: 12px; line-height: 1.5; pointer-events: none; }
.ba-photo--1 .ba-photo-label { background: var(--ba-accent); }
.ba-photo figcaption { position: absolute; bottom: 0; left: 0; right: 0; padding: 8px 5px; text-align: center; font-size: 12px; color: #777; background: #ffffffe8; pointer-events: none; }
.ba-lock { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 12px; background: #f7f7f7; color: #777 !important; text-align: center; font-size: 14px; }
.ba-lock strong { font-weight: 400; line-height: 1.6; }
.ba-noimage { display: flex; align-items: center; justify-content: center; height: 100%; padding: 12px; font-size: 14px; color: #888; text-align: center; }
.ba-card-info { display: block; padding: 20px 25px; }
.ba-card-category { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ba-accent); }
.ba-best { padding: 1px 5px; border: 1px solid #ddd; font-size: 12px; line-height: 1.4; color: #777; }
.ba-card h3 { margin: 8px 0 0; font-size: 18px; font-weight: 500; line-height: 1.5; overflow-wrap: anywhere; }
.ba-card-meta { margin: 10px 0 0; font-size: 14px; color: #777; line-height: 1.6; }
.ba-empty { padding: 80px 20px; text-align: center; border-top: 1px solid #ddd; }
.ba-empty strong { font-weight: 500; }
.ba-empty p { margin: 12px 0 25px; color: #777; }
.ba-select-all { display: block; margin-bottom: 15px; font-size: 14px; }
.ba-select { position: absolute; top: 52px; left: 12px; z-index: 3; }
.ba-admin { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 30px; }
.ba-admin > div { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ba-board .ba-admin .ba-button { height: 44px; min-height: 44px; margin: 0; padding: 0 20px; font-size: 14px; line-height: 1; vertical-align: middle; flex-shrink: 0; }
.ba-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 22px; border: 1px solid var(--ba-accent); color: #fff !important; background: var(--ba-accent); font-size: 14px; cursor: pointer; }
.ba-button--line { color: #777 !important; background: #fff; border-color: #ccc; }
.ba-pagination { display: flex; justify-content: center; margin: 40px 0; }
.ba-pagination .pg_wrap, .ba-pagination .pg { display: flex; align-items: center; gap: 6px; float: none; margin: 0; }
.ba-pagination .pg_page, .ba-pagination .pg_current { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 0; background: none; color: #777; font-size: 14px; }
.ba-pagination .pg_current { background: var(--ba-accent); color: #fff; font-weight: 400; }
.ba-disclaimer { display: flex; gap: 30px; padding: 24px; background: #f8f8f8; font-size: 14px; line-height: 1.8; color: #777; }
.ba-disclaimer strong { flex-shrink: 0; font-weight: 500; }
.ba-disclaimer p { margin: 0; }

.ba-back { font-size: 14px; color: #777 !important; }
.ba-view-header { padding: 30px 0; text-align: center; }
.ba-eyebrow { font-size: 14px; color: var(--ba-accent); }
.ba-view-header h2 { margin: 10px 0; font-size: 24px; line-height: 1.5; font-weight: 500; overflow-wrap: anywhere; }
.ba-view-header p { margin: 0; color: #777; font-size: 14px; }
.ba-view .ba-photo { aspect-ratio: 1; }
.ba-view .ba-pair { margin-bottom: 30px; }
.ba-case-info { margin: 0 0 35px; border-top: 1px solid #ddd; }
.ba-case-info > div { display: grid; grid-template-columns: 170px minmax(0, 1fr); border-bottom: 1px solid #e8e8e8; }
.ba-case-info dt, .ba-case-info dd { margin: 0; padding: 18px 24px; font-size: 14px; line-height: 1.8; }
.ba-case-info dt { background: #f8f8f8; font-weight: 500; }
.ba-case-info dd { overflow-wrap: anywhere; white-space: normal; }
.ba-progress { margin: 40px 0; }
.ba-progress h3 { margin: 0 0 20px; font-size: 18px; font-weight: 500; }
.ba-view-description { margin: 25px 0 35px; font-size: 16px; line-height: 1.8; color: #777; overflow-wrap: anywhere; }
.ba-view-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 30px 0; }
.ba-extra-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 25px; margin: 20px 0 30px; }
.ba-extra-photo { margin: 0; min-width: 0; }
.ba-extra-photo img { display: block; width: 100%; height: auto; }
.ba-extra-photo figcaption { padding: 12px; text-align: center; font-size: 14px; color: #777; background: #f8f8f8; }
.ba-post-nav a { display: flex; gap: 30px; border-top: 1px solid #ddd; padding: 18px 4px; font-size: 14px; color: #777; }
.ba-post-nav a span { min-width: 0; color: #3e3e3e; overflow-wrap: anywhere; }

#container #bo_w.ba-board form { width: 100% !important; }
#container #bo_w.ba-board .write_div { margin: 0 0 20px; }
#container #bo_w.ba-board label { font-size: 14px; color: #777; }
#container #bo_w.ba-board input[type=text], #container #bo_w.ba-board select, #container #bo_w.ba-board textarea { max-width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 0; background: #fff; font-size: 16px; }
#container #bo_w.ba-board select { width: 100%; height: 48px; min-height: 48px; padding: 0 38px 0 14px; line-height: normal; }
#container #bo_w.ba-board select option { line-height: normal; }
#container #bo_w.ba-board .bo_w_flie[hidden], .ba-add-photos[hidden] { display: none; }
.ba-add-photos { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 24px 0 12px; }
.ba-add-photos p { margin: 0; font-size: 14px; color: #777; }
.ba-add-photos .ba-button:disabled { cursor: default; opacity: .5; }
#container #bo_w.ba-board textarea { width: 100%; resize: vertical; }
#container #bo_w.ba-board .bo_w_flie { display: block; padding: 25px; border: 1px solid #ddd; }
#container #bo_w.ba-board .bo_w_flie strong { font-size: 16px; font-weight: 500; }
#container #bo_w.ba-board .bo_w_flie dl { display: flex; width: 100%; gap: 20px; margin: 15px 0 0; padding: 0; }
#container #bo_w.ba-board .bo_w_flie dt { width: 90px; flex-shrink: 0; }
#container #bo_w.ba-board .bo_w_flie dd { flex: 1; min-width: 0; }
#container #bo_w.ba-board .frm_file { display: block; width: 100%; max-width: 100%; height: auto; padding: 0; margin: 0; font-size: 14px; }
#container #bo_w.ba-board .btn_confirm { display: flex; justify-content: center; gap: 12px; margin-top: 30px; }
#container #bo_w.ba-board .ba-write-title { margin: 0 0 30px; font-size: 24px; font-weight: 500; }
#container #bo_w.ba-board .ba-info-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding: 24px; margin: 25px 0; border: 1px solid #ddd; }
#container #bo_w.ba-board .ba-info-fields legend { padding: 0 8px; font-size: 16px; font-weight: 500; }
#container #bo_w.ba-board .ba-info-fields .write_div { margin: 0; min-width: 0; }
#container #bo_w.ba-board .ba-info-fields label { display: block; margin: 0 0 8px; }
#container #bo_w.ba-board .ba-info-fields input { width: 100%; }
#container #bo_w.ba-board .ba-info-wide { grid-column: 1 / -1; }
.ba-file-help { margin: 8px 0 15px; font-size: 12px; color: #777; }
.ba-attachment-preview { display: block; width: 130px; max-width: 100%; height: auto; margin: 0 0 12px; }
.ba-attachment-preview[hidden] { display: none; }

@media (max-width: 900px) {
    .ba-extra-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ba-categories ul { gap: 25px; }
    .ba-grid { grid-template-columns: repeat(var(--ba-tablet-cols, 2), minmax(0, 1fr)); gap: 30px 20px; }
    .ba-card-info { padding: 18px; }
}
@media (max-width: 768px) {
    .ba-board { font-size: 14px; }
    #container #bo_list.ba-board, #container #bo_v.ba-board, #container #bo_w.ba-board { margin: 60px auto; font-size: 14px; }
    .ba-categories a { font-size: 14px; }
    .ba-card h3 { font-size: 16px; }
    .ba-card-category, .ba-card-meta, .ba-toolbar p, .ba-search select, .ba-search input,
    .ba-disclaimer, .ba-post-nav a, .ba-eyebrow, .ba-view-header p, .ba-back,
    .ba-button, .ba-member-note { font-size: 12px; }
    .ba-view-description { font-size: 14px; }
    .ba-case-info dt, .ba-case-info dd { font-size: 12px; padding: 14px 16px; }
    .ba-progress h3 { font-size: 16px; }
    .ba-add-photos p { font-size: 12px; }
    .ba-board .ba-admin .ba-button { height: 40px; min-height: 40px; padding: 0 14px; font-size: 12px; }
    .ba-view-header h2 { font-size: 20px; }
    .ba-search { width: 320px; }
    .ba-search input, .ba-search select { font-size: 16px; }
}
@media (max-width: 600px) {
    #container #bo_list.ba-board, #container #bo_v.ba-board, #container #bo_w.ba-board { width: calc(100% - 36px); margin: 40px auto 60px; }
    .ba-categories { margin-bottom: 20px; }
    .ba-categories ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
    .ba-categories a { padding: 12px 3px; text-align: center; }
    .ba-toolbar { flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
    .ba-search { width: 100%; }
    .ba-grid { grid-template-columns: minmax(0, 1fr); gap: 25px; }
    .ba-grid .ba-photo { aspect-ratio: var(--ba-mobile-photo-ratio, var(--ba-photo-ratio, 1 / 1.03)); }
    .ba-grid .ba-photo img { height: var(--ba-mobile-photo-height, var(--ba-photo-height, 100%)); }
    .ba-extra-grid { grid-template-columns: minmax(0, 1fr); }
    .ba-case-info > div { grid-template-columns: 110px minmax(0, 1fr); }
    .ba-case-info dt, .ba-case-info dd { padding: 12px; }
    #container #bo_w.ba-board .ba-info-fields { grid-template-columns: minmax(0, 1fr); padding: 16px; }
    .ba-card-info { padding: 18px; }
    .ba-photo-label { left: 8px; top: 8px; padding: 3px 8px; }
    .ba-photo figcaption { padding: 6px 3px; }
    .ba-lock { gap: 8px; font-size: 12px; padding: 8px; }
    .ba-disclaimer { flex-direction: column; gap: 8px; padding: 18px; }
    .ba-member-note { padding: 14px; }
    .ba-view-header { padding: 25px 0; }
    .ba-admin { flex-wrap: wrap; }
    #container #bo_w.ba-board .bo_w_flie { padding: 16px; }
    #container #bo_w.ba-board .bo_w_flie dl { flex-direction: column; gap: 8px; }
    #container #bo_w.ba-board .bo_w_flie dt { width: auto; }
    #container #bo_w.ba-board .bo_w_flie label { margin: 0; }
}
