/* Custom select (public/custom-select.js) — subcue.ai's searchable dropdown in
 * this site's light teal. The runtime builds this DOM; the class prefix is
 * .rb-cs-* because the component began in the resume builder. */
.rb-cs { position: relative; min-width: 0; }
.rb-cs-native { display: none; }
.rb-cs-trigger {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: #fff;
  padding: 0.45rem 0.6rem;
  font: inherit;
  font-size: 13.5px;
  line-height: 1.3;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.12s, box-shadow 0.12s;
}
.rb-cs-trigger:hover { border-color: var(--accent); }
.rb-cs-trigger:focus-visible,
.rb-cs[data-open] .rb-cs-trigger {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(14, 124, 102, 0.12);
}
.rb-cs-label {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rb-cs-ic { flex: none; width: 1rem; height: 1rem; }
.rb-cs-trig-icon { flex: none; display: inline-flex; color: var(--muted); }
.rb-cs-trig-icon:empty { display: none; }
.rb-cs-opt-label {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rb-cs-chevron {
  flex: none;
  width: 1rem;
  height: 1rem;
  color: var(--muted);
  transition: transform 0.15s ease;
}
.rb-cs[data-open] .rb-cs-chevron { transform: rotate(180deg); }

.rb-cs-panel {
  position: absolute;
  left: 0;
  top: calc(100% + 4px);
  z-index: 60;
  min-width: 100%;
  width: max-content;
  max-width: min(18rem, 80vw);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 16px 40px -16px rgba(8, 48, 40, 0.35);
  overflow: hidden;
  display: none;
}
.rb-cs[data-open] .rb-cs-panel { display: block; }
.rb-cs-panel[data-above] { top: auto; bottom: calc(100% + 4px); }

.rb-cs-search-wrap { padding: 0.4rem; border-bottom: 1px solid var(--line); }
.rb-cs-search {
  width: 100%;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  background: #fff;
  padding: 0.35rem 0.5rem;
  font: inherit;
  font-size: 13px;
  color: var(--ink);
}
.rb-cs-search::placeholder { color: #8a9c96; }
.rb-cs-search:focus { outline: none; border-color: var(--accent); }

.rb-cs-list { max-height: 15rem; overflow-y: auto; padding: 0.25rem; }
.rb-cs-opt {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.5rem;
  border-radius: 6px;
  font-size: 13.5px;
  color: var(--ink);
  cursor: pointer;
}
.rb-cs-opt .rb-cs-ic { color: var(--muted); }
.rb-cs-opt:hover,
.rb-cs-opt[data-active] { background: var(--accent-wash); }
.rb-cs-opt[data-selected] { color: var(--accent-dark); font-weight: 600; }
.rb-cs-opt[data-selected]::after { content: '✓'; margin-left: auto; color: var(--accent); font-size: 12px; }
.rb-cs-opt[hidden] { display: none; }
.rb-cs-empty { padding: 0.65rem 0.5rem; font-size: 13px; color: var(--muted); text-align: center; }
