@charset "utf-8";

.pf_img img {border-radius:50%;width:50px;height:50px}


#bo_v_sns {padding:0;list-style:none;zoom:1;float:left;display:inline-block}
#bo_v_sns:after {display:block;visibility:hidden;clear:both;content:""}
#bo_v_sns li {float:left;width:135px;margin-right:5px;text-align:left}
#bo_v_sns li a {height:35px;line-height:35px;text-align:center;border-radius:5px;color:#fff;font-size:0.95em}
#bo_v_sns li img {vertical-align:middle;margin-right:5px}
#bo_v_sns li .sns_f {display:block;background:#3b5997}
#bo_v_sns li .sns_t {display:block;background:#09aeee}
#bo_v_sns li .sns_g {display:block;background:#ea4026}
#bo_v_sns li .sns_k {display:block;background:#fbe300}

#bo_v_share {position:relative;padding:20px 0}
#bo_v_share:after {display:block;visibility:hidden;clear:both;content:""}
#bo_v_share .btn {padding:0 10px;color:#555;font-weight:normal;font-size:1em;line-height:35px;height:35px;border-color:#d5d5d5;border-radius:5px}
#bo_v_share .btn:hover {background:#fff}
#bo_v_share .btn i {margin-right:5px;color:#4b5259;vertical-align:middle}

/* 독립 클래스 컨테이너 */
.custom-hashtag-board {
    width: 100%;
    margin-top: 20px;
    margin-bottom: 35px;
}

/* 버튼들을 감싸는 Flex 박스 - 가운데 정렬 속성 포함 */
.custom-hashtag-board .hashtag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 10px; /* 위아래 간격 12px, 좌우 간격 10px */
    align-items: center;
    justify-content: center; /* 👈 카테고리 버튼들을 가로 가운데로 정렬합니다 */
}

/* 해시태그 버튼 공통 디자인 (원래 스타일 유지) */
.custom-hashtag-board .hashtag-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
    padding: 10px 20px;
    font-size: 22px;
    color: #AE6D59;
    background-color: #fbf6f6;
    border: 1px solid #f5ebe9;
    text-decoration: none;
    transition: all 0.25s ease-in-out;
}

/* 마우스 호버 및 활성화(Active) 스타일 일괄 적용 */
.custom-hashtag-board .hashtag-item:hover,
.custom-hashtag-board .hashtag-item.active {
    background-color: #AE6D59;
    color: #ffffff;
    border-color: #AE6D59;
}



/* 📱 모바일 및 태블릿 화면을 위한 최적화 (반응형 768px 이하) */
@media (max-width: 767.98px) {
    #bo_v_sns li{width:auto;min-width:50px!important;}
    #bo_v_sns li img{margin-right: 0}
    #bo_v_sns a span{display: none}
	
	.custom-hashtag-board {
        margin-top: 15px;
        margin-bottom: 25px;
    }
    
    .custom-hashtag-board .hashtag-container {
        gap: 8px 4px; /* 모바일에서는 간격을 살짝 좁게 */
    }

    .custom-hashtag-board .hashtag-item {
        padding: 7px 14px;
        font-size: 14px;
    }
}

/* =========================================================
   닥터스노트 필터 (목록 / 글쓰기)  - 클래스는 모두 dn- 로 시작
   ========================================================= */
#dn-filter { --dn-brown: #ae6d59; --dn-brown-dark: #4a3630; --dn-line: #ece4e1; --dn-chip: #f8f6f5; --dn-text: #2a201d; --dn-sub: #7a6e6a; margin-top: 34px; }

/* 검색창 */
#dn-filter .dn-search { width: 100%; height: 56px; padding: 0 22px; font-size: 16px; border: 1px solid #e3dad6; border-radius: 14px; background: #fff; outline: none; transition: border-color .2s; }
#dn-filter .dn-search:focus { border-color: var(--dn-brown); }

/* 필터 상자 */
#dn-filter .dn-panel { background: #fff; border-radius: 24px; padding: 28px 32px; margin-top: 16px; box-shadow: 0 4px 20px rgba(80,50,40,.05); }
#dn-filter .dn-group { padding: 16px 0; border-bottom: 1px solid var(--dn-line); }
#dn-filter .dn-group:first-child { padding-top: 0; }
#dn-filter .dn-group:last-child { border-bottom: 0; padding-bottom: 0; }
#dn-filter .dn-group-title { font-size: 16px; color: var(--dn-text); margin-bottom: 12px; }
#dn-filter .dn-group-title small { font-size: 13px; color: #b0a29d; margin-left: 4px; }
#dn-filter .dn-chips { display: flex; flex-wrap: wrap; gap: 8px; }
#dn-filter .dn-hint { font-size: 14px; color: #b5aaa6; line-height: 40px; }
#dn-filter .dn-chk-input { display: none; }

#dn-filter .dn-chip { display: inline-flex; align-items: center; height: 42px; padding: 0 18px; margin: 0; border-radius: 30px; border: 1px solid #e6dedb; background: var(--dn-chip); color: #3a2f2b; font-size: 15px; cursor: pointer; user-select: none; transition: all .15s; }
#dn-filter .dn-chip:hover { border-color: var(--dn-brown); }
#dn-filter .dn-op:checked + .dn-chip { background: var(--dn-brown); border-color: var(--dn-brown); color: #fff; box-shadow: 0 3px 10px rgba(174,109,89,.3); }

/* 상세 부위: 수술별 색 (--c-bg / --c-bd / --c-tx 는 bo_1 순서대로 자동 지정) */
#dn-filter .dn-part-group { display: contents; }
#dn-filter .dn-part-name { display: none; }
#dn-filter .dn-multi .dn-part-name { display: inline-flex; align-items: center; height: 42px; margin: 0 2px 0 6px; font-size: 13px; color: var(--c-tx); font-family: KoPubWorld_Dotum_Bold, sans-serif; }
#dn-filter .dn-multi .dn-part-group:first-child .dn-part-name { margin-left: 0; }
#dn-filter .dn-part-chip { background: var(--c-bg); border-color: var(--c-bd); color: var(--c-tx); font-family: KoPubWorld_Dotum_Bold, sans-serif; }
#dn-filter .dn-part:checked + .dn-part-chip { background: var(--c-tx); border-color: var(--c-tx); color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.12); }

/* 담당 의료진 */
#dn-filter .dn-doc-wrap { display: inline-block; }
#dn-filter .dn-doc-wrap.dn-hide { display: none; }
#dn-filter .dn-doc-chip { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 18px 0 7px; margin: 0; border-radius: 30px; border: 1px solid #e6dedb; background: var(--dn-chip); color: #3a2f2b; font-size: 15px; cursor: pointer; user-select: none; transition: all .15s; }
#dn-filter .dn-doc-chip:hover { border-color: var(--dn-brown); }
#dn-filter .dn-doc:checked + .dn-doc-chip { background: var(--dn-brown-dark); border-color: var(--dn-brown-dark); color: #fff; }
#dn-filter .dn-av, #dn-list .dn-av { border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; flex: none; }
#dn-filter .dn-av { width: 32px; height: 32px; font-size: 13px; }

/* 건수 / 초기화 / 관리자 버튼 */
#dn-filter .dn-result { display: flex; align-items: center; gap: 10px; min-height: 40px; margin: 18px 2px 16px; font-size: 15px; color: var(--dn-sub); }
#dn-filter .dn-result b { color: var(--dn-brown); font-weight: normal; }
#dn-filter .dn-reset { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 16px; border: 1px solid #e3d8d4; border-radius: 30px; background: #fff; color: var(--dn-brown); font-size: 14px; cursor: pointer; transition: all .15s; }
#dn-filter .dn-reset:hover { background: var(--dn-brown); border-color: var(--dn-brown); color: #fff; }
#dn-filter .dn-reset svg { width: 14px; height: 14px; }
#dn-filter .dn-reset[hidden] { display: none; }
#dn-filter .dn-admin { margin-left: auto; }
#dn-filter .dn-reset:not([hidden]) + .dn-admin { margin-left: 0; }

/* 카드 목록 */
#dn-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; transition: opacity .2s; }
#dn-list.dn-loading { opacity: .4; pointer-events: none; }
#dn-list .dn-card { position: relative; height: 100%; background: #fff; border-radius: 24px; overflow: hidden; box-shadow: 0 2px 14px rgba(80,50,40,.04); transition: transform .2s; }
#dn-list .dn-card:hover { transform: translateY(-5px); }
#dn-list .dn-card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
/* 관리자 선택 체크박스: 카드 맨 위 별도 줄 */
#dn-list .dn-card { display: flex; flex-direction: column; }
#dn-list .dn-card-link { flex: 1; }
#dn-list .dn-chk { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 18px; background: #faf7f6; border-bottom: 1px solid #ece4e1; font-size: 14px; color: #7a6e6a; cursor: pointer; user-select: none; }
#dn-list .dn-chk input { width: 18px; height: 18px; margin: 0; accent-color: #ae6d59; cursor: pointer; }
#dn-list .dn-chk:has(input:checked) { background: #fbf0ec; color: #ae6d59; }
/* 썸네일: 가로 2:1 고정. 전후 사진(2:1)은 그대로, 정사각형 칼럼 이미지는 제목이 있는 위쪽 기준으로 잘라서 채움 */
#dn-list .dn-img { aspect-ratio: 2 / 1; background: #f1ece9; overflow: hidden; }
#dn-list .dn-img img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
#dn-list .dn-info { padding: 22px 24px; display: flex; flex-direction: column; flex: 1; }
#dn-list .dn-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
#dn-list .dn-tag { font-family: KoPubWorld_Dotum_Bold, sans-serif; font-size: 13px; line-height: 1.2; padding: 5px 10px; border-radius: 6px; background: #f3f0ef; color: #7a6e6a; }
#dn-list .dn-tag-op { background: var(--c-bg); color: var(--c-tx); box-shadow: inset 0 0 0 1px var(--c-bd); }
#dn-list .dn-title { font-weight: normal; font-size: 19px; line-height: 1.45; letter-spacing: -.5px; color: #2a201d; margin: 0 0 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#dn-list .dn-desc { font-family: KoPubWorld_Dotum_Medium, sans-serif; font-size: 14px; line-height: 1.6; color: #7a6e6a; margin: 0 0 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#dn-list .dn-doctor { margin-top: auto; padding-top: 14px; border-top: 1px solid #ece4e1; display: flex; align-items: center; gap: 8px; font-family: KoPubWorld_Dotum_Medium, sans-serif; font-size: 13px; color: #8a7d78; }
#dn-list .dn-av { width: 24px; height: 24px; font-size: 11px; }
#dn-list .dn-doctor b { font-weight: normal; color: #2a201d; }
#dn-list .dn-date { margin-left: auto; font-size: 12px; color: #b0a6a2; }
#dn-list .dn-empty { grid-column: 1 / -1; background: #fff; border-radius: 24px; padding: 80px 20px; text-align: center; color: #aaa; font-size: 16px; }

@media (max-width: 1199.98px) { #dn-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767.98px) {
    #dn-filter { margin-top: 22px; }
    #dn-filter .dn-search { height: 48px; font-size: 14px; border-radius: 12px; }
    #dn-filter .dn-panel { padding: 18px; border-radius: 18px; }
    #dn-filter .dn-group-title { font-size: 15px; margin-bottom: 10px; }
    #dn-filter .dn-chip { height: 36px; padding: 0 13px; font-size: 13px; }
    #dn-filter .dn-multi .dn-part-name { height: 36px; }
    #dn-filter .dn-doc-chip { height: 38px; font-size: 13px; padding-right: 13px; }
    #dn-filter .dn-av { width: 26px; height: 26px; font-size: 11px; }
    #dn-filter .dn-hint { font-size: 13px; line-height: 1.5; }
    #dn-list { grid-template-columns: 1fr; gap: 16px; }
    #dn-list .dn-card { border-radius: 18px; }
    #dn-list .dn-info { padding: 18px; }
    #dn-list .dn-title { font-size: 16px; }
    #dn-list .dn-desc { font-size: 13px; }
}

/* 글쓰기: 수술 종류 / 상세 부위 체크 */
.dn-write-title { font-weight: 700; margin-bottom: 12px; }
.dn-write-title small { font-weight: 400; color: #999; margin-left: 6px; }
.dn-write-row { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-top: 1px solid #f1ebe8; }
.dn-write-op { flex: 0 0 120px; display: flex; align-items: center; gap: 6px; margin: 0; font-weight: 700; color: var(--c-tx); cursor: pointer; }
.dn-write-parts { flex: 1; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.dn-write-part { display: inline-flex; align-items: center; gap: 5px; margin: 0; cursor: pointer; }
.dn-write-part input:checked + span { color: var(--c-tx); font-weight: 700; }
@media (max-width: 767.98px) { .dn-write-row { flex-direction: column; gap: 6px; } .dn-write-op { flex: none; } }

/* PC(768px 이상) 목록 글자 크기 +2px */
@media (min-width: 768px) {
    #dn-filter .dn-search { font-size: 18px; height: 58px; }
    #dn-filter .dn-group-title { font-size: 18px; }
    #dn-filter .dn-group-title small { font-size: 15px; }
    #dn-filter .dn-hint { font-size: 16px; }
    #dn-filter .dn-chip { font-size: 17px; height: 44px; }
    #dn-filter .dn-multi .dn-part-name { font-size: 15px; height: 44px; }
    #dn-filter .dn-doc-chip { font-size: 17px; height: 48px; }
    #dn-filter .dn-av { width: 34px; height: 34px; font-size: 15px; }
    #dn-filter .dn-result { font-size: 17px; }
    #dn-filter .dn-reset { font-size: 16px; height: 40px; }
    #dn-list .dn-tag { font-size: 15px; }
    #dn-list .dn-title { font-size: 21px; }
    #dn-list .dn-desc { font-size: 16px; }
    #dn-list .dn-doctor { font-size: 15px; }
    #dn-list .dn-av { width: 26px; height: 26px; font-size: 13px; }
    #dn-list .dn-date { font-size: 14px; }
    #dn-list .dn-empty { font-size: 18px; }
    #dn-list .dn-chk { font-size: 16px; }
}
/* 상세 부위 줄: 수술 종류를 고르기 전에는 접혀 있다가 부드럽게 펼쳐짐 */
#dn-filter .dn-part-wrap { display: grid; grid-template-rows: 0fr; padding-top: 0; padding-bottom: 0; border-bottom-color: transparent; opacity: 0; transition: grid-template-rows .3s ease, padding .3s ease, opacity .25s ease, border-color .3s ease; }
#dn-filter .dn-part-wrap > .dn-part-inner { overflow: hidden; min-height: 0; }
#dn-filter .dn-part-wrap.dn-open { grid-template-rows: 1fr; padding-top: 16px; padding-bottom: 16px; border-bottom-color: var(--dn-line); opacity: 1; }
@media (max-width: 767.98px) { #dn-filter .dn-part-wrap.dn-open { padding-top: 14px; padding-bottom: 14px; } }
/* 모바일: 담당 의료진을 한 줄 4칸, 동그라미 아래 이름으로 정렬 */
@media (max-width: 767.98px) {
    #dn-filter #dn-doctors { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
    #dn-filter .dn-doc-wrap { display: block; min-width: 0; }
    #dn-filter .dn-doc-wrap.dn-hide { display: none; }
    #dn-filter .dn-doc-chip { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; width: 100%; height: auto; padding: 9px 2px 8px; border-radius: 14px; font-size: clamp(12px, 3.75vw, 15px); line-height: 1.2; letter-spacing: -.6px; text-align: center; white-space: nowrap; }
    #dn-filter .dn-doc-chip .dn-av { width: 22px; height: 22px; font-size: 11px; }
    #dn-filter .dn-doc:checked + .dn-doc-chip .dn-av { box-shadow: 0 0 0 2px #fff; }
}
/* 모바일: 필터 글자를 원장님 이름 크기에 맞춰 키움 */
@media (max-width: 767.98px) {
    #dn-filter .dn-search { font-size: 15px; height: 50px; }
    #dn-filter .dn-group-title { font-size: 16px; }
    #dn-filter .dn-group-title small { font-size: 13px; }
    #dn-filter .dn-chip { font-size: 14.5px; height: 38px; padding: 0 15px; }
    #dn-filter .dn-multi .dn-part-name { font-size: 13px; height: 38px; }
    #dn-filter .dn-result { font-size: 15px; }
    #dn-filter .dn-reset { font-size: 14px; }
}
/* 모바일: 카드 제목·요약·분석 노트 줄 +2px */
@media (max-width: 767.98px) {
    #dn-list .dn-title { font-size: 18px; }
    #dn-list .dn-desc { font-size: 15px; }
    #dn-list .dn-doctor { font-size: 15px; }
    #dn-list .dn-date { font-size: 14px; }
}
/* 자간: 사이트 다른 글자와 같은 비율(글자 크기의 -2.5%)로 통일 - PC/모바일 공통 */
#dn-filter .dn-search, #dn-filter .dn-group-title, #dn-filter .dn-hint, #dn-filter .dn-chip,
#dn-filter .dn-doc-chip, #dn-filter .dn-result, #dn-filter .dn-reset,
#dn-list .dn-tag, #dn-list .dn-title, #dn-list .dn-desc, #dn-list .dn-doctor, #dn-list .dn-empty, #dn-list .dn-chk { letter-spacing: -0.025em; }
/* 모바일 원장님 이름은 칸에 맞추려고 조금 더 좁게 유지 */
@media (max-width: 767.98px) { #dn-filter .dn-doc-chip { letter-spacing: -.6px; } }
/* 일본 테마(weaver_jp)는 게시판을 .container 로 한 번 더 감싸서 회색 배경이 가운데 상자에만 깔림 → 감싼 상자를 풀어 한국/영문과 같게 */
.container:has(> #bo_gall) { max-width: none !important; width: 100% !important; padding: 0 !important; margin: 0 !important; }
/* 모바일 원장님 칸: 영문·일문처럼 이름이 길면 두 줄로 줄바꿈 */
@media (max-width: 767.98px) {
    #dn-filter .dn-doc-chip { white-space: normal; word-break: keep-all; overflow-wrap: anywhere; line-height: 1.25; }
}
/* 모바일 원장님: 한 줄에 한 분씩(세로 4줄), 동그라미 왼쪽 + 성함 전체 한 줄 (같은 성의 원장님 구분을 위해) */
@media (max-width: 767.98px) {
    #dn-filter #dn-doctors { grid-template-columns: 1fr; gap: 6px; }
    #dn-filter .dn-doc-chip { flex-direction: row; justify-content: flex-start; gap: 10px; padding: 8px 14px; border-radius: 30px; font-size: 15px; letter-spacing: -0.025em; white-space: nowrap; text-align: left; line-height: 1.2; }
    #dn-filter .dn-doc-chip .dn-av { width: 28px; height: 28px; font-size: 12px; }
}