@charset "utf-8";

/* 설문조사 스킨 — 사이드바 위젯과 결과 창(새 창) 둘 다 여기서 맡는다.

   여기는 원래 코어 스킨을 복사만 해 둔 자리였다. 그래서 이 화면만 사이트
   팔레트 밖의 색(#3a8afd · #dde7e9 · #8395b3)을 쓰고, 결과 창의 카드도
   테마와 다른 재질이었다. 색을 --solune-* 토큰으로 옮기고, 창 껍데기는
   default.css 의 .solune-winpage 에 맡긴다 — 포인트 · 쪽지 · 스크랩과
   같은 껍데기다. 여기 남는 것은 설문에만 있는 것이다.

   사이드바 위젯(#poll)의 모양은 community-sidebar.css 가 이미 맡고 있어
   건드리지 않는다. 그쪽과 겹치던 규칙은 지웠다. */

/* ── 사이드바 위젯 ─────────────────────────────────────────────

   보기 앞의 동그라미는 community-sidebar.css 가 label 안의 <span> 으로
   그린다. 그러려면 진짜 <input type=radio> 는 감춰야 한다. 이 파일을 다시
   쓰면서 그 한 줄을 레거시로 보고 걷어냈더니, 브라우저 기본 라디오와
   span 이 함께 나와 동그라미가 두 개가 됐다. 되살린다.

   display:none 이 아니라 화면 밖으로 밀어 두는 이유 — 감추더라도 키보드
   초점은 받아야 한다. 초점 표시는 community-sidebar.css 의
   `input:focus-visible + label` 이 label 에 그린다. */
body.solune-page .solune-sidebar #poll .chk_box input[type="radio"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    overflow: hidden;
    opacity: 0;
    z-index: -1;
}

/* ── 결과 창 ────────────────────────────────────────────────── */

/* 제목. 코어 css 의 `#poll_result h1#win_title` 은 id 가 둘(2,0,1)이라
   default.css 의 공통 규칙으로는 못 이긴다. 여기서 본문과 같은 여백을 준다. */
body.solune-page #poll_result h1#win_title {
    padding: clamp(1rem, 3vw, 1.5rem) clamp(1rem, 3vw, 1.5rem) 0;
    border: 0;
}

/* 전체 표 수. 코어는 이것을 창 오른쪽 위에 절대배치로 띄운다. 제목 줄이
   flex 라 그 안에 자연스럽게 서게 두면 넓은 화면에서 껍데기 밖으로
   빠져나가지 않는다. */
body.solune-page #poll_result .poll_all {
    position: static;
    display: inline-flex;
    /* 본문이 grid 라 그냥 두면 한 줄을 다 차지한다. 칩 크기로 붙든다. */
    justify-self: start;
    flex: none;
    height: auto;
    align-items: center;
    margin: 0;
    padding: .25rem .6rem;
    border-radius: var(--solune-radius-sm);
    background: var(--solune-primary-soft);
    color: var(--solune-primary);
    font-size: .8125rem;
    font-weight: 700;
    line-height: 1.5;
    white-space: nowrap;
}

/* 결과 묶음. 코어는 제목에 틴트 띠를 깔고 상자에 테두리를 두른다. 홈
   패널처럼 평평한 제목 + 얇은 구분선 하나로 바꾼다. */
body.solune-page #poll_result_list {
    clear: both;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: none;
}
body.solune-page #poll_result_list h2 {
    margin: 0 0 1rem;
    padding: 0 0 .75rem;
    border: 0;
    border-bottom: 1px solid var(--solune-border);
    border-radius: 0;
    background: none;
    color: var(--solune-text);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -.02em;
    text-align: left;
}
body.solune-page #poll_result_list ol {
    display: grid;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
/* 한 줄 = 보기 이름 · 표수와 비율 · 막대. 코어는 숫자를 오른쪽에
   절대배치하는데, 그러면 보기 이름이 길 때 숫자와 겹친다. 그리드로 세운다. */
body.solune-page #poll_result_list li {
    display: grid;
    position: static;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .35rem .75rem;
    margin: 0;
    list-style: none;
}
body.solune-page #poll_result_list li > span {
    min-width: 0;
    color: var(--solune-text);
    font-size: .9375rem;
    font-weight: 500;
    letter-spacing: -.01em;
}

/* 막대. 코어는 안쪽 그림자를 깔았는데 홈 접속자집계 막대처럼 평평한 트랙
   하나로 둔다. 1위만 primary 로 채우고 나머지는 옅게 — 어느 것이 가장
   많은지 색 하나로 읽히게 하려는 것이다. */
body.solune-page .poll_result_graph {
    position: relative;
    grid-column: 1 / -1;
    order: 3;
    width: 100%;
    height: .375rem;
    margin: 0;
    overflow: hidden;
    border-radius: 999px;
    background: var(--solune-surface-soft);
    box-shadow: none;
}
body.solune-page .poll_result_graph span {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    border-radius: 999px;
    background: color-mix(in oklch, var(--solune-primary) 35%, var(--solune-surface));
    white-space: nowrap;
}
body.solune-page .poll_1st .poll_result_graph span { background: var(--solune-primary); }

/* 표수와 비율. 한 덩이로 오른쪽에 세운다. */
body.solune-page .poll_numerical {
    display: inline-flex;
    position: static;
    align-items: baseline;
    gap: .4rem;
    text-align: right;
    white-space: nowrap;
}
body.solune-page .poll_numerical .poll_cnt {
    color: var(--solune-muted);
    font-size: .8125rem;
    font-weight: 500;
}
body.solune-page .poll_numerical .poll_percent {
    display: inline;
    color: var(--solune-text);
    font-size: .9375rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: -.01em;
}
body.solune-page .poll_1st .poll_numerical .poll_percent { color: var(--solune-primary); }

/* ── 기타의견 ───────────────────────────────────────────────── */
body.solune-page #poll_result_cmt { margin: 0; }
body.solune-page #poll_result_cmt > h2 {
    position: static;
    margin: 0 0 .75rem;
    overflow: visible;
    color: var(--solune-text);
    font-size: .9375rem;
    font-weight: 800;
    line-height: 1.4;
}
body.solune-page #poll_result_cmt article {
    position: static;
    margin: 0;
    padding: .85rem 0;
    border-bottom: 1px solid var(--solune-border);
}
body.solune-page #poll_result_cmt article:last-of-type { border-bottom: 0; }
body.solune-page #poll_result_cmt header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .25rem .5rem;
    margin: 0 0 .35rem;
    color: var(--solune-text-soft);
    font-size: .8125rem;
}
body.solune-page #poll_result_cmt .poll_datetime { color: var(--solune-muted); font-size: .75rem; }
body.solune-page #poll_result_cmt .profile_img img { width: 1.375rem; height: 1.375rem; border-radius: 50%; }
body.solune-page #poll_result_cmt p {
    margin: 0;
    padding: 0;
    color: var(--solune-text);
    font-size: .875rem;
    line-height: 1.65;
    text-wrap: pretty;
}
body.solune-page .poll_cmt_del { margin-left: auto; float: none; }
body.solune-page .poll_cmt_del a { display: inline-flex; margin: 0; color: var(--solune-muted); font-size: .875rem; }
body.solune-page .poll_cmt_del:hover a { color: var(--solune-danger); }

/* 기타의견 쓰기 */
body.solune-page #poll_result_wcmt {
    margin: 0 0 .65rem;
    border: 1px solid var(--solune-border);
    border-radius: var(--solune-radius-sm);
    background: var(--solune-surface);
}
body.solune-page #poll_result_wcmt input {
    width: 100%;
    height: 4.5rem;
    padding: .65rem .75rem;
    border: 0;
    background: transparent;
    color: var(--solune-text);
}
body.solune-page .poll_guest input {
    margin: 0 0 .5rem;
    padding: .55rem .7rem;
    border: 1px solid var(--solune-border);
    border-radius: var(--solune-radius-sm);
}
body.solune-page #poll_result_cmt .btn_submit { float: none; }

/* ── 다른 투표 결과 보기 ────────────────────────────────────── */
body.solune-page #poll_result_oth { clear: both; margin: 0; }
body.solune-page #poll_result_oth h2 {
    margin: 0 0 .6rem;
    padding: 0;
    color: var(--solune-text);
    font-size: .9375rem;
    font-weight: 800;
}
body.solune-page #poll_result_oth ul {
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--solune-border);
    border-radius: var(--solune-radius-sm);
    background: var(--solune-surface);
    list-style: none;
}
/* 코어는 제목만 <a> 로 감싸고 날짜는 그 옆 <span> 으로 낸다. 줄을 flex 로
   세워야 날짜가 오른쪽에 붙는다 — <a> 안에 넣을 수는 없다. */
body.solune-page #poll_result_oth li {
    display: flex;
    position: relative;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding-right: .85rem;
    border-top: 1px solid var(--solune-border);
    line-height: 1.5;
}
body.solune-page #poll_result_oth li:first-child { border-top: 0; }
body.solune-page #poll_result_oth a {
    display: block;
    min-width: 0;
    flex: 1;
    padding: .7rem .85rem;
    color: var(--solune-text);
    font-size: .875rem;
}
body.solune-page #poll_result_oth a:hover { background: var(--solune-surface-soft); color: var(--solune-primary); }
body.solune-page #poll_result_oth li span {
    position: static;
    flex: none;
    color: var(--solune-muted);
    font-size: .75rem;
    white-space: nowrap;
}

/* 결과 창 안의 표는 테두리 없이. */
body.solune-page #poll_result .tbl_wrap { margin: 0; }
body.solune-page #poll_result :is(.sv_member, .sv_guest) { font-weight: 700; }
