@charset "utf-8";
/* ----------------------------------------------
LAYOUT.CSS - Theme Layout & Structure
* writer : uxcamp
* version : 1.0.0
* last update : 2025.07.11
* purpose : 레이아웃 구조 및 테마 시스템
* license : © 2025 uxcamp. All rights reserved.
------------------------------------------------*/

/* ========================================
   기본 설정 및 폰트
======================================== */
html,
body {
  color: var(--layout-gray-900);
  background: var(--layout-body);
  font-weight: 500;
}
body > * :disabled {
  cursor: not-allowed !important;
  filter: grayscale(1);
}
a {
  color: var(--layout-gray-900);
  text-decoration: none;
  font-size: 13px;
}
a:hover {
  color: var(--color-prime);
  text-decoration: none;
}
a:focus,
input:focus,
button:focus {
}
h1,
h2,
h3,
h4,
h5 {
  margin: 0;
  font-weight: normal;
  word-break: break-word;
}
hr {
  margin: 0px;
  border: 0px;
}

/* ========================================
   레이아웃 색상 시스템 (라이트모드)
======================================== */
:root {
  /* === 시맨틱 컬러 === */
  --layout-success: #467430; /* [a11y] 원래 #64a644는 흰색 텍스트와 대비 미달(2.97:1) — WCAG AA(4.5:1) 통과값으로 교체 */
  --layout-warning: #fc6e51;
  --layout-danger: #c62839; /* [a11y] 원래 #ed5565는 흰색 텍스트와 대비 미달(3.45:1) — WCAG AA(4.5:1) 통과값으로 교체 */
  --layout-info: #1cb6ed;
  --layout-dark: #434a54;
  --layout-light: #aab2bd;

  /* === 확장 색상 팔레트 === */
  --layout-pink: #ec87c0;
  --layout-purple: #ac92ec;
  --layout-yellow: #ffce54;
  --layout-green: #a0d468;
  --layout-mint: #48cfad;
  --layout-lightblue: #4fc1e9;
  --layout-blue: #5d9cec;

  /* === 확장 색상 별칭 (중복 제거) === */
  --layout-red: var(--layout-danger); /* #ed5565와 동일 */
  --layout-orange: var(--layout-warning); /* #fc6e51와 동일 */

  /* === 그레이 스케일 === */
  --layout-white: #ffffff;
  --layout-white-only: #ffffff;
  --layout-gray-50: #fafafa;
  --layout-gray-100: #f5f5f5;
  --layout-gray-200: color-mix(in srgb, var(--color-prime, gray) 40%, transparent);
  --layout-gray-300: #e0e0e0;
  --layout-gray-400: #bdbdbd;
  --layout-gray-500: #6b6b6b; /* [a11y] 원래 #9e9e9e는 흰/밝은 배경에서 대비 미달(2.68:1) — WCAG AA(4.5:1) 통과값으로 교체 */
  --layout-gray-600: #656565; /* [a11y] #757575은 배경에 따라 4.5:1 미달 위험이 있어 안전하게 강화 */
  --layout-gray-700: #616161;
  --layout-gray-800: #424242;
  --layout-gray-900: #212121;
  --layout-black: #000000;

  /* === 투명도 컬러 === */
  --layout-overlay-100: rgba(15, 23, 42, 0.8);
  --layout-overlay-200: rgba(15, 23, 42, 0.4);

  /* === 스페이싱 & 보더 === */
  --layout-radius: 8px;
  --layout-radius-sm: 4px;
  --layout-radius-lg: 12px;

  /* === layout color === */
  --layout-body: #ffffff;

  /* === Header section === */
  --layout-header: #fafafa;
  --layout-tnb: #fafafa;
  --layout-header-border: #eeeeee;

  /* === Sidebar section === */
  --layout-sidebar-bg: #f5f5f5;
  --layout-sidebar-border: #e0e0e0;
  --layout-sidebar-border-dashed: #e0e0e0;

  /* === Footer section === */
  --layout-footer-bg: #f5f5f5;
  --layout-footer-border: #e0e0e0;

  /* === Search popup === */
  --layout-searchpop-bg: rgba(15, 23, 42, 0.8);
  --layout-searchpop-dim: rgba(15, 23, 42, 0.4);

  /* === Dropdown menu === */
  --layout-dropdown-bg: #ffffff;
  --layout-dropdown-border: #eeeeee;
  --layout-dropdown-hover-bg: #f5f5f5;

  /* === Board title/info === */
  --layout-board-bg: #f5f5f5;
  --layout-board-border: #eeeeee;

  /* === Sub navigation === */
  --layout-snb-border: #e0e0e0;
  --layout-snb-hover-bg: #f5f5f5;
  --layout-snb-active-bg: #212121;
  --layout-snb-active-color: #ffffff;

  /* === Other === */
  --layout-kvWrap-bg: #f5f5f5;
  --layout-demo-border: #ddd;
}

/* ========================================
   다크모드 색상 시스템
======================================== */
:root.darkMode {
  /* === 브랜드 컬러 === */
  --color-prime: #8b5dff;

  /* === 다크모드 그레이 스케일 반전 === */
  --layout-white: #212121;
  --layout-gray-50: #333;
  --layout-gray-100: #444;
  --layout-gray-200: color-mix(in srgb, var(--color-prime, gray) 40%, transparent);
  --layout-gray-300: #444;
  --layout-gray-400: #bdbdbd;
  --layout-gray-500: #e0e0e0;
  --layout-gray-600: #eeeeee;
  --layout-gray-700: #f5f5f5;
  --layout-gray-800: #fafafa;
  --layout-gray-900: #ffffff;
  --layout-black: #ffffff;

  /* === 다크모드 투명도 컬러 === */
  --layout-overlay-100: rgba(0, 0, 0, 0.9);
  --layout-overlay-200: rgba(0, 0, 0, 0.6);

  /* === 다크모드 레이아웃 컬러 (누락 보완) === */
  --layout-body: #0f1117;

  /* === Header section === */
  --layout-header: #1a1d26;
  --layout-tnb: #1a1d26;
  --layout-header-border: #2a2d38;

  /* === Sidebar section === */
  --layout-sidebar-bg: #1e2130;
  --layout-sidebar-border: #2a2d38;
  --layout-sidebar-border-dashed: #2a2d38;

  /* === Footer section === */
  --layout-footer-bg: #1a1d26;
  --layout-footer-border: #2a2d38;

  /* === Search popup === */
  --layout-searchpop-bg: rgba(0, 0, 0, 0.95);
  --layout-searchpop-dim: rgba(0, 0, 0, 0.7);

  /* === Dropdown menu === */
  --layout-dropdown-bg: #1e2130;
  --layout-dropdown-border: #2a2d38;
  --layout-dropdown-hover-bg: #252840;

  /* === Board title/info === */
  --layout-board-bg: #1e2130;
  --layout-board-border: #2a2d38;

  /* === Sub navigation === */
  --layout-snb-border: #2a2d38;
  --layout-snb-hover-bg: #252840;
  --layout-snb-active-bg: #f0f0f0;
  --layout-snb-active-color: #212121;

  /* === Other === */
  --layout-kvWrap-bg: #1e2130;
  --layout-demo-border: #2a2d38;
}


/* ========================================
   접근성 향상 스킵 네비게이션
======================================== */
#skipToContent {
  position: relative;
  z-index: 1000;
  width: 100%;
  overflow: hidden;
}
#skipToContent a {
  display: block;
  width: 1px;
  height: 1px;
  margin: 0 -1px -1px 0;
  overflow: hidden;
  font-size: 0;
  line-height: 0;
  text-align: center;
  position: fixed;
  top: 0;
  left: 0;
  background: var(--layout-danger);
  color: var(--layout-white);
}
#skipToContent a:focus {
  width: 100%;
  height: auto;
  margin: 0;
  padding: 8px 0;
  font-size: 12px;
  line-height: 1;
}

/* 모바일 드로어 네비게이션 */
html.drawerNavOn,
html.drawerNavOn body {
  height: 100%;
  overflow: hidden;
}
#drawerNav.active {
  left: 10px;
}
#drawerNav.active ~ .drawerDim {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}
.drawerDim {
  visibility: hidden;
  position: fixed;
  z-index: 22;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--layout-overlay-100);
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(10px);
}

/* 다크모드 테마 전환 애니메이션 */
.darkMode .header .headerWrap .staWrap .tools .settingview .bx-moon {
  display: block;
  animation: moonShow 0.3s;
  animation-timing-function: ease;
}
.darkMode .header .headerWrap .staWrap .tools .settingview .bx-sun {
  display: none;
}

/* ========================================
   레이아웃 컨테이너
======================================== */
.resWidth {
  max-width: 1360px;
  margin: 0 auto;
  transition: all 0.3s;
}
.wrap {
}
.wrap:has(.widget-library-sidebar) {
  padding-right: 300px;
}

.wrap[data-fullsize="true"] {
}
.wrap[data-fullsize="true"] .resWidth {
  max-width: unset;
  padding: 0 30px;
}
.wrap[data-fullsize="true"] .container {
  padding: 30px;
}

/* ========================================
   헤더 레이아웃
======================================== */
.header {
  border-bottom: var(--layout-header-border) 1px solid;
  background: var(--layout-header);
  position: relative;
  padding-top: 2px;
  z-index: 22;
}

/* 상단 네비게이션 바 */
.header .tnbWrap {
  height: 34px;
  background: var(--layout-tnb);
  border-bottom: 1px solid var(--layout-header-border);
}
.header .tnbWrap .tnb {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 34px;
}
.header .tnbWrap .tnb .tools {
  display: flex;
  align-items: center;
}

/* 상단 좌측 아이템 */
.header .tnbWrap .tnb .tools .tnbLeftItems {
  display: flex;
  align-items: center;
}
.header .tnbWrap .tnb .tools .tnbLeftItems .quickLinks {
  display: flex;
  align-items: center;
}
.header .tnbWrap .tnb .tools .tnbLeftItems .quickLinks .shopLink {
  margin-left: 8px;
  padding-left: 8px;
  border-left: 1px solid var(--layout-header-border);
}
.header .tnbWrap .tnb .tools .tnbLeftItems .tnbLink {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--layout-gray-600);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s;
}
.header .tnbWrap .tnb .tools .tnbLeftItems .tnbLink:hover {
  color: var(--color-prime);
}
.header .tnbWrap .tnb .tools .tnbLeftItems .tnbLink i {
  font-size: 14px;
}
.header .tnbWrap .tnb .tools .tnbLeftItems .visitorInfo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 8px;
  padding-left: 8px;
  border-left: 1px solid var(--layout-header-border);
}
.header .tnbWrap .tnb .tools .tnbLeftItems .visitorInfo span {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--layout-gray-600);
  font-size: 11px;
}
.header .tnbWrap .tnb .tools .tnbLeftItems .visitorInfo span i {
  font-size: 12px;
}
.header .tnbWrap .tnb .tools .tnbLeftItems .visitorInfo span strong {
  color: var(--color-prime);
  font-weight: 600;
  font-size: 14px;
}

/* 상단 우측 아이템 */
.header .tnbWrap .tnb .tools .tnbRightItems {
  display: flex;
  align-items: center;
  gap: 16px;
}
.header .tnbWrap .tnb .tools .tnbRightItems .profile_img {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--layout-gray-100);
}
.header .tnbWrap .tnb .tools .tnbRightItems .profile_img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.header .tnbWrap .tnb .tools .tnbRightItems .tnbLink {
  display: flex;
  align-items: center;
  gap: 4px;
  position: relative;
  color: var(--layout-gray-600);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s;
}
.header .tnbWrap .tnb .tools .tnbRightItems .tnbLink[data-ui="msg"] {
  margin-right: 20px;
}
.header .tnbWrap .tnb .tools .tnbRightItems .tnbLink:hover {
  color: var(--color-prime);
}
.header .tnbWrap .tnb .tools .tnbRightItems .tnbLink i {
  font-size: 14px;
}
.header .tnbWrap .tnb .tools .tnbRightItems .tnbLink .msgCount {
  position: absolute;
  top: -6px;
  right: -16px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--layout-danger);
  color: var(--layout-white);
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
}
.header .tnbWrap .tnb .tools .tnbRightItems .adminLink {
  color: var(--layout-danger);
}
.header .tnbWrap .tnb .tools .tnbRightItems .adminLink:hover {
  color: var(--layout-danger);
}

/* 메인 헤더 */
.header .headerWrap {
  display: flex;
  align-items: center;
  height: 80px;
}
.header .headerWrap .staWrap[data-option="fullwidth"] {
  margin: 0 20px;
}
.header .headerWrap .staWrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.header .headerWrap .staWrap .titleWrap {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0; /* GNB가 먼저 줄어들도록 — 로고를 밀어내지 않는다 */
}
.header .headerWrap .staWrap .titleWrap .title {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0; /* [FIX] 메뉴가 길어도 로고 폭은 줄지 않음 */
}
.header .headerWrap .staWrap .titleWrap .title a h1 {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap; /* [FIX] 로고 글자가 한 자씩 세로로 접히는 현상 방지 */
}
.header .headerWrap .staWrap .titleWrap .title a h1 .bx {
  color: var(--color-prime);
  font-size: 30px;
  transition: transform 0.3s;
}
.header .headerWrap .staWrap .titleWrap .title a h1 strong {
  font-size: 26px;
  font-weight: 700;
}
.header .headerWrap .staWrap .titleWrap .title a h1.logo-image {
  gap: 0;
}
.header .headerWrap .staWrap .titleWrap .title a h1.logo-image img {
  max-height: 40px;
  width: auto;
  display: block;
}
/* .header .headerWrap .staWrap .titleWrap .title .moNavi {display:none; padding:4px; border-radius:10px; box-shadow:0px 0px 2px var(--layout-overlay-200); color:var(--layout-gray-900);} */
.header .headerWrap .staWrap .titleWrap .title .moNavi {
  display: none;
  position: fixed;
  z-index: 8;
  left: 16px;
  bottom: 16px;
  width: 56px;
  height: 56px;
  padding: 4px;
  border: 2px solid var(--layout-white-only);
  border-radius: 50%;
  background: var(--color-prime);
  box-shadow: 0px 2px 20px rgb(0 0 0 / 40%);
}
.header .headerWrap .staWrap .titleWrap .title .moNavi .bx {
  color: var(--layout-white-only);
  font-size: 30px;
}
.header .headerWrap .staWrap .titleWrap .gnbWrap {
  border-bottom: 0;
}

.header .headerWrap .staWrap .searchWrap {
  width: 400px;
  position: relative;
  z-index: 1;
}
.header .headerWrap .staWrap .searchWrap fieldset {
  position: relative;
  z-index: 2;
}
.header .headerWrap .staWrap .searchWrap[data-focus="on"] .popularWrap {
  top: -10px;
  visibility: visible;
  opacity: 1;
}

.header .headerWrap .staWrap .staGnb {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
}
.header .headerWrap .staWrap .staGnb nav {
  display: flex;
}
.header .headerWrap .staWrap .staGnb nav ul {
  display: flex;
  list-style: none;
}
.header .headerWrap .staWrap .staGnb nav ul li {
  position: relative;
}
.header .headerWrap .staWrap .staGnb nav ul li a {
  display: block;
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 600;
}
.header .headerWrap .staWrap .tools {
  display: flex;
  align-items: center;
  gap: 20px;
}
.header .headerWrap .staWrap .tools .buttonWrap {
  display: flex;
  align-items: center;
  gap: 6px;
}
.header .headerWrap .staWrap .tools .btnTools {
  padding: 6px;
  overflow: hidden;
  border-radius: 4px;
  color: var(--ui-color-gray-700);
  position: relative;
}
.header .headerWrap .staWrap .tools .btnTools.mo-more-btn {
  display: none; /* 기본적으로 더보기 버튼 숨김 */
}
.header .headerWrap .staWrap .tools .btnTools:hover {
  color: var(--color-prime);
}
.header .headerWrap .staWrap .tools .btnTools i {
  font-size: 24px;
}
.header .headerWrap .staWrap .tools .btnTools.win_memo {
  position: relative;
}
.header .headerWrap .staWrap .tools .btnTools .memo-badge {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--color-prime);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}
.header .headerWrap .staWrap .tools .settingview .bx-sun {
  animation: sunShow 0.3s;
  animation-timing-function: ease;
}
.header .headerWrap .staWrap .tools .settingview .bx-moon {
  display: none;
}

@media (max-width: 768px) {
  /* 모바일 브라우저에서도 케어링 PWA 설치 진입점을 유지한다. 상위의
     태블릿 규칙이 .header .tools 전체를 숨기므로 여기서 모바일만 복원한다. */
  .header .headerWrap .staWrap .tools {
    display: flex;
  }

  .header .headerWrap .staWrap .tools .btnTools i {
    font-size: 20px;
  }
}

/* 글로벌 네비게이션 */
.gnbWrap {
  height: 46px;
  background: var(--layout-header);
  border-bottom: var(--layout-header-border) 1px solid;
  position: sticky;
  top: 0;
  z-index: 21;
}
.gnbWrap .gnb {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.gnbWrap .gnb nav {
  display: flex;
}
.gnbWrap .gnb nav ul {
  display: flex;
  list-style: none;
}
.gnbWrap .gnb nav ul li {
  position: relative;
}
.gnbWrap .gnb nav ul li a {
  display: block;
  padding: 15px 20px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.gnbWrap .gnb nav ul li a.on {
  color: var(--color-prime);
}

/* gnb 영역 검색 */
.gnbWrap .gnb .searchWrap {
  width: 180px;
  position: relative;
  margin: 0 10px;
  transition: all 0.3s ease;
}
.gnbWrap .gnb .searchWrap:has(input:focus) {
  width: 220px;
}
.gnbWrap .gnb .searchWrap .bx-time {
  display: none;
}
.gnbWrap .gnb .searchWrap.inputAddon input {
  padding: 0 50px 0 20px;
  height: 36px;
  border: 1px solid var(--board-gray-200);
  background: var(--board-gray-50);
}
.gnbWrap .gnb .searchWrap.inputAddon input ~ button {
  height: 26px;
}

/* 드롭다운 메뉴 스타일 */
.gnbWrap .gnb nav ul.gnb-menu {
  padding: 0;
  margin: 0;
}
.gnbWrap .gnb nav ul.gnb-menu > li.has-dropdown > a {
  display: flex;
  align-items: center;
  gap: 5px;
}
.gnbWrap .gnb nav ul.gnb-menu > li.has-dropdown > a i {
  font-size: 16px;
  transition: transform 0.3s ease;
}
.gnbWrap .gnb nav ul.gnb-menu > li.has-dropdown:hover > a i:last-child {
  transform: rotate(180deg);
}
.gnbWrap .gnb nav ul.gnb-menu li .dropdown-menu {
  visibility: hidden;
  display: flex;
  flex-direction: column;
  position: absolute;
  z-index: 1000;
  top: 90%;
  left: 0;
  min-width: 200px;
  padding: 8px 0;
  border: 1px solid var(--layout-dropdown-border);
  border-radius: 8px;
  background: var(--layout-dropdown-bg);
  opacity: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  list-style: none;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}
.gnbWrap .gnb nav ul.gnb-menu li:hover .dropdown-menu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}
.gnbWrap .gnb nav ul.gnb-menu li .dropdown-menu li {
  padding: 0;
}
.gnbWrap .gnb nav ul.gnb-menu li .dropdown-menu li a {
  display: block;
  padding: 10px 20px;
  color: var(--layout-gray-700);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
}
.gnbWrap .gnb nav ul.gnb-menu li .dropdown-menu li a.active {
  color: var(--color-prime);
}
.gnbWrap .gnb nav ul.gnb-menu li .dropdown-menu li a:hover {
  padding-left: 25px;
  background: var(--layout-dropdown-hover-bg);
  color: var(--color-prime);
}
.gnbWrap .gnb nav ul.gnb-menu li.gnb_empty {
  font-size: 14px;
  padding: 16px;
}

/* 모바일 반응형 드롭다운 */
@media (max-width: 1280px) {
  .gnbWrap {
    display: none;
  }
}

/* ========================================
   키 비주얼 / 서브 헤더
======================================== */
/* .kvWrap {padding-bottom:40px;}
.kvWrap[data-option="margin"] {margin:20px 0;}
.kvWrap .kv {display:flex;justify-content:center;align-items:center;height:300px;background: var(--layout-gray-100);} */

.kvWrap .skvWrap {
  background: var(--layout-gray-50);
  border-bottom: var(--layout-header-border) 1px solid;
}
.kvWrap .skvWrap .skv {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  height: 120px;
}

.kvWrap .skvWrap .skv .boardTitle {
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.kvWrap .skvWrap .skv .boardTitle h2 {
  font-size: 26px;
  font-weight: 600;
}
.kvWrap .skvWrap .skv .boardTitle .breadcrumbs {
  display: flex;
}
.kvWrap .skvWrap .skv .boardTitle .breadcrumbs li {
  display: flex;
  align-items: center;
  color: var(--txt-gray02-color);
  font-size: 12px;
}
.kvWrap .skvWrap .skv .boardTitle .breadcrumbs li::before {
  content: "\ea50";
  color: var(--txt-gray03-color);
  font-size: 20px;
  font-family: boxicons !important;
}
.kvWrap .skvWrap .skv .boardTitle .breadcrumbs li:first-child::before {
  display: none;
}
.kvWrap .skvWrap .skv .chart .boardInfo {
  background: var(--layout-white);
}

.kvWrap .snbWrap {
  border-bottom: var(--layout-snb-border) 1px solid;
}
.kvWrap .snbWrap .snb {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 14px 0;
}
.kvWrap .snbWrap .snb a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 16px;
}
.kvWrap .snbWrap .snb a i {
  font-size: 20px;
}
.kvWrap .snbWrap .snb a:hover {
  background: var(--layout-snb-hover-bg);
  color: var(--color-prime);
}

/* boardTitle */
.boardTitle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px 0 20px;
}
.boardTitle .titleBox {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 8px;
}
.boardTitle .titleBox h2 {
  font-size: 24px;
  font-weight: 600;
}
.boardTitle .titleBox .breadcrumbs {
  display: flex;
}
.boardTitle .titleBox .breadcrumbs li {
  display: flex;
  align-items: center;
  color: var(--layout-gray-600);
  font-size: 12px;
}
.boardTitle .titleBox .breadcrumbs li::before {
  content: "\ea50";
  color: var(--layout-gray-500);
  font-size: 20px;
  font-family: boxicons !important;
}
.boardTitle .titleBox .breadcrumbs li:first-child::before {
  display: none;
}

/* ========================================
   메인 컨테이너
======================================== */
html.sideMenuOff .sideWrap {
  display: none;
}
html.sideMenuOff .sideWrap ~ .contentsWrap {
  width: calc(100% - 0px);
}
html.sideMenuOff .btn_hideSnb {
  padding: 0 20px;
  top: 4px;
  border-radius: 10px;
}

.container {
  display: flex;
  padding: 30px 0 40px 0;
  gap: 40px;
  position: relative;
}
.container .btn_hideSnb {
  display: flex;
  padding: 20px 2px;
  border: 1px solid var(--layout-sidebar-border);
  border-radius: 0 10px 10px 0;
  background: var(--layout-sidebar-bg);
  font-size: 20px;
  position: absolute;
  display: none;
}
.container .btn_hideSnb .side-menu-label {
  display:block;font-size:11px;font-weight:800;line-height:20px;white-space:nowrap;
}
.container[data-side="on"] .btn_hideSnb .side-menu-label {
  writing-mode:vertical-rl;text-orientation:upright;line-height:1;letter-spacing:.12em;
}
.container .btn_hideSnb .side-pin {
  display:none;position:absolute;left:50%;top:-15px;transform:translateX(-50%) rotate(-18deg);
  font-size:24px;line-height:1;pointer-events:none;
  filter:drop-shadow(0 2px 2px rgba(63,42,21,.35));
}
.container[data-side="on"] .btn_hideSnb.side-panel-pinned .side-pin{display:block}
.container .btn_hideSnb.side-pin-intro .side-pin{display:block;animation:sidePinWiggle .9s ease-in-out 2}
@keyframes sidePinWiggle{0%,100%{transform:translateX(-50%) rotate(-18deg)}30%{transform:translateX(-50%) rotate(12deg)}60%{transform:translateX(-50%) rotate(-26deg)}}
@media (prefers-reduced-motion:reduce){.container .btn_hideSnb.side-pin-intro .side-pin{animation:none}}
.side-pin-hint{
  position:fixed;z-index:1000;display:block;padding:9px 12px;
  border:1px solid #d7b38f;border-radius:9px;background:#fffaf1;color:#69472f;
  font-size:13px;font-weight:700;white-space:nowrap;pointer-events:none;
  opacity:0;transform:translate(-100%,-50%) translateY(4px);
  transition:opacity .18s ease,transform .18s ease;
  box-shadow:0 5px 16px rgba(63,42,21,.16);
}
.side-pin-hint.on{opacity:1;transform:translate(-100%,-50%)}
.side-pin-hint.side-pin-hint-right{transform:translate(0,-50%) translateY(4px)}
.side-pin-hint.side-pin-hint-right.on{transform:translate(0,-50%)}
/* 순정 화살표 회전은 글자를 뒤집으므로 텍스트형 버튼에서는 회전만 제거한다.
   위치·폭·패딩은 순정 레이아웃 값을 그대로 사용한다. */
.container .btn_hideSnb{transform:none !important}
.container[data-sidemenu="right"][data-side="on"] .btn_hideSnb{border-radius:10px 0 0 10px}
.container:has(.sideWrap) .btn_hideSnb {
  display: flex;
}

/* 왼쪽 */
.container[data-sidemenu="left"][data-side="on"] {
}
.container[data-sidemenu="left"][data-side="on"] .btn_hideSnb {
  top: 45px;
  left: 255px; /* [v1.1] 사이드바 256px 대응 (280px 시절 279px) */
}
.container[data-sidemenu="left"][data-side="off"] .btn_hideSnb {
  transform: rotate(180deg);
}

/* 오른쪽 */
.container[data-sidemenu="right"][data-side="on"] {
}
.container[data-sidemenu="right"][data-side="on"] .btn_hideSnb {
  top: 45px;
  right: 255px; /* [v1.1] 사이드바 256px 대응 (280px 시절 279px) */
  transform: rotate(180deg);
}
.container[data-sidemenu="right"][data-side="off"] .btn_hideSnb {
}
.container[data-sidemenu="right"] {
  flex-direction: row-reverse;
}
.wrap[data-fullsize="true"]
  .container[data-sidemenu="left"][data-side="on"]
  .btn_hideSnb {
  left: 285px; /* [v1.1] 사이드바 256px 대응 (280px 시절 309px) */
}
.wrap[data-fullsize="true"]
  .container[data-sidemenu="right"][data-side="on"]
  .btn_hideSnb {
  right: 285px; /* [v1.1] 사이드바 256px 대응 (280px 시절 309px) */
}

.container .contentsWrap {
  width: calc(100% - 0px);
}
.container .contentsWrap .skv {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
  background: var(--layout-kvWrap-bg);
  border: 1px solid var(--layout-snb-border);
}

/* ========================================
   사이드바 레이아웃
======================================== */
.sideWrap {
  display: flex;
  justify-content: flex-start; /* 메뉴 그룹 바로 아래부터 위젯이 이어지고, 내용이 많아지면 사이드바 세로 길이가 자연스럽게 늘어남 (콘텐츠가 짤리거나 겹치지 않음) */
  flex-direction: column;
  width: 256px; /* [v1.1] 본문에 1024px 이미지 + 여백 확보를 위해 280px에서 축소 */
  border: 1px solid var(--layout-sidebar-border);
  background: var(--layout-sidebar-bg);
}
/* [v25.9] 모바일 드로어(#drawerNav)에서 쇼핑몰/커뮤니티 카테고리 내용이 폭에 살짝 끼어
   가로 스크롤이 생긴다는 피드백 — 데스크톱 정적 사이드바는 그대로 두고 모바일 드로어만 15px 확장 */
@media (max-width: 768px) {
  #drawerNav.sideWrap {
    width: min(85vw, 330px); /* [v25.9] 드로어 열릴 때 본문은 어차피 흐려져서 안 보이므로 넉넉하게 확보 */
  }
}
.sideWrap [data-item="side_widget_zone"] {
  margin-top: 20px;
  padding: 16px 14px; /* 좌우 14px — 위쪽 박스들 여백과 맞춤. 하단도 같은 값으로 줘서 마지막 위젯이 사이드바 바닥에 붙지 않도록 함 */
  border-top: 1px dashed var(--layout-sidebar-border-dashed);
  flex: 1; /* 사이드바가 본문 높이만큼 늘어났을 때 남는 공간을 이 그룹이 차지 (pin_bottom 위젯이 그 안에서 맨 아래로 붙을 수 있도록) */
  display: flex;
  flex-direction: column;
}
.sideWrap a.logo {
  display: none;
  padding: 14px;
  border-bottom: 1px dashed var(--layout-sidebar-border-dashed);
}
.sideWrap a.logo .logoHeading {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sideWrap a.logo .logoHeading .bx {
  color: var(--color-prime);
  font-size: 30px;
  transition: transform 0.3s;
}
.sideWrap a.logo .logoHeading strong {
  font-size: 26px;
  font-weight: 700;
}

.sideWrap .titleWrap {
  height: 90px;
  border-bottom: 1px dashed var(--layout-sidebar-border-dashed);
  display: flex;
  align-items: center;
  padding: 0 30px;
}
.sideWrap .titleWrap .logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sideWrap .titleWrap .logo h1 {
  font-size: 24px;
  font-weight: 700;
}
.sideWrap .titleWrap .logo h1 strong {
  font-size: 12px;
}
.sideWrap .searchWrap {
  padding: 14px;
  box-sizing: border-box;
  border-bottom: 1px dashed var(--layout-sidebar-border-dashed);
  position: relative;
  z-index: 1;
}
.sideWrap .searchWrap[data-sidesearch="false"] {
  display: none;
}
.sideWrap .searchWrap[data-sidesearch="true"] {
  display: block;
}
.sideWrap .searchWrap[data-sidesearch="true"] .popularWrap {
  display: none;
}
.sideWrap .searchWrap fieldset {
  position: relative;
  z-index: 3;
}
.sideWrap .searchWrap fieldset:has(#sch_stx:focus) ~ .popularWrap {
  top: 2px;
  left: 2px;
  right: 2px;
  visibility: visible;
  opacity: 1;
  z-index: 2;
}

.sideWrap .toolsWrap {
  padding: 14px;
  box-sizing: border-box;
  border-bottom: 1px dashed var(--layout-sidebar-border-dashed);
}
.sideWrap .toolsWrap[data-sidelogin="false"] {
  display: none;
}
.sideWrap .toolsWrap[data-sidelogin="true"] {
  display: block;
}

.sideWrap .sideGnb {
  /*position:sticky; top:0; z-index:1;*/
}
.sideWrap .sideGnb .nav {
  padding: 20px;
  box-sizing: border-box;
}
.sideWrap .sideGnb .nav h2 {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  color: var(--color-prime);
  font-size: 16px;
  font-weight: 600;
  gap: 4px;
}
.sideWrap .sideGnb .nav ul {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
  gap: 0px;
}
.sideWrap .sideGnb .nav ul > li {
  display: block;
  font-size: 12px;
  min-width: 0; /* [v25.9] 부모 ul이 column 방향 flex라 li도 flex 아이템 — 동일한 overflow 방지 */
}
.sideWrap .sideGnb .nav ul > li > a {
  display: flex;
  align-items: center;
  padding: 6px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  gap: 6px;
  /* [v25.9] flex 아이템은 기본적으로 min-width:auto라, 끊어질 공백이 없는 긴 텍스트("Pi Tracker(AML)" 등)를
     만나면 줄바꿈 대신 박스 자체가 넓어져서 사이드바 전체에 가로 스크롤을 유발함 — 명시적으로 풀어줌 */
  min-width: 0;
  word-break: break-word;
}
.sideWrap .sideGnb .nav ul > li > a:hover {
  background: var(--layout-sidebar-bg);
  color: var(--color-prime);
}
.sideWrap .sideGnb .nav ul > li > a .iconNew {
  display: flex;
  align-items: center;
  padding: 2px 3px;
  border-radius: 8px;
  background: var(--color-prime);
  color: var(--layout-white);
  font-size: 8px;
  font-weight: 800;
}
.sideWrap .sideGnb .nav ul > li > a.on {
  color: var(--color-prime);
}
.sideWrap .sideGnb .nav ul > li > a > i {
  margin-right: 4px;
  font-size: 22px;
  flex-shrink: 0; /* [v25.9] 텍스트가 줄어들 때 아이콘이 같이 찌그러지지 않도록 */
}
.sideWrap .sideGnb .nav ul > li > ul {
  gap: 0;
}
.sideWrap .sideGnb .nav ul > li > ul > li {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0; /* [v25.9] 하위 카테고리도 동일한 flex overflow 방지 */
}
.sideWrap .sideGnb .nav ul > li > ul > li::before {
  content: "";
  display: block;
  width: 1px;
  height: 28px;
  margin: 0 0px 0 18px;
  background: var(--layout-sidebar-border);
}
.sideWrap .sideGnb .nav ul > li > ul > li > a {
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0; /* [v25.9] 긴 하위 카테고리명("Pi Tracker(AML)" 등)이 박스를 밀어 넓히는 것 방지 */
  font-size: 14px;
  font-weight: 500;
  text-indent: 4px;
  word-break: break-word;
}
.sideWrap .sideGnb .nav ul > li > ul > li > a:hover {
  color: var(--color-prime);
}
.sideWrap .sideGnb .nav ul > li > ul > li > a.active {
  background: var(--layout-sidebar-active-bg);
  color: var(--layout-sidebar-active-color);
}
.sideWrap .sideGnb .nav ul > li > ul > li > a.active .iconNew {
  background: var(--layout-sidebar-active-color);
  color: var(--layout-sidebar-active-bg);
}
.sideWrap ~ .contentsWrap {
  width: calc(100% - 296px); /* [v1.1] 사이드바 256px + 간격 40px (280px 시절 320px) */
}

.container .sideWrap .sideTools {
  margin: 30px;
}
.container .sideWrap .sideTools .supportLink {
  display: flex;
  flex-direction: column;
  margin: 24px 0;
}
.container .sideWrap .sideTools .supportLink h2 {
  margin-bottom: 10px;
  color: var(--color-prime);
  font-size: 16px;
  font-weight: 600;
}
.container .sideWrap .sideTools .supportLink ul {
  list-style: none;
}
.container .sideWrap .sideTools .supportLink ul li {
}
.container .sideWrap .sideTools .supportLink ul li a {
  display: flex;
  align-items: center;
  padding: 6px;
  font-size: 14px;
  gap: 6px;
}
.container .sideWrap .sideTools .supportLink ul li a .txt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.container .sideWrap .sideTools .supportLink ul li a .txt .visit-num {
  display: block;
  padding: 2px 5px;
  border-radius: 20px;
  background: var(--layout-gray-900);
  color: var(--layout-gray-50);
}
.container .sideWrap .sideTools .supportLink ul li a .bx {
  font-size: 18px;
}

/* 서브 네비게이션 메뉴 */
.snbMenuWrap {
}
.snbMenuWrap .snb {
}
.snbMenuWrap .tabNavigation {
  display: flex;
  gap: 0;
  flex-direction: column;
}
.snbMenuWrap .tabNavigation .tabItem {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 10px 20px;
  color: var(--layout-gray-900);
  font-size: 14px;
  font-weight: 500;
}
.snbMenuWrap .tabNavigation .tabItem:hover {
  background: var(--layout-snb-hover-bg);
  color: var(--color-prime);
  z-index: 1;
}
.snbMenuWrap .tabNavigation .tabItem.active {
  background: var(--layout-snb-hover-bg);
  color: var(--color-prime);
  z-index: 1;
}
.snbMenuWrap .tabNavigation .tabItem.active:hover {
  background: var(--layout-snb-hover-bg);
  color: var(--color-prime);
}

/* ========================================
   서브 사이드바 레이아웃
======================================== */
.subSideWrap {
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  width: 280px;
  padding-bottom: 40px;
  border-radius: 20px;
  border: 1px solid var(--layout-sidebar-border);
  background: var(--layout-sidebar-bg);
}
.subSideWrap a.logo {
  display: none;
  padding: 14px;
  border-bottom: 1px dashed var(--layout-sidebar-border-dashed);
}
.subSideWrap a.logo h1 {
  display: flex;
  align-items: center;
  gap: 10px;
}
.subSideWrap a.logo h1 .bx {
  color: var(--color-prime);
  font-size: 30px;
  transition: transform 0.3s;
}
.subSideWrap a.logo h1 strong {
  font-size: 26px;
  font-weight: 700;
}

.subSideWrap .titleWrap {
  margin: 15px;
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--color-prime);
}
.subSideWrap .titleWrap h3 {
  display: flex;
  align-items: center;
  color: var(--layout-white-only);
  font-size: 17px;
  font-weight: 600;
  gap: 8px;
  position: relative;
}
.subSideWrap .titleWrap h3::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  right: -5px;
  top: -1px;
  background: var(--layout-white-only);
  opacity: 0.2;
}
.subSideWrap .titleWrap h3::before {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  right: 0px;
  top: 4px;
  background: var(--color-prime);
  z-index: 1;
}

.subSideWrap .toolsWrap {
  padding: 14px;
  box-sizing: border-box;
  border-bottom: 1px dashed var(--layout-sidebar-border-dashed);
}
.subSideWrap .toolsWrap[data-sidelogin="false"] {
  display: none;
}
.subSideWrap .toolsWrap[data-sidelogin="true"] {
  display: block;
}

.container .subSideWrap .sideTools {
  margin: 30px;
}
.container .subSideWrap .sideTools .supportLink {
  display: flex;
  flex-direction: column;
  margin: 24px 0;
}
.container .subSideWrap .sideTools .supportLink h2 {
  margin-bottom: 10px;
  color: var(--color-prime);
  font-size: 16px;
  font-weight: 600;
}
.container .subSideWrap .sideTools .supportLink ul {
  list-style: none;
}
.container .subSideWrap .sideTools .supportLink ul li {
}
.container .subSideWrap .sideTools .supportLink ul li a {
  display: flex;
  align-items: center;
  padding: 6px;
  font-size: 14px;
  gap: 6px;
}
.container .subSideWrap .sideTools .supportLink ul li a .txt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.container .subSideWrap .sideTools .supportLink ul li a .txt .visit-num {
  display: block;
  padding: 2px 5px;
  border-radius: 20px;
  background: var(--layout-gray-900);
  color: var(--layout-gray-50);
}
.container .subSideWrap .sideTools .supportLink ul li a .bx {
  font-size: 18px;
}

.subSideWrap ~ .contentsWrap {
  width: calc(100% - 320px);
}

/* ========================================
   푸터 레이아웃
======================================== */
.footerWrap {
  border-top: var(--layout-gray-300) 1px solid;
}
.footerWrap .footerBarWrap {
  border-bottom: 1px solid var(--layout-gray-300);
}
.footerWrap .footerBarWrap .footerBar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footerWrap .footerBarWrap .footerBar .link {
  display: flex;
  flex-wrap: wrap;
}
.footerWrap .footerBarWrap .footerBar .link a {
  display: flex;
  align-items: center;
  padding: 14px;
  font-size: 13px;
  font-weight: 500;
  gap: 4px;
  position: relative;
  isolation: isolate;
}
.footerWrap .footerBarWrap .footerBar .link a::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 0;
  right: 0;
  border-radius: 6px;
  z-index: -1;
}
.footerWrap .footerBarWrap .footerBar .snsLink {
  display: flex;
}
.footerWrap .footerBarWrap .footerBar .snsLink a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  margin: 0 4px;
  border-radius: 50%;
  background: var(--layout-gray-100);
  font-size: 0;
}
.footerWrap .footerBarWrap .footerBar .snsLink a i {
  color: var(--layout-gray-900);
  font-size: 20px;
}
.footerWrap .footerBarWrap .footerBar .snsLink a:hover {
  background: var(--color-prime);
}
.footerWrap .footerBarWrap .footerBar .snsLink a:hover i {
  color: var(--layout-white);
}

.footerContent {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 30px 0;
}
.footerContent .footerBrand {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footerContent .footerBrand .logo {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--layout-gray-600);
}
.footerContent .footerBrand .logo i {
  font-size: 28px;
}
.footerContent .footerBrand .logo strong {
  font-size: 24px;
  font-weight: 700;
}
.footerContent .footerBrand p {
  color: var(--layout-gray-500);
  font-size: 13px;
}
.footerContent .footerInfo {
  color: var(--layout-gray-500);
  font-size: 13px;
  text-align: center;
  line-height: 1.4;
}
.footerContent .footerCopyright {
}

/* 푸터 연락처 */
.footerSectionWrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.footerSectionWrap .footerContact {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footerSectionWrap .footerContactItem {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--layout-gray-500);
  font-size: 13px;
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
  isolation: isolate;
}
.footerSectionWrap .footerContactItem::before {
  content: "";
  position: absolute;
  top: -6px;
  bottom: -6px;
  left: -8px;
  right: -8px;
  border-radius: 6px;
  z-index: -1;
}
.footerSectionWrap .footerContactItem:hover {
  color: var(--color-prime);
}
.footerSectionWrap .footerContactItem i {
  font-size: 16px;
}
/* 테마 버전 표시 */
.footerSectionWrap .themeVersion {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--layout-gray-400);
  font-size: 11px;
}
.footerSectionWrap .themeVersion .versionNumber {
  font-weight: 500;
}

/* 카카오 오픈채팅 플로팅 버튼
   [우하단 스택 순서 변경] 코너부터 위로 "스크롤 버튼 → 카카오톡 → 펫 위젯"
   순으로 쌓기로 결정 — 스크롤 버튼이 코너(맨 아래)에 오는 게 오랜 UX 관행이라는
   판단. bottom 값 3곳(.scrollBtnGroup / .kakaoOpenChat / .petWidget)이 서로
   맞물려 있으니 하나를 고치면 나머지도 같이 맞춰야 한다. */
.kakaoOpenChat {
  position: fixed;
  z-index: 930;
  right: 27px;
  bottom: 148px;
}
.kakaoOpenChatBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 4px;
  border: 2px solid var(--layout-white-only);
  border-radius: 50%;
  background: #fee500;
  box-shadow: 0px 2px 20px rgb(0 0 0 / 40%);
  transition: all 0.3s;
  text-decoration: none;
}
.kakaoOpenChatBtn:hover {
  transform: scale(1.1);
  box-shadow: 0px 4px 25px rgb(0 0 0 / 50%);
}
.kakaoOpenChatBtn i {
  font-size: 22px;
  color: #3c1e1e;
}
.kakaoOpenChatBtn span {
  display: none;
}

/* [2026-09-18] 우리 채팅방(모두의광장) 바로가기 — 카카오톡 버튼 바로 위, 펫 아래.
   크기·정렬은 카카오 버튼과 동일하게 맞춰 같은 세로 열에 놓이게 한다. */
.ourChatLink {
  position: fixed;
  z-index: 935;
  right: 27px;
  bottom: 204px;
}
.ourChatLinkBtn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 4px;
  border: 2px solid var(--layout-white-only);
  border-radius: 50%;
  background: var(--color-prime, #8b5dff);
  box-shadow: 0px 2px 20px rgb(0 0 0 / 40%);
  transition: all 0.3s;
  text-decoration: none;
}
.ourChatLinkBtn:hover {
  transform: scale(1.1);
  box-shadow: 0px 4px 25px rgb(0 0 0 / 50%);
}
.ourChatLinkBtn i {
  font-size: 21px;
  color: #fff;
}
/* [2026-09-18] 마우스 오버 안내문 — 버튼 왼쪽으로 띄워서 위·아래로 쌓인
   다른 플로팅 버튼(펫·카카오톡)과 안 겹치게 한다. */
.ourChatLinkBtn span {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  white-space: nowrap;
  background: #2b2b2b;
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 10;
}
.ourChatLinkBtn span::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: #2b2b2b;
}
.ourChatLinkBtn:hover span {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

/* [청춘 도우미] 사이트 전역 플로팅 펫 위젯 — 원형 배지 없이 chat.html의
   #floatingPetEmoji와 동일하게 순수 이모지 + petFloat 애니메이션만 쓴다.
   크기는 카카오 버튼(56px)에 맞춘다.
   [2026-09-12] 우하단 플로팅 스택 z-index 순서(위→아래): 펫위젯(950) > 카카오톡(930)
   > 스크롤버튼(920) — 펫창을 열었을 때 다른 플로팅 버튼이 그 위를 덮지 않게 항상
   최상단으로 둔다(카카오 버튼이 열린 펫창을 가리던 문제 재발 방지). */
.petWidget {
  position: fixed;
  z-index: 950;
  right: 20px;
  bottom: 260px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
@keyframes petFloat {
  0%, 100% { transform: translateY(0) scale(1) rotate(0deg); }
  33%      { transform: translateY(-10px) scale(1.06) rotate(3deg); }
  66%      { transform: translateY(-5px) scale(1.03) rotate(-2deg); }
}
.petWidgetFab {
  width: 56px;
  height: 56px;
  border: none;
  background: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 50px;
  line-height: 1;
  cursor: pointer;
  position: relative;
  filter: drop-shadow(0 4px 14px rgb(0 0 0 / 35%));
  animation: petFloat 3s ease-in-out infinite;
}
.petWidgetFab:hover { animation-play-state: paused; transform: scale(1.06); }
@media (prefers-reduced-motion: reduce) { .petWidgetFab { animation: none; } }

/* [심플하게] 좁은 공간이라 그라데이션을 줄이고 여백을 타이트하게, 글자도 한 단계 낮춘다.
   화사한 톤은 유지하되(크림 배경 + 금색 테두리) 장식은 절제한다. */
.petBubble {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  width: 440px;
  max-width: calc(100vw - 24px);
  background: #fdf2de;
  color: #3a2a1a;
  border: 2px solid #f3c77a;
  border-radius: 20px 20px 6px 20px;
  box-shadow: 0 14px 30px rgb(176 122 46 / 26%);
  opacity: 0;
  transform: translateY(10px) scale(.95);
  pointer-events: none;
  transition: opacity .18s, transform .18s;
  overflow: hidden;
}
.petBubble.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
/* [2026-09-12] 아이콘을 화면 위쪽으로 옮겨서 위로 펼칠 공간이 없으면(JS가 판정)
   펫창이 아래로 펼쳐지도록 방향을 뒤집는다 — 말풍선 꼬리(뾰족한 모서리)와 팝업
   등장 방향(위→아래)도 함께 뒤집어 자연스럽게 아이콘에서 나오는 것처럼 보이게 한다. */
.petBubble.open-down {
  bottom: auto;
  top: calc(100% + 12px);
  border-radius: 6px 20px 20px 20px;
  transform: translateY(-10px) scale(.95);
}
.petBubble.open-down.open { transform: translateY(0) scale(1); }
.petBubbleHead {
  display: flex; align-items: center; gap: 6px; padding: 9px 12px 4px;
  font-weight: 700; font-size: 12.5px; color: #8a5a20;
}
.petBubbleHead .emo { font-size: 17px; line-height: 1; }
.petBubbleHead .petWeather { margin-left: auto; font-size: 11px; color: #8a5a20; opacity: .85; font-variant-numeric: tabular-nums; }
.petBubbleHead .petWeather i { font-size: 13px; vertical-align: -1px; margin-right: 2px; }
.petBubbleHead .petDay { margin-left: 6px; font-size: 11px; font-weight: 600; color: #8a5a20; opacity: .8; }
.petBubbleHead .petClock { margin-left: 6px; font-size: 11px; font-weight: 600; color: #8a5a20; opacity: .8; font-variant-numeric: tabular-nums; }
/* [세로 크기 조절] 대화 목록 높이를 마우스/터치로 드래그해 늘리고 줄일 수 있게
   하는 손잡이. petBubbleMsgs의 max-height를 JS가 직접 바꾼다. */
.petResizeHandle {
  display: flex; align-items: center; justify-content: center;
  height: 12px; cursor: ns-resize; touch-action: none;
}
.petResizeHandle span { width: 34px; height: 4px; border-radius: 2px; background: rgb(176 122 46 / 35%); transition: background .15s; }
.petResizeHandle:hover span, .petResizeHandle.dragging span { background: #e8963c; }

.petBubbleMsgs {
  max-height: 420px; overflow-y: auto; padding: 3px 12px 2px;
  display: flex; flex-direction: column; gap: 6px;
}
.petMsg { font-size: 15px; line-height: 1.5; padding: 8px 11px; border-radius: 13px; max-width: 92%; white-space: pre-line; }
.petMsg.bot {
  background: #ffffff; color: #3a2a1a; border-radius: 4px 13px 13px 13px; align-self: flex-start;
  border: 1px solid rgb(176 122 46 / 22%);
}
.petMsg.me {
  background: #9e3b32; color: #fff;
  border-radius: 13px 4px 13px 13px; align-self: flex-end;
}
.petMsg.notice {
  background: #ffd98c; color: #6b4a12; font-weight: 600;
  font-size: 12px; align-self: stretch; text-align: center;
}
.petMsg.notice a { color: #6b4a12; text-decoration: underline; word-break: break-all; }
/* [2026-09-13] 리마인더를 막 만든 직후에만 뜨는 "웹푸시 켜기" 제안 — 말풍선이 아니라
   버튼 하나만 있는 줄이라 petMsg.bot 배경을 빼고 버튼 자체가 카드처럼 보이게 한다. */
.petMsg.petPushOffer { background: transparent; border: none; padding: 2px 0; align-self: flex-start; }
.petPushOfferBtn {
  font-size: 13px; font-weight: 700; color: #9e3b32; background: #fff;
  border: 1.5px solid #9e3b32; border-radius: 99px; padding: 7px 14px; cursor: pointer;
}
.petPushOfferBtn:disabled { opacity: .7; cursor: default; }

/* [기능 키 줄] 채팅 입력창 바로 위에 항상 떠 있는 줄 — TTS(자동 읽어주기)·
   STT(마이크) 같은 기능 버튼을 여기 모아둔다. 앞으로 기능이 늘어나면
   이 줄에 계속 나란히 추가하면 된다. */
.petToolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 3px 12px 3px;
  border-top: 1px solid rgb(176 122 46 / 25%);
}
.petToolBtn {
  width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; border: 1.5px solid #f3c77a;
  background: #fff; color: #8a5a20; font-size: 13px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.petToolBtn.active { background: #e8963c; border-color: #e8963c; color: #fff; }

/* [2026-09-14] Gemini API 키 입력창 — 예전엔 브라우저 기본 prompt()를 썼는데,
   운영체제 알림창이라 보기도 안 좋고(펫창의 크림·금색 톤과 안 어울림) 뜨는
   위치도 브라우저 기준 화면 한가운데로 고정돼 펫 아이콘과 동떨어져 보였다.
   petBubble과 같은 팔레트(크림 배경·금색 테두리)로 만든 자체 대화상자로 바꾼다. */
.petKeyModal {
  position: fixed; inset: 0; z-index: 2147483003;
  display: flex; align-items: center; justify-content: center;
  background: rgb(0 0 0 / 40%); padding: 20px; box-sizing: border-box;
}
.petKeyCard {
  width: 320px; max-width: 100%; background: #fdf2de; color: #3a2a1a;
  border: 2px solid #f3c77a; border-radius: 18px; padding: 20px;
  box-shadow: 0 18px 40px rgb(0 0 0 / 30%);
  animation: petKeyPop .16s ease;
}
@keyframes petKeyPop { from { transform: scale(.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.petKeyHead {
  display: flex; align-items: center; justify-content: space-between;
  font-weight: 700; font-size: 15px; margin-bottom: 8px;
}
.petKeyHead button {
  background: none; border: none; font-size: 22px; line-height: 1;
  cursor: pointer; color: #8a5a20; padding: 0 2px;
}
.petKeyStatus { font-size: 12.5px; color: #8a5a20; line-height: 1.6; margin: 0 0 12px; }
.petKeyNote { font-size: 12.5px; font-weight: 700; color: #6b4a12; background: #fff2da; border: 1px solid #f3c77a; border-radius: 8px; padding: 6px 9px; margin: 0 0 10px; line-height: 1.5; }
.petKeyCard input {
  width: 100%; box-sizing: border-box; padding: 11px 13px; margin-bottom: 14px;
  border: 1.5px solid #f3c77a; border-radius: 10px; font-size: 14px;
  background: #fff; color: #3a2a1a;
}
.petKeyCard input:focus { outline: none; border-color: #e8963c; }
.petKeyActions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.petKeyActions a { font-size: 12px; color: #8a5a20; text-decoration: underline; }
.petKeySaveBtn {
  background: #e8963c; border: none; color: #fff; font-weight: 700;
  font-size: 13.5px; padding: 9px 18px; border-radius: 999px; cursor: pointer;
  white-space: nowrap;
}
.petKeySaveBtn:active { opacity: .85; }

@keyframes petMicPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgb(232 100 90 / 45%); }
  50%      { box-shadow: 0 0 0 6px rgb(232 100 90 / 0%); }
}

.petInputWrap { padding: 0 8px 8px; }
.petChip {
  font-size: 13px; font-weight: 700; color: #8a5a20;
  background: #fff2da; border: 1.5px solid #f3c77a; border-radius: 999px;
  padding: 7px 12px; cursor: pointer; max-width: 100%;
  overflow: hidden; white-space: nowrap;
  transition: max-width .28s ease, opacity .18s; font-family: inherit;
}
/* [2026-09-12] max-width:0으로 폭만 접었더니, 남은 <button>이 만드는 줄상자(line box)의
   최소 높이가 부모 폰트 기준 스트럿(strut)으로 여전히 계산돼 24px짜리 빈 줄이 입력창
   위에 떠 있었다(공간 낭비 재신고, height:0/line-height:0으로도 안 없어짐 — 실측 확인).
   레이아웃에서 아예 빼야(display:none) 완전히 사라진다. */
.petInputWrap.expanded .petChip { display: none; }
.petHint { font-size: 11px; color: #8a5a20; opacity: .75; text-align: center; margin-top: 4px; }
.petInputWrap.expanded .petHint { display: none; }
.petLive { display: flex; gap: 3px; max-width: 0; overflow: hidden; opacity: 0; transition: max-width .28s ease, opacity .2s; }
.petInputWrap.expanded .petLive { max-width: 400px; opacity: 1; }
.petLive input {
  flex: 1; min-width: 0; border: 1.5px solid #f3c77a; border-radius: 999px; padding: 7px 12px;
  font-size: 14px; font-family: inherit; background: #fffefb; color: #3a2a1a; min-height: 36px;
}
.petLive input::placeholder { color: #b08a55; }
.petLive input:focus-visible { outline: 2px solid #e8963c; }
/* [2026-09-12] STT(마이크) 버튼을 툴바 줄에서 원래 있던 자리 — 입력창·전송 버튼 옆으로
   되돌린다("원래 처음 있던 자리가 맞는것 같다"). 전송 버튼과 생김새가 겹치지 않도록
   :not(.petMic)로 분리해서 마이크 전용 스타일을 따로 준다. */
.petLive button:not(.petMic) {
  width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; border: none;
  background: #e8963c; color: #3a2410; font-size: 15px; font-weight: 700; cursor: pointer;
}
/* [2026-09-12] border:1.5px가 content-box 기준 width:36px 바깥에 더해져 실제로는
   39px로, 옆 전송 버튼(border:none, 정확히 36px)보다 오히려 더 컸다(육안 인상과는
   반대) — border-box로 바꿔 border를 포함한 진짜 36px로 정확히 맞춘다. */
.petLive button.petMic {
  box-sizing: border-box;
  width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; border: 1.5px solid #f3c77a;
  background: #fff; color: #8a5a20; font-size: 15px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.petLive button.petMic.listening { background: #e8645a; border-color: #e8645a; color: #fff; animation: petMicPulse 1s infinite; }
@media (prefers-reduced-motion: reduce) { .petLive button.petMic.listening { animation: none; } }

/* ========================================
   검색 팝업
======================================== */
.searchPop {
  visibility: hidden;
  position: fixed;
  z-index: 9999;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.searchPop.on {
  visibility: visible;
  animation: showPop 0.3s;
  -webkit-animation: showPop 0.3s;
}
.searchPop.on .dim {
  opacity: 1;
}
.searchPop.on .search {
  animation: showConPop 0.3s;
  -webkit-animation: showConPop 0.3s;
}
.searchPop.off {
  animation: hidePop 0.4s;
  -webkit-animation: hidePop 0.4s;
}
.searchPop.off .dim {
  opacity: 1;
}
.searchPop.off .search {
  animation: hideConPop 0.4s;
  -webkit-animation: hideConPop 0.4s;
}
.searchPop .dim {
  position: absolute;
  z-index: 1;
  top: 0;
  width: 100%;
  height: 100%;
  background: var(--layout-overlay-200);
  opacity: 0;
}
.searchPop .search {
  position: relative;
  z-index: 2;
  width: 600px;
  margin: 0 auto;
  margin-top: 60px;
  border-radius: 18px;
  background: var(--layout-overlay-100);
  box-sizing: border-box;
  backdrop-filter: blur(10px);
}
.searchPop .search h2 {
  display: none;
  padding: 20px;
  color: var(--color-prime);
  font-size: 16px;
  font-weight: 600;
  font-weight: 500;
  box-sizing: border-box;
}
.searchPop .search form {
  position: relative;
  padding: 10px 20px;
}
.searchPop .search form input[type="text"] {
  width: 100%;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--layout-white);
  font-size: 16px;
  font-weight: 400;
  line-height: 40px;
}
.searchPop .search form input[type="text"]:focus {
  outline: none;
  box-shadow: none;
  color: var(--layout-white);
}
.searchPop .search form #sch_stx:valid ~ button {
  background: var(--layout-white);
  opacity: 1;
  color: var(--color-prime);
  pointer-events: auto;
}
.searchPop .search form button {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 16px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  opacity: 0.5;
  color: var(--layout-white);
  font-size: 26px;
  transition: all 0s ease 0s;
  pointer-events: none;
}
.searchPop .search form button:hover {
  color: var(--layout-gray-500);
}

/* ========================================
   애니메이션
======================================== */
@keyframes showPop {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@-webkit-keyframes showPop {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@keyframes showConPop {
  0% {
    opacity: 0;
    transform: translate3d(0, -20px, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}
@keyframes menuSubDepth {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@keyframes hidePop {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
@-webkit-keyframes hidePop {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
@keyframes hideConPop {
  0% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
  100% {
    opacity: 0;
    transform: translate3d(0, -20px, 0);
  }
}
@-webkit-keyframes hideConPop {
  0% {
    opacity: 1;
    -webkit-transform: translate3d(0, 0, 0);
  }
  100% {
    opacity: 0;
    -webkit-transform: translate3d(0, -20px, 0);
  }
}

@keyframes sunShow {
  0% {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
  }
  100% {
    opacity: 1;
    transform: rotate(0deg) scale(1);
  }
}
@keyframes moonShow {
  0% {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
  }
  100% {
    opacity: 1;
    transform: rotate(0deg) scale(1);
  }
}

/* ========================================
   반응형 레이아웃

 ======================================== */
/* 사이드바 반응형 */
@media (max-width: 1280px) {
  .header .headerWrap .staWrap .titleWrap .title .moNavi {
    display: block;
  }
  /* [2026-09-12] 우하단 스택(스크롤·카카오톡·펫)은 이제 푸터가 실제로 화면에
     들어오면 IntersectionObserver(tail.php)가 자동으로 숨겨서 더 이상 270px씩
     예약할 필요가 없다("푸터가 쓸데없이 길다" 지적) — 모바일 메뉴 버튼(.moNavi,
     좌하단, 56px+bottom16px=72px)은 숨기지 않으므로 그 높이만큼만 여백을 둔다. */
  .footerWrap {
    padding-bottom: 90px;
  }
  .header .tnbWrap .tnb,
  .header .headerWrap .staWrap,
  .footerWrap .footerBarWrap .footerBar {
    padding: 0 10px;
  }
  .container,
  .footerContent3 {
    padding: 10px;
  }
  .kvWrap .skvWrap .skv {
    height: auto;
  }
  .kvWrap .skvWrap .skv .boardTitle {
    margin: 20px 0;
  }
  .header .headerWrap .staWrap .tools .buttonWrap button[data-btn="btnSearch"] {
    display: none;
  }
  .subSideWrap,
  .boardTitle .chart {
    display: none;
  }
  .container .btn_hideSnb,
  .container:has(.sideWrap) .btn_hideSnb {
    display: none;
  }
  html.sideMenuOff .sideWrap {
    display: block;
  }
  /* .header .tnbWrap .tnb .tools .tnbRightItems, */
  .header .headerWrap .staWrap .searchWrap {
    display: none;
  }
  .header .headerWrap .staWrap .tools .buttonWrap {
    gap: 4px;
  }
  .container .sideWrap {
    position: fixed;
    z-index: 23;
    top: 10px;
    /* [v25.9 FIX] 닫힘 위치가 -300px 고정값이었는데, 드로어 폭을 330px로 늘리면서
       300 < 330이 되어 닫혀도 오른쪽 끝이 화면 안에 남아 가로 스크롤을 유발했음 —
       폭이 앞으로 또 바뀌어도 항상 안전하게 화면 밖으로 나가도록 변수로 계산 */
    left: calc(-1 * min(85vw, 330px) - 20px);
    bottom: 10px;
    overflow-y: auto;
    /* [v25.9 FIX] overflow-y만 auto로 두면 CSS 스펙상 overflow-x도 auto로 취급됨(둘 중 하나가
       visible이 아니면 나머지도 auto) — 내부 콘텐츠가 스크롤바 폭 등으로 단 몇 px만 넘쳐도
       드로어 자체가 가로로 스크롤 가능해짐. 세로 스크롤만 필요하므로 가로는 명시적으로 차단 */
    overflow-x: hidden;
    transition: all 0.2s cubic-bezier(0.7, 0, 0.3, 1);
    transform: all 0.2s cubic-bezier(0.7, 0, 0.3, 1);
    -webkit-transition: all 0.2s cubic-bezier(0.7, 0, 0.3, 1);
  }
  .container .contentsWrap {
    width: calc(100% - 0px);
  }
  .sideWrap a.logo {
    display: flex;
  }
  .sideWrap .searchWrap[data-sidesearch="false"],
  .sideWrap .toolsWrap[data-sidelogin="false"] {
    display: block;
  }
  .footerContent {
    padding: 30px 20px;
  }
  .wrap[data-fullsize="true"] .resWidth {
    max-width: unset;
    padding: 0px;
  }
  .wrap[data-fullsize="true"] .container {
    padding: 10px;
  }
}

/* 태블릿 반응형 */
@media (max-width: 1024px) {
  html,
  body {
    height: unset;
  }
  .header .tnbWrap .tnb .tools .tnbLeftItems .visitorInfo {
    display: none;
  }
  .header .tnbWrap .tnb .tools .tnbLeftItems .tnbLink span {
    display: none;
  }
  .header .tnbWrap .tnb .tools .tnbRightItems .tnbLink span {
    display: none;
  }
  .header .tools {
    display: none;
  }
  .container .contentsWrap {
    flex-direction: column;
  }
}

/* 모바일 반응형 */
@media (max-width: 768px) {
  /* [v23.13] 모바일 제목 줄바꿈 방지 */
  .header .headerWrap .staWrap .titleWrap .title h1,
  .header .headerWrap .staWrap .titleWrap .title h1 strong {
    white-space: nowrap;
  }

  /* [v23.13] 모바일 아이콘 그룹화 및 토글 기능 */
  .header .headerWrap .staWrap .tools .buttonWrap {
    flex-wrap: nowrap;
    position: relative;
  }
  .header .headerWrap .staWrap .tools .buttonWrap > button,
  .header .headerWrap .staWrap .tools .buttonWrap > a {
    display: none; /* 기본적으로 모두 숨김 */
  }
  
  /* 기본 노출 아이콘: 해상도(div), 홈/상점, 매뉴얼, 알림(쪽지·모임·새 글), 더보기 — 알림은 더보기 안에 숨기지 않는다 */
  .header .headerWrap .staWrap .tools .buttonWrap > #gnuResGroup,
  .header .headerWrap .staWrap .tools .buttonWrap > #btnGnuPwaInstall,
  .header .headerWrap .staWrap .tools .buttonWrap > button.btn-home,
  .header .headerWrap .staWrap .tools .buttonWrap > button.btn-help,
  .header .headerWrap .staWrap .tools .buttonWrap > button.btn-noti,
  .header .headerWrap .staWrap .tools .buttonWrap > button.mo-more-btn {
    display: flex;
  }
  
  /* 좁은 화면: 알림이 로고를 가리지 않도록 덜 급한 아이콘(도움말, 더 좁으면 상점)을 더보기로 넘긴다 */
  @media (max-width: 420px) {
    .header .headerWrap .staWrap .tools .buttonWrap > button.btn-help {
      display: none;
    }
  }
  @media (max-width: 340px) {
    .header .headerWrap .staWrap .tools .buttonWrap > button.btn-home {
      display: none;
    }
  }

  /* 모바일에서는 화면 크기를 바꿀 일이 없으므로 해상도 변경은 숨긴다 */
  .header .headerWrap .staWrap .tools .buttonWrap > #gnuResGroup { display: none; }

  /* 더보기: 헤더 아이콘은 그대로 두고, 헤더에 없는 도구만 작은 메뉴로 아래에 펼친다 */
  .header .headerWrap .staWrap .tools .buttonWrap > button.mo-more-btn.is-open {
    color: var(--color-prime);
    background: rgba(0,0,0,0.05);
  }
  .header .headerWrap .staWrap .tools .buttonWrap > .mo-more-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 188px;
    max-width: 86vw;
    padding: 6px;
    background: var(--layout-header, #fff);
    border: 1px solid var(--ui-color-gray-200, rgba(0,0,0,0.12));
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  }
  .header .headerWrap .staWrap .tools .buttonWrap > .mo-more-panel > .mo-more-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 44px;
    padding: 8px 12px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--ui-color-gray-700);
    font-size: 15px;
    text-align: left;
    cursor: pointer;
  }
  .header .headerWrap .staWrap .tools .buttonWrap > .mo-more-panel > .mo-more-item:active { background: rgba(0,0,0,0.06); }
  .header .headerWrap .staWrap .tools .buttonWrap > .mo-more-panel > .mo-more-item i { font-size: 22px; }

  .header .tnbWrap {
    height: auto;
    padding: 4px 0;
  }
  .header .tnbWrap .tnb {
    width: 100%;
    height: auto;
  }
  .header .tnbWrap .tnb .tools .tnbLeftItems {
    gap: 12px;
  }
  .header .tnbWrap .tnb .tools .tnbRightItems {
    gap: 12px;
  }
  .snbMenuWrap .snb {
    padding: 0 16px;
  }
  .snbMenuWrap .tabNavigation .tabItem {
    padding: 14px 18px;
    font-size: 13px;
  }
  .boardTitle {
  }
  .searchPop .search {
    width: 320px;
  }
  .footerContent {
    flex-direction: column;
    align-items: center;
  }
  .footerContent .footerBrand {
    align-items: center;
  }
  /* [2026-09-13 버그 수정] .footerBar가 데스크톱용 justify-content:space-between을
     그대로 물려받아, 좁은 화면에서 두 .link 묶음이 양 끝으로 밀리며 가운데 큰 공백과
     함께 어긋나 보였다("모바일 푸터 레이아웃이 안 갖춰져 있다") — 세로로 쌓는다. */
  .footerWrap .footerBarWrap .footerBar {
    flex-direction: column;
    align-items: flex-start;
  }
  .footerWrap .footerBarWrap .footerBar .link {
    width: 100%;
  }
}

/* 소형 모바일 */
@media (max-width: 480px) {
  .snbMenuWrap .tabNavigation {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .snbMenuWrap .tabNavigation .tabItem {
    padding: 12px 16px;
    font-size: 12px;
    white-space: nowrap;
    min-width: 80px;
  }
}

/* ========================================
   스크롤 버튼 그룹 (맨위로 / 맨아래로)
======================================== */
.scrollBtnGroup {
  visibility: hidden;
  position: fixed;
  z-index: 920;
  right: 27px;
  bottom: 30px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(20px) scale(0.8);
}
.scrollBtnGroup.visible {
  visibility: visible;
  opacity: 1;
  transform: translateY(0) scale(1);
}
.scrollToTop,
.scrollToBottom {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: var(--color-prime);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  color: white;
  font-size: 30px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.scrollToTop:hover,
.scrollToBottom:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  transform: scale(1.1);
}
/* 모바일 반응형 */
@media (max-width: 768px) {
  /* [2026-09-12] 모바일은 터치 스크롤이 이미 빨라서 맨위로/맨아래로 버튼이 굳이
     필요 없고, 화면이 좁아 공간도 아깝다 — 모바일에서는 완전히 뺀다(PC에는 유지). */
  .scrollBtnGroup {
    display: none;
  }
  .kakaoOpenChat {
    right: 24px;
    bottom: 142px;
  }
  .ourChatLink {
    right: 24px;
    bottom: 198px;
  }
  .petWidget {
    right: 16px;
    bottom: 254px;
  }
}
/* [2026-09-12] 우하단 플로팅 아이콘(카카오톡·펫, PC는 스크롤버튼도)이 푸터 영역에
   가려 사라지는 대신, 푸터 상단선까지만 자연스럽게 밀려 올라가 계속 보이게 한다 —
   실제 위치 계산은 tail.php의 스크롤 리스너가 각 요소의 bottom을 직접 조정한다.
   드래그로 옮긴 펫 아이콘 위치와도 자연스럽게 맞물리도록 CSS는 transition만 담당.
   .scrollBtnGroup은 기존 transition:all 규칙이 이미 bottom도 포함하므로 건드리지
   않는다(여기서 다시 선언하면 opacity/transform 트랜지션이 통째로 사라짐). */
.kakaoOpenChat,
#petWidget {
  transition: bottom 0.2s ease;
}

/* ========================================
   반응형 그리드 시스템 
======================================== */
/* 반응형 그리드 시스템 */
.grid-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 40px;
}
#gridBuilderArea.grid-container {
  gap: 20px;
}

/* 위젯 헤더 스타일 */
.widget-wrapper {
}
.widget-wrapper .widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  margin-bottom: 10px;
  padding-bottom: 10px;
}
.widget-wrapper .widget-header::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background: var(--color-prime);
}
.widget-wrapper .widget-header .widget-title {
  margin: 0;
  color: var(--layout-gray-900);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.3px;
}
.widget-wrapper .widget-header .widget-more {
  display: flex;
  align-items: center;
  color: var(--layout-gray-700);
  font-size: 12px;
  font-weight: 400;
}
.widget-wrapper .widget-header .widget-more:hover {
  color: var(--color-prime);
}
.widget-wrapper .widget-header .widget-more i {
  margin-left: 4px;
  font-size: 14px;
}
.grid-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 20px;
}
/* grid-row가 늘려주는 높이는 .grid-col-XX 박스까지만 전달되므로,
   실제 테두리가 그려지는 위젯 카드까지 높이를 이어서 전달해
   같은 행의 위젯들이 콘텐츠 줄 수와 무관하게 높이를 맞추도록 함 */
.grid-row > [class^="grid-col-"] {
  display: flex;
}
.widget-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
}
.widget-wrapper > div:last-of-type {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}
/* 방문자 통계처럼 widget.json에 pin_bottom:true 가 있는 위젯의 행 — 사이드바(.grid-container[data-zone="sidebar"])의 flex-column 안에서
   맨 아래로 밀려나되, 위쪽 콘텐츠가 많아 공간이 부족해지면 자동으로 그냥 이어붙어서 절대 겹치거나 짤리지 않음 */
.grid-container[data-zone="sidebar"] {
  flex: 1;
}
.grid-container[data-zone="sidebar"] .grid-row-pin-bottom {
  margin-top: auto;
}

/* 기본 그리드 컬럼 */
.grid-col-30 {
  width: calc(30% - 10px);
}
.grid-col-40 {
  width: calc(40% - 10px);
}
.grid-col-50 {
  width: calc(50% - 10px);
}
.grid-col-60 {
  width: calc(60% - 10px);
}
.grid-col-70 {
  width: calc(70% - 10px);
}
.grid-col-100 {
  width: 100%;
}

/* 데모용 스타일 */
.grid-demo .grid-row > div {
  border: 1px dashed var(--layout-demo-border);
  border-radius: 10px;
}

@media (max-width: 1024px) {
  .grid-container .edit-mode {
    display: none;
  }
}
/* 태블릿 반응형 (768px 이하) */
@media (max-width: 860px) {
  .grid-col-30,
  .grid-col-40,
  .grid-col-50,
  .grid-col-60,
  .grid-col-70 {
    width: 100%;
  }
}

/* ========================================
   Reading Progress Bar
======================================== */
.reading-progress-container {
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: rgba(0, 0, 0, 0.05);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.reading-progress-bar {
  width: 0;
  height: 100%;
  background-color: var(--color-prime);
  transition: width 0.2s ease-out;
  will-change: width;
}
.reading-progress-percentage {
  position: fixed;
  z-index: 10000;
  top: 10px;
  right: 20px;
  padding: 4px 8px;
  border-radius: var(--layout-radius-sm);
  background-color: var(--layout-white);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  color: var(--color-prime);
  font-size: 12px;
  font-weight: bold;
}

/* Dark mode support for Reading Progress Bar */
:root.darkMode .reading-progress-container {
  background-color: rgba(255, 255, 255, 0.05);
}
:root.darkMode .reading-progress-percentage {
  background-color: var(--layout-gray-800);
  color: var(--color-prime);
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .reading-progress-container {
    height: 3px;
  }
  .reading-progress-percentage {
    top: 8px;
    right: 15px;
    padding: 3px 6px;
    font-size: 11px;
  }
}

/* ========================================
   설정 탭 스타일
======================================== */
.configTabs {
  display: flex;
  gap: 4px;
  margin-bottom: 30px;
  border-bottom: 2px solid var(--ui-color-gray-200);
  overflow-x: auto;
  overflow-y: hidden;
}
.configTab {
  position: relative;
  padding: 16px 24px;
  border: none;
  background: none;
  color: var(--ui-color-gray-600);
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  border-radius: 8px 8px 0 0;
  display: inline-flex;
  align-items: center;
}
.configTab:hover {
  background: var(--ui-color-gray-50);
  color: var(--ui-color-gray-800);
  text-decoration: none;
}
.configTab.active {
  color: var(--color-prime);
}
.configTab.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-prime);
}
.configTab i {
  margin-right: 8px;
  font-size: 20px;
}

/* [2026-09-12] 인쇄(window.print()) 시 사이트 전역 플로팅 UI가 그대로 찍혀 나가던 문제 —
   펫 위젯이 인쇄물에 섞여 나오고, top:0 고정인 reading-progress-bar가 매 페이지 상단을
   덮어 본문이 살짝 잘린 것처럼 보였다. fixed 요소는 인쇄 시 페이지마다 같은 자리에
   반복되므로, 화면 전용 플로팅 UI는 전부 인쇄에서 숨긴다. */
@media print {
  .header, .petWidget, .scrollBtnGroup, .kakaoOpenChat,
  .reading-progress-container, .searchPop, #drawerNav, .drawerDim {
    display: none !important;
  }
}

/* 기본 게시글 이미지는 다양한 카드 비율에서도 전체 내용을 보여준다. */
img[src*="/default-post-v1.png"]{object-fit:contain!important;background-color:#f6f2e9}
.petToolBtn[hidden]{display:none!important}
.petSimpleBtn{margin-left:auto;flex-shrink:0;min-height:28px;padding:0 8px;border:1.5px solid #f3c77a;border-radius:999px;background:#fff;color:#8a5a20;font:700 12px/1 inherit;font-family:inherit;white-space:nowrap;cursor:pointer}
.petSimpleBtn[aria-pressed="true"]{background:#e8963c;border-color:#e8963c;color:#fff}
