/* Utilities – single-purpose classes under Bootstrap 5's names (.mb-3, .d-flex, .text-muted), composed
   in markup instead of minting a one-off class. A utility added here gets its whole family, so the
   next name a Bootstrap-minded author reaches for exists.

   Every utility declaration is !important, as Bootstrap's are: utilities sit on .btn, .alert and
   table cells, whose own rules are declared later or more specifically and would otherwise win. An
   inline style loses to them too – toggle .d-none, never style.display, on an element carrying a
   display utility. The helpers at the end (.small, .list-unstyled, .sticky-top, .fade) are not
   utilities in Bootstrap and stay overridable. */

/* Display – .d-none last, so it wins on an element that also carries .d-flex or .d-block */
.d-inline {
	display: inline !important;
}
.d-inline-block {
	display: inline-block !important;
}
.d-block {
	display: block !important;
}
.d-grid {
	display: grid !important;
}
.d-flex {
	display: flex !important;
}
.d-inline-flex {
	display: inline-flex !important;
}
.d-none {
	display: none !important;
}

/* Flex */
.flex-fill {
	flex: 1 1 auto !important;
}
.flex-row {
	flex-direction: row !important;
}
.flex-column {
	flex-direction: column !important;
}
.flex-row-reverse {
	flex-direction: row-reverse !important;
}
.flex-column-reverse {
	flex-direction: column-reverse !important;
}
.flex-grow-0 {
	flex-grow: 0 !important;
}
.flex-grow-1 {
	flex-grow: 1 !important;
}
.flex-shrink-0 {
	flex-shrink: 0 !important;
}
.flex-shrink-1 {
	flex-shrink: 1 !important;
}
.flex-wrap {
	flex-wrap: wrap !important;
}
.flex-nowrap {
	flex-wrap: nowrap !important;
}
.flex-wrap-reverse {
	flex-wrap: wrap-reverse !important;
}
.justify-content-start {
	justify-content: flex-start !important;
}
.justify-content-end {
	justify-content: flex-end !important;
}
.justify-content-center {
	justify-content: center !important;
}
.justify-content-between {
	justify-content: space-between !important;
}
.justify-content-around {
	justify-content: space-around !important;
}
.justify-content-evenly {
	justify-content: space-evenly !important;
}
.align-items-start {
	align-items: flex-start !important;
}
.align-items-end {
	align-items: flex-end !important;
}
.align-items-center {
	align-items: center !important;
}
.align-items-baseline {
	align-items: baseline !important;
}
.align-items-stretch {
	align-items: stretch !important;
}
.align-content-start {
	align-content: flex-start !important;
}
.align-content-end {
	align-content: flex-end !important;
}
.align-content-center {
	align-content: center !important;
}
.align-content-between {
	align-content: space-between !important;
}
.align-content-around {
	align-content: space-around !important;
}
.align-content-stretch {
	align-content: stretch !important;
}
.align-self-auto {
	align-self: auto !important;
}
.align-self-start {
	align-self: flex-start !important;
}
.align-self-end {
	align-self: flex-end !important;
}
.align-self-center {
	align-self: center !important;
}
.align-self-baseline {
	align-self: baseline !important;
}
.align-self-stretch {
	align-self: stretch !important;
}
.gap-0 {
	gap: 0 !important;
}
.gap-1 {
	gap: 0.25rem !important;
}
.gap-2 {
	gap: 0.5rem !important;
}
.gap-3 {
	gap: 1rem !important;
}
.gap-4 {
	gap: 1.5rem !important;
}
.gap-5 {
	gap: 3rem !important;
}

/* Margin – Bootstrap's order: all sides, then an axis, then one side, so on an element carrying two
   the narrower one wins */
.m-0 {
	margin: 0 !important;
}
.m-1 {
	margin: 0.25rem !important;
}
.m-2 {
	margin: 0.5rem !important;
}
.m-3 {
	margin: 1rem !important;
}
.m-4 {
	margin: 1.5rem !important;
}
.m-5 {
	margin: 3rem !important;
}
.m-auto {
	margin: auto !important;
}
.mx-0 {
	margin-right: 0 !important;
	margin-left: 0 !important;
}
.mx-1 {
	margin-right: 0.25rem !important;
	margin-left: 0.25rem !important;
}
.mx-2 {
	margin-right: 0.5rem !important;
	margin-left: 0.5rem !important;
}
.mx-3 {
	margin-right: 1rem !important;
	margin-left: 1rem !important;
}
.mx-4 {
	margin-right: 1.5rem !important;
	margin-left: 1.5rem !important;
}
.mx-5 {
	margin-right: 3rem !important;
	margin-left: 3rem !important;
}
.mx-auto {
	margin-right: auto !important;
	margin-left: auto !important;
}
.my-0 {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}
.my-1 {
	margin-top: 0.25rem !important;
	margin-bottom: 0.25rem !important;
}
.my-2 {
	margin-top: 0.5rem !important;
	margin-bottom: 0.5rem !important;
}
.my-3 {
	margin-top: 1rem !important;
	margin-bottom: 1rem !important;
}
.my-4 {
	margin-top: 1.5rem !important;
	margin-bottom: 1.5rem !important;
}
.my-5 {
	margin-top: 3rem !important;
	margin-bottom: 3rem !important;
}
.my-auto {
	margin-top: auto !important;
	margin-bottom: auto !important;
}
.mt-0 {
	margin-top: 0 !important;
}
.mt-1 {
	margin-top: 0.25rem !important;
}
.mt-2 {
	margin-top: 0.5rem !important;
}
.mt-3 {
	margin-top: 1rem !important;
}
.mt-4 {
	margin-top: 1.5rem !important;
}
.mt-5 {
	margin-top: 3rem !important;
}
.mt-auto {
	margin-top: auto !important;
}
.me-0 {
	margin-right: 0 !important;
}
.me-1 {
	margin-right: 0.25rem !important;
}
.me-2 {
	margin-right: 0.5rem !important;
}
.me-3 {
	margin-right: 1rem !important;
}
.me-4 {
	margin-right: 1.5rem !important;
}
.me-5 {
	margin-right: 3rem !important;
}
.me-auto {
	margin-right: auto !important;
}
.mb-0 {
	margin-bottom: 0 !important;
}
.mb-1 {
	margin-bottom: 0.25rem !important;
}
.mb-2 {
	margin-bottom: 0.5rem !important;
}
.mb-3 {
	margin-bottom: 1rem !important;
}
.mb-4 {
	margin-bottom: 1.5rem !important;
}
.mb-5 {
	margin-bottom: 3rem !important;
}
.mb-auto {
	margin-bottom: auto !important;
}
.ms-0 {
	margin-left: 0 !important;
}
.ms-1 {
	margin-left: 0.25rem !important;
}
.ms-2 {
	margin-left: 0.5rem !important;
}
.ms-3 {
	margin-left: 1rem !important;
}
.ms-4 {
	margin-left: 1.5rem !important;
}
.ms-5 {
	margin-left: 3rem !important;
}
.ms-auto {
	margin-left: auto !important;
}

/* Padding – the margin's order */
.p-0 {
	padding: 0 !important;
}
.p-1 {
	padding: 0.25rem !important;
}
.p-2 {
	padding: 0.5rem !important;
}
.p-3 {
	padding: 1rem !important;
}
.p-4 {
	padding: 1.5rem !important;
}
.p-5 {
	padding: 3rem !important;
}
.px-0 {
	padding-right: 0 !important;
	padding-left: 0 !important;
}
.px-1 {
	padding-right: 0.25rem !important;
	padding-left: 0.25rem !important;
}
.px-2 {
	padding-right: 0.5rem !important;
	padding-left: 0.5rem !important;
}
.px-3 {
	padding-right: 1rem !important;
	padding-left: 1rem !important;
}
.px-4 {
	padding-right: 1.5rem !important;
	padding-left: 1.5rem !important;
}
.px-5 {
	padding-right: 3rem !important;
	padding-left: 3rem !important;
}
.py-0 {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}
.py-1 {
	padding-top: 0.25rem !important;
	padding-bottom: 0.25rem !important;
}
.py-2 {
	padding-top: 0.5rem !important;
	padding-bottom: 0.5rem !important;
}
.py-3 {
	padding-top: 1rem !important;
	padding-bottom: 1rem !important;
}
.py-4 {
	padding-top: 1.5rem !important;
	padding-bottom: 1.5rem !important;
}
.py-5 {
	padding-top: 3rem !important;
	padding-bottom: 3rem !important;
}
.pt-0 {
	padding-top: 0 !important;
}
.pt-1 {
	padding-top: 0.25rem !important;
}
.pt-2 {
	padding-top: 0.5rem !important;
}
.pt-3 {
	padding-top: 1rem !important;
}
.pt-4 {
	padding-top: 1.5rem !important;
}
.pt-5 {
	padding-top: 3rem !important;
}
.pe-0 {
	padding-right: 0 !important;
}
.pe-1 {
	padding-right: 0.25rem !important;
}
.pe-2 {
	padding-right: 0.5rem !important;
}
.pe-3 {
	padding-right: 1rem !important;
}
.pe-4 {
	padding-right: 1.5rem !important;
}
.pe-5 {
	padding-right: 3rem !important;
}
.pb-0 {
	padding-bottom: 0 !important;
}
.pb-1 {
	padding-bottom: 0.25rem !important;
}
.pb-2 {
	padding-bottom: 0.5rem !important;
}
.pb-3 {
	padding-bottom: 1rem !important;
}
.pb-4 {
	padding-bottom: 1.5rem !important;
}
.pb-5 {
	padding-bottom: 3rem !important;
}
.ps-0 {
	padding-left: 0 !important;
}
.ps-1 {
	padding-left: 0.25rem !important;
}
.ps-2 {
	padding-left: 0.5rem !important;
}
.ps-3 {
	padding-left: 1rem !important;
}
.ps-4 {
	padding-left: 1.5rem !important;
}
.ps-5 {
	padding-left: 3rem !important;
}

/* Sizing */
.w-25 {
	width: 25% !important;
}
.w-50 {
	width: 50% !important;
}
.w-75 {
	width: 75% !important;
}
.w-100 {
	width: 100% !important;
}
.w-auto {
	width: auto !important;
}
.h-25 {
	height: 25% !important;
}
.h-50 {
	height: 50% !important;
}
.h-75 {
	height: 75% !important;
}
.h-100 {
	height: 100% !important;
}
.h-auto {
	height: auto !important;
}

/* Overflow – both axes, then each */
.overflow-auto {
	overflow: auto !important;
}
.overflow-hidden {
	overflow: hidden !important;
}
.overflow-visible {
	overflow: visible !important;
}
.overflow-scroll {
	overflow: scroll !important;
}
.overflow-x-auto {
	overflow-x: auto !important;
}
.overflow-x-hidden {
	overflow-x: hidden !important;
}
.overflow-x-visible {
	overflow-x: visible !important;
}
.overflow-x-scroll {
	overflow-x: scroll !important;
}
.overflow-y-auto {
	overflow-y: auto !important;
}
.overflow-y-hidden {
	overflow-y: hidden !important;
}
.overflow-y-visible {
	overflow-y: visible !important;
}
.overflow-y-scroll {
	overflow-y: scroll !important;
}

/* Position */
.position-static {
	position: static !important;
}
.position-relative {
	position: relative !important;
}
.position-absolute {
	position: absolute !important;
}
.position-fixed {
	position: fixed !important;
}
.position-sticky {
	position: sticky !important;
}

/* Text */
.text-start {
	text-align: left !important;
}
.text-end {
	text-align: right !important;
}
.text-center {
	text-align: center !important;
}
.text-nowrap {
	white-space: nowrap !important;
}
.text-break {
	word-wrap: break-word !important;
	word-break: break-word !important;
}
.fs-1 {
	font-size: 2.5rem !important;
}
.fs-2 {
	font-size: 2rem !important;
}
.fs-3 {
	font-size: 1.75rem !important;
}
.fs-4 {
	font-size: 1.5rem !important;
}
.fs-5 {
	font-size: 1.25rem !important;
}
.fs-6 {
	font-size: 1rem !important;
}
.fw-light {
	font-weight: 300 !important;
}
.fw-normal {
	font-weight: 400 !important;
}
.fw-medium {
	font-weight: 500 !important;
}
.fw-semibold {
	font-weight: 600 !important;
}
.fw-bold {
	font-weight: 700 !important;
}
.font-monospace {
	font-family: var(--font-monospace) !important;
}
.align-baseline {
	vertical-align: baseline !important;
}
.align-middle {
	vertical-align: middle !important;
}
.cursor-help {
	cursor: help !important;
}

/* Text colour */
.text-primary {
	color: var(--primary-color) !important;
}
.text-secondary {
	color: var(--secondary-color) !important;
}
.text-success {
	color: var(--success-color) !important;
}
.text-info {
	color: var(--info-color) !important;
}
.text-warning {
	color: var(--warning-color) !important;
}
.text-danger {
	color: var(--danger-color) !important;
}
.text-light {
	color: var(--light-color) !important;
}
.text-dark {
	color: var(--dark-color) !important;
}
.text-white {
	color: var(--white-color) !important;
}
.text-body {
	color: var(--body-color) !important;
}
.text-muted,
.text-body-secondary {
	color: var(--secondary-color) !important;
}

/* Background */
.bg-primary {
	background-color: var(--primary-color) !important;
}
.bg-secondary {
	background-color: var(--secondary-color) !important;
}
.bg-success {
	background-color: var(--success-color) !important;
}
.bg-info {
	background-color: var(--info-color) !important;
}
.bg-warning {
	background-color: var(--warning-color) !important;
}
.bg-danger {
	background-color: var(--danger-color) !important;
}
.bg-light {
	background-color: var(--light-color) !important;
}
.bg-dark {
	background-color: var(--dark-color) !important;
}
.bg-white {
	background-color: var(--white-color) !important;
}
.bg-body {
	background-color: var(--body-bg) !important;
}
/* Not Bootstrap's – the ordinal variable-type badge */
.bg-ordinal {
	background-color: var(--ordinal-color) !important;
}

/* Border – the colour after the sides, so .border .border-danger takes the colour */
.border {
	border: 1px solid var(--border-color) !important;
}
.border-0 {
	border: 0 !important;
}
.border-top {
	border-top: 1px solid var(--border-color) !important;
}
.border-top-0 {
	border-top: 0 !important;
}
.border-end {
	border-right: 1px solid var(--border-color) !important;
}
.border-end-0 {
	border-right: 0 !important;
}
.border-bottom {
	border-bottom: 1px solid var(--border-color) !important;
}
.border-bottom-0 {
	border-bottom: 0 !important;
}
.border-start {
	border-left: 1px solid var(--border-color) !important;
}
.border-start-0 {
	border-left: 0 !important;
}
.border-primary {
	border-color: var(--primary-color) !important;
}
.border-secondary {
	border-color: var(--secondary-color) !important;
}
.border-success {
	border-color: var(--success-color) !important;
}
.border-info {
	border-color: var(--info-color) !important;
}
.border-warning {
	border-color: var(--warning-color) !important;
}
.border-danger {
	border-color: var(--danger-color) !important;
}
.border-light {
	border-color: var(--light-color) !important;
}
.border-dark {
	border-color: var(--dark-color) !important;
}
.border-white {
	border-color: var(--white-color) !important;
}

/* Rounding */
.rounded {
	border-radius: var(--border-radius) !important;
}
.rounded-0 {
	border-radius: 0 !important;
}
.rounded-1 {
	border-radius: var(--border-radius-sm) !important;
}
.rounded-2 {
	border-radius: var(--border-radius) !important;
}
.rounded-3 {
	border-radius: var(--border-radius-lg) !important;
}
.rounded-4 {
	border-radius: var(--border-radius-xl) !important;
}
.rounded-5 {
	border-radius: var(--border-radius-xxl) !important;
}
.rounded-circle {
	border-radius: 50% !important;
}
.rounded-pill {
	border-radius: var(--border-radius-pill) !important;
}

/* Responsive – after every base utility, so a breakpoint variant overrides its base sibling
   (d-none d-md-flex) */
@media (min-width: 768px) {
	.d-md-inline {
		display: inline !important;
	}
	.d-md-inline-block {
		display: inline-block !important;
	}
	.d-md-block {
		display: block !important;
	}
	.d-md-grid {
		display: grid !important;
	}
	.d-md-flex {
		display: flex !important;
	}
	.d-md-inline-flex {
		display: inline-flex !important;
	}
	.d-md-none {
		display: none !important;
	}
	.flex-md-row {
		flex-direction: row !important;
	}
	.flex-md-column {
		flex-direction: column !important;
	}
	.flex-md-row-reverse {
		flex-direction: row-reverse !important;
	}
	.flex-md-column-reverse {
		flex-direction: column-reverse !important;
	}
	.px-md-4 {
		padding-right: 1.5rem !important;
		padding-left: 1.5rem !important;
	}
}

/* Helpers */
.small {
	font-size: 0.875rem;
}
.list-unstyled {
	padding-left: 0;
	list-style: none;
}
.sticky-top {
	position: sticky;
	top: 0;
	z-index: 1020;
}
.fade {
	opacity: 0;
	transition: opacity 0.15s linear;
}
.fade.show {
	opacity: 1;
}
