/* Fixes */
#main-header {
  z-index: 10 !important;
}

/* Type */
h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6 {
  font-family: "Citi-Sans-Display", Arial, sans-serif;

  & > em {
    font-family: "Citi-Serif-Display", Arial, sans-serif;
  }
}
.lead {
  font-size: 1.25rem !important;
  font-weight: 300;
}
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-family: "Citi-Sans", Arial, sans-serif;
  font-weight: 300;
  line-height: 1.2;
}
.display-1 {
  font-size: calc(1.625rem + 4.5vw) !important;
}
.display-2 {
  font-size: calc(1.575rem + 3.9vw) !important;
}
.display-3 {
  font-size: calc(1.525rem + 3.3vw) !important;
}
.display-4 {
  font-size: calc(1.475rem + 2.7vw) !important;
}
.display-5 {
  font-size: calc(1.425rem + 2.1vw) !important;
}
.display-6 {
  font-size: calc(1.375rem + 1.5vw) !important;
}

/* Color */
.background-citi-gray-05 {
	background-color: #f0f5f7 !important;
	color: #0f1632;
}

/* Lists */
dl {
  & > dt {
    font-family: "Citi-Sans-Display", Arial, sans-serif;
  }

  & > dd:has(+ dd) {
    margin-bottom: 0;
  }

  &.key-value {
    display: inline;
    overflow: hidden;
    text-overflow: ellipsis;

    & > dt {
      display: inline;

      &::after {
        content: ': ';
        display: inline;
      }
    }

    & > dd {
      display: inline;
      margin: 0;
      white-space: pre-line;

      &::after {
        display: inline;
      }

      &:has(+ dd)::after {
        content: var(--definition-list-delimiter, ', ');
      }

      &:has(+ dt)::after {
        content: '\a';
      }
    }

    &.sparse > dt:has(+ :not(dd)) {
      display: none;
    }

    &.inline > dd:has(+ dt)::after {
      content: var(--definition-list-term-delimiter, '; ');
    }
  }
}

/* Stacks */
.hstack {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  align-self: stretch;
}
.vstack {
  display: flex !important;
  flex: 1 1 auto;
  flex-direction: column !important;
  align-self: stretch;

  & > .row {
    width: 100%;
  }
}
.gap {
  gap: 15px;
}

/* Box */
.box {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  padding: var(--box-padding, 15px);
  color: var(--box-color, white);
  background-color: var(--box-bg-color, #255be3);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border-radius: var(--box-border-radius, 15px);
  overflow: hidden;

  &.box-keyline {
    border-width: 1px;
    border-style: solid;
  }

  &.hstack {
    flex-direction: row;
    align-items: center;
    justify-content: stretch;
  }

  &.box-citi-ink-blue {
    &:not(.box-keyline) {
      color: white;
      background-color: #0f1632;
    }

    &.box-keyline {
      color: inherit;
      background-color: transparent;
      border-color: #0f1632;
    }
  }
  &.box-citi-blue {
    &:not(.box-keyline) {
      color: white;
      background-color: #255be3;
    }

    &.box-keyline {
      color: inherit;
      background-color: transparent;
      border-color: #255be3;
    }
  }
  &.box-citi-gray-05 {
    &:not(.box-keyline) {
      color: currentColor;
      background-color: #f0f5f7;
    }

    &.box-keyline {
      color: inherit;
      background-color: transparent;
      border-color: #f0f5f7;
    }
  }
  &.box-white {
    &:not(.box-keyline) {
      color: currentColor;
      background-color: white;
    }

    &.box-keyline {
      color: inherit;
      background-color: transparent;
      border-color: white;
    }
  }

  & > .box-inset {
    align-self: stretch;
    margin: calc(-1 * var(--box-padding, 15px));
    padding: var(--box-padding, 15px);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-image: var(--box-inset-background, var(--box-inset-background-2x));
    overflow: hidden;
  }
}

/* Jumbotron */
.jumbotron {
  flex: 0 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: var(--jumbotron-min-height, 20rem);
  background-image: var(--jumbotron-background, var(--jumbotron-background-2x));
  background-position: center;
  background-size: cover;
	background-color: transparent;
	background-repeat: no-repeat;
	text-align: center;

  &.parallax {
      background-attachment: fixed;
      background-position: 0 0 !important;
  }

  & .hero {
    position: relative;
    bottom: 0;
    margin-top: 0;
    margin-bottom: 0;
    padding: 30px;

    & h1 {
      font-size: 2.5em;
    }
  }
}

/* Nav */
.nav,
.navbar-nav {
  --nav-link-padding-x: 0;
  --nav-link-padding-y: 0.5rem;
  --nav-link-font-weight: bold;
  --nav-link-color: #0f1632;
  --nav-link-hover-color: #255be3;
  --nav-link-disabled-color: #bcc5c9;
  display: flex;
  flex-direction: column;
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;

  .navbar-light & .nav-link {
    color: inherit;
  }

  .navbar-light & .nav-link:focus,
  .navbar-light & .nav-link:hover {
    color: inherit;
  }
}

.nav-link {
  display: block;
  padding: var(--nav-link-padding-y, 0.5rem) var(--nav-link-padding-x, 1rem);
  font-size: var(--nav-link-font-size, inherit);
  font-weight: var(--nav-link-font-weight, bold);
  color: var(--nav-link-color, #0f1632);
  text-decoration: none;
  background: none;
  border: 0;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;

  &:hover,
  &:focus {
    color: var(--bs-nav-link-hover-color, #255be3);
  }

  &:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(37, 91, 227, 0.25);
  }

  &.disabled,
  &:disabled {
    color: var(--bs-nav-link-disabled-color, #bcc5c9);
    pointer-events: none;
    cursor: default;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-link {
    transition: none;
  }
}

.nav-underline {
  gap: var(--nav-underline-gap, 1rem);

  & .nav-link {
    padding-right: 0;
    padding-left: 0;
    border-bottom: var(--nav-underline-border-width, 0.125rem) solid transparent;
  }

  & .nav-link:hover,
  & .nav-link:focus {
    border-bottom-color: currentcolor;
  }

  & .nav-link.active,
  & .show > .nav-link {
    font-weight: 700;
    color: var(--nav-underline-link-active-color, #255be3);
    border-bottom-color: currentcolor;
  }
}

/* Buttons */
.btn-ink {
  color: white;
  background-color: #0f1632;
  border-color: #0f1632;

  &:hover {
    color: white;
    background-color: #255be3;
    border-color: #255be3
  }

  &.focus,
  &:focus {
    color: white;
    background-color: #255be3;
    border-color: #255be3;
  }
}

.close,
.close:hover {
  color: currentColor;
}

/* Misc */
.table {
  overflow: hidden; /* support rounded corners */

  &.table-align-top {
    & tr,
    & td {
      vertical-align: top;
    }
  }
}

.vr {
  display: inline-block;
  align-self: stretch;
  width: var(--bs-border-width, 1px);
  min-height: 1em;
  background-color: currentColor;
  opacity: 0.25;
}

.object-fit-contain {
  -o-object-fit: contain !important;
  object-fit: contain !important;
}
.object-fit-cover {
  -o-object-fit: cover !important;
  object-fit: cover !important;
}
.object-fit-fill {
  -o-object-fit: fill !important;
  object-fit: fill !important;
}
.object-fit-scale {
  -o-object-fit: scale-down !important;
  object-fit: scale-down !important;
}
.object-fit-none {
  -o-object-fit: none !important;
  object-fit: none !important;
}

.bg-overlay {
  position: static !important;

  &::before {
      content: '';
      display: block;
      position: absolute;
      top: var(--bg-overlay-position-top, 0);
      bottom: var(--bg-overlay-position-bottom, 0);
      left: var(--bg-overlay-position-left, 0);
      right: var(--bg-overlay-position-right, 0);

      background: var(--bg-overlay-background, rgba(37, 91, 227, 0.5));
      z-index: 0;
  }

  & > * {
      position: relative;
      z-index: 1;
  }
}

/* Form */
.input-group {
  display: flex;

  & > .custom-select,
  & > .form-control {
    border-radius: 10px;
  }
}
.input-group-text {
  padding: 10px 15px;
  height: 42px;
  font-size: 1em;
  color: #0f1632;
  background-color: #eee;
  border: 1px solid #eee;
  border-radius: 10px;
}


@media (min-width: 576px) {
  .hstack-sm {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    align-self: stretch;
  }
  .vstack-sm {
    display: flex !important;
    flex: 1 1 auto;
    flex-direction: column !important;
    align-self: stretch;
  }
}

@media (min-width: 768px) {
  .hstack-md {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    align-self: stretch;
  }
  .vstack-md {
    display: flex !important;
    flex: 1 1 auto;
    flex-direction: column !important;
    align-self: stretch;
  }

  .jumbotron {
    margin-bottom: 60px;

    & .hero {
      margin-bottom: calc(60px * -1);
    }
	}
}

@media (min-width: 992px) {
  .hstack-lg {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    align-self: stretch;
  }
  .vstack-lg {
    display: flex !important;
    flex: 1 1 auto;
    flex-direction: column !important;
    align-self: stretch;
  }
}

@media (min-width: 1200px) {
  .display-1 {
    font-size: 5rem;
  }
  .display-2 {
    font-size: 4.5rem;
  }
  .display-3 {
    font-size: 4rem;
  }
  .display-4 {
    font-size: 3.5rem;
  }
  .display-5 {
    font-size: 3rem;
  }
  .display-6 {
    font-size: 2.5rem;
  }

  .hstack-xl {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    align-self: stretch;
  }
  .vstack-xl {
    display: flex !important;
    flex: 1 1 auto;
    flex-direction: column !important;
    align-self: stretch;
  }
}

@media only screen and (-o-min-device-pixel-ratio: 5/4),
only screen and (-webkit-min-device-pixel-ratio: 1.25),
only screen and (min-device-pixel-ratio: 1.25),
only screen and (min-resolution: 1.25dppx) {
  .jumbotron {
    background-image: var(--jumbotron-background-2x, var(--jumbotron-background));
  }

  .box > .box-inset {
    background-image: var(--box-inset-background-2x, var(--box-inset-background));
  }
}