/* 의정활동 지표(council/) 전용 스타일. ../css/style.css 의 :root 변수(--blue, --ink, --line …)를 그대로 쓴다. */
.nav a[aria-current="page"]:after { right: 0; }
.nav a[aria-current="page"], .mobile-nav a[aria-current="page"] { color: var(--blue); font-weight: 700; }

.cw-intro { padding: 150px 0 40px; background: #fff; border-bottom: 1px solid var(--line); }
.cw-intro-grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: clamp(40px, 8vw, 120px); align-items: end; }
.cw-intro h1 { font-size: clamp(38px, 4.4vw, 64px); line-height: 1.24; letter-spacing: -.058em; margin: 0; }
.cw-intro p { font-size: 19px; line-height: 1.85; margin: 0; color: #434955; max-width: 640px; }

.cw-about { padding: 54px 0; background: #f6f7f9; border-bottom: 1px solid var(--line); }
.cw-about-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.cw-about h2 { font-size: 22px; letter-spacing: -.04em; margin: 8px 0 10px; }
.cw-about p { margin: 0; font-size: 16px; line-height: 1.8; color: #434955; }
.cw-about a { color: var(--blue); }
.cw-sortbar { justify-content: space-between; }
.cw-sortbar .cw-hint { margin: 0; }

.cw-body { padding: 48px 0 110px; }
.cw-stack { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); }
.cw-stack > * { min-width: 0; }
.cw-stack section:not([hidden]) { display: grid; gap: 18px; min-width: 0; }
.cw-controls { display: flex; flex-wrap: wrap; gap: 14px; align-items: end; }
.cw-field { display: grid; gap: 6px; min-width: 0; }
.cw-grow { flex: 1 1 280px; }
.cw-flabel { font-size: 12px; letter-spacing: .1em; color: var(--blue); font-weight: 800; }
.cw-field select, .cw-field input {
  max-width: 100%;
  font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1px solid var(--line);
  border-radius: 12px; min-height: 48px; padding: 0 14px; min-width: 0; letter-spacing: -.02em;
}
.cw-field select:focus-visible, .cw-field input:focus-visible, .cw-tabs button:focus-visible,
.cw-seg button:focus-visible, .cw-row:focus-visible, .cw-more:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.cw-seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; min-height: 48px; }
.cw-seg button { font: inherit; font-size: 15px; border: 0; background: transparent; color: var(--ink); padding: 0 20px; cursor: pointer; }
.cw-seg button[aria-pressed="true"] { background: var(--blue); color: #fff; font-weight: 700; }
.cw-seg button:disabled { color: #a3a8b1; cursor: not-allowed; }

.cw-tabs { display: flex; gap: 26px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.cw-tabs button { font: inherit; font-size: 16px; background: none; border: 0; border-bottom: 2px solid transparent; padding: 12px 0; color: var(--muted); cursor: pointer; white-space: nowrap; letter-spacing: -.03em; }
.cw-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--blue); font-weight: 700; }

.cw-summary { display: flex; flex-wrap: wrap; gap: 14px 46px; align-items: end; }
.cw-summary b { display: block; font-size: clamp(28px, 3vw, 40px); letter-spacing: -.05em; line-height: 1.15; }
.cw-summary small { color: var(--muted); font-size: 14px; }
.cw-pill { display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px; border-radius: 999px; background: #e9effc; color: var(--blue); font-size: 13px; font-weight: 700; }
.cw-pill.warn { background: #fff6f4; color: #b6372d; }
.cw-notice { margin: 0; padding: 14px 18px; border-radius: 14px; background: #fff6f4; color: #8f2c24; font-size: 15px; line-height: 1.6; }

.cw-table { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.cw-table table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.cw-table th, .cw-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; font-size: 15px; }
.cw-table th { font-size: 12px; color: var(--muted); font-weight: 700; letter-spacing: .06em; background: var(--soft); }
.cw-table tr:last-child td { border-bottom: 0; }
.cw-table .num { text-align: right; }
.cw-row { cursor: pointer; transition: background .2s; }
.cw-row:hover { background: #f5f8fe; }
.cw-rank { width: 4em; font-weight: 800; color: var(--muted); }
.cw-rank.top { color: var(--blue); }
.cw-name { font-weight: 700; }
.cw-total { font-weight: 800; }
.cw-zero { color: #a3a8b1; }
.cw-detail td { white-space: normal; background: var(--soft); }
.cw-items { display: grid; gap: 8px; padding: 6px 0; position: sticky; left: 16px; max-width: min(860px, calc(100vw - 72px)); }
.cw-item > * { min-width: 0; }
.cw-item { display: grid; grid-template-columns: 8em 3em minmax(0, 1fr); gap: 10px; align-items: baseline; font-size: 14px; min-width: 0; }
.cw-item .k { color: var(--muted); }
.cw-item .p { text-align: right; font-weight: 700; color: var(--blue); }
.cw-item a { justify-self: start; color: var(--ink); border-bottom: 1px solid #b9c8ea; overflow-wrap: anywhere; }
.cw-item a:hover { color: var(--blue); }

.cw-list { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.cw-result { display: grid; gap: 6px; padding: 18px 22px; border-bottom: 1px solid var(--line); min-width: 0; }
.cw-result:last-child { border-bottom: 0; }
.cw-result .meta { color: var(--muted); font-size: 14px; }
.cw-result .meta b { color: var(--ink); }
.cw-result a { color: var(--blue); overflow-wrap: anywhere; }
.cw-snip { font-size: 16px; line-height: 1.75; overflow-wrap: anywhere; }
.cw-list mark { background: #e9effc; color: var(--blue); font-weight: 700; padding: 0 2px; }
.cw-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cw-chips small { color: var(--muted); margin-right: 4px; }
.cw-hint { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.cw-empty { padding: 26px 22px; color: var(--muted); }
.cw-more { justify-self: start; margin: 14px 22px 20px; font: inherit; font-weight: 700; min-height: 44px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--blue); cursor: pointer; }
.cw-rules { display: grid; gap: 30px; max-width: 860px; }
.cw-rules .rule { grid-template-columns: 72px 1fr; }

@media (max-width: 900px) {
  .cw-intro { padding: 110px 0 34px; }
  .cw-intro-grid { grid-template-columns: 1fr; gap: 20px; }
  .cw-intro p { font-size: 17px; }
  .cw-about-grid { grid-template-columns: 1fr; }
  .cw-item { grid-template-columns: 5.6em 2.4em minmax(0, 1fr); }
}

.cw-title { color: #434955; }
.cw-ai { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 999px; background: #eef2fb; color: var(--blue); font-size: 11px; font-weight: 700; text-decoration: none; cursor: help; vertical-align: 1px; }
.cw-ver { display: table; margin: 10px 0 0; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--blue); color: var(--blue); font-size: 12px; font-weight: 700; vertical-align: 2px; cursor: help; }
button.cw-ver { font: inherit; font-size: 12px; font-weight: 700; background: #fff; }
button.cw-ver:hover { background: #eef2fb; }
.cw-updates { display: grid; gap: 18px; max-width: 860px; }
.cw-up { border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; background: #fff; }
.cw-up.now { border-color: var(--blue); }
.cw-up.next { background: #f6f7f9; }
.cw-up h3 { margin: 6px 0 10px; font-size: 22px; letter-spacing: -.03em; }
.cw-up h3 small, .cw-up h4 small { color: var(--muted); font-size: 14px; font-weight: 500; margin-left: 6px; }
.cw-up h4 { margin: 16px 0 6px; font-size: 16px; }
.cw-up ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; line-height: 1.7; color: #434955; }
.cw-up.past summary { cursor: pointer; font-weight: 700; }
.cw-ref { min-width: 0; }
.cw-src { display: inline-block; margin-left: 4px; padding: 0 7px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: 11px; text-decoration: none; white-space: nowrap; vertical-align: 1px; }
a.cw-src:hover { color: var(--blue); border-color: var(--blue); }
.cw-field[hidden] { display: none !important; }
.cw-roles { white-space: normal !important; min-width: 9em; max-width: 16em; }
.cw-role { display: block; width: fit-content; margin: 2px 0; padding: 1px 7px; border: 0; border-radius: 6px; background: #f1f3f7; color: #434955; font: inherit; font-size: 11px; font-weight: 600; line-height: 1.5; text-align: left; white-space: normal; cursor: pointer; }
.cw-role:hover { background: #e6eaf2; }
.cw-role.open::after { content: " · " attr(data-info); font-weight: 400; color: var(--muted); }
.cw-vid { display: inline-block; margin-left: 6px; padding: 0 8px; border-radius: 999px; background: #fdecea; color: #b6372d; font-size: 11px; font-weight: 700; white-space: nowrap; vertical-align: 1px; }
a.cw-vid:hover { background: #f9d6d2; }
.cw-colsort { font: inherit; font-size: 12px; font-weight: 700; color: var(--muted); background: none; border: 0; padding: 0; cursor: pointer; letter-spacing: .06em; }
.cw-colsort[aria-pressed="true"] { color: var(--blue); }
.cw-table th small { display: block; font-weight: 500; letter-spacing: 0; }
.cw-sub { display: block; color: var(--muted); font-size: 12px; font-weight: 400; }
.cw-party { white-space: nowrap; }
.cw-golink { font: inherit; font-weight: 700; color: var(--ink); background: none; border: 0; padding: 0; cursor: pointer; border-bottom: 1px solid #b9c8ea; }
.cw-golink:hover { color: var(--blue); }
.cw-me td { background: #f5f8fe; }
.cw-cmp-about { display: grid; gap: 8px; max-width: 860px; }
.cw-cmp-about p { margin: 0; }
.cw-stack[hidden], [id^="view-"][hidden] { display: none !important; }
.cw-tabs-main button { font-size: 17px; }
.cw-subseg { justify-self: start; }
body.no-score .only-score { display: none !important; }
body:not(.no-score) .no-score { display: none !important; }
#col-total[hidden] { display: none; }
.cw-h3 { margin: 18px 0 0; font-size: 19px; letter-spacing: -.03em; }
.cw-note { white-space: normal !important; font-size: 13px; color: var(--muted); min-width: 14em; }
.cw-note b { color: var(--ink); font-weight: 600; }
#crules td { white-space: normal; }
.cw-download ul { margin: 6px 0 0; padding-left: 1.2em; display: grid; gap: 6px; line-height: 1.7; }
.cw-download a { color: var(--blue); }
/* 보기 순서 버튼: 휴대폰 폭에서 줄바꿈되는 알약 버튼 */
#sortSeg { display: flex; flex-wrap: wrap; gap: 8px; border: 0; background: none; border-radius: 0; overflow: visible; min-height: 0; }
#sortSeg button { white-space: nowrap; min-height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
#sortSeg button[aria-pressed="true"] { border-color: var(--blue); background: var(--blue); color: #fff; font-weight: 700; }
.cw-keycol { background: #f5f8fe; }
#col-key[hidden] { display: none; }
/* 조례 발의 막대: 제정 #114fcb · 개정 #5b8ff0 (색약 구분·대비 검사 통과), 토막 사이 2px 틈 */
.cw-obar { display: flex; gap: 2px; width: 96px; height: 8px; margin: 4px 0 2px auto; }
.cw-barcell .cw-obar { width: 140px; margin: 0; }
.cw-obar i, .cw-legend i { display: block; height: 100%; min-width: 2px; }
.cw-obar i:first-child { border-radius: 4px 0 0 4px; }
.cw-obar i:last-child { border-radius: 0 4px 4px 0; }
.cw-obar i:only-child { border-radius: 4px; }
.cw-obar .j, .cw-legend .j { background: #114fcb; }
.cw-obar .g, .cw-legend .g { background: #5b8ff0; }
.cw-legend { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.cw-legend i { width: 14px; height: 8px; border-radius: 4px; display: inline-block; margin-left: 6px; }
.cw-table th small { display: block; font-weight: 500; letter-spacing: 0; }
@media (max-width: 600px) { .cw-obar { width: 72px; } .cw-ordcell .cw-sub { white-space: nowrap; } }
.cw-feedback { display: grid; gap: 4px; margin-top: 8px; padding-top: 10px; border-top: 1px dashed var(--line); }
.cw-mailbtn { justify-self: start; display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--blue); border-radius: 999px; color: var(--blue); font-size: 14px; font-weight: 700; background: #fff; }
.cw-mailbtn:hover { background: #eef2fb; }
.cw-tell { display: inline-block; margin-left: 6px; padding: 0 8px; border-radius: 999px; border: 1px dashed var(--line); color: var(--muted); font-size: 11px; white-space: nowrap; vertical-align: 1px; }
a.cw-tell:hover { color: var(--blue); border-color: var(--blue); }
.cw-nv { display: inline-block; margin-left: 6px; color: var(--muted); font-size: 11px; }
#col-q[hidden], #col-f[hidden] { display: none; }

.cw-comp { margin: 8px 0 4px; } .cw-comp p { margin: 2px 0; } .cw-inline { display: inline; margin-left: 4px; }
.cw-topq { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 6px 0; } .cw-topq > span { color: var(--muted); font-size: 13px; margin-right: 4px; } .cw-topq-b { cursor: pointer; border: 0; }
.cw-agg { width: 100%; box-sizing: border-box; display: grid; grid-template-columns: 1.2fr 1fr 0.8fr; gap: 18px; margin: 10px 0 14px; padding: 14px; border: 1px solid var(--line, #e0e3e8); border-radius: 12px; }
.cw-agg h4 { margin: 0 0 8px; font-size: 14px; } .cw-agg h4 small { color: var(--muted); font-weight: 400; margin-left: 4px; }
.cw-agg ol { margin: 0; padding-left: 20px; } .cw-agg li { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; padding: 2px 0; }
.cw-agg li > span { color: var(--muted); white-space: nowrap; }
.cw-agg button { border: 0; background: none; padding: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.cw-agg-m:hover b, .cw-agg-c:hover span { color: var(--blue); text-decoration: underline; }
.cw-agg-c { display: grid !important; grid-template-columns: 56px 1fr; align-items: center; column-gap: 8px; width: 100%; font-size: 13px !important; line-height: 1.3; padding: 3px 0 !important; } .cw-agg-c span { font-size: 13px; }
.cw-agg-c i { display: block; height: 8px; border-radius: 4px; background: var(--blue); }
.cw-agg-c small { grid-column: 2; color: var(--muted); font-size: 11px; }
.cw-agg-y { display: flex; align-items: flex-end; gap: 6px; height: 80px; } .cw-agg-y div { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.cw-agg-y i { display: block; width: 14px; border-radius: 3px 3px 0 0; background: var(--blue); } .cw-agg-y small { font-size: 11px; color: var(--muted); }
.cw-agg-who { margin: 8px 0; font-size: 14px; } .cw-agg-who .cw-pill { cursor: pointer; border: 0; margin-left: 6px; }
@media (max-width: 760px) { .cw-agg { grid-template-columns: 1fr; } }
.cw-agg-s { min-width: 0; } .cw-agg li b { font-size: 13px; } .cw-agg li small { font-size: 12px; color: var(--muted); }
.cw-budget { margin: 8px 0 4px; } .cw-budget p { margin: 2px 0; }
.cw-bchart { position: relative; height: 120px; margin: 6px 0 18px; border-bottom: 1px solid var(--line, #e0e3e8); }
.cw-bchart svg { width: 100%; height: 100%; display: block; }
.cw-bx { position: absolute; left: 0; right: 0; bottom: -18px; height: 16px; } .cw-bx span { position: absolute; transform: translateX(-50%); font-size: 11px; color: var(--muted); }
.cw-key { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin: 0 4px 0 8px; vertical-align: -1px; }
.cw-btip { position: absolute; top: -6px; transform: translate(-50%, -100%); background: var(--ink, #111); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 8px; border-radius: 6px; white-space: nowrap; pointer-events: none; z-index: 2; }
.cw-bhit { cursor: pointer; } .cw-bchart { margin-top: 30px; }
.cw-paytable { margin: 4px 0; } .cw-paytable table { font-size: 13px; } .cw-paytable td, .cw-paytable th { padding: 4px 8px; }
/* 의원 개인 페이지 */
.cw-m { padding-top: 110px; padding-bottom: 60px; max-width: 900px; }
.cw-m-crumb { font-size: 13px; color: var(--muted); } .cw-m-crumb a { color: var(--blue); }
.cw-m-name { font-size: 34px; margin: 6px 0 4px; } .cw-m-name small { font-size: 18px; color: var(--muted); font-weight: 500; }
.cw-m-meta { margin: 2px 0; color: var(--ink); } .cw-m-roles { margin: 8px 0; } .cw-m-roles .cw-role { margin-right: 6px; }
.cw-m-share { margin: 14px 0 8px; display: flex; gap: 8px; flex-wrap: wrap; } .cw-m-share .cw-pill { cursor: pointer; border: 0; text-decoration: none; }
.cw-m-term { margin-top: 28px; border-top: 1px solid var(--line, #e0e3e8); padding-top: 16px; } .cw-m-term h2 { font-size: 20px; margin: 0 0 12px; }
.cw-m-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 14px; }
.cw-m-stat { border: 1px solid var(--line, #e0e3e8); border-radius: 10px; padding: 10px; text-align: center; }
.cw-m-stat b { display: block; font-size: 24px; } .cw-m-stat span { font-size: 13px; } .cw-m-stat small { display: block; font-size: 11px; color: var(--muted); }
.cw-m-group { margin: 6px 0; } .cw-m-group summary { cursor: pointer; font-weight: 700; padding: 6px 0; } .cw-m-group summary small { color: var(--muted); font-weight: 400; }
.cw-m-group .cw-item { display: block; padding: 4px 0 4px 12px; font-size: 14px; border-left: 2px solid var(--line, #e0e3e8); margin: 2px 0; }
.cw-mlink { display: inline-block; margin: 4px 0 8px; font-weight: 700; color: var(--blue); }
@media (max-width: 600px) { .cw-m { padding-top: 90px; } .cw-m-stats { grid-template-columns: repeat(3, 1fr); } .cw-m-name { font-size: 28px; } }
.cw-cards { display: grid; gap: 8px; margin: 8px 0; }
.cw-card { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border: 1px solid var(--line, #e0e3e8); border-left: 4px solid var(--blue); border-radius: 10px; padding: 12px 14px; background: #fff; }
.cw-card p { margin: 2px 0; font-size: 14px; } .cw-card-name { font-size: 20px; font-weight: 800; color: var(--ink); text-decoration: none; } .cw-card-name small { font-size: 13px; color: var(--muted); font-weight: 500; }
.cw-card-act { display: flex; gap: 6px; flex-wrap: wrap; } .cw-card-act .cw-pill { text-decoration: none; border: 0; cursor: pointer; }
.cw-agg-p { text-decoration: none; color: var(--blue); font-weight: 700; margin-right: auto; padding-left: 4px; }
.cw-howto ol, .cw-howto ul { padding-left: 20px; line-height: 1.7; } .cw-howto li { margin: 6px 0; } .cw-howto code { background: #eef2fb; padding: 1px 6px; border-radius: 4px; font-size: .95em; }
.cw-tryhint { line-height: 2.2; } .cw-try { border: 0; cursor: pointer; margin: 2px 4px 2px 0; }
.cw-howto-link { border: 0; cursor: pointer; margin-left: 4px; vertical-align: middle; }
.cw-res { display: inline-block; font-size: 12px; font-weight: 600; padding: 0 6px; border-radius: 4px; margin-left: 4px; white-space: nowrap; vertical-align: 1px; }
.cw-res-ok { color: #2d6a3e; background: #e8f3ea; font-weight: 500; }
.cw-res-bad { color: #fff; background: #c0392b; }
.cw-res-wait { color: var(--muted); background: #f0f1f3; font-weight: 400; }
.cw-res-re { color: #8a4b00; background: #fff1dc; border: 1px solid #f0c48a; }
.cw-okline { color: #2d6a3e; }
.cw-okmiss i { font-style: normal; }
/* 휴대폰: '가결 10 · 미가결 3'이 한 줄이면 조례 칸이 넓어져 5분발언 칸이 화면 밖으로 밀린다(양천 9대). 미가결은 다음 줄로 */
@media (max-width: 600px) { .cw-okmiss { display: block; } .cw-okmiss i { display: none; } }
/* 집계 기준 표: 설명 칸은 줄바꿈(휴대폰에서 옆으로 잘리고 iOS가 글자를 키우던 문제) */
.cw-table { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
.cw-rules .cw-table td:last-child { white-space: normal; line-height: 1.6; min-width: 180px; }
.cw-rules .cw-table td:first-child { width: 1%; }
/* 통합 검색: 의안 칸과 발언 칸 */
.cw-findsec { gap: 10px; } .cw-findsec .cw-h3 { margin: 6px 0 0; } .cw-findsec .cw-h3 small { font-size: 13px; color: var(--muted); font-weight: 500; margin-left: 6px; }
.cw-bill-who { border: 0; cursor: pointer; }
.cw-result .cw-res { align-self: flex-start; justify-self: start; width: auto; margin-left: 0; }
/* ── 화면 정리(v0.9.13): 한 줄 요약 · 접기 상자 · 묶음 펼침 · 비교 버튼 ── */
.cw-summary:has(.cw-oneline) { display: block; }
.cw-oneline { margin: 0; font-size: 15px; line-height: 1.7; color: var(--ink); } .cw-oneline b { display: inline; font-size: inherit; letter-spacing: 0; font-weight: 800; }
.cw-info-link { white-space: nowrap; font-size: 14px; color: var(--blue); margin-left: 4px; }
.cw-caution { font-size: 13px; margin: 0; }
.cw-fold { border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 0 16px; min-width: 0; }
.cw-fold > summary { cursor: pointer; padding: 14px 0; font-weight: 700; } .cw-fold > summary small { color: var(--muted); font-weight: 400; margin-left: 6px; }
.cw-fold[open] { padding-bottom: 16px; } .cw-fold[open] > summary { margin-bottom: 4px; } .cw-fold .cw-table { margin-top: 8px; }
#cinfo { scroll-margin-top: 90px; } #cinfo .cw-comp, #cinfo .cw-budget { margin-bottom: 14px; }
.cw-role-in { display: inline-block; margin: 0 0 0 4px; vertical-align: 2px; }
.cw-countline { margin: 0; font-size: 14px; font-weight: 700; color: var(--ink); }
.cw-igroup { display: grid; gap: 6px; } .cw-igroup h4 { margin: 8px 0 0; font-size: 14px; } .cw-igroup h4 small { color: var(--muted); font-weight: 400; }
.cw-igroup .cw-item { grid-template-columns: 4.5em minmax(0, 1fr); } .cw-igroup .cw-item .p { display: none; }
.cw-igroup[data-g="구정질문"] .cw-item, .cw-igroup[data-g="5분발언"] .cw-item { grid-template-columns: minmax(0, 1fr); } .cw-igroup[data-g="구정질문"] .cw-item .k, .cw-igroup[data-g="5분발언"] .cw-item .k { display: none; }
.cw-more-in { justify-self: start; margin-top: 2px; }
.cw-part { display: grid; gap: 16px; min-width: 0; } .cw-part[hidden] { display: none; }
#view-compare > * { min-width: 0; } #view-compare { display: grid; gap: 20px; }
.cw-core { padding-left: 20px; line-height: 1.7; margin: 0; } .cw-core li { margin: 6px 0; }
#view-rules .cw-fold { margin-top: 10px; }
#sortSel { min-height: 44px; }
@media (max-width: 600px) {
  .cw-table:has(#rows) th, .cw-table:has(#rows) td { padding: 12px 8px; } .cw-table:has(#rows) .cw-rank { width: 1%; }
  .cw-table:has(#crows) th, .cw-table:has(#crows) td { padding: 12px 8px; }
}
/* 이름 칸은 줄바꿈 허용(직책·정당 줄이 숫자 열을 밀어내지 않게) */
.cw-table:has(#rows) td.cw-name, .cw-table:has(#crows) td.cw-name { white-space: normal; }
@media (max-width: 600px) {
  .cw-table:has(#rows) td.cw-name { min-width: 7.5em; } .cw-role-in { display: table; margin: 3px 0 1px; }
  .cw-table:has(#crows) td.cw-name { min-width: 7em; } .cw-table:has(#crows) .cw-party { white-space: normal; }
}
.cw-table:has(#rows) td.cw-name *, .cw-table:has(#crows) td.cw-name * { white-space: normal; }
@media (max-width: 600px) { .cw-table:has(#crows) td small { white-space: normal; } .cw-table:has(#crows) th small { white-space: normal; } }
.cw-role-in { word-break: break-all; } .cw-nsub { display: none; }
@media (max-width: 600px) { .cw-table:has(#crows) .cw-ncol { display: none; } .cw-nsub { display: block; } }
@media (max-width: 600px) { .cw-table:has(#crows) th, .cw-table:has(#crows) td { padding: 12px 6px; } }
@media (max-width: 600px) { #guideSeg button, #cpartSeg button, #kindSeg button { padding: 0 13px; white-space: nowrap; } }

/* 우리 동네 의원 찾기 */
.cw-dong { border-left-color: #1f8a5b; display: block; } .cw-dong-h { font-size: 16px; margin: 0 0 6px; } .cw-dong-h small { color: var(--muted); font-size: 13px; margin-left: 4px; }
.cw-dong-list { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 4px 0 8px; }
.cw-dong-m { text-decoration: none; color: var(--ink); border-bottom: 1px solid #b9c8ea; } .cw-dong-m small { color: var(--muted); }
.cw-dong-pick { border: 0; cursor: pointer; } .cw-dong-pick small { color: var(--muted); }
.cw-dong-term { border-top: 1px dashed var(--line); padding-top: 8px; margin-top: 6px; } .cw-dong-term:first-of-type { border-top: 0; padding-top: 0; }
.cw-dong-t { margin: 0 0 4px; font-weight: 700; font-size: 14px; } .cw-dong-t small { color: var(--muted); font-weight: 400; margin-left: 4px; }

/* 회의록에서 읽은 결과 표시, 휴대폰 비교 표 열 줄이기 */
.cw-res-m { font-weight: 400; opacity: .8; font-size: 11px; }
.cw-mobile-note { display: none; }
@media (max-width: 600px) {
  .cw-mobile-note { display: block; font-size: 12px; margin-top: -8px; }
  .cw-table:has(#ctype) th, .cw-table:has(#ctype) td, .cw-table:has(#cbudget) th, .cw-table:has(#cbudget) td, .cw-table:has(#crules) th, .cw-table:has(#crules) td { padding: 10px 6px; white-space: normal; font-size: 14px; }
  .cw-table:has(#ctype) :is(th, td):is(:nth-child(2), :nth-child(4), :nth-child(5), :nth-child(6)) { display: none; }
  .cw-table:has(#cbudget) :is(th, td):is(:nth-child(3), :nth-child(6), :nth-child(8)) { display: none; }
  .cw-table:has(#crules) :is(th, td):nth-child(4) { display: none; }
  .cw-table:has(#crules) .cw-note { min-width: 7em; font-size: 12px; }
  .cw-table:has(#ctype) td.cw-name, .cw-table:has(#cbudget) td.cw-name, .cw-table:has(#crules) td.cw-name { white-space: normal; min-width: 4.5em; }
}
@media (max-width: 600px) { .cw-table:has(#crules) .cw-note { min-width: 0; overflow-wrap: anywhere; } .cw-table:has(#crules) td, .cw-table:has(#crules) th { padding: 10px 5px; font-size: 13px; overflow-wrap: anywhere; } }

/* 회의 전체 영상(발언 위치 없음): 발언 영상과 구분 */
.cw-vid-m { background: #f0f1f3 !important; color: #434955 !important; }

/* 찾는 방법 설명(검색 첫 화면) */
dl.cw-howto { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 10px 0 8px; align-items: center; }
.cw-howto dt { font-weight: 700; white-space: nowrap; } .cw-howto dt small { font-weight: 400; color: var(--muted); }
.cw-howto dd { margin: 0; color: var(--muted); }
@media (max-width: 600px) { dl.cw-howto { grid-template-columns: 1fr; gap: 2px; } .cw-howto dd { margin-bottom: 8px; } }
/* 의원이 회의에서 많이 다룬 주제 */
.cw-topics { margin: 8px 0 12px; line-height: 2; } .cw-topics b { margin-right: 6px; font-size: 13px; }
.cw-topics .cw-pill small { color: var(--muted); font-size: 11px; margin-left: 4px; } .cw-topics .cw-sub { display: block; line-height: 1.5; }
/* 구 이름 검색: 선거구별 구의원 명단 */
.cw-gu-mayor { margin-left: 8px; color: var(--muted); font-weight: 400; }
.cw-gu-sg { margin: 6px 0 10px; } .cw-gu-9 { margin-top: 10px; } .cw-gu-9 summary { cursor: pointer; font-weight: 700; margin-bottom: 6px; }
.cw-dong-pick small { margin-left: 4px; color: var(--muted); }
.cw-gupick { padding: 18px; display: block; } .cw-gupick[hidden] { display: none !important; } .cw-gupick .cw-pill { border: 0; font-size: 15px; padding: 6px 14px; }
/* 의장단 업무추진비 */
.cw-exp-t td, .cw-exp-t th { white-space: nowrap; }
.cw-exp-notes { margin-top: 14px; padding: 12px 16px; border-left: 3px solid var(--line); background: var(--soft, #f6f7f9); border-radius: 0 10px 10px 0; font-size: 14px; color: var(--muted); }
.cw-exp-notes b { color: var(--ink); font-size: 13px; } .cw-exp-notes ul { margin: 6px 0 0; padding-left: 18px; line-height: 1.6; }
.cw-exp-chip { font: inherit; font-size: 13px; padding: 6px 12px; min-height: 34px; border: 1px solid var(--blue); color: var(--blue); background: #fff; border-radius: 999px; cursor: pointer; }
.cw-exp-open { display: block; width: 100%; margin: 14px 0 4px; min-height: 48px; font: inherit; font-weight: 700; color: var(--blue); background: #fff; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; }
.cw-exp-open:hover { background: var(--soft, #f6f7f9); }
.cw-exp-rb { font: inherit; color: var(--blue); background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.cw-exp-rb:hover { text-decoration: underline; }
.cw-exp-about { margin-top: 12px; } .cw-exp-about > summary { cursor: pointer; color: var(--muted); font-size: 14px; } .cw-exp-about > p { margin-top: 8px; }
.cw-trip { padding: 16px 0; border-top: 1px solid var(--line); } .cw-trip:first-child { border-top: 0; padding-top: 6px; }
.cw-trip h4 { margin: 0 0 4px; font-size: 17px; letter-spacing: -.02em; } .cw-trip h4 small { font-weight: 400; color: var(--muted); font-size: 14px; margin-left: 6px; white-space: nowrap; }
.cw-trip p { margin: 6px 0 0; font-size: 14px; line-height: 1.6; } .cw-trip-num small, .cw-trip-why { color: var(--muted); }
.cw-trip-who { display: flex; flex-wrap: wrap; gap: 6px; } .cw-trip-who .cw-pill { font-size: 13px; }
.cw-trip-after { margin-top: 10px; padding: 10px 14px; background: var(--soft, #f6f7f9); border-radius: 12px; } .cw-trip-after > summary { cursor: pointer; font-size: 14px; font-weight: 700; }
.cw-trip-after p { font-size: 14px; line-height: 1.65; } .cw-trip-after small { color: var(--muted); }
.cw-trip-miss { color: var(--muted); } .cw-trip-none { margin-top: 12px; }
.cw-trip-src { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.cw-trip-src.st { background: #e3f4ec; color: #0b6b45; } .cw-trip-src.pl { background: #fdf0d8; color: #8a5a00; } .cw-trip-src.rp { background: #e4ecfb; color: #1c4fae; }
.cw-trip-items { color: var(--muted); font-size: 13px !important; }
.cw-trip-t small { color: var(--muted); font-weight: 400; }
@media (max-width: 600px) { .cw-exp-t.cw-trip-t th:nth-child(3), .cw-exp-t.cw-trip-t td:nth-child(3) { display: table-cell; } .cw-exp-t.cw-trip-t th:nth-child(5), .cw-exp-t.cw-trip-t td:nth-child(5) { display: none; } .cw-trip-t small { display: none; } .cw-trip-t td:nth-child(3) small { display: inline; } } .cw-trip-docs a { color: var(--blue); font-weight: 700; }
.cw-exp-tot { margin: 4px 0 12px; color: var(--muted); } .cw-exp-tot b { color: var(--ink); font-size: 18px; margin-left: 4px; }
.cw-exp-find { display: flex; align-items: center; gap: 10px; margin: 22px 0 10px; } .cw-exp-find small { color: var(--muted); white-space: nowrap; }
.cw-exp-q { width: min(360px, 100%); min-height: 40px; padding: 8px 12px; border: 1px solid var(--line, #d6dae1); border-radius: 10px; font: inherit; font-size: 14px; }
.cw-exp-list { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.cw-exp-mh { padding: 10px 18px; background: var(--soft, #f6f7f9); font-size: 13px; font-weight: 700; color: var(--muted); border-top: 1px solid var(--line); }
.cw-exp-list > .cw-exp-mh:first-child { border-top: 0; }
.cw-exp-row { display: grid; grid-template-columns: 3em 13.5em 1fr auto; align-items: baseline; column-gap: 14px; padding: 10px 18px; border-top: 1px solid var(--line, #e0e3e8); font-size: 14px; line-height: 1.55; }
.cw-exp-row small { color: var(--muted); font-weight: 400; } .cw-exp-d { color: var(--muted); font-variant-numeric: tabular-nums; }
.cw-exp-r { white-space: nowrap; } .cw-exp-w { min-width: 0; } .cw-exp-a { font-weight: 700; white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
.cw-exp-a a { font-weight: 400; font-size: 13px; margin-left: 4px; }
@media (max-width: 600px) {
  .cw-exp-t th:nth-child(3), .cw-exp-t td:nth-child(3) { display: none; } .cw-exp-t td, .cw-exp-t th { padding-left: 6px; padding-right: 6px; font-size: 13px; }
  .cw-exp-row { grid-template-columns: auto 1fr; row-gap: 2px; padding: 10px 14px; } .cw-exp-mh { padding: 8px 14px; }
  .cw-exp-w { grid-column: 1 / -1; } .cw-exp-a { grid-column: 1 / -1; text-align: left; }
  .cw-exp-find { flex-wrap: wrap; }
}

/* 구의회 고르기 지도(실제 경계). 이름 버튼은 '이름으로 고르기'에 접어 둔다 */
.cw-gupick .cw-dong-h small { color: var(--muted); font-weight: 400; margin-left: 6px; }
.cw-maps { max-width: 640px; margin: 10px auto 14px; }
.cw-map { display: block; width: 100%; height: auto; }
.cw-map-gu { cursor: pointer; outline: none; }
.cw-map-gu path { fill: #e9effc; stroke: #fff; stroke-width: 2; }
.cw-map-gu:hover path, .cw-map-gu.hl path, .cw-map-gu:focus-visible path { fill: var(--blue); }
.cw-map-gu:focus-visible path { stroke: var(--ink); stroke-width: 3; }
.cw-map-lab { font-size: 16px; font-weight: 700; fill: var(--ink); text-anchor: middle; dominant-baseline: central; pointer-events: none; letter-spacing: -.03em; }
.cw-map-lab.hl, .cw-map-lab.on { fill: #fff; } .cw-map-gu.on path { fill: var(--blue); } .cw-gu-names .cw-pill.on { background: var(--blue); color: #fff; }  /* 구 이름은 면적과 상관없이 모두 같은 크기(16에서 겹침 없음을 확인, 20부터 성북·종로가 겹침) */
.cw-gu-names { margin: 4px 0 10px; } .cw-gu-names > summary { cursor: pointer; font-size: 14px; font-weight: 700; color: var(--blue); min-height: 44px; display: flex; align-items: center; list-style: none; } .cw-gu-names > summary::-webkit-details-marker { display: none; } .cw-gu-names > summary::after { content: " ▾"; margin-left: 4px; } .cw-gu-names[open] > summary::after { content: " ▴"; }
.cw-gu-names .cw-chips { margin-top: 6px; }
.cw-gupick .cw-gu-names .cw-pill { font-size: 13px; min-height: 34px; padding: 4px 11px; } .cw-gu-names .cw-pill.hl { background: var(--blue); color: #fff; }
@media (max-width: 760px) {
  /* 휴대폰: 구 이름은 면적과 상관없이 같은 크기, '구'는 뺀다(이 크기까지 이름끼리 겹치지 않음을 확인) */
  .cw-map-lab { font-size: 22px; } .cw-map-suf { display: none; } }
#cthBar[hidden] { display: none !important; }
/* 의안을 다룬 회의록(위원회 심사 · 본회의 의결) */
.cw-bm { font-size: 12px; color: var(--muted); margin-left: 6px; white-space: normal; }
.cw-bm a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.cw-bm a:hover { color: var(--blue); }

/* 정보공개 지표 */
.cw-optable th.op-ic { writing-mode: horizontal-tb; min-width: 4.5rem; font-size: .8rem; line-height: 1.25; vertical-align: bottom; }
.cw-optable th.op-ic small, .cw-optable th.op-sum small { display: block; font-weight: 400; color: var(--muted); }
.cw-optable th.op-grp { text-align: center; }
.cw-optable td.op-c { text-align: center; }
.cw-optable td.op-sum { white-space: nowrap; }
.op-y { color: #1a7f37; font-weight: 700; }
.op-n { color: #b42318; font-weight: 700; }
.op-q { color: var(--muted); font-size: .85em; }
.op-g { padding: 0 .35em; border-radius: 3px; border: 1px solid currentColor; }
.op-g-좋음 { color: #1a7f37; } .op-g-보통 { color: #8a6100; } .op-g-미흡 { color: #b42318; }
.op-more { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline dotted; cursor: pointer; text-align: left; }
tr.op-why td { background: var(--soft); font-size: .9rem; white-space: normal; }
tr.op-why td ul { position: sticky; left: 0; max-width: min(60rem, calc(100vw - 5rem)); white-space: normal; overflow-wrap: anywhere; }
tr.op-why ul, ul.op-list { margin: .3rem 0 .6rem 1.1rem; padding: 0; }
ul.op-list li { margin: .35rem 0; }
.op-whyh { margin: .5rem 0 .1rem; font-weight: 700; }
/* 근거 화면 링크: 판정 문장과 구별되는 작은 단추 모양 */
a.op-ev { display: inline-block; margin-left: .35rem; padding: 0 .5rem; border: 1px solid var(--blue); border-radius: 999px; color: var(--blue); background: #fff; font-size: .78rem; font-weight: 700; line-height: 1.6; text-decoration: none; white-space: nowrap; vertical-align: .05rem; }
a.op-ev:hover, a.op-ev:focus-visible { background: var(--blue); color: #fff; }
/* 판정 표시: 기호 + 글자 (색만으로 구별하지 않음) */
.op-st { font-weight: 700; white-space: nowrap; }
.op-st i { font-style: normal; display: inline-block; margin-right: .2rem; }
.op-st.ok { color: var(--blue); }
.op-st.no { color: #c62828; }
.op-st.un { color: #6b7280; }
.op-st.un i { width: 1.05em; height: 1.05em; line-height: 1.05em; text-align: center; border: 1px solid currentColor; border-radius: 50%; font-size: .72em; vertical-align: .12em; }
h4.op-dim { margin: .8rem 0 .2rem; font-size: .95rem; }
.op-tag { border: 1px solid var(--line); border-radius: 3px; padding: 0 .3em; font-size: .75rem; }
/* 지방의회 투명성 지수(council/transparency/)는 데스크톱에서만: 좁은 화면에서는 안내 문구만 */
.op-mobile { display: none; }
@media (max-width: 900px) {
  .op-page > :not(.op-mobile) { display: none; }
  .op-page > .op-mobile { display: block; }
}
