/* 시군구 페이지 + SPA 동네 탭 공용 (2026-09-06). 서버 페이지와 index.html 둘 다 <link>로 읽는다 */
.rg-crumb { font-size: .74rem; color: var(--muted); margin-bottom: 4px; } .rg-crumb a { color: var(--blue); text-decoration: none; }
.rg-h1 { font-size: 1.4rem; color: var(--bright); letter-spacing: -.3px; line-height: 1.3; margin: 0 0 4px; }
.rg-sub { color: var(--muted); font-size: .82rem; margin-bottom: 12px; }
.rg-kpi { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.rg-kpi > div { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; min-width: 0; }
.rg-kpi .k { display: block; font-size: .7rem; color: var(--muted); }
.rg-kpi b { display: block; font-size: 1.3rem; color: var(--bright); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rg-kpi i { display: block; font-style: normal; font-size: .7rem; color: var(--muted); } .rg-kpi i.up, .rg .up { color: #c0392b; } .rg-kpi i.dn, .rg .dn { color: #2563eb; }
.rg-btns { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 4px; } .rg-btns a { text-decoration: none; }
/* 서버 페이지엔 index.html의 .ta-primary/.ta-mini가 없어 여기서도 정의한다(2026-09-07: 파란 버튼이 흰 글씨만 남아 안 보였다) */
.rg-btns .ta-primary { border: none; background: var(--blue); color: #fff; font: inherit; font-weight: 700; font-size: .82rem; border-radius: 8px; cursor: pointer; }
.rg-btns .ta-mini { border: 1px solid var(--border); background: var(--bg); color: var(--muted); font: inherit; font-size: .74rem; padding: 7px 11px; border-radius: 7px; cursor: pointer; white-space: nowrap; display: inline-block; }
.rg-pri { width: auto !important; padding: 8px 14px !important; display: inline-block; color: #fff; }
.rg-h2 { font-size: 1.02rem; color: var(--bright); margin: 22px 0 8px; } .rg-h2 small { color: var(--muted); font-weight: 400; font-size: .74rem; margin-left: 6px; }
.rg-tbl { width: 100%; border-collapse: collapse; font-size: .82rem; }
.rg-tbl th, .rg-tbl td { border-bottom: 1px solid var(--border); padding: 7px 8px; text-align: right; white-space: nowrap; }
.rg-tbl th { color: var(--muted); font-weight: 500; background: var(--surface); }
.rg-tbl th:nth-child(-n+3), .rg-tbl td:nth-child(-n+3) { text-align: left; } .rg-tbl td a { color: var(--bright); text-decoration: none; font-weight: 700; }
.tbl-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 10px; }
.rg-n { display: inline-flex; width: 22px; height: 22px; border-radius: 6px; background: var(--surface); color: var(--muted); font-weight: 800; font-size: .74rem; align-items: center; justify-content: center; }
.rg-n.top { background: var(--blue); color: #fff; }
.rg-chip { display: inline-block; background: var(--blue); color: #fff; font-weight: 800; font-size: .64rem; padding: 1px 6px; border-radius: 999px; margin-left: 4px; vertical-align: 1px; }
.rg-note { margin: 8px 0 0; color: var(--muted); font-size: .8rem; line-height: 1.6; }
.rg-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.rg-card { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; min-width: 0; }
.rg-card .t { font-weight: 800; color: var(--bright); font-size: .9rem; margin-bottom: 6px; display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; } .rg-card .t small { color: var(--muted); font-weight: 400; font-size: .7rem; }
.rg-card .li { display: flex; align-items: center; gap: 8px; padding: 5px 0; border-bottom: 1px solid #ececf0; font-size: .8rem; } .rg-card .li:last-of-type { border-bottom: 0; }
.rg-card .li .nm { font-weight: 700; color: var(--bright); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rg-card .li .sb { color: var(--muted); font-size: .7rem; white-space: nowrap; } .rg-card .li .v { margin-left: auto; font-weight: 800; color: var(--bright); white-space: nowrap; }
.rg-card .cd-spark { display: block; width: 100%; height: auto; }
.rg-months { display: grid; grid-template-columns: repeat(6, 1fr); gap: 2px 4px; margin-top: 6px; font-size: .7rem; color: var(--bright); font-weight: 700; }
.rg-months span i { display: block; font-style: normal; font-weight: 400; color: var(--muted); font-size: .62rem; }
.rg-p { font-size: .82rem; line-height: 1.7; margin: 0; } .rg-empty { color: var(--muted); font-size: .78rem; padding: 6px 0; }
.rg-faq > div { border-bottom: 1px solid var(--border); padding: 8px 0; font-size: .84rem; } .rg-faq b { display: block; color: var(--bright); margin-bottom: 2px; } .rg-faq span { color: var(--muted); line-height: 1.6; }
.rg-src { font-size: .72rem; color: var(--muted); margin-top: 18px; line-height: 1.7; }
@media (max-width: 768px) { .rg-kpi, .rg-grid2 { grid-template-columns: 1fr 1fr; } .rg-h1 { font-size: 1.15rem; } .rg-months { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 480px) { .rg-grid2 { grid-template-columns: 1fr; } }
