/* com_qxforum: a little spacing on top of the site template (Cassiopeia, Bootstrap 5). */

.qxforum .qxforum-meta {
  color: var(--bs-secondary-color, #6c757d);
  font-size: 0.875rem;
}

.qxforum .qxforum-description {
  margin-bottom: 0.25rem;
}

.qxforum .qxforum-breadcrumb {
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.qxforum .badge {
  font-size: 0.75rem;
  font-weight: 500;
  vertical-align: middle;
}

.qxforum-post {
  border-bottom: 1px solid var(--bs-border-color, #dee2e6);
  padding: 1rem 0;
}

.qxforum-post-author {
  border-left: 3px solid var(--bs-primary, #0d6efd);
  padding-left: 0.75rem;
}

.qxforum-body {
  margin-top: 0.5rem;
  overflow-wrap: anywhere;
}

.qxforum-pagination {
  margin-top: 1rem;
}

.qxforum-memberbar {
  float: right;
  font-size: 0.875rem;
}

.qxforum-form {
  max-width: 28rem;
}

.qxforum-reply {
  margin-top: 2rem;
}

.qxforum .qxforum-version {
  max-width: 10rem;
}

/* Form fields follow the site's colours (homylon.org: dark, set in the template's user.css).
   Without these, Bootstrap keeps the fields white while the site's text colour is light. */
.qxforum .form-control,
.qxforum .form-control:focus {
  background-color: var(--body-bg, #fff);
  border-color: var(--border-color, #dee2e6);
  color: var(--body-color, #212529);
}

.qxforum .form-control:focus {
  border-color: var(--link-color, #86b7fe);
}

.qxforum .form-control::placeholder {
  color: rgba(var(--body-color-rgb, 33, 37, 41), 0.45);
}

.qxforum .form-text {
  color: rgba(var(--body-color-rgb, 33, 37, 41), 0.7);
}

/* Joomla's messages ("You are logged in", errors) on forum pages: same problem as the fields,
   a white box with the site's light text. A faint box in the site's colours; Joomla keeps its
   coloured edge per message type. The ID is needed to win over Joomla's own rule. */
body.com_qxforum #system-message-container joomla-alert {
  background-color: rgba(var(--body-color-rgb, 33, 37, 41), 0.07);
  border-left-width: 4px;
  color: var(--body-color, #212529);
}

body.com_qxforum #system-message-container joomla-alert .alert-message,
body.com_qxforum #system-message-container joomla-alert .joomla-alert--close {
  color: var(--body-color, #212529);
}

/* The honeypot field: out of sight for people, still in the form for bots. */
.qxforum-hp {
  height: 1px;
  left: -10000px;
  overflow: hidden;
  position: absolute;
  width: 1px;
}
