/* Shared site-wide fixes: keyboard focus visibility, dark form fields inside
   prose content (legacy tool widgets), and search-dialog touch behaviour.
   Loaded after tailwind.css on every page. */

:focus-visible {
  outline: 2px solid #8cbfff !important;
  outline-offset: 2px;
}

/* Legacy tool widgets and prose-embedded forms: keep fields dark with light
   text even where a widget does not set its own colours. */
.prose input[type="text"],
.prose input[type="email"],
.prose input[type="url"],
.prose input[type="number"],
.prose textarea,
.prose select {
  background-color: #0c141f;
  color: #e8eef6;
  border: 1px solid #3d526e;
  border-radius: 8px;
}
.prose input::placeholder,
.prose textarea::placeholder {
  color: #7d92ad;
}

/* Search dialog: a taller input, and no keyboard-shortcut hints on touch. */
#search-input {
  min-height: 2.75rem;
}
@media (pointer: coarse) {
  .search-hints {
    display: none;
  }
}
