/* Widget 47: interactive article widgets: split poll, ask the other side, warning-sign checker,
   situation list (OpenSpec add-article-interactive-widgets). A neutral bordered card like the
   advisory box; one brand touch (the result bar). Controls keep their size when selected.
   Selectors sit under .hc-ix so they outrank Astra's ".entry-content p" spacing. */

.hc-ix {
  border: 1px solid var(--hc-line);
  border-radius: var(--hc-r-card, 16px);
  background: var(--hc-card);
  padding: 20px 22px;
  margin: 28px 0;
}

.hc-ix .hc-ix__kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hc-accent);
  margin: 0 0 6px;
}

.hc-ix .hc-ix__title {
  font-size: 17px;
  font-weight: 600;
  color: var(--hc-text);
  margin: 0 0 12px;
  line-height: 1.4;
}

.hc-ix .hc-ix__choices {
  border: 0;
  padding: 0;
  margin: 0 0 14px;
}

.hc-ix .hc-ix__choices legend {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--hc-text);
  margin-bottom: 8px;
  padding: 0;
}

.hc-ix .hc-ix__choice {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--hc-chip-line);
  background: var(--hc-chip);
  border-radius: 12px;
  padding: 10px 14px;
  margin: 0 0 8px;
  cursor: pointer;
  font-size: 15px;
  color: var(--hc-body);
}

.hc-ix .hc-ix__choice:has(input:checked) {
  border-color: var(--hc-text);
  color: var(--hc-text);
}

.hc-ix .hc-ix__choice input {
  accent-color: var(--hc-accent);
  margin: 0;
}

.hc-ix .hc-ix__label {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--hc-text);
  margin: 0 0 8px;
}

.hc-ix .hc-ix__textarea,
.hc-ix .hc-ix__select {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--hc-field-line);
  border-radius: var(--hc-r-field, 10px);
  background: var(--hc-field);
  color: var(--hc-text);
  font: inherit;
  font-size: 15px;
  padding: 10px 12px;
  margin: 0 0 10px;
}

.hc-ix .hc-ix__textarea:focus-visible,
.hc-ix .hc-ix__select:focus-visible,
.hc-ix .hc-ix__btn:focus-visible,
.hc-ix .hc-ix__choice:focus-within {
  outline: 2px solid var(--hc-focus);
  outline-offset: 2px;
}

.hc-ix .hc-ix__turnstile {
  margin: 4px 0 12px;
  min-height: 65px;
}

.hc-ix .hc-ix__btn {
  display: inline-block;
  border: 0;
  border-radius: 999px;
  background: var(--hc-btn-bg);
  color: var(--hc-btn-fg);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  padding: 10px 20px;
  cursor: pointer;
}

.hc-ix .hc-ix__msg,
.hc-ix .hc-ix__note,
.hc-ix .hc-ix__private,
.hc-ix .hc-ix__count {
  font-size: 14px;
  line-height: 1.55;
  color: var(--hc-muted);
  margin: 10px 0 0;
}

.hc-ix .hc-ix__note {
  color: var(--hc-body);
}

.hc-ix .hc-ix__results {
  display: grid;
  gap: 12px;
  margin: 12px 0 0;
}

.hc-ix .hc-ix__result-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 15px;
  color: var(--hc-text);
}

.hc-ix .hc-ix__bar {
  height: 8px;
  border-radius: 999px;
  background: var(--hc-wash, var(--hc-alt));
  margin-top: 6px;
  overflow: hidden;
}

.hc-ix .hc-ix__bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--hc-brand);
}

.hc-ix .hc-ix__split {
  font-size: 13px;
  color: var(--hc-muted);
  margin-top: 4px;
}

/* Server-written content: what readers without JavaScript and search engines read. */
.hc-ix .hc-ix__prompt {
  font-size: 15px;
  line-height: 1.6;
  color: var(--hc-body);
  margin: 0 0 12px;
}

.hc-ix .hc-ix__options {
  margin: 0;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--hc-body);
}

.hc-ix .hc-ix__controls {
  margin: 0 0 16px;
}

/* A multi-line field is a box, not a pill. */
.hc-ix .hc-ix__textarea {
  border-radius: 12px;
}

/* Warning signs: the list is the content; the checker marks the ones it finds. */
.hc-ix .hc-ix__signs {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hc-ix .hc-ix__signs li {
  border-top: 1px solid var(--hc-hair);
  padding: 10px 0 10px 14px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--hc-body);
  border-left: 3px solid transparent;
}

.hc-ix .hc-ix__signs li strong {
  display: block;
  color: var(--hc-text);
}

.hc-ix .hc-ix__signs li.is-hit {
  border-left-color: var(--hc-brand);
  background: var(--hc-wash);
}

/* Situations: native disclosure rows, no script. */
.hc-ix .hc-ix__situation,
.hc-ix .hc-ix__qa {
  border-top: 1px solid var(--hc-hair);
  padding: 10px 0;
}

.hc-ix .hc-ix__situation summary,
.hc-ix .hc-ix__qa summary,
.hc-ix .hc-ix__tally summary {
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: var(--hc-text);
}

.hc-ix .hc-ix__situation p,
.hc-ix .hc-ix__a {
  font-size: 15px;
  line-height: 1.6;
  color: var(--hc-body);
  margin: 6px 0 0;
}

.hc-ix .hc-ix__situation a {
  font-weight: 600;
  color: var(--hc-accent);
}

/* The poll's tally from the server: collapsed so it does not steer the vote. */
.hc-ix .hc-ix__tally {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--hc-line);
}

.hc-ix .hc-ix__tally summary {
  font-size: 14.5px;
}

.hc-ix .hc-ix__tally caption {
  text-align: left;
  font-size: 13px;
  color: var(--hc-muted);
  padding-bottom: 6px;
}

.hc-ix .hc-ix__method {
  font-size: 13px;
  line-height: 1.5;
  color: var(--hc-muted);
  margin: 8px 0 0;
}

/* Answered questions */
.hc-ix .hc-ix__answers {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--hc-line);
}

.hc-ix .hc-ix__answers-title {
  margin: 0 0 8px;
  font-weight: 600;
  color: var(--hc-text);
}
