/* Polls & Ideas-only styles. Shared navigation, typography and cards stay in shared.css. */
.poll-intro { display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; align-items: center; }
.participation-guide { border: 1px solid var(--ink); padding: 28px; background: var(--surface); }
.participation-guide h2 { font-size: 28px; }
.participation-guide dl { margin: 24px 0 0; }
.participation-guide dl > div { border-top: 1px solid var(--muted); padding: 14px 0; }
.participation-guide dl > div:last-child { padding-bottom: 0; }
.participation-guide dd { margin: 4px 0 0; font-size: 14px; }

/* These are toggle buttons: aria-pressed communicates the selected filter. */
.activity-filters { display: flex; flex-wrap: wrap; gap: 10px; padding-block: 18px; border-block: 1px solid var(--line); }
.activity-filters button { font: inherit; font-size: 14px; font-weight: 700; color: var(--ink); background: transparent; border: 1px solid var(--line); padding: 10px 18px; cursor: pointer; }
.activity-filters button:hover { border-color: var(--ink); }
.activity-filters button[aria-pressed="true"] { background: var(--status-background); color: var(--on-status); border-color: var(--status-background); }
.activity-filters button:focus-visible { outline: 3px solid var(--brand-accent); outline-offset: 4px; }
.filter-status { font-size: 12px; color: var(--muted); margin: 12px 0 0; }
.participation-copy { max-width: 760px; font-size: 14px; margin-bottom: 24px; }
/* Explicitly preserve hidden elements when another rule sets display: flex or grid. */
[hidden] { display: none !important; }
.activity-section { margin-top: 40px; }

/* Two flexible columns collapse to a single column on small screens. */
.idea-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.idea-card { border-color: var(--ink); min-width: 0; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.card-meta .tag { margin: 0; }
.state-label { font-size: 11px; font-weight: 700; padding: 3px 10px; background: var(--status-background); color: var(--on-status); }
.item-spec { color: var(--muted); }
.idea-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; border-block: 1px solid var(--line); padding: 18px 0; margin: 8px 0; }
.idea-facts dd { margin: 4px 0 0; font-size: 14px; overflow-wrap: anywhere; }
.idea-facts > div:nth-child(-n+2) dd { font-size: clamp(24px, 3vw, 34px); font-weight: 800; letter-spacing: -1px; }
.idea-note { color: var(--muted); }
.idea-card .availability-note { margin: auto 0 0; padding-top: 18px; font-size: 12px; font-weight: 700; }
.empty-state, .future-state { padding: 28px; border: 1px dashed var(--line); }
.empty-state p, .future-state p { max-width: 760px; }
.empty-state p:last-child, .future-state p:last-child { margin-bottom: 0; }
.future-state { background: var(--ink); color: var(--background); border: 1px solid var(--ink); }
.future-state .tag { color: var(--alabaster-silver); }
.closed-polls { margin-top: 28px; border-block: 1px solid var(--line); padding: 18px 0; }
.closed-polls summary { cursor: pointer; font-weight: 700; }
.closed-polls summary:focus-visible { outline: 3px solid var(--brand-accent); outline-offset: 4px; }
.closed-polls[open] summary { margin-bottom: 24px; }
.closed-options { padding-left: 20px; font-size: 14px; }
.future-state { margin-bottom: 20px; }
.poll-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.poll-card { min-width: 0; border-color: var(--ink); }
.poll-card > .tag { color: var(--muted); }
.poll-card > .poll-form { margin-top: auto; }
.poll-form fieldset { padding: 0; border: 0; margin: 16px 0; min-width: 0; }
.poll-form legend { margin-bottom: 12px; font-size: 14px; font-weight: 700; }
.poll-option { display: flex; align-items: flex-start; gap: 12px; padding: 14px; margin-bottom: 10px; border: 1px solid var(--line); cursor: pointer; }
.poll-option:has(input:checked) { background: var(--status-background); color: var(--on-status); border-color: var(--status-background); }
.poll-option input { flex-shrink: 0; margin: 6px 0 0; accent-color: var(--status-background); }
.poll-option strong { font-size: 14px; }
.option-detail { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; overflow-wrap: anywhere; }
/* Nested details and radio focus need a light colour on a selected blue option. */
.poll-option:has(input:checked) .option-detail { color: var(--on-status); }
.poll-option:has(input:checked) input { accent-color: var(--on-status); }
.poll-option:has(input:checked) input:focus-visible { outline-color: var(--on-status); }
.poll-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.poll-actions button { font: inherit; font-size: 14px; cursor: pointer; }
.poll-actions .button { border: 1px solid var(--ink); margin: 0; }
.clear-choice { padding: 10px 0; border: 0; background: transparent; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.clear-choice:disabled { color: var(--muted); cursor: default; text-decoration: none; }
.poll-form :is(button, input):focus-visible { outline: 3px solid var(--brand-accent); outline-offset: 4px; }
.poll-response { font-size: 13px; min-height: 42px; }
.participation-boundary { margin-top: 52px; padding-top: 28px; border-top: 1px solid var(--ink); }
.participation-boundary > p:not(.eyebrow) { max-width: 820px; }

@media (max-width: 1000px) {
    .poll-intro { grid-template-columns: 1fr; gap: 28px; }
    .participation-guide { max-width: 760px; }
}
@media (max-width: 650px) {
    .idea-cards, .poll-cards { grid-template-columns: 1fr; }
    .participation-guide, .empty-state, .future-state { padding: 22px; }
    .activity-filters button { padding: 10px 14px; }
}
