/* Reusable links to Nexal tools for pages and article bodies. */
.nx-calculator-promo {
  --nx-promo-ink: #f7faf8;
  --nx-promo-muted: #d2e2d9;
  --nx-promo-accent: #a7e3cd;
  position: relative;
  display: block;
  container-type: inline-size;
  isolation: isolate;
  overflow: hidden;
  width: min(100% - 2 * var(--page-pad, 24px), 1160px);
  max-width: 100%;
  margin: clamp(32px, 5vw, 64px) auto;
  padding: clamp(26px, 4vw, 52px);
  border: 1px solid #315343;
  border-radius: 20px;
  color: var(--nx-promo-ink);
  background: #14231e;
  box-shadow: 0 20px 55px rgba(20, 35, 30, .11);
  font-family: "Manrope", Arial, sans-serif;
  text-align: left;
}
.nx-calculator-promo * { box-sizing: border-box; }
.nx-calculator-promo--light {
  --nx-promo-ink: #14231e;
  --nx-promo-muted: #52665b;
  --nx-promo-accent: #147455;
  border-color: #cadbd2;
  background: #edf6f1;
}
.nx-calculator-promo__copy { position: relative; z-index: 2; max-width: min(68%, 690px); }
.nx-calculator-promo .nx-calculator-promo__eyebrow {
  margin: 0 0 16px;
  color: var(--nx-promo-accent);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.nx-calculator-promo .nx-calculator-promo__eyebrow::before {
  display: inline-block;
  content: "";
  width: 24px;
  height: 1px;
  margin: 0 10px 3px 0;
  background: currentColor;
}
.nx-calculator-promo h2,
.blog-article__content .nx-calculator-promo h2 {
  max-width: 20ch;
  margin: 0 0 17px;
  color: var(--nx-promo-ink);
  font-family: var(--heading-font, "Plus Jakarta Sans", Arial, sans-serif);
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 600;
  letter-spacing: -.04em;
  line-height: 1.2;
}
.nx-calculator-promo .nx-calculator-promo__description,
.blog-article__content .nx-calculator-promo .nx-calculator-promo__description {
  max-width: 62ch;
  margin: 0 0 24px;
  color: var(--nx-promo-muted);
  font-size: clamp(14px, 1.3vw, 16px);
  line-height: 1.75;
}
.nx-calculator-promo .nx-calculator-promo__link,
.blog-article__content .nx-calculator-promo .nx-calculator-promo__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 46px;
  padding: 12px 20px;
  border-radius: 999px;
  color: #14231e;
  background: #b5e9d7;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  transition: background-color .2s ease, transform .2s ease;
}
.nx-calculator-promo--light .nx-calculator-promo__link,
.blog-article__content .nx-calculator-promo--light .nx-calculator-promo__link { color: #fff; background: #147455; }
.nx-calculator-promo .nx-calculator-promo__link:hover { background: #d6f4e9; transform: translateY(-2px); }
.nx-calculator-promo--light .nx-calculator-promo__link:hover { background: #0d5f43; }
.nx-calculator-promo .nx-calculator-promo__link:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.nx-calculator-promo--light .nx-calculator-promo__link:focus-visible { outline-color: #147455; }
.nx-calculator-promo__visual { position: absolute; inset: 0 0 0 auto; width: 36%; z-index: 1; pointer-events: none; }
.nx-calculator-promo__visual::before {
  content: "";
  position: absolute;
  width: 320px;
  aspect-ratio: 1;
  top: 50%;
  right: -38px;
  transform: translateY(-50%);
  border: 1px solid rgba(167, 227, 205, .34);
  border-radius: 50%;
}
.nx-calculator-promo__ring {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  width: 230px;
  aspect-ratio: 1;
  top: 50%;
  right: 6px;
  transform: translateY(-50%) rotate(-12deg);
  border: 34px solid rgba(43, 159, 118, .42);
  border-radius: 50%;
  color: #b5e9d7;
  font: 700 26px/1 var(--heading-font, sans-serif);
  letter-spacing: -.05em;
}
.nx-calculator-promo--light .nx-calculator-promo__ring { color: #0d5f43; border-color: rgba(29, 158, 117, .21); }
.nx-calculator-promo--light .nx-calculator-promo__visual::before { border-color: rgba(20, 116, 85, .29); }
.nx-calculator-promo__ring span:nth-child(2) { color: #fff; font-size: 34px; }
.nx-calculator-promo--light .nx-calculator-promo__ring span:nth-child(2) { color: #147455; }
.nx-calculator-promo--tool .nx-calculator-promo__ring { gap: 6px; }
.nx-calculator-promo--tool .nx-calculator-promo__ring span { font-size: clamp(18px, 2vw, 25px); white-space: nowrap; }
.nx-calculator-promo--tool .nx-calculator-promo__ring span:nth-child(2) { font-size: clamp(22px, 2.5vw, 31px); }
.blog-article__content > .nx-calculator-promo {
  width: min(92vw, 960px);
  max-width: none;
  margin: 42px 50%;
  transform: translateX(-50%);
}
/* A page pattern already gives the sections around this block generous padding.
   Tighten only the seams where the promo is placed between these two blocks;
   article spacing above stays unchanged. */
.nexal-main > .media-text:has(+ .nx-calculator-promo) {
  padding-bottom: clamp(32px, 4vw, 56px);
}
.nexal-main > .media-text + .nx-calculator-promo {
  margin-block: 0;
}
/* Tool promos have no per-page spacing control. Keep a consistent gap after
   the preceding section, including the media/text seam above. The original
   stretch promo retains its existing spacing behaviour. */
.nexal-main > .nx-calculator-promo--tool {
  margin-block: clamp(40px, 5vw, 72px);
}
.nexal-main > .media-text + .nx-calculator-promo--tool {
  margin-top: clamp(40px, 5vw, 72px);
  margin-bottom: 0;
}
.nexal-main > .nx-calculator-promo + .process {
  padding-top: clamp(48px, 5vw, 72px);
}
@container (max-width: 700px) {
  .nx-calculator-promo__copy { max-width: 100%; }
  .nx-calculator-promo__visual { opacity: .22; }
  .nx-calculator-promo__ring { right: -145px; }
}
@media (max-width: 600px) {
  .nx-calculator-promo, .blog-article__content > .nx-calculator-promo {
    width: calc(100vw - 32px);
    max-width: none;
    padding: 24px 20px;
    border-radius: 16px;
  }
  .nx-calculator-promo__copy { max-width: 100%; }
  .nx-calculator-promo__visual { opacity: .16; }
}
@media (prefers-reduced-motion: reduce) {
  .nx-calculator-promo .nx-calculator-promo__link { transition: none; }
  .nx-calculator-promo .nx-calculator-promo__link:hover { transform: none; }
}
