/* 자동차셈 테마: 월급셈 기본 스타일 위에 강조색만 바꿈 (색 후보는 --car 하나로 교체) */
body.t-car { --car: #f2650a; --car-ink: #d4560a; --car-soft: #fff1e6; --car-sky: #ffe7d4;
  --blue: var(--car); --blue-ink: var(--car-ink); --blue-soft: var(--car-soft); }
body.t-car .ct-scroll { display: contents; }
.ic { --s: 44px; width: var(--s); height: var(--s); flex: none; display: inline-grid; place-items: center; border-radius: 30%; color: var(--blue-ink); background: var(--blue-soft); }
.ic svg { width: 54%; height: 54%; }
.hero-ic.ic { display: grid; margin: var(--s2) 0 var(--s1); }
.bn-cta .ic { --s: 40px; }
.bn-cta.to-b .go { color: #00a661; }

/* 배경: 월급셈·지원금셈처럼 연한 강조색 하늘 + 모눈 */
body.t-car::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 560px; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(242,244,246,0) 0%, var(--bg) 100%),
    linear-gradient(color-mix(in srgb, var(--car) 7%, transparent) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, color-mix(in srgb, var(--car) 7%, transparent) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(180deg, var(--car-sky) 0%, color-mix(in srgb, var(--car-sky) 50%, #fff) 45%, var(--bg) 100%); }
body.t-car:not(.home)::before { height: 320px; }
body.t-car::after { display: none; }

/* 지역 선택 */
.region-btn { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font: inherit; font-weight: 700; font-size: 15.5px; color: var(--ink); cursor: pointer; }
.region-btn svg { color: var(--muted); }
.loc-btn { width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--blue-ink); display: grid; place-items: center; cursor: pointer; flex: none; }
.loc-btn.busy { opacity: .5; }
.data-bar { display: flex; gap: 8px; align-items: center; }
.car-hero .region-btn { margin-top: var(--s5); }
.rg-sheet { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; }
.rg-sheet[hidden] { display: none; }
.rg-back { position: absolute; inset: 0; background: rgba(0,0,0,.38); }
.rg-panel { position: relative; width: min(560px, 100%); max-height: 82vh; overflow: auto; background: #fff; border-radius: 22px 22px 0 0; padding: 18px 16px 28px; animation: rgUp .28s cubic-bezier(.22,.61,.36,1); }
@media (min-width: 640px) { .rg-sheet { align-items: center; } .rg-panel { border-radius: 22px; } }
@keyframes rgUp { from { transform: translateY(24px); opacity: 0; } }
.rg-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.rg-title { flex: 1; font-size: 18px; }
.rg-close { width: 36px; height: 36px; border: 0; border-radius: 10px; background: var(--bg); font-size: 18px; cursor: pointer; color: var(--ink-2); }
.rg-here { width: 100%; height: 46px; border: 0; border-radius: 12px; background: var(--blue-soft); color: var(--blue-ink); font: inherit; font-weight: 700; cursor: pointer; margin-bottom: 12px; }
.rg-sido { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.rg-sido button { height: 38px; border: 0; border-radius: 10px; background: var(--bg); font: inherit; font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.rg-sido button[aria-selected="true"] { background: var(--ink); color: #fff; }
.rg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.rg-grid button { height: 46px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font: inherit; font-size: 14.5px; font-weight: 600; color: var(--ink); cursor: pointer; padding: 0 4px; word-break: keep-all; line-height: 1.2; }
.rg-grid button[aria-current="true"] { border-color: var(--blue); color: var(--blue-ink); background: var(--blue-soft); }
html.rg-open { overflow: hidden; }

/* 칩 필터 */
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px 0; }
.chips::-webkit-scrollbar { display: none; }
.chips button { flex: none; height: 38px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font: inherit; font-size: 14.5px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.chips button[aria-checked="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* 데이터 목록 */
.data-page .stack > * + * { margin-top: 12px; }
.data-page .page-hero { padding-bottom: 8px; }
.loading, .empty { color: var(--muted); font-size: 15px; margin: 8px 2px; }
.loading::before { content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 8px; vertical-align: -2px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--blue); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li + li { border-top: 1px solid var(--line); }
.rows a { display: flex; align-items: center; gap: 12px; padding: 14px 2px; text-decoration: none; color: inherit; }
.rows .rank { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 8px; background: var(--bg); font-size: 13px; font-weight: 800; color: var(--muted); }
.rows .rank.top { background: var(--blue-soft); color: var(--blue-ink); }
.rows .main { flex: 1; min-width: 0; }
.rows .main b { display: block; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rows .sub { display: block; font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.rows .sub em { font-style: normal; color: #e5484d; }
.rows .price { font-weight: 800; font-size: 17px; font-variant-numeric: tabular-nums; }
.rows li:first-child .price { color: var(--blue-ink); }
.ev-rows .cnt { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.pill { font-size: 12.5px; font-weight: 700; padding: 4px 8px; border-radius: 8px; background: var(--bg); color: var(--muted); white-space: nowrap; }
.pill.on { background: #e6f7ef; color: #0a8a5c; }
.pill.f.on { background: #e6f7ef; color: #0a8a5c; }
.sum { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 14.5px; color: var(--ink-2); padding: 2px 2px 10px; border-bottom: 1px solid var(--line); }
.sum b { color: var(--ink); }
.accent { color: var(--blue-ink) !important; }
.more-note { font-size: 13.5px; color: var(--muted); margin: 12px 2px 4px; }
.avg-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.avg-row .k { display: block; font-size: 13px; color: var(--muted); font-weight: 600; }
.avg-row .v { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.avg-row .diff { display: block; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.avg-row .diff.up { color: #e5484d; } .avg-row .diff.dn { color: #2f7cf6; }
.save { margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--blue-soft); font-size: 14.5px; color: var(--ink-2); }
.save b { color: var(--blue-ink); }
.demo-badge { display: block; margin-top: 10px; font-size: 12.5px; color: var(--muted); }

/* 홈: 오늘 내 지역 */
.card.today { margin-top: 14px; padding: 8px 20px 6px; }
.today-h { display: flex; align-items: center; justify-content: space-between; padding: 8px 0 6px; }
.region-btn.plain { height: 36px; padding: 0 6px 0 0; border: 0; background: none; font-size: 17px; font-weight: 800; }
.today-demo { display: none; font-size: 12.5px; color: var(--muted); }
.today.is-demo .today-demo { display: inline; }
.today-row { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); text-decoration: none; color: inherit; }
.today-row .tk { width: 52px; white-space: nowrap; flex: none; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.today-row .ts { flex: 1; min-width: 0; font-size: 13.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.today-row .tv { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.today-row[data-lv="good"] .tv { color: #0a8a5c; } .today-row[data-lv="mid"] .tv { color: #c77700; } .today-row[data-lv="bad"] .tv { color: #e5484d; }

/* 세차 날씨 */
.wash-top { display: flex; gap: 16px; align-items: center; }
.wash-score { width: 72px; height: 72px; flex: none; border-radius: 22px; display: grid; place-items: center; font-size: 28px; font-weight: 800; color: #fff; background: #0ea371; }
.lv-mid .wash-score { background: #f5a524; } .lv-bad .wash-score { background: #e5484d; }
.wash-top strong { font-size: 21px; }
.wash-top ul { margin: 4px 0 0; padding: 0; list-style: none; font-size: 14.5px; color: var(--ink-2); }
.card-h { font-size: 16px; margin: 0 0 12px; }
.day-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.day { display: flex; flex-direction: column; gap: 2px; padding: 10px 4px; border-radius: 14px; background: var(--bg); }
.day .dl { font-weight: 700; font-size: 14px; } .day .di { font-size: 15px; font-weight: 700; color: var(--ink); margin: 4px 0; }
.day .dt { font-size: 14px; color: var(--muted); } .day .dt b { color: var(--ink); }
.day .dp { font-size: 13px; color: var(--muted); } .day .dp.wet { color: #2f7cf6; font-weight: 700; }
.air-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; }
.air-row .g { padding: 12px; border-radius: 14px; background: var(--bg); display: flex; flex-direction: column; }
.air-row .k { font-size: 13px; color: var(--muted); font-weight: 600; } .air-row b { font-size: 18px; } .air-row .s { font-size: 12.5px; color: var(--muted); }
.air-row .g0 b { color: #2f7cf6; } .air-row .g1 b { color: #0a8a5c; } .air-row .g2 b { color: #f08c00; } .air-row .g3 b { color: #e5484d; }
.meta { font-size: 13px; color: var(--muted); margin: 10px 2px 0; }

/* 리콜 */
#vin { text-transform: uppercase; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.ok-box, .warn-box { border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.ok-box { background: #e6f7ef; } .ok-box b { color: #0a8a5c; font-size: 17px; }
.warn-box { background: #fff0f0; } .warn-box b { color: #e5484d; font-size: 17px; }
.warn-box .rc { background: #fff; border-radius: 10px; padding: 10px 12px; margin-top: 8px; }
.warn-box .rc .m { font-size: 13px; font-weight: 700; color: var(--muted); }
.warn-box .rc p { margin: 4px 0; font-size: 14.5px; }
.ok-box span, .warn-box .tip { font-size: 14px; color: var(--ink-2); }
.result-box .btn.ghost { margin-top: 12px; background: var(--bg); color: var(--ink); box-shadow: none; }

/* 홈 히어로: 청약셈처럼 캐릭터 없는 강조색 카드 */
body.t-car .hero-home { margin-top: 28px;
  background:
    radial-gradient(circle at 100% 100%, rgba(255,255,255,.16) 0 120px, transparent 121px),
    radial-gradient(circle at 0% 0%, rgba(255,255,255,.10) 0 90px, transparent 91px),
    linear-gradient(140deg, var(--car-ink) 0%, var(--car) 55%, color-mix(in srgb, var(--car) 70%, #fff) 100%);
  box-shadow: 0 24px 48px -24px color-mix(in srgb, var(--car) 60%, transparent); }
body.t-car .hero-home::before { display: none; }
.car-cta { margin-top: 22px; }
.car-cta .ci, .car-cta .ic { background: var(--blue-soft); border-radius: 12px; }
@media (max-width: 720px) { body.t-car .hero-home { margin-top: 16px; } }
@media (max-width: 560px) { body.t-car .nav { gap: 14px; font-size: 14.5px; } body.t-car .nav a:last-child { display: none; } }
@media (max-width: 430px) { body.t-car .nav { gap: 12px; } body.t-car .nav a:nth-child(n+3) { display: none; } body.t-car .brand { font-size: 18px; } }

/* 목록 / 지도 */
.view-tg { margin-left: auto; display: flex; padding: 3px; border-radius: 12px; background: var(--card); box-shadow: 0 1px 0 var(--line); }
.view-tg button { height: 36px; padding: 0 14px; border: 0; border-radius: 9px; background: none; font: inherit; font-size: 14px; font-weight: 700; color: var(--muted); cursor: pointer; }
.view-tg button[aria-pressed="true"] { background: var(--blue-soft); color: var(--blue-ink); }
.map-box { height: min(68vh, 560px); border-radius: 20px; overflow: hidden; background: var(--card); }
.map-box[hidden], .st-list[hidden] { display: none; }
.map-pin { display: flex; flex-direction: column; align-items: center; padding: 5px 9px; border-radius: 10px; background: #fff; color: var(--ink); text-decoration: none; box-shadow: 0 4px 12px rgba(0,0,0,.16); white-space: nowrap; position: relative; font-size: 12px; line-height: 1.25; }
.map-pin::after { content: ""; position: absolute; left: 50%; bottom: -5px; margin-left: -5px; border: 5px solid transparent; border-bottom: 0; border-top-color: #fff; }
.map-pin b { font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }
.map-pin span { max-width: 110px; overflow: hidden; text-overflow: ellipsis; color: var(--muted); font-size: 11px; }
.map-pin.hot { background: var(--blue); color: #fff; } .map-pin.hot::after { border-top-color: var(--blue); } .map-pin.hot span { color: rgba(255,255,255,.85); }
.map-pin.off { opacity: .7; }
