@charset "UTF-8";

#content_wrap {
  padding-bottom: 0% !important;
}

/* 레거시 admin 드롭다운(ul.admin_head) 전용 스타일 삭제 —
   마크업이 프로젝트 어디에도 없고(0건), element 셀렉터라 신규 nav.header_menu > ul > li > a
   를 덮어써 메뉴에 빨간 3px 테두리·uppercase·float 이 걸리고 있었다. */

header.drop {
  position: fixed;
}

header.insert {
  position: fixed;
  top: calc(var(--px) * -100); /* .header height 와 같은 축·같은 값이라야 완전히 숨는다 */
}

header.header_change {
  width: 100%;
}

/* ═══════════════════════ HEADER (기본 형태) ═══════════════════════
   구조: header.header > a.header_logo + nav.header_menu > ul > li > a + .hamburger
   좌우 여백을 둔 흰 바(1682×100)가 시안 정본이라 full-bleed 가 아니다.
   ═══════════════════════════════════════════════════════════════ */
.header img {
  width: 100%;
}

.header {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 9999;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  box-sizing: border-box;
  margin-inline: auto;
  width: calc(var(--px) * 1682);
  height: calc(var(--px) * 100);
  letter-spacing: -0.06em;
  background-color: #ffffff;
  transition-duration: 0.3s;
  transition-property: top, width;
}

.header_logo {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  margin-left: calc(var(--px) * 62);
  width: calc(var(--px) * 332);
  aspect-ratio: 332 / 56;
}

.header_menu {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  margin-left: auto;
  margin-right: calc(var(--px) * 61);
}

.header_menu_list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: calc(var(--px) * 73);
}

.header_menu_item {
  display: flex;
  justify-content: center;
  align-items: center;
}

.header_menu_1 {
  display: flex;
  flex-direction: column; /* ::after 가 텍스트 옆이 아니라 아래로 쌓여야 폭이 max 로 잡힌다 */
  justify-content: center;
  align-items: center;
  font-size: var(--bodyL);
  font-weight: 500;
  color: #000000;
  white-space: nowrap;
  /* Pretendard Variable(wght 축)이라 굵기도 보간된다 — 정적 웨이트면 계단 전환이 된다 */
  transition: color 0.3s, font-weight 0.3s;
}

/* 800 상태 폭을 미리 예약 — hover 로 굵어져도 형제 메뉴가 안 밀린다 */
.header_menu_1::after {
  content: attr(data-t);
  height: 0;
  overflow: hidden;
  visibility: hidden;
  font-weight: 800;
}

.header_menu_1:hover {
  font-weight: 800;
  color: var(--primary);
}

/* ═══════════════════════ HEADER end ═══════════════════════ */

/* ═══════════════ 게시판 바로가기 (레벨 10 이상 전용) ═══════════════
   마크업은 theme/design/template/header/index.html — g5_board 를 읽어 자동 생성.
   ★ .header 의 absolute 자식이라 스크롤로 헤더가 숨거나(.insert) 풀폭이 될 때(.header_change) 같이 따라간다.
     헤더가 숨어도 위젯은 화면 상단에 남는다 — 관리자가 어느 스크롤 위치에서든 게시판으로 갈 수 있어야 한다.
     우측은 헤더 바 우측 변에 정렬(right:0)하고, 헤더가 풀폭이 되는 .header_change 뒤에만 여백을 준다
     — 그 상태에선 헤더 바 우측 변이 곧 화면 끝이라 여백 없이는 베젤에 붙는다.
   ★ 폰트: Pretendard 는 글로벌 section{} 으로만 카스케이드되는데 이 위젯은 section 밖이라
     상속을 못 받는다 → 여기서 직접 지정한다.
   ★ 색은 브랜드 팔레트 밖이다(admin-menu-setup 스킬 정본) — 관리자 전용 UI 임이 한눈에 구분되고
     어느 섹션 배경에서도 안 묻힌다. 브랜드색이 바뀌어도 여기는 따라가지 않는 게 정상이다. */
:root {
  --adminH-text: #ffffff;
  --adminH-bgColor: rgba(50, 53, 205, 0.8);
  --adminH-outline: rgba(50, 53, 205, 0.3);
  --vWebColor: #3235cd;
}

.hd_boards {
  position: absolute;
  right: 0;
  top: calc(100% + var(--px) * 12);
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  font-family: "Pretendard Variable", Pretendard, sans-serif;
  letter-spacing: -0.02vw;
  transition: right 0.3s; /* 헤더 폭 전환(.header 과 같은 0.3s)에 맞춰 같이 움직인다 — 따로 놀면 튄다 */
}

/* 헤더가 풀폭으로 펼쳐진 뒤 — 헤더 바 우측 변이 곧 화면 끝이라 그대로 두면 베젤에 붙는다 */
.header.header_change .hd_boards {
  right: calc(var(--px) * 24);
}

.hd_boards_btn {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: calc(var(--px) * 8);
  box-sizing: border-box;
  height: calc(var(--px) * 36);
  padding: 0 calc(var(--px) * 15);
  font-family: inherit;
  font-size: calc(var(--px) * 14);
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  background-color: var(--adminH-bgColor);
  border: 0;
  border-radius: calc(var(--px) * 18);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

/* adm 뱃지 — 버튼 라벨 앞. 관리자 전용 위젯임을 라벨 자체로 못 박는다 */
.hd_boards_badge {
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  height: calc(var(--px) * 19);
  padding: 0 calc(var(--px) * 7);
  font-size: calc(var(--px) * 11);
  font-weight: 700;
  letter-spacing: 0;
  color: var(--vWebColor);
  background-color: var(--adminH-text);
  border-radius: 50vw;
}

.hd_boards_btn:hover {
  background-color: var(--vWebColor);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.26);
  transform: translateY(-1px);
}

/* 셰브론 — border 2변을 돌려 만든 ∨ (열리면 ∧ 로 회전) */
.hd_boards_btn::after {
  content: "";
  width: calc(var(--px) * 7);
  height: calc(var(--px) * 7);
  margin-top: calc(var(--px) * -3);
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.25s ease;
}

.hd_boards.is_open .hd_boards_btn::after {
  margin-top: calc(var(--px) * 3);
  transform: rotate(-135deg);
}

/* 닫힘 상태 — display 로 껐다 켜면 transition 이 안 걸리므로 흐름에는 남기고 시각만 감춘다 */
.hd_boards_list {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  box-sizing: border-box;
  margin-top: calc(var(--px) * 8);
  min-width: calc(var(--px) * 178);
  padding: calc(var(--px) * 6);
  background-color: var(--adminH-text);
  border: 1px solid var(--adminH-outline);
  border-radius: calc(var(--px) * 12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(calc(var(--px) * -8)) scale(0.98);
  transform-origin: top right;
  transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.22s;
}

/* 열림 — js/header.js 가 .hd_boards 에 .is_open 토글 */
.hd_boards.is_open .hd_boards_list {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.hd_boards_item {
  display: flex;
  width: 100%;
}

.hd_boards_link {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  height: calc(var(--px) * 36);
  padding: 0 calc(var(--px) * 12);
  font-size: calc(var(--px) * 14);
  font-weight: 500;
  color: var(--vWebColor);
  white-space: nowrap;
  border-radius: calc(var(--px) * 8);
  transition: background-color 0.18s ease;
}

.hd_boards_link:hover {
  background-color: color-mix(in srgb, var(--vWebColor) 10%, var(--adminH-text));
}

@media screen and (max-width: 599px) {
  /* 모바일은 헤더 우측 플로팅이 아니라 드로어(.header_menu) 안쪽 항목이다 — 위치 이동은 js/header.js 의 placeBoards */
  .hd_boards {
    position: static;
    align-items: flex-start;
    width: 100%;
    margin-top: 8vw;
  }
  .hd_boards_btn {
    gap: 1.6vw;
    height: 8vw;
    padding: 0 3.4vw;
    font-size: 3.2vw;
    border-radius: 4vw;
  }
  .hd_boards_badge {
    height: 4.4vw;
    padding: 0 1.6vw;
    font-size: 2.5vw;
  }
  .hd_boards_btn::after {
    width: 1.6vw;
    height: 1.6vw;
    margin-top: -0.7vw;
  }
  .hd_boards.is_open .hd_boards_btn::after {
    margin-top: 0.7vw;
  }
  /* 드로어 안에서는 흐름 요소라, 닫힘 상태가 자리를 차지하면 안 된다(PC 는 absolute 라 무관) */
  .hd_boards_list {
    display: none;
    margin-top: 1.8vw;
    min-width: 40vw;
    padding: 1.4vw;
    border-radius: 2.8vw;
  }
  .hd_boards.is_open .hd_boards_list {
    display: flex;
  }
  .hd_boards_link {
    height: 8.4vw;
    padding: 0 2.8vw;
    font-size: 3.2vw;
    border-radius: 2vw;
  }
}


/* -------------------header 커스텀 끝------------------- */
@media screen and (max-width: 599px) {
  header.drop {
    position: fixed;
    animation: none;
    transition: none;
  }
  /* -------------------header 커스텀 시작------------------- */
  /* 고정바는 left/right 앵커 + width:auto — 페이지 가로 overflow 가 있어도 바가 따라 늘지 않는다 */
  .header {
    right: 0;
    width: auto;
    margin-inline: 0;
    height: 15vw;
  }

  .header_logo {
    width: 42vw;
    margin-left: 5vw;
  }

  /* 햄버거 = .header(flex·align-items:center) 의 absolute 자식이라 top 없이 세로중앙에 앉는다 */
  .hamburger {
    position: absolute;
    right: 5vw;
    z-index: 2;
  }

  .hamburger-menu {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 8vw;
    height: 4.5vw;
    padding: 0;
    background: none;
    border: 0;
    cursor: pointer;
  }

  .line {
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
    transition: all 0.3s;
    transform-origin: center;
  }

  .top-reverse {
    top: 0;
  }

  .bot-reverse {
    bottom: 0;
  }

  .line_change.top-reverse {
    top: 50%;
    transform: translate(0, -50%) rotate(45deg);
    background-color: #ffffff;
  }

  .line_change.mid-reverse {
    opacity: 0;
  }

  .line_change.bot-reverse {
    bottom: 50%;
    transform: translate(0, 50%) rotate(-45deg);
    background-color: #ffffff;
  }

  /* 드로어 뒤 딤 — DOM 상 .header_menu 앞이라 드로어 밑에 깔린다 */
  .header_dim {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
  }

  .header_dim.is-active {
    opacity: 1;
    visibility: visible;
  }

  /* 모바일 메뉴 = 오른쪽에서 밀려 들어오는 드로어. 열림 상태는 .header_menu_drop (js/header.js) */
  .header_menu {
    position: fixed;
    top: 0;
    right: -100%;
    z-index: 1;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    margin-left: 0;
    margin-right: 0;
    padding: 24vw 6vw 10vw 10vw;
    width: 62%;
    height: 100vh;
    overflow-y: auto;
    background-color: var(--primary);
    pointer-events: none;
    transition: right 0.3s;
  }

  .header_menu_list {
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 5.5vw;
  }

  .header_menu.header_menu_drop {
    right: 0;
    pointer-events: auto;
  }

  .header_menu_1 {
    font-size: 4.4vw;
    color: #ffffff;
  }

  /* PC 호버색이 드로어 배경과 겹쳐 글자가 묻힌다.
     모바일엔 실제 호버가 없고 탭 후 :hover 가 남는 게 전부라 기본색을 유지한다. */
  .header_menu_1:hover {
    color: #ffffff;
  }
  /* -------------------header 커스텀 끝------------------- */
}

#bo_v_title .bo_v_tit {
  display: block;
  font-size: 17px;
  margin: 5px 0 0;
  word-break: break-all;
  font-weight: 700;
  letter-spacing: -1px;
  font-family: "pretendard Variable" !important;
}

.board_title {
  font-weight: 700;
  font-family: "pretendard Variable";
}

#bo_w .bo_w_tit .frm_input {
  padding-right: 0px !important;
}

#bo_v > header {
  display: block;
  position: relative;
  background: transparent;
  font-size: unset;
  padding: unset;
  border-bottom: 1px solid black;
  font-family: "pretendard Variable";
  font-weight: 900;
}

#bo_v_con {
  margin: 30px 0 30px;
  width: 100%;
  line-height: 1.7em;
  min-height: 200px;
  word-break: break-all;
  overflow: hidden;
  font-size: 1.3em;
  font-family: "pretendard Variable";
}

