/* 오작교의 홈 - 한 줄 메모장 */
.ojm-wrap { max-width: 1000px; margin: 0 auto; padding: 36px 24px 72px; box-sizing: border-box; }
.ojm-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.ojm-title { margin: 0; font-family: 'Noto Serif KR', serif; font-size: 24px; font-weight: 700; color: #3D3229; }
.ojm-title small { margin-left: 8px; font-family: inherit; font-size: 14px; font-weight: 400; color: var(--oj-muted, #A99676); }
.ojm-admin-link { font-size: 13px; color: var(--oj-muted, #A99676); text-decoration: none; white-space: nowrap; }
.ojm-admin-link:hover { color: var(--oj-accent, #B5651D); }

/* write */
.ojm-write { margin-bottom: 30px; }
.ojm-inputbar {
  display: flex; align-items: flex-end; gap: 10px;
  background: var(--oj-card, #fff);
  border: 1px solid var(--oj-line, #EADFC8);
  border-radius: 26px;
  padding: 7px 7px 7px 20px;
  transition: border-color .15s, box-shadow .15s;
}
.ojm-inputbar:focus-within { border-color: var(--oj-accent, #B5651D); box-shadow: 0 0 0 3px rgba(181, 101, 29, .10); }
.ojm-inputbar textarea {
  flex: 1; min-width: 0; resize: none; overflow-y: auto;
  border: 0; outline: none; background: transparent;
  padding: 8px 0; font-family: inherit; font-size: 15px; line-height: 1.6; color: #3D3229;
  height: 40px; box-sizing: border-box;
}
.ojm-send {
  flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 0; cursor: pointer;
  background: var(--oj-accent, #B5651D); color: #fff;
}
.ojm-send:hover { opacity: .88; }
.ojm-send:disabled { opacity: .5; }
.ojm-opts { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin: 10px 0 0 6px; }
.ojm-opt { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: #5A4A36; text-decoration: none; cursor: pointer; }
.ojm-opt:hover { color: var(--oj-accent, #B5651D); }
.ojm-opt input { margin: 0; accent-color: var(--oj-accent, #B5651D); }
.ojm-write-off { margin-bottom: 30px; padding: 14px; text-align: center; color: #8A7759; font-size: 14px; background: var(--oj-card, #fff); border: 1px solid var(--oj-line, #EADFC8); border-radius: 26px; }
.ojm-write-off a { color: var(--oj-accent, #B5651D); }
.ojm-guest { display: flex; gap: 8px; margin-bottom: 10px; }
.ojm-guest input {
  flex: 1; min-width: 0; max-width: 220px; padding: 8px 14px; font-size: 14px; font-family: inherit;
  border: 1px solid #E2D5B8; border-radius: 999px; background: #FFFDF8;
}
.ojm-guest input:focus { outline: none; border-color: var(--oj-accent, #B5651D); }

/* notice */
.ojm-notices { margin-bottom: 30px; border-radius: 14px; overflow: hidden; border: 1px solid #EFE3BE; }
.ojm-notice { display: flex; gap: 22px; padding: 22px 26px; background: #FFFBEA; }
.ojm-notice + .ojm-notice { border-top: 1px solid #EFE3BE; }
.ojm-notice-label { flex-shrink: 0; padding-top: 2px; font-size: 13px; font-weight: 600; color: var(--oj-accent, #B5651D); }
.ojm-notice-body { flex: 1; min-width: 0; }
.ojm-notice-actions { display: flex; gap: 14px; margin-top: 10px; }
.ojm-notice-actions a,
.ojm-notice-actions button { padding: 0; border: 0; background: none; cursor: pointer; font-family: inherit; font-size: 13px; color: #8A7759; text-decoration: underline; text-underline-offset: 3px; }
.ojm-notice-actions a:hover,
.ojm-notice-actions button:hover { color: var(--oj-accent, #B5651D); }

/* memo item */
.ojm-list { display: flex; flex-direction: column; gap: 18px; }
.ojm-empty { text-align: center; padding: 40px 0; color: var(--oj-muted, #A99676); }
.ojm-item {
  background: var(--oj-card, #fff);
  border: 1px solid var(--oj-line, #EADFC8);
  border-top: 2px solid #5A4A36;
  border-radius: 4px 4px 14px 14px;
}
.ojm-meta {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  padding: 12px 20px;
  border-bottom: 1px solid #F1E9D8;
}
.ojm-meta-left { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; min-width: 0; }
.ojm-meta-right { display: flex; gap: 6px; }
.ojm-nick { font-size: 14px; font-weight: 600; color: #3D3229; text-decoration: none; }
.ojm-nick:hover { color: var(--oj-accent, #B5651D); }
.ojm-nick img { vertical-align: middle; max-height: 22px; width: auto; }
.ojm-cbadge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 9px; border: 0; border-radius: 999px; cursor: pointer;
  background: #F3ECDD; color: #6E5D45; font-family: inherit; font-size: 12px;
}
.ojm-cbadge:hover { background: var(--oj-accent, #B5651D); color: #fff; }
.ojm-date { font-size: 13px; color: var(--oj-muted, #A99676); }
.ojm-ip { font-size: 12px; color: #A99676; }
.ojm-pill {
  display: inline-block; padding: 4px 11px; border: 0; border-radius: 999px; cursor: pointer;
  background: #F3ECDD; color: #6E5D45; font-family: inherit; font-size: 12px; text-decoration: none;
}
.ojm-pill:hover { background: var(--oj-accent, #B5651D); color: #fff; }
.ojm-pill.ojm-del-doc:hover { background: #B3413A; }
.ojm-content { padding: 22px 26px 24px; }
.ojm-text { font-size: 15px; line-height: 1.85; color: #3D3229; word-break: keep-all; overflow-wrap: anywhere; }
.ojm-text img { max-width: 100%; height: auto; }
.ojm-text p { margin: 0; }

/* comments */
.ojm-cmt-box { display: none; margin: 0 20px 20px; padding: 14px 16px; background: #FBF6EC; border-radius: 10px; }
.ojm-cmt + .ojm-cmt { margin-top: 12px; padding-top: 12px; border-top: 1px solid #F0E6D2; }
.ojm-cmt-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 4px; }
.ojm-cmt .ojm-text { font-size: 14px; line-height: 1.7; }
.ojm-link { padding: 0; border: 0; background: none; cursor: pointer; font-family: inherit; font-size: 12px; color: var(--oj-muted, #A99676); }
.ojm-link:hover { color: #B3413A; }
.ojm-cmt-write { margin-top: 12px; }
.ojm-cmt-row { display: flex; gap: 8px; }
.ojm-cmt-row input {
  flex: 1; min-width: 0; padding: 8px 14px; font-size: 14px; font-family: inherit;
  border: 1px solid #E2D5B8; border-radius: 999px; background: #fff;
}
.ojm-cmt-row input:focus { outline: none; border-color: var(--oj-accent, #B5651D); }

/* buttons */
.ojm-btn {
  display: inline-block; padding: 9px 24px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--oj-accent, #B5651D); color: #fff; font-family: inherit; font-size: 14px; text-decoration: none;
}
.ojm-btn:hover { opacity: .88; }
.ojm-btn:disabled { opacity: .5; cursor: default; }
.ojm-btn-sm { padding: 7px 16px; font-size: 13px; flex-shrink: 0; }
.ojm-btn-line { background: transparent; color: #6E5D45; border: 1px solid #E2D5B8; }

/* editor page */
.ojm-editor { margin: 6px 0 4px; }
.ojm-opts-editor { margin: 14px 0 0; }
.ojm-editor-btns { display: flex; justify-content: center; gap: 10px; margin-top: 28px; }

/* pagination */
.ojm-pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 34px; }
.ojm-pg { width: 34px; height: 34px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-size: 14px; color: #6E5D45; text-decoration: none; }
a.ojm-pg:hover { background: #F5ECDB; color: var(--oj-accent, #B5651D); }
.ojm-pg.active { background: var(--oj-accent, #B5651D); color: #fff; }
.ojm-pgnav { color: #A99676; }

.ojm-message { text-align: center; padding: 60px 20px; background: var(--oj-card, #fff); border: 1px solid var(--oj-line, #EADFC8); border-radius: 16px; }
.ojm-message p { margin: 0 0 20px; font-size: 15px; color: #3D3229; }

@media (max-width: 600px) {
  .ojm-wrap { padding: 22px 12px 56px; }
  .ojm-title { font-size: 20px; }
  .ojm-title small { display: block; margin: 4px 0 0; }
  .ojm-meta { padding: 10px 14px; }
  .ojm-content { padding: 16px 16px 18px; }
  .ojm-notice { flex-direction: column; gap: 6px; padding: 16px; }
  .ojm-cmt-box { margin: 0 12px 14px; }
  .ojm-guest input { max-width: none; }
}

/* 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; }


/* memo card: use site background instead of white */
.ojm-item { background: transparent; }
.ojm-meta { border-bottom-color: var(--oj-line, #EADFC8); }
.ojm-cmt-box { background: rgba(243, 234, 216, .55); }

/* v8.8: force site background on memo cards */
.ojm-wrap .ojm-item,
.ojm-wrap .ojm-item .ojm-meta,
.ojm-wrap .ojm-item .ojm-content { background: transparent !important; background-color: transparent !important; }
.ojm-wrap .ojm-text [bgcolor="#ffffff" i],
.ojm-wrap .ojm-text [bgcolor="#fff" i],
.ojm-wrap .ojm-text [bgcolor="white" i],
.ojm-wrap .ojm-text [style*="background-color: rgb(255, 255, 255)" i],
.ojm-wrap .ojm-text [style*="background-color:rgb(255,255,255)" i],
.ojm-wrap .ojm-text [style*="background-color: #ffffff" i],
.ojm-wrap .ojm-text [style*="background-color:#ffffff" i],
.ojm-wrap .ojm-text [style*="background-color: #fff;" i],
.ojm-wrap .ojm-text [style*="background-color:#fff;" i],
.ojm-wrap .ojm-text [style*="background-color: white" i],
.ojm-wrap .ojm-text [style*="background-color:white" i],
.ojm-wrap .ojm-text [style*="background: rgb(255, 255, 255)" i],
.ojm-wrap .ojm-text [style*="background:rgb(255,255,255)" i],
.ojm-wrap .ojm-text [style*="background: #ffffff" i],
.ojm-wrap .ojm-text [style*="background:#ffffff" i],
.ojm-wrap .ojm-text [style*="background: white" i],
.ojm-wrap .ojm-text [style*="background:white" i] {
  background: transparent !important;
  background-color: transparent !important;
}

/* v9.0: comment area always visible under each memo */
.ojm-wrap .ojm-cmt-box {
  display: block;
  margin: 0;
  padding: 16px 26px 20px;
  background: transparent;
  border-top: 1px solid var(--oj-line, #EADFC8);
  border-radius: 0;
}
.ojm-cmt-list { margin-bottom: 14px; padding: 12px 16px; background: rgba(243, 234, 216, .5); border-radius: 10px; }
.ojm-cmt-write { margin-top: 0; }
.ojm-cmt-write .ojm-guest { display: none; }
.ojm-cmt-write:focus-within .ojm-guest { display: flex; }
.ojm-cmt-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 5px 5px 18px;
  background: rgba(255, 255, 255, .7);
  border: 1px solid var(--oj-line, #EADFC8);
  border-radius: 999px;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.ojm-cmt-bar:focus-within { background: #fff; border-color: var(--oj-accent, #B5651D); box-shadow: 0 0 0 3px rgba(181, 101, 29, .10); }
.ojm-cmt-bar input {
  flex: 1; min-width: 0; padding: 7px 0; border: 0; outline: none; background: transparent;
  font-family: inherit; font-size: 14px; color: #3D3229;
}
.ojm-send-sm { width: 32px; height: 32px; }
@media (max-width: 600px) {
  .ojm-wrap .ojm-cmt-box { padding: 12px 14px 16px; }
}

/* comment inline edit */
.ojm-cmt-edit { margin-top: 6px; }
.ojm-cmt-edit textarea {
  width: 100%; box-sizing: border-box; resize: vertical; min-height: 60px;
  padding: 10px 14px; font-family: inherit; font-size: 14px; line-height: 1.7; color: #3D3229;
  border: 1px solid var(--oj-accent, #B5651D); border-radius: 10px; background: #fff; outline: none;
  box-shadow: 0 0 0 3px rgba(181, 101, 29, .10);
}
.ojm-cmt-edit-btns { display: flex; justify-content: flex-end; gap: 6px; margin-top: 8px; }
.ojm-link.ojm-edit-cmt:hover { color: var(--oj-accent, #B5651D); }

/* ===== 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; } }

/* reply depth inside memo comments */
.ojm-cmt.ojm-cd-1 { margin-left: 28px; }
.ojm-cmt.ojm-cd-2 { margin-left: 56px; }
.ojm-cmt.ojm-cd-3 { margin-left: 84px; }
.ojm-cmt.ojm-cd-1, .ojm-cmt.ojm-cd-2, .ojm-cmt.ojm-cd-3 { position: relative; }
.ojm-cmt.ojm-cd-1::before, .ojm-cmt.ojm-cd-2::before, .ojm-cmt.ojm-cd-3::before {
  content: '└'; position: absolute; left: -18px; top: 12px; color: #C9B892; font-size: 13px;
}
.ojm-reply-box { margin-top: 10px; }
.ojm-link.ojm-reply-cmt:hover { color: var(--oj-accent, #B5651D); }
@media (max-width: 600px) {
  .ojm-cmt.ojm-cd-1 { margin-left: 16px; }
  .ojm-cmt.ojm-cd-2 { margin-left: 30px; }
  .ojm-cmt.ojm-cd-3 { margin-left: 44px; }
  .ojm-cmt.ojm-cd-1::before, .ojm-cmt.ojm-cd-2::before, .ojm-cmt.ojm-cd-3::before { left: -14px; }
}

/* memo opened from a direct link: brief highlight */
.ojm-item { transition: box-shadow .4s; }
.ojm-item.ojm-focus { box-shadow: 0 0 0 3px rgba(181, 101, 29, .35); }
