/* =========================================================
   KS병원 게시판 — 일반(basic) 스킨
   기존 공지사항 스타일과 동일한 심플 표 형식. rem = 10px 기준.
   ========================================================= */

/* 게시판 본문 영역 — 일반 섹션(.sect: 상단 30rem)보다 훨씬 좁은 여백 사용 */
.sect--board {
  padding-top: 2.4rem;
  padding-bottom: 8rem;
}

.bd {
  max-width: 140rem;      /* PC 최대 가로폭 1400px */
  margin-inline: auto;
  padding: 0 0 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ── 검색 ── */
.bd__search {
  display: flex;
  gap: 0.8rem;
  justify-content: flex-end;
  margin-bottom: 1.6rem;
}

.bd__search select {
  height: 4.2rem;
  padding: 0 3rem 0 1.2rem;
  border: 1px solid var(--line, #e3e6ec);
  border-radius: 0.4rem;
  background: #fff url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23767d8a' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 0.9rem center/1.4rem;
  font-size: 1.4rem;
  color: var(--ink-2, #5b6472);
  font-family: inherit;
  appearance: none;
}

.bd__search-box {
  position: relative;
  width: min(32rem, 60vw);
}

.bd__search-box input {
  width: 100%;
  height: 4.2rem;
  padding: 0 4.4rem 0 1.4rem;
  border: 1px solid var(--line, #e3e6ec);
  border-radius: 0.4rem;
  font-size: 1.4rem;
  font-family: inherit;
  background: #fff;
}

.bd__search-box input:focus {
  outline: none;
  border-color: var(--point, #1a73c1);
}

.bd__search-box button {
  position: absolute;
  top: 0;
  right: 0;
  width: 4.4rem;
  height: 4.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: none;
  color: var(--ink-2, #5b6472);
  cursor: pointer;
}

.bd__search-box button svg {
  width: 1.8rem;
  height: 1.8rem;
}

/* ── 목록 표 ── */
.bd__table {
  width: 100%;
  border-collapse: collapse;
  border-top: 2px solid var(--ink, #1b2130);
  font-size: 1.5rem;
}

.bd__table th {
  padding: 1.6rem 1rem;
  border-bottom: 1px solid var(--line, #e3e6ec);
  font-weight: 700;
  color: var(--ink, #1b2130);
  text-align: center;
}

.bd__table td {
  padding: 1.5rem 1rem;
  border-bottom: 1px solid #eef0f4;
  text-align: center;
  color: var(--ink-2, #5b6472);
}

.bd__table tbody tr:hover {
  background: #fafbfd;
}

.bd__table tr.is-notice {
  background: #f7fafd;
}

.bd__no,
.bd__hit,
.bd__date {
  color: #8a93a6;
  font-size: 1.4rem;
}

.bd__table th:nth-child(2),
.bd__table td.bd__subject {
  text-align: left;
  padding-left: 1.6rem;
}

.bd__subject a {
  color: var(--ink, #1b2130);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.bd__subject a:hover {
  color: var(--point, #1a73c1);
  text-decoration: underline;
}

.bd__new {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: #e8492f;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1;
  flex: 0 0 1.8rem;
}

.bd__lock {
  font-size: 1.3rem;
}

.bd__notice {
  display: inline-block;
  padding: 0.2rem 0.9rem;
  border-radius: 0.4rem;
  background: var(--point, #1a73c1);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
}

.bd__hidden {
  margin-left: 0.6rem;
  font-style: normal;
  font-size: 1.2rem;
  color: #c0392b;
}

.bd__empty {
  padding: 6rem 1rem !important;
  color: #8a93a6;
}

/* ── 툴바 / 페이저 ── */
.bd__toolbar {
  display: flex;
  justify-content: flex-end;
  margin-top: 2rem;
}

.bd__pager {
  display: flex;
  gap: 0.4rem;
  justify-content: center;
  align-items: center;
  margin-top: 3.2rem;
  flex-wrap: wrap;
}

.bd__pg {
  min-width: 3.6rem;
  height: 3.6rem;
  padding: 0 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line, #e3e6ec);
  border-radius: 0.4rem;
  color: var(--ink-2, #5b6472);
  font-size: 1.4rem;
  font-weight: 600;
  background: #fff;
}

.bd__pg:hover {
  border-color: var(--point, #1a73c1);
  color: var(--point, #1a73c1);
}

.bd__pg.is-active {
  border-color: var(--point, #1a73c1);
  color: var(--point, #1a73c1);
  font-weight: 700;
}

.bd__pg.is-disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* ── 상세 ── */
.bd-post {
  border-top: 2px solid var(--ink, #1b2130);
}

.bd-post__head {
  padding: 2.4rem 0.4rem 1.8rem;
  border-bottom: 1px solid var(--line, #e3e6ec);
}

.bd-post__title {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--ink, #1b2130);
}

.bd-post__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  margin: 1.2rem 0 0;
  font-size: 1.4rem;
  color: #8a93a6;
}

.bd-post__meta dt {
  display: inline;
  font-weight: 600;
}

.bd-post__meta dt::after {
  content: "";
  margin-right: 0.5rem;
}

.bd-post__meta dd {
  display: inline;
  margin: 0 1.4rem 0 0;
}

.bd-post__thumb {
  padding: 2.4rem 0 0;
}

.bd-post__thumb img {
  max-width: 100%;
  height: auto;
  border-radius: 0.8rem;
}

.bd-post__body {
  padding: 3rem 0.4rem 4rem;
  border-bottom: 1px solid var(--line, #e3e6ec);
  font-size: 1.6rem;
  line-height: 1.85;
  color: #2c3444;
  word-break: break-word;
}

.bd-post__body img {
  max-width: 100%;
  height: auto;
}

.bd-post__body p {
  margin: 0 0 1.4rem;
}

.bd-post__body h3 {
  margin: 2.4rem 0 1rem;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--ink, #1b2130);
}

.bd-post__body ul,
.bd-post__body ol {
  margin: 0 0 1.4rem;
  padding-left: 2.2rem;
  list-style: revert;
}

.bd-post__body blockquote {
  margin: 0 0 1.4rem;
  padding: 1.2rem 1.8rem;
  border-left: 3px solid var(--point, #1a73c1);
  background: #f7fafd;
  color: var(--ink-2, #5b6472);
}

.bd-post__body a {
  color: var(--point, #1a73c1);
  text-decoration: underline;
}

.bd-post__body h2 {
  margin: 2.8rem 0 1.2rem;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--ink, #1b2130);
}

.bd-post__body table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.8rem;
  font-size: 1.5rem;
}

.bd-post__body table th,
.bd-post__body table td {
  border: 1px solid var(--line, #e3e6ec);
  padding: 1rem 1.2rem;
}

.bd-post__body table th {
  background: #f7f9fc;
  font-weight: 700;
  color: var(--ink, #1b2130);
}

.bd-post__body pre {
  margin: 0 0 1.8rem;
  padding: 1.4rem 1.6rem;
  border-radius: 0.6rem;
  background: #f5f7fa;
  font-size: 1.4rem;
  overflow-x: auto;
}

.bd-post__body figure {
  margin: 0 0 1.8rem;
}

.bd-post__body figcaption {
  margin-top: 0.8rem;
  font-size: 1.3rem;
  color: #8a93a6;
  text-align: center;
}

.bd-post__body hr {
  margin: 2.4rem 0;
  border: 0;
  border-top: 1px solid var(--line, #e3e6ec);
}

.bd-post__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 2rem 0 0;
}

.bd-post__manage {
  display: flex;
  gap: 0.6rem;
}

.bd-post__manage form {
  margin: 0;
}

.btn--danger {
  color: #c0392b;
}

.btn--danger:hover {
  border-color: #c0392b;
  color: #c0392b;
}

.bd-pw {
  margin-top: 2rem;
  padding: 1.8rem;
  border: 1px solid var(--line, #e3e6ec);
  border-radius: 0.8rem;
  background: #fafbfd;
}

.bd-pw__label {
  margin: 0 0 1rem;
  font-size: 1.4rem;
  color: var(--ink-2, #5b6472);
}

.bd-pw__row {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.bd-pw__form {
  display: flex;
  gap: 0.6rem;
  margin: 0;
}

.bd-pw__form input[type="password"] {
  height: 4rem;
  padding: 0 1.2rem;
  border: 1px solid var(--line, #e3e6ec);
  border-radius: 0.4rem;
  font-size: 1.4rem;
  font-family: inherit;
}

/* ── 글쓰기 ── */
.bd-write {
  border-top: 2px solid var(--ink, #1b2130);
  padding-top: 2.4rem;
}

.bd-write__row {
  margin-bottom: 1.8rem;
}

.bd-write__row label {
  display: block;
  margin-bottom: 0.7rem;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink, #1b2130);
}

.bd-write__row--split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr));
  gap: 1.4rem;
}

.bd-write__input {
  width: 100%;
  height: 4.6rem;
  padding: 0 1.4rem;
  border: 1px solid var(--line, #e3e6ec);
  border-radius: 0.4rem;
  font-size: 1.5rem;
  font-family: inherit;
  background: #fff;
}

.bd-write__input:focus {
  outline: none;
  border-color: var(--point, #1a73c1);
}

.bd-write__input[readonly] {
  background: #f5f7fa;
  color: var(--ink-2, #5b6472);
}

.bd-write__editor {
  width: 100%;
  padding: 1.4rem;
  border: 1px solid var(--line, #e3e6ec);
  border-radius: 0.4rem;
  font-size: 1.5rem;
  font-family: inherit;
  line-height: 1.8;
  resize: vertical;
}

.bd-write__file {
  font-size: 1.4rem;
}

.bd-write__help {
  margin: 0.6rem 0 0;
  font-size: 1.3rem;
  color: #8a93a6;
}

.bd-write__opts {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.bd-write__check {
  display: inline-flex !important;
  align-items: center;
  gap: 0.7rem;
  margin: 0 !important;
  font-weight: 600 !important;
  color: var(--ink-2, #5b6472) !important;
}

.bd-write__check input {
  width: 1.8rem;
  height: 1.8rem;
}

.bd-write__foot {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line, #e3e6ec);
  margin-top: 2.4rem;
}

/* ── 알림 ── */
.bd-flash {
  margin-bottom: 1.8rem;
  padding: 1.2rem 1.6rem;
  border-radius: 0.6rem;
  font-size: 1.4rem;
  font-weight: 600;
}

.bd-flash--error {
  background: #fdecea;
  color: #c0392b;
}

.bd-flash--ok {
  background: #e8f5ee;
  color: #1c7a53;
}

/* =========================================================
   고객의 소리(voice) 스킨
   상단(영문 제목·타이틀·설명글)은 일반 게시판과 동일한 .doc-intro 사용
   ========================================================= */
.bd-voice__lock {
  display: inline-flex;
  flex: 0 0 auto;
  color: #8a93a6;
}

.bd-voice__lock svg {
  width: 1.5rem;
  height: 1.5rem;
}

.bd-voice__arrow {
  color: #aab2c0;
  font-weight: 700;
  margin-right: 0.2rem;
}

.bd-voice__reply .bd__subject {
  padding-left: 3.4rem !important;
}

.bd-voice__reply .bd__subject a {
  color: var(--ink-2, #5b6472);
  font-weight: 600;
}

.bd-voice__reply td {
  background: #fbfcfe;
}

/* 상세 — 관리자 답변 */
.bd-voice__answers {
  margin-top: 2.4rem;
}

.bd-voice__answer {
  margin-bottom: 1.6rem;
  padding: 2rem 2.2rem;
  border: 1px solid var(--line, #e3e6ec);
  border-left: 3px solid var(--point, #1a73c1);
  border-radius: 0.8rem;
  background: #f9fbfd;
}

.bd-voice__answer header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.bd-voice__badge {
  display: inline-block;
  padding: 0.3rem 1rem;
  border-radius: 0.4rem;
  background: var(--point, #1a73c1);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
}

.bd-voice__answer-meta {
  font-size: 1.3rem;
  color: #8a93a6;
}

.bd-voice__answer .bd-post__body {
  padding: 0;
  border: 0;
  font-size: 1.5rem;
}

.bd-voice__answer-del {
  margin: 1.2rem 0 0;
  text-align: right;
}

/* 상세 — 관리자 답변 작성 */
.bd-voice__reply-form {
  margin-top: 2.4rem;
  padding: 2rem;
  border: 1px solid var(--line, #e3e6ec);
  border-radius: 0.8rem;
  background: #fff;
}

.bd-voice__reply-form > label {
  display: block;
  margin-bottom: 0.9rem;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink, #1b2130);
}

.bd-voice__reply-form textarea {
  width: 100%;
  padding: 1.4rem;
  border: 1px solid var(--line, #e3e6ec);
  border-radius: 0.4rem;
  font-family: inherit;
  font-size: 1.5rem;
  line-height: 1.8;
  resize: vertical;
}

.bd-voice__reply-foot {
  margin-top: 1.2rem;
  text-align: right;
}

/* 글쓰기 안내 */
.bd-voice__guide {
  margin: 0 0 2rem;
  padding: 1.4rem 1.8rem;
  border-radius: 0.6rem;
  background: #f7f9fc;
  color: var(--ink-2, #5b6472);
  font-size: 1.4rem;
  line-height: 1.7;
}

.bd-voice__guide strong {
  color: var(--point, #1a73c1);
}

/* 비밀글 확인 화면 */
.bd-lock {
  max-width: 46rem;
  margin: 0 auto;
  padding: 5rem 2rem;
  text-align: center;
}

.bd-lock__icon {
  color: #b9c2d0;
}

.bd-lock__icon svg {
  width: 4.6rem;
  height: 4.6rem;
}

.bd-lock__title {
  margin: 1.4rem 0 0.8rem;
  font-size: 2rem;
  font-weight: 700;
  color: var(--ink, #1b2130);
}

.bd-lock__desc {
  margin: 0 0 2.4rem;
  font-size: 1.4rem;
  line-height: 1.75;
  color: var(--ink-2, #5b6472);
}

.bd-lock__form {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
}

.bd-lock__form input[type="password"] {
  width: 22rem;
  height: 4.6rem;
  padding: 0 1.4rem;
  border: 1px solid var(--line, #e3e6ec);
  border-radius: 0.4rem;
  font-size: 1.5rem;
  font-family: inherit;
}

.bd-lock__back {
  display: inline-block;
  margin-top: 2rem;
  font-size: 1.4rem;
  color: var(--ink-2, #5b6472);
}

.bd-lock__back:hover {
  color: var(--point, #1a73c1);
}

/* ── 게시판 탭(여러 게시판 이동) ── */
.bd-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin: 0 0 2.4rem;
}

.bd-tabs a {
  padding: 0.8rem 1.8rem;
  border: 1px solid var(--line, #e3e6ec);
  border-radius: 999px;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--ink-2, #5b6472);
  background: #fff;
  transition: 0.2s;
}

.bd-tabs a:hover {
  border-color: var(--point, #1a73c1);
  color: var(--point, #1a73c1);
}

.bd-tabs a.is-active {
  background: var(--point, #1a73c1);
  border-color: var(--point, #1a73c1);
  color: #fff;
}

/* ── 모바일 ── */
@media (max-width: 768px) {
  .sect--board {
    padding-top: 1.6rem;
    padding-bottom: 5rem;
  }

  .bd__search {
    justify-content: stretch;
  }

  .bd__search-box {
    width: 100%;
  }

  .bd__table {
    font-size: 1.4rem;
  }

  .bd__table th:nth-child(1),
  .bd__table td:nth-child(1),
  .bd__table th:nth-child(5),
  .bd__table td:nth-child(5) {
    display: none;
  }

  .bd__table th:nth-child(2),
  .bd__table td.bd__subject {
    padding-left: 0.6rem;
  }

  .bd-post__title {
    font-size: 1.8rem;
  }

  .ed__area {
    min-height: 24rem;
  }
}
