/* Keep the promo immediately below the sticky site header on every viewport. */
html:has(.atomi-promo-blue) {
  --atomi-promo-h: var(--atomi-promo-bh, 96px);
}
.wp-site-blocks > .atomi-promo:has(.atomi-promo-blue) {
  position: sticky;
  top: calc(var(--atomi-admin) + var(--atomi-header-h));
  z-index: 90;
}
.wp-site-blocks > header:has(.atomi-pb) ~ .atomi-promo:has(.atomi-promo-blue) {
  top: calc(var(--atomi-admin) + var(--atomi-header-h) + var(--atomi-bar-h));
}

.atomi-promo-blue {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(105deg, #071425 0%, #102b50 57%, #0e4678 100%);
  color: #f8fbff;
  font-family: inherit;
}
.atomi-promo-blue::before,
.atomi-promo-blue::after {
  position: absolute;
  z-index: -1;
  inset-block: 0;
  width: clamp(56px, 12vw, 220px);
  background: repeating-linear-gradient(
    135deg, transparent 0 12px, rgb(154 206 255 / 22%) 12px 13px, transparent 13px 24px
  );
  content: "";
  pointer-events: none;
}
.atomi-promo-blue::before {
  inset-inline-start: 0;
  mask-image: linear-gradient(90deg, #000, transparent);
}
.atomi-promo-blue::after {
  inset-inline-end: 0;
  mask-image: linear-gradient(270deg, #000, transparent);
}
.atomi-promo-blue .atomi-promo-blue__inner {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1472px, calc(100% - 48px));
  min-height: 96px;
  margin-inline: auto;
  padding-block: 13px;
}
.atomi-promo-blue .atomi-promo-blue__kicker {
  margin: 0 0 4px;
  color: #e8f3ff;
  font-size: 15px;
  font-weight: 750;
  letter-spacing: .045em;
  line-height: 1.25;
}
.atomi-promo-blue .atomi-promo-blue__spark {
  margin-inline-end: 5px;
  color: #ffe3a3;
}
.atomi-promo-blue .atomi-promo-blue__message {
  margin: 0;
  color: #fff;
  font-size: clamp(19px, 2.25vw, 24px);
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -.02em;
}
.atomi-promo-blue .atomi-promo-blue__message strong {
  color: #ffe3a3;
  font-size: 1.24em;
  font-weight: 850;
  white-space: nowrap;
}
.atomi-promo-blue a.atomi-promo-blue__link {
  box-sizing: border-box;
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 144px;
  min-height: 46px;
  padding: 10px 19px;
  border: 1px solid #ffe9b7;
  border-radius: 10px;
  background: #ffe3a3;
  color: #10243a;
  box-shadow: 0 2px 10px rgb(3 12 27 / 20%);
  font-size: 16px;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}
.atomi-promo-blue a.atomi-promo-blue__link:hover {
  background: #fff0c9;
  color: #10243a;
}
.atomi-promo-blue a.atomi-promo-blue__link:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}
@media (max-width: 700px) {
  html:has(.atomi-promo-blue) {
    --atomi-promo-h: var(--atomi-promo-bh, 88px);
  }
  .atomi-promo-blue {
    background:
      radial-gradient(ellipse at 72% 0%, rgb(75 146 233 / 26%), transparent 72%),
      linear-gradient(105deg, #071425 0%, #102b50 57%, #0e4678 100%);
  }
  .atomi-promo-blue .atomi-promo-blue__inner {
    gap: 16px;
    width: calc(100% - 36px);
    min-height: 88px;
    padding-block: 14px;
  }
  .atomi-promo-blue .atomi-promo-blue__kicker {
    margin-bottom: 5px;
    font-size: 13px;
  }
  .atomi-promo-blue .atomi-promo-blue__message {
    font-size: clamp(18px, 3.4vw, 21px);
    line-height: 1.23;
    text-wrap: pretty;
  }
  .atomi-promo-blue a.atomi-promo-blue__link {
    min-width: 0;
    min-height: 44px;
    padding: 8px 15px;
    border-radius: 999px;
    font-size: 14px;
  }
}

@media (max-width: 470px) {
  html:has(.atomi-promo-blue) {
    --atomi-promo-h: var(--atomi-promo-bh, 160px);
  }
  .atomi-promo-blue .atomi-promo-blue__inner {
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    min-height: 0;
    padding-block: 15px;
    text-align: center;
  }
  .atomi-promo-blue .atomi-promo-blue__message {
    font-size: clamp(17px, 4.8vw, 21px);
    text-wrap: balance;
  }
}
