/* Interactieve vragen (polls) op presentatie-dia's */
.reveal .poll {
    position: relative;
    display: flex;
    gap: 1.2em;
    align-items: flex-start;
    margin-top: 0.6em;
    font-size: 0.62em;
    text-align: left;
}
.reveal .poll .poll-main {
    flex: 1 1 auto;
    min-width: 0;
}
.reveal .poll .poll-question {
    font-size: 1.25em;
    font-weight: 600;
    margin-bottom: 0.6em;
}
.reveal .poll ol.poll-options {
    margin: 0 0 0.8em 1.2em;
    list-style: upper-alpha;
}
.reveal .poll ol.poll-options li {
    margin: 0.15em 0;
}
.reveal .poll .poll-join {
    flex: 0 0 auto;
    text-align: center;
    background: #fff;
    border: 1px solid #d0d4d9;
    border-radius: 8px;
    padding: 0.7em 0.9em;
}
.reveal .poll .poll-join .poll-url {
    font-size: 0.9em;
    font-weight: 600;
    color: #1d4ed8;
    word-break: break-all;
}
.reveal .poll .poll-join .poll-hint {
    font-size: 0.72em;
    color: #555;
    margin-top: 0.3em;
}
.reveal .poll .poll-results {
    margin-top: 0.6em;
}
.reveal .poll .poll-count {
    font-size: 0.8em;
    color: #555;
    margin-bottom: 0.3em;
}
.reveal .poll .poll-bar {
    display: flex;
    align-items: center;
    gap: 0.5em;
    margin: 0.18em 0;
}
.reveal .poll .poll-bar .poll-bar-label {
    flex: 0 0 1.4em;
    font-weight: 700;
}
.reveal .poll .poll-bar .poll-bar-track {
    flex: 1 1 auto;
    background: #e6e8eb;
    border-radius: 4px;
    height: 1.1em;
    overflow: hidden;
}
.reveal .poll .poll-bar .poll-bar-fill {
    display: block;
    height: 100%;
    background: #1d4ed8;
    border-radius: 4px;
    transition: width 0.4s ease;
}
.reveal .poll .poll-bar .poll-bar-count {
    flex: 0 0 auto;
    font-weight: 700;
    min-width: 1.4em;
    text-align: right;
}
.reveal .poll .poll-bar .poll-names {
    flex: 0 1 auto;
    font-size: 0.7em;
    color: #555;
    max-width: 30%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Verberg-opties via body-classes (toetsen r/n/w; zie present.js): de speaker
   view neemt alleen de slide-HTML mee, dus daar blijft alles zichtbaar. */
body.poll-hide-results .poll .poll-results { visibility: hidden; }
body.poll-hide-names .poll .poll-who,
body.poll-hide-names .poll-spotlight .poll-who,
body.poll-hide-names .poll .poll-names { display: none; }
.reveal .poll .poll-open-answers {
    margin: 0.4em 0 0;
    padding: 0 0.3em 0 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(13em, 1fr));
    gap: 0.5em;
    align-content: start;
    overflow-y: auto;
}
.reveal .poll .poll-open-answers li {
    margin: 0;
    padding: 0.45em 0.6em;
    background: #fff;
    border: 1px solid #d0d4d9;
    border-radius: 6px;
    font-size: 0.75em;
    line-height: 1.3;
    white-space: pre-line;
    overflow-wrap: anywhere;
    cursor: zoom-in;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    overflow: hidden;
}
.reveal .poll .poll-open-answers li:hover {
    border-color: #1d4ed8;
}
.poll-spotlight {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    cursor: zoom-out;
}
.poll-spotlight .poll-spotlight-card {
    max-width: 75vw;
    max-height: 80vh;
    overflow-y: auto;
    padding: 1.2em 1.5em;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    font-size: clamp(20px, 2.8vw, 44px);
    line-height: 1.35;
    color: #222;
    text-align: left;
}
.poll-spotlight .poll-who {
    color: #1d4ed8;
    font-weight: 600;
    font-size: 0.7em;
    margin-bottom: 0.4em;
}
.poll-spotlight .poll-spotlight-text {
    white-space: pre-line;
    overflow-wrap: anywhere;
}
.reveal .poll .poll-open-answers .poll-who {
    color: #1d4ed8;
    font-weight: 600;
}
.reveal .poll .poll-extended-results { overflow-y: auto; overflow-wrap: anywhere; }
.reveal .poll .poll-detail-bar .poll-bar-label { flex: 0 1 45%; font-weight: 400; }
.reveal .poll .poll-cloud { display: flex; flex-wrap: wrap; gap: 0.5em; align-items: center; justify-content: center; }
.reveal .poll .poll-cloud span { color: #1d4ed8; }
.reveal .poll .poll-image-map { position: relative; line-height: 0; }
.reveal .poll .poll-image-map img { display: block; width: 100%; max-width: none; max-height: none; margin: 0; }
.reveal .poll .poll-map-point { position: absolute; width: 14px; height: 14px; background: rgba(220, 53, 69, 0.7); border: 2px solid white; border-radius: 50%; transform: translate(-50%, -50%); }
.reveal .poll .poll-status-note {
    font-size: 0.7em;
    color: #777;
    font-style: italic;
}
