.rlb-dropdown { max-width: 320px; width: 100%; }
.rlb-dropdown__label { display: block; margin-bottom: 8px; font-weight: 600; }

/* Control wraps trigger + listbox so the listbox positions relative to the trigger */
.rlb-dropdown__control { position: relative; }

.rlb-dropdown__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background: var(--surface-color);
  color: var(--text-color);
  font-size: 1rem;
  font-family: inherit;
  user-select: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
}
.rlb-dropdown__trigger:focus-visible {
  outline: 3px solid var(--focus-color);
  outline-offset: 2px;
}

.rlb-dropdown__listbox {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 4px 0;
  margin: 0;
  list-style: none;
  background: var(--surface-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  max-height: 220px;
  overflow: auto;
  z-index: 10;
}

.rlb-dropdown__option {
  padding: 10px 12px;
  cursor: pointer;
}
.rlb-dropdown__option:hover {
  background: var(--surface-hover);
}
.rlb-dropdown__option[aria-selected="true"] {
  font-weight: 700;
}
.rlb-dropdown__option.is-active {
  background: var(--surface-muted);
  outline: 2px solid var(--focus-color);
  outline-offset: -2px;
}

.rlb-dropdown__help { margin-top: 10px; font-size: 0.9rem; opacity: 0.85; }

/* Give the demo mount enough room to show the open listbox without clipping */
.mount:has([data-dropdown]) {
  min-height: 380px;
  align-items: flex-start;
  padding-top: 1.5rem;
}
