/* TRACE ARKA — Components (.arka-*) */

/* ===== Button ===== */
.arka-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 34px; padding: 0 16px;
  font-size: 12.5px; font-weight: 600; letter-spacing: -.01em;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  color: var(--ink); background: var(--bg-soft);
  transition: background .15s, color .15s, border-color .15s, box-shadow .15s, transform .05s;
  white-space: nowrap; user-select: none;
}
.arka-btn:hover { background: var(--line); text-decoration: none; }
.arka-btn:active { transform: translateY(1px); }
.arka-btn:focus-visible { box-shadow: var(--focus-ring); }
.arka-btn[disabled], .arka-btn.is-disabled { opacity: .5; pointer-events: none; }
.arka-btn--sm { height: 28px; padding: 0 12px; font-size: 11.5px; }
.arka-btn--lg { height: 42px; padding: 0 22px; font-size: 14px; }
.arka-btn--block { width: 100%; }

.arka-btn--primary { background: var(--arka-accent); color: #fff; }
.arka-btn--primary:hover { background: var(--arka-accent-deep); }

.arka-btn--outline {
  background: transparent; color: var(--arka-accent);
  border-color: var(--arka-accent); border-radius: var(--radius-pill);
}
.arka-btn--outline:hover { background: var(--arka-accent-bg); }

.arka-btn--ghost { background: transparent; color: var(--text-3); }
.arka-btn--ghost:hover { background: var(--bg-soft); color: var(--ink); }

/* ===== Card ===== */
.arka-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.arka-card--pad { padding: var(--space-4); }   /* 16 (was 18) */
.arka-card--hover { transition: box-shadow .2s, transform .2s; }
.arka-card--hover:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }

/* ===== Chip ===== */
.arka-chip {
  display: inline-flex; align-items: center; gap: 5px;
  height: 28px; padding: 0 12px;
  font-size: 12px; font-weight: 600;
  color: var(--text-3); background: var(--bg-soft);
  border: 1px solid var(--line-2); border-radius: var(--radius-pill);
  cursor: pointer; transition: all .14s; user-select: none; white-space: nowrap;
}
.arka-chip:hover { border-color: var(--arka-accent-soft); color: var(--arka-accent); }
.arka-chip.is-active, .arka-chip[aria-pressed="true"] {
  background: var(--arka-accent-bg); color: var(--arka-accent);
  border-color: transparent; font-weight: 600;
}
.arka-chip--sm { height: 23px; padding: 0 9px; font-size: 11px; }
/* 삭제 가능한 칩(커스텀 취향 태그 등) — 라벨 + × 버튼 */
.arka-chip--removable { cursor: default; padding-right: 6px; }
.arka-chip__x {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; margin-left: 1px; padding: 0;
  border: none; background: none; color: inherit; cursor: pointer;
  font-size: 15px; line-height: 1; border-radius: 50%; opacity: .65;
}
.arka-chip__x:hover { opacity: 1; background: rgba(0,0,0,.08); }

/* ===== Badge ===== */
.arka-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; font-size: 10.5px; font-weight: 600;
  letter-spacing: .01em; border-radius: var(--radius-pill);
  background: var(--bg-soft); color: var(--text-3); line-height: 1.5;
}
.arka-badge--brand { background: var(--arka-accent-bg); color: var(--arka-accent); }
.arka-badge--ok { background: var(--ok-bg); color: var(--ok); }
.arka-badge--warn { background: var(--warn-bg); color: var(--warn); }
.arka-badge--danger { background: var(--danger-bg); color: var(--danger); }
.arka-badge--muted { background: var(--bg-soft); color: var(--text-5); }

/* ===== Input ===== */
.arka-input, .arka-textarea, .arka-select {
  width: 100%; height: 38px; padding: 0 12px;
  font-size: 13px; color: var(--ink);
  background: var(--bg-card);
  border: 1px solid var(--line-2); border-radius: var(--radius-md);
  transition: border-color .14s, box-shadow .14s;
}
.arka-textarea { height: auto; min-height: 96px; padding: 10px 12px; line-height: 1.6; resize: vertical; }
.arka-input::placeholder, .arka-textarea::placeholder { color: var(--text-5); }
.arka-input:focus, .arka-textarea:focus, .arka-select:focus {
  outline: none; border-color: var(--arka-accent); box-shadow: var(--focus-ring);
}
/* 댓글 입력(단일행 textarea) — placeholder·텍스트를 상단이 아닌 세로 중앙에 */
.arka-input.pd-cmt-input { min-height: 40px; height: 40px; padding-top: 10px; padding-bottom: 10px; line-height: 1.4; }
/* 발견 헤더의 정렬 드롭다운만 내용 폭으로 좁게(우측 소형) — 전역 .arka-select 미변경 */
.arka-disc-head .arka-select { width: auto; flex: 0 0 auto; min-width: 104px; max-width: 120px; }
.arka-field { display: flex; flex-direction: column; gap: 6px; }
.arka-field > label { font-size: 12px; font-weight: 600; color: var(--text-2); }

/* ===== Avatar ===== */
.arka-avatar {
  --size: 34px;
  width: var(--size); height: var(--size);
  border-radius: 50%; background: #E4CDD8;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: calc(var(--size) * .4); font-weight: 700; color: var(--arka-accent-deep);
  overflow: hidden; flex: 0 0 auto; user-select: none; text-transform: uppercase;
}
.arka-avatar img { width: 100%; height: 100%; object-fit: cover; }
.arka-avatar--xs { --size: 24px; }
.arka-avatar--sm { --size: 30px; }
.arka-avatar--lg { --size: 52px; }
.arka-avatar--xl { --size: 76px; }

/* ===== Tabs (segmented) ===== */
.arka-tabs {
  display: inline-flex; gap: 8px; padding: 0;
  background: none;   /* 세그먼트 트랙 제거 → 낱개 버튼 나열 */
  /* [야간 Track A-P1] 탭이 소형폰 폭 초과 시 '잘림'(body overflow-x:clip) 대신 가로 스크롤.
     PC/태블릿은 탭이 다 들어와 스크롤바 미표시 → 무회귀. 낱개 탭은 축소 금지(flex 0 0 auto). */
  max-width: 100%; flex-wrap: nowrap; overflow-x: auto;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.arka-tabs::-webkit-scrollbar { display: none; }
.arka-tab {
  flex: 0 0 auto;
  padding: 6px 16px; font-size: 12.5px; font-weight: 600;
  color: var(--text-3); border: 1px solid var(--line-2); background: #fff;
  border-radius: var(--radius-pill);
  transition: all .15s; white-space: nowrap;
}
.arka-tab:hover { color: var(--ink); border-color: var(--text-4); }
.arka-tab.is-active { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: none; }

/* ===== Modal ===== */
.arka-modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(34,40,52,.35);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; animation: arka-fade .16s ease;
  overflow-y: auto; overscroll-behavior: contain;   /* 긴 모달은 오버레이 내부에서만 스크롤 · 배경 체이닝 차단 */
}
/* 모달 열림 동안 배경(body) 스크롤/드래그 잠금 — JS(lockBgScroll)가 top 을 -scrollY 로 고정 */
body.arka-modal-open { position: fixed; left: 0; right: 0; width: 100%; overflow: hidden; }
@keyframes arka-fade { from { opacity: 0; } to { opacity: 1; } }
.arka-modal {
  width: 100%; max-width: 440px;
  background: var(--bg-card); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hover); overflow: hidden;
  max-height: 90vh; display: flex; flex-direction: column;   /* #2 콘텐츠(제품태그 다건)가 많아도 뷰포트 안에 — 헤더/버튼 고정, 본문만 스크롤 */
  animation: arka-pop .18s ease;
}
.arka-modal--wide { max-width: 720px; }   /* 넓은 모달(매장검색 등 2단 레이아웃) — 모바일은 overlay 여백으로 자동 축소 */
/* 이미지 라이트박스 (핀터레스트식 — 어두운 배경 + 이미지만, 카드 크롬 없음) */
.arka-lightbox {
  position: fixed; inset: 0; z-index: 1200;
  background: rgba(17, 20, 27, .82);
  display: flex; align-items: center; justify-content: center;
  padding: 4vh 4vw; box-sizing: border-box;
  animation: arka-fade .16s ease; overscroll-behavior: contain;
}
.arka-lightbox img {
  display: block; width: auto; height: auto;
  max-width: 92vw; max-height: 92vh; object-fit: contain;
  border-radius: 10px; box-shadow: 0 16px 50px rgba(0,0,0,.5);
}
.arka-lightbox__close {
  position: fixed; top: 16px; right: 18px; z-index: 1201;
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.14); color: #fff; font-size: 22px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
}
.arka-lightbox__close:hover { background: rgba(255,255,255,.26); }
@keyframes arka-pop { from { transform: translateY(10px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.arka-modal__head { padding: 20px 22px 4px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.arka-modal__title { font-size: 17px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.arka-modal__close { width: 30px; height: 30px; border-radius: 50%; color: var(--text-4); font-size: 18px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
.arka-modal__close:hover { background: var(--bg-soft); color: var(--ink); }
.arka-modal__body { padding: 8px 22px 4px; font-size: 13px; color: var(--text-2); line-height: 1.65; overflow-y: auto; flex: 1 1 auto; }
.arka-modal__actions { padding: 16px 22px 22px; display: flex; gap: 8px; justify-content: flex-end; }

/* ===== Postcard (feed card) ===== */
.arka-postcard {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: box-shadow .2s;
}
.arka-postcard:hover { box-shadow: var(--shadow-hover); }
.arka-postcard__head { display: flex; align-items: center; gap: 10px; padding: var(--space-3) var(--space-4) var(--space-2); }   /* 12 16 8 */
.arka-postcard__meta { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.arka-postcard__nameline { display: flex; align-items: center; gap: 6px; min-width: 0; }
.arka-postcard__namesep { font-size: 11px; flex: 0 0 auto; }
.arka-postcard__handle { font-size: 12.5px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.arka-postcard__sub { font-size: 11px; color: var(--text-5); display: flex; align-items: center; gap: 6px; }
.arka-postcard__board {
  font-size: 12.5px; font-weight: 600; color: var(--ink); flex: 0 0 auto;
}
.arka-postcard__body { padding: 0 16px 12px; }
.arka-postcard__title { font-size: 15px; font-weight: 700; color: var(--ink); letter-spacing: -.01em; line-height: 1.35; margin-bottom: var(--space-1); }   /* 4 (was 5) */
.arka-postcard__excerpt { font-size: 12.5px; color: var(--text-3); line-height: 1.6; }
.arka-postcard__image {
  position: relative; width: 100%; aspect-ratio: 4 / 3;
  background: var(--bg-soft);
}
.arka-postcard__image::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(255,255,255,.12), rgba(0,0,0,.06));
}
/* 제품 태그 라벨 — 이미지 하단(오버레이 아님) · 분홍(브랜드 핑크) */
.arka-postcard__ptags { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 16px 0; }
.arka-postcard__ptag {
  display: inline-flex; align-items: center; gap: 5px;
  height: 26px; padding: 0 11px 0 9px;
  background: var(--arka-accent-bg); border-radius: 6px;
  font-size: 11.5px; font-weight: 600; color: var(--arka-accent); text-decoration: none;
}
.arka-postcard__ptag:hover { text-decoration: none; background: var(--arka-accent-soft); }
.arka-postcard__ptag .pin { color: var(--arka-accent); font-size: 13px; }
.arka-postcard__foot { display: flex; align-items: center; gap: 4px; padding: var(--space-2) var(--space-3); border-top: 1px solid var(--line); }   /* 8 12 */
.arka-act {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 10px; border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 600; color: var(--text-3);
  transition: background .14s, color .14s;
}
.arka-act:hover { background: var(--bg-soft); color: var(--ink); }
.arka-act .ic { font-size: 15px; line-height: 1; }
.arka-act.is-on { color: var(--arka-accent); }
.arka-act.is-on.arka-act--heart { color: var(--danger); }

/* ===== Toast ===== */
.arka-toast-wrap {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%);
  z-index: 1200; display: flex; flex-direction: column; gap: 8px; align-items: center;
  pointer-events: none;
}
.arka-toast {
  background: var(--ink); color: #fff;
  padding: 10px 18px; border-radius: var(--radius-pill);
  font-size: 12.5px; font-weight: 600; box-shadow: var(--shadow-hover);
  animation: arka-toast-in .2s ease; max-width: 86vw;
}
.arka-toast--ok { background: var(--ok); }
.arka-toast--warn { background: var(--warn); }
.arka-toast--danger { background: var(--danger); }
@keyframes arka-toast-in { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ===== Skeleton ===== */
.arka-skel {
  background: linear-gradient(90deg, var(--bg-soft) 25%, var(--line) 37%, var(--bg-soft) 63%);
  background-size: 400% 100%; border-radius: var(--radius-md);
  animation: arka-shimmer 1.3s ease infinite; height: 14px; width: 100%;
}
.arka-skel--card { height: 260px; border-radius: var(--radius-lg); }
@keyframes arka-shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

/* ===== Section title ===== */
.arka-section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.arka-section-title h2 { margin: 0; }
.arka-section-title a { font-size: 12px; font-weight: 600; }

/* 본문 인라인 검색바 (GNB 검색과 별개) — 전 페이지 공통 컴포넌트.
   ★.arka-search = 범용(게시판·소모임·수배 등 통일). .board-search 는 하위호환 별칭(동일 디자인). */
.board-search, .arka-search {
  display: flex; align-items: center; gap: 8px;
  max-width: 420px; height: 38px; padding: 0 14px;
  background: var(--bg-soft); border: 1px solid var(--line-2); border-radius: var(--radius-pill);
}
.board-search .ic, .arka-search .ic { color: var(--text-5); font-size: 16px; display: inline-flex; flex: 0 0 auto; }
.board-search__input, .arka-search__input { flex: 1 1 auto; border: none; background: transparent; font-size: 13.5px; min-width: 0; color: var(--ink); }
.board-search__input:focus, .arka-search__input:focus { outline: none; }
.board-search__input::placeholder, .arka-search__input::placeholder { color: var(--text-5); }
.board-search--full, .arka-search--full { max-width: none; width: 100%; }   /* 전체 폭 한 줄 */
.board-search--w600, .arka-search--w600 { max-width: 600px; width: 100%; }   /* 게시판 내 검색(정의서 0731 s4): 최대 600px */

/* 수배 목록 검색+정렬 바 — arka-search(검색) + 정렬 select 를 한 줄에 (검색은 유연폭) */
/* #2 수배 검색: 검색창 + 정렬을 하나의 border 로 통일(종전엔 pill 2개가 각각 border → "영역 2개"로 보였음) */
.hunt-search {
  position: relative;   /* #3 캐럿 삼각형(::after) 기준 */
  display: flex; align-items: center; gap: 0; margin-bottom: 16px;
  height: 40px; padding: 0; overflow: hidden;
  background: var(--bg-soft); border: 1px solid var(--line-2); border-radius: var(--radius-pill);
}
.hunt-search .arka-search { flex: 1 1 auto; max-width: none; height: 100%; border: none; background: transparent; border-radius: 0; padding: 0 14px; }
/* 정렬 드롭다운은 통합 필드 안 우측 — 자체 border 제거하고 좌측 구분선만. 배경이미지 캐럿은 제거(아래 ::after 로 대체) */
.hunt-search .brd-sortsel { height: 100%; border: none; border-left: 1px solid var(--line-2); border-radius: 0; background-color: transparent; background-image: none; padding-right: 30px; }
.hunt-search .brd-sortsel:focus { box-shadow: none; border-left-color: var(--arka-accent-soft); }
/* #3 아래방향 삼각형(▼) — select 배경이미지는 브라우저별로 무시돼 불안정 → 순수 CSS 삼각형을 컨테이너 위에 그린다(항상 표시) */
.hunt-search::after {
  content: ""; position: absolute; right: 13px; top: 50%; margin-top: -2px;
  width: 0; height: 0; pointer-events: none;
  border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid #5b626d;
}

/* 게시판 정렬 드롭다운 (우측 정렬) */
.brd-sortsel {
  flex: 0 0 auto; height: 38px; padding: 0 32px 0 14px;
  border: 1px solid var(--line-2); border-radius: var(--radius-pill);
  background: #fff; color: var(--text-2); font-size: 13px; font-weight: 600; cursor: pointer;
  -webkit-appearance: none; appearance: none;
  /* 아래로 내려간 삼각형(▼) 캐럿 — 드롭다운임을 명확히 (수요순 등).
     ★데이터URI 는 percent-encode(<,>,#,공백) — 종전 ';utf8,' + 미인코딩 SVG 는 일부 브라우저에서 로드 실패해 캐럿이 안 보였음. */
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='10'%20height='10'%20viewBox='0%200%2010%2010'%3E%3Cpolygon%20points='0,2.5%2010,2.5%205,8.5'%20fill='%235b626d'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 10px 10px;
}
.brd-sortsel:focus { outline: none; border-color: var(--arka-accent-soft); box-shadow: var(--focus-ring); }

/* 정렬 드롭다운 왼쪽 [+ 글쓰기] — 셀렉트와 같은 높이/pill 로 한 줄에 붙는다. */
.brd-writebtn {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px;
  height: 38px; padding: 0 16px 0 13px;
  border: 1px solid transparent; border-radius: var(--radius-pill);
  background: var(--arka-accent); color: #fff;
  font-size: 13px; font-weight: 700; line-height: 1; cursor: pointer;
  transition: background .14s;
}
.brd-writebtn:hover { background: var(--arka-accent-deep); }
.brd-writebtn:active { transform: translateY(1px); }
.brd-writebtn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.brd-writebtn .ic, .brd-writebtn svg { display: inline-flex; }

/* 게시판 목록 — 가로형 행 리스트 (POST-001) */
.brd-list { display: flex; flex-direction: column; }
.brd-row {
  display: flex; gap: 14px; align-items: center;
  padding: 16px 4px; border-bottom: 1px solid var(--line); cursor: pointer; text-decoration: none;
  transition: background .14s;
}
.brd-row:hover { background: var(--bg-soft); }
.brd-row:hover .brd-row__title { color: var(--arka-accent); }
.brd-row__thumb {
  position: relative; flex: 0 0 auto; width: 72px; height: 72px;
  border-radius: var(--radius-md); overflow: hidden; background: var(--bg-soft);
}
.brd-row__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* 이미지 없는 글 — 빈 슬롯(은은한 placeholder)로 모든 행의 높이·좌측정렬 통일 */
.brd-row__thumb--ph { display: flex; align-items: center; justify-content: center; }
.brd-row__thumb--ph .ic { font-size: 22px; color: var(--text-5); opacity: .4; }
.brd-row__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.brd-row__cat { font-size: 11px; font-weight: 700; color: var(--arka-accent); letter-spacing: .02em; }
.brd-row__title {
  font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
/* #75 공지 글 — 목록 제목 앞 '공지' 뱃지 + 행 살짝 강조 */
.brd-row__notice {
  display: inline-block; vertical-align: middle; margin-right: 6px;
  font-size: 11px; font-weight: 800; line-height: 1.5; letter-spacing: .01em;
  color: #fff; background: var(--arka-accent); border-radius: 5px; padding: 1px 6px;
}
.brd-row--notice { background: color-mix(in srgb, var(--arka-accent) 6%, transparent); }
.brd-row--notice .brd-row__titletext { font-weight: 800; }
.brd-row__foot { display: flex; align-items: center; gap: 12px; margin-top: 2px; }
.brd-row__by { font-size: 12px; color: var(--text-4); flex: 1 1 auto; min-width: 0; }
.brd-row__counts { display: flex; gap: 12px; flex: 0 0 auto; }
.brd-row__cnt { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text-3); font-weight: 600; }
.brd-row__cnt .ic { font-size: 14px; display: inline-flex; }

/* 우하단 글쓰기 FAB (POST-001) */
.brd-fab {
  position: fixed; right: calc(var(--rightrail-w) + 28px); bottom: 28px; z-index: 400;   /* 우레일 안쪽(콘텐츠 우측 근처) */
  width: 56px; height: 56px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--arka-accent); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-hover); transition: background .14s, transform .1s;
}
.brd-fab:hover { background: var(--arka-accent-deep); }
.brd-fab:active { transform: translateY(1px); }
/* 글쓰기 버튼을 콘텐츠(글 목록) 끝에 우측 정렬 배치 — position:fixed 대신 문서 흐름 고정 */
.brd-fab-row { display: flex; justify-content: flex-end; padding: 8px 0 8px; }
@media (max-width: 1023px) {
  .brd-fab { right: 28px; }   /* 태블릿: 우레일 없음 → 뷰포트 우측 여백 */
}
@media (max-width: 767px) {
  .brd-fab { right: 16px; bottom: calc(var(--bottomtab-h) + 16px); }   /* 모바일: 하단탭 위 */
}

/* Empty state */
.arka-empty { text-align: center; padding: 48px 20px; color: var(--text-5); }
.arka-empty .ic { font-size: 34px; margin-bottom: 8px; }
.arka-empty .ic .arka-icon { width: 1em; height: 1em; margin: 0 auto; }   /* 빈상태 SVG 아이콘 중앙 */

/* 통일 라인 아이콘 (ARKA.ui.icon) — 폰트 아이콘 컨테이너(.ic) 안에서 1em·currentColor 상속.
 * .ic{font-size}·color 를 그대로 물려받아 기존 글리프와 동일 크기/색으로 렌더된다. */
.arka-icon { display: inline-block; vertical-align: -0.15em; flex: 0 0 auto; }
.ic > .arka-icon { width: 1em; height: 1em; display: block; vertical-align: middle; }

/* Hero (비로그인 메인 상단 유도 블록) */
.arka-hero {
  background: linear-gradient(135deg, var(--arka-accent-bg), #fff);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
}
.arka-hero__title { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }

/* ==========================================================================
 * 예시 이미지 (ARKA.ui.sampleImg / cover / avatar) — 전 페이지 공통
 * 색블록 컨테이너 안에 <img> 를 채우고, 컨테이너 배경(톤)은 폴백으로 유지.
 * ========================================================================== */
.arka-img { display: block; width: 100%; height: 100%; object-fit: cover; border: 0; }
.arka-img--sample, .arka-img--cover { position: absolute; inset: 0; }
/* 이미지가 채워지는 색블록 컨테이너 — 상대 위치 + 클리핑 (자식 <img> absolute inset:0) */
.arka-mcard__img,
.arka-postcard__image,
.arka-pf-thumb__img,
.arka-lb__cover,
.grp-card__thumb,
.hunt-card__thumb,
.arka-disc-hunt__thumb,
.arka-edit-avatar__img,
.arka-hero-img,
.arka-carousel__slide,
.hunt-ref,
.hunt-report__img,
.onb-tile__img,
.arka-board-thumb,
.arka-thumb-img { position: relative; overflow: hidden; }
/* 이미지 로드 전/실패 시 톤 배경이 자연스럽게 비치도록 배경 유지(인라인 배경색이 폴백) */

/* 아바타 이미지 (ARKA.ui.avatar) — 단독 사용 시 원형, .arka-avatar 안에서는 채움 */
.arka-avatar-img { display: block; object-fit: cover; border-radius: 50%; background: var(--arka-accent-bg); }

/* ==========================================================================
 * 반응형 매스너리 / 커버 그리드 (SSOT) — DESIGN_UI_RESPONSIVE_IMAGES §2-A
 * 브레이크포인트: PC ≥1024 / 태블릿 768–1023 / 폰 ≤767 (화면정의서 확정)
 * 발견·태그·아카이브스냅샷·프로필 = 매스너리 4→3→2, 룩북 커버 = 3→2→1.
 * 이전엔 각 페이지 인라인 <style> 에만 존재(css 미정의)해 드리프트 발생 → 여기로 중앙화.
 * ========================================================================== */
.arka-masonry { column-count: 4; column-gap: var(--space-4); }
.arka-masonry > * { break-inside: avoid; margin-bottom: var(--space-4); display: block; width: 100%; }
@media (max-width: 1023px) { .arka-masonry { column-count: 3; column-gap: var(--space-3); } }
@media (max-width: 767px)  { .arka-masonry { column-count: 2; column-gap: var(--space-2); } }
.arka-span-all { column-span: all; }   /* #54 멀티컬럼(masonry) 안에서 전체폭 차지 — 빈상태 문구 등이 첫 컬럼에 치우치지 않게 */

/* #123 룩북 <보기> 상세 그리드 — 순서보존 행-우선(좌→우).
   .arka-masonry(column-count)는 세로충전(column-major)이라 지정순서(items 순서)가 좌→우로 안 지켜지고
   맨끝 아이템이 1행 마지막칸에 오는 결함(토리 라이브 진단)이 있었다. 룩북 보기에만 CSS grid(행-우선)로 교체한다.
   컬럼수·간격은 매스너리와 동일(4→3→2)해 시각 이질감 최소화(정렬만 행-우선으로 바뀜). 다른 masonry 사용처
   (발견 page-discover·스냅샷 renderSnapshots·태그 page-tag)는 .arka-masonry 그대로 유지 — 영향 없음. */
.arka-lb-view { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); align-items: start; }
.arka-lb-view > * { width: 100%; margin: 0; }
@media (max-width: 1023px) { .arka-lb-view { grid-template-columns: repeat(3, 1fr); gap: var(--space-3); } }
@media (max-width: 767px)  { .arka-lb-view { grid-template-columns: repeat(2, 1fr); gap: var(--space-2); } }

.arka-lb-grid { display: grid; gap: var(--space-4); grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1023px) { .arka-lb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); } }
@media (max-width: 767px)  { .arka-lb-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-2); } }

/* ============================================================================
 * 공통 푸터 (arka-footer) — 사용자앱 전용(admin 제외). 다크 4블록.
 *   ①브랜드 ②링크3열(웹)/축약2행(모바일) ③사업자정보(모바일 접힘)+면책 ④하단바
 * 다크 near-black navy 배경 · 본문 연회색 · 강조 핑크(accent-soft) · 면책 좌측 마룬바.
 * ==========================================================================*/
.arka-footer { background: #1A1B2E; color: #9AA1B4; margin-top: var(--space-6, 32px); }
.arka-footer a { text-decoration: none; }
.arka-footer__inner { max-width: 1120px; margin: 0 auto; padding: 28px 24px 20px; }

/* ① 링크/브랜드 상단 영역 */
.arka-footer__top { display: grid; grid-template-columns: 1.1fr 2fr; gap: 40px; align-items: start; }
.arka-footer__brand { display: block; color: inherit; }
.arka-footer__brandrow { display: flex; align-items: center; gap: 10px; }
.arka-footer__logo { width: 26px; height: 26px; display: block; }
.arka-footer__wordmark { font-family: var(--font-display, "UnifrakturCook", serif); font-size: 25px; font-weight: 700; letter-spacing: .01em; color: #fff; }
/* 로고 이미지 우측 여백만큼 떨어져 보여, 그 여백의 절반가량 왼쪽으로 당김(음수 margin) */
.arka-footer__tagline { margin-top: 0; margin-left: -34px; font-size: 12.5px; line-height: 1.4; color: #7E8496; max-width: 220px; }

/* ② 링크 3열 (웹) */
.arka-footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.arka-footer__coltitle { color: #F2F3F8; font-weight: 700; font-size: 14px; margin-bottom: 14px; }
.arka-footer__collinks { display: flex; flex-direction: column; gap: 10px; }
.arka-footer__link { color: #A7ADBE; font-size: 13px; }
.arka-footer__link:hover { color: #fff; text-decoration: none; }
/* 약관·정책 링크(개인정보/환불/청소년)도 나머지 footer 링크와 동일한 색으로(진한 accent 제거) */
.arka-footer__link.is-accent { color: #A7ADBE; }
.arka-footer__link.is-accent:hover { color: #fff; }

/* ②' 모바일 축약 링크 — 웹에선 숨김 */
.arka-footer__mlinks { display: none; }

/* 구분선 */
.arka-footer__div { height: 1px; background: rgba(255,255,255,.08); margin: 28px 0 20px; }

/* ③ 사업자 정보 + 면책 */
.arka-footer__biztoggle { display: none; background: none; border: 1px solid rgba(255,255,255,.16); color: #A7ADBE;
  border-radius: var(--radius-sm, 6px); padding: 8px 12px; font-size: 12.5px; cursor: pointer; margin-bottom: 12px; }
.arka-footer__bizinfo { font-size: 12px; line-height: 1.8; color: #7E8496; }
.arka-footer__mail { color: #A7ADBE; }
.arka-footer__mail:hover { color: #fff; }
.arka-footer__disclaimer { margin-top: 14px; padding-left: 12px; border-left: 3px solid var(--arka-accent, #8E3C5C);
  font-size: 11.5px; line-height: 1.7; color: #6E7488; }

/* ④ 하단 바 */
.arka-footer__bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px;
  margin-top: 24px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.08); font-size: 12px; color: #6E7488; }
.arka-footer__meta { display: inline-flex; align-items: center; gap: 14px; }
.arka-footer__lang { color: #8A90A2; }
.arka-footer__ver { color: #6E7488; }

/* ---- 모바일(≤767): 브랜드/3열 숨김·축약2행 노출·사업자정보 접힘·하단탭바 여백 ---- */
@media (max-width: 767px) {
  .arka-footer { margin-top: var(--space-6, 32px);
    padding-bottom: calc(var(--bottomtab-h, 56px) + env(safe-area-inset-bottom, 0px)); }
  .arka-footer__inner { padding: 28px 18px 20px; }
  .arka-footer__top { grid-template-columns: 1fr; gap: 0; }
  .arka-footer__brand, .arka-footer__cols { display: none; }        /* 레퍼런스: 모바일은 축약 링크 중심 */
  .arka-footer__mlinks { display: flex; flex-direction: column; gap: 10px; }
  .arka-footer__mrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; }
  .arka-footer__dot { color: #4A4F63; }
  .arka-footer__div { margin: 20px 0 16px; }
  .arka-footer__biztoggle { display: inline-block; }
  .arka-footer__bizinfo { display: none; }                          /* 토글 전 숨김 */
  .arka-footer__biz.is-open .arka-footer__bizinfo { display: block; }
  .arka-footer__bar { justify-content: flex-start; gap: 6px; }
}

/* ============================================================================
 * 약관·정책 / 안전 가이드 (arka-policy) — page-policy.js.
 *   상단 가로 탭(홈 피드 .arka-tabs/.arka-tab 재사용) + 본문(제목·조/항·문단/리스트).
 * ==========================================================================*/
.arka-policy { max-width: 820px; margin: 0 auto; padding: 8px 0 40px; }
/* 상단 문서 탭 줄 — .arka-tabs 와 같은 요소에 붙어 가로 나열(모바일 wrap) */
.arka-policy__nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 24px; }
/* 탭이 <a> 라서 base a:hover 밑줄이 붙는 것 방지(피드 탭은 <button>이라 무관) */
.arka-policy__nav .arka-tab:hover { text-decoration: none; }

.arka-policy__doc { max-width: 720px; }
.arka-policy__title { font-size: 26px; font-weight: 800; margin: 0 0 20px; color: var(--text-2); }
.arka-policy__h { font-size: 16px; font-weight: 700; margin: 28px 0 8px; color: var(--text-2); }
.arka-policy__p { font-size: 14px; line-height: 1.8; color: var(--text-2); margin: 0 0 10px; }
.arka-policy__list { margin: 4px 0 12px; padding-left: 20px; }
.arka-policy__list li { font-size: 14px; line-height: 1.8; color: var(--text-2); margin-bottom: 4px; }
.arka-policy__stub { font-size: 15px; line-height: 1.9; color: var(--text-3); padding: 32px 0; }

/* ★2026-09-08 DB(CMU_T_DOC) 본문은 코어가 저장한 순수 h2/p/ul 이라 위 __h/__p/__list 클래스가 붙지
   않는다. 같은 모양이 되도록 자손 선택자로 값을 그대로 맞춘다(내장본과 육안 차이가 없어야 한다). */
.arka-policy__db h2 { font-size: 16px; font-weight: 700; margin: 28px 0 8px; color: var(--text-2); }
.arka-policy__db h3 { font-size: 15px; font-weight: 700; margin: 20px 0 6px; color: var(--text-2); }
.arka-policy__db p  { font-size: 14px; line-height: 1.8; color: var(--text-2); margin: 0 0 10px; }
.arka-policy__db ul,
.arka-policy__db ol { margin: 4px 0 12px; padding-left: 20px; }
.arka-policy__db li { font-size: 14px; line-height: 1.8; color: var(--text-2); margin-bottom: 4px; }
.arka-policy__db h2:first-child { margin-top: 0; }

@media (max-width: 767px) {
  .arka-policy { padding: 4px 0 32px; }
  .arka-policy__nav { gap: 6px; margin: 4px 0 18px; }
  .arka-policy__title { font-size: 22px; }
}

/* #17 댓글 개행 보존 — el(text) 로 textContent 안전 이스케이프 유지하면서 \n 을 그대로 표시 */
.pd-cmt__text { white-space: pre-wrap; word-break: break-word; }
/* #72 사진형 상세 본문(excerpt) 개행 보존 — 리치 본문(pd-para)은 JS 에서 <br> 로 처리 */
.pd-body-text { white-space: pre-wrap; word-break: break-word; }

/* 로그인·회원가입 카드 상단 로고 가운데 정렬 — 구조 a > picture > img(inline). text-align/margin auto 로는
   picture 래퍼 때문에 안 통해 flex 중앙정렬로 처리(실제 정렬은 flex 담당). */
.arka-auth-logo { display: flex; justify-content: center; align-items: center; margin: 0 auto 16px; }
.arka-auth-logo picture { display: inline-flex; }
.arka-auth-logo .arka-logo-img, .arka-auth-logo img { margin-left: auto; margin-right: auto; }

/* ============================================================================
 * 수배(Hunt) 리스트 카드 — 공용(수배 목록 + 프로필 '수배' 탭 재사용).
 *   원본: html/hunt/list.html 인라인. 프로필 탭에서 재사용하려 공용 이관(list.html 인라인은 유지).
 * ==========================================================================*/
.hunt-row { display: flex; align-items: center; gap: 14px; background: var(--bg-card, #fff); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-card); padding: 16px; cursor: pointer; transition: box-shadow .15s, transform .15s; }
.hunt-row:hover { box-shadow: var(--shadow-hover); transform: translateY(-1px); }
.hunt-row__thumb { flex: 0 0 auto; width: 92px; height: 92px; border-radius: 10px; overflow: hidden; position: relative; background: var(--bg-soft); }
.hunt-row__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.hunt-row__title { font-size: 17px; font-weight: 700; color: var(--ink); }
.hunt-row__sub { font-size: 14px; color: var(--text-4); }
.hunt-row__pill { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; background: var(--arka-accent-bg); color: var(--arka-accent); font-size: 12.5px; font-weight: 700; padding: 4px 11px; border-radius: var(--radius-pill); margin-top: 2px; }
.hunt-row__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--arka-accent); flex: 0 0 auto; }
.hunt-row__report { flex: 0 0 auto; font-size: 12.5px; font-weight: 700; padding: 5px 12px; border-radius: var(--radius-pill); }
.hunt-row__report.is-on { background: #eaf6ee; color: #3d7a58; }
.hunt-row__report.is-off { background: #fff; color: var(--text-5); border: 1px solid var(--line-2); }
/* 검거완료(수배 종료) — 네온 그린 대신 잉크 칩 + 행/썸네일 dim 으로 '닫힘'을 표현(모바일 포함 노출) */
.hunt-row__done { display: inline-flex; align-items: center; gap: 5px; align-self: flex-start; background: var(--ink, #2E2E2E); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .01em; padding: 3px 10px; border-radius: var(--radius-pill); margin-top: 2px; }
.hunt-row.is-done { opacity: .78; }
.hunt-row.is-done .hunt-row__thumb { filter: grayscale(.85) contrast(.96); }
.hunt-row.is-done .hunt-row__thumb::after { content: "검거완료"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(46,46,46,.42); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .02em; }
/* 프로필 '수배' 탭 — 좌 서브토글(마룬 pill) + 우 상태칩 2축 필터바 */
.pf-hunts__label { font-size: 13px; font-weight: 700; color: var(--text-4); margin: 2px 2px 2px; }
.pf-hunts__bar { margin-bottom: 4px; }
.pf-hunts__srcbtn {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px;
  border-radius: var(--radius-pill); border: 1.5px solid var(--line-2); background: #fff;
  font-size: 13px; font-weight: 700; color: var(--text-3); cursor: pointer; transition: all .14s;
}
.pf-hunts__srcbtn.is-active { background: var(--arka-accent-bg); border-color: var(--maroon, var(--arka-accent)); color: var(--maroon, var(--arka-accent)); }
.pf-hunts__srccount { font-size: 12px; font-weight: 800; opacity: .85; }
/* #115 팔로우 목록 '맞팔'(mutual) 뱃지 — 마룬 소프트 pill. 상호 팔로우 행에만 노출. */
.pf-mutual-badge {
  flex: 0 0 auto; display: inline-flex; align-items: center; padding: 1px 7px;
  border-radius: var(--radius-pill); background: var(--arka-accent-bg);
  color: var(--maroon, var(--arka-accent)); font-size: 11px; font-weight: 800; line-height: 1.6;
  letter-spacing: .01em; white-space: nowrap;
}
@media (max-width: 767px) {
  .hunt-row { padding: 12px; gap: 12px; border-radius: 12px; }
  .hunt-row__thumb { width: 60px; height: 60px; }
  .hunt-row__title { font-size: 15px; }
  .hunt-row__pill { background: transparent; padding: 0; color: var(--arka-accent); font-weight: 700; }
  .hunt-row__dot { display: none; }
}

/* ============================================================================
 * 소모임 탈퇴 — [⋯]더보기 드롭다운 + 탈퇴 모달(웹 중앙/모바일 바텀시트)
 * ==========================================================================*/
.grph-more { position: relative; flex: 0 0 auto; }
.grph-more__btn {
  width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--line-2);
  background: #fff; color: var(--text-3); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; transition: background .14s;
}
.grph-more__btn:hover { background: var(--bg-soft); color: var(--ink); }
.grph-more__menu {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 50; min-width: 148px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md);
  box-shadow: var(--shadow-card); padding: 4px; display: none;
}
.grph-more.is-open .grph-more__menu { display: block; }
.grph-more__item {
  display: block; width: 100%; text-align: left; padding: 9px 12px; border: 0; background: none;
  border-radius: var(--radius-sm); font-size: 14px; color: var(--ink); cursor: pointer;
}
.grph-more__item:hover { background: var(--bg-soft); }
.grph-more__item.is-danger { color: var(--danger, #c0392b); }

.grp-leave__warn { background: var(--bg-soft); border-radius: var(--radius-md); padding: 12px 14px; }
.grp-leave__warn-item { font-size: 13px; color: var(--text-3); line-height: 1.5; }
.grp-leave__paid {
  background: #fdeef0; border: 1px solid #f3c9d0; border-radius: var(--radius-md);
  padding: 10px 12px; font-size: 13px; color: #8E3C5C;
}
/* 모바일 바텀시트 — grp-leave-modal 만 하단 고정·상단 라운드 */
@media (max-width: 767px) {
  .arka-modal-overlay:has(.grp-leave-modal) { align-items: flex-end; padding: 0; }
  .grp-leave-modal { max-width: 100%; border-radius: 16px 16px 0 0; max-height: 92vh; }
}

/* ============================================================================
 * #2 소모임 프로필 아바타 필드 + 1:1 크롭 모달 (개설·편집 공용 · DESIGN_UI_GROUP_PROFILE §5)
 * ==========================================================================*/
.grp-avatar-row { display: flex; align-items: center; gap: var(--space-4); }
.grp-avatar-preview {                       /* 원형 프리뷰(=파일선택 버튼) */
  position: relative; width: 72px; height: 72px; flex: 0 0 auto;
  border-radius: 50%; overflow: hidden; cursor: pointer;
  background: var(--arka-accent-bg); border: 1.5px solid var(--line-2);
  display: flex; align-items: center; justify-content: center; padding: 0;
}
.grp-avatar-preview__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.grp-avatar-preview__ic { color: var(--arka-accent); display: inline-flex; }   /* 미설정 기본 아이콘 */
.grp-avatar-preview__spin {                 /* 업로드중 오버레이 */
  position: absolute; inset: 0; display: none;
  align-items: center; justify-content: center; background: rgba(255,255,255,.72);
}
.grp-avatar-preview.is-uploading .grp-avatar-preview__spin { display: flex; }
.grp-avatar-preview__spinner {              /* CSS 스피너(아이콘 無 대체) */
  width: 22px; height: 22px; border-radius: 50%;
  border: 2.5px solid var(--line-2); border-top-color: var(--arka-accent);
  animation: grp-avatar-spin .7s linear infinite;
}
@keyframes grp-avatar-spin { to { transform: rotate(360deg); } }
.grp-avatar-meta { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.grp-avatar-meta__hint { font-size: 12px; color: var(--text-4); }
.grp-avatar-meta__btns { display: flex; gap: var(--space-2); flex-wrap: wrap; }

.grp-crop { display: flex; flex-direction: column; gap: var(--space-3); align-items: center; }
.grp-crop__stage {
  position: relative; width: 260px; height: 260px; max-width: 78vw;
  border-radius: var(--radius-md); overflow: hidden; background: #000;
  touch-action: none; user-select: none;
}
.grp-crop__canvas { display: block; width: 100%; height: 100%; cursor: grab; }
.grp-crop__canvas:active { cursor: grabbing; }
.grp-crop__ring { position: absolute; inset: 0; pointer-events: none; border-radius: var(--radius-md); }
.grp-crop__ring::after {
  content: ''; position: absolute; inset: 0; margin: auto;
  width: 100%; height: 100%; border-radius: 50%;
  box-shadow: 0 0 0 9999px rgba(0,0,0,.42);   /* 원 바깥 어둡게 */
}
.grp-crop__zoom { display: flex; align-items: center; gap: var(--space-2); width: 100%; }
.grp-crop__range { flex: 1 1 auto; }
.grp-crop__zoom .ic { color: var(--text-4); flex: 0 0 auto; }
.grp-crop__hint { font-size: 12px; color: var(--text-4); text-align: center; }
@media (min-width: 768px) {
  .grp-avatar-preview { width: 80px; height: 80px; }
  .grp-crop__stage { width: 300px; height: 300px; }
}

/* ============================================================================
 * 수배(Hunt) 상세 재정합 (SPEC_HUNT_REDESIGN) — 자체 hunt-dt__* / hunt-rep / 모달 보조
 * ==========================================================================*/
/* dark 버튼(원탭 '수배 참여 완료') */
.arka-btn--dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.arka-btn--dark:hover { background: #000; color: #fff; }

/* 상단 헤드 */
.hunt-dt__head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 16px; }
.hunt-dt__thumb { position: relative; flex: 0 0 auto; width: 120px; height: 120px; border-radius: var(--radius-lg); overflow: hidden; background: var(--arka-accent-bg); }
.hunt-dt__thumb img { width: 100%; height: 100%; object-fit: cover; }
.hunt-dt__headmeta { gap: 10px; }
.hunt-dt__title { font-size: 24px; font-weight: 800; letter-spacing: -.01em; color: var(--ink); margin: 0; }
.hunt-dt__sub { font-size: 13px; }
.hunt-dt__pill { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  padding: 6px 14px; border-radius: var(--radius-pill); font-size: 12.5px; font-weight: 700;
  background: var(--arka-accent-bg); color: var(--arka-accent-deep); }
.hunt-row__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--arka-accent); display: inline-block; flex: 0 0 auto; }

/* 액션 2버튼 */
.hunt-dt__actions { display: flex; gap: 12px; margin-bottom: 8px; }

/* 제보 행 */
.hunt-rep { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hunt-rep__author { align-self: flex-start; font-weight: 600; font-size: 13.5px; color: var(--ink); }   /* 클릭/hover 영역을 닉네임 텍스트 폭으로 한정(컬럼 flex stretch 방지) */
.hunt-rep__author:hover { color: var(--arka-accent); }
.hunt-rep__src { font-size: 12px; max-width: 260px; }
.hunt-rep__acts { flex: 0 0 auto; }
.hunt-rep__act { display: inline-flex; align-items: center; gap: 3px; padding: 5px 9px; border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 600; color: var(--text-3); background: var(--bg-soft); border: 1px solid var(--line-2); }
.hunt-rep__act:hover { color: var(--arka-accent); border-color: var(--arka-accent-soft); text-decoration: none; }
.hunt-rep__act[aria-pressed="true"] { color: var(--arka-accent); background: var(--arka-accent-bg); border-color: transparent; }
.hunt-rep__more { padding: 5px 7px; }
/* 제보 위치(장소·주소 + [지도] 토글) — .hunt-rep 이 space-between 행이라 카드를 컬럼으로 감싸고
   위치 블록은 그 아래줄에 온다(지도가 옆으로 눌리지 않게). */
.hunt-rep__place { padding-top: 2px; border-top: 1px dashed var(--line-2); }

/* 빈 상태 */
.hunt-dt__empty { padding: 32px 22px; }
.hunt-dt__empty-ic { width: 52px; height: 52px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--arka-accent-bg); color: var(--arka-accent); font-size: 22px; }

/* 등장 게시물 그리드 */
.hunt-dt__appear-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.hunt-dt__appear { position: relative; display: block; aspect-ratio: 1 / 1; border-radius: var(--radius-md); overflow: hidden; background: var(--bg-soft); }
.hunt-dt__appear img { width: 100%; height: 100%; object-fit: cover; }

/* 모달 보조(원탭·제보·등록) */
.hunt-onetap__item { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: var(--radius-md); background: var(--arka-accent-bg); }
.hunt-onetap__thumb { position: relative; flex: 0 0 auto; width: 56px; height: 56px; border-radius: var(--radius-md); overflow: hidden; background: var(--bg-soft); }
.hunt-onetap__thumb img { width: 100%; height: 100%; object-fit: cover; }
.hunt-hint { font-size: 12px; line-height: 1.6; color: var(--arka-accent-deep); background: var(--arka-accent-bg); border-radius: var(--radius-md); padding: 10px 12px; }
.hunt-or { text-align: center; font-size: 12px; color: var(--text-5); position: relative; }
.hunt-reg__drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  min-height: 120px; border: 1.5px dashed var(--line-2); border-radius: var(--radius-md); color: var(--text-4); cursor: pointer; }
.hunt-reg__drop:hover { border-color: var(--arka-accent-soft); color: var(--arka-accent); }
.hunt-reg__notice { font-size: 12.5px; line-height: 1.6; color: var(--arka-accent-deep); background: var(--arka-accent-bg); border-radius: var(--radius-md); padding: 12px 14px; }

/* 토글 스위치(제보 시 알림) */
.hunt-toggle { flex: 0 0 auto; width: 40px; height: 22px; border-radius: 22px; background: var(--line-2); position: relative; transition: background .15s; }
.hunt-toggle.is-on { background: var(--arka-accent); }
.hunt-toggle__knob { position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; }
.hunt-toggle.is-on .hunt-toggle__knob { transform: translateX(18px); }

@media (max-width: 767px) {
  .hunt-dt__head { gap: 12px; }
  .hunt-dt__thumb { width: 88px; height: 88px; }
  .hunt-dt__title { font-size: 20px; }
  .hunt-dt__actions { flex-direction: column; }
  .hunt-rep__src { max-width: 150px; }
}

/* 수배 등록 참고 이미지 드롭존 — 실제 업로드 미리보기(#6) */
.hunt-reg__drop.is-drag { border-color: var(--arka-accent); background: var(--arka-accent-bg); }
.hunt-reg__drop.has-img { position: relative; padding: 0; min-height: 0; border-style: solid; overflow: hidden; }
.hunt-reg__preview { display: block; width: 100%; max-height: 260px; object-fit: contain; background: var(--bg-soft); }
.hunt-reg__rm { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%;
  background: rgba(0,0,0,.55); color: #fff; font-size: 18px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
.hunt-reg__rm:hover { background: rgba(0,0,0,.75); }

/* ============================================================================
 * 게시글 작성 — 제품 태그 핀 (#8: 표시 전용 핀 + 모달 pinstage 에서 위치 조정)
 * ==========================================================================*/
.pw-photo { position: relative; }
.pw-pin { position: absolute; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px; border-radius: var(--radius-pill); background: var(--arka-accent); color: #fff;
  font-size: 11px; font-weight: 600; box-shadow: 0 1px 4px rgba(0,0,0,.25); white-space: nowrap; z-index: 2; }
.pw-pin__label { max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
.pw-pin--static { pointer-events: none; }                 /* 메인 사진 핀 = 표시 전용 */
.pw-pin--edit { cursor: grab; }
.pw-pin--edit:active { cursor: grabbing; }
.pw-pinstage { position: relative; width: 100%; aspect-ratio: 4 / 3; border-radius: var(--radius-md);
  overflow: hidden; background: var(--bg-soft); cursor: crosshair; }
.pw-pinstage img { width: 100%; height: 100%; object-fit: contain; display: block; user-select: none; -webkit-user-drag: none; }

/* ============================================================================
 * 매장(장소) 검색 모달 — 좌: 검색결과 / 우: 실 네이버지도.
 *   ★공용이다: 글쓰기 제품태그(post/write.html)와 수배 상세 「찾았어요 제보」(hunt/detail.html)가
 *   같은 모달을 쓴다. 종전엔 write.html 인라인 <style> 에만 있어서 제보 쪽에서 재사용할 수 없었다.
 * ==========================================================================*/
.store-modal { display: flex; flex-direction: column; gap: 12px; width: 100%; }   /* 폭은 .arka-modal--wide 카드가 결정 */
.store-modal__cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.store-list { display: flex; flex-direction: column; gap: 8px; max-height: 320px; overflow-y: auto; }
.store-item { display: flex; align-items: center; gap: 10px; text-align: left; width: 100%; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--radius-md); background: #fff; cursor: pointer; transition: border-color .14s, background .14s; }
.store-item:hover { border-color: var(--arka-accent-soft); }
.store-item.is-active { border-color: var(--arka-accent); background: var(--arka-accent-bg); }
.store-item__ic { color: var(--arka-accent); flex: 0 0 auto; }
.store-item__body { min-width: 0; }
.store-item__name { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.store-item__addr { font-size: 11.5px; color: var(--text-4); margin-top: 2px; }
/* 실제 네이버 지도가 들어가는 자리(종전엔 '지도 API' 배지가 붙은 모눈 목업이었다).
   flex 중앙정렬·모눈 배경 제거 — 지도 타일은 절대배치라 부모 flex 가 레이아웃을 틀어놓는다.
   높이를 명시하는 이유: 지도 SDK 가 offsetHeight 로 크기를 잡는다. */
.store-map { position: relative; height: 260px; border-radius: var(--radius-md); overflow: hidden; background: var(--surface-2, #eef0f3); }
@media (max-width: 767px) {
  .store-map { height: 200px; }
  .store-modal__cols { grid-template-columns: 1fr; }
}

/* ============================================================================
 * [야간 Track A-P1] 소형폰(≤480) 공통 — 헤딩 스텝다운 + 버튼바 줄바꿈(additive). ≤480 국한(무회귀).
 * ==========================================================================*/
@media (max-width: 480px) {
  h1, .arka-h1 { font-size: 21px; }
  h2, .arka-h2 { font-size: 18px; }
  .arka-modal__actions { flex-wrap: wrap; }
  .arka-modal__actions > .arka-btn { flex: 1 1 auto; }
}

/* #16 소모임 가입심사 반려 알림 — 코어가 CONTENT 에 '…\n사유: …' 개행을 담아 발행한다.
   .arka-noti__body 는 CSS 미스타일(기본 white-space:normal)이라 개행이 공백으로 접혀 사유가 한 줄에 붙었다.
   pre-line 으로 개행만 보존(연속 공백은 접힘). white-space 는 상속되어 본문 텍스트 span 까지 적용되고,
   메타(아이콘·시간)는 개행이 없어 영향 없다. */
.arka-noti__body { white-space: pre-line; }
