/* Buzzen V5 Build 0097 - Main-site theme pass Phase 12: public/member Polls only. */
.buzzen-poll-theme-page {
    padding: 0 0 42px;
    color: #24465f;
    font-family: var(--buzzen-font-body);
}

.buzzen-poll-shell {
    margin: 0;
    padding: 18px 22px 26px;
    background: rgba(246,250,253,.97);
}

/* Hero */
.buzzen-poll-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0,1.62fr) minmax(285px,.72fr);
    gap: 0;
    margin: 0 0 24px;
    overflow: hidden;
    background: linear-gradient(135deg,#f8fcff 0%,#eaf5fc 60%,#fff7d9 100%);
}

.buzzen-poll-hero::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 6px;
    background: linear-gradient(180deg,#1b79bd 0%,#f5ad24 100%);
}

.buzzen-poll-hero-copy {
    position: relative;
    padding: 29px 30px 30px 35px;
}

.buzzen-poll-hero-copy h1 {
    max-width: 760px;
    margin: 8px 0 10px;
    color: #103858;
    font-family: var(--buzzen-font-heading);
    font-size: clamp(30px,3vw,42px);
    line-height: 1.04;
    font-weight: 700;
}

.buzzen-poll-hero-copy > p {
    max-width: 770px;
    margin: 0;
    color: #526f83;
    font-size: 15px;
    line-height: 1.65;
    font-weight: 500;
}

.buzzen-poll-hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 19px;
}

.buzzen-poll-hero-pills span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 7px 11px;
    border: 1px solid rgba(27,121,189,.13);
    border-radius: var(--buzzen-radius-pill);
    background: rgba(255,255,255,.82);
    color: #315d7c;
    box-shadow: 0 8px 18px rgba(17,71,111,.06);
    font-size: 13px;
    font-weight: 700;
}

.buzzen-poll-hero-pills i { color: #1b79bd; }

.buzzen-poll-hero-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100%;
    padding: 27px 25px;
    overflow: hidden;
    background: linear-gradient(145deg,#103858 0%,#155c91 76%,#1b79bd 100%);
    color: #fff;
}

.buzzen-poll-hero-panel::after {
    content: "";
    position: absolute;
    right: -45px;
    bottom: -70px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(255,210,74,.13);
    pointer-events: none;
}

.buzzen-poll-panel-icon,
.buzzen-poll-side-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 12px;
    background: rgba(255,210,74,.16);
    color: #ffd24a;
    font-size: 18px;
}

.buzzen-poll-panel-kicker {
    display: block;
    margin-top: 12px;
    color: #ffd24a;
    font-family: var(--buzzen-font-heading);
    font-size: 14px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.buzzen-poll-hero-panel h2 {
    margin: 8px 0;
    color: #fff;
    font-family: var(--buzzen-font-heading);
    font-size: 25px;
    line-height: 1.08;
    font-weight: 700;
}

.buzzen-poll-hero-panel p {
    margin: 0 0 15px;
    color: rgba(255,255,255,.82);
    font-size: 14px;
    line-height: 1.55;
}

.buzzen-poll-panel-stats {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 8px;
    margin-bottom: 14px;
}

.buzzen-poll-panel-stats span {
    padding: 9px 10px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--buzzen-radius-sm);
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.78);
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

.buzzen-poll-panel-stats strong {
    display: block;
    color: #fff;
    font-family: var(--buzzen-font-heading);
    font-size: 21px;
    line-height: 1;
}

.buzzen-poll-panel-action {
    position: relative;
    z-index: 1;
    align-self: flex-start;
    font-weight: 800;
}

.buzzen-poll-flash {
    margin: -7px 0 22px;
    border-radius: var(--buzzen-radius-sm);
    font-size: 14px;
}

/* Main two-column composition */
.buzzen-poll-layout {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(270px,320px);
    gap: 22px;
    align-items: start;
}

.buzzen-poll-main,
.buzzen-poll-sidebar {
    display: grid;
    gap: 22px;
    min-width: 0;
}

.buzzen-poll-question-section,
.buzzen-poll-discussion-section,
.buzzen-poll-side-card {
    overflow: hidden;
}

.buzzen-poll-theme-page .buzzen-v5-section-header h2 {
    margin: 0 0 2px;
    color: #123d5c;
    font-size: 23px;
    line-height: 1.1;
    font-weight: 700;
}

.buzzen-poll-theme-page .buzzen-v5-section-header p {
    margin: 0;
    color: #6a8293;
    font-size: 13px;
    line-height: 1.45;
}

.buzzen-poll-section-body { padding: 20px; }

/* Poll question and voting */
.buzzen-poll-question-card {
    display: grid;
    grid-template-columns: 54px minmax(0,1fr);
    gap: 15px;
    align-items: start;
    margin-bottom: 20px;
    padding: 18px;
    border: 1px solid rgba(34,103,154,.14);
    border-radius: var(--buzzen-radius-md);
    background: linear-gradient(135deg,#fbfdff,#f2f8fc);
    box-shadow: var(--buzzen-shadow-soft);
}

.buzzen-poll-question-mark {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: linear-gradient(145deg,#103858,#1b79bd);
    color: #ffd24a;
    font-family: var(--buzzen-font-heading);
    font-size: 27px;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(18,61,92,.17);
}

.buzzen-poll-question-copy h3 {
    margin: 7px 0 0;
    color: #123d5c;
    font-family: var(--buzzen-font-heading);
    font-size: clamp(23px,2.35vw,31px);
    line-height: 1.12;
    font-weight: 700;
}

.buzzen-poll-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    border-radius: var(--buzzen-radius-pill);
    background: #eef4f8;
    color: #647d8e;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.buzzen-poll-status.is-active { background: #e7f7ee; color: #237349; }
.buzzen-poll-status.is-closed { background: #fff0f0; color: #a83a3a; }

.poll-vote-form { gap: 15px; }
.poll-vote-form fieldset { margin: 0; padding: 0; border: 0; }

.buzzen-poll-options {
    display: grid;
    gap: 10px;
}

.poll-option {
    position: relative;
    display: grid;
    grid-template-columns: 22px minmax(0,1fr);
    gap: 11px;
    align-items: center;
    min-height: 52px;
    padding: 12px 14px;
    border: 1px solid rgba(34,103,154,.16);
    border-radius: var(--buzzen-radius-sm);
    background: #fff;
    color: #31566f;
    cursor: pointer;
    transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.poll-option:hover {
    transform: translateY(-1px);
    border-color: rgba(27,121,189,.35);
    background: #f7fbfe;
    box-shadow: 0 8px 18px rgba(20,77,116,.07);
}

.poll-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.poll-option-control {
    position: relative;
    width: 20px;
    height: 20px;
    border: 2px solid #8eabbf;
    border-radius: 50%;
    background: #fff;
}

.poll-option input:checked + .poll-option-control {
    border-color: #1b79bd;
    box-shadow: inset 0 0 0 4px #fff;
    background: #1b79bd;
}

.poll-option input:focus-visible + .poll-option-control {
    outline: 3px solid rgba(27,121,189,.22);
    outline-offset: 2px;
}

.poll-option-label {
    font-size: 14px;
    line-height: 1.4;
    font-weight: 700;
}

.poll-vote-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 2px;
}

.poll-vote-actions .btn,
.buzzen-poll-result-action.btn,
.buzzen-poll-result-action .btn {
    font-weight: 800;
}

/* Results */
.poll-results { display: grid; gap: 15px; }
.poll-result {
    padding: 13px 14px;
    border: 1px solid rgba(34,103,154,.12);
    border-radius: var(--buzzen-radius-sm);
    background: #fbfdff;
}

.poll-result-selected {
    border-color: rgba(27,121,189,.36);
    background: linear-gradient(135deg,#f4fbff,#edf7fd);
    box-shadow: inset 4px 0 0 #1b79bd;
}

.poll-result-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-end;
    margin-bottom: 8px;
    color: #607888;
    font-size: 13px;
}

.poll-result-meta strong {
    color: #244f6d;
    font-size: 14px;
    line-height: 1.35;
}

.poll-result-your-vote {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 7px;
    color: #1b79bd;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.poll-results .progress {
    height: 24px;
    overflow: hidden;
    border: 1px solid rgba(34,103,154,.17);
    border-radius: var(--buzzen-radius-pill);
    background: #eaf1f5;
}

.poll-results .progress-bar {
    min-width: 2.3rem;
    background: linear-gradient(90deg,#155c91,#1b79bd);
    font-size: 12px;
    font-weight: 800;
}

.poll-result-selected .progress-bar {
    background: linear-gradient(90deg,#103858,#1b79bd,#f5ad24);
}

.poll-total {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 14px;
    border-radius: var(--buzzen-radius-sm);
    background: #eef6fb;
    color: #315d7c;
    font-size: 13px;
}

.poll-total i { color: #1b79bd; }
.poll-total strong {
    color: #123d5c;
    font-family: var(--buzzen-font-heading);
    font-size: 20px;
}

.buzzen-poll-result-action { margin-top: 1px; justify-self: start; }

.buzzen-poll-state-note {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    padding: 13px 14px;
    border: 1px solid rgba(245,173,36,.23);
    border-radius: var(--buzzen-radius-sm);
    background: #fffaf0;
    color: #725b2d;
    font-size: 13px;
    line-height: 1.5;
}

.buzzen-poll-state-note i { margin-top: 2px; color: #e4a01b; }
.buzzen-poll-state-note a { color: #155c91; font-weight: 800; }
.buzzen-poll-state-note.is-closed {
    border-color: rgba(181,68,68,.18);
    background: #fff5f5;
    color: #7d4b4b;
}
.buzzen-poll-state-note.is-closed i { color: #b64a4a; }

.buzzen-poll-inline-empty,
.poll-comment-empty {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 14px;
    border: 1px dashed rgba(34,103,154,.23);
    border-radius: var(--buzzen-radius-sm);
    background: #f7fbfe;
    color: #607a8c;
    font-size: 13px;
    font-weight: 700;
}

.buzzen-poll-inline-empty i,
.poll-comment-empty i { color: #f5ad24; }

.buzzen-poll-empty-state {
    display: flex;
    gap: 15px;
    align-items: center;
    min-height: 160px;
    padding: 22px;
    border: 1px dashed rgba(34,103,154,.24);
    border-radius: var(--buzzen-radius-md);
    background: linear-gradient(135deg,#f8fcff,#f2f8fc);
}

.buzzen-poll-empty-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border-radius: 15px;
    background: #eaf5fc;
    color: #1b79bd;
    font-size: 21px;
}

.buzzen-poll-empty-state h3 {
    margin: 0 0 5px;
    color: #123d5c;
    font-family: var(--buzzen-font-heading);
    font-size: 24px;
}

.buzzen-poll-empty-state p {
    margin: 0;
    color: #647d8e;
    font-size: 14px;
    line-height: 1.55;
}

/* Discussion */
.poll-comment-tools {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}

.poll-comment-tools form { margin: 0; }
.poll-comments-list { border-top: 1px solid rgba(34,103,154,.10); }

.poll-comment {
    display: flex;
    gap: 12px;
    padding: 15px 4px;
    border-bottom: 1px solid rgba(34,103,154,.10);
}

.poll-comment:last-child { border-bottom: 0; }

.poll-comment-avatar {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    object-fit: cover;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(34,103,154,.18), 0 6px 14px rgba(18,61,92,.08);
}

.poll-comment-body { flex: 1; min-width: 0; }
.poll-comment-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: baseline;
    font-size: 13px;
}

.poll-comment-author a,
.poll-comment-author strong {
    color: #174f77;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.poll-comment-author a:hover,
.poll-comment-author a:focus { color: #1b79bd; }

.poll-comment-meta > span {
    color: #718795;
    font-size: 12px;
    white-space: nowrap;
}

.poll-comment-text {
    margin: 7px 0;
    color: #405f73;
    font-size: 14px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.poll-comment-delete { font-size: 12px; font-weight: 700; text-decoration: none; }

.poll-comment-highlight {
    margin: 8px -8px;
    padding-left: 12px;
    padding-right: 12px;
    border: 1px solid rgba(63,150,93,.18);
    border-radius: var(--buzzen-radius-sm);
    background: #effaf2;
    box-shadow: inset 4px 0 0 #4eaa70;
}

.poll-comment-form {
    margin-top: 18px;
    padding: 16px;
    border: 1px solid rgba(34,103,154,.13);
    border-radius: var(--buzzen-radius-md);
    background: linear-gradient(135deg,#fbfdff,#f5fafe);
}

.poll-comment-form textarea { min-height: 108px; resize: vertical; }
.poll-comment-signin { margin-top: 16px; }

/* Sidebar */
.buzzen-poll-side-card { background: #fff; }

.buzzen-poll-side-heading {
    display: flex;
    gap: 11px;
    align-items: center;
    padding: 15px 16px;
    background: linear-gradient(145deg,#103858,#155c91);
    color: #fff;
}

.buzzen-poll-side-heading .buzzen-poll-side-icon {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
}

.buzzen-poll-side-heading span:not(.buzzen-poll-side-icon) {
    display: block;
    color: #ffd24a;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.buzzen-poll-side-heading h2 {
    margin: 2px 0 0;
    color: #fff;
    font-family: var(--buzzen-font-heading);
    font-size: 22px;
    line-height: 1;
}

.poll-archive-list {
    max-height: 540px;
    overflow-y: auto;
    list-style: none;
    margin: 0;
    padding: 0;
}

.poll-archive-list li {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
    padding: 12px 13px;
    border-top: 1px solid #e6edf2;
    color: #526d80;
    font-size: 13px;
}

.poll-archive-list li:first-child { border-top: 0; }
.poll-archive-list li.active {
    background: linear-gradient(135deg,#edf7fd,#f8fcff);
    box-shadow: inset 4px 0 0 #1b79bd;
}

.poll-archive-item-copy { min-width: 0; }
.poll-archive-list a,
.poll-archive-list li.active > .poll-archive-item-copy > span {
    display: block;
    color: #244f6d;
    font-weight: 750;
    line-height: 1.35;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.poll-archive-list a:hover,
.poll-archive-list a:focus { color: #1b79bd; }

.poll-archive-list small {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 5px;
    color: #778b98;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.poll-archive-list small.is-active { color: #2b8354; }
.poll-archive-list small.is-closed { color: #a44949; }
.poll-archive-chevron { flex: 0 0 auto; color: #91a7b5; font-size: 11px; }
.poll-archive-empty { color: #728793; }

.buzzen-poll-participation-card {
    padding: 18px;
    background: linear-gradient(145deg,#103858 0%,#155c91 100%);
    color: #fff;
}

.buzzen-poll-participation-card .buzzen-poll-side-icon { margin-bottom: 12px; }

.buzzen-poll-participation-card h2 {
    margin: 0 0 7px;
    color: #fff;
    font-family: var(--buzzen-font-heading);
    font-size: 22px;
}

.buzzen-poll-participation-card p {
    margin: 0 0 13px;
    color: rgba(255,255,255,.8);
    font-size: 13px;
    line-height: 1.55;
}

.buzzen-poll-participation-card ul {
    display: grid;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.buzzen-poll-participation-card li {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    color: rgba(255,255,255,.88);
    font-size: 13px;
    font-weight: 700;
}

.buzzen-poll-participation-card li i { margin-top: 2px; color: #ffd24a; }

@media (max-width: 991.98px) {
    .buzzen-poll-hero { grid-template-columns: 1fr; }
    .buzzen-poll-hero-panel { min-height: auto; }
    .buzzen-poll-layout { grid-template-columns: 1fr; }
    .buzzen-poll-sidebar { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .poll-archive-list { max-height: 420px; }
}

@media (max-width: 767.98px) {
    .buzzen-poll-shell { padding: 14px 14px 20px; }
    .buzzen-poll-hero-copy { padding: 24px 20px 24px 26px; }
    .buzzen-poll-hero-panel { padding: 23px 21px; }
    .buzzen-poll-hero-copy h1 { font-size: 31px; }
    .buzzen-poll-section-body { padding: 16px; }
    .buzzen-poll-sidebar { grid-template-columns: 1fr; }
    .buzzen-poll-question-card { grid-template-columns: 46px minmax(0,1fr); padding: 15px; }
    .buzzen-poll-question-mark { width: 46px; height: 46px; border-radius: 13px; font-size: 23px; }
    .buzzen-poll-question-copy h3 { font-size: 24px; }
    .poll-result-meta,
    .poll-comment-meta,
    .poll-comment-tools { align-items: flex-start; flex-direction: column; }
    .poll-comment-meta > span { white-space: normal; }
    .poll-comment-tools form { width: 100%; }
    .poll-comment-tools form .btn { width: 100%; }
}

@media (max-width: 480px) {
    .buzzen-poll-hero-pills { display: grid; grid-template-columns: 1fr; }
    .buzzen-poll-hero-pills span { justify-content: flex-start; }
    .buzzen-poll-panel-stats { grid-template-columns: 1fr 1fr; }
    .buzzen-poll-question-card { grid-template-columns: 1fr; }
    .buzzen-poll-question-mark { width: 42px; height: 42px; }
    .poll-comment { gap: 9px; }
    .poll-comment-avatar { width: 42px; height: 42px; flex-basis: 42px; }
    .poll-vote-actions .btn { width: 100%; }
}
