/* 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,
.bg-image-dimmed-x,
.bg-image-lightened,
.bg-image-acs-dark {
  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.6);
  z-index: 0;
}

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

.bg-image-acs-dark::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(23, 32, 45, 0.8);
  z-index: 0;
}

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

.bg-image-dimmed-bottom::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,
.bg-image-dimmed > *,
.bg-image-dimmed-x > *,
.bg-image-lightened > *,
.bg-image-acs-dark > *,
.bg-image-dimmed-bottom > * {
  position: relative;
  z-index: 1;
}

.bg-image.bg-loading .bg-skeleton,
.bg-image-dimmed.bg-loading .bg-skeleton,
.bg-image-dimmed-x.bg-loading .bg-skeleton,
.bg-image-lightened.bg-loading .bg-skeleton {
  opacity: 1;
}
.bg-image .bg-skeleton,
.bg-image-dimmed .bg-skeleton,
.bg-image-dimmed-x .bg-skeleton,
.bg-image-lightened .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;
}

/* BACKGROUND VIDEOS */
.bg-video {
  position: relative;
  overflow: hidden;
}

.bg-video > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.bg-video > *:not(video) {
  position: relative;
  z-index: 2;
}

.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;
}
.bg-success {
  background-color: #3ea22a !important;
}
.btn-success,
.btn-outline-success:hover {
  background-color: #3ea22a;
  border-color: #3ea22a;
}
.btn-outline-success {
  border-color: #3ea22a;
  color: #3ea22a;
}

/* FLIPBOOK VIEWER */
body.flipbook-page {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 10% 10%, #f8f9fb, #e8ecf2 55%, #dde3eb);
}

.flipbook-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
}

.flipbook-topbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.flipbook-home {
  color: #17202d;
  text-decoration: none;
  font-weight: 600;
}

.flipbook-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: #4a5568;
}

.flipbook-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  position: relative;
  overflow: hidden;
}

.flipbook-view {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 12px;
}

.flipbook-loader {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border-radius: inherit;
}

.flipbook-loader[hidden] {
  display: none;
}

.flipbook-loader-spinner {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(0, 0, 0, 0.18);
  border-top-color: #000000;
  border-radius: 50%;
  animation: flipbook-spin 0.75s linear infinite;
}

.flipbook-loader-text {
  color: rgba(0, 0, 0, 0.75);
  font-size: 0.875rem;
  margin: 0;
  min-width: 200px;
  text-align: center;
}

@keyframes flipbook-spin {
  to {
    transform: rotate(360deg);
  }
}

.flipbook-sheet {
  background: #fff;
}

.flipbook-status {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.95);
  color: #17202d;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.875rem;
}

.flipbook-status:empty {
  display: none;
}

.flipbook-status.is-error {
  background: #ffe5e5;
  color: #8f2424;
}

.flipbook-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.flipbook-icon-btn {
  width: 38px;
  height: 38px;
  border: 1px solid #2f445f;
  border-radius: 50%;
  background: #ffffff;
  color: #2f445f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    border-color 160ms ease;
}

.flipbook-icon-btn:hover {
  background: #2f445f;
  color: #ffffff;
}

.flipbook-icon-btn:disabled {
  opacity: 0.45;
  pointer-events: none;
}

.flipbook-icon-btn .material-symbols-outlined {
  font-size: 20px;
}

.flipbook-pdf-btn {
  border-radius: 999px;
  width: auto;
  padding: 0 12px;
}

@media (max-width: 991px) {
  .flipbook-stage {
    min-height: 62vh;
  }

  .flipbook-meta {
    width: 100%;
    justify-content: space-between;
  }
}
.btn-success:hover {
  background-color: #378b26;
  border-color: #378b26;
}
.text-success {
  color: #3ea22a !important;
}
.btn-info {
  background-color: #e5f5fc;
  border-color: #e5f5fc;
}
.bg-success-light {
  background-color: rgb(234, 241, 221);
}
.bg-acs-dark {
  background-color: #17202d !important;
}
.bg-info {
  background-color: #e5f5fc !important;
}
.btn-outline-dark {
  background-color: #fff;
}
.marker-primary::marker {
  color: #ff5a02;
}

.px-6 {
  padding-right: 5rem !important;
  padding-left: 5rem !important;
}
.gx-6 {
  --bs-gutter-x: 5rem !important;
}
.px-7 {
  padding-right: 7rem !important;
  padding-left: 7rem !important;
}
.recaptcha-disclosure,
.recaptcha-disclosure *,
#open_preferences_center {
  font-size: 0.7rem;
  color: var(--bs-secondary-color) !important;
}

@media screen and (min-width: 1700px) {
  .d-xxxl-block {
    display: block !important;
  }
}

.material-symbols-outlined {
  user-select: none;
}

@media (min-width: 768px) {
  .text-md-dark {
    color: var(--bs-dark) !important;
  }
}

.table-primary {
  background-color: #ff5a02 !important;
  color: #fff !important;
  --bs-table-bg: #ff5a02 !important;
  --bs-table-active-bg: #ff5a02 !important;
  --bs-table-hover-bg: #ff5a02 !important;
  --bs-table-color: #fff !important;
  --bs-table-striped-color: #fff !important;
  --bs-table-active-color: #fff !important;
}
*:has(.acs-marks) {
  position: relative;
}
.acs-marks {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* Allows users to click buttons 'through' the marks */

  /* 1. Reduce opacity to get that faint, semi-transparent watermark look */
  opacity: 0.12;

  /* 2. Load the white SVG twice */
  background-image:
    url("/_global/img/logo/mark_white.svg"),
    url("/_global/img/logo/mark_white.svg");

  /* 3. Position them: First one bottom-left, second one top-right */
  background-position:
    left -150px bottom -80px,
    right -80px top -160px;

  /* 4. Prevent tiling/repeating */
  background-repeat: no-repeat, no-repeat;

  /* 5. Adjust the sizing of the marks (tweak percentages as needed) */
  background-size: 350px, 350px;
}

@media screen and (min-width: 1200px) {
  .rounded-xl-pill {
    border-radius: 50rem !important;
  }
}
