/* Reusable hub poll component. Configure via /polls-config.json. */
.hub-poll{--poll-accent:#c9a227;--poll-ink:#0b1f36;--poll-muted:#5a6573;--poll-line:#d9d3c7;--poll-surface:#fffcf7;--poll-radius:14px;font-family:"Source Sans 3",system-ui,sans-serif;color:var(--poll-ink);box-sizing:border-box}
.hub-poll *,.hub-poll *::before,.hub-poll *::after{box-sizing:border-box}
.hub-poll[hidden]{display:none!important}
.hub-poll-inner{width:min(1120px,calc(100% - 32px));margin:0 auto}
.hub-poll-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.hub-poll-avatar{width:24px;height:24px;border-radius:50%;object-fit:cover;object-position:center 18%;flex:0 0 auto}
.hub-poll--card .hub-poll-avatar{width:40px;height:40px}
.hub-poll-label{font-size:.72rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--poll-ink);background:#f3e2a7;padding:3px 8px;border-radius:999px}
.hub-poll-q{margin:0;font-family:Fraunces,Georgia,serif;font-weight:700;color:var(--poll-ink)}
.hub-poll-updated{margin:0;font-size:.78rem;color:var(--poll-muted)}
.hub-poll-opts{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 0;padding:0;border:0}
.hub-poll-opts legend{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
.hub-poll-opt{appearance:none;border:1px solid var(--poll-line);background:#fff;color:var(--poll-ink);font:inherit;font-weight:600;min-height:44px;padding:8px 14px;border-radius:999px;cursor:pointer;text-align:left}
.hub-poll-opt:hover,.hub-poll-opt:focus-visible{border-color:var(--poll-accent);outline:2px solid var(--poll-accent);outline-offset:2px}
.hub-poll-opt[aria-pressed="true"],.hub-poll-opt.is-pick{background:var(--poll-accent);color:var(--poll-ink);border-color:var(--poll-accent)}
.hub-poll-help{display:block;font-weight:500;font-size:.82rem;color:var(--poll-muted)}
.hub-poll-barwrap{display:flex;flex-direction:column;gap:6px;width:100%;min-height:44px;justify-content:center}
.hub-poll-bartrack{height:8px;background:#efeae0;border-radius:99px;overflow:hidden}
.hub-poll-bar{height:100%;width:0;background:var(--poll-accent);border-radius:99px}
@media (prefers-reduced-motion:no-preference){.hub-poll-bar{transition:width .35s ease}}
.hub-poll-barlab{display:flex;justify-content:space-between;gap:12px;font-size:.9rem}
.hub-poll-take{margin:10px 0 0;font-size:.95rem}
.hub-poll-all{margin:8px 0 0;font-weight:700}.hub-poll-all a{color:#16324f}
.hub-poll-err{margin:8px 0 0;color:#8a1c1c;font-size:.9rem}
.hub-poll-err button{margin-left:8px;font:inherit;font-weight:700;background:transparent;border:0;color:#16324f;cursor:pointer;text-decoration:underline;min-height:44px}

/* Strip: under the menu, above the hero */
.hub-poll--strip{background:#fff8e8;border-bottom:1px solid #ead9a4;padding:10px 0}
.hub-poll--strip .hub-poll-q{font-size:1.02rem;line-height:1.3}
.hub-poll--strip.is-voted{padding:12px 0}
.hub-poll--strip .hub-poll-opts{align-items:center}
.hub-poll--strip .hub-poll-opt{padding:8px 16px}

/* Card: below hero, peeks on desktop */
.hub-poll--card{background:var(--poll-surface);padding:18px 0 22px;border-bottom:1px solid var(--poll-line)}
.hub-poll--card .hub-poll-box{background:#fff;border:1px solid var(--poll-line);border-radius:var(--poll-radius);padding:18px 20px}
.hub-poll--card .hub-poll-q{font-size:1.25rem;margin:4px 0 6px}
.hub-poll--card .hub-poll-opts{display:flex;flex-direction:column;gap:8px;margin-top:12px}
.hub-poll--card .hub-poll-opt{border-radius:12px;width:100%;padding:10px 14px}

/* Mobile: Poll A collapsed until opened */
.hub-poll-toggle{display:none;width:100%;min-height:48px;border:0;background:transparent;color:var(--poll-ink);font:inherit;font-weight:700;text-align:left;cursor:pointer;padding:0}
.hub-poll-toggle:focus-visible{outline:2px solid var(--poll-accent);outline-offset:2px}
@media (max-width:700px){
  .hub-poll--strip{padding:0}
  .hub-poll--strip:not(.is-open):not(.is-voted) .hub-poll-body{display:none}
  .hub-poll--strip:not(.is-open):not(.is-voted){padding:0}
  .hub-poll--strip:not(.is-open):not(.is-voted) .hub-poll-toggle{display:flex;align-items:center;justify-content:space-between;gap:10px;width:min(1120px,calc(100% - 32px));margin:0 auto;padding:12px 0}
  .hub-poll--strip.is-open .hub-poll-toggle,.hub-poll--strip.is-voted .hub-poll-toggle{display:none}
  .hub-poll--strip.is-open{padding:12px 0}
}

/* Hidden affiliate slots take no space until an approved offer is wired. */
.aff-slot[hidden],.aff-slot:empty{display:none!important;margin:0;padding:0;height:0;overflow:hidden}
