@charset "utf-8";

/* ==========================================================================
   mmatch-board : Modern Responsive Board Skin for Marketing Site
   ========================================================================== */

:root {
    --mm-primary: #2563eb;
    --mm-primary-hover: #1d4ed8;
    --mm-primary-light: #eff6ff;
    --mm-primary-border: #bfdbfe;
    
    --mm-bg-body: #ffffff;
    --mm-bg-card: #ffffff;
    --mm-bg-sub: #f8fafc;
    --mm-bg-sub-hover: #f1f5f9;
    --mm-bg-input: #ffffff;
    
    --mm-border: #e2e8f0;
    --mm-border-light: #f1f5f9;
    --mm-border-focus: #3b82f6;
    
    --mm-text-main: #0f172a;
    --mm-text-sub: #475569;
    --mm-text-muted: #94a3b8;
    
    --mm-notice-bg: #fffbeb;
    --mm-notice-border: #fde68a;
    --mm-notice-text: #d97706;
    
    --mm-danger: #ef4444;
    --mm-success: #10b981;
    
    --mm-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --mm-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --mm-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    
    --mm-radius-sm: 6px;
    --mm-radius-md: 10px;
    --mm-radius-lg: 14px;
    --mm-radius-full: 9999px;
}

/* Dark Mode Integration */
html.dark {
    --mm-primary: #3b82f6;
    --mm-primary-hover: #60a5fa;
    --mm-primary-light: rgba(59, 130, 246, 0.15);
    --mm-primary-border: #2563eb;
    
    --mm-bg-body: #121214;
    --mm-bg-card: #1e1e24;
    --mm-bg-sub: #27272a;
    --mm-bg-sub-hover: #333338;
    --mm-bg-input: #242428;
    
    --mm-border: #2e2e34;
    --mm-border-light: #242428;
    --mm-border-focus: #3b82f6;
    
    --mm-text-main: #f8fafc;
    --mm-text-sub: #cbd5e1;
    --mm-text-muted: #64748b;
    
    --mm-notice-bg: #292212;
    --mm-notice-border: #44371b;
    --mm-notice-text: #f59e0b;
    
    --mm-danger: #f87171;
    --mm-success: #34d399;
    
    --mm-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --mm-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --mm-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
}

/* Base Wrapper */
#bo_list, #bo_v, #bo_w {
    max-width: 100%;
    margin: 15px auto 40px;
    font-size: 15px;
    color: var(--mm-text-main);
    line-height: 1.6;
    box-sizing: border-box;
}

#bo_list *, #bo_v *, #bo_w * {
    box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   1. Category Navigation (#bo_cate)
   -------------------------------------------------------------------------- */
#bo_cate {
    margin-bottom: 20px;
    position: relative;
}

#bo_cate h2 {
    display: none;
}

#bo_cate ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}

#bo_cate li {
    flex-shrink: 0;
}

#bo_cate a {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    border-radius: var(--mm-radius-full);
    background: var(--mm-bg-sub);
    color: var(--mm-text-sub);
    border: 1px solid var(--mm-border);
    font-size: 0.93rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

#bo_cate a:hover {
    background: var(--mm-bg-sub-hover);
    color: var(--mm-primary);
    border-color: var(--mm-primary-border);
}

#bo_cate #bo_cate_on {
    background: var(--mm-primary) !important;
    color: #ffffff !important;
    border-color: var(--mm-primary) !important;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.35);
}

/* Mobile Category Horizontal Scroll */
@media (max-width: 768px) {
    #bo_cate {
        margin: 0 -15px 16px;
        padding: 0 15px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    #bo_cate::-webkit-scrollbar {
        display: none;
    }
    #bo_cate ul {
        flex-wrap: nowrap;
        padding-bottom: 4px;
    }
    #bo_cate a {
        padding: 6px 14px;
        font-size: 0.88rem;
    }
}

/* --------------------------------------------------------------------------
   2. Top Bar & Buttons (#bo_btn_top)
   -------------------------------------------------------------------------- */
#bo_btn_top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    padding: 0 2px;
}

#bo_list_total {
    font-size: 0.92rem;
    color: var(--mm-text-sub);
}

#bo_list_total b {
    color: var(--mm-primary);
    font-weight: 700;
}

.btn_bo_user {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}

.btn_bo_user .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: var(--mm-radius-sm);
    background: var(--mm-bg-card);
    border: 1px solid var(--mm-border);
    color: var(--mm-text-sub);
    font-size: 0.92rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn_bo_user .btn:hover {
    background: var(--mm-bg-sub);
    color: var(--mm-primary);
    border-color: var(--mm-primary-border);
}

.btn_bo_user .btn_admin {
    color: #f59e0b;
}

.btn_bo_user .btn_admin:hover {
    color: #d97706;
}

.btn_bo_write {
    background: var(--mm-primary) !important;
    color: #ffffff !important;
    border-color: var(--mm-primary) !important;
    font-weight: 600;
}

.btn_bo_write:hover {
    background: var(--mm-primary-hover) !important;
    border-color: var(--mm-primary-hover) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}

/* More Option Dropdown */
.more_opt {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 130px;
    background: var(--mm-bg-card);
    border: 1px solid var(--mm-border);
    border-radius: var(--mm-radius-md);
    box-shadow: var(--mm-shadow-lg);
    padding: 6px 0;
    z-index: 100;
    list-style: none;
}

.more_opt li button, .more_opt li a {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 14px;
    background: none;
    border: none;
    color: var(--mm-text-main);
    font-size: 0.9rem;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s;
}

.more_opt li button:hover, .more_opt li a:hover {
    background: var(--mm-bg-sub);
    color: var(--mm-primary);
}

/* --------------------------------------------------------------------------
   3. Board List Structure (.board-list-wrap)
   -------------------------------------------------------------------------- */
.board-list-wrap {
    background: var(--mm-bg-card);
    border: 1px solid var(--mm-border);
    border-radius: var(--mm-radius-md);
    overflow: hidden;
    box-shadow: var(--mm-shadow-sm);
}

/* Desktop Header */
.board-header {
    display: flex;
    align-items: center;
    background: var(--mm-bg-sub);
    border-bottom: 1px solid var(--mm-border);
    padding: 12px 16px;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--mm-text-sub);
    text-align: center;
}

.board-row {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid var(--mm-border);
    transition: background 0.15s ease;
}

.board-row:last-child {
    border-bottom: none;
}

.board-row:hover {
    background: var(--mm-bg-sub);
}

.board-row.bo_notice {
    background: var(--mm-notice-bg);
}

.board-row.bo_notice:hover {
    background: var(--mm-notice-bg);
    filter: brightness(0.97);
}

/* Column Dimensions (Desktop) */
.td-chk {
    width: 36px;
    text-align: center;
    flex-shrink: 0;
}

.td-num {
    width: 60px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--mm-text-muted);
    flex-shrink: 0;
}

.td-subject {
    flex: 1;
    min-width: 0;
    text-align: left;
    padding: 0 14px;
}

.td-name {
    width: 120px;
    text-align: left;
    font-size: 0.92rem;
    color: var(--mm-text-main);
    flex-shrink: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.td-date {
    width: 90px;
    text-align: center;
    font-size: 0.88rem;
    color: var(--mm-text-muted);
    flex-shrink: 0;
}

.td-hit {
    width: 70px;
    text-align: center;
    font-size: 0.88rem;
    color: var(--mm-text-muted);
    flex-shrink: 0;
}

.td-good {
    width: 60px;
    text-align: center;
    font-size: 0.88rem;
    color: var(--mm-primary);
    flex-shrink: 0;
}

/* Subject styling inside row */
.bo_tit {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.bo_cate_link {
    display: inline-block;
    padding: 2px 8px;
    border-radius: var(--mm-radius-sm);
    background: var(--mm-bg-sub);
    border: 1px solid var(--mm-border);
    color: var(--mm-text-sub);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    margin-right: 4px;
}

.notice_icon {
    display: inline-block;
    padding: 2px 8px;
    border-radius: var(--mm-radius-sm);
    background: var(--mm-notice-text);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Visibility Utilities */
.pc_hidden {
    display: none !important;
}

.mobile_hidden {
    display: inline-flex !important;
}

.bo_current {
    color: var(--mm-primary);
    font-weight: 700;
}

.bo_tit a.bo_subject_link {
    color: var(--mm-text-main);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s;
    word-break: break-word;
}

.bo_tit a.bo_subject_link:hover {
    color: var(--mm-primary);
    text-decoration: underline;
}

.bo_notice .bo_subject_link {
    font-weight: 600;
}

/* Badges & Icons */
.new_icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 4px;
    background: #ef4444;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
}

.bo_cmt {
    display: inline-flex;
    align-items: center;
    padding: 1px 7px;
    border-radius: var(--mm-radius-full);
    background: var(--mm-primary-light);
    color: var(--mm-primary);
    font-size: 0.8rem;
    font-weight: 700;
    margin-left: 2px;
}

.empty_table {
    padding: 50px 20px;
    text-align: center;
    color: var(--mm-text-muted);
    font-size: 0.95rem;
}

/* Custom Checkbox */
.chk_box {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.chk_box input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.chk_box label {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    user-select: none;
}

.chk_box label > span:first-child,
.chk_box label .chk_ico {
    display: inline-block;
    width: 18px;
    height: 18px;
    min-width: 18px;
    border-radius: 4px;
    border: 1px solid var(--mm-border);
    background: var(--mm-bg-card);
    transition: all 0.2s ease;
    position: relative;
    flex-shrink: 0;
}

.chk_box input[type="checkbox"]:checked + label > span:first-child,
.chk_box input[type="checkbox"]:checked + label .chk_ico {
    background: var(--mm-primary);
    border-color: var(--mm-primary);
}

.chk_box input[type="checkbox"]:checked + label > span:first-child:after,
.chk_box input[type="checkbox"]:checked + label .chk_ico:after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.chk_box label .chk_text {
    font-size: 0.9rem;
    color: var(--mm-text-sub);
    white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Mobile Transformation for List (Max-width: 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .pc_hidden {
        display: inline-flex !important;
    }

    .mobile_hidden {
        display: none !important;
    }

    .board-header {
        display: none;
    }
    
    .board-row {
        flex-direction: column;
        align-items: flex-start;
        padding: 14px 16px;
        position: relative;
        gap: 6px;
    }
    
    .td-chk {
        position: absolute;
        top: 14px;
        right: 14px;
        width: auto;
        z-index: 2;
    }
    
    .td-num {
        display: none;
    }
    
    .td-subject {
        width: 100%;
        padding: 0;
        padding-right: 30px; /* Space for checkbox */
    }
    
    .bo_tit a.bo_subject_link {
        font-size: 1.02rem;
        line-height: 1.45;
    }
    
    /* Mobile Meta Info Row */
    .td-mobile-meta {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 8px 12px;
        width: 100%;
        font-size: 0.82rem;
        color: var(--mm-text-muted);
        margin-top: 4px;
    }
    
    .td-mobile-meta .meta-item {
        display: inline-flex;
        align-items: center;
        gap: 4px;
    }
    
    .td-mobile-meta .meta-writer {
        color: var(--mm-text-sub);
        font-weight: 500;
    }
    
    .td-name, .td-date, .td-hit, .td-good {
        display: none;
    }
}

@media (min-width: 769px) {
    .td-mobile-meta {
        display: none;
    }
}

/* --------------------------------------------------------------------------
   4. Search Modal Overlay (.bo_sch_wrap)
   -------------------------------------------------------------------------- */
.bo_sch_wrap {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(2px);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.bo_sch {
    background: var(--mm-bg-card);
    border: 1px solid var(--mm-border);
    border-radius: var(--mm-radius-lg);
    box-shadow: var(--mm-shadow-lg);
    width: 100%;
    max-width: 440px;
    padding: 24px;
    position: relative;
    box-sizing: border-box;
}

.bo_sch h3 {
    margin: 0 0 16px 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--mm-text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.bo_sch .bo_sch_cls {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--mm-text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.15s;
}

.bo_sch .bo_sch_cls:hover {
    color: var(--mm-text-main);
    background: var(--mm-bg-sub);
}

.bo_sch select {
    width: 100%;
    height: 42px;
    border-radius: var(--mm-radius-sm);
    border: 1px solid var(--mm-border);
    background: var(--mm-bg-input);
    color: var(--mm-text-main);
    padding: 0 12px;
    font-size: 0.95rem;
    margin-bottom: 12px;
    outline: none;
}

.bo_sch .sch_bar {
    display: flex;
    align-items: center;
    border: 1px solid var(--mm-border);
    border-radius: var(--mm-radius-sm);
    background: var(--mm-bg-input);
    overflow: hidden;
    transition: border-color 0.2s;
}

.bo_sch .sch_bar:focus-within {
    border-color: var(--mm-border-focus);
}

.bo_sch .sch_input {
    flex: 1;
    height: 42px;
    border: none;
    background: transparent;
    padding: 0 14px;
    font-size: 0.95rem;
    color: var(--mm-text-main);
    outline: none;
}

.bo_sch .sch_btn {
    width: 50px;
    height: 42px;
    border: none;
    background: var(--mm-primary);
    color: #ffffff;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bo_sch .sch_btn:hover {
    background: var(--mm-primary-hover);
}

/* --------------------------------------------------------------------------
   5. Detail View (#bo_v)
   -------------------------------------------------------------------------- */
#bo_v {
    background: var(--mm-bg-card);
    border: 1px solid var(--mm-border);
    border-radius: var(--mm-radius-lg);
    box-shadow: var(--mm-shadow-sm);
    overflow: hidden;
    padding: 28px;
}

@media (max-width: 768px) {
    #bo_v {
        padding: 18px 16px;
        border-radius: var(--mm-radius-md);
    }
}

#bo_v_title {
    margin: 0 0 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--mm-border);
}

.bo_v_cate {
    display: inline-block;
    padding: 4px 10px;
    border-radius: var(--mm-radius-sm);
    background: var(--mm-primary-light);
    color: var(--mm-primary);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.bo_v_tit {
    display: block;
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--mm-text-main);
    line-height: 1.4;
    word-break: break-word;
}

@media (max-width: 768px) {
    .bo_v_tit {
        font-size: 1.25rem;
    }
}

/* View Meta Bar (#bo_v_info) */
#bo_v_info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--mm-border-light);
}

#bo_v_info .profile_info {
    display: flex;
    align-items: center;
    gap: 12px;
}

#bo_v_info .pf_img img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--mm-border);
}

#bo_v_info .profile_info_ct {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.profile_info_ct .writer-name {
    font-weight: 600;
    color: var(--mm-text-main);
    font-size: 1rem;
}

.profile_info_ct .meta-sub {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.84rem;
    color: var(--mm-text-muted);
}

#bo_v_top {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Content Area (#bo_v_atc) */
#bo_v_atc {
    min-height: 180px;
    padding: 10px 0 30px;
    line-height: 1.8;
    color: var(--mm-text-main);
    font-size: 1.02rem;
    word-break: break-word;
}

#bo_v_img {
    margin-bottom: 20px;
    text-align: center;
}

#bo_v_img img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: var(--mm-radius-md);
    margin: 10px auto;
}

#bo_v_con img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: var(--mm-radius-sm);
}

#bo_v_con table {
    max-width: 100% !important;
    display: block;
    overflow-x: auto;
}

#bo_v_con iframe, #bo_v_con video {
    max-width: 100%;
}

/* Like / Dislike (#bo_v_act) */
#bo_v_act {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 30px 0 20px;
}

.bo_v_act_gng a, .bo_v_act_gng span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: var(--mm-radius-full);
    border: 1px solid var(--mm-border);
    background: var(--mm-bg-sub);
    color: var(--mm-text-sub);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.bo_v_act_gng a.bo_v_good:hover {
    background: var(--mm-primary-light);
    color: var(--mm-primary);
    border-color: var(--mm-primary-border);
}

.bo_v_act_gng a.bo_v_nogood:hover {
    background: #fef2f2;
    color: var(--mm-danger);
    border-color: #fecaca;
}

/* Files & Links (#bo_v_file, #bo_v_link) */
#bo_v_file, #bo_v_link {
    margin: 20px 0;
    background: var(--mm-bg-sub);
    border: 1px solid var(--mm-border);
    border-radius: var(--mm-radius-md);
    padding: 14px 18px;
}

#bo_v_file h2, #bo_v_link h2 {
    display: none;
}

#bo_v_file ul, #bo_v_link ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#bo_v_file li, #bo_v_link li {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.92rem;
    color: var(--mm-text-sub);
}

#bo_v_file a, #bo_v_link a {
    color: var(--mm-text-main);
    font-weight: 500;
    text-decoration: none;
    word-break: break-all;
    transition: color 0.15s;
}

#bo_v_file a:hover, #bo_v_link a:hover {
    color: var(--mm-primary);
    text-decoration: underline;
}

.bo_v_file_cnt, .bo_v_link_cnt {
    font-size: 0.82rem;
    color: var(--mm-text-muted);
}

/* Prev/Next Navigation (.bo_v_nb) */
.bo_v_nb {
    list-style: none;
    padding: 0;
    margin: 30px 0 20px;
    border-top: 1px solid var(--mm-border);
    border-bottom: 1px solid var(--mm-border);
}

.bo_v_nb li {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    border-bottom: 1px solid var(--mm-border-light);
    gap: 12px;
    font-size: 0.93rem;
}

.bo_v_nb li:last-child {
    border-bottom: none;
}

.bo_v_nb .nb_tit {
    flex-shrink: 0;
    width: 65px;
    color: var(--mm-text-muted);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.bo_v_nb a {
    flex: 1;
    min-width: 0;
    color: var(--mm-text-main);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bo_v_nb a:hover {
    color: var(--mm-primary);
}

.bo_v_nb .nb_date {
    flex-shrink: 0;
    font-size: 0.82rem;
    color: var(--mm-text-muted);
}

/* --------------------------------------------------------------------------
   6. Comments Section (#bo_vc, #bo_vc_w)
   -------------------------------------------------------------------------- */
.cmt_btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 18px;
    border-radius: var(--mm-radius-md);
    background: var(--mm-bg-sub);
    border: 1px solid var(--mm-border);
    color: var(--mm-text-main);
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    margin: 30px 0 16px;
}

#bo_vc h2 {
    display: none;
}

#bo_vc article {
    display: flex;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid var(--mm-border-light);
    position: relative;
    box-sizing: border-box;
}

#bo_vc .pf_img img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--mm-border);
}

#bo_vc .cm_wrap {
    flex: 1;
    min-width: 0;
}

#bo_vc header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 6px;
}

#bo_vc header h2 {
    display: none;
}

#bo_vc .member, #bo_vc .guest {
    font-weight: 600;
    color: var(--mm-text-main);
    font-size: 0.95rem;
}

.bo_vc_hdinfo {
    font-size: 0.82rem;
    color: var(--mm-text-muted);
}

.cmt_contents {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--mm-text-main);
    word-break: break-word;
}

.cmt_contents p {
    margin: 0;
}

.bo_vl_opt {
    position: absolute;
    top: 16px;
    right: 0;
}

.bo_vl_opt .btn_cm_opt {
    width: 28px;
    height: 28px;
    background: none;
    border: none;
    color: var(--mm-text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.bo_vl_opt .btn_cm_opt:hover {
    color: var(--mm-text-main);
    background: var(--mm-bg-sub);
}

.bo_vc_act {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 100px;
    background: var(--mm-bg-card);
    border: 1px solid var(--mm-border);
    border-radius: var(--mm-radius-sm);
    box-shadow: var(--mm-shadow-md);
    list-style: none;
    padding: 4px 0;
    margin: 0;
    z-index: 10;
}

.bo_vc_act li a {
    display: block;
    padding: 6px 12px;
    color: var(--mm-text-main);
    font-size: 0.88rem;
    text-decoration: none;
}

.bo_vc_act li a:hover {
    background: var(--mm-bg-sub);
    color: var(--mm-primary);
}

/* Comment Replies (Clamped for Mobile) */
.comment-reply-indent {
    border-left: 2px solid var(--mm-border);
    padding-left: 14px !important;
}

@media (max-width: 768px) {
    /* Limit nested indentation on small mobile screens */
    #bo_vc article[style*="margin-left"] {
        margin-left: 14px !important;
        border-left: 2px solid var(--mm-primary-border);
        padding-left: 10px;
    }
}

/* Comment Write Form (#bo_vc_w) */
#bo_vc_w {
    background: var(--mm-bg-sub);
    border: 1px solid var(--mm-border);
    border-radius: var(--mm-radius-md);
    padding: 16px;
    margin-top: 24px;
}

#bo_vc_w h2 {
    display: none;
}

#bo_vc_w textarea {
    width: 100%;
    min-height: 90px;
    padding: 12px;
    border: 1px solid var(--mm-border);
    border-radius: var(--mm-radius-sm);
    background: var(--mm-bg-input);
    color: var(--mm-text-main);
    font-size: 0.95rem;
    line-height: 1.5;
    outline: none;
    resize: vertical;
    transition: border-color 0.2s;
}

#bo_vc_w textarea:focus {
    border-color: var(--mm-border-focus);
}

.bo_vc_w_wr {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}

.bo_vc_w_info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.bo_vc_w_info .frm_input {
    height: 38px;
    padding: 0 10px;
    border: 1px solid var(--mm-border);
    border-radius: var(--mm-radius-sm);
    background: var(--mm-bg-input);
    color: var(--mm-text-main);
    font-size: 0.9rem;
    outline: none;
}

#bo_vc_w .btn_submit {
    height: 38px;
    padding: 0 20px;
    border-radius: var(--mm-radius-sm);
    background: var(--mm-primary);
    border: none;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

#bo_vc_w .btn_submit:hover {
    background: var(--mm-primary-hover);
}

/* --------------------------------------------------------------------------
   7. Write Form (#bo_w)
   -------------------------------------------------------------------------- */
#bo_w {
    background: var(--mm-bg-card);
    border: 1px solid var(--mm-border);
    border-radius: var(--mm-radius-lg);
    box-shadow: var(--mm-shadow-sm);
    padding: 30px;
}

@media (max-width: 768px) {
    #bo_w {
        padding: 18px 14px;
        border-radius: var(--mm-radius-md);
    }
}

.write_div {
    margin-bottom: 16px;
    position: relative;
}

.bo_v_option {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.bo_w_select select {
    width: 100%;
    height: 44px;
    border: 1px solid var(--mm-border);
    border-radius: var(--mm-radius-sm);
    background: var(--mm-bg-input);
    color: var(--mm-text-main);
    padding: 0 14px;
    font-size: 0.95rem;
    outline: none;
}

/* 2-Column Responsive Form Fields */
.bo_w_info_grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (max-width: 768px) {
    .bo_w_info_grid {
        grid-template-columns: 1fr;
    }
}

.bo_w_info_grid .frm_input {
    width: 100%;
    height: 44px;
    border: 1px solid var(--mm-border);
    border-radius: var(--mm-radius-sm);
    background: var(--mm-bg-input);
    color: var(--mm-text-main);
    padding: 0 14px;
    font-size: 0.95rem;
    outline: none;
}

.bo_w_tit .frm_input {
    width: 100%;
    height: 46px;
    border: 1px solid var(--mm-border);
    border-radius: var(--mm-radius-sm);
    background: var(--mm-bg-input);
    color: var(--mm-text-main);
    padding: 0 130px 0 14px;
    font-size: 1rem;
    font-weight: 500;
    outline: none;
}

#btn_autosave {
    position: absolute;
    top: 6px;
    right: 6px;
    height: 34px;
    padding: 0 12px;
    border-radius: var(--mm-radius-sm);
    background: var(--mm-bg-sub);
    border: 1px solid var(--mm-border);
    color: var(--mm-text-sub);
    font-size: 0.85rem;
    cursor: pointer;
}

#btn_autosave:hover {
    background: var(--mm-bg-sub-hover);
    color: var(--mm-primary);
}

#autosave_pop {
    display: none;
    position: absolute;
    top: 50px;
    right: 0;
    width: 320px;
    max-width: 95vw;
    background: var(--mm-bg-card);
    border: 1px solid var(--mm-border);
    border-radius: var(--mm-radius-md);
    box-shadow: var(--mm-shadow-lg);
    z-index: 99;
    padding: 16px;
}

#autosave_pop strong {
    display: block;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: var(--mm-text-main);
}

#autosave_pop ul {
    list-style: none;
    padding: 0;
    margin: 0 0 12px 0;
    max-height: 180px;
    overflow-y: auto;
}

#autosave_pop li {
    padding: 8px;
    border-bottom: 1px solid var(--mm-border-light);
    font-size: 0.88rem;
    display: flex;
    justify-content: space-between;
}

#autosave_pop .autosave_close {
    width: 100%;
    height: 32px;
    border: 1px solid var(--mm-border);
    border-radius: var(--mm-radius-sm);
    background: var(--mm-bg-sub);
    color: var(--mm-text-sub);
    cursor: pointer;
}

/* Links & Files in Write Form */
.bo_w_link .frm_input, .bo_w_flie .frm_input {
    width: 100%;
    height: 42px;
    border: 1px solid var(--mm-border);
    border-radius: var(--mm-radius-sm);
    background: var(--mm-bg-input);
    color: var(--mm-text-main);
    padding: 0 12px;
    font-size: 0.92rem;
    outline: none;
}

.bo_w_flie .file_wr {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border: 1px dashed var(--mm-border);
    border-radius: var(--mm-radius-sm);
    background: var(--mm-bg-sub);
    margin-bottom: 6px;
}

.bo_w_flie .frm_file {
    font-size: 0.88rem;
    color: var(--mm-text-sub);
}

.bo_w_flie .file_del {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--mm-danger);
    margin-top: 4px;
}

/* Form Action Buttons */
.btn_confirm {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.btn_confirm .btn_submit {
    height: 46px;
    padding: 0 32px;
    border-radius: var(--mm-radius-sm);
    background: var(--mm-primary);
    border: none;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.btn_confirm .btn_submit:hover {
    background: var(--mm-primary-hover);
}

.btn_confirm .btn_cancel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    padding: 0 24px;
    border-radius: var(--mm-radius-sm);
    background: var(--mm-bg-sub);
    border: 1px solid var(--mm-border);
    color: var(--mm-text-sub);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s;
}

.btn_confirm .btn_cancel:hover {
    background: var(--mm-bg-sub-hover);
    color: var(--mm-text-main);
}
