/**
 * New product / promotion template.
 *
 * Keep every rule below the template root so the existing page and service
 * templates retain their current appearance.
 */
.isjrenew-promo-page {
  --promo-accent: #11a0a8;
  --promo-accent-soft: #e7f7f8;
  --promo-on-accent: #1a1a1a;
  --promo-focus: #0e858c;
  --promo-content-width: 1060px;
  --promo-wide-width: 1060px;
  --promo-side-padding: clamp(20px, 5vw, 48px);
  --promo-hero-share-width: 288px;
  --promo-hero-share-gap: 56px;
  background: #ffffff;
  color: #252525;
  overflow: clip;
  position: relative;
}

.isjrenew-promo-page *,
.isjrenew-promo-page *::before,
.isjrenew-promo-page *::after {
  box-sizing: border-box;
}

.isjrenew-promo-page .promo-breadcrumb {
  width: min(100%, calc(var(--promo-wide-width) + (var(--promo-side-padding) * 2)));
  margin: 0 auto;
  padding: 14px var(--promo-side-padding);
  color: #56636a;
  font-size: 12px;
  line-height: 1.6;
}

.isjrenew-promo-page.has-promo-hero-image .promo-breadcrumb {
  color: #ffffff;
  left: 50%;
  position: absolute;
  text-shadow: 0 1px 4px rgb(0 0 0 / 55%);
  top: 0;
  transform: translateX(-50%);
  z-index: 3;
}

.isjrenew-promo-page .promo-breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 8px;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.isjrenew-promo-page .promo-breadcrumb__item {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.isjrenew-promo-page .promo-breadcrumb__item:not(:last-child)::after {
  color: #9aa4a8;
  content: "/";
}

.isjrenew-promo-page .promo-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.isjrenew-promo-page .promo-breadcrumb a:hover,
.isjrenew-promo-page .promo-breadcrumb a:focus-visible {
  color: var(--promo-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.isjrenew-promo-page .promo-hero {
  margin: 0;
}

.isjrenew-promo-page .promo-hero__media {
  position: relative;
  width: 100%;
  margin: 0;
  overflow: hidden;
  background: #eaf4f8;
}

.isjrenew-promo-page .promo-hero__media picture {
  display: block;
}

.isjrenew-promo-page .promo-hero__media img {
  display: block;
  width: 100% !important;
  max-width: none !important;
  height: clamp(250px, 29.28vw, 400px) !important;
  margin: 0;
  object-fit: cover;
  object-position: center;
}

.isjrenew-promo-page .promo-hero__body {
  width: 100%;
  min-height: 328px;
  padding: clamp(30px, 4vw, 48px) var(--promo-side-padding);
  color: #fff;
  background: var(--promo-accent);
}

.isjrenew-promo-page .promo-hero__body-inner {
  width: min(100%, var(--promo-content-width));
  margin: 0 auto;
}

.isjrenew-promo-page .promo-hero__categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.isjrenew-promo-page .promo-hero__categories > * {
  margin: 0;
  padding: 3px 10px;
  color: #2a6538;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  background: #d9efb5;
  border-radius: 2px;
}

.isjrenew-promo-page .promo-hero__kicker {
  margin: 0 0 8px;
  color: inherit;
  font-size: clamp(16px, 1.7vw, 22px);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.6;
}

.isjrenew-promo-page .promo-hero__title {
  max-width: none;
  margin: 0;
  padding: 0;
  color: inherit;
  font-size: clamp(28px, 3.35vw, 40px);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.isjrenew-promo-page .promo-hero__title::before,
.isjrenew-promo-page .promo-hero__title::after {
  display: none;
  content: none;
}

.isjrenew-promo-page .promo-hero__summary {
  max-width: 780px;
  margin: 18px 0 0;
  color: inherit;
  font-size: clamp(16px, 1.55vw, 20px);
  line-height: 1.65;
}

.isjrenew-promo-page .promo-hero__summary > :first-child {
  margin-top: 0;
}

.isjrenew-promo-page .promo-hero__summary > :last-child {
  margin-bottom: 0;
}

.isjrenew-promo-page .promo-hero--without-image .promo-hero__body {
  padding-top: clamp(48px, 8vw, 100px);
  padding-bottom: clamp(48px, 8vw, 100px);
}

.isjrenew-promo-page .promo-content {
  width: 100%;
  min-height: 1px;
  margin: 0;
  padding: 0;
}

.isjrenew-promo-page .promo-content:empty {
  min-height: 120px;
}

.isjrenew-promo-page .promo-content > .wp-block-isjrenew-promo-share:first-child {
  margin: -86px auto 28px;
  max-width: var(--promo-content-width);
  padding: 0;
  position: relative;
  width: calc(100% - (var(--promo-side-padding) * 2));
  z-index: 2;
}

/* The first share block is pulled over the bottom of the hero on desktop.
 * Reserve its action width plus the requested breathing room in the summary
 * so long copy cannot run underneath the social/print controls. */
@media (min-width: 900px) {
  .isjrenew-promo-page:has(
    > .promo-content > .wp-block-isjrenew-promo-share:first-child
  ) .promo-hero__summary {
    max-width: min(
      780px,
      calc(100% - var(--promo-hero-share-width) - var(--promo-hero-share-gap))
    );
  }
}

.isjrenew-promo-page .promo-content > .wp-block-isjrenew-promo-navigation {
  margin-left: auto;
  margin-right: auto;
  max-width: var(--promo-content-width);
  width: calc(100% - (var(--promo-side-padding) * 2));
}

/* Dedicated blocks use the same content measure as the editor. Sections and
 * step collections retain their intentional full-bleed treatment. */
.isjrenew-promo-page .promo-content > :is(
  .wp-block-isjrenew-promo-heading,
  .wp-block-isjrenew-promo-columns,
  .wp-block-isjrenew-promo-table,
  .wp-block-isjrenew-promo-cta,
  .wp-block-isjrenew-promo-share
) {
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
  max-width: var(--promo-content-width);
  width: calc(100% - (var(--promo-side-padding) * 2));
}

.isjrenew-promo-page .promo-content > .wp-block-image:not(.alignleft):not(.alignright):not(.aligncenter):not(.alignwide):not(.alignfull),
.isjrenew-promo-page .promo-content > .wp-block-video:not(.alignleft):not(.alignright):not(.aligncenter):not(.alignwide):not(.alignfull),
.isjrenew-promo-page .promo-content > .wp-block-embed:not(.alignleft):not(.alignright):not(.aligncenter):not(.alignwide):not(.alignfull),
.isjrenew-promo-page .promo-content > p,
.isjrenew-promo-page .promo-content > h2,
.isjrenew-promo-page .promo-content > h3,
.isjrenew-promo-page .promo-content > ul,
.isjrenew-promo-page .promo-content > ol {
  width: min(calc(100% - (var(--promo-side-padding) * 2)), var(--promo-content-width));
  margin-right: auto;
  margin-left: auto;
}

.isjrenew-promo-page .promo-content > .alignwide {
  margin-left: auto;
  margin-right: auto;
  max-width: var(--promo-wide-width);
  width: min(calc(100% - (var(--promo-side-padding) * 2)), var(--promo-wide-width));
}

.isjrenew-promo-page .promo-content > .alignfull {
  margin-left: 0;
  margin-right: 0;
  max-width: none;
  width: 100%;
}

.isjrenew-promo-page :where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid var(--promo-focus);
  outline-offset: 3px;
}

@media (max-width: 899px) {
  .isjrenew-promo-page .promo-content > .wp-block-isjrenew-promo-share:first-child {
    margin-top: 20px;
  }
}

@media (max-width: 767px) {
  .isjrenew-promo-page {
    --promo-side-padding: 20px;
  }

  .isjrenew-promo-page .promo-breadcrumb {
    padding-top: 10px;
    padding-bottom: 10px;
    font-size: 12px;
  }

  .isjrenew-promo-page.has-promo-hero-image .promo-breadcrumb {
    color: #56636a;
    position: static;
    text-shadow: none;
    transform: none;
  }

  .isjrenew-promo-page .promo-hero__media img {
    height: clamp(190px, 50vw, 280px) !important;
  }

  .isjrenew-promo-page .promo-hero__body {
    min-height: 0;
    padding-top: 28px;
    padding-bottom: 32px;
  }

  .isjrenew-promo-page .promo-hero__kicker {
    font-size: 15px;
  }

  .isjrenew-promo-page .promo-hero__title {
    font-size: 28px;
  }

  .isjrenew-promo-page .promo-hero__summary {
    font-size: 15px;
    margin-top: 14px;
    line-height: 1.8;
  }

  .isjrenew-promo-page .promo-content > .wp-block-isjrenew-promo-share:first-child {
    margin-top: 18px;
  }
}

@media print {
  .isjrenew-promo-page {
    overflow: visible;
  }

  .isjrenew-promo-page .promo-breadcrumb {
    display: none;
  }

  .isjrenew-promo-page .promo-hero__media img {
    height: auto !important;
    max-height: 280px;
    object-fit: contain;
  }

  .isjrenew-promo-page:has(
    > .promo-content > .wp-block-isjrenew-promo-share:first-child
  ) .promo-hero__summary {
    max-width: 780px;
  }
}
