@charset "utf-8";

/* Board page shell
   The global theme intentionally allows full-width content. Board screens use a
   narrower reading/list surface so tables and controls stay visually grouped. */

/* Board typography: official WON Dotum across titles, controls, lists, posts, and comments. */
.wons-board-hero,
#container,
#container_title,
#bo_list,
#bo_gall,
#bo_v,
#bo_w,
#bo_v_top,
#bo_v_bot {
  font-family: "WONDotum", "Noto Sans KR", sans-serif;
}

#container {
  font-weight: 400;
}

.wons-board-hero :where(h1, h2, h3, h4, h5, h6),
#container :where(h1, h2, h3, h4, h5, h6),
#container_title {
  font-family: "WONDotum", "Noto Sans KR", sans-serif;
  font-weight: 700;
}

#container :where(button, input, select, textarea) {
  font-family: "WONDotum", "Noto Sans KR", sans-serif;
}

#wrapper {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--we-color-soft, #f6efe4) 62%, #fff) 0, #fff 360px);
}

.wons-board-hero {
  --we-block-image: linear-gradient(135deg, var(--we-color-primary-strong, #262522), var(--we-color-primary, #4e4035));
  background:
    linear-gradient(90deg, rgba(var(--we-color-primary-strong-rgb), min(1, calc(var(--we-block-overlay, .72) + .18))), rgba(var(--we-color-primary-rgb), var(--we-block-overlay, .72)) 58%, rgba(var(--we-color-primary-rgb), max(0, calc(var(--we-block-overlay, .72) - .34)))),
    var(--we-block-image) var(--we-block-position, center center) / cover no-repeat,
    var(--we-color-primary, #4e4035);
}

.wons-board-hero::before,
.wons-board-hero::after {
  position: absolute;
  border: 1px solid rgba(198, 162, 74, .22);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.wons-board-hero::before {
  right: clamp(-180px, -8vw, -70px);
  bottom: -44%;
  width: clamp(320px, 44vw, 680px);
  aspect-ratio: 1;
}

.wons-board-hero::after {
  right: clamp(30px, 15vw, 260px);
  bottom: -30%;
  width: clamp(160px, 22vw, 340px);
  aspect-ratio: 1;
}

.wons-board-hero__eyebrow {
  color: var(--we-color-accent, #c6a24a);
}

.wons-board-hero__description {
  color: rgba(255, 255, 255, .8);
}

#container_wr {
  box-sizing: border-box;
  width: min(100%, calc(1200px + var(--we-gutter, 42px) * 2));
  max-width: none;
  margin-inline: auto;
  padding: clamp(54px, 7vw, 92px) var(--we-gutter, 42px) clamp(84px, 10vw, 140px);
}

#container {
  min-width: 0;
  margin: 0;
}

#container_title {
  margin: 0;
  padding: 0 0 clamp(30px, 4vw, 48px);
  color: var(--we-color-primary, #4e4035);
  font-size: clamp(34px, 4.5vw, 58px);
  line-height: 1.12;
  letter-spacing: -.045em;
}

#bo_list,
#bo_gall,
#bo_v,
#bo_w {
  box-sizing: border-box;
  width: 100% !important;
  max-width: 100%;
  margin-inline: auto;
}

#bo_list,
#bo_gall,
#bo_v,
#bo_w,
#bo_v_top,
#bo_v_bot {
  --board-line: var(--we-color-line, #ded9cf);
  --board-primary: var(--we-color-primary, #4e4035);
  color: var(--we-color-text, #211f1b);
  font-family: inherit;
}

#bo_btn_top { margin: 0 0 24px; }
#bo_list_total { color: var(--we-color-muted); }

#bo_cate { margin: 0 0 30px; }
#bo_cate_ul { display: flex; flex-wrap: wrap; gap: 8px; }

#bo_cate a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 0 16px;
  border: 1px solid var(--board-line);
  border-radius: 999px;
  background: var(--we-color-surface, #fbf7f0);
  color: inherit;
}

#bo_cate a:focus,
#bo_cate a:hover,
#bo_cate #bo_cate_on {
  border-color: var(--board-primary);
  background: var(--board-primary);
  color: #fff;
}

/* 게시판 전용 버튼: member/login/register 등 다른 화면에 영향 주지 않도록 scope 제한 */
#bo_list .btn_b01,
#bo_list .btn_b02,
#bo_list .btn_admin,
#bo_list .btn_submit,
#bo_list .btn_cancel,
#bo_gall .btn_b01,
#bo_gall .btn_b02,
#bo_gall .btn_admin,
#bo_gall .btn_submit,
#bo_gall .btn_cancel,
#bo_v .btn_b01,
#bo_v .btn_b02,
#bo_v .btn_admin,
#bo_v .btn_submit,
#bo_v .btn_cancel,
#bo_w .btn_b01,
#bo_w .btn_b02,
#bo_w .btn_admin,
#bo_w .btn_submit,
#bo_w .btn_cancel,
#bo_v_top .btn_b01,
#bo_v_top .btn_b02,
#bo_v_top .btn_admin,
#bo_v_top .btn_submit,
#bo_v_top .btn_cancel,
#bo_v_bot .btn_b01,
#bo_v_bot .btn_b02,
#bo_v_bot .btn_admin,
#bo_v_bot .btn_submit,
#bo_v_bot .btn_cancel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 17px;
  border: 1px solid var(--board-primary);
  border-radius: 999px;
  background: var(--board-primary);
  color: #fff;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  box-sizing: border-box;
}

/* 게시판 전용 보조 버튼 */
#bo_list .btn_b01,
#bo_list .btn_cancel,
#bo_gall .btn_b01,
#bo_gall .btn_cancel,
#bo_v .btn_b01,
#bo_v .btn_cancel,
#bo_w .btn_b01,
#bo_w .btn_cancel,
#bo_v_top .btn_b01,
#bo_v_top .btn_cancel,
#bo_v_bot .btn_b01,
#bo_v_bot .btn_cancel {
  background: var(--we-color-surface, #fbf7f0);
  color: var(--board-primary);
}

/* 기본 게시판 스킨의 40px 아이콘 버튼과 공통 버튼 패딩이 충돌하지 않도록 정렬한다. */
#bo_list #bo_btn_top,
#bo_gall #bo_btn_top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 42px;
}

#bo_list #bo_btn_top::after,
#bo_gall #bo_btn_top::after {
  display: none;
}

#bo_list #bo_list_total,
#bo_gall #bo_list_total {
  float: none;
  line-height: 1.5;
}

#bo_list .btn_bo_user,
#bo_gall .btn_bo_user {
  display: flex;
  float: none;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#bo_list .btn_bo_user > li,
#bo_gall .btn_bo_user > li {
  position: relative;
  float: none;
  width: auto;
  min-width: 42px;
  margin: 0;
  background: transparent;
}

#bo_list .btn_bo_user > li > .btn,
#bo_gall .btn_bo_user > li > .btn {
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  border-radius: 50%;
  line-height: 1;
  box-shadow: 0 7px 18px rgba(var(--we-color-primary-rgb), .08);
}

#bo_list .btn_bo_user > li > .btn .fa,
#bo_gall .btn_bo_user > li > .btn .fa {
  margin: 0;
  line-height: 1;
}

/* 보기 화면의 고정 40px 목록 폭과 공통 버튼 패딩이 겹치지 않도록 정렬한다. */
#bo_v_top .btn_bo_user {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  background: transparent;
  list-style: none;
}

#bo_v_top .btn_bo_user > li {
  position: relative;
  float: none;
  width: auto;
  min-width: 42px;
  margin: 0;
  background: transparent;
}

#bo_v_top .btn_bo_user > li > .btn {
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  border-radius: 50%;
  line-height: 1;
  box-shadow: 0 7px 18px rgba(var(--we-color-primary-rgb), .08);
}

#bo_v_top .btn_bo_user > li > .btn .fa {
  margin: 0;
  line-height: 1;
}

#bo_list .bo_fx,
#bo_gall .bo_fx {
  display: flex;
  float: none;
  width: 100%;
  justify-content: flex-end;
  margin: 24px 0 0;
}

.tbl_head01 {
  overflow: hidden;
  border: 1px solid var(--board-line);
  border-radius: 18px;
  background: var(--we-color-surface, #fbf7f0);
  box-shadow: 0 18px 48px rgba(var(--we-color-primary-rgb), .055);
}

.tbl_head01 table { border-collapse: collapse; }

.tbl_head01 thead th {
  border: 0;
  background: var(--we-color-soft);
  color: var(--we-color-text);
}

.tbl_head01 td {
  border-top: 1px solid var(--board-line);
  border-bottom: 0;
}

.tbl_head01 tr:hover td {
  background: color-mix(in srgb, var(--we-color-soft) 56%, white);
}

#bo_gall #gall_ul { margin: 0 -10px; }
#bo_gall .gall_li { padding: 10px; }

#bo_gall .gall_box {
  overflow: hidden;
  border: 1px solid var(--board-line);
  border-radius: 20px;
  background: var(--we-color-surface, #fbf7f0);
  box-shadow: 0 12px 36px rgba(28,34,32,.06);
}

#bo_gall .gall_img {
  overflow: hidden;
  border-radius: 18px 18px 0 0;
}

#bo_gall .gall_text_href { padding: 18px 20px 4px; }
#bo_gall .gall_info { padding: 0 20px 20px; color: var(--we-color-muted); }

#bo_v {
  overflow: hidden;
  border: 1px solid var(--board-line);
  border-radius: 24px;
  background: var(--we-color-surface, #fbf7f0);
}

#bo_v_title {
  padding: clamp(28px, 4vw, 52px);
  border: 0;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.22;
  letter-spacing: -.04em;
}

#bo_v #bo_v_title .bo_v_tit {
  display: block;
  margin: 0;
  font-size: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

#bo_v_info,
#bo_v_atc,
#bo_v_file,
#bo_v_link {
  padding-left: clamp(22px, 4vw, 52px);
  padding-right: clamp(22px, 4vw, 52px);
}

#bo_v #bo_v_share {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

#bo_v #bo_v_share > .btn {
  display: inline-flex;
  width: auto;
  min-width: 88px;
  height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid var(--board-line);
  border-radius: 999px;
  background: var(--we-color-surface, #fbf7f0);
  color: var(--board-primary);
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
  box-sizing: border-box;
}

#bo_v #bo_v_share > .btn i {
  margin-right: 7px;
  color: inherit;
}

#bo_v > .cmt_btn {
  box-sizing: border-box;
  margin: 0;
  padding: 20px clamp(22px, 4vw, 52px);
  border-top: 1px solid var(--board-line);
  border-bottom: 1px solid var(--board-line);
  background: color-mix(in srgb, var(--we-color-soft, #f6efe4) 64%, #fff);
  color: var(--board-primary);
}

#bo_v > .cmt_btn span.total {
  margin: 0;
  color: inherit;
  font-size: 15px;
}

#bo_v > .cmt_btn span.total b {
  color: inherit;
  font-size: 18px;
}

#bo_v > .cmt_btn span.total::after {
  display: none;
}

#bo_v > .cmt_btn span.cmt_more {
  width: 9px;
  height: 9px;
  margin: 3px 3px 0 0;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  background: none;
  transform: rotate(45deg);
}

#bo_v > .cmt_btn.cmt_btn_op span.cmt_more {
  margin-top: 8px;
  transform: rotate(225deg);
}

#bo_v > #bo_vc,
#bo_v > .bo_vc_w {
  box-sizing: border-box;
  padding-right: clamp(22px, 4vw, 52px);
  padding-left: clamp(22px, 4vw, 52px);
}

#bo_v > #bo_vc {
  background: var(--we-color-surface, #fbf7f0);
}

#bo_v #bo_vc article {
  display: flex;
  gap: 14px;
  margin: 0;
  padding: 24px 0;
  border-bottom: 1px solid var(--board-line);
}

#bo_v #bo_vc article .pf_img {
  flex: 0 0 auto;
  float: none;
  margin: 0;
}

#bo_v #bo_vc article .cm_wrap {
  flex: 1 1 auto;
  float: none;
  width: auto;
  min-width: 0;
  max-width: none;
}

#bo_v #bo_vc .bo_vc_hdinfo,
#bo_v #bo_vc_empty {
  color: var(--we-color-muted, #7a746d);
}

#bo_v #bo_vc_empty {
  margin: 0;
  padding: 56px 0 !important;
}

#bo_v > .bo_vc_w {
  margin: 0;
  padding-top: 28px;
  padding-bottom: 32px;
  border-top: 1px solid var(--board-line);
  background: color-mix(in srgb, var(--we-color-soft, #f6efe4) 42%, #fff);
}

#bo_v .bo_vc_w textarea {
  box-sizing: border-box;
  padding: 14px 16px;
  border-color: var(--board-line);
  border-radius: 12px;
  box-shadow: none;
}

#bo_w {
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid var(--board-line);
  border-radius: 24px;
  background: var(--we-color-surface, #fbf7f0);
}

.bo_w_tit .frm_input,
#bo_w .frm_input,
#bo_w textarea,
#bo_w select {
  min-height: 48px;
  border: 1px solid var(--board-line);
  border-radius: 12px;
}

.pg_wrap { margin: 38px 0; }

.pg_page,
.pg_current {
  border: 1px solid var(--board-line);
  border-radius: 10px;
}

.pg_current {
  background: var(--board-primary);
  color: #fff;
}

@media (max-width: 720px) {
  .wons-board-hero {
    background:
      linear-gradient(180deg, rgba(var(--we-color-primary-strong-rgb), .42), rgba(var(--we-color-primary-strong-rgb), min(1, calc(var(--we-block-overlay, .72) + .14)))),
      var(--we-block-mobile-image, var(--we-block-image)) var(--we-block-position, center center) / cover no-repeat,
      var(--we-color-primary, #4e4035);
  }

  #container_wr {
    padding: 42px 18px 88px;
  }

  #container_title {
    padding-bottom: 26px;
    font-size: clamp(30px, 9vw, 42px);
  }

  #bo_list,
  #bo_gall,
  #bo_v,
  #bo_w {
    min-width: 0;
  }

  #bo_list #bo_btn_top,
  #bo_gall #bo_btn_top {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  #bo_list .btn_bo_user,
  #bo_gall .btn_bo_user {
    margin-left: auto;
  }

  #bo_list .tbl_head01 {
    overflow-x: auto;
    border-radius: 14px;
    -webkit-overflow-scrolling: touch;
  }

  #bo_list .tbl_head01 table {
    min-width: 620px;
  }

  #bo_v {
    border-radius: 18px;
  }

  #bo_w {
    padding: 20px 16px;
    border-radius: 18px;
  }
}
