/* NokeNow Readers' Choice typeahead polls — matches site tokens */

.rc-poll {
  position: relative;
}

.rc-poll__intro {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.rc-poll__close {
  margin: 0.55rem 0 0;
  font-size: 0.82rem;
  color: var(--faint);
}

.rc-typeahead {
  position: relative;
  margin-top: 0.35rem;
}

.rc-typeahead label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.rc-typeahead__row {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

.rc-typeahead__input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--rule-strong);
  background: var(--paper);
  color: var(--ink);
  padding: 0.62rem 0.75rem;
  font-size: 1rem;
  line-height: 1.3;
}

.rc-typeahead__input::placeholder {
  color: var(--faint);
}

.rc-typeahead__submit {
  flex: 0 0 auto;
  margin-top: 0;
  background: var(--accent);
  color: #fff;
  border: 0;
  padding: 0.55rem 1rem;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
}

.rc-typeahead__submit:hover {
  background: var(--accent-dark);
}

.rc-typeahead__submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.rc-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 2px);
  z-index: 40;
  margin: 0;
  padding: 0.25rem 0;
  list-style: none;
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  box-shadow: 0 8px 22px rgba(17, 17, 17, 0.12);
  max-height: 14rem;
  overflow-y: auto;
}

.rc-dropdown[hidden] {
  display: none;
}

.rc-dropdown__item {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 0.55rem 0.75rem;
  font-size: 0.95rem;
  color: var(--ink);
  cursor: pointer;
}

.rc-dropdown__item:hover,
.rc-dropdown__item.is-active {
  background: var(--accent-soft);
  color: var(--ink);
}

.rc-dropdown__hint {
  padding: 0.55rem 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.rc-poll__status {
  margin: 0.55rem 0 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-2);
}

.rc-poll__status[hidden] {
  display: none;
}

.rc-results {
  margin-top: 1rem;
}

.rc-results[hidden] {
  display: none;
}

.rc-results__hed {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.rc-results__meta {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.rc-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.25rem 0.75rem;
  align-items: center;
  margin: 0 0 0.7rem;
}

.rc-bar__name {
  grid-column: 1 / -1;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.25;
}

.rc-bar__track {
  grid-column: 1;
  height: 0.55rem;
  background: var(--paper-3);
  border: 1px solid var(--rule);
  overflow: hidden;
}

.rc-bar__fill {
  height: 100%;
  background: var(--accent);
  width: 0;
  transition: width 0.35s ease;
}

.rc-bar__stat {
  grid-column: 2;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-2);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.rc-bar:nth-child(-n+3) .rc-bar__fill {
  background: var(--accent);
}

.rc-bar:nth-child(n+4) .rc-bar__fill {
  background: #111111;
}

.rc-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.rc-modal[hidden] {
  display: none;
}

.rc-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.55);
}

.rc-modal__panel {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  border-top: 3px solid var(--accent);
  padding: 1.1rem 1.1rem 1.15rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.rc-modal__panel h3 {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.rc-modal__panel p {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.rc-modal__row {
  display: flex;
  gap: 0.45rem;
}

.rc-modal__row input[type="email"] {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--rule-strong);
  padding: 0.55rem 0.65rem;
  font-size: 0.95rem;
}

.rc-modal__actions {
  display: flex;
  gap: 0.55rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.rc-modal__actions .btn,
.rc-modal__actions button {
  margin-top: 0;
}

.rc-modal__skip {
  background: transparent;
  border: 1px solid var(--rule-strong);
  color: var(--ink);
  padding: 0.5rem 0.85rem;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.rc-modal__note {
  margin: 0.65rem 0 0;
  font-size: 0.78rem;
  color: var(--faint);
}

.rc-storage-chip {
  display: inline-block;
  margin-left: 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

@media (max-width: 520px) {
  .rc-typeahead__row {
    flex-direction: column;
  }
  .rc-typeahead__submit {
    width: 100%;
  }
}
