@charset "utf-8";

body {
    /* 기존 스타일 유지 (예: font-family, background 등) */
    
    /* ✅ 폰트 렌더링 최적화 추가 */
    -webkit-font-smoothing: antialiased; /* WebKit 기반 브라우저 및 웹뷰(안드로이드 포함) */
    -moz-osx-font-smoothing: grayscale;  /* Firefox 호환성 */
    text-rendering: optimizeLegibility;   /* 렌더링 엔진이 가독성을 최적화하도록 지시 */
}

/* =====================
   기본 설정 & 초기화
===================== */
:root {
  --primary: #033760;
  --secondary: #484847;
  --gray-light: #f7f7f7;
  --gray: #666;
  --gray-dark: #222;

  /* Index 공통 레이아웃 변수 */
  --gutter: 16px;         /* 좌우 여백 */
  --section-gap: 24px;    /* 섹션 간 간격 */

  /* 카드/썸네일 통일 변수 (구해요 기준) */
  --card-min: 220px;
  --card-max: 260px;
  --thumb-w: 16;          /* 썸네일 비율 */
  --thumb-h: 10;
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body {
  /* 기존 margin/padding/line-height 등은 그대로 두고 */
  font-family:
    "SamsungOneUI Sans",
    "Noto Sans KR",
    "Apple SD Gothic Neo",
    "Malgun Gothic",
    "맑은 고딕",
    "Nanum Gothic",
    Arial, sans-serif;
  /* ❌ font-size / letter-spacing / word-break 등은 전역에서 건드리지 마세요 */
}


body {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.3px;
}


img { max-width: 100%; height: auto; display: block; }

a { color: var(--primary); text-decoration: none; transition: 0.2s; }
a:hover { color: var(--secondary); text-decoration: none; }

/* =====================
   레이아웃
===================== */
#wrapper { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
header, footer { width: 100%; }
.container { max-width: 1200px; margin: 0 auto; padding: 20px 16px; }

/* =====================
   헤더
===================== */
#hd { border-bottom: 1px solid #eee; background: #fff; position: relative; z-index: 100; }
#logo { padding: 12px 0; }
#gnb { background: var(--primary); }
#gnb ul { margin: 0; padding: 0; display: flex; list-style: none; }
#gnb li a { display: block; padding: 14px 20px; color: #fff; font-weight: 500; }
#gnb li a:hover { background: var(--secondary); }


/* =====================
   고정 상단 네비 (모바일 포함 전 구간)
   - 모바일: 로고+커뮤니티+알림만 고정
   - 데스크톱: top_nav.php의 메뉴까지 같은 바에 표시
===================== */

/* 변수 */
:root{
  --navbar-z: 1100;
  --navbar-h: 40px;              /* JS가 실제 높이로 보정 */
  --navbar-gap: 10px;            /* 네비 아래 기본 여백 */
  --navbar-border: 1px solid rgba(0,0,0,.06); /* 스크롤 시 표시될 경계선 */
}

/* 레이아웃 & 고정 */
.navbar{
  position: fixed;               /* 전 구간 고정 */
  top: env(safe-area-inset-top, 0);
  left: 0; right: 0;
  z-index: var(--navbar-z);

  display: flex; align-items: center; gap: 16px;
  padding: 8px 15px;

  /* ✅ 비침 제거 (완전 불투명) */
  background: #fff !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;

  /* ✅ 기본 상태: 경계선/그림자 숨김 */
  border-bottom: transparent;
  box-shadow: none;

  /* WebView 떨림 완화 */
  transform: translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
  contain: layout paint;
}

/* 본문이 가려지지 않도록 상단 패딩 확보 (실측 높이 + 안전영역 + 추가 간격) */
body{
  padding-top: calc(var(--navbar-h) + env(safe-area-inset-top, 0) + var(--navbar-gap));
}

/* 스크롤 시에만 아주 얇은 경계선 노출 (일반 앱 느낌) */
body.nav-scrolled .navbar{
  border-bottom: var(--navbar-border);
  /* 필요 시 아래 한 줄을 해제하면 미세 그림자 추가
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
  */
}

/* 로고 */
.navbar-brand{ display:inline-flex; align-items:center; text-decoration:none; }
.navbar-brand img{ height:35px; display:block; }

/* 우측 아이콘 */
.nav-icons{ margin-left:auto; display:flex; align-items:center; gap:10px; }
.icon-btn{ display:inline-flex; align-items:center; color:#003760; text-decoration:none; font-weight:500; position:relative; }
.icon-btn i{ font-size:18px; margin-right:6px; }
.icon-btn:hover{ color:#f39c12; }
.badge-dot{ position:absolute; top:-2px; right:-6px; width:8px; height:8px; background:#ff2d55; border-radius:50%; }


/* 데스크톱에서만 상단 메뉴(팔아요/구해요/…) 노출 */
.jpw-header-nav{ display:none; }
@media (min-width: 769px){
  .jpw-header-nav{ display:inline-flex; gap:14px; align-items:center; margin-left:8px; }
  .jpw-header-nav a{
    display:inline-flex; align-items:center; text-decoration:none;
    color:#333; font-weight:600; line-height:1; padding:6px 8px; border-radius:10px;
  }
  .jpw-header-nav a:hover{ background:rgba(0,0,0,.04); }
  .jpw-header-nav a i{ font-size:18px; margin-right:6px; }

  /* 데스크톱은 하단 네비 숨김 */
  .jpw-bottom-nav{ display:none !important; }
}

/* 모바일: 메뉴(팔아요/구해요/…) 숨기고 상단은 로고/커뮤니티/알림만 노출 */
@media (max-width: 768px){
  .jpw-header-nav{ display:none !important; }
}

/* 접근성(시각적 숨김) */
.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}




/* ===============================
   PC 네비게이션 — 검색/배너와 동일 폭(1080px)
   로고(좌) / 메뉴(중앙) / 아이콘(우)
=============================== */
@media (min-width: 769px) {
  .navbar { background:#fff; border-bottom:1px solid #e5e7eb; }

  /* 중앙 메뉴 래퍼 */
  .jpw-header-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
  }

  /* top_nav.php가 ul/li를 출력하는 경우를 커버 */
  .jpw-header-nav > ul {
    display: flex;
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
    justify-content: center;
    align-items: center;
  }
  .jpw-header-nav > ul > li > a {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    color: #111827;
    white-space: nowrap;
    transition: background .15s;
  }
  .jpw-header-nav > ul > li > a:hover { background:#f1f5f9; }

  /* 로고/아이콘 미세 조정 */
  .navbar-brand img { height:34px; display:block; }
  .nav-icons { display:flex; gap:12px; justify-content:flex-end; }
  .icon-btn { color:#003760; font-size:18px; position:relative; }
  .icon-btn:hover { color:#ffa21a; }
  .badge-dot { position:absolute; top:0; right:-2px; width:7px; height:7px; background:#ff3b30; border-radius:50%; }
}

/* 모바일은 기존 동작 유지 */




/* =====================
   푸터
===================== */
.site_footer { padding: 20px; text-align: center; font-size: 13px; color: #777; background: #000; border-top: 1px solid #eee; }

/* =====================
   버튼 & 포커스
===================== */
button:focus, a:focus, input:focus, textarea:focus, select:focus { outline: none !important; box-shadow: none !important; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: none; box-shadow: 0 0 0 2px rgba(255,255,255,.4); border-radius: 6px; transition: box-shadow .2s;
}

/* =====================
   폼
===================== */
input, textarea, select { font-family: inherit; font-size: 14px; padding: 8px 10px; border: 1px solid #ddd; border-radius: 6px; outline: none; }
input:focus, textarea:focus, select:focus { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(3,55,96,.15); }

/* =====================
   공통 카드/박스
===================== */
.card { background:#fff; border:1px solid #eee; border-radius:8px; padding:16px; margin-bottom:20px; box-shadow:0 2px 6px rgba(0,0,0,.04); }

/* =====================
   유틸리티
===================== */
.text-center{ text-align:center; } .text-right{ text-align:right; }
.mt-20{ margin-top:20px; } .mb-20{ margin-bottom:20px; }

/* =====================
   반응형
===================== */
@media (max-width:768px){
  #wrapper, .container{ padding:0 12px; }
  #gnb ul{ flex-direction:column; }
  #gnb li a{ padding:12px; }
}

/* =====================
   앱 메인
===================== */
.app-main{ margin-top:0!important; padding:0 15px; box-sizing:border-box; }
#app-main{ padding-bottom:72px; } /* 하단 네비 확보 */



/* 공통 컨테이너(좌우 여백 통일) */
.inner{ margin:0 auto; padding:0 16px; }

/* === 텍스트형 롤링배너 (카톡 스타일) === */
.section-banner{ margin: 20px 0 10px; }
.jpw-banner{ position: relative; }
.jpw-banner__track{ position: relative; overflow: hidden; }
.jpw-banner__slides{ display: flex; transition: transform .45s ease; will-change: transform; }
.jpw-banner__slide{ flex: 0 0 100%; padding: 0; }

.banner-card{
  display:flex; align-items:center; justify-content:space-between;
  min-height:100px; padding:18px 16px; border-radius:14px;
  text-decoration:none; overflow:hidden;
  transition:transform .15s ease, box-shadow .15s ease;
  color: var(--fg, #111827); background: var(--bg, #f3f4f6);
}
.banner-card:hover{ transform:translateY(-2px); box-shadow:0 2px 6px rgba(0,0,0,.08); }
.banner-text{ flex:1; }
.banner-title{ margin:0 0 4px; font-weight:800; font-size:16px; line-height:1.3; }
.banner-desc{ margin:0; font-size:13px; opacity:.85; line-height:1.4; }
.banner-icon{ width:48px; height:48px; flex-shrink:0; opacity:.9; }
.banner-icon img{ width:100%; height:100%; object-fit:contain; display:block; }

/* dots */
.jpw-banner__dots{ display:flex; gap:6px; justify-content:center; margin-top:8px; }
.jpw-banner__dot{ width:6px; height:6px; border-radius:50%; background:rgba(0,0,0,.3); opacity:.5; cursor:pointer; }
.jpw-banner__dot.is-active{ background:#111; opacity:1; }

/* 모바일 */
@media (max-width:768px){
  .banner-card{ min-height:88px; padding:20px 20px; }
  .banner-title{ font-size:14px; }
  .banner-desc{ font-size:12px; }
  .banner-icon{ width:40px; height:40px; }
}


/* 배너 도트 리셋 + 스타일 */
.jpw-banner__dots{
  display:flex; justify-content:center; align-items:center;
  gap:8px; margin-top:8px; line-height:0;
}
.jpw-banner__dot{
  width:8px; height:8px; border-radius:9999px;
  background-color: rgba(0,0,0,.28);
  opacity:.75;

  /* ← 버튼 기본값 리셋 */
  border:0; padding:0; margin:0;
  box-shadow:none; outline:none;
  appearance:none; -webkit-appearance:none; -moz-appearance:none;
  background-image:none; /* 전역 gradient 방지 */
  cursor:pointer; vertical-align:middle;
}
.jpw-banner__dot.is-active{
  background-color:#111; opacity:1;
}
.jpw-banner__dot:focus-visible{
  outline:2px solid rgba(0,0,0,.25);
  outline-offset:2px;
}



/* =====================
   상단 배너(캐러셀)
===================== */
#mainCarousel { margin-top:6px; padding-left:var(--gutter); padding-right:var(--gutter); }
#mainCarousel .carousel-item img{ width:100%; height:140px; object-fit:cover; border-radius:12px; }
#mainCarousel .carousel-indicators,
#mainCarousel .carousel-control-prev,
#mainCarousel .carousel-control-next { display:none !important; }

@media (max-width:480px){ #mainCarousel .carousel-item img{ height:100px; } }

/* =====================
   검색 바
===================== */
.jpw-search{ padding:12px var(--gutter) 2px; }
.jpw-search form{ display:flex; border:1px solid #e5e7eb; border-radius:12px; overflow:hidden; background:#fff; }
.jpw-search input{ flex:1; padding:12px 14px; border:0; outline:0; font-size:15px; }
.jpw-search button{ border:0; padding:0 14px; background:#ffcc00; font-weight:700; }

/* 검색행(필터 링크형) */
.jpw-searchrow{ display:flex; align-items:center; gap:12px; margin:0 0 10px; }
.jpw-searchbar{ position:relative; flex:1 1 auto; min-width:0; }
.jpw-searchlink{ display:flex; align-items:center; gap:8px; height:44px; padding:0 44px 0 16px; border:1px solid #000; border-radius:9999px; background:#fff; color:inherit; text-decoration:none; }
.jpw-open-filter-ico{ position:absolute; right:12px; top:50%; transform:translateY(-50%); font-size:20px; color:#666; line-height:1; pointer-events:none; }
.jpw-searchbar input{ width:100%; border:0; outline:0; background:transparent; font-size:12px; color:#111; pointer-events:none; }


/* === 지도 버튼: 아이콘 위 / 글자 아래 === */
.jpw-mapbtn{
  flex:0 0 auto;
  display:flex;
  flex-direction:column;     /* 세로 스택 */
  align-items:center;
  justify-content:center;
  gap:4px;                   /* 아이콘-문자 간격 */
  width:80px;                /* 고정 폭으로 깔끔한 버튼 비율 */
  min-width:80px;
  height:44px;               /* 정사각형 느낌 */
  border-radius:10px;
  border:1px solid #e5e7eb;
  background:#003760;
  text-decoration:none;
  transition:background .15s, box-shadow .15s, transform .05s;
  color:#fff;             /* 로고 네이비 톤 */
}

/* 아이콘 크기 */
.jpw-mapbtn i{
  font-size:20px;
  line-height:1;
  display:block;
}

/* 라벨(매물지도) */
.jpw-mapbtn .textm{
  font-size:10.5px;
  line-height:1.2;
  letter-spacing:-.02em;
  white-space:nowrap;
  color:#fff;
}

/* 호버/활성 */
.jpw-mapbtn:hover{ background:#f8f9fb; box-shadow:0 1px 2px rgba(0,0,0,.06); }
.jpw-mapbtn:active{ transform:translateY(1px); }

/* 검색행 높이 맞추기: 버튼이 더 커지므로 상단 기준 정렬 */
.jpw-searchrow{ align-items:flex-start; }

/* 검색 링크 높이는 기존대로 유지 */
.jpw-searchlink{ height:44px; }


/* ===============================
   카테고리(quick-cats)
=============================== */
.quick-cats{ background:#fff; border:0; padding:12px 0 0; gap:12px; display:grid; grid-template-columns:repeat(3,1fr); margin:0 var(--gutter); }
.quick-cats.is-collapsed [data-extra="1"]{ display:none; }
.cat-card{ display:flex; flex-direction:column; align-items:center; justify-content:center; text-decoration:none; color:#374151; border-radius:14px; padding:12px 8px; background:#f9fafb; border:1px solid #e9edf3; min-height:92px; }
.cat-card:hover{ background:#f3f4f6; transform:translateY(-2px); }
.cat-icn{ width:40px; height:40px; border-radius:12px; display:flex; align-items:center; justify-content:center;  color:#003760; font-size:18px; margin-bottom:6px; }
.cat-ttl{ font-size:13px; font-weight:600; text-align:center; }
.cat-toggle{ grid-column:1/-1; margin:2px 0 0; height:40px; border:1px dashed #d9e0ea; background:#fff; border-radius:12px; font-weight:700; display:flex; align-items:center; justify-content:center; gap:6px; cursor:pointer; }
.quick-cats:not(.is-collapsed) .cat-toggle i{ transform:rotate(180deg); }

@media (max-width:480px){
  .quick-cats{ gap:12px; padding:12px 0 0; }
  .cat-card{ padding:10px 6px; }
  .cat-icn{ width:34px; height:34px; font-size:16px; }
  .cat-ttl{ font-size:12px; }
}

/* 기본: 모두 보임 (기존 카드 디스플레이 유지) */
.quick-cats .cat-card { display: inline-flex; }  /* 또는 기존 값 */

/* 접힘 상태: 카드를 전부 숨김 (Top3 포함 전부) */
.quick-cats.is-collapsed .cat-card { display: none !important; }

/* 접힘 상태에서도 토글 버튼은 보여야 함 */
.quick-cats.is-collapsed .cat-toggle { display: inline-flex !important; }


/* =====================
   섹션 구분/하단
===================== */
.ui-band{ width:100vw; height:12px; background:#f7f8fb; border-top:1px solid #eef2f6; border-bottom:1px solid #eef2f6; margin:20px 0 0px; position:relative; left:50%; transform:translateX(-50%); }



.jpw-footer{ margin-top:18px; padding:18px var(--gutter); text-align:center; font-size:12px; color:#6b7280; border-top:1px solid #f1f5f9; }

.jpw-bottom-nav{ position:fixed; left:0; right:0; bottom:0; height:60px; z-index:1000; background:#fff; border-top:1px solid #e5e7eb; display:flex; align-items:center; justify-content:space-around; }
.jpw-bottom-nav a{ flex:1; text-align:center; font-size:11px; color:#374151; padding-top:4px; }
.jpw-bottom-nav i{ display:block; font-size:15px; line-height:20px; margin-bottom:2px; }
@media (max-width:480px){ .jpw-bottom-nav{ height:54px; } .jpw-bottom-nav a{ font-size:10px; } .jpw-bottom-nav i{ font-size:18px; } }

/* ==========================
   구해요 축약 리스트 (mini)
========================== */
.feed--mini{ list-style:none; margin:0; padding:0; }
.feed_item--mini{ border-bottom:1px solid #f1f3f5; padding:12px 6px; }
.feed_link--mini{ display:block; color:inherit; text-decoration:none; }
.feed_link--mini .meta-top{ display:flex; gap:6px; flex-wrap:wrap; margin-bottom:6px; }
.feed_link--mini .label{ display:inline-flex; align-items:center; padding:2px 8px; border-radius:6px; font-size:12px; font-weight:700; white-space:nowrap; }
.feed_link--mini .label-region{ background:#e6f3ff; color:#0060c0; }
.feed_link--mini .label-type{ background:#fff4e6; color:#b45309; }
.feed_link--mini .title{ display:block; font-size:15px; font-weight:800; color:#111; margin-bottom:4px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.feed_link--mini .excerpt{ font-size:13px; line-height:1.5; color:#606770; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }

/* =========================================================
   JPW — 추천/신규/구해요 카드 통합 스타일 (2025-10-26 최종)
   - 카드 섹션 통일
   - 썸네일에만 테두리+그림자 (배민 스타일)
   - 본문은 플랫하고 간결하게
========================================================= */

:root{
  --card-min: 200px;  /* 최소 폭 */
  --card-max: 260px;  /* 최대 폭 */
}

/* 공통 섹션 */
.reco-wrap,          /* 추천/신규 */
.req-slider-section { /* 구해요 */
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  margin: var(--section-gap) 0;
}

/* 섹션 타이틀 */
.reco-wrap .reco-title,.reco-title,
.req-slider-section .reco-title {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.3px;
}







/* =========================================================
   추천/신규 카드 — 배민형 (썸네일만 테두리/그림자)
========================================================= */

/* 트랙 */
.reco-wrap .reco-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(var(--card-min), var(--card-max));
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  padding: 4px 0;
  scrollbar-width: none;
}
.reco-wrap .reco-track::-webkit-scrollbar { display: none; }

/* 카드 베이스 */
.reco-wrap .reco-card {
  scroll-snap-align: start;
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: visible;
  color: inherit;
  text-decoration: none;
  transition: none;
}

/* 썸네일 박스만 테두리/그림자 */
.reco-wrap .reco-thumb-wrap {
  position: relative;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
  background: #f6f7f9;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  aspect-ratio: var(--thumb-w)/var(--thumb-h);
}

/* 이미지 */
.reco-wrap .reco-thumb,
.reco-wrap .reco-thumb-wrap > img {
  position: absolute;
  inset: 0;
  width: 100%!important;
  height: 100%!important;
  object-fit: cover!important;
  object-position: center;
  display: block;
  z-index: 0;
}

/* 호버 시 썸네일만 살짝 떠오르게 */
.reco-wrap .reco-card:hover .reco-thumb-wrap {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,.08);
}
.reco-wrap .reco-card:hover {
  transform: none;
  box-shadow: none;
}

/* 본문 (플랫) */
.reco-wrap .reco-body {
  background: transparent;
  border: 0;
  box-shadow: none;
  margin-top: 10px;
  padding: 0;
}

/* 텍스트/정보 */
.reco-wrap .meta-row {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 0 6px;
}
.reco-wrap .price-row { margin-bottom: 6px; }
.reco-wrap .fee-row {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.25;
  flex-wrap: wrap;
}
.fee-row .meta-label {
  color: #374151;
  font-weight: 600;
  margin-right: 0px; /* '권리금'과 숫자 간 간격 */
}

.fee-row .meta-sep {
 display: none !important;
}
.addr-row .meta-value { font-size: 11px; color: #374151; }
.reco-wrap .addr-row { margin-bottom: 10px; }
.reco-wrap .meta-value { font-size: 12px; color: #6b7280; }
.reco-wrap .price-strong {
  font-size: 14px;
  font-weight: 900;
  color: #111827;
}
.reco-wrap .ellipsis-1 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 칩 (유형/전용면적) */
.chip-row {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}
.chip {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: -0.2px;
  background: #f5f7fa;
  color: #344054;
  border: 1px solid #edf0f3;
}
.chip-type {
  background: #eef4ff;
  color: #447D9B;
  border-color: #447D9B;
}
.chip-area {
  background: #f8fafc;
  color: #0f172a;
  border-color: #0f172a;
}

/* 배지 */
.reco-wrap .reco-badges {
  position: absolute;
  left: 5px; top: 10px;
  display: flex; gap: 6px; flex-wrap: wrap;
  z-index: 2;
}
.reco-wrap .badge {
  display: inline-block;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 5px;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.reco-wrap .badge--solid { color: #fff; }
.reco-wrap .badge-reco { background: #8317b8; }
.reco-wrap .badge-new { background: #1296fe; }

/* 리본 (썸네일 좌하단) */
.reco-thumb-wrap { position: relative; }
.reco-ribbon-row {
  position: absolute;
  left: 0; bottom: 0;
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  z-index: 3;
  padding-left: 0;
  padding-bottom: 0;
}
.ribbon {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 12px 0 16px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  color: #fff;
  background: #6D4CFF;
  border-radius: 0 8px 0 0;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
  white-space: nowrap;
}
.ribbon::before {
  content: "";
  position: absolute;
  left: -8px; top: 0; bottom: 0;
  width: 12px;
  background: inherit;
  transform: skewX(-18deg);
  transform-origin: left bottom;
}
.ribbon::after {
  content: "";
  position: absolute;
  left: -1px;
  bottom: -4px;
  border-style: solid;
  border-width: 5px 5px 0 0;
  border-color: attr(data-fold color, #4b3bbd) transparent transparent transparent;
  opacity: .45;
}
.ribbon {
  max-width: 70vw;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 카드 없음 */
.reco-wrap .reco-empty {
  flex: 1 1 100%;
  text-align: center;
  color: #9ca3af;
  padding: 26px 0;
  border: 1px dashed #e5e7eb;
  border-radius: 12px;
  background: #fafafa;
}

/* 모바일 카드 폭 보정 */
@media (max-width: 360px) {
  .req-slider-section .reco-track,
  .reco-wrap .reco-track {
    grid-auto-columns: minmax(200px, 240px);
  }
}


/* =====================
   기타
===================== */
.rqst-short-list { padding-left: var(--gutter); padding-right: var(--gutter); }


/* ==============================
   HARD OVERRIDE — 썸네일 여백 제거(꽉 채움)
   추천/신규(.reco-thumb-wrap) + 구해요(.req-thumb) 공통
   ============================== */

.reco-thumb-wrap,
.req-thumb{
  position: relative !important;
  overflow: hidden !important;
  background: #f6f7f9;
  aspect-ratio: 16 / 10 !important;   /* 원하는 비율 유지 */
}

/* aspect-ratio 미지원 브라우저용 fallback */
@supports not (aspect-ratio: 1 / 1) {
  .reco-thumb-wrap::before,
  .req-thumb::before{
    content: "";
    display: block;
    padding-top: 62.5%; /* 10 / 16 = 62.5% */
  }
}

/* 어떤 전역 img 규칙이 있어도 무조건 꽉 채우기 */
.reco-thumb-wrap > img,
.req-thumb > img{
  position: absolute !important;
  inset: 0 !important;               /* top/right/bottom/left: 0 */
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;      /* 여백 없이 채움 (남는 부분 크롭) */
  object-position: center !important;
  display: block !important;
}

/* HARD OVERRIDE: 이미지 여백 제거 */
.reco-thumb-wrap,
.req-thumb{
  position: relative !important;
  overflow: hidden !important;
  aspect-ratio: 16 / 10 !important;
  background: #f6f7f9;
}
.reco-thumb-wrap > img,
.req-thumb > img{
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
}


/* ===== 하단 네비===== */



/* PC 기본 숨김 */
.bottom_nav { display: none; }

@media (max-width: 768px) {
  :root{
    --bn-height: 65px;
    --bn-safe: env(safe-area-inset-bottom);
  }

  html, body {
    height: 100%;
    overscroll-behavior: none; /* 바운스/체이닝 억제 */
  }

  /* 콘텐츠가 하단바에 가려지지 않도록 여유 확보(딱 한 번만 선언) */
  body { padding-bottom: calc(var(--bn-height) + var(--bn-safe, 0px)); }

  .bottom_nav{
    display: flex;                /* 모바일에서만 노출 */
    position: fixed; left: 0; right: 0; bottom: 0;
    height: calc(var(--bn-height) + var(--bn-safe, 0px));
    padding-bottom: var(--bn-safe, 0px);

    background: #fff;
    border-top: 1px solid #e5e7eb;
    z-index: 9999;

    justify-content: space-around; align-items: center;

    /* 흔들림 방지 */
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform;
    contain: layout paint style;
  }

  .bottom_nav .nav_item{
    flex: 1;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    min-width: 0;
    text-decoration: none;
    color: #666;
  }
  .bottom_nav .nav_item i{
    font-size: 15px; line-height: 1; margin-bottom: 4px; display: block;
  }
  .bottom_nav .nav_item .textm{
    font-size: 10.51px; line-height: 1.1;
  }
  .bottom_nav .nav_item.active,
  .bottom_nav .nav_item:focus-visible{ color:#003760; }
}



/* ===============================
   메인 전용 푸터 (배민 스타일)
=============================== */
.app-footer{
  background:#f9fafb; /* ← 배민톤 회색 배경 */
  border-top:1px solid #e5e7eb;
  padding:20px 0 32px;
  color:#6b7280;
  font-size:11px;
}

.app-footer .inner{
  max-width:1080px;
  margin:0 auto;
  padding:0 16px;
}

.app-footer .footer-links{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  margin:0 0 8px;
  padding:0;
  list-style:none;
}
.app-footer .footer-links a{
  color:#374151;
  text-decoration:none;
}
.app-footer .footer-links a:hover{
  text-decoration:underline;
}

.app-footer .biz-info{
  margin-top:10px;
  line-height:1.5;
  color:#6b7280;
}
.app-footer .biz-info p{
  margin:2px 0;
}
.app-footer .biz-info .copy{
  margin-top:6px;
  color:#94a3b8;
  font-size:12px;
}

@media (max-width:768px){
  .app-footer{ font-size:10.5px; padding:18px 0 26px; }
}

/* =========================================================
   구해요 카드
========================================================= */

.req-slider-section .reco-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(var(--card-min), var(--card-max));
  gap: 12px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding: 4px 0;
  scrollbar-width: none;
}
.req-slider-section .reco-track::-webkit-scrollbar { display: none; }


.req-card {
  scroll-snap-align: start;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #eee;
  overflow: hidden;
}
.req-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

/* 썸네일 (16:10) */
.req-thumb {
  position: relative;
  aspect-ratio: var(--thumb-w)/var(--thumb-h);
  background: #f6f7f9;
  overflow: hidden;
}
.req-thumb > img {
  position: absolute;
  inset: 0;
  width: 100%!important;
  height: 100%!important;
  object-fit: cover!important;
  object-position: center;
  display: block;
}

/* 본문 */
.req-body { padding: 10px 12px 12px; }
.req-title {
  font-size: 14px;
  line-height: 1.35;
  margin: 0 0 6px;
  font-weight: 700;
  color: #231f12;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.req-excerpt {
  font-size: 12px;
  color: #777;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.req-meta {
  font-size: 12px;
  color: #888;
}
.req-meta.dual {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.req-meta.dual .author {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 60%;
}

/* ===== 구해요: 좌우 이동 버튼 (정상화) ===== */
.reco-track-wrap{ position:relative; }
.reco-track-wrap .jpw-nav-btn{
  position:absolute; top:50%; transform:translateY(-50%);
  width:34px; height:34px;
  display:flex; align-items:center; justify-content:center;
  border:1px solid #e5e7eb; background:#fff; color:#111;
  border-radius:9999px; box-shadow:0 2px 6px rgba(0,0,0,.06);
  font-size:16px; line-height:1; cursor:pointer; z-index:2;
}
.reco-track-wrap .jpw-nav-btn.prev{ left:-6px; }
.reco-track-wrap .jpw-nav-btn.next{ right:-6px; }
.reco-track-wrap .jpw-nav-btn:disabled{ opacity:.35; cursor:default; }
.reco-track-wrap .jpw-nav-btn i{ font-size:16px; }

@media (max-width:768px){
  .reco-track-wrap .jpw-nav-btn{ display:none !important; } /* 모바일은 버튼 숨김 */
}

/* ===== 하단 더보기 버튼 (팔아요와 동일 톤) ===== */
.section-more{ display:flex; justify-content:center; margin-top:14px; }
.section-more-btn{
  display:inline-flex; align-items:center; gap:6px;
  padding:8px 16px; font-size:12px; font-weight:600;
  color:#111827; background:#fff; border:1px solid #d1d5db;
  border-radius:999px; text-decoration:none;
  box-shadow:0 1px 2px rgba(0,0,0,.04);
}
.section-more-btn:hover{ background:#f3f4f6; }



/* 조건 라벨(지역/유형) */
.req-tags{
  display:flex; gap:6px; flex-wrap:wrap;
  margin:10px 0 15px; font-size:11px;
}
.pill{
  display:inline-flex; align-items:center; height:22px;
  padding:0 8px; border-radius:5px;
  font-size:11px; font-weight:500; letter-spacing:-0.2px;
  background:#f5f7fa; color:#344054; border:1px solid #edf0f3;
}
.pill.region{ background:#fce6ce; color:#f9880f; border-color:#f9880f;}
.pill.type  { background:#f8fafc; color:#0f172a; border-color:#0f172a; }

/* 제목/요약 텍스트 간격 살짝 조정 */
.req-title { margin:0 0 6px; }
.req-excerpt{ margin:0 0 8px; }


.gal-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 18px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  color: #222;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.gal-more-btn:hover {
  background: #f7f7f7;
  border-color: rgba(0,0,0,0.25);
}

.gal-more-btn:active {
  background: #eee;
  border-color: rgba(0,0,0,0.3);
}

/* ✅ SVG 화살표 정렬 수정 */
.arrow-icon {
  width: 14px;
  height: 14px;
  stroke: #666;
  stroke-width: 2.2;
  vertical-align: middle;
  transform: translateY(0.5px); /* ← 살짝 내리기 */
}



.gal-more-btn2 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 18px;
  background: #f7f7f7;
  border: 1px solid rgba(0,0,0,0.25);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  color: #222;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.gal-more-btn2:hover {
  background: #fff;
  border-color: rgba(0,0,0,0.25);
}

.gal-more-btn2:active {
  background: #eee;
  border-color: rgba(0,0,0,0.3);
}



/* 더보기 버튼 */
.gal-more-btn3 {
  display: inline-block;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 500;
  color: #333;
  background: #fff;
  border: 1px solid #666;
  border-radius: 30px;
  transition: background 0.2s;
}
.gal-more-btn3:hover { background: #e9ebef; color: #000;}





/* 추천 매물 전용 그라데이션 섹션 */
.reco-gradient{
  position: relative;
  /* 배민 느낌: 위는 흰색, 아래로 갈수록 아주 옅은 회색 */
  background: linear-gradient(180deg, #ffffff 0%, #fafbfc 35%, #f5f6f7 100%);
  padding: 0px 0 20px; /* 위아래 공간 */
}

/* 공통 inner를 쓰는 경우 콘텐츠는 정상 레이어로 */
.reco-gradient > .inner02{ position: relative; z-index: 1; }

/* 섹션 사이 구분선과 어울리게 여백 보정(선택) */
.reco-gradient + .ui-band{ margin-top: 0; }

/* 버튼/카드 등 내부 요소는 기존 스타일 그대로 사용 */


.reco-gradient-top {
  background: linear-gradient(180deg, #f3f2ff 0%, #ffffff 85%);
  padding: 0px 0 10px;
  margin-top: 0;
}
.reco-gradient-top { display: flow-root; }   /* 또는 overflow: hidden; */

/* 공통 여백 정리 */
.reco-gradient-top > .inner02 {
  position: relative;
  z-index: 1;
}

/* 섹션 사이 구분선 */
.reco-gradient-top + .ui-band {
  margin-bottom: 0;
}


.reco-gradient-top2 {
  background: linear-gradient(180deg, #eef2f8 0%, #ffffff 85%);
  padding: 0px 0 10px;
  margin-top: 0;
}
.reco-gradient-top2 { display: flow-root; }   /* 또는 overflow: hidden; */

/* 공통 여백 정리 */
.reco-gradient-top2 > .inner02 {
  position: relative;
  z-index: 1;
}

/* 섹션 사이 구분선 */
.reco-gradient-top2 + .ui-band {
  margin-bottom: 0;
}


.reco-gradient-top3 {
  background: linear-gradient(180deg, #fdfbf4 0%, #ffffff 85%);
  padding: 0px 0 10px;
  margin-top: 0;
}
.reco-gradient-top3 { display: flow-root; }   /* 또는 overflow: hidden; */

/* 공통 여백 정리 */
.reco-gradient-top3 > .inner02 {
  position: relative;
  z-index: 1;
}

/* 섹션 사이 구분선 */
.reco-gradient-top3 + .ui-band {
  margin-bottom: 0;
}

.highlight {
  color: #0a44ea; /* 브랜드 컬러 예시 */
  font-weight: 700; /* 살짝 더 강조 */
}
.reco-title .highlight{
  letter-spacing: normal;           /* 혹시 상속되어 있으면 초기화 */
  margin-left: .25em;               /* 보기 좋은 여백 강제 */
}


.highlight1 {
  color: #7f036f; /* 브랜드 컬러 예시 */
  font-weight: 700; /* 살짝 더 강조 */
}
.reco-title .highlight1{
  letter-spacing: normal;           /* 혹시 상속되어 있으면 초기화 */
  margin-left: .25em;               /* 보기 좋은 여백 강제 */
}


.highlight3 {
  color: #f9880f; /* 브랜드 컬러 예시 */
  font-weight: 700; /* 살짝 더 강조 */
}
.reco-title .highlight3{
  letter-spacing: normal;           /* 혹시 상속되어 있으면 초기화 */
  margin-left: .25em;               /* 보기 좋은 여백 강제 */
}

/* 팝오버 보이기/숨기기 – hidden 속성으로만 제어 (최종 위치에 둬야 이김) */
.reco-info-popover[hidden]{ display:none !important; }
.reco-info-popover:not([hidden]){ display:block !important; }

/* 팝오버 기본 박스 (한 번만 정의) */
.reco-info-popover{
  position: absolute;
  top: calc(100% + 8px);
  left: -60px;
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:10px;
  box-shadow:0 8px 24px rgba(0,0,0,.12);
  padding:10px 12px;
  width:260px;
  z-index:1200;        /* bottom_nav(9999) 위로 */
  pointer-events:auto;  /* 클릭 가능 보장 */
}

/* 기준 컨테이너 */
.reco-head{ position:relative;  }
.reco-info{ position:relative; display:inline-flex; }

/* 그라데이션 섹션(조상)에서 클리핑/스태킹 제거 */
.reco-gradient-top,
.reco-gradient-top2,
.reco-gradient-top3{ overflow:visible !important; display:flow-root; }
.reco-gradient-top  > .inner02,
.reco-gradient-top2 > .inner02,
.reco-gradient-top3 > .inner02{
  position:static !important;
  z-index:auto !important;
  overflow:visible !important;
}



.reco-info-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  font-size: 12px;
  color: #94a3b8;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
  margin: 0;
  position: relative;
 
}

.reco-info-btn:hover {
  color: #111827;
}

.reco-info-btn i{ font-size:12px; line-height:1; }


.reco-info-popover .popover-title{
  margin:0 0 6px; font-weight:600; font-size:13px;
}
.reco-info-popover .popover-desc{
  margin:0; font-size:11px; line-height:1.45; font-weight:400;color:#475569;
}

/* 작은 화면에선 폭 줄이기 */
@media (max-width:400px){
  .reco-info-popover{ width:220px; }
}


@media (max-width: 900px){
  .bottom_nav{
    z-index: 5000 !important;  /* 컨텐츠보다 항상 위 */
    height: calc(65px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

}


/****************************************************
 * 회원정보 수정 페이지 (점포왕 스타일)
 ****************************************************/

/* 전체 배경 + 폰트 */
body.member-modify {
    background: #003A58 !important;
    font-family: "Pretendard", "Noto Sans KR", sans-serif;
    padding: 0;
    margin: 0;
    color: #fff;
}

/* 전체 컨테이너 */
.modify-wrap {
    max-width: 480px;
    margin: 0 auto;
    padding: 26px 18px 60px;
}

/* 제목 스타일 */
.modify-wrap h2 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #fff;
}

/* 카드 박스 */
.modify-card {
    background: #fff;
    padding: 22px 20px;
    border-radius: 16px;
    margin-bottom: 24px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .15);
    color: #333;
}

/* 입력 라벨 */
.modify-card label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
}

/* ============================================================
   [공통] 게시판 목록 관리(어드민) UI — 전 게시판 / 전 기기 공통
   ------------------------------------------------------------
   - 팔아요(gallery_custom) · 구해요(request_custom) 등 모든 목록 스킨이
     동일한 클래스(.admin-bulk-bar / #fboardlist / .admin-check / .btn_02)를
     쓰므로 여기 한 곳에서만 정의한다. (앞으로 UI 수정도 여기서 → 전 게시판 동시 적용)
   - 카드 컨테이너만 스킨별로 다름: .gallery_item(팔아요) / .feed_item(구해요)
   - list.skin.php / _item.card.php 의 인라인 스타일을 덮어쓰기 위해 !important 사용.
   - 기능 로직 무변경, 표시 정렬만.
   ============================================================ */

/* 전체선택 / 선택삭제 바 : [□ 전체선택] ─────── [선택삭제] */
.admin-bulk-bar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  margin: 16px 0 14px !important;     /* 검색창과 16px 간격 */
  padding: 10px 12px !important;
  background: #f8fafc;
  border: 1px solid #e6e9ee;
  border-radius: 10px;
}
.admin-bulk-bar label {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 !important;
  font-size: 14px !important;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
}
.admin-bulk-bar #chkall {
  width: 18px;
  height: 18px;
  margin: 0;
  cursor: pointer;
}
/* 선택삭제 버튼: 높이/여백/폰트 통일 */
.admin-bulk-bar .btn_02,
.admin-bulk-bar button[type="submit"] {
  margin: 0 !important;
  height: 38px;
  padding: 0 16px;
  font-size: 14px;
  line-height: 36px;
  border-radius: 8px;
  cursor: pointer;
}

/* 카드 체크박스: 썸네일/라벨 위 겹침 제거 → 카드 좌측 전용 칼럼으로 이동
   #fboardlist 는 관리자에게만 출력되는 form 이므로 관리자 목록에서만 적용됨
   (일반 사용자 카드는 영향 없음) */
#fboardlist .gallery_grid .gallery_item,
#fboardlist .feed_item {
  padding-left: 36px;
}
#fboardlist .admin-check {
  top: 16px !important;            /* 카드 좌측 상단(전용 칼럼 안) */
  left: 6px !important;
  transform: none !important;
  background: transparent !important;  /* 흰 박스 제거 */
  padding: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}
.admin-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  cursor: pointer;
}

/* 입력 필드 */
.modify-card input[type=text],
.modify-card input[type=password],
.modify-card input[type=email],
.modify-card input[type=number],
.modify-card input.frm_input {
    width: 100%;
    padding: 14px 16px;
    background: #fafafa;
    border: 1px solid #ccc !important;
    border-radius: 12px !important;
    font-size: 15px;
    margin-bottom: 14px;
    box-sizing: border-box;
}

.modify-card input:focus {
    background: #fff;
    border-color: #F19208 !important;
    box-shadow: 0 0 0 3px rgba(241, 146, 8, .15);
    outline: none;
}

/* 비밀번호 안내 텍스트 */
.modify-card .memo {
    font-size: 12px;
    color: #777;
    margin-top: -8px;
    margin-bottom: 12px;
}

/* 버튼 영역 */
.modify-btns {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}

.modify-btns .btn {
    flex: 1;
    padding: 14px 0;
    text-align: center;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    border: none;
}

.modify-btns .btn-cancel {
    background: #eee;
    color: #333;
}

.modify-btns .btn-submit {
    background: #F19208;
    color: #fff;
}

/* 하단 네비 숨기기 */
body.member-modify .bottom_nav,
body.member-modify .mobile-bottom-nav,
body.member-modify .gnb_bottom {
    display: none !important;
}

/* li 스타일 제거 */
.modify-card ul,
.modify-card li {
    list-style: none !important;
    padding: 0;
    margin: 0;
}



/* =========================
   JPW 문서 페이지(이용약관/개인정보) - 앱 스타일
   ========================= */

/* 하단 고정탭에 마지막 내용이 가리지 않게 */
#app-main.jpw-doc-wrap{
  padding-bottom: 120px;
}

/* 전체 배경을 앱처럼 */
.jpw-doc-wrap{
  background: #f6f7f9; /* 앱에서 흔한 연한 회색 */
}

/* 문서 컨테이너 */
.jpw-doc{
  max-width: 680px;     /* 너무 넓으면 웹문서 같아짐 */
  margin: 0 auto;
  padding: 14px 12px 20px;
  box-sizing: border-box;
}

/* 제목: 크기 줄이고 앱 타이포처럼 */
.jpw-doc__title{
  font-size: 18px;
  line-height: 1.3;
  margin: 8px 4px 12px;
  font-weight: 800;
  letter-spacing: -0.2px;
  color: #111;
}

/* 본문 전체: 글씨 작게 + 가독성 */
.jpw-doc__body{
  font-size: 13.5px;
  line-height: 1.65;
  color: #222;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

/* 본문을 ‘카드’로 분리해서 앱처럼 보이게 */
.jpw-doc__body > *{
  background: #fff;
  border: 1px solid #eceef1;
  border-radius: 14px;
  padding: 12px 20px;
  margin: 10px 0;
  box-shadow: 0 1px 0 rgba(0,0,0,0.02);
}

.jpw-doc__body h1{font-size:15px;}

/* 제목(h2/h3)은 카드 안에서 너무 커지지 않게 */
.jpw-doc__body h2{
  font-size: 15.5px;
  line-height: 1.35;
  margin: 0 0 8px 0;
  font-weight: 800;
  letter-spacing: -0.2px;
  color: #111;
}

.jpw-doc__body h3{
  font-size: 14.5px;
  line-height: 1.35;
  margin: 0 0 6px 0;
  font-weight: 800;
  color: #111;
}

/* 문단 */
.jpw-doc__body p{
  margin: 8px 0 0 0;
}

/* 구분선은 카드 안에서 자연스럽게 */
.jpw-doc__body hr{
  border: 0;
  border-top: 1px solid #eef0f3;
  margin: 10px 0;
}

/* 목록(숫자/점) - 들여쓰기/줄간격 앱 느낌 */
.jpw-doc__body ul,
.jpw-doc__body ol{
  margin: 8px 0 0 0;
 
   list-style: none !important;
}

.jpw-doc__body li{
  margin: 6px 0;
   list-style: none !important;
}



/* 숫자 목록이 너무 빽빽하지 않게 */
.jpw-doc__body ol li{
  padding-left: 2px;
}

/* 링크는 튀지 않게 */
.jpw-doc__body a{
  color: inherit;
  text-decoration: underline;
}

/* 모바일에서 더 자연스럽게 (아주 작은 화면) */
@media (max-width: 380px){
  .jpw-doc{
    padding: 12px 10px 18px;
  }
  .jpw-doc__title{
    font-size: 17px;
  }
  .jpw-doc__body{
    font-size: 13px;
  }
}

/* =========================
   JPW 문서 페이지 보정 (카드/목록 정리)
   ========================= */

/* 카드 대상 재정의: 제목(h2/h3)은 카드에서 제외 */
.jpw-doc__body > *{
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  box-shadow: none;
}

/* 카드 단위는 문단/목록 묶음만 */
.jpw-doc__body section,
.jpw-doc__body div,
.jpw-doc__body ol,
.jpw-doc__body ul,
.jpw-doc__body p{
  background: #fff;
  border: 1px solid #eceef1;
  border-radius: 14px;
  padding: 14px 14px;
  margin: 10px 0;
}

/* 조항 제목 */
.jpw-doc__body h2{
  font-size: 15.5px;
  font-weight: 800;
  margin: 16px 4px 6px;
  color: #111;
}

/* 조항 제목 바로 아래 카드와 자연스럽게 붙이기 */
.jpw-doc__body h2 + ol,
.jpw-doc__body h2 + ul,
.jpw-doc__body h2 + p{
  margin-top: 6px;
}


.jpw-doc__body ol li{
  padding-left: 4px;    /* 숫자와 텍스트 간격 */
  margin: 6px 0;
}


.jpw-doc__body ul li{
  margin: 6px 0;
}
