/* 집비 PC — 3단(사이드바 · 카드 피드 · 위젯 레일). 모바일(m/)과 섞지 않는다.
   색 규칙: 비쌈·상승 = 빨강 ▲ / 쌈·하락 = 파랑 ▼ (한국 금융 관례). 장기수선충당금은 중립(브랜드 녹색).
   브랜드 녹색은 모바일과 같은 값을 쓴다. */
:root {
    --bg: #f3f4f6;
    --card: #ffffff;
    --line: #e8eaed;
    --line-2: #dde0e4;
    --ink: #191c20;
    --ink-2: #4a515b;
    --mute: #7b828c;
    --faint: #b3b8bf;
    --chip: #f2f3f5;
    --head: #f7f8fa;
    --brand: #11a85a;
    --brand-d: #0b8a48;
    --brand-w: #e8f7ee;
    --brand-2: #34c47a;
    --up: #e5383b;
    --up-w: #fdeeee;
    --down: #2f6fed;
    --down-w: #edf2fe;
    --black: #1b1d21;
    --r-card: 12px;
    --r-sm: 10px;
    --top-h: 60px;
    --side-w: 208px;
    --rail-w: 372px;
    --font: "SUIT Variable", SUIT, "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
    --code: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    padding: var(--top-h) 0 0 var(--side-w);
    background: var(--bg);
    color: var(--ink);
    font: 15px/1.6 var(--font);
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
}
body.side-off { padding-left: 0; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand-d); }
h1, h2, h3, p, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button, input, select { font: inherit; color: inherit; }
code { font-family: var(--code); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.num, .mono { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--mute); font-size: 14px; }
small { font-size: .85em; color: var(--mute); font-weight: 400; }

/* ── 상단 헤더 ─────────────────────────────── */
.top {
    position: fixed; inset: 0 0 auto 0; z-index: 50;
    height: var(--top-h);
    display: flex; align-items: center; gap: 14px;
    padding: 0 24px 0 14px;
    background: #fff;
    border-bottom: 1px solid var(--line-2);
}
.top-burger {
    width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent;
    display: grid; place-items: center; cursor: pointer; color: var(--ink-2);
}
.top-burger:hover { background: var(--chip); }
.top-burger svg { width: 22px; height: 22px; }
.logo { display: flex; align-items: center; }
/* 동 링크 격자(시군구 → 읍면동 허브) */
.emd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; list-style: none; margin: 0; padding: 0; }
.emd-grid a { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); text-decoration: none; }
.emd-grid a:hover { border-color: var(--brand); }
.emd-grid b { font-size: 14px; font-weight: 700; }
.emd-grid span { font-size: 12px; color: var(--mute); }
.kind-tag { display: inline-block; padding: 1px 8px; margin-right: 4px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; }
.pager { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.pager a, .pager span { min-width: 34px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 8px; text-align: center; font-size: 13px; color: var(--ink); text-decoration: none; }
.pager .on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 700; }
.lead-line { font-size: 15px; line-height: 1.7; margin: 0 0 14px; }
/* 워드마크 "집값 말고, 집비." — 집값은 빨간 줄로 지우고 집비를 브랜드 녹색으로 크게(2026-09-30) */
.logo { gap: 10px; margin-right: 20px; text-decoration: none; }
.wordmark { display: inline-flex; align-items: baseline; gap: 5px; white-space: nowrap; line-height: 1; letter-spacing: -0.045em; font-family: "SUIT Variable", SUIT, system-ui, sans-serif; }
.wm-old { position: relative; font-size: 15px; font-weight: 700; color: var(--mute); }
.wm-old::after { content: ""; position: absolute; left: -3px; right: -3px; top: 50%; height: 2.5px; border-radius: 2px; background: #e5484d; transform: rotate(-8deg); }
.wm-mid { font-size: 12.5px; font-weight: 600; color: var(--mute); letter-spacing: -0.02em; }
.wm-new { font-size: 22px; font-weight: 900; color: var(--brand); }
.logo img { display: block; height: 30px; width: auto; }
.logo-mark { width: 28px; height: 28px; }
.logo-word { font-size: 22px; font-weight: 800; letter-spacing: -0.04em; color: var(--brand); }
.logo:hover .logo-word { color: var(--brand-d); }
.top-search {
    position: relative; flex: 0 1 440px;
    display: flex; align-items: center;
}
.top-search svg { position: absolute; left: 16px; width: 18px; height: 18px; color: var(--mute); pointer-events: none; }
.top-search input {
    width: 100%; height: 42px; border: 1px solid transparent; border-radius: 999px;
    background: var(--chip); padding: 0 18px 0 44px; font-size: 15px;
}
.top-search input::placeholder { color: var(--mute); }
.top-search input:focus { outline: none; background: #fff; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-w); }
.top-links { margin-left: auto; display: flex; gap: 18px; font-size: 13px; color: var(--ink-2); }
.top-links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ── 왼쪽 사이드바 ─────────────────────────── */
.side {
    position: fixed; top: var(--top-h); left: 0; bottom: 0; z-index: 40;
    width: var(--side-w);
    display: flex; flex-direction: column;
    background: #fff; border-right: 1px solid var(--line);
    padding: 18px 14px 16px;
    overflow-y: auto;
}
body.side-off .side { display: none; }
.side-nav { display: flex; flex-direction: column; gap: 4px; }
.side-nav a {
    display: flex; align-items: center; gap: 12px;
    height: 42px; padding: 0 14px; border-radius: 8px;
    font-size: 15px; font-weight: 600; color: var(--ink-2);
}
.side-nav a svg { width: 21px; height: 21px; flex: none; }
.side-nav a:hover { background: var(--chip); color: var(--ink); }
.side-nav a.on { background: var(--brand); color: #fff; font-weight: 700; }
.side-nav a.on:hover { background: var(--brand-d); }

.side-recent { margin-top: 26px; padding: 18px 6px 0; border-top: 1px solid var(--line); }
.side-recent h2 { font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 8px; padding: 0 8px; }
.side-recent ol a {
    display: block; padding: 7px 8px; border-radius: 8px;
    font-size: 14px; font-weight: 600; line-height: 1.35;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.side-recent ol a span { display: block; font-size: 12px; font-weight: 400; color: var(--mute); }
.side-recent ol a:hover { background: var(--chip); }
.side-empty { font-size: 12.5px; color: var(--mute); padding: 0 8px; line-height: 1.5; }
.side-foot { margin-top: auto; padding: 18px 8px 0; font-size: 12px; color: var(--mute); }
.side-foot nav { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-bottom: 8px; }
.side-foot a { color: var(--ink-2); }
.side-foot a:hover { text-decoration: underline; }
.side-foot p { line-height: 1.5; }

/* ── 본문 2단 ──────────────────────────────── */
.page {
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--rail-w);
    gap: 20px;
    align-items: start;
    max-width: 1680px;          /* 넓은 모니터에서 양옆이 비지 않게(사용자 피드백 2026-09-29) — 1220 이면 1800 폭에서 좌우 300px 씩 비었다 */
    margin: 0 auto;
    padding: 24px 28px 40px;
}
.feed, .rail { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    --px: 24px;
    padding: 22px var(--px);
}
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.card-head h2 { font-size: 19px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.35; display: flex; align-items: center; gap: 8px; }
.card-head p { margin-top: 4px; font-size: 13px; color: var(--mute); line-height: 1.5; }
.head-link { flex: none; font-size: 13px; color: var(--mute); padding-top: 3px; }
.head-link:hover { color: var(--ink); }

/* 머리 카드 */
.head-card { --px: 26px; padding: 22px var(--px) 24px; }
.eyebrow { font-size: 13px; color: var(--mute); font-weight: 500; margin-bottom: 6px; }
.eyebrow code { font-size: 12px; color: var(--ink-2); }
.head-card h1 { font-size: 26px; line-height: 1.3; font-weight: 800; letter-spacing: -0.04em; }
.head-card h1 small { font-size: 17px; font-weight: 600; color: var(--mute); margin-left: 4px; letter-spacing: -0.02em; }
.head-card h1 em { font-style: normal; color: var(--brand); font-variant-numeric: tabular-nums; }
.head-card .addr { margin-top: 4px; font-size: 13.5px; color: var(--mute); }
.head-card .def { margin-top: 8px; font-size: 16px; color: var(--ink-2); line-height: 1.6; }
.head-note { margin-top: 14px; font-size: 14px; color: var(--ink-2); line-height: 1.7; }
.head-note strong { color: var(--ink); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.5px; color: var(--mute); margin-bottom: 14px; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs i { font-style: normal; color: var(--faint); }
.crumbs [aria-current] { color: var(--ink-2); }

/* 요약 칩 */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.chips li {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 5px 10px; border-radius: 5px; background: var(--chip);
    font-size: 13px; color: var(--ink-2);
}
.chips b { color: var(--ink); font-weight: 700; }
.chip-sep { color: var(--mute); margin-left: 4px; }

/* 증감 ▲▼ */
.dl { display: inline-flex; align-items: center; gap: 1px; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dl i { font-style: normal; font-size: 9px; margin-right: 2px; transform: translateY(-1px); }
.dl-up { color: var(--up); }
.dl-down { color: var(--down); }
.dl-flat, .dl-none { color: var(--mute); font-weight: 500; }
.dl-n { color: var(--brand-d); }
.up { color: var(--up) !important; }
.down { color: var(--down) !important; }

/* 필 탭 */
.pills {
    display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
    margin: 0 -2px; padding: 2px;
}
.pills::-webkit-scrollbar { display: none; }
.pills.wrap { flex-wrap: wrap; overflow: visible; }
.pills a, .pills label {
    flex: none; display: inline-flex; align-items: center; gap: 5px;
    height: 34px; padding: 0 13px; border-radius: 8px;
    border: 1px solid var(--line-2); background: #fff;
    font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer; white-space: nowrap;
}
.pills a:hover, .pills label:hover { border-color: var(--faint); color: var(--ink); }
.pills a.on { background: var(--black); border-color: var(--black); color: #fff; }
.pills code { font-size: 11.5px; color: var(--mute); }
.pills a.on code { color: #c9ccd1; }
.head-card .pills { margin-top: 18px; }
.month-pills a { font-variant-numeric: tabular-nums; height: 32px; padding: 0 12px; font-size: 13px; }

/* 넓은 회색 버튼(더보기·전체보기) */
.wide-btn, .more > summary {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    width: 100%; height: 46px; margin-top: 18px;
    border-radius: 8px; background: var(--chip);
    font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer;
}
.wide-btn:hover, .more > summary:hover { background: #e9ebee; color: var(--ink); }
.wide-btn.brand { background: var(--brand); color: #fff; }
.wide-btn.brand:hover { background: var(--brand-d); color: #fff; }
.more > summary { list-style: none; }
.more > summary::-webkit-details-marker { display: none; }
.more > summary i { font-style: normal; font-size: 12px; transition: transform .15s; }
.more[open] > summary i { transform: rotate(180deg); }
.more .more-close, .more[open] .more-open { display: none; }
.more[open] .more-close { display: inline; }
.more[open] > summary { order: 2; }
.more[open] { display: flex; flex-direction: column; }
.more[open] .sido-grid { margin-top: 10px; }

/* ── 홈 ───────────────────────────────────── */
.big-search { margin-top: 22px; }
.big-search label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.big-search label.sr { position: absolute; }
.big-search-row { display: flex; gap: 8px; }
.big-search input {
    flex: 1; height: 50px; border-radius: 10px; border: 1.5px solid var(--line-2);
    padding: 0 18px; font-size: 16px; background: #fff;
}
.big-search input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-w); }
.big-search button, .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    height: 50px; padding: 0 24px; border: 0; border-radius: 10px;
    background: var(--brand); color: #fff; font-size: 16px; font-weight: 700; cursor: pointer;
}
.big-search button:hover, .btn:hover { background: var(--brand-d); }

.sido-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; margin-top: 16px; }
.sido-card {
    display: flex; flex-direction: column; gap: 2px;
    height: 100%; padding: 14px 16px; border-radius: 10px; border: 1px solid var(--line);
    background: #fff; transition: border-color .12s, background .12s;
}
.sido-card:hover { border-color: var(--faint); background: #fcfcfd; color: inherit; }
.sc-top { display: flex; align-items: center; gap: 8px; font-size: 14.5px; }
.sc-top strong { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-rk { width: 20px; height: 20px; border-radius: 4px; background: var(--chip); display: grid; place-items: center; font-size: 11.5px; font-weight: 700; color: var(--ink-2); flex: none; }
.sc-v { margin-top: 8px; font-size: 14px; color: var(--ink-2); }
.sc-v b { font-size: 22px; font-weight: 800; color: var(--ink); letter-spacing: -0.03em; }
.sc-v small { margin-left: 1px; }
.sc-meta { margin-top: 6px; font-size: 12.5px; color: var(--mute); }

/* 항목 탭(CSS 라디오) */
.tabset .tab-in { position: absolute; opacity: 0; pointer-events: none; }
.tab-pills { margin-bottom: 14px; }
.tab-panel { display: none; }
#gt-GENERAL:checked ~ .tab-pills .t-GENERAL, #gt-SERVICE:checked ~ .tab-pills .t-SERVICE,
#gt-REPAIR:checked ~ .tab-pills .t-REPAIR, #gt-INDIVIDUAL:checked ~ .tab-pills .t-INDIVIDUAL,
#gt-RESERVE:checked ~ .tab-pills .t-RESERVE { background: var(--black); border-color: var(--black); color: #fff; }
#gt-GENERAL:checked ~ .p-GENERAL, #gt-SERVICE:checked ~ .p-SERVICE, #gt-REPAIR:checked ~ .p-REPAIR,
#gt-INDIVIDUAL:checked ~ .p-INDIVIDUAL, #gt-RESERVE:checked ~ .p-RESERVE { display: block; }
.tab-in:focus-visible ~ .tab-pills label { outline: none; }
.tab-blurb { font-size: 13.5px; color: var(--mute); margin-bottom: 12px; }
.item-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.item-grid a {
    display: grid; grid-template-columns: auto 1fr; column-gap: 10px; row-gap: 2px;
    padding: 12px 14px; border-radius: 8px; background: var(--head); border: 1px solid var(--line);
}
.item-grid a:hover { background: var(--brand-w); color: inherit; }
.item-grid code { grid-row: span 2; align-self: start; font-size: 11.5px; font-weight: 600; color: var(--brand-d); background: #fff; border: 1px solid var(--line-2); border-radius: 6px; padding: 2px 6px; margin-top: 1px; }
.item-grid strong { font-size: 14.5px; font-weight: 700; }
.item-grid span { font-size: 12.5px; color: var(--mute); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.tile-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile {
    position: relative; display: flex; flex-direction: column; gap: 4px;
    padding: 20px 20px 18px; border-radius: 10px; background: #fff; border: 1px solid var(--line-2);
}
.tile:hover { border-color: var(--brand); color: inherit; }
.tile-tag { align-self: flex-start; font-size: 11.5px; font-weight: 700; color: var(--brand-d); background: #fff; border-radius: 6px; padding: 2px 8px; margin-bottom: 6px; }
.tile strong { font-size: 17px; font-weight: 800; letter-spacing: -0.03em; }
.tile > span:not(.tile-tag):not(.tile-ic) { font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.tile .tile-meta { color: var(--mute) !important; font-size: 12.5px !important; }
.tile em { position: absolute; right: 18px; top: 18px; font-style: normal; font-size: 13px; font-weight: 700; color: var(--mute); }
.tile-row.big .tile { padding: 26px 24px 22px; }
.tile-row.big .tile strong { font-size: 20px; }

/* ── 오른쪽 위젯 ───────────────────────────── */
.widget { --px: 22px; padding: 22px var(--px); }
.w-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.w-head h2 { font-size: 17px; font-weight: 700; letter-spacing: -0.03em; }
.w-sub { font-size: 12.5px; color: var(--mute); white-space: nowrap; }
.w-desc { font-size: 13px; color: var(--mute); margin: -6px 0 12px; line-height: 1.5; }
.w-foot { margin-top: 12px; font-size: 12.5px; color: var(--mute); line-height: 1.55; }
.widget .wide-btn { margin-top: 14px; height: 42px; }

/* 지역 격자(이름 띠 + 값) */
.rgrid {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--line-2); border-left: 1px solid var(--line);
}
.rg-cell {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
    padding-bottom: 8px; min-width: 0;
}
.rg-nm {
    align-self: stretch; padding: 6px 4px; background: var(--head);
    border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--ink-2);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rg-v { margin-top: 7px; font-size: 12px; color: var(--mute); }
.rg-v b { font-size: 15px; font-weight: 700; color: var(--ink); }
.rg-cell .dl { font-size: 11.5px; margin-top: 1px; }
a.rg-cell:hover { background: #fafbfc; color: inherit; }
a.rg-cell:hover .rg-nm { color: var(--ink); }
.rg-nation .rg-nm { background: var(--brand-w); color: var(--brand-d); }
.rg-nation .rg-v b { color: var(--brand-d); }
.rg-nation { justify-content: flex-start; }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.duo-h { font-size: 13px; font-weight: 700; margin: 4px 0 6px; display: flex; align-items: center; gap: 6px; }
.duo-h::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.duo-h.up { color: var(--up); }
.duo-h.down { color: var(--down); }
.flag-list + .duo-h, div + div > .duo-h { margin-top: 14px; }
.rank-list li { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: 6px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.rank-list li:last-child { border-bottom: 0; }
.rank-list .rk { font-size: 12px; font-weight: 700; color: var(--mute); }
.rank-list a { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.rank-list b { font-size: 13px; font-weight: 700; }

.legend-list li { position: relative; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--ink-2); line-height: 1.55; }
.legend-list li:last-child { border-bottom: 0; }
.legend-list b { color: var(--ink); margin-right: 4px; }
.legend-list .dl { margin-right: 4px; }

.link-list { display: flex; flex-direction: column; }
.link-list a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 2px; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 500; }
.link-list a:last-child { border-bottom: 0; }
.link-list a i { font-style: normal; color: var(--faint); font-size: 16px; }
.link-list a.on { color: var(--brand-d); font-weight: 700; }

.group-list a { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
.group-list li:last-child a { border-bottom: 0; }
.group-list strong { display: block; font-size: 14px; }
.group-list span { font-size: 12.5px; color: var(--mute); }
.note p { font-size: 13.5px; color: var(--ink-2); line-height: 1.6; }
.note code, .bill-note code { font-size: 11.5px; font-weight: 600; color: var(--brand-d); background: var(--brand-w); border-radius: 5px; padding: 1px 5px; }

/* 요약 위젯 */
.sum-big { font-size: 15px; color: var(--ink-2); display: flex; align-items: baseline; gap: 3px; }
.sum-big b { font-size: 36px; font-weight: 800; letter-spacing: -0.04em; color: var(--ink); line-height: 1.15; }
.sum-cap { font-size: 12.5px; color: var(--mute); margin-top: 4px; }
.kv { margin-top: 14px; border-top: 1px solid var(--line); }
.kv > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.kv > div:last-child { border-bottom: 0; }
.kv dt { color: var(--ink-2); }
.kv dt small { display: block; font-size: 11.5px; }
.kv dd { display: flex; align-items: center; gap: 8px; font-weight: 700; text-align: right; }

.rank-line { font-size: 15px; color: var(--ink-2); }
.rank-line strong { font-size: 24px; font-weight: 800; color: var(--ink); margin-left: 4px; letter-spacing: -0.03em; }
.gauge { margin-top: 14px; }
.g-track { position: relative; display: block; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--down) 0 33.3%, #d3d7dc 33.3% 66.6%, var(--up) 66.6%); }
.g-track i { position: absolute; top: 50%; width: 4px; height: 20px; margin: -10px 0 0 -2px; border-radius: 1px; background: var(--ink); box-shadow: 0 0 0 2px #fff; }
.g-lab { display: flex; justify-content: space-between; margin-top: 6px; font-size: 11.5px; color: var(--mute); }
.rank-txt { margin-top: 10px; font-size: 13.5px; color: var(--ink-2); }
.rank-txt b { color: var(--ink); }

.flag-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.flag-list li:last-child { border-bottom: 0; }
.flag-list li:not(:has(code)) { grid-template-columns: minmax(0, 1fr) auto; }
.flag-list code { font-size: 11px; color: var(--mute); }
.flag-list a { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.flag-list b { font-size: 13px; }

/* ── 표 ───────────────────────────────────── */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl thead th {
    background: var(--head); color: var(--mute); font-size: 12.5px; font-weight: 600; text-align: left;
    padding: 10px 12px; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); white-space: nowrap;
}
.tbl tbody th, .tbl tbody td { padding: 12px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; font-weight: 400; }
.tbl tbody th { font-weight: 600; }
.tbl tbody th a:hover { text-decoration: underline; text-underline-offset: 3px; }
.tbl tbody tr:hover > * { background: #fafbfc; }
.tbl .r { text-align: right; }
.tbl td b { font-weight: 700; }
.tbl .rk { width: 44px; color: var(--mute); font-weight: 600; text-align: center; }
.tbl .sub { display: block; font-size: 12px; color: var(--mute); font-weight: 400; }
.tbl .heat { font-size: 13px; color: var(--ink-2); }
.tbl .explain { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 400; color: var(--mute); line-height: 1.45; }
.tbl .code { width: 56px; }
.tbl caption { text-align: left; font-size: 14px; font-weight: 700; padding-bottom: 8px; }
.card > .tbl { margin: 0 calc(-1 * var(--px)); width: calc(100% + 2 * var(--px)); }
.card > .tbl th:first-child, .card > .tbl td:first-child { padding-left: var(--px); }
.card > .tbl th:last-child, .card > .tbl td:last-child { padding-right: var(--px); }
.card > .tbl tbody tr:last-child > * { border-bottom: 0; }
code { font-size: 12px; }
.tbl .code code, .ledger .code code { font-size: 11.5px; font-weight: 600; color: var(--ink-2); background: var(--chip); padding: 2px 6px; border-radius: 5px; }
.ruler-h { width: 22%; }
.rbar { position: relative; display: block; height: 8px; border-radius: 2px; background: var(--chip); }
.rbar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 2px; background: var(--down); opacity: .8; }
.rbar i.over { background: var(--up); }
.rbar s { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: var(--ink); border-radius: 1px; }
.rbar.neutral i, .rbar.neutral i.over { background: var(--brand-2); }
.nodata th a { color: var(--ink-2); }
.nodata-c { font-size: 12.5px; color: var(--mute); }

/* ── 명세서 ────────────────────────────────── */
.bill-code { flex: none; font-size: 12px; color: var(--mute); border: 1px solid var(--line-2); padding: 3px 8px; border-radius: 4px; }
.code-badge { font-size: 12px; font-weight: 700; color: var(--ink-2); border: 1px solid var(--line-2); padding: 1px 7px; border-radius: 4px; }
.tag { font-size: 11.5px; font-weight: 700; color: #9a5b12; border: 1px solid #ecd3b0; background: #fdf7ee; padding: 1px 7px; border-radius: 4px; letter-spacing: 0; }
.ledger { width: calc(100% + 2 * var(--px)); margin: 0 calc(-1 * var(--px)); border-collapse: collapse; font-size: 14px; }
.ledger .c-code { width: 64px; }
.ledger .c-amt { width: 104px; }
.ledger .c-hh { width: 128px; }
.ledger .c-m2 { width: 64px; }
.ledger .c-cmp { width: 176px; }
.ledger thead th {
    background: var(--head); color: var(--mute); font-size: 12.5px; font-weight: 600; text-align: left;
    padding: 10px 10px; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2);
}
.ledger th:first-child, .ledger td:first-child { padding-left: var(--px); }
.ledger th:last-child, .ledger td:last-child { padding-right: var(--px); }
.ledger .r { text-align: right; }
.ledger td, .ledger tbody th { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; text-align: left; font-weight: 400; }
.ledger tr.sec > * { background: #fbfbfc; padding-top: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line-2); font-weight: 700; }
.ledger tbody + tbody tr.sec > * { border-top: 8px solid #fff; }
.ledger tr.sec th b { font-size: 15px; }
.ledger tr.sec th span { margin-left: 6px; font-size: 12.5px; font-weight: 400; color: var(--mute); }
.sec-share { font-size: 12px; color: var(--mute); font-weight: 500 !important; }
.sec-share .ss { display: flex; align-items: center; gap: 8px; }
.share { flex: 1; height: 6px; border-radius: 999px; background: var(--chip); overflow: hidden; }
.share i { display: block; height: 100%; background: var(--ink-2); border-radius: 999px; }
.ledger .item a { font-weight: 600; }
.ledger .item a:hover { color: var(--brand-d); text-decoration: underline; text-underline-offset: 3px; }
.ledger .explain { display: block; font-size: 12px; color: var(--mute); line-height: 1.4; margin-top: 1px; }
.ledger tr.ln:hover > * { background: #fafbfc; }
.cmp { white-space: nowrap; }
.cmp .dl { width: 52px; justify-content: flex-end; }
.cbar {
    position: relative; display: inline-block; vertical-align: middle;
    width: calc(100% - 60px); height: 8px; border-radius: 999px; background: var(--chip);
}
.cbar::after { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; background: var(--faint); border-radius: 1px; }
.cbar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: #c7ccd3; }
.tone-high .cbar i { background: var(--up); }
.tone-low .cbar i { background: var(--down); }
.tone-mid .cbar i { background: #b9bec6; }
.neutral .cbar i, .cbar.neutral i { background: var(--brand-2) !important; }
.tone-high .item a { color: var(--ink); }
.tone-high > td.r:nth-child(5) { color: var(--up); font-weight: 700; }
.tone-low > td.r:nth-child(5) { color: var(--down); font-weight: 700; }
.neutral > td.r:nth-child(5) { color: inherit !important; font-weight: 400 !important; }
.cmp-none { font-size: 12px; color: var(--faint); }
.ledger tfoot th, .ledger tfoot td { padding: 16px 10px; border-top: 2px solid var(--ink); font-weight: 800; font-size: 15px; background: #fff; }
.ledger tfoot th span { display: block; font-size: 12px; font-weight: 400; color: var(--mute); }
.cmp-total { font-size: 12.5px !important; font-weight: 500 !important; color: var(--mute); white-space: nowrap; }
.cmp-total .dl { margin-left: 6px; }
.bill-note { display: flex; gap: 8px; margin-top: 16px; padding: 12px 14px; border-radius: 8px; background: var(--head); font-size: 13px; color: var(--ink-2); line-height: 1.6; }

/* 추이 */
.trend { display: flex; align-items: flex-end; gap: 6px; height: 200px; padding-top: 8px; border-bottom: 1px solid var(--line-2); }
.trend li { flex: 1; min-width: 0; height: 100%; }
.trend a { display: flex; flex-direction: column; align-items: center; height: 100%; gap: 4px; }
.tv { font-size: 11px; color: var(--mute); white-space: nowrap; letter-spacing: -0.03em; }
.tb { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; }
.tb i { display: block; width: 70%; max-width: 30px; min-height: 2px; border-radius: 6px 6px 2px 2px; background: #d6dbe1; transition: background .12s; }
.tl { font-size: 11.5px; color: var(--mute); padding: 6px 0 8px; }
.trend a:hover .tb i { background: var(--brand-2); }
.trend li.on .tb i { background: var(--brand); }
.trend li.on .tv, .trend li.on .tl { color: var(--brand-d); font-weight: 700; }
.yoy-row { display: flex; align-items: center; gap: 24px; margin-top: 18px; padding: 12px 16px; border-radius: 8px; border: 1px solid var(--line); }
.yoy-row h3 { font-size: 14px; font-weight: 700; flex: none; }
.yoy { display: flex; gap: 22px; }
.yoy div { display: flex; flex-direction: column; }
.yoy dt { font-size: 12px; color: var(--mute); }
.yoy dd { font-size: 14px; font-weight: 700; }
.yoy-diff { margin-left: auto; font-size: 14px; color: var(--ink-2); }
.yoy-diff b { font-size: 16px; }
.yoy-diff span { color: var(--mute); font-size: 13px; }

/* 장기수선충당금 */
.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.stat { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 8px; border: 1px solid var(--line); }
.st-k { font-size: 12.5px; color: var(--mute); }
.st-v { font-size: 21px; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); line-height: 1.3; }
.st-s { font-size: 12px; color: var(--mute); line-height: 1.4; }
.rs-cmp { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 14px; margin-top: 12px; padding: 14px 16px; border-radius: 8px; border: 1px solid var(--line); }
.rs-k { font-size: 13px; color: var(--ink-2); grid-column: 1 / -1; }
.rs-cmp .cbar { width: 100%; }
.rs-note { grid-column: 1 / -1; font-size: 12.5px; color: var(--mute); }

/* 평형 */
.area-bar { width: 34%; }
.area-bar i { display: block; height: 8px; border-radius: 999px; background: var(--brand-2); }

/* 단지 정보 */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-2); }
.facts > div { padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.facts .wide { grid-column: span 2; }
.facts .full { grid-column: 1 / -1; }
.facts dt { font-size: 12px; color: var(--mute); }
.facts dd { font-size: 14px; font-weight: 600; margin-top: 1px; word-break: keep-all; }

.source-line { font-size: 12.5px; color: var(--mute); padding: 0 6px; }
.source-line a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }

/* 검색 */
.hits li + li { border-top: 1px solid var(--line); }
.hits a { display: flex; align-items: center; gap: 14px; padding: 14px 4px; }
.hits a:hover { color: inherit; }
.hits a:hover strong { color: var(--brand-d); }
.hit-ico { width: 40px; height: 40px; border-radius: 8px; background: var(--chip); color: var(--ink-2); display: grid; place-items: center; flex: none; }
.hit-ico svg { width: 22px; height: 22px; }
.hit-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hit-main strong { font-size: 15.5px; font-weight: 700; }
.hit-place { font-size: 13px; color: var(--mute); }
.hit-hh { font-size: 13px; color: var(--ink-2); }
.hit-go { font-size: 13px; font-weight: 600; color: var(--mute); }
.empty p { font-size: 14px; color: var(--ink-2); line-height: 1.7; }
.empty p + p { margin-top: 6px; }

/* 계산기 */
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.f-label { font-size: 14px; font-weight: 700; }
.field input {
    height: 50px; border: 1px solid var(--line-2); border-radius: 8px; padding: 0 16px;
    font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; background: #fff;
}
.field input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-w); }
.f-hint { font-size: 12.5px; color: var(--mute); line-height: 1.5; }
.card .btn { margin-top: 20px; width: 100%; height: 50px; }
.seg { display: inline-flex; padding: 4px; border-radius: 8px; background: var(--chip); margin-bottom: 18px; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 8px 22px; border-radius: 6px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.seg input:checked + span { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.seg input:focus-visible + span { outline: 2px solid var(--brand); }
.check { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); }
[data-calc="brk"] .f-deposit, [data-calc="brk"] .f-rent, [data-calc="brk"] .k-jeonse { display: none; }
[data-calc="brk"][data-kind="jeonse"] .k-sale { display: none; }
[data-calc="brk"][data-kind="jeonse"] .k-jeonse { display: inline; }
[data-calc="brk"][data-kind="monthly"] .f-price { display: none; }
[data-calc="brk"][data-kind="monthly"] .f-deposit, [data-calc="brk"][data-kind="monthly"] .f-rent { display: flex; }
.receipt { position: sticky; top: calc(var(--top-h) + 20px); }
.receipt .kv { margin-top: 4px; }
.receipt-total { display: flex; align-items: baseline; justify-content: space-between; margin-top: 6px; padding-top: 14px; border-top: 2px solid var(--ink); }
.receipt-total span { font-size: 15px; font-weight: 700; }
.receipt-total b { font-size: 28px; font-weight: 800; color: var(--brand-d); letter-spacing: -0.03em; }
.rate-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.rate-table td small { color: var(--mute); }

/* 안내 문서 */
.doc { --px: 36px; padding: 32px var(--px) 36px; }
.doc h1 { font-size: 28px; font-weight: 800; letter-spacing: -0.04em; margin-bottom: 18px; }
.doc h2 { font-size: 19px; font-weight: 700; margin: 28px 0 10px; letter-spacing: -0.03em; }
.doc h3 { font-size: 16px; font-weight: 700; margin: 20px 0 8px; }
.doc p, .doc li, .doc dd { font-size: 15px; color: var(--ink-2); line-height: 1.8; }
.doc p + p { margin-top: 10px; }
.doc ul, .doc ol { padding-left: 20px; margin: 8px 0; }
.doc ul { list-style: disc; }
.doc ol { list-style: decimal; }
.doc dl { margin: 10px 0; }
.doc dt { font-weight: 700; margin-top: 12px; }
.doc a { color: var(--brand-d); text-decoration: underline; text-underline-offset: 3px; }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 14px; }
.doc th, .doc td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.doc thead th { background: var(--head); color: var(--mute); font-weight: 600; }

/* ── 푸터 ─────────────────────────────────── */
.foot { border-top: 1px solid var(--line-2); background: #fff; margin-top: 20px; }
.foot-in {
    max-width: 1680px; margin: 0 auto; padding: 26px 28px 12px;
    display: grid; grid-template-columns: 1fr auto auto; gap: 24px 40px; align-items: start;
}
.foot-brand strong { font-size: 17px; font-weight: 800; color: var(--brand); }
.foot-brand p { font-size: 13px; color: var(--mute); margin-top: 4px; }
.foot-brand .foot-slogan { font-size: 15px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.foot-links, .foot-view { display: flex; gap: 16px; font-size: 13px; color: var(--ink-2); padding-top: 3px; }
.foot-links a:hover, .foot-view a:hover { text-decoration: underline; }
.foot-view a.on { font-weight: 700; color: var(--ink); }
.foot-legal { max-width: 1680px; margin: 0 auto; padding: 0 28px 26px; font-size: 12px; color: var(--faint); }

/* ── 폭 대응 ───────────────────────────────── */
@media (max-width: 1320px) {
    :root { --rail-w: 340px; }
    .sido-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1140px) {
    .page { grid-template-columns: minmax(0, 1fr); }
    .rail { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); align-items: start; }
    .receipt { position: static; }
    .top-links { display: none; }
}
@media (max-width: 900px) {
    body { padding-left: 0; }
    .side { display: none; box-shadow: 8px 0 24px rgba(0, 0, 0, .08); }
    body.side-off .side { display: flex; }
    .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .item-grid, .tile-row, .fields, .rate-pair, .duo { grid-template-columns: 1fr; }
    .page { padding: 16px 16px 32px; }
    .card { --px: 16px; padding: 20px var(--px); }
    .foot-in { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.rg-fill { background: repeating-linear-gradient(135deg, #fafbfc 0 6px, #fff 6px 12px); }

/* ── 아이콘(Lucide 스프라이트 /assets/icons.svg) · 기준일 띠 ─────── */
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; vertical-align: middle; }
.top-burger .ic { width: 22px; height: 22px; }
.top-search .ic { position: absolute; left: 16px; width: 18px; height: 18px; color: var(--mute); pointer-events: none; }
.top-links a { display: inline-flex; align-items: center; gap: 5px; }
.top-links .ic { width: 16px; height: 16px; color: var(--mute); }
.side-nav .ic { width: 20px; height: 20px; }
.side-recent h2 { display: flex; align-items: center; gap: 6px; }
.side-recent h2 .ic { width: 15px; height: 15px; color: var(--mute); }
.hic { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; background: var(--head); border: 1px solid var(--line); color: var(--ink-2); flex: none; }
.hic .ic { width: 16px; height: 16px; }
.w-head h2 { display: flex; align-items: center; gap: 8px; }
.w-head .hic { width: 26px; height: 26px; }
.asof {
    display: flex; flex-wrap: wrap; gap: 6px 18px; margin: -4px 0 16px; padding: 8px 12px;
    border: 1px solid var(--line); border-radius: 8px; background: var(--head);
    font-size: 12.5px; color: var(--ink-2);
}
.asof > span { display: inline-flex; align-items: center; gap: 6px; }
.asof .ic { width: 15px; height: 15px; color: var(--brand-d); }
.asof b { font-weight: 700; color: var(--ink); }
.source-line { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.source-line .ic { width: 15px; height: 15px; color: var(--mute); }
.big-search button .ic, .btn .ic { width: 18px; height: 18px; }
.wide-btn::after {
    content: ""; width: 16px; height: 16px; background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.more > summary .ic { width: 16px; height: 16px; transition: transform .15s; }
.more[open] > summary .ic { transform: rotate(180deg); }
.link-list .ic { width: 16px; height: 16px; color: var(--faint); }
.hit-ico .ic { width: 20px; height: 20px; }
.hit-go { display: inline-flex; align-items: center; gap: 2px; }
.hit-go .ic { width: 16px; height: 16px; }
.tile-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 8px; background: var(--brand-w); color: var(--brand-d); margin-bottom: 8px; }
.tile-ic .ic { width: 20px; height: 20px; }
.facts dt { display: flex; align-items: center; gap: 5px; }
.facts dt .ic { width: 15px; height: 15px; color: var(--faint); }
.st-k { display: flex; align-items: center; gap: 5px; }
.st-k .ic { width: 15px; height: 15px; color: var(--mute); }
.yoy-row h3 { display: flex; align-items: center; gap: 6px; }
.yoy-row h3 .ic { width: 16px; height: 16px; color: var(--mute); }
.bill-note > .ic { width: 16px; height: 16px; color: var(--mute); margin-top: 2px; }
.card-head h2 .hic { margin-right: 2px; }
.duo > div > .duo-h { margin-top: 4px; }
.top-search input { border-radius: 8px; }
.tbl td.r, .tbl th.r, .tbl .heat, .ledger td.r { white-space: nowrap; }
.complex-table tbody th { min-width: 150px; }
.tbl .ruler-h { width: 16%; }

.card { overflow: clip; }
.receipt { overflow: visible; }
/* 계약·수선 이력 */
.works-note p { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); }
.works-note .ic { width: 18px; height: 18px; color: var(--mute); }
.works-chips { margin: -4px 0 16px; }
.works-table { font-size: 13.5px; }
.works-table tbody th, .works-table tbody td { padding: 10px 12px; vertical-align: top; }
.works-table tbody th { font-weight: 600; }
.works-table .nw { white-space: nowrap; }
.works-table .sub-c { color: var(--mute); font-size: 12.5px; }
.works-more:not([hidden]) tr:first-child > * { border-top: 1px solid var(--line); }
.works-toggle { margin-top: 0; }
.works-toggle > summary { margin-top: 14px; }
.badge-reserve { display: inline-block; padding: 1px 7px; border-radius: 4px; background: var(--brand-w); color: var(--brand-d); border: 1px solid #bfe6cf; font-size: 12px; font-weight: 700; white-space: nowrap; }
.card-src { display: flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 12.5px; color: var(--mute); }
.card-src .ic { width: 15px; height: 15px; }
.works-table th .sub { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; font-size: 12px; color: var(--mute); font-weight: 400; margin-top: 2px; }
.works-table td:nth-child(3) { min-width: 116px; }

/* 명세서는 "내가 받은 고지서" 처럼 — 세대당(우리 집 몫)을 크게, ㎡당·단지 총액은 작게 회색으로(2026-09-29 사용자 피드백) */
.ledger th.hh-h { color: var(--ink); font-weight: 800; }
.ledger th.hh-h small { display: block; font-size: 11px; font-weight: 500; color: var(--mute); }
.ledger td.hh { font-size: 17px; font-weight: 800; color: var(--ink); letter-spacing: -0.01em; }
.ledger tr.sec td.hh { font-size: 16px; }
.ledger tfoot td.hh { font-size: 20px; color: var(--brand-d, #0b8a48); }
.ledger th.sub-h { font-size: 11.5px; font-weight: 500; color: var(--mute); }
.ledger td.sub { font-size: 12px !important; font-weight: 400 !important; color: var(--mute); }

/* 넓은 화면: 오른쪽 위젯도 조금 넓힌다 */
@media (min-width: 1600px) {
    :root { --rail-w: 420px; }
}

/* 시세 동향 위젯 · 예상 재산세 */
.mkt-trend .w-note { font-size: 13px; color: var(--mute); margin: 4px 0 12px; }
.trend-kpi { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.trend-kpi div { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.trend-kpi span { font-size: 12.5px; color: var(--mute); }
.trend-kpi b { font-size: 22px; font-weight: 800; }
.trend-kpi b.up { color: #e5383b; } .trend-kpi b.down { color: #2f6fed; } .trend-kpi b.flat { color: var(--ink-2); }
.spark { display: flex; align-items: flex-end; gap: 4px; height: 48px; margin: 14px 0 6px; }
.spark i { flex: 1; background: #c9d2dc; border-radius: 2px 2px 0 0; min-height: 3px; }
.spark i:last-child { background: var(--brand, #11a85a); }
.trend-cmp { margin-top: 8px; }
.w-src { font-size: 11.5px; color: var(--faint, #9aa1ad); margin-top: 10px; }
.tax-table .sub { display: block; font-size: 11.5px; color: var(--mute); font-weight: 400; }
.tax-table td.hh { font-size: 16px; font-weight: 800; }
.badge-jb { display: inline-block; font-size: 11px; font-weight: 700; color: #b42318; background: #fdecec; border-radius: 4px; padding: 1px 6px; margin-left: 4px; vertical-align: middle; }
.tax-wait, .tax-body .note { color: var(--mute); font-size: 13.5px; }
.tax-table td.multi { font-size: 12.5px; color: var(--mute); }

/* ── 아파트 밖 집: 오피스텔 호 찾기 · 재산세 계산기 ── */
.unit-find { width: 280px; max-width: 100%; padding: 8px 12px; margin: 0 0 10px; border: 1px solid var(--line-2); border-radius: 8px; font: inherit; font-size: 14px; }
.units-wrap { max-height: 520px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
.units-wrap .tbl { margin: 0; }
.units-wrap thead th { position: sticky; top: 0; background: #fff; z-index: 1; }
.calc-tabs { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.calc-tabs button { padding: 8px 16px; border: 1px solid var(--line-2); border-radius: 999px; background: #fff; font: inherit; font-size: 14px; color: var(--mute); cursor: pointer; }
.calc-tabs button.on { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 700; }
.hform { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px 16px; align-items: end; }
.hform label { display: block; font-size: 13px; font-weight: 600; color: var(--mute); margin-bottom: 4px; }
.hform input, .hform select { width: 100%; padding: 9px 12px; border: 1px solid var(--line-2); border-radius: 8px; font: inherit; font-size: 15px; }
.hform .chk { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink); font-weight: 500; }
.hform .chk input { width: auto; }
.hform button[type=submit], .hform .btn { padding: 10px 16px; border: 0; border-radius: 8px; background: var(--brand); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.pick-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.pick-list button { width: 100%; text-align: left; padding: 9px 12px; border: 1px solid var(--line-2); border-radius: 8px; background: #fff; font: inherit; font-size: 14px; cursor: pointer; }
.pick-list button:hover { border-color: var(--brand); }
.hresult { margin-top: 18px; }
.hresult .note, .offi-tax .note, .note-s { color: var(--mute); font-size: 13.5px; line-height: 1.6; margin: 8px 0; }
.hresult .note b, .offi-tax .note b { color: var(--ink); }
.hresult .tbl .tot th, .hresult .tbl .tot td, .offi-tax .tbl .tot th, .offi-tax .tbl .tot td { border-top: 2px solid var(--ink); }
.tile-row.three { grid-template-columns: repeat(3, 1fr); }
/* 명세서 레일 — 평형별 월 관리비 */
.area-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.area-list li { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; align-items: baseline; }
.area-list .al-k { font-size: 13px; color: var(--mute); }
.area-list .al-k b { color: var(--ink); font-size: 14px; }
.area-list .al-v { font-size: 13px; color: var(--mute); }
.area-list .al-v b { font-size: 15px; color: var(--ink); }
.area-list .al-bar { grid-column: 1 / -1; display: block; height: 6px; border-radius: 999px; background: var(--line); }
.area-list .al-bar i { display: block; height: 100%; border-radius: 999px; background: var(--brand-2); }

/* ── 사이드바 커뮤니티(공용 게시판 카테고리) ── */
.side-board { display: flex; flex-direction: column; gap: 2px; margin-top: 22px; padding: 16px 0 0; border-top: 1px solid var(--line); }
.side-board h2 { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--ink-2); padding: 0 12px 6px; }
.side-board h2 svg { width: 16px; height: 16px; color: var(--brand-d); }
.side-board a { padding: 8px 12px 8px 34px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.side-board a:hover { background: var(--chip); color: var(--ink); }
.side-board a.on { background: var(--brand-w); color: var(--brand-d); font-weight: 700; }
