/**
 * Profile jump search – headshot finder (Bricks child).
 * Pill / oyster styling aligned with main site search (no separate accent button).
 */

.gcv-profile-jump-search {
  --gcv-pjs-oyster: #ebe9e6;
  --gcv-pjs-oyster-hover: #e4e2de;
  --gcv-pjs-oyster-focus: #dfddd8;
  --gcv-pjs-border: rgba(20, 10, 88, 0.12);
  --gcv-pjs-border-strong: rgba(20, 10, 88, 0.2);
  --gcv-pjs-text: #140a58;
  --gcv-pjs-placeholder: #6e6d75;
}

/* Visually hidden label (same idea as screen-reader-text) */
.gcv-profile-jump-search .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.gcv-profile-jump-search {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin-bottom: 1rem;
  --gcv-profile-search-sticky-top: 8px;
}

.gcv-profile-jump-search__inner {
  box-sizing: border-box;
  width: 100%;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

/* Pill shell: full oyster bar (matches main site search shape, without Go segment) */
.gcv-profile-jump-search__pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-sizing: border-box;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.35rem 1rem 0.35rem 0.95rem;
  background: var(--gcv-pjs-oyster);
  border: 1px solid var(--gcv-pjs-border);
  border-radius: 999px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.gcv-profile-jump-search__pill:hover {
  background: var(--gcv-pjs-oyster-hover);
  border-color: var(--gcv-pjs-border-strong);
}

.gcv-profile-jump-search__pill:focus-within {
  outline: none;
  background: var(--gcv-pjs-oyster-focus);
  border-color: var(--gcv-pjs-border-strong);
  box-shadow: 0 0 0 2px rgba(20, 10, 88, 0.12);
}

.gcv-profile-jump-search__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gcv-pjs-text);
  opacity: 0.82;
}

.gcv-profile-jump-search__icon svg {
  display: block;
}

.gcv-profile-jump-search__input {
  box-sizing: border-box;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--gcv-pjs-text);
  -webkit-appearance: none;
  appearance: none;
}

.gcv-profile-jump-search__input:focus {
  outline: none;
  box-shadow: none;
}

.gcv-profile-jump-search__input::placeholder {
  color: var(--gcv-pjs-placeholder);
}

/* Hide native WebKit search clear that can break pill layout */
.gcv-profile-jump-search__input::-webkit-search-decoration,
.gcv-profile-jump-search__input::-webkit-search-cancel-button,
.gcv-profile-jump-search__input::-webkit-search-results-button,
.gcv-profile-jump-search__input::-webkit-search-results-decoration {
  -webkit-appearance: none;
}

.gcv-profile-jump-search__hint {
  margin: 0.55rem 0 0;
  padding: 0 0.75rem;
  font-size: 0.8rem;
  line-height: 1.45;
  color: rgba(20, 10, 88, 0.65);
  text-align: center;
}

.gcv-profile-jump-search__status {
  margin-top: 0.55rem;
  min-height: 1.25em;
  padding: 0 0.75rem;
  font-size: 0.8rem;
  line-height: 1.4;
  color: rgba(20, 10, 88, 0.72);
  text-align: center;
}

.gcv-profile-jump-search__results {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  max-height: min(50vh, 16rem);
  overflow-y: auto;
  overflow-x: hidden;
  border: 1px solid var(--gcv-pjs-border-strong);
  border-radius: 0.875rem;
  background: var(--gcv-pjs-oyster);
  box-shadow: 0 10px 28px rgba(20, 10, 88, 0.07);
}

.gcv-profile-jump-search__item {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--gcv-pjs-border);
}

.gcv-profile-jump-search__item:last-child {
  border-bottom: 0;
}

.gcv-profile-jump-search__option {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0.55rem 1rem;
  text-align: left;
  font-family: inherit;
  font-size: 0.9rem;
  line-height: 1.35;
  color: var(--gcv-pjs-text);
  background: transparent;
  border: 0;
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.gcv-profile-jump-search__option:hover,
.gcv-profile-jump-search__option:focus-visible {
  background: rgba(20, 10, 88, 0.06);
  color: var(--gcv-pjs-text);
  outline: none;
}

@media (max-width: 781px) {
  .gcv-profile-jump-search--sticky-mobile {
    position: sticky;
    top: var(--gcv-profile-search-sticky-top, 8px);
    z-index: 50;
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
    margin-bottom: 0.75rem;
    background: linear-gradient(
      to bottom,
      rgba(235, 233, 230, 0.97) 55%,
      rgba(235, 233, 230, 0.88) 100%
    );
    backdrop-filter: blur(8px);
  }
}

/* Brief highlight when jumping to a card — subtle navy ring (readable on oyster + coloured sections) */
.gcv-profile-jump-highlight {
  outline: 3px solid rgba(20, 10, 88, 0.45);
  outline-offset: 5px;
  transition: outline-color 0.25s ease;
}

@media (prefers-reduced-motion: reduce) {
  .gcv-profile-jump-highlight {
    transition: none;
  }
}
