html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.header-search {
  min-width: min(22rem, 100%);
}

.language-select {
  min-width: 6.75rem;
}

@media (max-width: 575.98px) {
  .header-search {
    margin-bottom: .5rem;
    margin-top: .5rem;
    width: 100%;
  }

  .header-search .form-control {
    min-width: 0;
  }
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.tag-cloud-item {
  border: 1px solid var(--bs-border-color);
  border-radius: .375rem;
  color: var(--bs-body-color);
  padding: .25rem .5rem;
  text-decoration: none;
}

.tag-cloud-item:hover {
  background-color: var(--bs-secondary-bg);
  color: var(--bs-link-color);
}

.tag-weight-1 { font-size: .875rem; }
.tag-weight-2 { font-size: 1rem; }
.tag-weight-3 { font-size: 1.125rem; }
.tag-weight-4 { font-size: 1.25rem; }
.tag-weight-5 { font-size: 1.375rem; }

.field-drag-handle {
  cursor: grab;
  font-weight: 600;
  letter-spacing: .08rem;
}

.custom-id-builder {
  min-height: 4rem;
}

.custom-id-part .part-handle {
  cursor: grab;
}

.custom-id-remove-zone {
  border: 1px dashed #dc3545;
  border-radius: .375rem;
  color: #842029;
  padding: .75rem;
  text-align: center;
}

.custom-id-preview {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.discussion-body > :last-child {
  margin-bottom: 0;
}

.markdown-content > :last-child,
.markdown-preview > :last-child {
  margin-bottom: 0;
}

.markdown-preview {
  max-height: 3.25rem;
  overflow: hidden;
}
