/* The FIGURES shell in the S136 language (frame 7 · 지역 통계, frame 8 · 정보 허브; site ADR-012): a head, a ruled stat row, ranked bars,
   charts as inline SVG each with its table. Emphasis by value, weight and size, never a new hue; ink links, an in-text link underlined.
   Loaded by 지역 통계 · 시장 지표 · 인구 · 미분양. site.css is linked after this file, so every rule starts at .fg. */
.fg{color:var(--ink);display:flex;flex-direction:column;gap:56px;padding:8px 0 0}
.fg a{color:var(--ink)}
.fg a:hover{color:var(--navy);text-decoration:underline}
.fg .fg-lead a,.fg .fg-q a,.fg .fg-bn a,.fg .fg-notice a{text-decoration:underline;text-underline-offset:3px}
.fg h1{margin:0;font-size:36px;font-weight:700;line-height:1.3;letter-spacing:-.01em}
.fg h2{margin:0;font-size:22px;font-weight:700;line-height:1.35}
.fg h3{margin:0;font-size:16px;font-weight:600}
.fg p{margin:0}
.fg .fg-top{display:flex;flex-direction:column;gap:28px;padding-top:16px}
.fg .fg-hd{display:flex;flex-direction:column;gap:8px}
.fg .fg-crumbs{display:flex;flex-wrap:wrap;gap:0 8px;align-items:center;color:var(--ink3)}
.fg .fg-crumbs a{color:var(--ink3);min-height:44px;display:inline-flex;align-items:center}
.fg .fg-crumbs b{color:var(--ink);font-weight:600}
.fg .fg-lead{color:var(--ink2);text-wrap:pretty}
.fg .fg-jump{display:flex;flex-wrap:wrap;gap:0 24px}
.fg .fg-jump a{min-height:44px;display:inline-flex;align-items:center;font-weight:600;text-decoration:underline;text-underline-offset:4px}
/* the stat row: a heavy rule, one figure per cell, a hairline between cells */
.fg .fg-band{border-top:2px solid var(--ink);padding:0;display:flex;flex-direction:column;gap:0}
.fg .fg-band h2{font-size:16px;font-weight:600;padding:16px 0 0}
.fg .fg-tiles{display:grid;grid-template-columns:repeat(var(--n,4),minmax(0,1fr));gap:0}
.fg .fg-tile{padding:20px 20px 20px 24px;border-left:1px solid var(--line);display:flex;flex-direction:column;gap:2px;margin:0;min-width:0}
.fg .fg-tile:first-child{border-left:0;padding-left:0}
.fg .fg-tile .k{color:var(--ink3)}
.fg .fg-tile .big{font-size:36px;font-weight:700;line-height:1.25;letter-spacing:-.01em;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.fg .fg-tile .s{color:var(--ink2);font-weight:600}
.fg .fg-facts{justify-content:center}
.fg .fg-facts div{display:flex;flex-wrap:wrap;gap:0 10px}
.fg .fg-facts dt{color:var(--ink3);flex:none}
.fg .fg-facts dd{margin:0;color:var(--ink);font-weight:600;min-width:0}
.fg .fg-bn{color:var(--ink3);padding-top:12px;border-top:1px solid var(--line);text-wrap:pretty}
.fg .fg-bs{color:var(--ink3);padding-top:4px}
/* a block: title, the question as a quiet line, the drawing beside its figures, the source */
.fg .fg-block{display:flex;flex-direction:column;gap:6px}
.fg .fg-q{color:var(--ink3);text-wrap:pretty}
.fg .fg-tw+.fg-q,.fg .fg-t+.fg-q{margin-top:8px}
.fg .fg-absent{color:var(--ink3);margin-top:8px}
.fg .fg-link{margin-top:8px}
.fg .fg-link a{text-decoration:underline;text-underline-offset:3px;font-weight:600}
.fg .fg-src{color:var(--ink3);margin-top:8px}
.fg .fg-split{display:grid;grid-template-columns:600px minmax(0,1fr);gap:48px;align-items:start;margin-top:16px}
.fg .fg-split.wide{grid-template-columns:minmax(0,1fr)}
.fg .fg-draw .m{display:none}
.fg .fg-draw .gap{margin-top:4px}
.fg .fg-split:not(.wide) .fg-draw{position:sticky;top:80px;align-self:start}
.fg .fg-svg{display:block;max-width:100%;height:auto}
.fg .fg-two{display:grid;grid-template-columns:1fr 1fr;gap:48px;margin-top:16px}
.fg .fg-tw{margin-top:12px;width:100%}
.fg .fg-tw.scroll{overflow-x:auto}
.fg .fg-tw.scroll .fg-t{min-width:max-content}
.fg .fg-sub{display:flex;flex-direction:column;gap:4px;min-width:0}
.fg .fg-sub h3{padding:0}
.fg .fg-split.wide .fg-t{margin-top:8px}
/* a figures table: hairline rules, tabular figures, the head in the quiet ink */
.fg .fg-t{display:flex;flex-direction:column;border-top:1px solid var(--ink)}
.fg .fg-r{display:grid;grid-template-columns:var(--cd);gap:12px;padding:7px 0;border-bottom:1px solid var(--line);font-variant-numeric:tabular-nums;align-items:baseline}
.fg .fg-r [role=cell]{min-width:0}
.fg .fg-r [role=cell]:first-child{color:var(--ink)}
.fg .fg-t.fgf [role=cell]:first-child,.fg .fg-sub .fg-r [role=cell]:first-child{font-weight:600}
.fg .fg-r .r{text-align:right}
.fg .fg-r [role=cell].s{font-weight:700;color:var(--ink)}
.fg .fg-r [role=cell]:not(:first-child):not(.s){color:var(--ink2)}
.fg .fg-r.cur{background:var(--navy-lt)}
.fg .fg-r.cur [role=cell]{color:var(--navy);font-weight:700}
.fg .fg-r.fg-h{padding:8px 0;color:var(--ink3);font-weight:400}
.fg .fg-r.fg-h [role=columnheader]{font-size:14px}
.fg .fg-r.fg-h .s{color:var(--ink);font-weight:600}
.fg .fg-t.fgf .fg-r{gap:16px;padding:12px 0}
.fg .fg-bar{display:block;min-width:0;align-self:center}
.fg .fg-bar i{display:block;height:12px;background:var(--navy);min-width:2px}
.fg .fg-t .fg-hm,.fg .fg-t .fg-br,.fg .fg-t .u{display:none}
/* link rows (시도 · 시군구 with its figure) and the sibling row */
.fg .fg-links{display:grid;grid-template-columns:repeat(var(--c,4),minmax(0,1fr));gap:0 40px;margin-top:12px;border-top:1px solid var(--ink)}
.fg .fg-links a{min-height:48px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid var(--line);font-weight:600}
.fg .fg-links .f{color:var(--ink2);font-weight:400;font-variant-numeric:tabular-nums}
.fg .fg-sib{display:flex;flex-direction:column;gap:8px}
.fg .fg-sib h2{font-size:16px;font-weight:600}
.fg .fg-chips{display:flex;flex-wrap:wrap;gap:8px}
.fg .fg-chips a,.fg .fg-chips span{min-height:44px;display:inline-flex;align-items:center;padding:0 14px;border-radius:6px;border:1px solid var(--line)}
.fg .fg-chips a:hover{border-color:var(--ink);text-decoration:none}
.fg .fg-chips span{background:var(--ink);border-color:var(--ink);color:#fff;font-weight:700}
.fg .fg-notice{padding:14px 16px;background:var(--ground);border-radius:6px;color:var(--ink2);text-wrap:pretty}
.fg .fg-more{display:flex;flex-direction:column;gap:20px}
.fg .fg-more>div{display:flex;flex-wrap:wrap;gap:0 24px}
.fg .fg-more a{min-height:44px;display:inline-flex;align-items:center;font-weight:600;text-decoration:underline;text-underline-offset:4px}
@media (max-width:900px){
.fg h1{font-size:28px}
.fg h2{font-size:20px}
.fg{gap:44px}
.fg .fg-r .fg-bar{grid-column:2/-1;order:3}
.fg .fg-r.fg-h .bar-c{display:none}
.fg .fg-split:not(.wide) .fg-draw{position:static}
.fg .fg-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}
.fg .fg-tile{padding:16px 12px 16px 16px;border-left:1px solid var(--line);border-top:1px solid var(--line)}
.fg .fg-tile:nth-child(-n+2){border-top:0}
.fg .fg-tile:nth-child(odd){border-left:0;padding-left:0}
.fg .fg-tile .big{font-size:28px}
.fg .fg-jump{gap:0 20px}
.fg .fg-split,.fg .fg-split.wide{grid-template-columns:minmax(0,1fr);gap:12px;margin-top:8px}
.fg .fg-draw .d{display:none}
.fg .fg-draw .m{display:block}
.fg .fg-two{grid-template-columns:minmax(0,1fr);gap:0}
.fg .fg-two .fg-t+.fg-t{border-top:0}
.fg .fg-two .fg-t+.fg-t .fg-h{display:none}
.fg .fg-tw{margin-top:8px}
.fg .fg-r{grid-template-columns:var(--cm)}
.fg .fg-links{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px}
/* a row that folds to two lines: the name and the compared figure, then the rest of the row in one muted line */
.fg .fg-t.fgf .fg-r{display:flex;flex-wrap:wrap;gap:0;align-items:baseline}
.fg .fg-t.fgf .a{order:1;flex:1 1 0;min-width:0;margin-right:12px}
.fg .fg-t.fgf .b{order:2;flex:0 0 auto;white-space:nowrap;text-align:right}
.fg .fg-t.fgf .fg-br{display:block;order:3;flex:0 0 100%;height:0}
.fg .fg-t.fgf [role=cell].m{order:4;flex:0 0 auto;color:var(--ink2);font-weight:400;text-align:left}
.fg .fg-t.fgf [role=cell].m:not(.m1)::before{content:"·";margin:0 .45em}
.fg .fg-t.fgf .u{display:inline;font-style:normal}
.fg .fg-t.fgf .fg-h .m{display:none}
.fg .fg-t.fgf .fg-h .fg-hm{display:block;order:4;flex:0 0 100%;font-weight:400}
}
/* S136 frame 7: the deeper blocks fold under a ruled summary row. */
.fg .fg-block.fold{border-top:1px solid var(--line);padding-top:0}
.fg .fg-block.fold:last-of-type{border-bottom:1px solid var(--line)}
.fg .fg-block.fold summary{display:flex;align-items:baseline;gap:8px;padding:14px 0;cursor:pointer;list-style:none}
.fg .fg-block.fold summary::-webkit-details-marker{display:none}
.fg .fg-block.fold summary::before{content:"▸";color:var(--ink3);font-size:14px}
.fg .fg-block.fold details[open] summary::before{content:"▾"}
.fg .fg-block.fold summary h2{margin:0;font-size:17px}
.fg .fg-sq{color:var(--ink3);font-size:14px}
.fg .fg-folds{display:flex;flex-direction:column}
.fg .fg-folds .fg-block.fold+.fg-block.fold{border-top:0}
.fg .fg-folds .fg-block.fold details[open]{padding-bottom:28px}
.fg .fg-draw.full{margin-top:16px}
.fg .fg-draw.full svg{width:100%;height:auto}
.fg .fg-across{overflow-x:auto;margin-top:-24px}
.fg .fg-x{border-collapse:collapse;width:100%;font-variant-numeric:tabular-nums;font-size:14px}
.fg .fg-x th,.fg .fg-x td{padding:9px 6px;text-align:right;border-bottom:1px solid var(--line);white-space:nowrap}
.fg .fg-x thead th{color:var(--ink3);font-weight:500;border-bottom:1px solid var(--ink)}
.fg .fg-x th[scope=row],.fg .fg-x thead th:first-child{text-align:left;font-weight:600;color:var(--ink)}
.fg .fg-x td.none{color:var(--ink3)}
@media (max-width:640px){.fg .fg-across{margin-top:-12px}}
@media (max-width:640px){.fg .fg-block.fold summary{flex-wrap:wrap;row-gap:2px}}
/* S136 frame 8: a figures hub's ranked list with the 시군구 form and 다른 정보 beside it */
.fg .fg-with-side{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:48px;align-items:start}
.fg .fg-main,.fg .fg-sidecol{display:flex;flex-direction:column;gap:40px;min-width:0}
.fg .fg-side{display:flex;flex-direction:column;gap:28px}
.fg .fg-pick{display:flex;flex-direction:column;gap:10px;background:var(--ground);border-radius:8px;padding:16px}
.fg .fg-pick h2,.fg .fg-others h2{font-size:15px;margin:0 0 4px}
.fg .fg-pick select{height:40px;border:1px solid var(--line);border-radius:6px;padding:0 10px;font:inherit;font-size:14px;background:#fff;color:var(--ink)}
.fg .fg-pick button{height:40px;border:0;border-radius:6px;background:var(--ink);color:#fff;font:inherit;font-weight:700;font-size:14px;cursor:pointer}
.fg .fg-others ul{list-style:none;margin:0;padding:0}
.fg .fg-others li{border-bottom:1px solid var(--line)}
.fg .fg-others a{display:block;padding:10px 0;color:var(--ink);font-size:14px;font-weight:600}
@media (max-width:900px){.fg .fg-with-side{grid-template-columns:minmax(0,1fr);gap:32px}}
.fg .fg-all{margin:8px 0 0;font-size:14px;font-weight:600}
