/* Fencer name suggestions — lightweight overlay for inputs / textareas */

.fencer-suggest-host {
  position: relative;
  display: block;
  width: 100%;
}

.btn-row .fencer-suggest-host {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
}

.team-field .fencer-suggest-host {
  display: block;
  width: 100%;
}

.fencer-suggest-list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 2400;
  margin: 0;
  padding: 0.25rem 0;
  list-style: none;
  max-height: 12.5rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.fencer-suggest-list.hidden {
  display: none;
}

.fencer-suggest-item {
  margin: 0;
  padding: 0.55rem 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
  touch-action: manipulation;
}

.fencer-suggest-item:hover,
.fencer-suggest-item.is-active {
  background: #eff6ff;
  color: #1e3a8a;
}

@media (max-width: 640px) {
  .fencer-suggest-list {
    max-height: 40vh;
  }

  .fencer-suggest-item {
    padding: 0.7rem 0.85rem;
    min-height: 2.6rem;
  }
}
