/* Utility classes. These typically override one or two CSS properties so you can use them in
   combination to style content from scratch or restyle content without having to create a new class. */

.svg-icon,
.svg-icon-circle {
  width: 1em;
  display: flex;
}
.svg-icon svg,
.svg-icon-circle svg {
  width: 100%;
  height: 100%;
  display: flex;
}
.svg-icon svg *,
.svg-icon-circle svg * {
  vector-effect: non-scaling-stroke;
}
.svg-icon-circle {
  display: flex;
  border: 1px var(--color-border) solid;
  border-radius: 100%;
  padding: 0.175em;
}

.container-fluid,
.container {
  max-width: 1400px;
}

.max-width-prose {
  max-width: 92ch;
}

.text-muted {
  color: var(--color-muted) !important;
}

.text-danger {
  color: var(--color-danger) !important;
}

.font-body {
  font-family: var(--font-body);
}
.font-heading {
  font-family: var(--font-heading);
}

.text-heading {
  color: var(--color-heading) !important;
}
.text-dark {
  color: var(--color-body) !important;
}

.text-current-color {
  color: currentColor !important;
}

.text-bg-info {
  color: white !important;
  background: var(--color-accent) !important;
}
.bg-light {
  background-color: var(--color-background-light) !important;
}
.bg-primary-subtle {
  background-color: var(--bs-primary-bg-subtle) !important;
}

.text-category {
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.02rem;
  color: var(--color-accent) !important;
  font-weight: 700;
  padding: 0.2em 0;
  margin-bottom: -0.25rem;
}

/* Warning: This will only work on block level elements e.g. <div> but not <span>, <strong> */
.capitalize-first-letter:first-letter {
  text-transform: uppercase;
}

.break-all {
  word-break: break-all;
}

.lh-normal {
  line-height: normal !important;
}

.trim-child-margin-y > :first-child {
  margin-top: 0 !important;
}
.trim-child-margin-y > :last-child {
  margin-bottom: 0 !important;
}

/* Bootstrap 3 classes ported to Bootstrap 5 */
.center-block {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.text-left /* now .text-start */ {
  text-align: left;
}
.text-right /* now .text-end */ {
  text-align: right;
}

.min-w-0 {
  min-width: 0;
}
.max-w-0 {
  max-width: 0;
}

.dot-separator > * + *::before {
  content: "⸱";
  margin: 0 0.25em;
}