/* Euclid Font Family */
@font-face {
  font-family: "Euclid";
  font-style: normal;
  font-weight: 400;
  src: url("/_global/fonts/euclid/euclid-circular-b-regular.ttf")
    format("truetype");
}

@font-face {
  font-family: "Euclid";
  font-style: normal;
  font-weight: 300;
  src: url("/_global/fonts/euclid/euclid-circular-b-light.ttf")
    format("truetype");
}

@font-face {
  font-family: "Euclid";
  font-style: italic;
  font-weight: 300;
  src: url("/_global/fonts/euclid/euclid-circular-b-light-italic.ttf")
    format("truetype");
}

@font-face {
  font-family: "Euclid";
  font-style: italic;
  font-weight: 400;
  src: url("/_global/fonts/euclid/euclid-circular-b-italic.ttf")
    format("truetype");
}

@font-face {
  font-family: "Euclid";
  font-style: normal;
  font-weight: 500;
  src: url("/_global/fonts/euclid/euclid-circular-b-medium.ttf")
    format("truetype");
}

@font-face {
  font-family: "Euclid";
  font-style: italic;
  font-weight: 500;
  src: url("/_global/fonts/euclid/euclid-circular-b-medium-italic.ttf")
    format("truetype");
}

/* Layout: Sticky Footer */
html,
body {
  height: 100%;
}

body {
  min-height: 100vh;
}

@font-face {
  font-family: "Euclid";
  font-style: normal;
  font-weight: 600;
  src: url("/_global/fonts/euclid/euclid-circular-b-semibold.ttf")
    format("truetype");
}

@font-face {
  font-family: "Euclid";
  font-style: italic;
  font-weight: 600;
  src: url("/_global/fonts/euclid/euclid-circular-b-semibold-italic.ttf")
    format("truetype");
}

@font-face {
  font-family: "Euclid";
  font-style: normal;
  font-weight: 700;
  src: url("/_global/fonts/euclid/euclid-circular-b-bold.ttf")
    format("truetype");
}

@font-face {
  font-family: "Euclid";
  font-style: italic;
  font-weight: 700;
  src: url("/_global/fonts/euclid/euclid-circular-b-bold-italic.ttf")
    format("truetype");
}

.euclid {
  font-family: "Euclid", sans-serif !important;
}

body {
  font-family: "Euclid", sans-serif !important;
  max-width: 100vw;
  overflow-x: hidden;
}

#page-transition {
  width: 100vw;
  height: 100vh;
  position: fixed;
  z-index: 9999;
  background-color: #fff;
  transition: opacity 500ms ease;
}
#page-transition.hidden {
  opacity: 0;
}
#page-transition.hidden.complete {
  display: none;
}

/* BETTER BOOTSTRAP FONT SIZE SCREEN SIZE ADJUSTMENTS */

/* BACKGROUND IMAGES */
.bg-image,
.bg-image-dimmed {
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.bg-image-dimmed::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.55);
  z-index: 0;
}

.bg-image-dimmed-bottom::before,
.bg-image-dimmed-top::before,
.bg-image-dimmed-start::before,
.bg-image-dimmed-end::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.bg-image-dimmed-bottom::before {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.6) 30%,
    rgba(0, 0, 0, 0.164) 60%
  );
}

.bg-image-dimmed-top::before {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.6) 30%,
    rgba(0, 0, 0, 0.164) 60%
  );
}

.bg-image-dimmed-start::before {
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.6) 30%,
    rgba(0, 0, 0, 0.164) 60%
  );
}

.bg-image-dimmed-end::before {
  background: linear-gradient(
    to left,
    rgba(0, 0, 0, 0.6) 30%,
    rgba(0, 0, 0, 0.164) 60%
  );
}

.bg-image,
.bg-image-dimmed > *,
.bg-image-dimmed-bottom > *,
.bg-image-dimmed-top > *,
.bg-image-dimmed-start > *,
.bg-image-dimmed-end > * {
  position: relative;
  z-index: 1;
}

.bg-image.bg-loading .bg-skeleton,
.bg-image-dimmed.bg-loading .bg-skeleton {
  opacity: 1;
}
.bg-image .bg-skeleton,
.bg-image-dimmed .bg-skeleton {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 200ms ease;
  z-index: 0;
  background: linear-gradient(90deg, #e9e9e9 25%, #f3f3f3 50%, #e9e9e9 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.2s ease-in-out infinite;
}

.ratio-1x1 {
  aspect-ratio: 1 / 1;
}

/* NO ORPHANS IN PARAGRAPHS */
p {
  overflow-wrap: break-word;
  text-wrap: pretty;
}

/* FIX FOR OLD INLINE CONTAINER - REMOVE ONCE FULLY TRANSITIONED */
body > .body .inline {
  max-width: 1220px !important;
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 0;
  width: 100%;
  padding-right: calc(var(--bs-gutter-x) * 0.5);
  padding-left: calc(var(--bs-gutter-x) * 0.5);
  margin-right: auto;
  margin-left: auto;
}
@media (min-width: 576px) {
  body > .body .inline {
    max-width: 540px !important;
  }
}
@media (min-width: 768px) {
  body > .body .inline {
    max-width: 720px !important;
  }
}
@media (min-width: 992px) {
  body > .body .inline {
    max-width: 960px !important;
  }
}
@media (min-width: 1200px) {
  body > .body .inline {
    max-width: 1140px !important;
  }
}
@media (min-width: 1400px) {
  body > .body .inline {
    max-width: 1320px !important;
  }
}
/* FIX FOR OLD BODY CLASS - REMOVE ONCE FULLY TRANSITIONED */
body > .body {
  padding-bottom: 1.5rem;
  min-height: unset !important;
}
/* FIX FOR OLD BODY FONTS */
body > .body .acsi-sub-description {
  font-weight: inherit !important;
}
