/* 개체 페이지 (동 × 업종) 전용 — templates/pages/area_biz.html */

/* 표지 — 가게 10곳 그림 (열 곳 중 ○곳) · 상점 아이콘: 간판 · 줄무늬 차양 · 진열창 · 문 / 닫은 가게는 회색 + 셔터 */
.dots { margin-top: 18px; }
.dots-h { font-size: 14px; font-weight: 700; color: var(--text-2); margin-bottom: 6px; }
.shops { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px 12px; max-width: 300px; }
.shop { width: 100%; height: auto; display: block; overflow: visible; }
.s-ic { fill: var(--blue); }
.shop.x .s-ic { fill: #b9c1ce; }
.s-xc { fill: var(--coral); stroke: #fff; stroke-width: 1.2; }
.s-xl { stroke: #fff; stroke-width: 1.6; stroke-linecap: round; }
@media (min-width: 640px) { .shops { grid-template-columns: repeat(10, 1fr); max-width: 560px; } }
.dots-key { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 8px; font-size: 14px; color: var(--text-2); }
.dots-key span { display: inline-flex; align-items: center; gap: 5px; }
.dots-key .shop { width: 22px; flex: 0 0 22px; }
.k-x { color: #c2412b; font-weight: 600; }
.kpi { margin-top: 16px; }
.kpi .tile:first-child dd { color: var(--blue); }
.kpi { grid-template-columns: repeat(3, 1fr); gap: 6px; }
.kpi .tile { padding: 10px 10px; }
.kpi .tile dd { font-size: 18px; }
@media (min-width: 640px) { .kpi { gap: 8px; } .kpi .tile { padding: 12px 14px; } .kpi .tile dd { font-size: 22px; } }

/* P2 2×2 — 위가 임대료 높음, 오른쪽이 생존 높음 (screens.md 3장) */
.quad { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; position: relative; padding-bottom: 22px; max-width: 520px; }
.q { min-height: 74px; padding: 10px 12px; border-radius: var(--r-s); background: #f4f6fa; color: var(--text-3); font-size: 15px; display: flex; flex-direction: column; justify-content: space-between; }
.q b { font-weight: 700; }
.q em { font-style: normal; font-size: 14px; font-weight: 800; align-self: flex-end; padding: 1px 8px; border-radius: 999px; background: #fff; color: var(--text); }
.q.on { color: #fff; }
.q-high-high.on { background: var(--blue); }
.q-high-low.on { background: var(--coral); }
.q-low-high.on { background: var(--teal-text); }
.q-low-low.on { background: #8a94a8; }
.q-y, .q-x { position: absolute; bottom: 0; font-size: 12.5px; color: var(--text-3); }
.q-y { left: 0; }
.q-x { right: 0; }

/* P7 개업연도 — 세로 막대 */
.ychart { display: flex; gap: 4px; height: 200px; padding-top: 4px; }
.ycol { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; font-variant-numeric: tabular-nums; }
.yn { margin-bottom: 3px; font-size: 12.5px; font-weight: 700; color: var(--text-2); }
.ya { flex: 1; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; }
.yb { width: 100%; max-width: 34px; min-height: 2px; border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, var(--sky), var(--blue)); }
.yy { margin-top: 6px; font-size: 12px; color: var(--text-3); white-space: nowrap; }
.yp { margin-top: 2px; font-size: 12.5px; font-weight: 700; color: var(--teal-text); white-space: nowrap; }
.yp.na { font-weight: 500; color: #a9b2c3; }

/* P2 판정 보류 — 칸을 못 정한 것도 결론이라 눈에 띄게 (2026-10-07 남덕호님) */
.hold { margin-bottom: 14px; padding: 12px 14px 12px 44px; border-radius: var(--r-s); background: #fff4e0; border: 1.5px solid var(--amber); position: relative; }
.hold::before { content: "!"; position: absolute; left: 14px; top: 12px; width: 20px; height: 20px; border-radius: 50%; background: var(--amber); color: #fff; font-weight: 800; font-size: 14px; line-height: 20px; text-align: center; }
.hold-h { font-size: 16px; font-weight: 800; color: #7a4600; }
.hold ul { margin-top: 4px; font-size: 15.5px; color: #5c3b00; }
.hold li + li { margin-top: 2px; }
.quad.dim .q { opacity: .55; }
@media (max-width: 639px) {
  .ychart { gap: 2px; }
  .yp { font-size: 11.5px; letter-spacing: -.04em; }
}

/* 표본 30곳 미만 업종 한 줄 (partials/small_cats.html) */
.small-cats { margin-top: 12px; padding: 10px 12px; border-radius: var(--r-s); background: var(--soft); font-size: 14px; line-height: 1.7; color: var(--text-2); }
.small-cats b { display: block; font-size: 13.5px; color: var(--text-3); font-weight: 600; }

/* 허브 — 이웃 동 칩 (area_hub.html) */
.chips-list { display: flex; flex-wrap: wrap; gap: 6px; }
.chips-list a { padding: 6px 12px; border-radius: 999px; font-size: 14.5px; font-weight: 600; color: var(--text-2); background: var(--soft); }
.chips-list a:hover { text-decoration: none; color: var(--blue); }
.small-h { margin-top: 14px; font-size: 13.5px; font-weight: 600; color: var(--text-3); }
.small-t td { color: var(--text-3); }

/* 영업기간 카드 — partials/duration.html (10-09) */
.dur-h { margin: 14px 0 6px; font-size: 13.5px; font-weight: 700; color: var(--text-3); }
.dur-bar { display: flex; height: 14px; border-radius: 7px; overflow: hidden; background: var(--line); }
.dur-bar i, .dur-key i { display: block; }
.dur-key { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 8px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--text-2); }
.dur-key li { display: inline-flex; align-items: center; gap: 5px; }
.dur-key i { width: 10px; height: 10px; border-radius: 3px; }
.dur-key b { font-weight: 700; color: var(--text); }
.dur-a1 { background: #f4a261; } .dur-a2 { background: #f6c97a; } .dur-a3 { background: #9cc5f0; } .dur-a4 { background: #4d8fe0; } .dur-a5 { background: #0b50c8; }
