/* 문의 게시판 (rt/board.js) — 사이트 톤에 맞춘 모양 (2026-10-11 병원 요청)
   토프 #675b56 · 크림 #f5f2f0 · 가는 선 · 각진 버튼. 글꼴은 사이트 기본(영문·숫자 Times New Roman + 한글 나눔바른고딕)을 물려받는다.
   목록은 아임웹 목록 마크업(.li_board) 위에 덧입히고(.rt-bd), 글 보기·글쓰기는 패널(.rt-bp)이다. */
html[lang="ko"] .rt-bd-note, html[lang="ko"] .rt-bp { word-break: keep-all; }
.rt-bd { --bd: #675b56; --bd-dark: #564b47; --bd-soft: #a79a95; --bd-cream: #f5f2f0; --bd-line: #e9e4e0; --bd-text: #5f5753; }

/* ---------- 목록 위 안내 ---------- */
.rt-bd-note { display: flex; align-items: center; justify-content: center; gap: 9px; margin: 0 0 28px; padding: 14px 18px; background: var(--bd-cream); color: var(--bd-text); font-size: 13px; line-height: 1.6; text-align: center; }
.rt-bd-note svg { flex: none; color: var(--bd); }

/* ---------- 목록 ---------- */
.rt-bd .li_board { border-top: 1px solid var(--bd); }
.rt-bd .li_board .li_header { border-bottom: 1px solid var(--bd-line); }
.rt-bd .li_board .li_header > li { padding-top: 16px; padding-bottom: 16px; color: var(--bd); font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.rt-bd .li_board .li_header a { color: inherit; }
.rt-bd .li_board .li_body { border-bottom: 1px solid var(--bd-line); transition: background-color .15s ease; }
.rt-bd .li_board .li_body:hover { background: #faf8f6; }
.rt-bd .li_board .li_body > li { padding-top: 19px; padding-bottom: 19px; }
.rt-bd .li_board .li_body .count { color: var(--bd-soft); font-size: 14px; }
.rt-bd .li_board .li_body .name, .rt-bd .li_board .li_body .time { color: var(--bd-soft); font-size: 13px; }
.rt-bd-cat { display: inline-block; padding: 2px 9px; border: 1px solid #d8cfca; color: var(--bd); font-size: 12px; font-style: normal; line-height: 1.5; white-space: nowrap; }
.rt-bd .li_board a:hover .rt-bd-cat { border-color: var(--bd); }
.rt-bd .li_board .li_body .tit .tit_ico { display: inline-block; margin: 0 8px 0 0; color: #b9aea9; }
.rt-bd-m { display: inline-flex; align-items: center; gap: 7px; margin-left: 12px; vertical-align: 1px; position: relative; z-index: 2; }
.rt-bd-lock { vertical-align: -2px; }
.rt-bd .li_board .list_text_title { color: #4a433f; font-size: 15px; }
.rt-bd .li_board .list_text_title:hover span { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.rt-bd-new { color: #b58a63; font-size: 11px; font-style: normal; font-weight: 700; }
.rt-bd-st { display: inline-block; padding: 1px 7px; border: 1px solid #d8cfca; color: var(--bd-soft); font-size: 11px; line-height: 1.6; white-space: nowrap; }
.rt-bd-st.is-done { border-color: var(--bd); background: var(--bd); color: #fff; }
.rt-board-empty { margin: 0; padding: 64px 0; border-bottom: 1px solid var(--bd-line, #e9e4e0); color: #a79a95; font-size: 14px; text-align: center; }

/* ---------- 검색 · 글쓰기 · 쪽 번호 ---------- */
.rt-bd .li_footer { margin-top: 26px; }
.rt-bd .li_footer .form-control { border-color: #d8cfca; color: var(--bd-text); box-shadow: none; }
.rt-bd .li_footer .form-control:focus { border-color: var(--bd); }
.rt-bd .li_footer .ico-search { color: var(--bd); }
.rt-bd .btn, .rt-bp .btn { border-radius: 0; font-size: 12px; font-weight: 700; letter-spacing: 1px; box-shadow: none; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.rt-bd .li_footer a.btn.btn-primary, .rt-bp .btn.btn-primary { padding: 10px 30px; border: 1px solid #675b56 !important; background: #675b56 !important; color: #fff !important; }
.rt-bd .li_footer a.btn.btn-primary:hover, .rt-bd .li_footer a.btn.btn-primary:focus, .rt-bp .btn.btn-primary:hover, .rt-bp .btn.btn-primary:focus { border-color: #564b47 !important; background: #564b47 !important; color: #fff !important; }
.rt-bp .btn.btn-default { padding: 10px 26px; border: 1px solid #675b56; background: transparent; color: #675b56; }
.rt-bp .btn.btn-default:hover, .rt-bp .btn.btn-default:focus { background: #675b56; color: #fff; }
.rt-bd .btn:focus-visible, .rt-bp .btn:focus-visible { outline: 2px solid var(--bd); outline-offset: 3px; }
.rt-bd .paging-block { margin-top: 30px; }
.rt-bd .pagination > li > a { border: 0; background: none; color: var(--bd-soft); font-size: 15px; }
.rt-bd .pagination > li.active > a { color: var(--bd); font-weight: 700; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.rt-bd .pagination > li > a:hover { color: var(--bd); }

/* ---------- 글 보기 · 글쓰기 패널 ---------- */
.rt-bp { max-width: 860px; margin: 0 auto; font-size: 15px; line-height: 1.7; color: #5f5753; }
.rt-bp:empty { display: none; }
.rt-bp .btn { min-width: 96px; }
.rt-bp-actions { display: flex; justify-content: center; gap: 10px; margin: 34px 0 8px; }
.rt-bp-msg { min-height: 1.4em; margin: 12px 0 0; color: #b0483c; font-size: 13px; text-align: center; }
.rt-bp-msg:empty { min-height: 0; margin: 0; }
/* 비밀번호 */
.rt-bp-pw { max-width: 440px; margin: 28px auto 40px; padding: 44px 32px 30px; border: 1px solid #e9e4e0; text-align: center; }
.rt-bp-ico { display: flex; align-items: center; justify-content: center; width: 68px; height: 68px; margin: 0 auto 20px; border-radius: 50%; background: #f5f2f0; color: #675b56; }
.rt-bp-ico svg { width: 24px; height: 24px; }
.rt-bp-lock { margin: 0 0 22px; color: #5f5753; font-size: 14px; line-height: 1.7; }
.rt-bp-row { display: flex; gap: 8px; }
.rt-bp-row .form-control { flex: 1 1 auto; min-width: 0; height: 42px; padding: 0 12px; border: 1px solid #d8cfca; border-radius: 0; box-shadow: none; }
.rt-bp-row .form-control:focus { border-color: #675b56; }
.rt-bp-row .btn-primary { padding: 0 22px; }
/* 글 */
.rt-bp-post header { padding: 0 0 20px; border-bottom: 1px solid #675b56; }
.rt-bp-cat { display: inline-block; margin: 0 0 12px; padding: 2px 9px; border: 1px solid #d8cfca; color: #675b56; font-size: 12px; line-height: 1.5; }
.rt-bp-post h3 { margin: 0; color: #4a433f; font-size: 22px; line-height: 1.45; font-weight: 700; overflow-wrap: anywhere; }
.rt-bp-meta { display: flex; gap: 14px; margin: 12px 0 0; color: #a79a95; font-size: 13px; }
.rt-bp-body { min-height: 150px; padding: 28px 2px; border-bottom: 1px solid #e9e4e0; white-space: pre-wrap; overflow-wrap: anywhere; }
.rt-bp-reply { margin-top: 26px; padding: 24px 26px; background: #f5f2f0; }
.rt-bp-reply h4 { margin: 0 0 12px; color: #675b56; font-size: 15px; font-weight: 700; }
.rt-bp-reply h4 span { margin-left: 8px; color: #a79a95; font-size: 12px; font-weight: 400; }
.rt-bp-rbody { white-space: pre-wrap; overflow-wrap: anywhere; }
.rt-bp-reply.is-wait .rt-bp-rbody { color: #a79a95; }
.rt-bp .rt-bp-del { border-color: #d8cfca; color: #a79a95; }
.rt-bp .rt-bp-del:hover, .rt-bp .rt-bp-del:focus { border-color: #675b56; background: transparent; color: #675b56; }
/* 글쓰기 */
.rt-bp-write { padding: 4px 0 8px; }
.rt-bp-notice { margin: 0 0 28px; padding: 14px 18px; background: #f5f2f0; color: #5f5753; font-size: 13px; text-align: center; }
.rt-bp-f { display: block; margin: 0 0 20px; font-weight: 400; }
.rt-bp-f > span { display: block; margin: 0 0 7px; color: #675b56; font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.rt-bp-f .form-control { width: 100%; height: 44px; padding: 0 12px; border: 1px solid #d8cfca; border-radius: 0; box-shadow: none; color: #4a433f; }
.rt-bp-f .form-control:focus { border-color: #675b56; }
.rt-bp-f textarea.form-control { height: auto; min-height: 200px; padding: 12px; resize: vertical; }
.rt-bp-f small { display: block; margin-top: 6px; color: #a79a95; font-size: 12px; }
.rt-bp-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.rt-bp .rt-consent button[data-more] { flex: none; border: 0; background: none; padding: 0 2px; font: inherit; font-size: 12px; color: #a79a95; text-decoration: underline; cursor: pointer; }
.rt-bp .rt-agree-text p { white-space: pre-line; }

@media (max-width: 767px) {
  .rt-bd-note { margin-bottom: 18px; padding: 12px 14px; font-size: 12.5px; text-align: start; }
  .rt-bd .li_board .li_body > li { padding-top: 0; padding-bottom: 0; }
  .rt-bd .li_board .li_body { padding: 16px 2px; }
  /* 휴대폰: 분류·상태 한 줄 → 제목 → 글쓴이·날짜 */
  .rt-bd .li_board .li_body .tit { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.55; }
  .rt-bd-m { order: -1; margin: 0 0 8px; }
  .rt-bd .li_board .list_text_title { font-size: 15px; }
  .rt-bd .li_board .li_body .name, .rt-bd .li_board .li_body .time { margin-top: 6px; }
  .rt-bd .li_footer { margin-top: 18px; }
  .rt-bp { padding: 0 4px; font-size: 14.5px; }
  .rt-bp-2 { grid-template-columns: 1fr; }
  .rt-bp-post h3 { font-size: 19px; }
  .rt-bp-pw { margin: 16px auto 28px; padding: 32px 18px 22px; }
  .rt-bp-reply { padding: 20px 18px; }
}
html[dir="rtl"] .rt-bp-body, html[dir="rtl"] .rt-bp-rbody, html[dir="rtl"] .rt-bp-post h3 { unicode-bidi: plaintext; }
@media (prefers-reduced-motion: reduce) { .rt-bd .li_board .li_body, .rt-bd .btn, .rt-bp .btn { transition: none; } }
