/* 시드옥션 법원 경매 사건 페이지(/case/...) — guide.css 위에 얹는 추가 스타일. 모바일 먼저, 정보는 짧게. */

/* 상태 배지 + 경매일 */
.c-top { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.c-badge { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 8px; font-size: 14px; font-weight: 700; letter-spacing: -.01em; }
.c-badge-sold { background: var(--t-ink); color: #fff; }
.c-badge-live { background: var(--t-blue-50); color: var(--t-blue-press); }
.c-badge-fail { background: var(--t-bg2); color: var(--t-sub); }
.c-when { font-size: 15px; font-weight: 500; color: var(--t-sub); }
.c-dday { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: var(--t-bg2); color: var(--t-sub); font-size: 13px; font-weight: 600; vertical-align: 1px; }
.c-when .c-dday, .c-facts .c-dday { color: var(--t-blue-press); background: var(--t-blue-50); }

.c-case h1 { margin-top: 12px !important; font-size: clamp(26px, 4vw, 38px) !important; }
.g-main p.c-addr { margin-top: 10px; font-size: 15px; color: var(--t-mute); line-height: 1.6; }

/* 가격 카드: 큰 숫자 하나 + 감정가 */
.c-price { margin-top: 24px; background: var(--t-bg3); border: 1px solid var(--t-line); border-radius: 20px; padding: 22px 22px 18px; }
.c-price-main > span:first-child { display: block; font-size: 15px; font-weight: 600; color: var(--t-sub); }
.c-price-main b { display: block; margin-top: 2px; font-size: clamp(30px, 5vw, 40px); line-height: 1.25; font-weight: 800; letter-spacing: -.03em; color: var(--t-ink); font-variant-numeric: tabular-nums; }
.c-ratio { display: inline-block; margin-top: 8px; padding: 3px 10px; border-radius: 999px; background: var(--t-blue-50); color: var(--t-blue-press); font-size: 14px; font-weight: 700; }
.c-price-sub { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--t-line); display: flex; flex-wrap: wrap; gap: 6px 28px; }
.c-price-sub:empty { display: none; }
.c-price-main + .c-price-sub:empty { display: none; }
.c-price-sub div { display: flex; gap: 8px; align-items: baseline; }
.c-price-sub dt { font-size: 14px; color: var(--t-mute); }
.c-price-sub dd { font-size: 16px; color: var(--t-ink2); }
.c-price-sub b.num { font-weight: 700; font-variant-numeric: tabular-nums; }

/* 사건 정보 */
.c-facts { margin-top: 12px; border: 1px solid var(--t-line); border-radius: 16px; padding: 4px 18px; }
.c-facts > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--t-line); }
.c-facts > div:last-child { border-bottom: 0; }
.c-facts dt { flex: none; font-size: 15px; color: var(--t-mute); }
.c-facts dd { font-size: 15px; font-weight: 600; color: var(--t-ink); text-align: right; }

.c-items table { min-width: 560px; font-size: 15px; }
.c-items small, .c-hub small { color: var(--t-mute); font-size: 13px; font-weight: 400; }
.c-items td:nth-child(2) { min-width: 200px; }

/* CTA: 버튼 하나. 데스크톱은 카드 안, 모바일은 화면 아래에 붙는다. */
.c-cta { margin-top: 32px; background: var(--t-ink); border-radius: 24px; padding: 28px 24px; text-align: center; }
.g-main .c-cta h2 { margin-top: 0; color: #fff; font-size: clamp(21px, 2.6vw, 26px); }
.c-cta p { margin-top: 8px !important; color: rgba(255,255,255,.72) !important; font-size: 16px; line-height: 1.6; }
.c-cta-btn { display: block; max-width: 360px; margin: 20px auto 0; background: var(--t-blue); color: #fff; font-size: 17px; font-weight: 700; padding: 17px 20px; border-radius: 16px; text-decoration: none; text-align: center; }
.c-cta-btn:hover, .c-cta-btn:active { background: var(--t-blue-press); }

.c-more { margin-top: 14px !important; font-size: 15px; }
.c-more a { text-decoration: none; font-weight: 600; }
.g-card span + span { color: var(--t-ink2); font-weight: 600; font-variant-numeric: tabular-nums; }

/* 법원 목록 */
.c-hub table { min-width: 0; font-size: 15px; }
.c-hub td a { font-weight: 600; text-decoration: none; }
.c-hub td a:hover { text-decoration: underline; }
.c-courts { margin-top: 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.c-courts a { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: var(--t-bg2); border-radius: 14px; padding: 14px 16px; text-decoration: none; color: var(--t-ink); font-size: 15px; }
.c-courts a:hover { background: var(--t-line); }
.c-courts span { color: var(--t-mute); font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.c-pager { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 6px; }
.c-pager a, .c-pager b { min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; font-size: 15px; text-decoration: none; }
.c-pager a { background: var(--t-bg2); color: var(--t-ink2); }
.c-pager b { background: var(--t-ink); color: #fff; }

@media (max-width: 640px) {
  .c-hub th:nth-child(3), .c-hub td:nth-child(3) { display: none; }
  .c-price { padding: 20px 18px 16px; }
  .c-cta { margin-top: 24px; padding: 22px 18px; border-radius: 20px; }
  /* 버튼은 화면 아래 고정, 본문은 버튼 높이만큼 여백 */
  body.c-has-cta { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
  .c-has-cta .c-cta-btn { position: fixed; z-index: 20; left: 16px; right: 16px; bottom: calc(12px + env(safe-area-inset-bottom)); max-width: none; margin: 0; box-shadow: 0 8px 24px rgba(25,31,40,.18); }
  .c-has-cta .c-cta::after { content: ""; display: block; height: 4px; }
}
