/*
 * Babdori Community
 * 커뮤니티 리스트 · 카드 · 상세 · 댓글 · 글쓰기 에디터 · 모달
 * 다크모드 제외
 */

/* =========================
   커뮤니티 공통 · KBoard 초기화
   ========================= */

/* 페이지 제목 숨김 */
body:has(#kboard-default-list) .entry-title,
body:has(#kboard-default-list) .page-title,
body:has(#kboard-default-list) h1.entry-title {
  display: none !important;
}

/* 커뮤니티 중앙 영역 */
body:has(#kboard-default-list) .content-area,
body:has(#kboard-default-list) .page-content {
  min-height: 100dvh;
  padding: 0 12px 30px !important;
  background: #fff !important;
}

/* 커뮤니티 푸터 숨김 */
body:has(#kboard-default-list) .site-footer {
  display: none !important;
}

/* KBoard 기본 요소 숨김 */
#kboard-default-list .kboard-list-header,
#kboard-default-list .kboard-total-count,
#kboard-default-list .kboard-sort,
#kboard-default-list .kboard-search,
#kboard-default-list .kboard-control,
#kboard-default-list .kboard-default-poweredby,
#kboard-default-list .kboard-category.category-mobile {
  display: none !important;
}
#kboard-default-list,
#kboard-default-list * {
  font-family: inherit !important;
}

/* 카테고리 박스 */
#kboard-default-list .kboard-category.category-pc {
  display: flex !important;
  justify-content: flex-start !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 0 16px !important;
  padding: 6px 0 !important;
  background: transparent !important;
  text-align: left;
  overflow-x: auto;
}

/* 카테고리 버튼 */
#kboard-default-list .kboard-category.category-pc a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px !important;
  padding: 0 12px;
  margin: 0;
  border: 1px solid #dbe4f0;
  border-radius: 999px;
  background: #fff;
  color: #111827;
  font-size: 13px !important;
  font-weight: 700;
  text-decoration: none !important;
  white-space: nowrap;
}

/* 카테고리 hover */
#kboard-default-list .kboard-category.category-pc a:hover {
  border-color: #2563eb;
  background: #fff;
  color: #2563eb;
}

/* 카테고리 선택 */
#kboard-default-list .kboard-category.category-pc a.selected {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

/* 커뮤니티 상단 안내 */
.babdori-community-head {
  margin: 0 0 16px;
}
.babdori-community-title {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #111827;
}
.babdori-community-notice {
  padding: 0;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #f8fafc;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}
.babdori-notice-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-right: 2px;
  border-radius: 999px;
  background: #eef4ff;
  font-size: 12px;
}
.babdori-community-notice summary {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2px;
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 700;
  color: #111827;
  cursor: pointer;
  list-style: none;
}
.babdori-community-notice summary::-webkit-details-marker {
  display: none;
}
.babdori-community-notice-content {
  padding: 0 16px 15px;
}
.babdori-community-notice-content p {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.65;
  color: #475569;
}
.babdori-community-notice-content p + p {
  margin-top: 8px;
}

/* 카드 리스트 */

/* 카드 */
.babdori-board-card {
  display: block;
  padding: 11px 13px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  color: #111827 !important;
  text-decoration: none !important;
  box-shadow: none !important;
}
.babdori-board-card:hover {
  border-color: #dbe4f0;
}

/* 카드 제목 */
.babdori-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 7px;
}
.babdori-category {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 21px;
  padding: 0 8px;
  border-radius: 999px;
  background: #eef4ff;
  color: #2563eb;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}
.babdori-comment-count {
  color: #2563eb;
  font-weight: 800;
}

/* 메타 */
.babdori-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  color: #64748b;
  font-size: 12px;
}

/* 공지/인기 */
.badge.notice,
.badge.popular {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  margin-right: 4px;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  font-size: 12px;
  font-weight: 800;
}

/* 페이징 */

/* 모바일 */
@media (max-width: 640px) {
  .babdori-board-banner {
    height: 70px;
    border-radius: 16px;
  }
  .babdori-board-card {
    padding: 10px 12px;
  }
  .babdori-title {
    font-size: 13px;
  }
  .babdori-meta {
    font-size: 12px;
  }
  .babdori-community-title,
  .exchange-section-head h1 {
    font-size: 18px;
  }
  #kboard-default-list .kboard-category.category-pc::-webkit-scrollbar {
    display: none;
  }
  #kboard-default-list .kboard-category.category-pc a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 30px !important;
    padding: 0 13px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    border-radius: 999px;
    vertical-align: middle;
  }
}

/* 인기글 섹션 */
.babdori-popular-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 10px;
}
.babdori-popular-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.03em;
}
.babdori-popular-slider {
  position: relative;
  overflow: hidden;
}
.babdori-popular-track {
  display: flex;
  transition: transform 0.35s ease;
  will-change: transform;
}
.babdori-popular-slide .babdori-title {
  font-size: 13px;
}
.babdori-popular-slide .babdori-meta {
  font-size: 11px;
}
.babdori-popular-arrow {
  position: absolute;
  top: 50%;
  right: 6px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.92);
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transform: translateY(-50%) translateX(8px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}
.babdori-popular-slider:hover .babdori-popular-arrow {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* 카드 리스트 붙이기 */
.babdori-board-list .babdori-board-card {
  border: 0;
  border-bottom: 1px solid #e5e7eb;
  border-radius: 0;
  box-shadow: none;
}
.babdori-board-list .babdori-board-card:last-child {
  border-bottom: 0;
}
.babdori-board-list .babdori-board-card:hover {
  background: #f8fafc;
}

/* 당겨서 새로고침 */
.babdori-pull-refresh {
  position: fixed;
  top: 8px;
  left: 50%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: #eef4ff;
  color: #2563eb;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(-20px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}
.babdori-pull-refresh.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.babdori-pull-refresh.is-ready span {
  transform: rotate(180deg);
}
.babdori-pull-refresh span {
  display: inline-flex;
  transition: transform 0.2s ease;
}
.babdori-pull-refresh em {
  font-style: normal;
}

/* 인기글 2개 출력 */
.babdori-popular-slide {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  min-width: 100%;
}
.babdori-popular-slide .babdori-board-card {
  min-height: auto;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

/* 커뮤니티 카드 우측 썸네일 */
.babdori-card-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.babdori-card-main {
  flex: 1;
  min-width: 0;
}
.babdori-card-thumb {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  background: #f1f5f9;
  flex-shrink: 0;
}
.babdori-card-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.babdori-title {
  color: #111827;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.38;
  display: inline;
}
@media (max-width: 420px) {
  .babdori-card-thumb {
    width: 58px;
    height: 58px;
    border-radius: 10px;
  }
  .kboard-control {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }
  .kboard-control a,
  .kboard-control button,
  .kboard-control input[type="submit"] {
    width: auto !important;
    min-width: 82px;
    margin: 0 !important;
  }
  #kboard-default-editor textarea,
  #kboard-default-editor .kboard-form textarea {
    min-height: 120px !important;
    height: 120px !important;
  }
}
.babdori-write-icon-button {
  position: fixed;
  right: max(18px, calc((100vw - 480px) / 2 + 18px));
  bottom: calc(148px + env(safe-area-inset-bottom));
  z-index: 9998;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: #2563eb;
  color: #fff !important;
  text-decoration: none !important;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.32);
  flex-shrink: 0;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}
@media (max-width: 640px) {
  .babdori-write-icon-button {
    position: fixed !important;
    right: 18px !important;
    bottom: 210px !important;
    z-index: 10050 !important;
    display: inline-flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
}
.babdori-write-icon-button svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: currentColor;
}
.babdori-write-icon-button:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.36);
}
.babdori-board-categories {
  width: 100%;
}

/* =========================
   커뮤니티 상세 페이지
   ========================= */
body:has(#kboard-default-document) .entry-title,
body:has(#kboard-default-document) .page-title,
body:has(#kboard-default-document) h1.entry-title {
  display: none !important;
}
body:has(#kboard-default-document) .content-area,
body:has(#kboard-default-document) .page-content {
  background: #fff !important;
  min-height: 100dvh;
  padding: 18px 12px 40px !important;
}
#kboard-default-document {
  max-width: 480px;
  margin: 0 auto !important;
  font-family: inherit !important;
}
#kboard-default-document * {
  box-sizing: border-box;
  font-family: inherit !important;
}
.babdori-document-page-head {
  margin: 0 0 12px;
}
.babdori-document-page-head a {
  color: #111827 !important;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.2;
  text-decoration: none !important;
  letter-spacing: -0.03em;
}
.babdori-community-document {
  background: #fff;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  padding: 8px 16px 0;
}
.babdori-document-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.babdori-document-list-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 6px;
  color: #2563eb !important;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none !important;
}
.babdori-document-menu {
  position: relative;
}
.babdori-document-menu-button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: #f8fafc;
  color: #64748b;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}
.babdori-document-menu-panel {
  position: absolute;
  top: 36px;
  right: 0;
  z-index: 10;
  display: none;
  min-width: 88px;
  padding: 6px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}
.babdori-document-menu-panel.is-open {
  display: block;
}
.babdori-document-menu-panel a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  color: #334155 !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
  white-space: nowrap;
}
.babdori-document-menu-panel a:hover {
  background: #f8fafc;
}
.babdori-document-author-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}
.babdori-document-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #475569;
  font-size: 15px;
  font-weight: 900;
  flex-shrink: 0;
}
.babdori-document-author-info {
  flex: 1;
  min-width: 0;
}
.babdori-document-author-name {
  margin-bottom: 4px;
  color: #111827;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
}
.babdori-document-sub-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  color: #64748b;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
}
.babdori-document-sub-meta span,
.babdori-document-sub-meta a {
  color: #64748b !important;
  text-decoration: none !important;
}
.babdori-document-title-area {
  margin-bottom: 6px;
}
.babdori-document-category {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  margin-bottom: 9px;
  padding: 0 9px;
  border-radius: 999px;
  background: #eef4ff;
  color: #2563eb;
  font-size: 12px;
  font-weight: 800;
}
.babdori-document-title {
  margin: 0;
  color: #111827;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.03em;
}
.babdori-document-divider {
  height: 1px;
  margin: 0;
  background: #eef2f7;
}
.babdori-document-content {
  padding: 12px 10px 10px !important;
  border: 0 !important;
}
.babdori-document-content .content-view {
  min-height: 120px;
  color: #111827;
  font-size: 15px;
  line-height: 1.55;
}
.babdori-document-action .kboard-button-action,
.babdori-document-comment-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #475569 !important;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none !important;
  cursor: pointer;
}
/* 상세 댓글 입력 작성자 아이콘 */
@media (max-width: 640px) {
  .babdori-document-comment-avatar {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
    font-size: 12px;
  }
}
.babdori-document-action .kboard-button-action:hover,
.babdori-document-comment-count:hover {
  background: transparent;
}
.babdori-document-attach {
  margin-top: 8px;
}
#kboard-default-document .kboard-document-navi,
#kboard-default-document .kboard-control,
#kboard-default-document .kboard-button-print,
#kboard-default-document .kboard-default-poweredby {
  display: none !important;
}
@media (max-width: 640px) {
  #kboard-default-editor .kboard-control {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
  }
  #kboard-default-editor .kboard-control a,
  #kboard-default-editor .kboard-control button,
  #kboard-default-editor .kboard-control input[type="submit"] {
    width: auto !important;
    min-width: 82px !important;
    margin: 0 !important;
  }
}

/* 커뮤니티 페이지네이션 현재 페이지 박스 정리 */
body:has(#kboard-default-list) .kboard-pagination,
body:has(#kboard-default-list) .kboard-pagination-pages {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 6px !important;
  margin: 18px 0 8px !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
body:has(#kboard-default-list) .kboard-pagination-pages li {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  background: transparent !important;
  box-shadow: none !important;
}
body:has(#kboard-default-list) .kboard-pagination-pages li a,
body:has(#kboard-default-list) .kboard-pagination-pages li span {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  padding: 0 !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  color: #64748b !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  box-shadow: none !important;
}
body:has(#kboard-default-list) .kboard-pagination-pages li.active a,
body:has(#kboard-default-list) .kboard-pagination-pages li.active span {
  border-color: #2563eb !important;
  background: #2563eb !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

/* =========================
   커뮤니티 댓글
   ========================= */
.babdori-comments-area {
  margin-top: 18px;
  padding-top: 0;
  border-top: 0;
}
#kboard-default-document .babdori-comment-textarea:focus,
#kboard-default-document .babdori-comments-area textarea:focus,
#kboard-default-document
  .babdori-comments-area
  textarea.comment-textarea:focus {
  border-color: #dbe4f0 !important;
  box-shadow: none !important;
  outline: none !important;
  -webkit-box-shadow: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}
.babdori-comments-wrap,
.babdori-comments-wrap * {
  box-sizing: border-box;
  font-family: inherit !important;
}
#kboard-default-document .kboard-comments-default.babdori-comments-wrap {
  margin: 8px 0 !important;
  padding: 0 !important;
}
.babdori-comments-wrap {
  background: #fff;
}
.babdori-comments-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 6px;
  padding: 0;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
#kboard-default-document .babdori-comments-header,
#kboard-default-document .comments-header.babdori-comments-header {
  margin: 8px 0 6px !important;
  padding: 0 !important;
}
#kboard-default-document .babdori-comments-sort select {
  height: 26px !important;
  padding: 0 10px 0 14px !important;
  border: 1px solid #f1f5f9 !important;
  border-radius: 16px !important;
  background: #eef4ff !important;
  color: #2563eb !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  box-shadow: none !important;
  outline: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}
.babdori-comments-form {
  margin: 8px 0 10px !important;
  padding: 4px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.babdori-comment-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
}
.babdori-comment-textarea,
.babdori-comments-area textarea,
.babdori-comments-area textarea.comment-textarea {
  flex: 1;
  width: auto !important;
  min-height: 42px !important;
  height: 42px !important;
  padding: 10px 12px !important;
  border: 1px solid #dbe4f0 !important;
  border-radius: 14px !important;
  background: #fff !important;
  color: #111827 !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
  outline: none !important;
  resize: none !important;
  overflow: hidden !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  transition: border-color 0.15s ease !important;
}
.babdori-comment-textarea::placeholder,
.babdori-comments-area textarea::placeholder {
  color: #94a3b8 !important;
}
.babdori-comment-submit {
  position: static;
  flex-shrink: 0;
  margin: 0 !important;
}
.babdori-comment-submit input[type="submit"],
.babdori-comments-area input[type="submit"],
.babdori-comments-area button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px !important;
  padding: 0 13px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: #2563eb !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  cursor: pointer;
}
.babdori-comment-hidden-fields .field-image1,
.babdori-comment-hidden-fields .field-file1,
.babdori-comments-area input[type="file"],
.babdori-comments-area .kboard-comments-upload,
.babdori-comments-area .kboard-comments-attach,
.babdori-comments-area .comments-attach,
.babdori-comments-area .kboard-attach,
.babdori-comments-area .comments-field.field-image1,
.babdori-comments-area .comments-field.field-file1 {
  display: none !important;
}
.babdori-comments-list ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
#kboard-default-document .babdori-comments-list .babdori-comment-item {
  margin: 0 !important;
  padding: 8px 12px !important;
  border-bottom: 1px solid #eef2f7;
}
.babdori-comment-item:last-child {
  border-bottom: 0;
}
.babdori-comment-main {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.babdori-comment-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #475569;
  font-size: 13px;
  font-weight: 900;
  flex-shrink: 0;
}
.babdori-comment-body {
  flex: 1;
  min-width: 0;
}
.babdori-comment-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 5px;
}
.babdori-comment-info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}
.babdori-comment-name {
  color: #111827;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.3;
}
.babdori-comment-date {
  color: #64748b;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
}
.babdori-comment-name img,
.comments-list-username img,
.kboard-comments-item img.avatar {
  display: none !important;
}
.babdori-comment-menu {
  position: relative;
  flex-shrink: 0;
}
.babdori-comment-menu-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #94a3b8;
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}
.babdori-comment-menu-button:hover {
  background: #f8fafc;
  color: #64748b;
}
.babdori-comment-menu-panel {
  position: absolute;
  top: 30px;
  right: 0;
  z-index: 20;
  display: none;
  min-width: 82px;
  padding: 6px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}
.babdori-comment-menu-panel.is-open {
  display: block;
}
.babdori-comment-menu-panel button {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
}
.babdori-comment-menu-panel button:hover {
  background: #f8fafc;
}
.babdori-comment-content {
  margin: 0 0 8px;
  color: #111827;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
}
.babdori-comment-content p {
  margin: 0;
}
.babdori-comment-content p + p {
  margin-top: 6px;
}
.babdori-comment-like {
  color: #ef4444 !important;
}
.babdori-comment-reply {
  color: #64748b !important;
}
.babdori-comments-area .comments-list-controller .right,
.babdori-comments-area .comments-button-unlike,
.babdori-comments-area .comments-list-username,
.babdori-comments-area .comments-list-create,
.babdori-comments-area hr,
.babdori-comments-header hr,
.kboard-comments-wrap hr {
  display: none !important;
}
.babdori-comment-item .babdori-comments-list {
  margin-top: 10px;
  margin-left: 44px;
}
.comments-reply-form {
  margin-top: 10px;
}

/* =========================
   커뮤니티 반응형
   ========================= */
@media (max-width: 640px) {
  body:has(#kboard-default-document) .content-area,
  body:has(#kboard-default-document) .page-content {
    padding: 16px 12px 36px !important;
  }
  .babdori-document-title {
    font-size: 18px;
  }
  .babdori-document-content .content-view {
    font-size: 15px;
  }
  .babdori-comments-header {
    margin-bottom: 6px;
  }
  .babdori-comments-sort select {
    height: 26px;
    font-size: 13px;
  }
  #kboard-default-document .babdori-comments-list .babdori-comment-item {
    padding: 8px 12px !important;
  }
  .babdori-comment-avatar {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }
  .babdori-comment-name {
    font-size: 13px;
  }
  .babdori-comment-content {
    font-size: 14px;
  }
  .babdori-editor-title {
    font-size: 14px;
  }
  .babdori-document-page-head a {
    font-size: 16px;
  }
}

/* =========================
   커뮤니티 글쓰기 에디터
   ========================= */
body:has(.babdori-community-editor) .page-title {
  display: none !important;
}
body:has(.babdori-community-editor) .content-area {
  background: #fff;
  min-height: calc(100dvh - 62px - env(safe-area-inset-bottom));
  padding: 16px 14px calc(32px + env(safe-area-inset-bottom));
}
#kboard-default-editor.babdori-community-editor {
  max-width: 480px;
  margin: 0 auto !important;
  padding: 0 !important;
}
.babdori-community-editor .kboard-form {
  display: flex;
  flex-direction: column;
}
.babdori-editor-title {
  margin: 6px 0 14px;
  color: #111827;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.04em;
}
.babdori-community-editor .kboard-attr-row {
  margin: 0 0 14px !important;
  padding: 0 !important;
  border: 0 !important;
}
.babdori-community-editor .kboard-attr-category1 {
  order: 1;
}
.babdori-community-editor .kboard-attr-title {
  order: 2;
}
.babdori-community-editor .kboard-attr-content {
  order: 3;
}
.babdori-community-editor .kboard-attr-media {
  order: 4;
}
.babdori-community-editor .attr-name {
  display: block;
  margin: 0 0 7px !important;
  color: #111827;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
}
.babdori-community-editor .attr-required-text {
  color: #2563eb;
}
.babdori-community-editor .attr-value,
.babdori-community-editor .kboard-content {
  width: 100%;
}
.babdori-community-editor input[type="text"],
.babdori-community-editor input[type="password"],
.babdori-community-editor select,
.babdori-community-editor textarea {
  width: 100%;
  min-height: 38px;
  height: 38px;
  padding: 0 13px;
  border: 1px solid #dbe4f0;
  border-radius: 11px;
  background: #fff;
  color: #111827;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  outline: none;
  box-shadow: none;
}
.babdori-community-editor input[type="text"]:focus,
.babdori-community-editor input[type="password"]:focus,
.babdori-community-editor select:focus,
.babdori-community-editor textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.babdori-community-editor textarea,
.babdori-community-editor .wp-editor-area {
  height: 220px !important;
  min-height: 220px !important;
  max-height: 280px !important;
  padding: 13px !important;
  line-height: 1.55;
  resize: vertical;
}
.babdori-category-card-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.babdori-category-card {
  height: 34px;
  padding: 0 14px;
  border: 1px solid #dbe4f0;
  border-radius: 999px;
  background: #fff;
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.babdori-category-card.is-active {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
}
.babdori-community-editor .kboard-attr-media .attr-value {
  display: flex;
  align-items: center;
}
.babdori-community-editor .kboard-attr-media .attr-value a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 40px !important;
  height: 40px !important;
  padding: 0 !important;
  border-radius: 999px !important;
  background: #eef4ff !important;
  color: #2563eb !important;
  font-size: 0 !important;
  line-height: 1 !important;
  text-decoration: none !important;
}
.babdori-community-editor .kboard-attr-media .attr-value a::before {
  content: "";
  display: block;
  width: 19px;
  height: 19px;
  margin: 0 !important;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 5h16v14H4V5Zm3 11 3.5-4 2.5 3 2-2.5 3 3.5H7Zm9-7a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z'/%3E%3C/svg%3E")
    center / contain no-repeat;
}
.babdori-editor-control {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  padding: 0 0 10px;
  border: 0 !important;
}
.babdori-editor-control .left,
.babdori-editor-control .right {
  float: none !important;
  width: auto !important;
}
.babdori-editor-control .kboard-default-button-small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 18px;
  border: 0 !important;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none !important;
  cursor: pointer;
}
.babdori-editor-control .left .kboard-default-button-small {
  background: #eef2f7 !important;
  color: #64748b !important;
}
.babdori-editor-control .right .kboard-default-button-small {
  background: #111827 !important;
  color: #fff !important;
}

/* =========================
   커뮤니티 상세 하단 액션
   ========================= */
.babdori-document-action {
  background: #fff;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 32px;
  padding: 10px 0 0;
}
.babdori-document-action-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.babdori-like-button,
.babdori-document-comment-count,
.babdori-document-more-button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 32px;
  height: 32px;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px;
  background: transparent !important;
  color: #64748b !important;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none !important;
  box-shadow: none !important;
  cursor: pointer;
}
.babdori-like-button {
  color: #f43f5e !important;
}
.babdori-like-button svg,
.babdori-document-comment-count svg,
.babdori-document-more-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.babdori-document-more-button svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
  stroke: none;
}
.babdori-document-more-button:hover,
.babdori-document-more-button:active {
  background: #f1f5f9 !important;
  color: #111827 !important;
}
.babdori-document-more-wrap {
  position: relative;
  flex-shrink: 0;
}

/* 상세 페이지 더보기 메뉴 */
.babdori-document-action-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  top: auto;
  z-index: 100;
  display: none;
  width: 142px;
  padding: 6px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.16);
}
.babdori-community-document,
.babdori-document-action,
.babdori-document-more-wrap {
  overflow: visible !important;
}
.babdori-document-action-menu.is-open {
  display: grid;
  gap: 3px;
}
.babdori-document-action-menu button {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: 100% !important;
  height: 38px !important;
  min-height: 38px !important;
  margin: 0 !important;
  padding: 0 11px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: transparent !important;
  font-family: inherit !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  text-align: left !important;
  box-shadow: none !important;
  cursor: pointer;
}
.babdori-document-action-menu .babdori-document-report-button,
.babdori-document-action-menu .babdori-document-block-button {
  color: #ef4444 !important;
}
.babdori-document-action-menu button:hover {
  background: #f8fafc;
}

/* 커뮤니티 좋아요 토글 */
.babdori-community-like-toggle svg {
  fill: transparent;
  transition:
    fill 0.15s ease,
    transform 0.15s ease;
}
.babdori-community-like-toggle.is-liked svg {
  fill: currentColor;
}
.babdori-community-like-toggle:active svg {
  transform: scale(0.88);
}
.babdori-community-like-toggle.is-loading {
  opacity: 0.55;
  cursor: wait;
}
.babdori-community-like-toggle:disabled {
  pointer-events: none;
}

/* 커뮤니티 좋아요 기본 상태 */
.babdori-community-like-toggle svg,
.babdori-community-like-toggle svg path {
  fill: transparent !important;
  stroke: currentColor !important;
}

/* 좋아요 선택 상태 */
.babdori-community-like-toggle.is-liked {
  color: #f43f5e !important;
}
.babdori-community-like-toggle.is-liked svg,
.babdori-community-like-toggle.is-liked svg path {
  fill: currentColor !important;
  stroke: currentColor !important;
}
.babdori-report-submit.is-loading,
.babdori-block-submit.is-loading {
  opacity: 0.55;
  cursor: wait;
  pointer-events: none;
}

/* 이미지 썸네일 */
.babdori-document-image {
  overflow: hidden;
  width: 100%;
  margin: 0 0 20px;
  border-radius: 16px;
  background: #f1f5f9;
}
.babdori-document-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 620px;
  object-fit: contain;
}

/* 커뮤니티 댓글 */
.babdori-feed-comment-box[hidden] {
  display: none !important;
}
.babdori-feed-comment-avatar {
  display: flex;
  flex: 0 0 34px;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e0ecff;
  color: #2563eb;
  font-size: 13px;
  font-weight: 700;
}
.babdori-feed-comment-submit:disabled {
  cursor: default;
  opacity: 0.6;
}
.babdori-feed-comment-panel[hidden] {
  display: none !important;
}
.babdori-feed-comment-panel {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 0;
}
.babdori-feed-comment-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.babdori-feed-comment-list {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}
.babdori-feed-comment-list:empty {
  display: none;
}
.babdori-feed-comment-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.babdori-feed-comment-item-avatar {
  display: flex;
  flex: 0 0 32px;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
}
.babdori-feed-comment-item-body {
  flex: 1;
  min-width: 0;
}
.babdori-feed-comment-item-head {
  display: flex;
  align-items: center;
  gap: 7px;
}
.babdori-feed-comment-item-head strong {
  font-size: 13px;
  font-weight: 700;
}
.babdori-feed-comment-item-head span {
  color: #94a3b8;
  font-size: 11px;
}
.babdori-feed-comment-item-body p {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.5;
  word-break: break-word;
}
.babdori-feed-comment-item-actions button,
.babdori-feed-comment-item-actions a {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 11px;
  font-style: normal;
  text-decoration: none;
  cursor: pointer;
}
.babdori-feed-comment-item-actions em {
  font-style: normal;
}
.babdori-card-comment-like {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #64748b;
}
.babdori-card-comment-like span {
  font-size: 12px;
  line-height: 1;
}
.babdori-card-comment-like.is-liked {
  color: #f43f5e;
}
.babdori-card-comment-like:disabled {
  opacity: 0.6;
  cursor: wait;
}
.babdori-card-reply-box[hidden] {
  display: none !important;
}
.babdori-card-reply-box {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  margin: 9px 0 0 40px;
  padding: 7px 8px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
}
.babdori-card-reply-input {
  flex: 1;
  min-width: 0;
  min-height: 32px;
  max-height: 120px;
  padding: 6px 3px;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #1e293b;
  font: inherit;
  font-size: 13px;
  line-height: 1.45;
  resize: none;
}
.babdori-card-reply-submit {
  flex-shrink: 0;
  height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: #2563eb;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

/* =========================
   카드 답글 너비 보정
   ========================= */

.babdori-card-comment-reply-toggle {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #64748b;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
}
.babdori-card-comment-reply-toggle svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.babdori-card-comment-reply-toggle:hover,
.babdori-card-comment-reply-toggle:active {
  color: #2563eb;
}
.babdori-feed-comment-input,
.babdori-feed-comment-input:hover,
.babdori-feed-comment-input:focus,
.babdori-feed-comment-input:focus-visible {
  border: 0 !important;
  outline: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  -webkit-appearance: none;
  appearance: none;
}

/* =========================
   댓글·답글 더보기 메뉴
   ========================= */
/* 기본 상태에서는 메뉴 숨김 */
/* ... 버튼을 눌렀을 때만 표시 */
/* 신고 */
.babdori-comment-report {
  color: #dc2626;
}

/* 차단 */
.babdori-comment-block {
  color: #475569;
}

/* 댓글 액션 영역 정렬 */
.babdori-feed-comment-item-actions {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

/* 답글 내부 메뉴가 잘리지 않도록 */
.babdori-feed-comment-item-body,
.babdori-card-reply-item {
	overflow: visible !important;
}

/* 댓글·답글 textarea 기본 핸들 제거 */
.babdori-feed-comment-input,
.babdori-feed-comment-input:hover,
.babdori-feed-comment-input:focus,
.babdori-feed-comment-input:focus-visible,
.babdori-card-reply-input,
.babdori-card-reply-input:hover,
.babdori-card-reply-input:focus,
.babdori-card-reply-input:focus-visible {
	border: 0 !important;
	outline: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	resize: none !important;
	overflow-y: hidden;
	appearance: none;
	-webkit-appearance: none;
}

/* 댓글 메뉴 색상 */
.babdori-comment-more-item.babdori-comment-share {
  color: #334155;
}
.babdori-comment-more-item.babdori-comment-report {
  color: #ef4444;
}
.babdori-comment-more-item.babdori-comment-block {
  color: #dc2626;
}
.babdori-comment-more-item.babdori-comment-share svg,
.babdori-comment-more-item.babdori-comment-report svg,
.babdori-comment-more-item.babdori-comment-block svg {
  color: currentColor;
  stroke: currentColor;
}
.babdori-comment-more-item.babdori-comment-share:hover {
  background: #f8fafc;
  color: #1e293b;
}
.babdori-comment-more-item.babdori-comment-report:hover {
  background: #f8fafc;
  color: #dc2626;
}
.babdori-comment-more-item.babdori-comment-block:hover {
  background: #f8fafc;
  color: #b91c1c;
}
/* 카드 댓글 입력창 - 상세 댓글 입력창 스타일 통일 */
.babdori-feed-comment-field {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid #dbe4f0;
  border-radius: 14px;
  background: #fff;
  box-sizing: border-box;
  overflow: hidden;
}

.babdori-feed-comment-input,
.babdori-feed-comment-input:hover,
.babdori-feed-comment-input:focus,
.babdori-feed-comment-input:focus-visible {
  flex: 1;
  width: 100%;
  min-width: 0;
  min-height: 40px;
  height: 40px;
  max-height: 40px;
  margin: 0 !important;
  padding: 10px 12px !important;
  border: 0 !important;
  border-radius: 14px !important;
  background: transparent !important;
  color: #111827;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4 !important;
  outline: none !important;
  box-shadow: none !important;
  resize: none !important;
  overflow: hidden !important;
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
}

.babdori-feed-comment-input::placeholder {
  color: #94a3b8;
  opacity: 1;
}

.babdori-feed-comment-field:focus-within {
  border-color: #dbe4f0;
  box-shadow: none;
}

/* 하단 고정 네비에 마지막 카드가 가리지 않도록 */

/* 상세 게시글 좋아요 버튼 초기화 */
.babdori-document-like {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #64748b;
  font: inherit;
  line-height: 1;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.babdori-document-like svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.babdori-document-like .babdori-community-like-count {
  color: inherit;
  font-size: 13px;
  font-weight: 600;
  font-style: normal;
  line-height: 1;
}
.babdori-document-like.is-liked {
  color: #f43f5e;
}
.babdori-document-like.is-liked svg {
  fill: currentColor;
  stroke: currentColor;
}
.babdori-document-like:focus,
.babdori-document-like:focus-visible {
  outline: none;
  box-shadow: none;
}

/* 글쓰기 에디터 */
.babdori-community-editor .babdori-editor-title-row .attr-name {
  display: none;
}
.babdori-community-editor .babdori-editor-title-row .attr-value {
  width: 100%;
}
.babdori-community-editor input[name="title"] {
  width: 100%;
  height: 48px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid #e2e8f0;
  border-radius: 0;
  background: transparent;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  color: #1e293b;
  box-sizing: border-box;
  outline: none;
}
.babdori-community-editor input[name="title"]::placeholder {
  color: #94a3b8;
  opacity: 1;
}
.babdori-community-editor input[name="title"]:focus {
  border-bottom-color: #3b82f6;
}
.babdori-community-editor .babdori-editor-image-row {
  width: auto;
  margin: 0;
  padding: 0;
  border: 0;
}
.babdori-community-editor .babdori-editor-image-row .attr-name {
  display: none !important;
}
.babdori-community-editor .babdori-editor-image-row .attr-value {
  display: flex;
  align-items: center;
  width: auto;
  margin: 0;
  padding: 0;
}
.babdori-community-editor .babdori-editor-image-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  box-sizing: border-box;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}
.babdori-community-editor .babdori-editor-image-button:hover,
.babdori-community-editor .babdori-editor-image-button:active {
  background: #f1f5f9;
  color: #2563eb;
}
.babdori-community-editor .babdori-editor-image-button svg {
  display: block;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.babdori-community-editor .babdori-editor-submit-button {
  min-width: 94px;
  height: 42px;
  padding: 0 20px;
  border: 0;
  border-radius: 12px;
  background: #3b82f6;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.babdori-community-editor .babdori-editor-image-button.is-selected {
  background: #eff6ff;
  color: #2563eb;
}
.babdori-community-editor .babdori-editor-control {
  order: 5;
  margin-top: 18px;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  margin: 20px 0 0 !important;
  padding: 0 !important;
  gap: 16px;
  box-sizing: border-box;
}
.babdori-community-editor .babdori-editor-control-left,
.babdori-community-editor .babdori-editor-control-right {
  display: flex !important;
  align-items: center !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
}
.babdori-community-editor .babdori-editor-control-right {
  margin-left: auto !important;
}

/* =========================
   커뮤니티 글쓰기 오버레이
========================= */
html.babdori-write-overlay-page {
  margin-top: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  overflow-x: hidden !important;
}
body.babdori-write-overlay-page {
  min-height: 0 !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  padding-bottom: 0 !important;
  overflow-x: hidden !important;
  background: #fff !important;
}
body.babdori-write-overlay-page .content-area,
body.babdori-write-overlay-page .page-content,
body.babdori-write-overlay-page main,
body.babdori-write-overlay-page #kboard-default-editor {
  min-height: 0 !important;
  height: auto !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}
body.babdori-write-overlay-page #wpadminbar,
body.babdori-write-overlay-page .site-header,
body.babdori-write-overlay-page .site-footer,
body.babdori-write-overlay-page .babdori-bottom-nav {
  display: none !important;
}

/* =========================
   커뮤니티 글쓰기 에디터
========================= */

/* 주제 선택 숨김 */
.babdori-community-editor .babdori-editor-category-row {
  display: none !important;
}

/* 사진 필드 */
.babdori-community-editor .babdori-direct-image-row {
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}
.babdori-community-editor .babdori-direct-image-row .attr-name {
  display: none !important;
}
.babdori-community-editor .babdori-direct-image-row .attr-value {
  display: flex !important;
  align-items: center !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}
.babdori-community-editor .babdori-direct-image-button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  box-sizing: border-box;
}
.babdori-community-editor .babdori-direct-image-button svg {
  display: block;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.babdori-community-editor .babdori-direct-image-button.is-selected {
  background: #eff6ff;
  color: #2563eb;
}
.babdori-community-editor .babdori-direct-image-row .description {
  display: none !important;
}

/* 사진 미리보기 */
.babdori-community-editor .babdori-direct-image-preview[hidden] {
  display: none !important;
}
.babdori-community-editor .babdori-direct-image-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.babdori-community-editor .babdori-direct-image-preview {
  width: 52px;
  height: 52px;
  margin-left: 8px;
  border-radius: 10px;
  overflow: hidden;
  background: #f1f5f9;
  flex: 0 0 auto;
  position: relative;
}
.babdori-community-editor .babdori-direct-image-remove {
  position: absolute;
  top: 3px;
  right: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  cursor: pointer;
  box-sizing: border-box;
}
.babdori-community-editor .babdori-direct-image-remove svg {
  display: block;
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

/* =========================
   커뮤니티 최신 스타일 통합
   ========================= */

/* =========================
   커뮤니티 글쓰기 모달
   ========================= */

/* =========================
   커뮤니티 피드 리뉴얼
   ========================= */
#kboard-default-list {
  width: min(480px, 100%);
  margin: 0 auto !important;
  padding: 12px 4px 96px !important;
  box-sizing: border-box;
}
.babdori-community-compose {
  position: sticky !important;
  top: 8px !important;
  z-index: 500 !important;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  margin: 14px 0;
  padding: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  color: #64748b;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow:
    0 4px 14px rgba(15, 23, 42, 0.06),
    0 0 0 8px rgba(255, 255, 255, 0.96);
  -webkit-tap-highlight-color: transparent;
}
.babdori-community-compose:hover {
  border-color: #bfdbfe;
  background: #f8fbff;
}
.babdori-community-compose:active {
  transform: scale(0.99);
}
.babdori-community-compose:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.2);
  outline-offset: 2px;
}
.babdori-compose-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #eff6ff;
  font-size: 18px;
}
.babdori-compose-placeholder {
  flex: 1;
  min-width: 0;
  color: #64748b;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.babdori-community-compose strong {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 13px;
  background: #2563eb;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}
.babdori-board-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 12px;
}
.babdori-feed-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(135deg, #dbeafe, #dcfce7);
  color: #1e293b;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}
.babdori-feed-badge {
  display: inline-flex;
  align-items: center;
  min-height: 19px;
  margin-right: 4px;
  padding: 0 6px;
  border-radius: 999px;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  vertical-align: 1px;
}
.babdori-feed-badge.is-notice {
  background: #2563eb;
}
.babdori-feed-badge.is-popular {
  background: #f97316;
}
.babdori-feed-thumb {
  width: 100%;
  text-align: left;
  margin-top: 10px;
  border-radius: 16px;
  background: #f1f5f9;
  overflow: hidden;
}
.babdori-feed-thumb img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: cover;
}
.babdori-feed-action:hover,
.babdori-feed-action:active {
  color: #2563eb !important;
  background: transparent;
}
.babdori-board-more-wrap {
  display: flex;
  justify-content: center;
  margin: 18px 0 0;
}
.babdori-board-more-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  background: #2563eb;
  color: #fff !important;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none !important;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.22);
}

/* 기존 페이지네이션이 남아있을 경우 숨김 */
#kboard-default-list .kboard-pagination {
  margin-top: 34px;
  text-align: center;
  display: none;
}

/* =========================
   커뮤니티 글쓰기 모달
   ========================= */
.babdori-write-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
}
.babdori-write-modal.is-open {
  display: block;
}
.babdori-write-modal-backdrop {
  position: absolute;
  inset: 0;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.babdori-write-modal-close {
  position: absolute;
  top: 6px;
  right: 14px;
  z-index: 3;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}
body.babdori-modal-open {
  overflow: hidden;
}
@media (max-width: 640px) {
  .babdori-write-modal-panel {
    width: calc(100% - 24px);
    height: min(410px, calc(100dvh - 24px));
    border-radius: 22px;
  }
}

/* =========================
   커뮤니티 신고 · 차단 모달
   ========================= */
.babdori-community-action-modal,
.babdori-report-modal,
.babdori-block-modal {
  position: fixed;
  inset: 0;
  z-index: 100001;
  display: none;
}
.babdori-community-action-modal.is-open,
.babdori-report-modal.is-open,
.babdori-block-modal.is-open {
  display: block;
}
.babdori-community-action-backdrop,
.babdori-report-backdrop,
.babdori-block-backdrop {
  position: absolute;
  inset: 0;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.babdori-community-action-panel,
.babdori-report-panel,
.babdori-block-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(390px, calc(100% - 32px));
  padding: 18px;
  border: 1px solid rgba(226, 232, 240, 0.12);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  transform: translate(-50%, -50%);
  box-sizing: border-box;
}
.babdori-community-action-title,
.babdori-report-title,
.babdori-block-title {
  display: block;
  color: #0f172a;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
}
.babdori-community-action-desc,
.babdori-block-panel p {
  margin: 8px 0 16px;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}
.babdori-community-action-button {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 46px;
  margin-top: 8px;
  padding: 0 14px;
  border: 0;
  border-radius: 14px;
  background: #f8fafc;
  color: #0f172a;
  font-family: inherit;
  font-size: 14px;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}
.babdori-community-action-button.is-report {
  color: #e11d48;
  background: #fff1f2;
}
.babdori-community-action-button.is-block {
  color: #7c2d12;
  background: #fff7ed;
}
.babdori-community-action-close,
.babdori-report-cancel,
.babdori-report-submit,
.babdori-block-cancel,
.babdori-block-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 15px;
  border: 0;
  border-radius: 13px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}
.babdori-community-action-close {
  width: 100%;
  margin-top: 10px;
  background: #f1f5f9;
  color: #475569;
}
.babdori-report-reasons {
  display: grid;
  gap: 8px;
  margin: 14px 0 16px;
}
.babdori-report-reasons label {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #f8fafc;
  color: #0f172a;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}
.babdori-report-reasons input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: #e11d48;
}
.babdori-report-actions,
.babdori-block-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.babdori-report-cancel,
.babdori-block-cancel {
  background: #f1f5f9;
  color: #475569;
}
.babdori-report-submit {
  background: #e11d48;
  color: #fff;
}
.babdori-block-submit {
  background: #f97316;
  color: #fff;
}

/* =========================
   커뮤니티 피드 세부 조정
   ========================= */
.babdori-feed-comment {
  color: #64748b !important;
}

/* =========================
   커뮤니티 피드 댓글 · 답글
   ========================= */
.babdori-popular-section {
  margin: 0 0 18px;
  display: none !important;
}
.babdori-board-list {
  flex-direction: column;
  padding-bottom: calc(90px + env(safe-area-inset-bottom));
  display: grid;
  gap: 0;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}
.babdori-feed-card {
  display: block;
  position: relative;
  padding: 22px 20px 14px;
  border-bottom: 1px solid #eef2f7;
  background: #fff;
}
.babdori-feed-card:last-child {
  border-bottom: 0;
}
.babdori-feed-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 9px;
}
.babdori-feed-avatar,
.babdori-feed-comment-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0f172a;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}
.babdori-feed-author {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.babdori-feed-author strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #0f172a;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
}
.babdori-feed-author span {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
}
.babdori-feed-body {
  display: block;
  color: inherit;
  text-decoration: none !important;
}
.babdori-feed-title-row {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-bottom: 7px;
}
.babdori-feed-category {
  margin-top: 1px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}
.babdori-feed-title {
  display: block;
  min-width: 0;
  color: #0f172a;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.35;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}
.babdori-feed-excerpt {
  margin-top: 4px;
  display: -webkit-box;
  margin: 5px 0 0;
  color: #1e293b;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.55;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}
.babdori-feed-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 24px;
  padding: 0;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #64748b !important;
  font-family: inherit;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none !important;
  cursor: pointer;
}
.babdori-feed-comment-toggle {
  color: #64748b !important;
}
.babdori-feed-report-button {
  margin-left: auto;
  color: #e11d48 !important;
  font-size: 12px;
}
.babdori-feed-report-button::after {
  content: " 신고";
  margin-left: 3px;
  font-size: 12px;
  font-weight: 900;
}
.babdori-feed-comment-box.is-open {
  display: flex;
}
.babdori-feed-comment-submit {
  flex-shrink: 0;
  height: 34px;
  margin-right: 4px;
  padding: 0 13px;
  border: 0;
  border-radius: 10px;
  background: #2563eb;
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}
/* 글쓰기 오버레이 iframe 보정 */
.babdori-write-modal-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(440px, calc(100% - 24px));
  height: min(500px, calc(100dvh - 32px));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  transform: translate(-50%, -50%);
  background: #fff;
}
.babdori-write-modal-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}
.babdori-community-editor.is-write-overlay {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 16px 14px 8px !important;
  box-sizing: border-box;
  background: #fff;
}
.babdori-community-editor.is-write-overlay .babdori-editor-title {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 900;
  color: #0f172a;
}
.babdori-community-editor.is-write-overlay .kboard-attr-row {
  margin-bottom: 12px !important;
}
.babdori-community-editor.is-write-overlay .attr-name {
  display: block;
  margin-bottom: 8px;
  color: #0f172a;
  font-size: 14px;
  font-weight: 900;
}
.babdori-community-editor.is-write-overlay input[type="text"],
.babdori-community-editor.is-write-overlay textarea,
.babdori-community-editor.is-write-overlay select {
  width: 100%;
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
  font-size: 15px;
  box-sizing: border-box;
}
.babdori-community-editor.is-write-overlay input[type="text"] {
  height: 42px;
  padding: 0 12px;
}
.babdori-community-editor.is-write-overlay textarea {
  min-height: 200px !important;
  height: 200px !important;
}
.babdori-community-editor.is-write-overlay .babdori-category-card-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.babdori-community-editor.is-write-overlay .babdori-category-card {
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid #dbe3ef;
  border-radius: 999px;
  background: #fff;
  color: #64748b;
  font-family: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}
.babdori-community-editor.is-write-overlay .babdori-category-card.is-active {
  border-color: #2563eb;
  background: #eff6ff;
  color: #2563eb;
}
.babdori-community-editor.is-write-overlay .babdori-editor-control {
  margin: 12px 0 0 !important;
  padding: 0 !important;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px !important;
  padding-bottom: 0 !important;
}
.babdori-community-editor.is-write-overlay .kboard-default-button-small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 13px;
  background: #f1f5f9;
  color: #475569;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none !important;
}
.babdori-community-editor.is-write-overlay .right .kboard-default-button-small {
  background: #2563eb;
  color: #fff;
}
.babdori-board-toolbar + .babdori-community-compose {
  margin-top: 12px;
  margin-bottom: 16px;
}

/* 이미지 첨부 보정 */
.babdori-direct-image-input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0 !important;
  overflow: hidden !important;
  pointer-events: none;
}
.babdori-direct-image-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid #dbe4f0;
  border-radius: 12px;
  background: #eef4ff;
  color: #2563eb;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.babdori-direct-image-button span {
  font-size: 16px;
  line-height: 1;
}
.babdori-direct-image-button em {
  font-style: normal;
}
.babdori-direct-image-name {
  margin: 8px 0 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.4;
}
.babdori-current-image {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  padding: 9px 11px;
  border-radius: 10px;
  background: #f8fafc;
  color: #475569;
  font-size: 12px;
}
.babdori-current-image a {
  flex-shrink: 0;
  color: #ef4444;
  font-weight: 700;
  text-decoration: none;
}

/* 카드 하단 액션 */
.babdori-feed-actions {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}
.babdori-feed-actions-left {
  display: flex;
  align-items: center;
  gap: 18px;
}
.babdori-feed-action,
.babdori-feed-more-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #64748b;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.babdori-feed-action svg,
.babdori-feed-more-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.babdori-feed-like {
  color: #f43f5e;
}
.babdori-feed-like svg {
  fill: transparent;
}
.babdori-feed-like:hover svg,
.babdori-feed-like:active svg {
  fill: currentColor;
}
.babdori-feed-more-wrap {
  position: relative;
  flex-shrink: 0;
}
.babdori-feed-more-button {
  width: 32px;
  height: 32px;
  border-radius: 999px;
}
.babdori-feed-more-button:hover,
.babdori-feed-more-button.is-open {
  background: #f1f5f9;
  color: #111827;
}
.babdori-feed-more-button svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
  stroke: none;
}
.babdori-feed-more-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  bottom: auto;
  z-index: 50;
  display: none;
  width: 142px;
  padding: 6px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.16);
}
.babdori-feed-more-menu.is-open {
  display: grid;
  gap: 3px;
}
.babdori-feed-more-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #334155;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.babdori-feed-more-item:hover {
  background: #f8fafc;
}
.babdori-feed-more-item svg {
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.babdori-feed-direct-report,
.babdori-feed-direct-block {
  color: #ef4444;
}
.babdori-secret {
  display: inline-flex;
  vertical-align: middle;
}
.babdori-secret svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}
.babdori-document-view-count {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.babdori-document-view-count svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* =========================
   커뮤니티 글쓰기 스티키 보정
   ========================= */
body:has(#kboard-default-list),
body:has(#kboard-default-list) main,
body:has(#kboard-default-list) article,
body:has(#kboard-default-list) .site-main,
body:has(#kboard-default-list) .content-area,
body:has(#kboard-default-list) .page-content,
body:has(#kboard-default-list) #kboard-default-list {
  overflow: visible !important;
  overflow-x: visible !important;
  transform: none !important;
  filter: none !important;
  contain: none !important;
}
body:has(#kboard-default-list) #kboard-default-list .babdori-community-compose {
  position: sticky !important;
  top: 8px !important;
  z-index: 500 !important;
}

/* =========================
   댓글 액션 버튼
   ========================= */

.babdori-comment-actions,
.babdori-feed-comment-item-actions {
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 10px !important;
  width: 100%;
  min-width: 0;
  margin: 6px 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.babdori-comment-actions .babdori-card-comment-like,
.babdori-comment-actions .babdori-comment-reply,
.babdori-feed-comment-item-actions .babdori-card-comment-like,
.babdori-feed-comment-item-actions .babdori-card-comment-reply-toggle {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto;
  gap: 4px;
  width: auto !important;
  min-width: 0 !important;
  height: 22px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #64748b;
  font-family: inherit;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.babdori-card-comment-like span {
  display: inline-block;
  margin: 0;
  font-size: 17px;
  line-height: 1;
}

.babdori-card-comment-like em {
  display: inline-block;
  margin: 0;
  color: inherit;
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  line-height: 1;
}

.babdori-card-comment-like.is-liked {
  color: #f43f5e;
}

.babdori-comment-actions .comments-button-like,
.babdori-comment-actions .comments-button-unlike,
.babdori-feed-comment-item-actions .comments-button-like,
.babdori-feed-comment-item-actions .comments-button-unlike {
  display: none !important;
}

/* =========================
   댓글 더보기 메뉴
   ========================= */

.babdori-comment-top {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  margin-bottom: 5px;
}

.babdori-comment-more-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  margin-left: auto;
}

.babdori-comment-more-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.babdori-comment-more-button:hover,
.babdori-comment-more-button.is-open {
  background: #f1f5f9;
  color: #334155;
}

.babdori-comment-more-button svg {
  display: block;
  width: 16px;
  height: 16px;
  fill: currentColor;
  stroke: none;
  pointer-events: none;
}

.babdori-comment-more-button svg circle {
  fill: currentColor;
  stroke: none;
}

.babdori-comment-more-menu {
  position: absolute !important;
  top: calc(100% + 6px) !important;
  right: 0 !important;
  z-index: 500 !important;
  display: none !important;
  overflow: hidden;
  min-width: 132px;
  margin: 0 !important;
  padding: 5px !important;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
}

.babdori-comment-more-menu.is-open {
  display: grid !important;
  gap: 2px;
}

.babdori-comment-more-item {
  display: flex !important;
  align-items: center !important;
  gap: 8px;
  width: 100% !important;
  min-height: 34px;
  margin: 0 !important;
  padding: 7px 9px !important;
  border: 0 !important;
  border-radius: 8px;
  background: transparent !important;
  color: #334155;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.babdori-comment-more-item:hover,
.babdori-comment-more-item:active {
  background: #f8fafc !important;
}

.babdori-comment-more-item svg {
  display: block;
  flex: 0 0 15px;
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.babdori-comment-more-item span {
  display: block;
  white-space: nowrap;
  pointer-events: none;
}

.babdori-comment-delete,
.babdori-comment-report,
.babdori-comment-block {
  color: #dc2626;
}

/* =========================
   댓글 답글 구조
   ========================= */

.babdori-comment-children {
  margin: 8px 0 0 28px;
  padding: 0;
}

.babdori-comment-children:empty {
  display: none;
}

.babdori-comment-item.is-reply {
  margin: 0 !important;
  padding: 8px 0 !important;
  border-bottom: 0 !important;
}

.babdori-comment-item.is-reply .babdori-comment-main {
  gap: 8px;
}

.babdori-comment-item.is-reply .babdori-comment-avatar {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  font-size: 11px;
}

.babdori-comment-item.is-reply .babdori-comment-body {
  min-width: 0;
}

.babdori-comment-item.is-reply .babdori-comment-info {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 6px;
  min-width: 0;
}

.babdori-comment-item.is-reply .babdori-comment-name {
  overflow: hidden;
  min-width: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.babdori-comment-item.is-reply .babdori-comment-date {
  flex: 0 0 auto;
  white-space: nowrap;
}

.babdori-comment-item.is-reply .babdori-comment-actions {
  gap: 8px !important;
}

@media (max-width: 420px) {
  .babdori-comment-children {
    margin-left: 30px;
  }
}

/* =========================
   카드 답글 너비 보정
   ========================= */

.babdori-card-reply-list {
  display: grid;
  gap: 10px;
  width: auto;
  margin-top: 10px;
  margin-left: 16px;
  overflow: visible;
}

.babdori-card-reply-list:empty {
  display: none;
}

.babdori-card-reply-item {
  position: relative;
  min-width: 0;
  padding-left: 0;
  overflow: visible;
}

/* =========================
   상세 댓글 입력창
   ========================= */

.babdori-document-comment-write {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 8px 0 12px;
}

.babdori-document-comment-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border-radius: 999px;
  background: #e8f0ff;
  color: #2563eb;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

.babdori-document-comment-write .babdori-comment-input-wrap {
  display: flex !important;
  align-items: center !important;
  flex: 1 1 auto !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 8px !important;
  min-width: 0 !important;
  min-height: 48px;
  padding: 5px 6px 5px 13px;
  border: 0;
  border-radius: 16px;
  background: #fff;
}

.babdori-document-comment-write .babdori-comment-textarea {
  display: block;
  flex: 1 1 auto !important;
  width: 0 !important;
  min-width: 0 !important;
  min-height: 38px !important;
  height: 38px !important;
  max-height: 140px;
  margin: 0 !important;
  padding: 9px 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #334155;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.45;
  resize: none !important;
}

.babdori-document-comment-write .babdori-comment-submit {
  display: block !important;
  flex: 0 0 auto !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}

.babdori-document-comment-write .babdori-comment-submit input {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  min-width: 62px !important;
  height: 38px !important;
  margin: 0 !important;
  padding: 0 14px !important;
  border: 0 !important;
  border-radius: 11px;
  background: #2563eb !important;
  color: #fff !important;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}

@media (max-width: 640px) {
  .babdori-document-comment-avatar {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
    font-size: 12px;
  }
}
