/*
 * Adsclusive utilities — the layout vocabulary the Twig templates use
 * (Bootstrap-compatible class names) implemented with Astryx tokens.
 *
 * Loaded after astryx-ui.css so utilities can adjust component spacing, the way
 * the templates expect. Only layout/typography/colour utilities live here; no
 * component look is defined in this file.
 */

:root {
  --gutter-x: 1.5rem;
  --gutter-y: 0;
  --bs-body-font-family: var(--font-family-body);
  --bs-body-color: var(--color-text-primary);
}

/* ---------------------------------------------------------------- grid --- */

.row {
  --gutter-x: 1.5rem;
  --gutter-y: 0;
  display: flex;
  flex-wrap: wrap;
  margin-top: calc(-1 * var(--gutter-y));
  margin-right: calc(-0.5 * var(--gutter-x));
  margin-left: calc(-0.5 * var(--gutter-x));
}

.row > * {
  flex-shrink: 0;
  width: 100%;
  max-width: 100%;
  padding-right: calc(var(--gutter-x) * 0.5);
  padding-left: calc(var(--gutter-x) * 0.5);
  margin-top: var(--gutter-y);
}

.col {
  flex: 1 0 0%;
}

.col-1 { flex: 0 0 auto; width: 8.333333%; }
.col-2 { flex: 0 0 auto; width: 16.666667%; }
.col-3 { flex: 0 0 auto; width: 25.000000%; }
.col-4 { flex: 0 0 auto; width: 33.333333%; }
.col-5 { flex: 0 0 auto; width: 41.666667%; }
.col-6 { flex: 0 0 auto; width: 50.000000%; }
.col-7 { flex: 0 0 auto; width: 58.333333%; }
.col-8 { flex: 0 0 auto; width: 66.666667%; }
.col-9 { flex: 0 0 auto; width: 75.000000%; }
.col-10 { flex: 0 0 auto; width: 83.333333%; }
.col-11 { flex: 0 0 auto; width: 91.666667%; }
.col-12 { flex: 0 0 auto; width: 100.000000%; }

@media (min-width: 576px) {
  .col { flex: 1 0 0%; }
  .col-sm-1 { flex: 0 0 auto; width: 8.333333%; }
  .col-sm-2 { flex: 0 0 auto; width: 16.666667%; }
  .col-sm-3 { flex: 0 0 auto; width: 25.000000%; }
  .col-sm-4 { flex: 0 0 auto; width: 33.333333%; }
  .col-sm-5 { flex: 0 0 auto; width: 41.666667%; }
  .col-sm-6 { flex: 0 0 auto; width: 50.000000%; }
  .col-sm-7 { flex: 0 0 auto; width: 58.333333%; }
  .col-sm-8 { flex: 0 0 auto; width: 66.666667%; }
  .col-sm-9 { flex: 0 0 auto; width: 75.000000%; }
  .col-sm-10 { flex: 0 0 auto; width: 83.333333%; }
  .col-sm-11 { flex: 0 0 auto; width: 91.666667%; }
  .col-sm-12 { flex: 0 0 auto; width: 100.000000%; }
}
@media (min-width: 768px) {
  .col { flex: 1 0 0%; }
  .col-md-1 { flex: 0 0 auto; width: 8.333333%; }
  .col-md-2 { flex: 0 0 auto; width: 16.666667%; }
  .col-md-3 { flex: 0 0 auto; width: 25.000000%; }
  .col-md-4 { flex: 0 0 auto; width: 33.333333%; }
  .col-md-5 { flex: 0 0 auto; width: 41.666667%; }
  .col-md-6 { flex: 0 0 auto; width: 50.000000%; }
  .col-md-7 { flex: 0 0 auto; width: 58.333333%; }
  .col-md-8 { flex: 0 0 auto; width: 66.666667%; }
  .col-md-9 { flex: 0 0 auto; width: 75.000000%; }
  .col-md-10 { flex: 0 0 auto; width: 83.333333%; }
  .col-md-11 { flex: 0 0 auto; width: 91.666667%; }
  .col-md-12 { flex: 0 0 auto; width: 100.000000%; }
}
@media (min-width: 992px) {
  .col { flex: 1 0 0%; }
  .col-lg-1 { flex: 0 0 auto; width: 8.333333%; }
  .col-lg-2 { flex: 0 0 auto; width: 16.666667%; }
  .col-lg-3 { flex: 0 0 auto; width: 25.000000%; }
  .col-lg-4 { flex: 0 0 auto; width: 33.333333%; }
  .col-lg-5 { flex: 0 0 auto; width: 41.666667%; }
  .col-lg-6 { flex: 0 0 auto; width: 50.000000%; }
  .col-lg-7 { flex: 0 0 auto; width: 58.333333%; }
  .col-lg-8 { flex: 0 0 auto; width: 66.666667%; }
  .col-lg-9 { flex: 0 0 auto; width: 75.000000%; }
  .col-lg-10 { flex: 0 0 auto; width: 83.333333%; }
  .col-lg-11 { flex: 0 0 auto; width: 91.666667%; }
  .col-lg-12 { flex: 0 0 auto; width: 100.000000%; }
}
@media (min-width: 1200px) {
  .col { flex: 1 0 0%; }
  .col-xl-1 { flex: 0 0 auto; width: 8.333333%; }
  .col-xl-2 { flex: 0 0 auto; width: 16.666667%; }
  .col-xl-3 { flex: 0 0 auto; width: 25.000000%; }
  .col-xl-4 { flex: 0 0 auto; width: 33.333333%; }
  .col-xl-5 { flex: 0 0 auto; width: 41.666667%; }
  .col-xl-6 { flex: 0 0 auto; width: 50.000000%; }
  .col-xl-7 { flex: 0 0 auto; width: 58.333333%; }
  .col-xl-8 { flex: 0 0 auto; width: 66.666667%; }
  .col-xl-9 { flex: 0 0 auto; width: 75.000000%; }
  .col-xl-10 { flex: 0 0 auto; width: 83.333333%; }
  .col-xl-11 { flex: 0 0 auto; width: 91.666667%; }
  .col-xl-12 { flex: 0 0 auto; width: 100.000000%; }
}
@media (min-width: 1400px) {
  .col { flex: 1 0 0%; }
  .col-xxl-1 { flex: 0 0 auto; width: 8.333333%; }
  .col-xxl-2 { flex: 0 0 auto; width: 16.666667%; }
  .col-xxl-3 { flex: 0 0 auto; width: 25.000000%; }
  .col-xxl-4 { flex: 0 0 auto; width: 33.333333%; }
  .col-xxl-5 { flex: 0 0 auto; width: 41.666667%; }
  .col-xxl-6 { flex: 0 0 auto; width: 50.000000%; }
  .col-xxl-7 { flex: 0 0 auto; width: 58.333333%; }
  .col-xxl-8 { flex: 0 0 auto; width: 66.666667%; }
  .col-xxl-9 { flex: 0 0 auto; width: 75.000000%; }
  .col-xxl-10 { flex: 0 0 auto; width: 83.333333%; }
  .col-xxl-11 { flex: 0 0 auto; width: 91.666667%; }
  .col-xxl-12 { flex: 0 0 auto; width: 100.000000%; }
}

/* gutters */
.g-0 { --gutter-x: 0; --gutter-y: 0; }
.gx-0 { --gutter-x: 0; }
.gy-0 { --gutter-y: 0; }
.g-1 { --gutter-x: 0.25rem; --gutter-y: 0.25rem; }
.gx-1 { --gutter-x: 0.25rem; }
.gy-1 { --gutter-y: 0.25rem; }
.g-2 { --gutter-x: 0.5rem; --gutter-y: 0.5rem; }
.gx-2 { --gutter-x: 0.5rem; }
.gy-2 { --gutter-y: 0.5rem; }
.g-3 { --gutter-x: 1rem; --gutter-y: 1rem; }
.gx-3 { --gutter-x: 1rem; }
.gy-3 { --gutter-y: 1rem; }
.g-4 { --gutter-x: 1.5rem; --gutter-y: 1.5rem; }
.gx-4 { --gutter-x: 1.5rem; }
.gy-4 { --gutter-y: 1.5rem; }
.g-5 { --gutter-x: 3rem; --gutter-y: 3rem; }
.gx-5 { --gutter-x: 3rem; }
.gy-5 { --gutter-y: 3rem; }

/* spacing (Bootstrap scale: .25/.5/1/1.5/3rem) */
.m-0 { margin: 0 !important; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.ms-0 { margin-inline-start: 0 !important; }
.me-0 { margin-inline-end: 0 !important; }
.mx-0 { margin-inline-start: 0 !important; margin-inline-end: 0 !important; }
.my-0 { margin-top: 0 !important; margin-bottom: 0 !important; }
.m-1 { margin: 0.25rem !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.ms-1 { margin-inline-start: 0.25rem !important; }
.me-1 { margin-inline-end: 0.25rem !important; }
.mx-1 { margin-inline-start: 0.25rem !important; margin-inline-end: 0.25rem !important; }
.my-1 { margin-top: 0.25rem !important; margin-bottom: 0.25rem !important; }
.m-2 { margin: 0.5rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.ms-2 { margin-inline-start: 0.5rem !important; }
.me-2 { margin-inline-end: 0.5rem !important; }
.mx-2 { margin-inline-start: 0.5rem !important; margin-inline-end: 0.5rem !important; }
.my-2 { margin-top: 0.5rem !important; margin-bottom: 0.5rem !important; }
.m-3 { margin: 1rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.ms-3 { margin-inline-start: 1rem !important; }
.me-3 { margin-inline-end: 1rem !important; }
.mx-3 { margin-inline-start: 1rem !important; margin-inline-end: 1rem !important; }
.my-3 { margin-top: 1rem !important; margin-bottom: 1rem !important; }
.m-4 { margin: 1.5rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.ms-4 { margin-inline-start: 1.5rem !important; }
.me-4 { margin-inline-end: 1.5rem !important; }
.mx-4 { margin-inline-start: 1.5rem !important; margin-inline-end: 1.5rem !important; }
.my-4 { margin-top: 1.5rem !important; margin-bottom: 1.5rem !important; }
.m-5 { margin: 3rem !important; }
.mt-5 { margin-top: 3rem !important; }
.mb-5 { margin-bottom: 3rem !important; }
.ms-5 { margin-inline-start: 3rem !important; }
.me-5 { margin-inline-end: 3rem !important; }
.mx-5 { margin-inline-start: 3rem !important; margin-inline-end: 3rem !important; }
.my-5 { margin-top: 3rem !important; margin-bottom: 3rem !important; }
.m-auto { margin: auto !important; }
.mx-auto { margin-inline: auto !important; }
.ms-auto { margin-inline-start: auto !important; }
.me-auto { margin-inline-end: auto !important; }
.p-0 { padding: 0 !important; }
.pt-0 { padding-top: 0 !important; }
.pb-0 { padding-bottom: 0 !important; }
.ps-0 { padding-inline-start: 0 !important; }
.pe-0 { padding-inline-end: 0 !important; }
.px-0 { padding-inline-start: 0 !important; padding-inline-end: 0 !important; }
.py-0 { padding-top: 0 !important; padding-bottom: 0 !important; }
.p-1 { padding: 0.25rem !important; }
.pt-1 { padding-top: 0.25rem !important; }
.pb-1 { padding-bottom: 0.25rem !important; }
.ps-1 { padding-inline-start: 0.25rem !important; }
.pe-1 { padding-inline-end: 0.25rem !important; }
.px-1 { padding-inline-start: 0.25rem !important; padding-inline-end: 0.25rem !important; }
.py-1 { padding-top: 0.25rem !important; padding-bottom: 0.25rem !important; }
.p-2 { padding: 0.5rem !important; }
.pt-2 { padding-top: 0.5rem !important; }
.pb-2 { padding-bottom: 0.5rem !important; }
.ps-2 { padding-inline-start: 0.5rem !important; }
.pe-2 { padding-inline-end: 0.5rem !important; }
.px-2 { padding-inline-start: 0.5rem !important; padding-inline-end: 0.5rem !important; }
.py-2 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
.p-3 { padding: 1rem !important; }
.pt-3 { padding-top: 1rem !important; }
.pb-3 { padding-bottom: 1rem !important; }
.ps-3 { padding-inline-start: 1rem !important; }
.pe-3 { padding-inline-end: 1rem !important; }
.px-3 { padding-inline-start: 1rem !important; padding-inline-end: 1rem !important; }
.py-3 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.pt-4 { padding-top: 1.5rem !important; }
.pb-4 { padding-bottom: 1.5rem !important; }
.ps-4 { padding-inline-start: 1.5rem !important; }
.pe-4 { padding-inline-end: 1.5rem !important; }
.px-4 { padding-inline-start: 1.5rem !important; padding-inline-end: 1.5rem !important; }
.py-4 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
.p-5 { padding: 3rem !important; }
.pt-5 { padding-top: 3rem !important; }
.pb-5 { padding-bottom: 3rem !important; }
.ps-5 { padding-inline-start: 3rem !important; }
.pe-5 { padding-inline-end: 3rem !important; }
.px-5 { padding-inline-start: 3rem !important; padding-inline-end: 3rem !important; }
.py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }

/* gap */
.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; }

/* display */
.d-none { display: none !important; }
.d-inline { display: inline !important; }
.d-inline-block { display: inline-block !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.d-inline-flex { display: inline-flex !important; }
.d-grid { display: grid !important; }
.d-table { display: table !important; }
.d-table-row { display: table-row !important; }
.d-table-cell { display: table-cell !important; }
@media (min-width: 576px) {
  .d-sm-none { display: none !important; }
  .d-sm-inline { display: inline !important; }
  .d-sm-inline-block { display: inline-block !important; }
  .d-sm-block { display: block !important; }
  .d-sm-flex { display: flex !important; }
  .d-sm-inline-flex { display: inline-flex !important; }
  .d-sm-grid { display: grid !important; }
  .d-sm-table { display: table !important; }
  .d-sm-table-row { display: table-row !important; }
  .d-sm-table-cell { display: table-cell !important; }
}
@media (min-width: 768px) {
  .d-md-none { display: none !important; }
  .d-md-inline { display: inline !important; }
  .d-md-inline-block { display: inline-block !important; }
  .d-md-block { display: block !important; }
  .d-md-flex { display: flex !important; }
  .d-md-inline-flex { display: inline-flex !important; }
  .d-md-grid { display: grid !important; }
  .d-md-table { display: table !important; }
  .d-md-table-row { display: table-row !important; }
  .d-md-table-cell { display: table-cell !important; }
}
@media (min-width: 992px) {
  .d-lg-none { display: none !important; }
  .d-lg-inline { display: inline !important; }
  .d-lg-inline-block { display: inline-block !important; }
  .d-lg-block { display: block !important; }
  .d-lg-flex { display: flex !important; }
  .d-lg-inline-flex { display: inline-flex !important; }
  .d-lg-grid { display: grid !important; }
  .d-lg-table { display: table !important; }
  .d-lg-table-row { display: table-row !important; }
  .d-lg-table-cell { display: table-cell !important; }
}
@media (min-width: 1200px) {
  .d-xl-none { display: none !important; }
  .d-xl-inline { display: inline !important; }
  .d-xl-inline-block { display: inline-block !important; }
  .d-xl-block { display: block !important; }
  .d-xl-flex { display: flex !important; }
  .d-xl-inline-flex { display: inline-flex !important; }
  .d-xl-grid { display: grid !important; }
  .d-xl-table { display: table !important; }
  .d-xl-table-row { display: table-row !important; }
  .d-xl-table-cell { display: table-cell !important; }
}
@media (min-width: 1400px) {
  .d-xxl-none { display: none !important; }
  .d-xxl-inline { display: inline !important; }
  .d-xxl-inline-block { display: inline-block !important; }
  .d-xxl-block { display: block !important; }
  .d-xxl-flex { display: flex !important; }
  .d-xxl-inline-flex { display: inline-flex !important; }
  .d-xxl-grid { display: grid !important; }
  .d-xxl-table { display: table !important; }
  .d-xxl-table-row { display: table-row !important; }
  .d-xxl-table-cell { display: table-cell !important; }
}

/* flex */
.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-wrap { flex-wrap: wrap !important; }
.flex-nowrap { flex-wrap: nowrap !important; }
.flex-wrap-reverse { flex-wrap: wrap-reverse !important; }
.flex-fill { flex: 1 1 auto !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; }
.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; }
.justify-content-stretch { justify-content: stretch !important; }
.justify-content-baseline { justify-content: baseline !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-between { align-items: space-between !important; }
.align-items-around { align-items: space-around !important; }
.align-items-evenly { align-items: space-evenly !important; }
.align-items-stretch { align-items: stretch !important; }
.align-items-baseline { align-items: baseline !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-between { align-self: space-between !important; }
.align-self-around { align-self: space-around !important; }
.align-self-evenly { align-self: space-evenly !important; }
.align-self-stretch { align-self: stretch !important; }
.align-self-baseline { align-self: baseline !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-evenly { align-content: space-evenly !important; }
.align-content-stretch { align-content: stretch !important; }
.align-content-baseline { align-content: baseline !important; }

/* sizing & position */
.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; }
.mw-100 { max-width: 100% !important; }
.mh-100 { height: 100% !important; }
.min-vh-100 { min-height: 100vh !important; }
.vh-100 { height: 100vh !important; }
.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; }
.top-0 { top: 0 !important; }
.bottom-0 { bottom: 0 !important; }
.start-0 { inset-inline-start: 0 !important; }
.end-0 { inset-inline-end: 0 !important; }
.overflow-auto { overflow: auto !important; }
.overflow-hidden { overflow: hidden !important; }
.overflow-visible { overflow: visible !important; }
.overflow-x-auto { overflow-x: auto !important; }

/* typography */
.h1 { font-family: var(--font-family-heading); font-size: var(--font-size-4xl); font-weight: var(--font-weight-semibold); line-height: 1.25; }
.h2 { font-family: var(--font-family-heading); font-size: var(--font-size-3xl); font-weight: var(--font-weight-semibold); line-height: 1.25; }
.h3 { font-family: var(--font-family-heading); font-size: var(--font-size-2xl); font-weight: var(--font-weight-semibold); line-height: 1.25; }
.h4 { font-family: var(--font-family-heading); font-size: var(--font-size-xl); font-weight: var(--font-weight-semibold); line-height: 1.25; }
.h5 { font-family: var(--font-family-heading); font-size: var(--font-size-lg); font-weight: var(--font-weight-semibold); line-height: 1.25; }
.h6 { font-family: var(--font-family-heading); font-size: var(--font-size-base); font-weight: var(--font-weight-semibold); line-height: 1.25; }
.text-start { text-align: start !important; }
.text-center { text-align: center !important; }
.text-end { text-align: end !important; }
.text-nowrap { white-space: nowrap !important; }
.text-wrap { white-space: normal !important; }
.text-break { overflow-wrap: break-word !important; word-break: break-word !important; }
.text-truncate { overflow: hidden !important; text-overflow: ellipsis !important; white-space: nowrap !important; }
.text-lowercase { text-transform: lowercase !important; }
.text-uppercase { text-transform: uppercase !important; }
.text-capitalize { text-transform: capitalize !important; }
.text-decoration-none { text-decoration: none !important; }
.text-decoration-underline { text-decoration: underline !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; }
.fs-1 { font-size: var(--font-size-5xl) !important; }
.fs-2 { font-size: var(--font-size-4xl) !important; }
.fs-3 { font-size: var(--font-size-3xl) !important; }
.fs-4 { font-size: var(--font-size-2xl) !important; }
.fs-5 { font-size: var(--font-size-xl) !important; }
.fs-6 { font-size: var(--font-size-lg) !important; }
.lh-1 { line-height: 1 !important; }
.lh-sm { line-height: 1.25 !important; }
.lh-base { line-height: 1.45 !important; }
.font-monospace { font-family: var(--font-family-code) !important; }
.text-muted, .text-body-secondary { color: var(--color-text-secondary) !important; }
.text-body { color: var(--color-text-primary) !important; }
.text-primary { color: var(--color-text-primary) !important; }
.text-secondary { color: var(--color-text-secondary) !important; }
.text-dark { color: var(--color-text-primary) !important; }
.text-white { color: var(--color-on-dark) !important; }
.text-success { color: var(--color-text-green) !important; }
.text-danger { color: var(--color-text-red) !important; }
.text-warning { color: var(--color-text-yellow) !important; }
.text-info { color: var(--color-text-blue) !important; }

/* backgrounds */
.bg-primary { --bg: var(--color-accent); background-color: color-mix(in srgb, var(--bg) var(--bg-opacity, 100%), transparent) !important; }
.bg-secondary { --bg: var(--color-background-gray); background-color: color-mix(in srgb, var(--bg) var(--bg-opacity, 100%), transparent) !important; }
.bg-success { --bg: var(--color-background-green); background-color: color-mix(in srgb, var(--bg) var(--bg-opacity, 100%), transparent) !important; }
.bg-info { --bg: var(--color-background-blue); background-color: color-mix(in srgb, var(--bg) var(--bg-opacity, 100%), transparent) !important; }
.bg-warning { --bg: var(--color-background-yellow); background-color: color-mix(in srgb, var(--bg) var(--bg-opacity, 100%), transparent) !important; }
.bg-danger { --bg: var(--color-background-red); background-color: color-mix(in srgb, var(--bg) var(--bg-opacity, 100%), transparent) !important; }
.bg-light { --bg: var(--color-background-muted); background-color: color-mix(in srgb, var(--bg) var(--bg-opacity, 100%), transparent) !important; }
.bg-white { --bg: var(--color-background-surface); background-color: color-mix(in srgb, var(--bg) var(--bg-opacity, 100%), transparent) !important; }
.bg-dark { --bg: var(--color-accent); background-color: color-mix(in srgb, var(--bg) var(--bg-opacity, 100%), transparent) !important; }
.bg-purple { --bg: var(--color-background-purple); background-color: color-mix(in srgb, var(--bg) var(--bg-opacity, 100%), transparent) !important; }
.text-purple { color: var(--color-text-purple) !important; }
.text-orange { color: var(--color-text-orange) !important; }
.bg-orange { --bg: var(--color-background-orange); background-color: color-mix(in srgb, var(--bg) var(--bg-opacity, 100%), transparent) !important; }
.bg-body { --bg: var(--color-background-body); background-color: color-mix(in srgb, var(--bg) var(--bg-opacity, 100%), transparent) !important; }
.bg-transparent { --bg: transparent; background-color: color-mix(in srgb, var(--bg) var(--bg-opacity, 100%), transparent) !important; }
.bg-opacity-10 { --bg-opacity: 10% !important; }
.bg-opacity-25 { --bg-opacity: 25% !important; }
.bg-opacity-50 { --bg-opacity: 50% !important; }

/* borders */
.border { border: 1px solid var(--color-border) !important; }
.border-0 { border: 0 !important; }
.border-top { border-top: 1px solid var(--color-border) !important; }
.border-bottom { border-bottom: 1px solid var(--color-border) !important; }
.border-start { border-inline-start: 1px solid var(--color-border) !important; }
.border-end { border-inline-end: 1px solid var(--color-border) !important; }
.border-2 { border-width: 2px !important; }
.border-3 { border-width: 3px !important; }
.border-primary { border-color: var(--color-accent) !important; }
.border-secondary { border-color: var(--color-border-emphasized) !important; }
.border-success { border-color: var(--color-border-green) !important; }
.border-danger { border-color: var(--color-border-red) !important; }
.border-warning { border-color: var(--color-border-yellow) !important; }
.border-info { border-color: var(--color-border-blue) !important; }
.border-light { border-color: var(--color-border) !important; }
.border-dark { border-color: var(--color-border-emphasized) !important; }

/* radius & shadow */
.rounded { border-radius: var(--radius-element) !important; }
.rounded-0 { border-radius: 0 !important; }
.rounded-1 { border-radius: var(--radius-inner) !important; }
.rounded-2 { border-radius: var(--radius-element) !important; }
.rounded-3 { border-radius: var(--radius-container) !important; }
.rounded-4 { border-radius: var(--radius-page) !important; }
.rounded-circle { border-radius: var(--radius-full) !important; }
.rounded-pill { border-radius: var(--radius-full) !important; }
.shadow-none { box-shadow: none !important; }
.shadow-sm { box-shadow: var(--shadow-low) !important; }
.shadow { box-shadow: var(--shadow-med) !important; }
.shadow-lg { box-shadow: var(--shadow-high) !important; }

/* misc */
.link-primary { color: var(--color-text-primary) !important; text-decoration: underline; }
.link-secondary { color: var(--color-text-secondary) !important; }
.align-middle { vertical-align: middle !important; }
.align-baseline { vertical-align: baseline !important; }
.align-top { vertical-align: top !important; }
.align-bottom { vertical-align: bottom !important; }
.clearfix::after { display: block; clear: both; content: ""; }
.user-select-none { user-select: none !important; }
.pe-none { pointer-events: none !important; }
.object-fit-cover { object-fit: cover !important; }
.object-fit-contain { object-fit: contain !important; }
.opacity-0 { opacity: 0 !important; }
.opacity-25 { opacity: 0.25 !important; }
.opacity-50 { opacity: 0.5 !important; }
.opacity-75 { opacity: 0.75 !important; }
.opacity-100 { opacity: 1 !important; }

/* Text colour pairings for muted status backgrounds, used by badges and alerts. */
.bg-success.text-dark,
.bg-success.text-white { color: var(--color-text-green) !important; }
.bg-warning.text-dark,
.bg-warning.text-white { color: var(--color-text-yellow) !important; }
.bg-danger.text-dark,
.bg-danger.text-white { color: var(--color-text-red) !important; }
.bg-info.text-dark,
.bg-info.text-white { color: var(--color-text-blue) !important; }
.bg-secondary.text-dark,
.bg-secondary.text-white { color: var(--color-text-gray) !important; }
.bg-primary.text-dark,
.bg-primary.text-white { color: var(--color-on-accent) !important; }

