/* =====================================================
   Encuestas de opinión
   ===================================================== */

.encuestas-page {
  padding-bottom: 3rem;
}

.encuestas-header {
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  color: #4b4b4b;
  line-height: 1.6;
}

.encuestas-header a {
  color: #0943b5;
  text-decoration: underline;
}

/* --- Each survey item --- */
.encuesta-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(112, 112, 112, 0.48);
}

.encuesta-item:first-child {
  padding-top: 0;
}

.encuesta-item:last-child {
  border-bottom: none;
}

/* --- Date --- */
.encuesta-date {
  font-size: 0.9rem;
  color: #4b4b4b;
  margin-bottom: 0.25rem;
}

.encuesta-date strong {
  font-weight: 700;
}

/* --- Featured poll question --- */
.encuesta-question {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0.25rem 0 0.75rem;
}

.encuesta-question a {
  color: #0943b5;
  text-decoration: none;
}

.encuesta-question a:hover {
  text-decoration: underline;
}

/* --- List item title --- */
.encuesta-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.encuesta-title a {
  color: #0943b5;
  text-decoration: none;
}

.encuesta-title a:hover {
  text-decoration: underline;
}

/* --- Total votes --- */
.encuesta-total {
  font-size: 0.9rem;
  color: #4b4b4b;
  margin-top: 0.5rem;
}

/* --- Poll bar --- */
.poll-bar {
  margin-bottom: 0.75rem;
}

.poll-bar__text {
  font-size: 0.9rem;
  color: #4b4b4b;
  margin-bottom: 4px;
}

.poll-bar__track {
  height: 22px;
  background-color: #f2f2f2;
  position: relative;
}

.poll-bar__fill {
  height: 100%;
  background-color: #4b4b4b;
  min-width: 0;
}

.poll-bar__percent {
  font-size: 0.85rem;
  color: #4b4b4b;
  margin-top: 2px;
}

/* --- Collapsible toggle for non-featured items --- */
.encuesta-toggle {
  margin-top: 0.25rem;
}

.encuesta-toggle summary {
  font-weight: 700;
  color: #4b4b4b;
  cursor: pointer;
  text-decoration: underline;
  font-size: 0.95rem;
  list-style: none;
  padding: 0;
}

.encuesta-toggle summary::-webkit-details-marker {
  display: none;
}

.encuesta-toggle summary::marker {
  display: none;
  content: '';
}

.encuesta-toggle__content {
  padding-top: 0.75rem;
}

