/* 산지정보 다드림 카카오 참여 안내 1.4.1 - independent additive styles */
.bf-board.sd-board .sd-comment-gate{border:1px solid #cddfd2;background:#f1f7f2;border-radius:16px;padding:26px 22px 22px;text-align:center;margin-top:18px;color:#1c4031}
.bf-board.sd-board .sd-comment-gate-icon{display:block;font-size:29px;line-height:1;margin-bottom:10px}
.bf-board.sd-board .sd-comment-gate h3{font-size:21px;line-height:1.45;margin:0 0 12px;color:#153e2a;font-weight:850;letter-spacing:-.025em}
.bf-board.sd-board .sd-comment-gate p{font-size:16px;line-height:1.85;max-width:590px;margin:0 auto 18px;color:#365747}
.bf-board.sd-board .sd-comment-gate-actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;align-items:center}
.bf-board.sd-board .sd-kakao-login{display:inline-flex;justify-content:center;align-items:center;min-height:52px;min-width:210px;background:#fee500!important;color:#191919!important;border:1px solid #e1c800;border-radius:11px;padding:12px 22px;text-decoration:none!important;font-size:17px!important;font-weight:850!important;line-height:1.35;box-shadow:0 3px 8px rgba(0,0,0,.08);transition:transform .15s,filter .15s}
.bf-board.sd-board .sd-kakao-login:hover,.bf-board.sd-board .sd-kakao-login:focus-visible{color:#191919!important;background:#ffeb36!important;filter:brightness(1.01);transform:translateY(-1px)}
.bf-board.sd-board .sd-gate-questions{display:inline-flex;align-items:center;justify-content:center;min-height:52px;padding:12px 19px;border:1px solid #b7d0bf;border-radius:11px;background:#fff;color:#20523b!important;font-size:16px;font-weight:750;text-decoration:none!important}
.bf-board.sd-board .sd-gate-questions:hover{color:#20523b!important;background:#e7f1e9}
.bf-board.sd-board .sd-comment-gate small{display:block;margin-top:15px;font-size:13px;color:#5c7366;line-height:1.6}
.bf-board.sd-board .sd-comment-no-permission{padding:15px 20px;margin-top:18px;border-radius:10px;background:#f3f5f3;color:#5c7366;font-size:15px;text-align:center}
.bf-board.sd-board .sd-guest-write{cursor:pointer}
.bf-board.sd-board .sd-login-overlay[hidden]{display:none!important}
.bf-board.sd-board .sd-login-overlay{position:fixed;inset:0;z-index:99999;background:rgba(18,35,26,.55);display:flex;align-items:center;justify-content:center;padding:18px;overflow-y:auto}
.bf-board.sd-board .sd-login-dialog{position:relative;display:flex;flex-direction:column;align-items:center;gap:0;max-width:450px;width:100%;border-radius:20px;background:#fff;color:#21372a;box-shadow:0 18px 55px rgba(0,0,0,.25);padding:32px 26px 25px;text-align:center}
.bf-board.sd-board .sd-login-leaf{font-size:32px;margin:0 0 14px}
.bf-board.sd-board .sd-login-dialog h2{margin:0 0 12px;font-size:23px;line-height:1.4;font-weight:850;color:#193f2c}
.bf-board.sd-board .sd-login-dialog p{margin:0 0 23px;font-size:16px;line-height:1.75;color:#486255}
.bf-board.sd-board .sd-login-dialog .sd-kakao-login{width:100%;max-width:330px}
.bf-board.sd-board .sd-login-close{position:absolute;top:11px;right:12px;background:none;border:0;font-size:30px;line-height:1;color:#51685b;padding:9px;cursor:pointer}
.bf-board.sd-board .sd-login-later{margin:17px 0 0;border:0;background:none;color:#5a6e60;text-decoration:underline;text-underline-offset:3px;cursor:pointer;font-size:15px;padding:5px}
.bf-board.sd-board :is(.sd-login-close,.sd-login-later,.sd-kakao-login,.sd-gate-questions):focus-visible{outline:3px solid #236d46;outline-offset:3px}
@media(max-width:620px){.bf-board.sd-board .sd-comment-gate{padding:22px 16px}.bf-board.sd-board .sd-comment-gate h3{font-size:20px}.bf-board.sd-board .sd-comment-gate-actions{flex-direction:column}.bf-board.sd-board .sd-comment-gate-actions a{width:100%;max-width:340px}.bf-board.sd-board .sd-login-dialog{padding:31px 20px 24px}}
@media(prefers-reduced-motion:reduce){.bf-board.sd-board .sd-kakao-login{transition:none}}

/* 산지정보 다드림 댓글 영역 위치·간격 조정 1.4.2 */
/* 이전용 HTML v6에 포함됐던 중복 참여상자는 화면에서 자동 숨김.
   앞으로 업로드할 v7 본문에서는 이 요소 자체를 제거함. */
.bf-board.sd-board .bf-read-body .sd-ft-community-cta{display:none!important}
/* 글 끝과 댓글 첫 화면의 간격을 촘촘하게 구성. 본문 문단 간격은 유지. */
.bf-board.sd-board .bf-read{padding-bottom:15px}
.bf-board.sd-board .bf-read-body{padding-bottom:14px}
.bf-board.sd-board .bf-vote-row{padding:11px 0}
.bf-board.sd-board .bf-read-share{padding:5px 0 10px}
.bf-board.sd-board .bf-read-actions{padding-top:11px}
.bf-board.sd-board .bf-comments{padding-top:19px;border-top:4px solid var(--bf-bg,#f6f8f4)}
/* 카카오 안내가 댓글 숫자 위에 놓이므로 위 여백을 없애고 아래만 띄움. */
.bf-board.sd-board .sd-comment-gate{margin:0 0 23px;padding:22px 20px 19px}
.bf-board.sd-board .sd-comment-gate p{margin-bottom:15px}
.bf-board.sd-board .sd-comment-gate small{margin-top:12px}
.bf-board.sd-board .bf-comments-title p{margin-bottom:12px}
@media(max-width:760px){
  .bf-board.sd-board .bf-read{padding-bottom:12px}
  .bf-board.sd-board .bf-read-body{padding-bottom:12px}
  .bf-board.sd-board .bf-comments{padding-top:16px}
  .bf-board.sd-board .sd-comment-gate{margin-bottom:19px;padding:20px 14px 18px}
}


/* 산지정보 다드림 표/스크롤·구형 공유위젯 보정 v1.4.7
   1. 구형 WordPress 테이블은 게시판 기본 CSS에서 display:block과 overflow-x:auto 때문에
      과거의 height:24px 등과 결합해 PC에서 세로 스크롤바를 만들었음.
   2. 글/표의 모든 텍스트는 보존하고 표시 규칙만 수정.
   3. 모바일 화면에서는 넓은 표의 가로 이동만 허용할 수 있음. */
.bf-board.sd-board .bf-read-body .copyUrl{display:none!important}
.bf-board.sd-board .bf-read-body table{
  display:table!important;
  overflow:visible!important;
  height:auto!important;
  max-height:none!important;
  min-height:0!important;
  width:100%!important;
  max-width:100%!important;
  table-layout:auto;
  border-collapse:collapse;
}
.bf-board.sd-board .bf-read-body table :is(thead,tbody,tfoot,tr,th,td){
  height:auto!important;
  max-height:none!important;
  min-height:0!important;
  overflow:visible!important;
  white-space:normal!important;
}
.bf-board.sd-board .bf-read-body table :is(td,th){
  overflow-wrap:anywhere;
  word-break:normal;
  vertical-align:top;
}
@media (max-width:760px){
  .bf-board.sd-board .bf-read-body table{
    display:block!important;
    height:auto!important;
    max-height:none!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    -webkit-overflow-scrolling:touch;
  }
  .bf-board.sd-board .bf-read-body table :is(thead,tbody,tfoot,tr,th,td){
    height:auto!important;
    max-height:none!important;
  }
}
