/* Shared native select. Use the select snippet in PHP or class="site-select" in JS. */
.site-select {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 5.2rem;
  padding: 1.2rem 4.2rem 1.2rem 1.4rem;
  border: 1px solid var(--border-secondary);
  border-radius: var(--border-radius-sm);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23666' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.6rem center;
  background-size: 1.2rem 0.8rem;
  font: 400 1.6rem/1.5 var(--font-sans);
  text-align: start;
  cursor: pointer;
}
.site-select:focus-visible {
  outline: 2px solid var(--text-primary);
  outline-offset: 3px;
}
.site-select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.site-select[aria-invalid="true"] { border-style: dashed; }
.site-select option { background: var(--bg-primary); color: var(--text-primary); }
@media (forced-colors: active) {
  .site-select { appearance: auto; background-image: none; }
}
