/* 동 페이지 보강 카드 — templates/partials/dong_extra.html (10-08) */
.agebars { display: grid; gap: 6px; margin: 14px 0 4px; }
.ab { display: grid; grid-template-columns: 74px 1fr 44px; align-items: center; gap: 8px; font-size: 14px; }
.ab-l { color: var(--text-2); }
.ab-bar { height: 12px; border-radius: 6px; background: var(--soft); overflow: hidden; }
.ab-bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--sky), var(--blue)); }
.ab-v { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.mixbar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; margin: 14px 0 6px; gap: 2px; }
.mixbar span:nth-child(1), .mixkey span:nth-child(1) i { background: var(--blue); }
.mixbar span:nth-child(2), .mixkey span:nth-child(2) i { background: var(--sky); }
.mixbar span:nth-child(3), .mixkey span:nth-child(3) i { background: var(--teal); }
.mixbar span:nth-child(4), .mixkey span:nth-child(4) i { background: #8fb3f0; }
.mixbar span:nth-child(5), .mixkey span:nth-child(5) i { background: #9adfd5; }
.mixbar span:nth-child(6), .mixkey span:nth-child(6) i { background: #c9d4e4; }
.mixkey { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; color: var(--text-2); }
.mixkey i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 4px; vertical-align: 0; }
/* 해마다 점포 수 (10-08) */
.sbars { display: flex; align-items: flex-end; gap: 6px; height: 90px; padding-bottom: 18px; margin: 12px 0 4px; }
.sb { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; }
.sb i { display: block; width: 100%; max-width: 30px; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--sky), var(--blue)); min-height: 2px; }
.sb span { position: absolute; bottom: -17px; font-size: 11px; color: var(--text-3); white-space: nowrap; }
.sb:hover::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%); padding: 5px 9px; border-radius: 8px; background: #121a2b; color: #fff; font-size: 12px; white-space: nowrap; pointer-events: none; z-index: 2; }
.up { color: var(--blue); font-weight: 700; } .dn { color: #c2410c; font-weight: 700; }

/* 시간대별 생활인구 (#living · 10-08 B3) */
.lbars { display: flex; align-items: flex-end; gap: 3px; height: 150px; margin: 10px 0 4px; }
.lb { position: relative; flex: 1; height: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 1px; }
.lb i { display: block; width: 45%; border-radius: 3px 3px 0 0; min-height: 1px; }
.lb i.wd, .lkey i.wd { background: var(--blue); } .lb i.we, .lkey i.we { background: #f59e0b; }
.lb span { position: absolute; bottom: -18px; font-size: 11px; color: #6b7280; }
.lb:hover::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%); padding: 5px 9px; border-radius: 8px; background: #121a2b; color: #fff; font-size: 12px; white-space: nowrap; pointer-events: none; z-index: 2; }
.lkey { display: flex; gap: 14px; margin: 24px 0 6px; font-size: 13px; color: #4b5563; }
.lkey i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }

/* 점포 카드 두 칸 — 왼쪽 숫자 · 막대 · 구성 / 오른쪽 많은 업종 (10-09 「페이지 구성」) */
.st-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 28px; align-items: start; }
.st-grid .tiles.st-one { grid-template-columns: 1fr; }
@media (max-width: 720px) { .st-grid { grid-template-columns: 1fr; } }
/* 동 종합 「이 동의 프랜차이즈」 (10-09 · brand_store) */
.fr-chips b { margin-left: 3px; color: var(--blue); font-variant-numeric: tabular-nums; }
.fr-chips .muted { margin-left: 5px; font-size: 12px; }
/* 대중교통 카드 안의 서울 역별 표 · 시군구 「대중교통 · 새 상가」 (10-12) */
.tr-h { margin: 16px 0 8px; font-size: 15px; font-weight: 800; }
.tr-h .muted { font-size: 12.5px; font-weight: 400; margin-left: 6px; }
.sgm { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 10px; }
@media (max-width: 720px) { .sgm { grid-template-columns: 1fr; } }
.sgm .dur-h { margin: 4px 0 6px; font-size: 13.5px; font-weight: 700; color: var(--text-3); }
.sgm .dur-h .muted { font-weight: 400; font-size: 12px; }
/* 술집 묶음 안내 · 동별 프랜차이즈 업종 보기 (10-13) */
.bar-note { margin-top: 12px; padding: 12px 14px; border-radius: var(--r-s); background: #fff8ec; font-size: 14.5px; line-height: 1.7; color: var(--text-2); }
.bar-note ul { margin: 6px 0; padding-left: 18px; } .bar-note li { padding: 1px 0; }
.fr-seg-h { margin-top: 14px; }
.fr-seg details { border-top: 1px solid var(--line); } .fr-seg details:last-child { border-bottom: 1px solid var(--line); }
.fr-seg summary { padding: 10px 2px; cursor: pointer; font-size: 15px; font-weight: 600; }
.fr-seg summary b { color: var(--blue); margin-left: 4px; }
.fr-seg .chips-list { padding: 2px 0 12px; }
