/* ============================================================
   남동구사업가모임 with 당근 — 당근(Daangn) 소프트 라이트 테마
   당근 오렌지 액센트 #FF6600 유지 + 밝은 그레이 라이트 톤으로 전환
   버튼은 진한 오렌지(#ED5A00 계열)로 흰 글씨 대비 확보
   ============================================================ */
:root {
  --carrot: #FF6600;        /* 당근 브랜드 오렌지 (액센트/테두리/텍스트용) */
  --carrot-hi: #C24A00;     /* 라이트 배경 위 오렌지 텍스트/링크 (흰 배경 대비 ~4.9:1, AA 통과) */
  --carrot-btn: #ED5A00;    /* 버튼 배경 (흰 글씨 대비 ↑, AA large 통과) */
  --carrot-btn-hi: #D85200;
  --carrot-soft: rgba(255, 102, 0, 0.12);
  --bg: #F6F7F9;            /* 밝은 그레이 페이지 배경 */
  --bg-2: #FFFFFF;
  --surface: #FFFFFF;       /* 카드 */
  --surface-2: #F1F2F4;
  --line: rgba(0, 0, 0, 0.08);
  --line-strong: rgba(0, 0, 0, 0.14);
  --text: #1A1A1F;
  --text-dim: #5A5C63;
  --text-mut: #6A6C73;     /* 회색면(--surface-2) 위 ~4.6:1, AA 통과 */
  --white: #ffffff;
  --radius: 16px;
  --radius-lg: 22px;
  --lift: -3px;            /* 카드 hover 상승값(전 카드 공통) */
  --shadow: 0 6px 20px rgba(20, 20, 30, 0.08);
  --shadow-orange: 0 8px 22px rgba(255, 102, 0, 0.22);
  --container: 1140px;
  /* 히어로 전용 웜 토큰 (전역 톤은 건드리지 않음) */
  --bg-warm: #FFFBF6;
  --cream: #FFF3E6;
  --peach: #FFE0BE;
  --text-warm: #2A2018;
  --text-warm-dim: #6B5A4C;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 68px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
section[id] { scroll-margin-top: 68px; }

/* ===== 스크롤 리빌 (CSS Scroll-Driven Animations · 점진적 적용) =====
   기본은 '보임'. 지원 브라우저(animation-timeline: view()) + 모션 허용 시에만 등장 효과.
   미지원(구형 iOS 사파리 등)·reduced-motion 은 그대로 정적 노출(깨짐 없음, JS 불필요). */
@keyframes reveal-rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: reveal-rise both; animation-timeline: view(); animation-range: entry 5% cover 26%; }
    .reveal-stagger > * { animation: reveal-rise both; animation-timeline: view(); animation-range: entry 4% cover 30%; }
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, ::before, ::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; }
}
body.modal-open { overflow: hidden; }
/* hidden 속성은 항상 우선(예: .member-grid{display:grid} 이 [hidden] 을 덮어쓰는 문제 방지) */
[hidden] { display: none !important; }
/* 모바일 탭 하이라이트 제거 + 300ms 탭 지연 제거 */
a, button, [role="button"], .btn, .view-btn, .member-card, input[type=submit] {
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
/* 터치 누름 피드백 (:hover 없는 모바일용) */
.btn:active, .view-btn:active, .sns-link:active, .inquiry-toggle:active { transform: scale(.96); }
.member-card:active { transform: scale(.98); }
.carousel-btn:active { transform: translateY(-50%) scale(.92); }
.carousel-dot:active { background: var(--carrot-btn); }
/* 키보드 포커스 가시성 */
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--carrot); outline-offset: 3px; border-radius: 6px; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 300; background: var(--carrot-btn); color: #fff; padding: 10px 18px; border-radius: 0 0 10px 0; font-weight: 700; }
.skip-link:focus { left: 0; }
/* 빈 상태 */
.empty-state { grid-column: 1 / -1; text-align: center; padding: 48px 20px; color: var(--text-dim); min-height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.empty-state .empty-icon { font-size: 34px; margin-bottom: 10px; }
.empty-state p { margin-bottom: 16px; }
body {
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Malgun Gothic", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
}
/* 긴 한글 헤딩은 단어 단위로 줄바꿈 (320px에서 어절 중간 끊김 방지) */
.section-title, .member-name, .step-card h3, .review-author, .modal-head .member-name, .sch-body h3 { word-break: keep-all; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 clamp(20px, 3vw, 48px); }

/* ===== 버튼 ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 12px; font-weight: 700; font-size: 15px;
  border: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s, background .15s, border-color .15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--carrot); outline-offset: 3px; }
.btn-lg { padding: 16px 34px; font-size: 16px; }
.btn-primary { background: var(--carrot-btn); color: #fff; box-shadow: var(--shadow-orange); }
.btn-primary:hover { background: var(--carrot-btn-hi); }
.btn-ghost { background: var(--surface); color: var(--text); border: 1.5px solid var(--line-strong); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--carrot); color: var(--carrot-hi); }
.btn-outline { background: var(--surface-2); color: var(--text); border: 1px solid var(--line-strong); padding: 9px 16px; font-size: 13px; border-radius: 10px; }
.btn-outline:hover { border-color: var(--carrot); color: var(--carrot-hi); }

/* ===== 헤더 ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.72); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: background .3s, border-color .3s;
}
.site-header.scrolled { background: rgba(255, 255, 255, 0.92); border-bottom-color: var(--line); box-shadow: 0 1px 0 rgba(0,0,0,.02); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 9px; }
.logo-mark {
  background: var(--carrot); color: #fff; font-size: 18px;
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
}
/* 당근 아이콘 (단일 SVG symbol, 텍스트 색 상속) */
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico-carrot { width: 1em; height: 1em; display: inline-block; vertical-align: -0.14em; fill: currentColor; flex: none; }
.logo-mark .ico-carrot { width: 21px; height: 21px; fill: #fff; vertical-align: 0; }
.float-carrot .ico-carrot { width: 18px; height: 18px; }
.logo-text { color: var(--text); font-weight: 800; font-size: clamp(14.5px, 4vw, 17px); letter-spacing: -.3px; }
.logo-text em { color: var(--carrot-hi); font-style: normal; font-weight: 800; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--text-dim); font-weight: 600; font-size: 15px; transition: color .15s; }
.nav a:hover { color: var(--carrot-hi); }
.nav-cta { color: #fff !important; }
.auth-area { display: inline-flex; align-items: center; gap: 16px; }
.nav-login { color: var(--text) !important; font-weight: 700; }
.nav-login:hover { color: var(--carrot-hi) !important; }
.nav-hi { color: var(--text-dim); font-weight: 600; font-size: 14px; text-decoration: none; }
.nav-hi b { color: var(--text); }
a.nav-hi:hover { color: var(--carrot-hi); }
a.nav-hi:hover b { color: var(--carrot-hi); }
.nav-badge {
  display: inline-block; min-width: 18px; padding: 1px 6px; margin-left: 2px;
  background: var(--carrot-btn); color: #fff; border-radius: 999px;
  font-size: 11.5px; font-weight: 800; line-height: 1.5; text-align: center; vertical-align: middle;
}

/* 로그인 사용자 드롭다운 메뉴 (헤더 넘침 방지) */
.user-menu { position: relative; }
.user-menu-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 8px 14px; font-family: inherit; font-weight: 700; font-size: 14px; color: var(--text);
  cursor: pointer; transition: border-color .15s, color .15s; white-space: nowrap;
}
.user-menu-btn:hover { border-color: var(--carrot); color: var(--carrot-hi); }
.user-menu-btn .um-name b { color: var(--text); font-weight: 800; }
.user-menu-btn:hover .um-name b { color: var(--carrot-hi); }
.um-caret { font-size: 11px; transition: transform .18s; color: var(--text-mut); }
.user-menu.open .um-caret { transform: rotate(180deg); }
.user-menu-list {
  position: absolute; top: calc(100% + 10px); right: 0; min-width: 190px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 14px 36px rgba(0,0,0,.16); padding: 7px; z-index: 1300;
  display: none; flex-direction: column; gap: 2px;
}
.user-menu.open .user-menu-list { display: flex; }
.user-menu-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 14px; border-radius: 9px; color: var(--text); font-weight: 600; font-size: 14.5px;
}
.user-menu-list a:hover { background: var(--surface-2); color: var(--carrot-hi); }
.user-menu-list .um-cta { color: var(--carrot-hi); font-weight: 800; }
.user-menu-list .um-logout { color: var(--text-mut); border-top: 1px solid var(--line); margin-top: 4px; padding-top: 12px; }
.user-menu-list .um-logout:hover { color: var(--carrot-hi); }
/* 모바일(햄버거 펼침 상태): 드롭다운을 평면으로 펼쳐서 보여줌 */
@media (max-width: 720px) {
  .user-menu { width: 100%; }
  .user-menu-btn { width: 100%; justify-content: center; }
  .um-caret { display: none; }
  .user-menu-list {
    position: static; display: flex; box-shadow: none; border: none;
    padding: 6px 0 0; min-width: 0; gap: 0; width: 100%;
  }
  .user-menu-list a { justify-content: center; }
  .user-menu-list .um-logout { margin-top: 6px; }
}
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s, opacity .25s; transform-origin: center; }
/* 메뉴 열림 시 햄버거 → X (열림/닫힘 시각 피드백) */
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
/* 외부 갤러리 이미지가 깨진 링크 칸: 링크·캡션 유지하며 자리표시 */
.gallery-item.is-broken { background: var(--carrot-soft); min-height: 140px; }

/* ===== 히어로 (2모드: gradient 폴백 / photo 갤러리연동) ===== */
.hero { position: relative; min-height: min(88vh, 820px); min-height: min(88dvh, 820px); display: flex; align-items: center; overflow: hidden; background: var(--bg-warm); }
.hero-bg { position: absolute; inset: 0; }

/* 시안 A — 따뜻한 그라데이션 + 당근 모티브 (JS 없거나 갤러리 비었을 때 기본/폴백) */
.hero--gradient .hero-bg {
  background: radial-gradient(125% 100% at 88% -8%, var(--peach) 0%, var(--cream) 44%, var(--bg-warm) 100%);
}
.hero--gradient .hero-bg::before {
  content: ""; position: absolute; top: -40px; right: -30px; width: 340px; height: 340px;
  background: var(--carrot); opacity: .08; transform: rotate(12deg);
  --carrot-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cellipse cx='8.7' cy='6' rx='1.7' ry='3' transform='rotate(-40 8.7 6)'/%3E%3Cellipse cx='12' cy='4.7' rx='1.7' ry='3.2'/%3E%3Cellipse cx='15.3' cy='6' rx='1.7' ry='3' transform='rotate(40 15.3 6)'/%3E%3Cpath d='M7.7 9.9c2.7-1.35 5.9-1.35 8.6 0l-3.2 9.4c-.4 1.25-1.7 1.25-2.1 0L7.7 9.9z'/%3E%3C/svg%3E");
  -webkit-mask: var(--carrot-mask) center/contain no-repeat; mask: var(--carrot-mask) center/contain no-repeat;
}
.hero--gradient .hero-bg::after {
  content: ""; position: absolute; bottom: -70px; left: -50px; width: 240px; height: 240px;
  border-radius: 50%; background: var(--peach); opacity: .5;
}

/* 시안 B — 갤러리 대표사진 + 오렌지 듀오톤 (text-shadow 없이 가독성 확보) */
.hero--photo .hero-bg {
  background-image: var(--hero-photo); background-position: center; background-size: cover; background-repeat: no-repeat;
}
.hero--photo .hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(38,16,6,.85) 0%, rgba(58,24,9,.42) 60%, rgba(58,24,9,.12) 100%),
    linear-gradient(135deg, rgba(110,42,12,.55), rgba(224,122,56,.22));
}

.hero-content {
  position: relative; z-index: 2; max-width: 760px;
  padding: clamp(20px, 3vw, 40px) clamp(4px, 1vw, 12px);
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: 14px;
  padding: 7px 15px; border-radius: 999px; margin-bottom: 22px;
}
.hero--gradient .hero-badge { background: var(--carrot-soft); color: var(--carrot-btn); border: 1px solid rgba(255,102,0,.3); }
.hero--photo .hero-badge { background: rgba(255,255,255,.16); color: #fff; border: 1px solid rgba(255,255,255,.34); }
.hero--photo .hero-badge .ico-carrot { fill: #FFB877; }

.hero-title { font-size: clamp(34px, 6.2vw, 70px); font-weight: 800; line-height: 1.12; letter-spacing: -1px; word-break: keep-all; }
.hero--gradient .hero-title { color: var(--text-warm); }
.hero--photo .hero-title { color: #fff; }
.hero-title .accent { color: var(--carrot-btn); }
.hero--photo .hero-title .accent { color: #FFC08A; }
.hero-title .hero-line { display: block; }
.hero-title .accent { display: inline-block; position: relative; }

/* 히어로 로딩 등장 효과: 두 줄이 순차로 떠오르고 accent 밑줄이 좌→우로 그어짐.
   모션 허용 시에만 작동(reduced-motion 은 정적 노출). @keyframes 는 전 브라우저 지원. */
@keyframes hero-rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes hero-underline { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: no-preference) {
  .hero-title .hero-line { opacity: 0; animation: hero-rise .75s cubic-bezier(.2,.7,.2,1) both; }
  .hero-title .hero-line:nth-child(1) { animation-delay: .08s; }
  .hero-title .hero-line:nth-child(2) { animation-delay: .26s; }
  .hero-title .accent::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -.06em; height: .09em;
    background: currentColor; border-radius: 99px;
    transform: scaleX(0); transform-origin: left center;
    animation: hero-underline .65s cubic-bezier(.2,.7,.2,1) 1s both;
  }
}

/* 신뢰 숫자 */
.hero-stats { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 24px); list-style: none; margin: 22px 0 0; flex-wrap: wrap; }
.hero-stats li { display: flex; flex-direction: column; gap: 3px; }
.hero-stats li + li { padding-left: clamp(14px, 2.4vw, 24px); border-left: 1px solid currentColor; }
.hero-stats b { font-size: clamp(20px, 4vw, 26px); font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.hero-stats span { font-size: 13px; font-weight: 600; word-break: keep-all; }
.hero--gradient .hero-stats { color: rgba(154,74,18,.22); }
.hero--gradient .hero-stats b { color: var(--carrot-btn); }
.hero--gradient .hero-stats span { color: var(--text-warm-dim); }
.hero--photo .hero-stats { color: rgba(255,255,255,.28); }
.hero--photo .hero-stats b { color: #fff; }
.hero--photo .hero-stats span { color: rgba(255,255,255,.82); }

.hero-sub { font-size: clamp(16px, 1.9vw, 20px); line-height: 1.55; margin: 22px 0 30px; max-width: 540px; }
.hero--gradient .hero-sub { color: var(--text-warm-dim); }
.hero--photo .hero-sub { color: rgba(255,255,255,.9); }

.hero-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hero-textlink { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 14.5px; text-decoration: underline; text-underline-offset: 3px; }
.hero-textlink .ico-carrot { width: 16px; height: 16px; }
.hero--gradient .hero-textlink { color: var(--carrot-hi); }
.hero--gradient .hero-textlink .ico-carrot { fill: var(--carrot-hi); }
.hero--photo .hero-textlink { color: #fff; }
.hero--photo .hero-textlink .ico-carrot { fill: #fff; }

.hero-pills { display: flex; gap: 8px 16px; margin-top: 28px; flex-wrap: wrap; list-style: none; font-size: 14px; font-weight: 600; }
.hero-pills li { display: inline-flex; align-items: center; gap: 7px; }
.hero--gradient .hero-pills { color: var(--text-warm-dim); }
.hero--photo .hero-pills { color: rgba(255,255,255,.85); }
.hero-pills .pill-check { color: var(--carrot-hi); font-weight: 800; }
.hero--photo .hero-pills .pill-check { color: #FFC08A; }

/* ===== 섹션 공통 ===== */
.section { padding: clamp(72px, 8vw, 128px) 0; }
.section.alt { background: var(--bg-2); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto clamp(40px, 4.5vw, 64px); }
.section-head.left { text-align: left; margin-left: 0; }
.eyebrow { color: var(--text-dim); font-weight: 700; font-size: 12px; letter-spacing: 1.4px; }
.section-title { font-size: clamp(26px, 3.6vw, 40px); font-weight: 800; color: var(--text); letter-spacing: -.6px; margin-top: 8px; }
.section-sub { color: var(--text-dim); margin-top: 12px; font-size: 16px; }
.src-tag {
  display: inline-block; background: var(--carrot-soft); color: var(--carrot-hi); font-size: 12px; font-weight: 700;
  padding: 3px 11px; border-radius: 999px; margin-left: 6px; vertical-align: middle; border: 1px solid rgba(255,102,0,.25);
}
/* 연동 뱃지를 독립된 가운데 줄로: 제목·sub 안 건드려 모든 글자 100% 중앙정렬 */
.src-line { margin-top: 14px; text-align: center; }
.src-line .src-tag { margin-left: 0; }
/* 좌측정렬 공고 헤더는 제목 옆에 그대로 둬도 정렬 안 깨짐 */
.notice-header h1 .src-tag {
  font-size: 14px; margin-left: 9px; vertical-align: middle; position: relative; top: -.06em; white-space: nowrap;
}

/* ===== "이렇게 함께해요" 스텝 카드 ===== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step-card {
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--carrot); border-radius: var(--radius);
  padding: 32px 28px; box-shadow: var(--shadow); transition: transform .2s, border-color .2s, box-shadow .2s;
}
.step-card:hover { transform: translateY(var(--lift)); border-color: var(--carrot); box-shadow: 0 10px 26px rgba(255,102,0,.18); }
.step-num {
  width: 44px; height: 44px; border-radius: 13px; background: var(--carrot); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 18px; margin-bottom: 16px;
  box-shadow: 0 6px 16px rgba(255,102,0,.3);
}
.step-card h3 { color: var(--text); font-size: clamp(18px, 1.5vw, 22px); font-weight: 700; margin-bottom: 8px; }
.step-card p { color: var(--text-dim); font-size: 15px; }

/* Sticky Stacking Cards — 데스크톱(≥736px) + 모션 허용 시에만.
   모바일(≤735px)·reduced-motion 은 기존 1열 정적 카드(아래 미디어쿼리)로 폴백. */
@media (min-width: 736px) and (prefers-reduced-motion: no-preference) {
  #about .steps { display: block; max-width: 720px; margin-left: auto; margin-right: auto; }
  #about .step-card { position: sticky; min-height: 200px; margin-bottom: 26px; }
  #about .step-card:nth-child(1) { top: 96px; }
  #about .step-card:nth-child(2) { top: 122px; }
  #about .step-card:nth-child(3) { top: 148px; }
  #about .step-card:last-child { margin-bottom: 0; }
  /* 스택 중에는 hover 시 떠오르는 이동 제거(고정 위치와 충돌 방지) */
  #about .step-card:hover { transform: none; border-color: var(--carrot); box-shadow: 0 12px 30px rgba(0,0,0,.1); }
}

/* ===== 모임 일정 — 가로 미디어카드 리스트(중앙정렬) ===== */
.schedule-grid { display: flex; flex-direction: column; gap: 14px; max-width: 760px; margin: 0 auto; }
.schedule-card {
  display: flex; align-items: stretch; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; min-height: 112px;
  box-shadow: var(--shadow); transition: transform .2s, border-color .2s, box-shadow .2s;
}
.schedule-card:hover { transform: translateY(var(--lift)); border-color: var(--carrot); box-shadow: 0 10px 26px rgba(255,102,0,.18); }
/* 썸네일은 흐름에서 빼 카드 높이에 영향 주지 않게(이미지 비율 무관 균일 높이) → cover 로 영역만 채움 */
.sch-thumb-wrap { flex: none; width: 124px; position: relative; overflow: hidden; }
.sch-thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.schedule-card:hover .sch-thumb { transform: scale(1.05); }
/* 썸네일 클릭 → 라이트박스 확대. 커서 + hover 시 돋보기 힌트(이미지 있는 칸만) */
.sch-thumb { cursor: zoom-in; }
.sch-thumb-wrap:has(.sch-thumb)::after {
  content: "🔍"; position: absolute; right: 6px; bottom: 6px;
  width: 22px; height: 22px; border-radius: 50%; background: rgba(0,0,0,.5); color: #fff;
  font-size: 12px; display: grid; place-items: center; opacity: 0; transition: opacity .2s; pointer-events: none;
}
.schedule-card:hover .sch-thumb-wrap:has(.sch-thumb)::after { opacity: 1; }
.sch-thumb-empty, .sch-thumb-wrap.is-empty { width: 100%; height: 100%; background: linear-gradient(135deg, rgba(255,102,0,.18), rgba(255,102,0,.05)); display: grid; place-items: center; }
.sch-thumb-empty .ico-carrot { width: 30px; height: 30px; fill: rgba(255,102,0,.5); }
.sch-date {
  flex: none; width: 66px; background: var(--carrot); color: #fff; line-height: 1.15;
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 4px;
}
.sch-date .mon { font-size: 11px; font-weight: 700; opacity: .9; letter-spacing: .3px; }
.sch-date .day { font-size: 26px; font-weight: 800; }
.sch-body { flex: 1; min-width: 0; padding: 16px 22px; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.sch-body h3 { font-size: clamp(16px, 1.4vw, 19px); font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sch-meta { color: var(--text-dim); font-size: 13.5px; display: flex; flex-direction: column; gap: 3px; }
.sch-meta span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 900px) { .schedule-grid { max-width: 100%; } .sch-thumb-wrap { width: 100px; } }
@media (max-width: 520px) {
  .sch-thumb-wrap { display: none; }
  .sch-body h3 { white-space: normal; }
  .sch-date .day { font-size: 22px; }
}

/* ===== 멤버(업체) 디렉토리 — 관리자 지정 "테두리 색" ===== */
/* 리스트 / 지도 보기 토글 */
.view-toggle {
  display: flex; gap: 4px; width: fit-content; margin: 0 auto 34px; padding: 4px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px;
}
.view-btn {
  display: inline-flex; align-items: center; min-height: 42px;
  background: transparent; border: none; color: var(--text-dim);
  padding: 9px 22px; border-radius: 999px; font-weight: 700; font-size: 14.5px; cursor: pointer;
  transition: background .15s, color .15s;
}
.view-btn:hover { color: var(--carrot-hi); }
.view-btn.active { background: var(--carrot-btn); color: #fff; box-shadow: 0 4px 12px rgba(255,102,0,.22); }

/* 업체 검색(전문분야·상호명) */
.members-search { position: relative; width: 100%; max-width: 440px; margin: 0 auto 26px; }
.members-search[hidden] { display: none; }
.members-search-ico {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px;
  color: var(--text-mut); pointer-events: none;
}
.members-search-input {
  width: 100%; padding: 13px 16px 13px 44px; border: 1.5px solid var(--line-strong); border-radius: 999px;
  font-size: 16px; font-family: inherit; background: var(--surface); color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
.members-search-input::placeholder { color: var(--text-mut); }
.members-search-input:focus { outline: none; border-color: var(--carrot); box-shadow: 0 0 0 3px var(--carrot-soft); }

/* 지도 보기 */
.member-map-wrap[hidden] { display: none; }
.member-map {
  width: 100%; height: 480px; border-radius: var(--radius);
  border: 1px solid var(--line-strong); box-shadow: var(--shadow); overflow: hidden;
}
.map-note {
  margin-top: 14px; text-align: center; color: var(--text-mut); font-size: 14px;
}
.map-note[hidden] { display: none; }
@media (max-width: 640px) { .member-map { height: 380px; } }

/* 가로 직사각형 카드(모임일정 스타일)를 세로로 쭉 쌓되, 넘치면 그리드 내부 스크롤.
   데스크탑은 여유롭게 노출(max-height 크게) + 스크롤바는 시각적으로 숨김. */
.member-grid {
  display: flex; flex-direction: column; gap: 12px;
  max-width: 860px; margin: 0 auto;
  max-height: 624px; overflow-y: auto; overscroll-behavior: auto;   /* 목록 끝에 닿으면 페이지 스크롤로 자연스럽게 이어짐(스크롤 체이닝 허용) */
  padding: 4px;                                   /* hover 그림자·포커스 링이 잘리지 않도록 여백 */
  scrollbar-width: none; -ms-overflow-style: none; /* Firefox / 구 Edge: 스크롤바 숨김 */
}
.member-grid::-webkit-scrollbar { width: 0; height: 0; display: none; }   /* Chrome / Safari: 스크롤바 숨김 */
.member-card {
  position: relative; background: var(--surface);
  border: 1px solid var(--line);                            /* 중립 테두리(차분하게) */
  border-left: 3px solid var(--accent, var(--line-strong)); /* ← 관리자 지정 색 = 좌측 액센트 바 */
  border-radius: var(--radius); padding: 14px 18px; cursor: pointer;
  transition: transform .18s, box-shadow .18s, border-color .18s;
  display: flex; align-items: center; gap: 14px;   /* 아바타(좌) + 본문(우) 가로 직사각형 배치 */
}
.member-card:hover, .member-card:focus-visible {
  transform: translateY(var(--lift)); box-shadow: 0 8px 22px rgba(20,20,30,.10);
  border-color: var(--accent, var(--carrot)); outline: none;
}
.member-avatar {
  width: 48px; height: 48px; border-radius: 12px; flex: none; display: grid; place-items: center;
  font-weight: 800; font-size: 18px; color: #fff; background: var(--accent, var(--carrot));
}
.member-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
/* 상호명: 절대 가리지 않음. 길면 줄바꿈(말줄임 금지). 등급 뱃지는 이름 옆 인라인. */
.member-name { min-width: 0; font-size: clamp(15px, 1.1vw, 17px); font-weight: 700; color: var(--text);
  line-height: 1.3; overflow-wrap: break-word; }
.member-cat {
  display: inline-block; margin-top: 3px; font-size: 12.5px; font-weight: 600; color: var(--text-dim);
}
.member-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 12px; }
.member-tag {
  display: inline-block; font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px;
  background: var(--accent-soft, var(--carrot-soft)); color: var(--accent, var(--carrot-hi));
}
.member-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin-left: auto; }   /* 액션은 우측 정렬 */
/* 푸터 액션을 모두 가벼운 텍스트 링크로 통일 → 카드 간 배치 일관성 + '명함 보기' 어포던스 */
.member-link, .member-go { font-size: 12px; font-weight: 600; color: var(--text-dim); white-space: nowrap; transition: color .18s; }
.member-link { text-decoration: none; }
.member-link:hover, .member-link:focus-visible { color: var(--accent, var(--carrot)); }
.member-link:focus-visible { outline: 2px solid var(--accent, var(--carrot)); outline-offset: 2px; border-radius: 4px; }
.member-card:hover .member-go, .member-card:focus-visible .member-go { color: var(--accent, var(--carrot)); }
.members-cta { text-align: center; margin-top: 48px; }

/* 업체 디렉터리(businesses.php) 상세 */
.dir-detail { max-width: 760px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line);
  border-left: 3px solid var(--accent, var(--carrot)); border-radius: var(--radius); padding: 28px; }
.dir-back { display: inline-block; margin-bottom: 16px; color: var(--carrot-hi); font-weight: 700; font-size: 14px; }
.dir-detail-name { font-size: 24px; font-weight: 800; color: var(--text); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dir-detail-cat { display: inline-block; margin: 10px 0 0; font-size: 13px; font-weight: 700; padding: 4px 12px;
  border-radius: 999px; background: var(--surface-2); color: var(--text-dim); }
.dir-detail-addr { color: var(--text-dim); font-size: 14.5px; margin: 14px 0 0; }
.dir-detail-desc { color: var(--text); font-size: 15.5px; line-height: 1.85; margin: 16px 0 0; word-break: break-word; }
.dir-detail-links { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }

/* ===== 갤러리 ===== */
.gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
/* 기본 8장만 노출(페이지 높이 제한). '사진 더보기' 시 전체 표시 */
.gallery-grid .gallery-link:nth-child(n+9) { display: none; }
.gallery-grid.show-all .gallery-link:nth-child(n+9) { display: block; }
.gallery-more { text-align: center; margin-top: 24px; }
.gallery-more .gallery-more-btn { width: auto; min-width: 200px; }
.gallery-more:empty { display: none; }
.gallery-item {
  position: relative; aspect-ratio: 1/1; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); cursor: pointer;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s, filter .3s; filter: brightness(.97); }
.gallery-item:hover img { transform: scale(1.08); filter: brightness(1.03); }
.gallery-item .cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 12px; color: #fff; font-size: 13px; font-weight: 600;
  background: linear-gradient(transparent, rgba(0,0,0,.85)); opacity: 1; transform: none; transition: opacity .25s, transform .25s;
}
/* hover 가능한 기기(데스크톱)에서만 숨겼다가 hover로 노출 — 터치 기기는 상시 노출 */
@media (hover: hover) {
  .gallery-item .cap { opacity: 0; transform: translateY(6px); }
  .gallery-item:hover .cap, .gallery-item:focus-within .cap { opacity: 1; transform: translateY(0); }
}

/* ===== 당근 섹션 ===== */
.daangn-section { background: linear-gradient(135deg, rgba(255,102,0,.14), var(--bg-2)); }
.daangn-inner { display: flex; align-items: center; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.daangn-text { flex: 1; min-width: 280px; }
.daangn-text .btn { margin-top: 26px; }
.qr-card {
  background: var(--surface-2); border: 1.5px solid rgba(255,102,0,.35); border-radius: 24px; padding: 26px;
  text-align: center; box-shadow: var(--shadow-orange);
}
.qr-box { width: 200px; height: 200px; display: grid; place-items: center; margin: 0 auto; background: #fff; border-radius: 12px; padding: 10px; }
.qr-box img, .qr-box canvas { width: 180px !important; height: 180px !important; }
.qr-caption { margin-top: 14px; color: var(--text-dim); font-weight: 700; font-size: 14px; }

/* ===== 푸터 ===== */
.site-footer { background: var(--surface-2); color: var(--text-dim); padding: 56px 0 28px; border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-desc { margin-top: 14px; color: var(--text-mut); font-size: 14px; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
.footer-links a { color: var(--text-dim); font-weight: 600; font-size: 14px; }
.footer-links a:hover { color: var(--carrot); }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--text-mut); font-size: 13px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px 20px; flex-wrap: wrap; }
.footer-bottom-links { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.footer-bottom-links a { color: var(--text-mut); font-weight: 600; }
.footer-bottom-links a:hover { color: var(--carrot); }

/* ===== 플로팅 당근 버튼 ===== */
.float-carrot {
  position: fixed; z-index: 90; height: 54px; padding: 0 20px; border-radius: 999px;
  right: max(22px, env(safe-area-inset-right, 0px) + 16px);
  bottom: max(22px, env(safe-area-inset-bottom, 0px) + 16px);
  background: var(--carrot); color: #fff; font-size: 15px; font-weight: 700; display: inline-flex; align-items: center; gap: 8px;
  box-shadow: var(--shadow-orange); opacity: 1; transition: transform .2s, opacity .3s;
}
.float-carrot:hover { transform: scale(1.06); }
.float-carrot.hide { opacity: 0; pointer-events: none; transform: scale(.85); }

/* ===== 모달 ===== */
.modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.72); backdrop-filter: blur(3px); }
.modal-dialog {
  position: relative; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  max-width: 880px; width: 100%; max-height: 90vh; max-height: 90dvh; overflow: auto; box-shadow: var(--shadow); animation: pop .2s ease;
}
@keyframes pop { from { transform: scale(.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-close {
  position: absolute; top: 12px; right: 12px; z-index: 3; background: var(--surface-2); border: 1px solid var(--line);
  width: 44px; height: 44px; border-radius: 50%; font-size: 24px; cursor: pointer; color: var(--text);
  display: grid; place-items: center; line-height: 1;
}
.modal-close:hover { background: var(--line-strong); }
.modal-head { padding: 22px 28px 0; }
.modal-head .member-name { font-size: 23px; }
/* 내 업체일 때만 노출되는 '수정' 진입 버튼 — 전문분야 줄 우측 끝에 작은 알약 형태로 배치 */
.member-cat-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.modal-edit-btn { flex: none; display: inline-flex; align-items: center; gap: 5px; padding: 7px 14px; font-size: 13px; border-radius: 8px; text-decoration: none; white-space: nowrap; }
/* 소유자 모달 액션(내 업체 수정 + 받은 문의) */
.modal-owner-actions { flex: none; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.modal-owner-actions .nav-badge { margin-left: 4px; }
@media (max-width: 600px) {
  .member-cat-row { flex-wrap: wrap; }
  .modal-owner-actions { width: 100%; justify-content: flex-start; margin-top: 4px; }
}
.modal-body-pad { padding: 16px 28px 22px; display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 0 28px; align-items: start; }
.modal-col { min-width: 0; }
.modal-col > .modal-label:first-child { margin-top: 2px; }
.modal-label { font-weight: 700; color: var(--text-dim); font-size: 12px; margin: 11px 0 6px; letter-spacing: .2px; }
.modal-images {
  display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; padding-bottom: 8px; scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent; scroll-padding: 0;
}
.modal-images img {
  flex: 0 0 calc(100% - 26px); scroll-snap-align: start;
  height: 180px; object-fit: contain; background: var(--surface-2);
  border-radius: 10px; border: 1px solid var(--line); cursor: zoom-in;
}
.modal-images img:only-child { flex-basis: 100%; }
.modal-images::-webkit-scrollbar { height: 6px; }
.modal-images::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 999px; }
.modal-images::-webkit-scrollbar-track { background: transparent; }

/* 슬라이더(화살표/도트) — 사진 2장 이상일 때 */
.modal-carousel { position: relative; }
.modal-carousel.has-nav .modal-images { padding-bottom: 0; scrollbar-width: none; }
.modal-carousel.has-nav .modal-images::-webkit-scrollbar { display: none; }
.carousel-track { position: relative; }
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.92); border: 1px solid var(--line-strong); color: var(--text);
  font-size: 22px; line-height: 1; cursor: pointer; display: grid; place-items: center;
  box-shadow: 0 2px 10px rgba(20, 20, 30, 0.2); transition: opacity .15s, border-color .15s, color .15s;
}
.carousel-btn.prev { left: 8px; }
.carousel-btn.next { right: 8px; }
.carousel-btn:hover { border-color: var(--carrot); color: var(--carrot-btn); }
.carousel-btn:disabled { opacity: 0; pointer-events: none; }
.carousel-dots { display: flex; justify-content: center; gap: 2px; margin-top: 6px; }
.carousel-dot {
  box-sizing: content-box; width: 8px; height: 8px; padding: 10px 8px; border: 0;
  background: var(--line-strong); background-clip: content-box; cursor: pointer;
  border-radius: 999px; transition: background .15s, width .15s;
}
.carousel-dot.active { background: var(--carrot-btn); background-clip: content-box; width: 20px; }
.modal-card-img { width: 100%; height: auto; max-height: 180px; object-fit: contain; background: var(--surface-2); border-radius: 12px; border: 1px solid var(--line); cursor: zoom-in; }
@media (max-width: 720px) {
  .modal-dialog { max-width: 540px; }
  .modal-body-pad { grid-template-columns: 1fr; gap: 0; padding: 16px 18px 22px; }
  .modal-head { padding: 20px 18px 0; }
  .modal-card-img { max-height: 170px; }
  .modal-images img { height: 190px; }
  .modal-desc { max-height: 40dvh; }
}
.modal-addr { color: var(--text); font-weight: 600; margin-bottom: 10px; }
.modal-map { width: 100%; height: 190px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); }
.map-fallback { padding: 18px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; text-align: center; }
.modal-actions { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }

/* ===== 폼 페이지 (회원가입/로그인/업체등록/관리자) ===== */
.form-page { min-height: 100vh; min-height: 100dvh; padding: 110px 0 60px; }
.form-card {
  background: var(--surface); max-width: 520px; margin: 0 auto; border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 40px 36px; border: 1px solid var(--line);
}
.form-card h1 { font-size: 26px; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.form-card .lead { color: var(--text-dim); margin-bottom: 26px; font-size: 15px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 7px; color: var(--text); }
.field .req { color: var(--carrot); }
.field input[type=text], .field input[type=email], .field input[type=tel],
.field input[type=password], .field input[type=url], .field input[type=file], .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line-strong); border-radius: 10px;
  font-size: 16px; font-family: inherit; transition: border-color .15s; background: var(--bg-2); color: var(--text);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-mut); }
.field input[readonly] { background: var(--surface-2); color: var(--text-mut); cursor: not-allowed; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--carrot); outline-offset: 1px; border-color: var(--carrot); }
.field input[type=file] { padding: 9px 12px; }
.field .hint { color: var(--text-mut); font-size: 12.5px; margin-top: 6px; }
.form-actions { margin-top: 26px; }
/* 큰 제출 버튼(가입/로그인/저장/등록)만 풀폭. 관리자/목록의 작은 버튼·취소버튼은 자동폭 유지 */
.form-actions > .btn-lg { width: 100%; }

/* 넓은 관리 카드 (내 업체 관리 / 받은 문의) */
.form-card-wide { max-width: 820px; }

/* ===== 계정 페이지 공용 상단 네비(마이페이지 탭바) ===== */
.account-nav { display: flex; align-items: center; gap: 10px; max-width: 820px; margin: 0 auto 16px; }
.account-nav--narrow { max-width: 520px; }
.account-nav .acc-home, .account-nav .acc-logout, .account-nav .acc-link { flex: none; font-size: 13px; font-weight: 700; color: var(--text-mut); text-decoration: none; white-space: nowrap; }
.account-nav .acc-home:hover, .account-nav .acc-logout:hover, .account-nav .acc-link:hover { color: var(--carrot-hi, #ED5A00); }
.acc-side { flex: none; display: flex; align-items: center; gap: 12px; }
.acc-side .acc-link.is-active { color: var(--carrot-hi, #ED5A00); text-decoration: underline; text-underline-offset: 3px; }
.acc-tabs { display: flex; gap: 6px; flex: 1; min-width: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 2px; scrollbar-width: thin; }
.acc-tab { flex: none; white-space: nowrap; font-size: 13px; font-weight: 700; color: var(--text-dim); text-decoration: none;
  padding: 8px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); transition: border-color .15s, color .15s, background .15s; }
.acc-tab:hover { border-color: var(--carrot); color: var(--carrot-hi, #ED5A00); }
.acc-tab.is-active { background: var(--carrot); border-color: var(--carrot); color: #fff; }
.acc-tab.is-active .nav-badge { background: #fff; color: var(--carrot); }
.acc-tab.is-active .beta-tag { background: #fff; color: var(--carrot); }
@media (max-width: 600px) {
  .account-nav { gap: 8px; }
  .account-nav .acc-home, .account-nav .acc-logout { font-size: 12.5px; }
}

/* 작은 버튼 / 보조 버튼 / 태그 (styles.css 폼페이지 공용) */
.btn-sm { padding: 7px 14px; font-size: 13px; border-radius: 9px; }
.btn-soft { background: var(--surface-2); color: var(--text); border: 1px solid var(--line-strong); }
.btn-soft:hover { border-color: var(--carrot); color: var(--carrot-hi); }
.tag {
  display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700;
  background: var(--surface-2); color: var(--text-dim); border: 1px solid var(--line-strong);
}
.tag-ok { background: rgba(34,160,90,.12); color: #1f9254; border-color: rgba(34,160,90,.3); }
.tag-pending { background: rgba(255,102,0,.12); color: var(--carrot-hi); border-color: rgba(255,102,0,.3); }
.tag-hidden { background: var(--surface-2); color: var(--text-mut); }
.tag-collab { background: rgba(54,110,255,.12); color: #2f63d6; border-color: rgba(54,110,255,.3); }
.tag-product { background: rgba(255,102,0,.12); color: var(--carrot-hi); border-color: rgba(255,102,0,.3); }

/* 현재/기존 이미지 미리보기 (업체 수정) */
.current-img { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.current-img img { width: 72px; height: 72px; object-fit: contain; background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; }
.existing-imgs { display: flex; flex-wrap: wrap; gap: 12px; }
.existing-img { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-dim); cursor: pointer; }
.existing-img img { width: 90px; height: 90px; object-fit: cover; border: 1px solid var(--line-strong); border-radius: 8px; }
.del-check { display: inline-flex; align-items: center; gap: 4px; }

/* 내 업체 관리 목록 */
.biz-manage-list { display: flex; flex-direction: column; gap: 12px; }
.biz-manage-item { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
.biz-manage-thumb { width: 56px; height: 56px; flex: none; border-radius: 10px; overflow: hidden; background: var(--surface-2); display: flex; align-items: center; justify-content: center; }
.biz-manage-thumb img { width: 100%; height: 100%; object-fit: cover; }
.biz-manage-thumb .no-thumb { font-size: 24px; }
.biz-manage-info { flex: 1; min-width: 0; }
.biz-manage-title { font-weight: 800; color: var(--text); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.biz-manage-addr { color: var(--text-mut); font-size: 13px; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.biz-manage-actions { display: flex; gap: 8px; flex: none; flex-wrap: wrap; justify-content: flex-end; }
.biz-manage-actions .btn { width: auto; }
@media (max-width: 600px) {
  .biz-manage-item { flex-wrap: wrap; }
  .biz-manage-actions { width: 100%; justify-content: flex-start; }
  /* 모바일에선 주소를 한 줄 자르지 말고 전부 보여줌 */
  .biz-manage-addr { white-space: normal; overflow: visible; text-overflow: clip; }
  .biz-manage-info { flex-basis: 60%; }
}

/* ===== 나와 맞는 업체 (매칭) ===== */
.biz-manage-group { display: flex; flex-direction: column; gap: 0; scroll-margin-top: 90px; }
/* 방금 저장한 업체 잠깐 강조 */
.biz-manage-group.is-saved .biz-manage-item { animation: biz-saved-flash 2.4s ease-out; }
@keyframes biz-saved-flash { 0%, 12% { box-shadow: 0 0 0 2px var(--carrot); } 100% { box-shadow: 0 0 0 2px transparent; } }
.match-preview { padding: 12px 14px 14px; border: 1px solid var(--line); border-top: none; border-radius: 0 0 var(--radius) var(--radius); background: var(--surface); margin-top: -1px; }
.match-preview-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 700; font-size: 13px; color: var(--text-dim); margin-bottom: 10px; }
.match-more { font-size: 12.5px; font-weight: 700; color: var(--carrot); text-decoration: none; white-space: nowrap; }
.match-more:hover { text-decoration: underline; }
.biz-manage-group .biz-manage-item { border-radius: var(--radius) var(--radius) 0 0; }
/* 미리보기가 안 붙는(매칭 없는) 업체 카드는 모서리 원래대로 */
.biz-manage-group:not(:has(.match-preview)) .biz-manage-item { border-radius: var(--radius); }

/* 전용 페이지 블록 */
.match-block { margin: 22px 0; padding-top: 18px; border-top: 1px solid var(--line); }
.match-block:first-of-type { border-top: none; padding-top: 0; }
.match-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.match-mine { font-size: 18px; font-weight: 800; color: var(--text); margin: 0; }
.match-mine-label { font-size: 12.5px; color: var(--text-mut); }
/* 베타 표기 배지 */
.beta-tag { display: inline-block; vertical-align: middle; font-size: 10px; font-weight: 800; letter-spacing: .3px; color: #fff; background: var(--carrot); border-radius: 5px; padding: 2px 6px; margin-left: 7px; line-height: 1.5; }
.user-menu-list .beta-tag { margin-left: 5px; }
.match-note { color: var(--text-mut); font-size: 12.5px; margin-top: 16px; }
.match-empty { color: var(--text-mut); font-size: 13.5px; padding: 6px 0; }

/* 매칭 카드 그리드 (세로형 카드 + 신뢰 배지/키워드 칩) */
.match-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(205px, 1fr)); gap: 12px; align-items: start; }
.match-card { display: flex; flex-direction: column; gap: 8px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); text-decoration: none; transition: border-color .15s, transform .15s, box-shadow .15s; }
.match-card:hover { border-color: var(--carrot); transform: translateY(-2px); box-shadow: var(--shadow); }
.match-card-top { display: flex; align-items: center; gap: 10px; }
.match-thumb { width: 48px; height: 48px; flex: none; border-radius: 11px; overflow: hidden; background: var(--surface-2); display: flex; align-items: center; justify-content: center; }
.match-thumb img { width: 100%; height: 100%; object-fit: cover; }
.match-noimg { font-size: 22px; }
.match-id { min-width: 0; flex: 1; }
.match-name { font-weight: 700; color: var(--text); font-size: 14.5px; display: flex; align-items: center; gap: 6px; min-width: 0; }
.match-name-txt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match-name .grade-badge { flex: none; margin-left: 0; }   /* 이름이 길어도 등급 배지는 잘리지 않게 */
.match-cat { color: var(--text-mut); font-size: 12px; margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match-meta { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.match-near { font-size: 11px; font-weight: 700; color: #1E7E45; background: rgba(39,174,96,.10); border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.match-near-soft { color: var(--text-dim); background: var(--surface-2); }
.match-kw { font-size: 11px; font-weight: 700; color: var(--carrot-hi, #ED5A00); background: var(--carrot-soft, rgba(255,102,0,.08)); border-radius: 6px; padding: 2px 7px; white-space: nowrap; }
/* 2단계(AI 설명)가 들어올 자리 — 1단계엔 비워둠(미렌더) */
.match-why { margin-top: 2px; padding-top: 8px; border-top: 1px dashed var(--line); font-size: 12.5px; line-height: 1.5; color: var(--text-dim); }
/* 빈/적은 데이터 상태 */
.match-empty-box { text-align: center; padding: 28px 18px; border: 1px dashed var(--line-strong); border-radius: 14px; background: var(--bg-2); }
.match-empty-ico { font-size: 28px; line-height: 1; }
.match-empty-title { font-weight: 800; color: var(--text); font-size: 15px; margin: 8px 0 2px; }
.match-empty-sub { color: var(--text-mut); font-size: 13px; margin: 0; }
.match-cta-btn { display: inline-block; margin-top: 14px; }
/* 재방문 유도 배지(마지막 확인 이후 새 업체 합류) */
.match-nudge { display: flex; align-items: center; gap: 10px; padding: 11px 15px; margin: 0 0 18px;
  background: var(--carrot-soft, rgba(255,102,0,.08)); border: 1px solid var(--line);
  border-left: 3px solid var(--carrot); border-radius: 12px;
  color: var(--text-dim); font-size: 13.5px; line-height: 1.5; }
.match-nudge b { color: var(--text); }
.match-nudge-ico { font-size: 18px; line-height: 1; flex: none; }
/* 'AI 추천 받기' 펼치기 전 CTA — 버튼 하나로 목록 + AI 설명을 함께 */
.match-reveal { text-align: center; padding: 30px 20px; border: 1px dashed var(--line-strong); border-radius: 16px; background: var(--bg-2); }
.match-reveal-ico { font-size: 32px; line-height: 1; }
.match-reveal-title { font-weight: 800; color: var(--text); font-size: 16px; margin: 10px 0 16px; }
.match-reveal-title b { color: var(--carrot-hi, #ED5A00); }
.match-reveal-btn { display: inline-block; }
.match-reveal-sub { color: var(--text-mut); font-size: 13px; margin: 14px 0 0; line-height: 1.5; }
.match-reveal-sub b { color: var(--text-dim); }

/* 매칭 모달 — 기존 .modal-dialog(880px) 안 건드리고 데스크톱에서 이것만 확대 */
.modal-matches-dialog { max-width: 1080px; }
.modal-matches-body { display: block; padding: 8px 28px 24px; }
.modal-matches-body .match-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
@media (max-width: 720px) {
  .modal-matches-dialog { max-width: 540px; }
  .modal-matches-body { padding: 6px 16px 18px; }
}

/* 등록 안내(매칭 품질) 힌트·팝업 */
.hint-match { font-size: 12.5px; color: var(--text-dim); background: var(--carrot-soft, rgba(255,102,0,.08)); border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; margin-top: 6px; line-height: 1.55; }
.hint-match b { color: var(--text); }
.mg-lead { color: var(--text-dim); font-size: 14px; line-height: 1.6; margin: 0 0 12px; }
.mg-list { margin: 0 0 4px; padding-left: 18px; display: flex; flex-direction: column; gap: 10px; }
.mg-list li { font-size: 13.5px; color: var(--text); line-height: 1.55; }
.mg-ex { color: var(--text-mut); font-size: 12.5px; }

/* 받은 문의함 */
.inq-summary { display: inline-flex; align-items: center; gap: 7px; margin: -2px 0 16px; font-size: 13.5px; color: var(--text-dim); }
.inq-summary .nav-badge { background: var(--carrot-btn); }
.inq-summary .inq-summary-zero { color: var(--text-mut); }
.inq-filters { display: flex; gap: 6px; margin-bottom: 20px; flex-wrap: wrap; }
.inq-filters .view-btn { text-decoration: none; }
.inq-filters .view-btn .vb-count { opacity: .7; font-weight: 700; margin-left: 3px; }
.inq-list { display: flex; flex-direction: column; gap: 14px; }
.inq-item { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); scroll-margin-top: 90px; }
.inq-item.is-new { border-left: 4px solid var(--carrot-btn); background: var(--carrot-soft, rgba(255,102,0,.05)); }
.inq-item.is-done { opacity: .72; }
.inq-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.inq-biz { font-weight: 700; color: var(--text-dim); font-size: 13px; }
.inq-date { color: var(--text-mut); font-size: 12.5px; margin-left: auto; }
.inq-from { font-size: 14px; color: var(--text); margin-bottom: 6px; }
.inq-from a { color: var(--carrot-hi); }
.inq-msg { color: var(--text-dim); font-size: 14.5px; line-height: 1.7; white-space: pre-line; word-break: break-word; overflow-wrap: anywhere; margin-bottom: 12px; }
.inq-actions .btn { width: auto; }

/* ===== 메인 공고·소식 미리보기 (테마별) ===== */
.section-sub .more-link { color: var(--carrot-hi); font-weight: 700; margin-left: 6px; white-space: nowrap; }
/* minmax(0,1fr): 긴 제목이 칼럼을 밀어내 3번째 칼럼이 찌부러지는 것 방지(강제 균등 3칼럼) */
.notice-preview-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.notice-preview-card {
  min-width: 0; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; box-shadow: var(--shadow);
}
.np-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 2px solid var(--line); }
.np-head h3 { font-size: 16px; font-weight: 800; color: var(--text); }
.np-more { font-size: 13px; font-weight: 700; color: var(--carrot-hi); white-space: nowrap; }
.np-list { list-style: none; display: flex; flex-direction: column; }
.np-list li { border-bottom: 1px solid var(--line); }
.np-list li:last-child { border-bottom: none; }
.np-list li a { display: flex; align-items: center; gap: 10px; padding: 11px 2px; color: var(--text); }
.np-list li a:hover .np-title { color: var(--carrot-hi); }
.np-title { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.np-date { flex: none; color: var(--text-mut); font-size: 12.5px; }
.np-empty { color: var(--text-mut); font-size: 14px; padding: 16px 2px; }
@media (max-width: 860px) { .notice-preview-grid { grid-template-columns: 1fr; } }

/* ===== 공고/소식 페이지 (notices.php) ===== */
.notice-header { background: var(--surface); border-bottom: 1px solid var(--line); padding: 90px 0 26px; }
.notice-home { color: var(--carrot-hi); font-weight: 700; font-size: 14px; }
.notice-header h1 { font-size: 28px; font-weight: 800; color: var(--text); margin: 12px 0 6px; }
.notice-lead { color: var(--text-dim); font-size: 15px; }
.notice-main { padding: 26px 0 70px; min-height: 50vh; }
.notice-tabs { display: flex; gap: 6px; border-bottom: 2px solid var(--line); margin-bottom: 22px; flex-wrap: wrap; }
.notice-tab { padding: 12px 22px; font-weight: 700; color: var(--text-dim); border-bottom: 3px solid transparent; margin-bottom: -2px; transition: color .15s, border-color .15s; }
.notice-tab.active { color: var(--carrot-hi); border-bottom-color: var(--carrot-btn); }
.notice-tab:hover { color: var(--carrot-hi); }

/* 신선도 표시 · 제목 검색 · NEW 배지 */
.notice-freshness { color: var(--text-mut); font-size: 13px; margin: 0 0 14px; }
.notice-freshness.is-warn { color: #C62828; font-weight: 600; }
.notice-search { display: flex; gap: 8px; margin-bottom: 18px; }
.notice-search input[type="search"] { flex: 1; min-width: 0; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 10px; font-size: 14px; background: var(--surface); color: var(--text); }
.notice-search input[type="search"]:focus-visible { outline: 2px solid var(--carrot); outline-offset: 1px; border-color: var(--carrot); }
.notice-search .btn { width: auto; flex: none; }
.notice-new { flex: none; display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 6px; background: var(--carrot-btn); color: #fff; font-size: 10.5px; font-weight: 800; letter-spacing: .02em; vertical-align: middle; }

/* 공고 목록 — 불릿 없는 카드형 행(좌측 오렌지 액센트 + hover lift + 셰브론) */
.notice-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.notice-list > li { list-style: none; }
.notice-row {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.notice-row::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--carrot-btn); opacity: 0; transition: opacity .15s ease;
}
.notice-row:hover { border-color: var(--carrot); box-shadow: 0 6px 18px rgba(0,0,0,.06); transform: translateY(-1px); }
.notice-row:hover::before { opacity: 1; }
.notice-row-link { display: flex; align-items: center; gap: 14px; padding: 16px 18px; color: var(--text); }
.notice-row-title { flex: 1; min-width: 0; font-weight: 600; font-size: 15.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notice-row:hover .notice-row-title { color: var(--carrot-hi); }
.notice-row-date { flex: none; color: var(--text-mut); font-size: 13px; font-variant-numeric: tabular-nums; }
.notice-row-link::after { content: "›"; flex: none; color: var(--text-mut); font-size: 18px; line-height: 1; transition: transform .15s ease, color .15s ease; }
.notice-row:hover .notice-row-link::after { color: var(--carrot-hi); transform: translateX(3px); }

.notice-paging { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 28px; }
.notice-paging .page-btn { min-width: 40px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; text-align: center; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--text-dim); font-size: 14px; font-weight: 600; }
.notice-paging .page-btn:hover { border-color: var(--carrot); color: var(--carrot-hi); }
.notice-paging .page-btn.active { background: var(--carrot-btn); border-color: var(--carrot-btn); color: #fff; }

.notice-detail { max-width: 860px; margin: 0 auto; }
.notice-detail-title { font-size: 23px; font-weight: 800; color: var(--text); line-height: 1.4; }
.notice-detail-meta { display: flex; gap: 12px; color: var(--text-mut); font-size: 13.5px; margin: 10px 0 20px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.notice-attachments { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 22px; }
.notice-attachments strong { display: block; margin-bottom: 8px; color: var(--text); font-size: 14px; }
.notice-attachments ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.notice-attachments a { color: var(--carrot-hi); font-weight: 600; font-size: 14.5px; }
.notice-attachments a:hover { text-decoration: underline; }
.notice-att-note { color: var(--text-mut); font-size: 12.5px; margin-top: 8px; }
.notice-body { color: var(--text); font-size: 15.5px; line-height: 1.85; word-break: break-word; }
.notice-body p { margin: 0 0 12px; }
.notice-body img { max-width: 100%; height: auto; }
.notice-body iframe, .notice-body embed, .notice-body video { max-width: 100%; }
/* 정부 원문의 넓은 표는 모바일에서 가로 스크롤(레이아웃 깨짐 방지) */
.notice-body table { max-width: 100%; border-collapse: collapse; display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.notice-body td, .notice-body th { border: 1px solid var(--line-strong); padding: 6px 10px; }
.notice-body a { color: var(--carrot-hi); text-decoration: underline; }
.notice-detail-foot { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); }
.notice-detail-foot .btn { width: auto; }
.notice-foot { margin-top: 36px; text-align: center; }
.notice-foot a { color: var(--carrot-hi); font-weight: 700; }
@media (max-width: 600px) {
  .notice-header { padding-top: 80px; }
  .notice-row-link { padding: 14px 14px; gap: 10px; }
  .notice-row-link::after { display: none; }   /* 좁은 화면: 날짜 우선, 셰브론 숨김 */
  .notice-row-date { font-size: 12px; }
}
.form-foot { text-align: center; margin-top: 18px; font-size: 14px; color: var(--text-dim); }
.form-foot a { color: var(--carrot-hi); font-weight: 700; }
.form-divider { border: none; border-top: 1px solid var(--line); margin: 26px 0 18px; }
.alert { padding: 12px 16px; border-radius: 10px; font-size: 14px; margin-bottom: 20px; }
.alert-error { background: rgba(214,40,40,.08); color: #C62828; border: 1px solid rgba(214,40,40,.28); }
.alert-ok { background: var(--carrot-soft); color: var(--carrot-hi); border: 1px solid rgba(255,102,0,.3); }
/* 폼 필드 단위 에러 (signup 등) */
.field-err { color: #C62828; font-size: 12.5px; font-weight: 600; margin-top: 5px; }
.field.has-err input, .field.has-err textarea, .field.has-err select,
input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] { border-color: #C62828; }
input[aria-invalid="true"]:focus-visible, textarea[aria-invalid="true"]:focus-visible { outline-color: #C62828; }

/* ============================================================
   신규 컴포넌트 (프론트 emit 클래스명) — 소프트 라이트 톤
   ============================================================ */

/* ===== 멤버 카드 로고 / 등급 뱃지 ===== */
.member-logo {
  width: 46px; height: 46px; border-radius: 12px; flex: none;
  object-fit: contain; background: #fff; border: 1px solid var(--line);
  padding: 4px;
}
.grade-badge {
  display: inline-flex; align-items: center; gap: 4px; vertical-align: middle;
  margin-left: 10px;
  font-size: 11.5px; font-weight: 800; padding: 3px 10px; border-radius: 999px;
  border: 1px solid transparent; white-space: nowrap; line-height: 1.4;
}
.grade-badge.is-gold { background: rgba(245,158,11,.14); color: #B45309; border-color: rgba(245,158,11,.38); }
.grade-badge.is-green { background: rgba(39,174,96,.12); color: #1E7E45; border-color: rgba(39,174,96,.34); }

/* ===== 모달: 로고 / 회사소개 / SNS / 문의 ===== */
.modal-logo {
  width: 60px; height: 60px; border-radius: 14px; flex: none;
  object-fit: contain; background: #fff; border: 1px solid var(--line); padding: 5px;
}
.modal-desc {
  white-space: pre-line; color: var(--text); font-size: 14.5px; line-height: 1.6;
  margin-bottom: 2px; background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 10px; padding: 11px 13px; max-height: 160px; overflow: auto;
}
.modal-desc.is-clamped { box-shadow: inset 0 -18px 14px -14px var(--surface-2); }   /* 잘린 글 하단 페이드 */
.modal-label-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.desc-more-btn {
  font-size: 12px; font-weight: 700; color: var(--carrot-hi); background: none; border: none;
  cursor: pointer; padding: 2px 4px; letter-spacing: normal;
}
.desc-more-btn:hover { text-decoration: underline; }
.desc-more-btn[hidden] { display: none; }
.modal-sns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.modal-addr { margin-top: 2px; }
.sns-link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  padding: 8px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 700;
  background: var(--surface); color: var(--text-dim); border: 1.5px solid var(--line-strong);
  transition: border-color .15s, color .15s, background .15s;
}
.sns-link:hover { border-color: var(--carrot); color: var(--carrot-hi); background: var(--carrot-soft); }

.modal-inquiry { margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--line); }
.inquiry-login-note { color: var(--text-dim); font-size: 14px; }
.inquiry-login-note a { color: var(--carrot-btn); font-weight: 700; }
.inquiry-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 12px; font-weight: 700; font-size: 14.5px; cursor: pointer;
  background: var(--surface-2); color: var(--text); border: 1.5px solid var(--line-strong);
  transition: border-color .15s, color .15s, background .15s; margin-right: 8px; margin-bottom: 8px;
}
.inquiry-toggle:hover { border-color: var(--carrot); color: var(--carrot-hi); }
.inquiry-toggle.active { background: var(--carrot-btn); border-color: var(--carrot-btn); color: #fff; }
.inquiry-form { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.inquiry-form[hidden] { display: none; }
.inquiry-form input[type=text], .inquiry-form input[type=email], .inquiry-form input[type=tel],
.inquiry-form textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line-strong); border-radius: 10px;
  font-size: 16px; font-family: inherit; transition: border-color .15s; background: var(--bg-2); color: var(--text);
}
.inquiry-form input::placeholder, .inquiry-form textarea::placeholder { color: var(--text-mut); }
.inquiry-form input:focus, .inquiry-form textarea:focus { outline: 2px solid var(--carrot); outline-offset: 1px; border-color: var(--carrot); }
.inquiry-form textarea { min-height: 110px; resize: vertical; }
.inquiry-msg { font-size: 14px; font-weight: 600; margin-top: 4px; }
.inquiry-msg.is-ok { color: #1E7E45; }
.inquiry-msg.is-err { color: #C62828; }

/* ===== 제휴·제안 (CTA 버튼 + 모달 폼) ===== */
.partnership-cta { text-align: center; }
.modal-form-dialog { max-width: 620px; }
.partner-form { padding: 18px 28px 26px; display: flex; flex-direction: column; gap: 15px; }
.pf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pf-field { display: flex; flex-direction: column; gap: 6px; }
.pf-label { font-size: 12.5px; font-weight: 700; color: var(--text-dim); letter-spacing: .2px; }
.pf-label-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pf-count { font-size: 11.5px; font-weight: 600; color: var(--text-mut); }
.req { color: var(--carrot-hi); }
.pf-optional { color: var(--text-mut); font-weight: 600; }
.partner-form input, .partner-form textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line-strong); border-radius: 10px;
  font-size: 16px; font-family: inherit; transition: border-color .15s; background: var(--bg-2); color: var(--text);
}
.partner-form input::placeholder, .partner-form textarea::placeholder { color: var(--text-mut); }
.partner-form input:focus, .partner-form textarea:focus { outline: 2px solid var(--carrot); outline-offset: 1px; border-color: var(--carrot); }
.partner-form textarea { min-height: 116px; resize: vertical; }
.pf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
/* 파일 첨부: 네이티브 input 은 화면에서 숨기되 포커스는 가능 */
.pf-file { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pf-file-input { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.pf-file-btn { width: auto; cursor: pointer; }
.pf-file-input:focus-visible + .pf-file-btn { outline: 2px solid var(--carrot); outline-offset: 2px; }
.pf-file-chip {
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%;
  padding: 6px 6px 6px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line);
  font-size: 13px; color: var(--text);
}
.pf-file-chip[hidden] { display: none; }
.pf-file-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.pf-file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 200px; }
.pf-file-x { width: 22px; height: 22px; border-radius: 50%; border: none; background: var(--line); color: var(--text); font-size: 14px; line-height: 1; cursor: pointer; flex: none; }
.pf-file-x:hover { background: var(--line-strong); }
.pf-hint { font-size: 12.5px; color: var(--text-mut); margin: 2px 0 0; }
.partner-msg { font-size: 14px; font-weight: 600; margin: 0; min-height: 1.2em; }
.partner-msg.is-ok { color: #1E7E45; }
.partner-msg.is-err { color: #C62828; }
.pf-actions { justify-content: flex-end; margin-top: 6px; }
.pf-actions .btn { width: auto; }
@media (max-width: 620px) {
  .pf-grid { grid-template-columns: 1fr; }
  .partner-form { padding: 16px 18px 22px; }
  .pf-actions { justify-content: stretch; }
  .pf-actions .btn { flex: 1; }
}

/* ===== 라이트박스 ===== */
.lightbox {
  position: fixed; inset: 0; z-index: 250; display: none;
  align-items: center; justify-content: center; padding: 24px;
}
.lightbox.open, .lightbox[aria-hidden="false"] { display: flex; }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.78); backdrop-filter: blur(3px); }
.lightbox-img {
  position: relative; z-index: 2; max-width: 90vw; max-height: 90vh;
  object-fit: contain; border-radius: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.5);
  transform-origin: center center; transition: transform .18s ease; will-change: transform; touch-action: none;
}
.lightbox.is-zoomed .lightbox-img { cursor: grab; }
.lightbox.is-dragging .lightbox-img { transition: none; cursor: grabbing; }
.lightbox-toolbar {
  position: absolute; top: max(14px, env(safe-area-inset-top, 0px) + 8px); left: 50%; transform: translateX(-50%); z-index: 4;
  display: flex; gap: 4px; padding: 6px; border-radius: 999px;
  background: rgba(20,20,20,.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.14);
}
.lb-btn {
  width: 44px; height: 44px; border-radius: 50%; border: none; cursor: pointer;
  background: transparent; color: #fff; font-size: 20px; line-height: 1;
  display: grid; place-items: center; transition: background .15s;
}
.lb-btn:hover { background: rgba(255,255,255,.18); }
.lb-btn:active { background: rgba(255,255,255,.28); }
.lightbox-close {
  position: absolute; top: max(18px, env(safe-area-inset-top, 0px) + 10px); right: max(20px, env(safe-area-inset-right, 0px) + 12px); z-index: 3;
  width: 44px; height: 44px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,.16); color: #fff; font-size: 26px; line-height: 1;
  display: grid; place-items: center; transition: background .15s;
}
.lightbox-close:hover { background: rgba(255,255,255,.3); }
/* 이전/다음 네비 + 카운터 — 여러 장(묶음)일 때만 노출 */
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; display: none;
  width: 52px; height: 52px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,.16); color: #fff; font-size: 30px; line-height: 1;
  place-items: center; transition: background .15s;
}
.lightbox-nav.prev { left: max(16px, env(safe-area-inset-left, 0px) + 8px); }
.lightbox-nav.next { right: max(16px, env(safe-area-inset-right, 0px) + 8px); }
.lightbox-nav:hover { background: rgba(255,255,255,.3); }
.lightbox.is-group .lightbox-nav { display: grid; }
.lightbox-counter {
  position: absolute; bottom: max(16px, env(safe-area-inset-bottom, 0px) + 10px); left: 50%; transform: translateX(-50%); z-index: 3;
  display: none; padding: 5px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 700; letter-spacing: .02em;
  background: rgba(20,20,20,.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #fff; border: 1px solid rgba(255,255,255,.14);
}
.lightbox.is-group .lightbox-counter { display: block; }
/* 작은 화면: 라이트박스 이미지가 화면을 더 넉넉히 채우도록 */
@media (max-width: 480px) {
  .lightbox { padding: 14px; }
  .lightbox-img { max-width: 95vw; max-height: 88vh; }
  .lightbox-nav { width: 44px; height: 44px; font-size: 26px; background: rgba(255,255,255,.22); }
  .lightbox-nav.prev { left: 8px; }
  .lightbox-nav.next { right: 8px; }
}

/* ===== 회사 소개 전체보기 팝업 (모달 위 오버레이) ===== */
.desc-popup {
  position: fixed; inset: 0; z-index: 260; display: none;   /* 라이트박스(250) 위, 스킵링크(300) 아래 */
  align-items: center; justify-content: center; padding: 20px;
}
.desc-popup.open, .desc-popup[aria-hidden="false"] { display: flex; }
.desc-popup-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.55); backdrop-filter: blur(2px); overscroll-behavior: contain; }
.desc-popup-panel {
  position: relative; z-index: 2; width: min(620px, 92vw); max-height: 82vh; max-height: 82dvh;
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg); box-shadow: 0 20px 60px rgba(0,0,0,.28); padding: 24px; animation: pop .2s ease;
}
.desc-popup-title { font-size: 18px; font-weight: 800; color: var(--text); margin: 0 36px 14px 0; line-height: 1.4; word-break: keep-all; }
.desc-popup-body {
  white-space: pre-line; line-height: 1.75; font-size: 15px; color: var(--text);
  overflow: auto; word-break: break-word; overflow-wrap: anywhere; padding-right: 4px;
}
.desc-popup-close {
  position: absolute; top: 14px; right: 14px; z-index: 3; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font-size: 22px; line-height: 1;
  cursor: pointer; display: grid; place-items: center; transition: background .15s;
}
.desc-popup-close:hover { background: var(--line-strong); }

/* ===== 후기 섹션 ===== */
#reviews .review-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 20px;
}
.review-card {
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--carrot); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); transition: transform .2s, border-color .2s, box-shadow .2s;
  display: flex; flex-direction: column; gap: 10px;
}
.review-card:hover { transform: translateY(var(--lift)); border-color: var(--carrot); box-shadow: 0 10px 26px rgba(255,102,0,.16); }
.review-author { font-weight: 800; color: var(--text); font-size: 15.5px; }
.review-body {
  color: var(--text-dim); font-size: 14.5px; line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden;
}
.review-link { color: var(--carrot-hi); font-weight: 700; font-size: 14px; margin-top: auto; align-self: flex-start; }
.review-link:hover { text-decoration: underline; }

/* ===== 갤러리 링크 래퍼 ===== */
.gallery-link { display: block; cursor: pointer; border-radius: var(--radius); width: 100%; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: inherit; }
.gallery-link:focus-visible { outline: 2px solid var(--carrot); outline-offset: 2px; }

/* ===== 반응형 ===== */
@media (min-width: 1280px) {
  .gallery-grid { gap: 24px; }
}
/* 업체 카드: 가로 직사각형 세로 리스트(내부 스크롤). 모바일은 스크롤 높이를 화면 비율로 축소 */
@media (max-width: 767px) {
  .member-grid { max-height: 72vh; gap: 10px; }
  .member-card { padding: 12px 14px; gap: 12px; }
  .member-avatar { width: 44px; height: 44px; font-size: 16px; }
}
@media (max-width: 640px) {
  /* 1fr = minmax(auto,1fr) 라서 긴 후기 카드의 콘텐츠 최소폭이 트랙을 화면 밖으로 늘려
     가로 스크롤이 생김 → minmax(0,1fr) 로 트랙이 0까지 줄 수 있게 해 본문이 줄바꿈되도록. */
  #reviews .review-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; }
}
/* 갤러리 반응형: 업체 그리드와 동일 단계(태블릿 3열·모바일 2열·초소형 1열) */
@media (max-width: 1023px) { .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px)  { .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 359px)  { .gallery-grid { grid-template-columns: 1fr; } }   /* 360px↑ 폰은 2열 */
@media (max-width: 720px) {
  .nav { position: fixed; top: 68px; left: 0; right: 0; background: var(--surface); box-shadow: var(--shadow); flex-direction: column;
    align-items: stretch; gap: 0; padding: 8px 0; transform: translateY(-130%); visibility: hidden;
    transition: transform .3s, visibility 0s .3s; border-bottom: 1px solid var(--line); }
  .nav.open { transform: translateY(0); visibility: visible; transition: transform .3s, visibility 0s; }
  .auth-area { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-login { padding: 14px 24px; }
  .nav a { padding: 14px 24px; border-bottom: 1px solid var(--line); }
  .nav-cta { margin: 10px 24px; text-align: center; border-radius: 12px; }
  .nav-toggle { display: flex; }
  .daangn-inner { flex-direction: column; text-align: center; }
  .daangn-text .section-head, .section-head.left { text-align: center; }
  /* 히어로: 풀스크린 강제 해제 → 자연 높이 + 헤더 여백 (정보 과부하/스크롤 유도 개선) */
  .hero { min-height: auto; padding: 104px 0 60px; align-items: flex-start; }
  .hero-content { padding-top: 0; padding-bottom: 0; }
  /* 신뢰 숫자: 좁은 폭에서 라벨이 길어 깨지면 2줄 허용, 구분선 유지 */
  .hero-stats { gap: 12px; }
  .hero-stats li + li { padding-left: 12px; }
  /* 긴 CTA가 가로 오버플로 내지 않게 줄바꿈 허용 */
  .btn { white-space: normal; }
}

/* ===== 모바일 디테일 (작은 폰) ===== */
@media (max-width: 480px) {
  /* CTA 풀폭 스택 — 어중간한 좌측 정렬 방지 */
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .members-cta .btn, .form-actions > .btn-lg { width: 100%; }
  /* QR 카드 소폭 축소 */
  .qr-box { width: 168px; height: 168px; }
  .qr-box img, .qr-box canvas { width: 148px !important; height: 148px !important; }
  /* 받은 문의: 날짜가 오른쪽 끝으로 밀려 겹치지 않게 줄바꿈 */
  .inq-filters { flex-wrap: wrap; }
  .inq-date { margin-left: 0; width: 100%; margin-top: 2px; }
  /* 공고 목록 터치 영역 좌우 확대 */
  .notice-row-link { padding: 14px 12px; }
  /* 힌트 텍스트 가독성 */
  .field .hint { font-size: 13px; }
}
@media (max-width: 520px) {
  /* 일정 카드 날짜칸 축소 (썸네일은 이미 숨김) */
  .sch-date { width: 56px; }
  .sch-date .day { font-size: 20px; }
}
@media (max-width: 360px) {
  /* 폼 카드 좌우 여백 축소 — 입력 영역 확보 */
  .form-card { padding: 28px 20px; }
}
