.oj-btn-sm { background: var(--oj-accent, #B5651D); color: #FFFFFF; border-radius: 999px; padding: 6px 16px; font-size: 13px; border: none; cursor: pointer; }

/* write_form.html 너비/색상 피커 */
.board_write .iText { width: 100%; box-sizing: border-box; }
.board_write .write_header { display: flex; align-items: center; gap: 10px; }
.board_write .write_header input[name="title"] { flex-grow: 1; padding: 10px 12px; font-size: 16px; }

.oj-category-tabs { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 0 24px; }
.oj-cat-tab {
  font-size: 13px;
  text-decoration: none;
  color: var(--oj-muted, #A99676);
  background: #FFFFFF;
  border: 1px solid var(--oj-line, #EFE4C9);
  border-radius: 999px;
  padding: 6px 14px;
}
.oj-cat-tab.active {
  background: var(--oj-accent, #B5651D);
  color: #FFFFFF !important;
  border-color: var(--oj-accent, #B5651D);
}
.oj-cat-count { font-size: 11px; opacity: 0.7; }

.oj-bottom-list { border-top: 1px solid var(--oj-line, #EFE4C9); padding-top: 32px; margin-top: 8px; }

.oj-board-breadcrumb {
  padding: 40px 0 0;
  font-size: 13px;
  color: var(--oj-muted, #8A7A5F);
}

.oj-board-head {
  padding: 20px 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.oj-board-head h1 {
  margin: 0;
  font-family: 'Noto Serif KR', serif;
  font-size: 30px;
  font-weight: 700;
}
.oj-board-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #FFFFFF;
  border: 1px solid var(--oj-line, #EFE4C9);
  border-radius: 999px;
  padding: 10px 18px;
  width: 260px;
}
.oj-board-search input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  width: 100%;
}

.oj-board-list { display: flex; flex-direction: column; gap: 6px; padding: 0 0 20px; }
.oj-row-line { display: flex; align-items: center; gap: 10px; }
.oj-row-line input[type="checkbox"] { flex-shrink: 0; }
.oj-row-line .oj-row { flex-grow: 1; }
.oj-bulk-bar { display: flex; justify-content: space-between; align-items: center; padding: 0 0 32px; }
.oj-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #FFFFFF;
  border: 1px solid var(--oj-line, #EFE4C9);
  border-radius: 12px;
}
.oj-row:hover { border-color: var(--oj-accent, #B5651D); }
.oj-row-notice { background: #F5ECDB; border-color: #EADFC8; }
.oj-row-current { background: #FBF2E4; border-color: var(--oj-accent, #B5651D); }
.oj-row .oj-num { font-size: 12px; color: var(--oj-muted, #A99676); width: 44px; text-align: center; flex-shrink: 0; }
.oj-row .oj-title { flex-grow: 1; font-size: 15px; }
.oj-row .oj-writer,
.oj-row .oj-date,
.oj-row .oj-readed { font-size: 13px; color: var(--oj-muted, #A99676); flex-shrink: 0; }
.oj-row .oj-writer { width: 70px; }
.oj-row .oj-date { width: 90px; text-align: right; }
.oj-row .oj-readed { width: 70px; text-align: right; }
.oj-row .oj-cmt-count { font-size: 12px; color: var(--oj-accent, #B5651D); margin-left: 6px; }

@media (max-width: 640px) {
  .oj-row { flex-wrap: wrap; }
  .oj-row .oj-writer,
  .oj-row .oj-readed { display: none; }
  .oj-row .oj-date { width: auto; }
}

.oj-pagination { display: flex; justify-content: center; gap: 6px; padding: 0 0 72px; }
.oj-pgbtn {
  width: 34px; height: 34px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: #6E5D45;
}
.oj-pgbtn.active { background: var(--oj-accent, #B5651D); color: #FFFFFF; }
.oj-pgbtn { text-decoration: none; transition: background .15s; }
a.oj-pgbtn:hover { background: #F5ECDB; color: var(--oj-accent, #B5651D); }
.oj-pgnav { color: #A99676; }
.oj-pagination-view { padding: 20px 0 8px; }
@media (max-width: 600px) {
  .oj-pagination { gap: 2px; flex-wrap: wrap; }
  .oj-pgbtn { width: 32px; height: 32px; font-size: 13px; }
}

/* detail (view) */
.oj-view-wrap { max-width: 1160px; margin: 0 auto; padding: 24px 24px 0; }
.oj-view-head { display: flex; flex-direction: column; gap: 12px; border-bottom: 1px solid var(--oj-line, #EFE4C9); padding-bottom: 24px; }
.oj-view-head h1 { margin: 0; font-family: 'Noto Serif KR', serif; font-size: 27px; font-weight: 700; line-height: 1.45; }
.oj-view-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.oj-view-content { padding: 32px 0; font-size: 16px; line-height: 1.9; overflow-x: auto; }
.oj-view-content img { max-width: 100%; height: auto; border-radius: 12px; }
.oj-view-content iframe, .oj-view-content video { max-width: 100%; }
.oj-view-content table { max-width: 100%; }
.oj-view-content > * { max-width: 100% !important; box-sizing: border-box; }
.oj-file-list { display: flex; flex-direction: column; gap: 10px; padding-bottom: 28px; }
.oj-file {
  display: flex; align-items: center; gap: 10px; font-size: 14px;
  padding: 10px 14px; background: #FBF7EE;
  border: 1px solid var(--oj-line, #EFE4C9); border-radius: 10px;
}
.oj-action-bar { display: flex; gap: 16px; margin-top: 14px; flex-wrap: wrap; }
.oj-action-link {
  font-size: 13px;
  color: var(--oj-muted, #A99676);
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.oj-action-link:hover { color: var(--oj-accent, #B5651D); text-decoration: underline; }
.oj-action-link.oj-danger:hover { color: #B3413A; }
.oj-comment-area { border-top: 1px solid var(--oj-line, #EFE4C9); padding: 32px 0; }
.oj-comment-item { display: flex; gap: 12px; margin-bottom: 18px; }
/* reply depth: 1 step = 40px, max 4 steps */
.oj-comment-item.oj-depth-1 { margin-left: 40px; }
.oj-comment-item.oj-depth-2 { margin-left: 80px; }
.oj-comment-item.oj-depth-3 { margin-left: 120px; }
.oj-comment-item.oj-depth-4 { margin-left: 160px; }
@media (max-width: 600px) {
  .oj-comment-item.oj-depth-1 { margin-left: 16px; }
  .oj-comment-item.oj-depth-2 { margin-left: 32px; }
  .oj-comment-item.oj-depth-3,
  .oj-comment-item.oj-depth-4 { margin-left: 48px; }
}
.oj-comment-actions { display: flex; gap: 8px; margin-top: 8px; }
.oj-cmt-btn {
  font-size: 12px;
  color: var(--oj-muted, #A99676);
  background: #FBF7EE;
  border: 1px solid var(--oj-line, #EFE4C9);
  border-radius: 999px;
  padding: 4px 12px;
  cursor: pointer;
}
.oj-cmt-btn:hover { border-color: var(--oj-accent, #B5651D); color: var(--oj-accent, #B5651D); }
.oj-cmt-btn.oj-danger:hover { border-color: #B3413A; color: #B3413A; }
.oj-reply-indicator {
  display: none;
  font-size: 12px;
  color: var(--oj-accent, #B5651D);
  margin-bottom: 8px;
}
.oj-reply-indicator button {
  background: none; border: none; color: var(--oj-muted, #A99676);
  text-decoration: underline; cursor: pointer; font-size: 12px; margin-left: 6px;
}
.oj-comment-avatar { width: 34px; height: 34px; min-width: 34px; border-radius: 50%; background: #E7D9BC; }
.oj-comment-textarea {
  width: 100%; min-height: 64px; background: #FFFFFF;
  border: 1px solid var(--oj-line, #EFE4C9); border-radius: 12px;
  padding: 12px 14px; font-size: 14px; box-sizing: border-box;
  font-family: inherit;
}
.oj-list-btn-wrap { display: flex; justify-content: center; padding: 8px 0 64px; }

/* Rhymix "이 댓글을" popup-menu link inside comment content */
.oj-comment-item .comment_popup_menu,
.oj-comment-item .document_popup_menu { margin-top: 14px; text-align: left; }
.oj-comment-item .comment_popup_menu a,
.oj-comment-item .comment_popup_menu button,
.oj-comment-item .comment_popup_menu span,
.oj-comment-item a[class*="comment_"],
.oj-comment-item button[class*="comment_"] {
  display: inline-block;
  padding: 0;
  background: none !important;
  border: 0 !important;
  font-family: inherit;
  font-size: 12px !important;
  color: var(--oj-muted, #A99676) !important;
  text-decoration: none !important;
  cursor: pointer;
  transition: color .15s;
}
.oj-comment-item .comment_popup_menu a:hover,
.oj-comment-item .comment_popup_menu button:hover,
.oj-comment-item .comment_popup_menu span:hover,
.oj-comment-item .comment_popup_menu:hover *,
.oj-comment-item a[class*="comment_"]:hover,
.oj-comment-item button[class*="comment_"]:hover {
  color: var(--oj-accent, #B5651D) !important;
}

/* Rhymix image name / image mark */
.oj-nick { color: inherit; text-decoration: none; }
.oj-nick:hover { color: var(--oj-accent, #B5651D); }
.oj-nick img,
.oj-writer img { vertical-align: middle; max-height: 22px; width: auto; }
.oj-row .oj-writer { width: 90px; overflow: hidden; white-space: nowrap; }

/* old posts wrapped in a white box: make white backgrounds transparent (other colors are kept) */
.oj-view-content [bgcolor="#ffffff" i],
.oj-view-content [bgcolor="#fff" i],
.oj-view-content [bgcolor="white" i],
.oj-view-content [style*="background-color: rgb(255, 255, 255)" i],
.oj-view-content [style*="background-color:rgb(255,255,255)" i],
.oj-view-content [style*="background-color: #ffffff" i],
.oj-view-content [style*="background-color:#ffffff" i],
.oj-view-content [style*="background-color: #fff;" i],
.oj-view-content [style*="background-color:#fff;" i],
.oj-view-content [style*="background-color: white" i],
.oj-view-content [style*="background-color:white" i],
.oj-view-content [style*="background: rgb(255, 255, 255)" i],
.oj-view-content [style*="background:rgb(255,255,255)" i],
.oj-view-content [style*="background: #ffffff" i],
.oj-view-content [style*="background:#ffffff" i],
.oj-view-content [style*="background: #fff;" i],
.oj-view-content [style*="background:#fff;" i],
.oj-view-content [style*="background: white" i],
.oj-view-content [style*="background:white" i] {
  background: transparent !important;
  background-color: transparent !important;
}

/* Rhymix "이 게시물을" popup-menu link under the post */
.oj-view-content .document_popup_menu { margin-top: 28px; text-align: left; }
.oj-view-content .document_popup_menu a,
.oj-view-content .document_popup_menu button,
.oj-view-content .document_popup_menu span,
.oj-view-content a[class*="document_"],
.oj-view-content button[class*="document_"] {
  display: inline-block;
  padding: 0;
  background: none !important;
  border: 0 !important;
  font-family: inherit;
  font-size: 12px !important;
  color: var(--oj-muted, #A99676) !important;
  text-decoration: none !important;
  cursor: pointer;
  transition: color .15s;
}
.oj-view-content .document_popup_menu:hover *,
.oj-view-content a[class*="document_"]:hover,
.oj-view-content button[class*="document_"]:hover {
  color: var(--oj-accent, #B5651D) !important;
}

/* attachment: long file names */
.oj-file { min-width: 0; }
.oj-file svg { flex-shrink: 0; }
.oj-file .oj-file-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oj-file .oj-file-size { flex-shrink: 0; color: #A99676; font-size: 12px; margin-left: 12px; }

/* admin-only IP address */
.oj-ip {
  display: inline-block;
  padding: 1px 8px;
  font-size: 11px;
  color: #8A7759;
  background: #F1E7D2;
  border-radius: 999px;
  letter-spacing: .02em;
}

/* board header/footer text (게시판 관리 > 상단/하단 내용) */
.oj-board-header-text { margin: 0 0 20px; }
.oj-board-footer-text { margin: 24px 0 0; }
.oj-board-header-text iframe,
.oj-board-footer-text iframe { max-width: 100%; }
.oj-board-header-text p,
.oj-board-footer-text p { margin: 0; }


/* ===== comment editor page (comment_form.html) ===== */
.oj-cform-wrap { max-width: 1000px; margin: 0 auto; padding: 36px 24px 72px; box-sizing: border-box; }
.oj-cform-title { margin: 0 0 18px; font-family: 'Noto Serif KR', serif; font-size: 22px; color: #3D3229; }
.oj-cform-title small { margin-left: 8px; font-family: inherit; font-size: 13px; font-weight: 400; color: var(--oj-muted, #A99676); }
.oj-cform-source { margin-bottom: 18px; padding: 14px 18px; background: rgba(243, 234, 216, .6); border-left: 3px solid var(--oj-accent, #B5651D); border-radius: 8px; }
.oj-cform-source-meta { font-size: 13px; color: #8A7759; margin-bottom: 6px; }
.oj-cform-source-text { font-size: 14px; line-height: 1.7; color: #3D3229; }
.oj-cform-guest { display: flex; gap: 8px; margin-bottom: 12px; }
.oj-cform-guest input { flex: 1; max-width: 220px; padding: 9px 14px; font-size: 14px; font-family: inherit; border: 1px solid #E2D5B8; border-radius: 999px; background: #FFFDF8; }
.oj-cform-btns { display: flex; justify-content: center; gap: 10px; margin-top: 24px; }
.oj-cform-submit, .oj-cform-cancel {
  display: inline-block; padding: 10px 28px; border-radius: 999px; font-family: inherit; font-size: 14px; cursor: pointer; text-decoration: none;
}
.oj-cform-submit { border: 0; background: var(--oj-accent, #B5651D); color: #fff; }
.oj-cform-submit:hover { opacity: .88; }
.oj-cform-cancel { border: 1px solid #E2D5B8; color: #6E5D45; background: transparent; }
.oj-cform-cancel:hover { color: var(--oj-accent, #B5651D); }

/* "에디터" option under comment inputs */
.oj-cmt-opts { display: flex; align-items: center; gap: 16px; margin: 8px 0 0 6px; }
.oj-cmt-opt { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: #5A4A36; text-decoration: none; cursor: pointer; background: none; border: 0; padding: 0; font-family: inherit; }
.oj-cmt-opt:hover { color: var(--oj-accent, #B5651D); }
@media (max-width: 600px) { .oj-cform-wrap { padding: 22px 12px 56px; } .oj-cform-guest { flex-direction: column; } .oj-cform-guest input { max-width: none; } }
