@charset "utf-8";

/**
 * gn_head.php(사이트 테마·Bootstrap)와 그누보드 게시판 스킨 충돌 완화
 * 게시판 마크업은 .durimat-board-main 안에만 옵니다.
 */

/* 테마 style.css .section-empty { overflow:hidden } → 글보기 상단 플로트 버튼 잘림 방지 */
#durimat-gn-shell .section-empty,
#durimat-gn-shell .durimat-board-main,
#durimat-gn-shell #bo_v_info,
#durimat-gn-shell #bo_v_top,
#durimat-gn-shell #bo_w {
    overflow: visible !important;
}

/* 블로그 글쓰기 하단 버튼·푸터 겹침 방지 */
#durimat-gn-shell #bo_w.durimat-blog-write {
    padding-bottom: 80px !important;
    margin-bottom: 40px !important;
}
#durimat-gn-shell .section-empty.no-padding-bottom > .container.content:has(#bo_w.durimat-blog-write) {
    padding-bottom: 80px !important;
}

#durimat-gn-shell #bo_v_info,
#durimat-gn-shell #bo_btn_top {
    position: relative;
    z-index: 5;
    overflow: visible !important;
}

/* 게시판 본문: 그누보드 PC 기본(0.75em ≈ 12px)에 맞춤 */
#durimat-gn-shell .durimat-board-main {
    font-family: "Malgun Gothic", dotum, sans-serif;
    font-size: 0.80em;
    line-height: 1.5;
    color: #000;
}

#durimat-gn-shell .durimat-board-main,
#durimat-gn-shell .durimat-board-main * {
    box-sizing: border-box;
}

/* 테마 style.css 전역 a 스타일과의 정합 */
#durimat-gn-shell .durimat-board-main a {
    color: #000;
    outline: none;
}
#durimat-gn-shell .durimat-board-main #bo_btn_top .btn_bo_user a.btn_admin,
#durimat-gn-shell .durimat-board-main #bo_v_top .btn_bo_user a.btn_admin {
    color: #d13f4a !important;
}

/*
 * Font Awesome 4: .fa 는 font-size: inherit 를 쓰므로 부모 font-family 가 그대로 상속되면
 * 글리프(아이콘)가 맑은 고딕으로 그려져 보이지 않음 → FontAwesome 폰트 고정
 */
#durimat-gn-shell .durimat-board-main .fa {
    font-family: FontAwesome !important;
    font-style: normal;
    font-weight: normal;
    font-size: 14px;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 목록 상단(#bo_btn_top) — 좌측 건수·우측 아이콘 한 줄 정렬 */
#durimat-gn-shell #bo_btn_top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
}
#durimat-gn-shell #bo_btn_top:after {
    display: none;
}
#durimat-gn-shell #bo_btn_top #bo_list_total {
    float: none;
    line-height: 40px;
    margin: 0;
}
#durimat-gn-shell #bo_btn_top .btn_bo_user {
    float: none;
    display: flex;
    align-items: center;
    gap: 2px;
}
#durimat-gn-shell #bo_btn_top .btn_bo_user > li {
    float: none;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    background: transparent !important;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Bootstrap .btn 과 그누 .btn_b01 동시 적용 시 — 목록 상단 아이콘 높이 통일 */
#durimat-gn-shell #bo_btn_top .btn_bo_user a.btn:not(.btn_admin),
#durimat-gn-shell #bo_btn_top .btn_bo_user button.btn,
#durimat-gn-shell .durimat-board-main #bo_list .btn.btn_b01,
#durimat-gn-shell .durimat-board-main #bo_list .btn.btn_b02,
#durimat-gn-shell .durimat-board-main .btn_bo_sch {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0;
    background: transparent !important;
    background-image: none !important;
    border-radius: 0;
    box-shadow: none !important;
    font-size: 1em;
    line-height: 1 !important;
    font-weight: normal;
    text-align: center;
    vertical-align: top !important;
    white-space: nowrap;
    color: #444 !important;
    box-sizing: border-box !important;
}
#durimat-gn-shell #bo_btn_top .btn_bo_user a.btn.btn_admin,
#durimat-gn-shell #bo_v_top .btn_bo_user a.btn.btn_admin {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0;
    background: transparent !important;
    border-radius: 0;
    box-shadow: none !important;
    line-height: 1 !important;
    color: #d13f4a !important;
    box-sizing: border-box !important;
}

#durimat-gn-shell #bo_btn_top .btn_bo_user a.btn:not(.btn_admin):hover,
#durimat-gn-shell #bo_btn_top .btn_bo_user button.btn:hover,
#durimat-gn-shell .durimat-board-main #bo_list .btn.btn_b01:hover,
#durimat-gn-shell .durimat-board-main #bo_list .btn.btn_b02:hover {
    color: #000 !important;
    background: rgba(0, 0, 0, 0.04) !important;
}
#durimat-gn-shell #bo_btn_top a.btn_admin.btn:hover,
#durimat-gn-shell .durimat-board-main #bo_list a.btn_admin.btn:hover {
    color: #d13f4a !important;
    background: rgba(0, 0, 0, 0.04) !important;
}

#durimat-gn-shell #bo_btn_top .btn_bo_user a.btn:not(.btn_admin) .fa,
#durimat-gn-shell #bo_v_top .btn_bo_user a.btn:not(.btn_admin) .fa,
#durimat-gn-shell #bo_btn_top .btn_bo_user button.btn .fa,
#durimat-gn-shell #bo_v_top .btn_bo_user button.btn .fa {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 15px !important;
    height: 15px !important;
    padding: 0 !important;
    margin: 0 !important;
    font-family: FontAwesome !important;
    font-size: 15px !important;
    line-height: 1 !important;
    color: #444 !important;
    opacity: 1 !important;
    vertical-align: middle !important;
}
/* fa-fw·fa-spin 조합 시 기어 아이콘만 위로 떠 보임 → 4px 하향 */
#durimat-gn-shell #bo_btn_top a.btn_admin .fa,
#durimat-gn-shell #bo_v_top a.btn_admin .fa {
    position: relative;
    top: 4px;
    width: 15px !important;
    color: #d13f4a !important;
}
#durimat-gn-shell #bo_btn_top a.btn_admin .fa:before,
#durimat-gn-shell #bo_v_top a.btn_admin .fa:before,
#durimat-gn-shell #bo_btn_top a.btn_admin .fa-cog:before,
#durimat-gn-shell #bo_v_top a.btn_admin .fa-cog:before {
    color: #d13f4a !important;
}
#durimat-gn-shell #bo_btn_top a.btn_admin:hover .fa,
#durimat-gn-shell #bo_v_top a.btn_admin:hover .fa,
#durimat-gn-shell #bo_btn_top a.btn_admin:hover .fa:before,
#durimat-gn-shell #bo_v_top a.btn_admin:hover .fa:before {
    color: #c0392b !important;
}

/* 관리자 기어 아이콘만 빨강 — 일반 .btn_bo_user .fa(#444) 보다 우선 */
#durimat-gn-shell #bo_btn_top .btn_bo_user > li > a.btn_admin.btn,
#durimat-gn-shell #bo_v_top .btn_bo_user > li > a.btn_admin.btn,
#durimat-gn-shell #bo_btn_top .btn_bo_user > li > a.btn_admin.btn .fa,
#durimat-gn-shell #bo_v_top .btn_bo_user > li > a.btn_admin.btn .fa,
#durimat-gn-shell #bo_btn_top .btn_bo_user > li > a.btn_admin.btn .fa:before,
#durimat-gn-shell #bo_v_top .btn_bo_user > li > a.btn_admin.btn .fa:before {
    color: #d13f4a !important;
}
#durimat-gn-shell #bo_btn_top .btn_bo_user > li > a.btn_admin.btn:hover,
#durimat-gn-shell #bo_v_top .btn_bo_user > li > a.btn_admin.btn:hover,
#durimat-gn-shell #bo_btn_top .btn_bo_user > li > a.btn_admin.btn:hover .fa,
#durimat-gn-shell #bo_v_top .btn_bo_user > li > a.btn_admin.btn:hover .fa,
#durimat-gn-shell #bo_btn_top .btn_bo_user > li > a.btn_admin.btn:hover .fa:before,
#durimat-gn-shell #bo_v_top .btn_bo_user > li > a.btn_admin.btn:hover .fa:before {
    color: #c0392b !important;
}

/* 목록 테이블 — Bootstrap reboot/table 과 겹침 완화 */
#durimat-gn-shell .durimat-board-main .tbl_head01 table {
    width: 100%;
    max-width: none;
    margin-bottom: 0;
    border-collapse: collapse;
    background-color: transparent;
}

#durimat-gn-shell .durimat-board-main .tbl_head01 thead th,
#durimat-gn-shell .durimat-board-main .tbl_head01 tbody th,
#durimat-gn-shell .durimat-board-main .tbl_head01 td {
    vertical-align: middle;
}

/* 게시판 상단 버튼 줄·카테고리만 리스트 초기화 (본문 글의 ul/ol 은 건드리지 않음) */
#durimat-gn-shell .durimat-board-main .btn_bo_user,
#durimat-gn-shell .durimat-board-main .btn_bo_adm,
#durimat-gn-shell .durimat-board-main #bo_cate_ul,
#durimat-gn-shell .durimat-board-main .bo_v_com,
#durimat-gn-shell .durimat-board-main .bo_vc_w ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
