/* 오늘의 여론(today) — 다시 짠 화면의 모양(survey_next.css) 위에 얹는 것만. 색: 예측 = 강조색 · 실제 발표 = 금색 · 긍정 쪽 = 청록 · 부정 쪽 = 주황 */
:root { --gold: #a87900; --up: #0f9d8a; --dn: #e8590c; }
[data-tone="dark"] { --gold: #ba8c0f; --up: #27a89d; --dn: #d6761f; }
.heads4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 24px; margin: clamp(28px, 4vw, 52px) auto 0; max-width: 1180px; padding: 0 22px; text-align: center; }
.heads4 .hd span { display: block; font-size: 14px; color: var(--ink2); font-weight: 600; }
.heads4 .hd b { display: inline-block; font-size: clamp(44px, 5.6vw, 76px); line-height: 1.08; font-weight: 700; letter-spacing: -.045em; }
.heads4 .hd b i { font-style: normal; font-size: .52em; margin-left: .04em; }
.heads4 .hd small { display: block; margin-top: 6px; font-size: 14px; color: var(--ink2); }
.heads4 .hd small em { font-style: normal; font-weight: 600; }
.heads4 .hd small em.up { color: var(--up); } .heads4 .hd small em.dn { color: var(--dn); }
.tagv { display: inline-block; font-size: 12px; padding: 2px 9px; border-radius: 980px; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink2); margin-left: 6px; vertical-align: 2px; font-weight: 500; }

/* ── 패널의 모눈 */
.pgrid { margin-top: clamp(28px, 4vw, 48px); scroll-margin-top: 76px; }
.pchips { display: flex; flex-wrap: wrap; gap: 8px; }
.pchips button, .seg button { all: unset; cursor: pointer; font-family: inherit; font-size: 14px; padding: 8px 15px; border-radius: 980px; background: var(--card); color: var(--ink2); white-space: nowrap; }
.pchips button:hover, .seg button:hover { color: var(--ink); }
.pchips button[aria-selected="true"], .seg button[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.pchips button:focus-visible, .seg button:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.pctl { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin-top: 14px; font-size: 14px; color: var(--ink2); }
.pgrid > .pctl { margin-top: 0; } .pgrid > .pchips { margin-top: 14px; }
.seg { display: inline-flex; gap: 4px; background: var(--card); border-radius: 980px; padding: 3px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { padding: 6px 14px; background: none; flex: none; }
/* 패널은 본문 폭을 벗어나 화면 끝에서 끝까지 쓴다(상자 없이 검은 바탕에 바로). 설명하는 칸 셋(고른 뉴스 · 모으면 · 한 사람)은 그 아래에 둔다 */
.pcanvas { position: relative; left: 50%; transform: translateX(-50%); width: min(calc(100vw - 56px), 2256px); margin-top: 20px; }
.pcanvas .host { position: relative; }
.pcanvas canvas { display: block; margin: 0 auto; }
.pline { margin: 16px 0 0; font-size: 15px; color: var(--ink2); min-height: 1.5em; }
.pline b { color: var(--ink); font-weight: 600; }
.pctl .sp { flex: 1; }
.ptip { position: absolute; pointer-events: none; z-index: 3; background: #1d1d1f; border: 1px solid #424245; border-radius: 10px; padding: 8px 11px; font-size: 13px; line-height: 1.5; color: #f5f5f7; white-space: nowrap; transform: translate(-50%, -112%); }
.ptip span { color: #a1a1a6; }
.pside { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 22px; align-items: start; }
.pcard { background: var(--card); border-radius: 18px; padding: 18px 20px; }
.pcard small { display: block; font-size: 12px; color: var(--ink2); }
.pcard small.mt { margin-top: 16px; }
.pcard > b { display: block; font-size: 19px; font-weight: 600; margin-top: 4px; letter-spacing: -.02em; }
.pcard > b.big { font-size: 32px; font-weight: 700; letter-spacing: -.035em; }
.pcard p { margin: 6px 0 0; font-size: 14px; color: var(--ink2); line-height: 1.5; }
.pcard p strong { color: var(--ink); font-weight: 600; }
.pcard ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.pcard li { display: flex; justify-content: space-between; gap: 12px; color: var(--ink2); }
.pcard li.on > span { color: var(--ink); }
.pcard li b { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pcard .btnl, .ev .btnl { all: unset; cursor: pointer; margin-top: 14px; color: var(--link); font-size: 14px; }
.pcard .btnl:hover, .ev .btnl:hover { text-decoration: underline; text-underline-offset: 3px; }
.pcard .btnl:focus-visible, .ev .btnl:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 4px; }
.ev .btnl[hidden] { display: none; }
.pcard .duo { display: grid; grid-template-columns: 10px 34px 1fr auto; gap: 8px; align-items: baseline; margin-top: 8px; font-size: 14px; color: var(--ink2); }
.pcard .duo .sw { width: 10px; height: 10px; border-radius: 2px; align-self: center; }
.pcard .duo b { font-size: 24px; font-weight: 700; letter-spacing: -.03em; color: var(--ink); white-space: nowrap; }
.pcard .duo em { font-style: normal; font-weight: 600; font-variant-numeric: tabular-nums; }
.pbar { display: grid; grid-template-columns: 96px 1fr 44px; gap: 10px; align-items: center; font-size: 14px; color: var(--ink2); margin-top: 7px; }
.pbar i { display: block; height: 8px; background: rgba(134, 134, 139, .28); border-radius: 4px; overflow: hidden; }
.pbar u { display: block; height: 100%; border-radius: 0 4px 4px 0; text-decoration: none; }
.pbar b { text-align: right; color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.rft { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 8px; }
.rft td { padding: 6px 8px 6px 0; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink2); }
.rft td:first-child { white-space: nowrap; color: var(--ink); }
.rft td:nth-child(2) { text-align: right; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pleg { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 14px 0 0; font-size: 13px; color: var(--ink2); }
.pleg i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; }

/* ── 사건 카드 */
.evs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: clamp(28px, 4vw, 48px); }
.ev { background: var(--card); border-radius: 22px; padding: 22px 22px 20px; min-width: 0; }
.ev .k { font-size: 12px; color: var(--ink2); }
.ev h3 { margin: 6px 0 0; font-size: 19px; line-height: 1.3; font-weight: 600; letter-spacing: -.02em; }
.ev dl { margin: 14px 0 0; display: grid; grid-template-columns: 78px 1fr; gap: 5px 10px; font-size: 14px; }
.ev dt { color: var(--ink2); } .ev dd { margin: 0; }
.ev .mini { display: flex; align-items: flex-end; gap: 3px; height: 34px; margin-top: 14px; }
.ev .mini i { flex: 1; background: var(--ink3); border-radius: 2px 2px 0 0; min-height: 2px; opacity: .55; }
.ev .push { margin-top: 12px; font-size: 14px; font-weight: 600; }
.ev .push em { font-style: normal; } .up { color: var(--up); } .dn { color: var(--dn); }

/* ── 그림 */
.ch4 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; margin-top: clamp(24px, 3vw, 40px); }
.chb h3 { margin: 0 0 6px; font-size: 17px; font-weight: 600; }
.chb h3 small { font-weight: 400; color: var(--ink2); font-size: 13px; margin-left: 8px; }
.tch { position: relative; }
.tch svg { display: block; width: 100%; height: auto; overflow: visible; }
.tch .ptip { background: #ffffff; color: #1d1d1f; border-color: #d2d2d7; box-shadow: 0 6px 22px rgba(0, 0, 0, .12); }
.tch .ptip span { color: #6e6e73; }
.vtab { margin-top: 10px; font-size: 14px; }
.vtab summary { cursor: pointer; color: var(--link); }
.scroll { overflow-x: auto; }
.rows td.num, .rows th.num { text-align: right; font-variant-numeric: tabular-nums; }
.rows.s td { padding: 11px 12px 11px 0; font-size: 15px; }
.okc { color: var(--up); font-weight: 600; } .noc { color: var(--dn); font-weight: 600; }
.gens { list-style: none; margin: clamp(24px, 3vw, 40px) 0 0; padding: 0; border-top: 1px solid var(--line); }
.gens > li { padding: 20px 0; border-bottom: 1px solid var(--line); }
.gens .h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.gens .h b { font-variant-numeric: tabular-nums; }
.gens .h small { font-size: 13px; font-weight: 400; color: var(--ink2); }
.gens p { margin: 6px 0 0; font-size: 15px; color: var(--ink2); line-height: 1.5; }
.gens details { margin-top: 10px; font-size: 14px; }
.gens summary { cursor: pointer; color: var(--link); }
.gens table { border-collapse: collapse; margin-top: 8px; font-size: 13px; }
.gens td { padding: 4px 14px 4px 0; border-bottom: 1px solid var(--line); color: var(--ink2); }
.gens td.num { text-align: right; font-variant-numeric: tabular-nums; }
.note2 { margin: 22px 0 0; font-size: 14px; line-height: 1.6; color: var(--ink2); max-width: 880px; }
.note2 b { color: var(--ink); font-weight: 600; }
@media (max-width: 1020px) { .pside { grid-template-columns: minmax(0, 1fr); gap: 12px; } .evs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .heads4 { grid-template-columns: repeat(2, 1fr); } .ch4 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 700px) { .pcanvas { width: calc(100vw - 24px); } }
@media (max-width: 600px) { .evs { grid-template-columns: 1fr; } .pchips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -22px; padding-right: 22px; } .pchips::-webkit-scrollbar { display: none; } .pchips button { flex: none; } }
/* 휴대폰: 메뉴가 여덟 칸이라 한 줄에 다 들도록 사이를 좁힌다(넘치면 옆으로 밀어 본다) */
@media (max-width: 734px) { .lnav .links { gap: 12px; } .lnav a.l { font-size: 12.5px; } }
/* 바닥의 「제안과 보고」 — 이 서비스를 만들며 쓴 문서의 목록(site/docs.json). 각주 · 바닥 링크와 같은 바탕 · 같은 글자 크기. 이름은 이 조각만의 것(한 벌의 .cols 등과 겹치지 않게) */
.docs { background: #f5f5f7; color: #6e6e73; font-size: 12px; line-height: 1.5; padding: 14px 0 0; text-align: left; }
.docs-in { padding-bottom: 14px; border-bottom: 1px solid #d2d2d7; }
.docs h3, .docs h4 { margin: 0; font-size: 12px; font-weight: 600; color: #1d1d1f; letter-spacing: 0; }
.docs-lead { margin: 2px 0 0; }
.docs-g { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px 56px; margin-top: 16px; align-items: start; }
.docs h4 { padding-bottom: 6px; border-bottom: 1px solid #d2d2d7; }
.docs ol { list-style: none; margin: 0; padding: 0; }
.docs li + li { border-top: 1px solid #e4e4e9; }
.docs a { display: grid; grid-template-columns: 2.4em minmax(0, 1fr) auto; gap: 0 10px; align-items: baseline; padding: 9px 0; color: inherit; text-decoration: none; }
.docs .dt { min-width: 0; }
.docs .dt b { display: block; font-size: 13px; font-weight: 600; color: #1d1d1f; }
.docs .dd { display: block; }
.docs .dm { white-space: nowrap; font-variant-numeric: tabular-nums; }
.docs .dm i { font-style: normal; color: #86868b; }
.docs a:hover .dt b { text-decoration: underline; }
.docs a:hover .dm i { color: #1d1d1f; }
.docs a:focus-visible { outline: 2px solid #0071e3; outline-offset: 2px; border-radius: 4px; }
@media (max-width: 734px) { .docs-g { grid-template-columns: minmax(0, 1fr); gap: 22px; } .docs a { padding: 11px 0; } }
/* ── 맨 위 카드의 「그래프 보기」: 네 값이 며칠 동안 어떻게 움직였나(항목마다 따로) */
button.cta { border: 0; font-family: inherit; cursor: pointer; }
.cta.line[aria-expanded="true"] { background: var(--ink); color: var(--bg); }
.cta:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }
.hg { max-width: 1180px; margin: clamp(26px, 3.4vw, 40px) auto 0; padding: 0 22px; text-align: left; }
.hg[hidden], .pchips[hidden], .nsum[hidden] { display: none; }
.hg-ctl { display: flex; justify-content: center; }
.hg4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.hgc { background: var(--card); border-radius: 18px; padding: 14px 12px 8px 8px; min-width: 0; }
.hgc .hgh { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 0 4px 4px 8px; font-size: 14px; }
.hgc .hgh b { font-weight: 600; }
.hgc .hgh span { color: var(--ink2); font-size: 13px; white-space: nowrap; }
.hgc .hgh em { font-style: normal; font-weight: 600; color: var(--ink); }
.hgc .hgh em.up { color: var(--up); } .hgc .hgh em.dn { color: var(--dn); }
.hg-key { justify-content: center; margin-top: 16px; font-size: 13px; }
.hg-key .more { font-size: 13px; }
/* ── 「패널을 변화시킨 뉴스」: 날 탭 · 그날의 요약 */
.ndays { margin-top: clamp(26px, 3.4vw, 40px); }
.pchips button.td::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 7px; vertical-align: 2px; }
.nsum { margin: 18px 0 0; max-width: 880px; font-size: 15px; line-height: 1.6; color: var(--ink2); }
.nsum b { color: var(--ink); font-weight: 600; }
.nsum em { font-style: normal; font-weight: 600; }
#news .evs { margin-top: 22px; }
.ev .mini i.on { background: var(--accent); opacity: 1; }
.ev .mini-x { display: flex; justify-content: space-between; margin-top: 4px; font-size: 11px; color: var(--ink3); }
.ev .push small { display: block; font-size: 12px; font-weight: 400; color: var(--ink2); margin-bottom: 3px; }
.evmore { grid-column: 1 / -1; margin-top: 4px; }
/* 패널 · 반응함수: 둘째 줄(그날의 이슈)은 조금 작게 */
.pgrid > .pchips.pday { margin-top: 8px; }
.pchips.pday button { font-size: 13px; padding: 6px 13px; }
.rf-days { margin-bottom: 10px; }
@media (max-width: 860px) { .hg4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
@media (max-width: 600px) { .hg { padding: 0 14px; } .hgc { padding: 12px 6px 6px 2px; } .hgc .hgh { flex-direction: column; gap: 0; } }
