.jkptg-border-title {
  position: relative;
  left: 50%;
  width: 100vw;
  min-height: 193px;
  margin: 0 0 68px;
  overflow: visible;
  color: var(--jkptg-text-inverse);
  background: var(--jkptg-surface-brand);
  transform: translateX(-50%);
}

/* Override the Content region's automatic child margins. The transform keeps
 * the full-width banner centered on the viewport from any page container. */
main .region-content > .jkptg-border-title {
  margin: 0 0 68px;
}

/* Extend the left SVG's two teal edge colors without stretching its title shape. */
.jkptg-border-title::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: max(0px, calc((100% - 1440px) / 2));
  background: linear-gradient(
    to bottom,
    #479c98 0 10%,
    #4ba09b 10% 81%,
    #44928e 82%,
    #479c98 90% 98%,
    #345654 99% 100%
  );
  content: "";
}

.jkptg-border-title__vector {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: fill;
  object-position: center;
  pointer-events: none;
}

.jkptg-border-title__vector--overlay {
  /* Keep the SVG composition centered with the 1200px title container. */
  right: auto;
  left: max(0px, calc((100% - 1440px) / 2));
  width: min(43.75%, 630px);
  object-position: left center;
}

.jkptg-border-title__vector--background {
  right: auto;
  left: max(0px, calc((100% - 1440px) / 2));
  width: calc(100% - max(0px, calc((100% - 1440px) / 2)));
}

.jkptg-border-title__inner {
  position: relative;
  display: flex;
  width: min(calc(100% - (2 * var(--jkptg-layout-page-gutter))), var(--jkptg-layout-container-max-width));
  min-height: 193px;
  padding-block: 28px;
  align-items: center;
  box-sizing: border-box;
  margin-inline: auto;
}

.jkptg-border-title__heading {
  max-width: 100%;
  margin: 0;
  color: var(--jkptg-text-inverse);
  font: 700 clamp(30px, 3vw, 40px) / 44px var(--jkptg-font-family-title);
  letter-spacing: -0.36px;
  overflow-wrap: anywhere;
  text-wrap: balance;
  text-transform: uppercase;
}

.jkptg-border-title__breadcrumb {
  position: absolute;
  z-index: 2;
  bottom: -22px;
  left: 0;
  max-width: 100%;
  padding: 10px 15px;
  overflow-x: auto;
  color: var(--jkptg-text-tertiary);
  background: var(--jkptg-surface-primary);
  border-radius: var(--jkptg-radius-full);
  box-shadow: 0 4px 2px var(--jkptg-shadow-100);
  scrollbar-width: none;
}

.jkptg-border-title__breadcrumb::-webkit-scrollbar {
  display: none;
}

.jkptg-border-title__breadcrumb ol {
  display: flex;
  padding: 0;
  margin: 0;
  align-items: center;
  justify-content: center;
  gap: 5px;
  list-style: none;
}

.jkptg-border-title__breadcrumb li {
  display: flex;
  flex: 0 0 auto;
  margin: 0;
  align-items: center;
  gap: 5px;
  font: 400 14px / 16.8px var(--jkptg-font-family-title);
  letter-spacing: -0.36px;
  white-space: nowrap;
}

.jkptg-border-title__breadcrumb a {
  color: var(--jkptg-text-tertiary);
  text-decoration: none;
}

.jkptg-border-title__breadcrumb a:hover,
.jkptg-border-title__breadcrumb a:focus-visible {
  color: var(--jkptg-text-action-press);
  text-decoration: underline;
}

.jkptg-border-title__breadcrumb [aria-current="page"] {
  color: var(--jkptg-text-secondary);
  font-weight: 700;
}

.jkptg-border-title__breadcrumb img {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  padding: 3.5px 5.625px;
  box-sizing: border-box;
}

@media (max-width: 767.98px) {
  /* Use the available page width, not 100vw (which includes the desktop
   * browser's scrollbar during mobile testing), to keep both edges aligned. */
  body:not(.path-frontpage) .jkptg-page-container .jkptg-border-title {
    width: calc(100% + (2 * var(--jkptg-layout-page-gutter)));
  }

  .jkptg-border-title {
    min-height: 160px;
  }

  .jkptg-border-title__inner {
    min-height: 160px;
    padding-block: 28px 44px;
  }

  main .region-content > .jkptg-border-title {
    margin-bottom: 56px;
  }

  .jkptg-border-title__heading {
    line-height: 1.2;
  }

  .jkptg-border-title__breadcrumb {
    right: 0;
    justify-content: flex-start;
  }

  .jkptg-border-title__breadcrumb ol {
    width: max-content;
    min-width: 100%;
    justify-content: flex-start;
  }
}
