/* ReadiSorb UI – shared editor-friendly blocks and site components. */

.rs-color-text-band{
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--rs-color-band-bg, #4aa89a);
  color: var(--rs-color-band-color, #fff);
  margin: 0;
  padding: var(--rs-color-band-pad-y, 72px) clamp(20px, 4vw, 48px);
}

.rs-color-text-band__background-svg{
  position: absolute;
  inset: -2%;
  z-index: 0;
  display: block;
  width: 104%;
  max-width: none;
  height: 104%;
  object-fit: cover;
  object-position: center center;
  opacity: var(--rs-color-band-svg-opacity, 0.34);
  pointer-events: none;
  transform-origin: center center;
  animation:
    rs-color-band-svg-drift 32s ease-in-out infinite alternate,
    rs-color-band-svg-pulse 22s ease-in-out infinite;
  will-change: transform, opacity;
}

@keyframes rs-color-band-svg-drift{
  0%{
    transform: translate3d(-1.25%, -0.8%, 0) scale(1.005);
  }

  46%{
    transform: translate3d(1.35%, 0.95%, 0) scale(1.025);
  }

  100%{
    transform: translate3d(-0.55%, 1.25%, 0) scale(1.012);
  }
}

@keyframes rs-color-band-svg-pulse{
  0%,
  100%{
    opacity: var(--rs-color-band-svg-opacity-soft, 0.26);
  }

  42%{
    opacity: var(--rs-color-band-svg-opacity, 0.34);
  }

  72%{
    opacity: var(--rs-color-band-svg-opacity-mid, 0.31);
  }
}

@media (prefers-reduced-motion: reduce){
  .rs-color-text-band__background-svg{
    animation: none;
    opacity: var(--rs-color-band-svg-opacity, 0.34);
    transform: none;
  }
}

.rs-color-text-band--fullbleed{
  width: 100vw;
  max-width: 100vw;
  margin-left: var(--rs-bleed-offset, calc(50% - 50vw));
  margin-right: 0;
}

.rs-color-text-band__inner{
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--rs-color-band-width, 1040px);
  margin-left: auto;
  margin-right: auto;
}

.rs-color-text-band__text{
  color: inherit;
  font-size: var(--rs-color-band-font-size, 28px);
  font-weight: var(--rs-color-band-font-weight, 400);
  line-height: var(--rs-color-band-line-height, 1.45);
  text-align: left;
}

.rs-color-text-band--align-center .rs-color-text-band__text{
  text-align: center;
}

.rs-color-text-band .rs-color-text-band__text *:not(sup):not(sub):not(small){
  color: inherit;
  font-size: inherit !important;
  line-height: inherit;
}

.rs-color-text-band .rs-color-text-band__text :is(sup, sub, small){
  color: inherit;
}

.rs-color-text-band .rs-color-text-band__text :is(.wp-block-heading, h1, h2, h3, h4, h5, h6, p, ul, ol, li){
  font-weight: inherit;
}

.rs-color-text-band .rs-color-text-band__text :is(p, ul, ol){
  margin-top: 0;
  margin-bottom: 0.75em;
}

.rs-color-text-band .rs-color-text-band__text a{
  color: inherit;
}

.rs-color-text-band .rs-color-text-band__text > :last-child,
.rs-color-text-band .rs-color-text-band__text :is(p, ul, ol):last-child{
  margin-bottom: 0;
}

@media (max-width: 782px){
  .rs-color-text-band{
    padding-top: max(32px, calc(var(--rs-color-band-pad-y, 72px) * 0.68));
    padding-bottom: max(32px, calc(var(--rs-color-band-pad-y, 72px) * 0.68));
  }

  .rs-color-text-band__text{
    font-size: max(1rem, calc(var(--rs-color-band-font-size, 28px) * 0.82));
  }
}

/* Full Bleed Image Band block. Matches the product feature band crop controls. */
.rs-image-band{
  position: relative;
  overflow: hidden;
  isolation: isolate;
  margin-top: 28px;
  margin-bottom: 28px;
  min-height: 500px;
}

.entry-content > .rs-image-band:last-child,
.entry-content > .wp-block-acf-image-band:last-child .rs-image-band,
.entry-content > :last-child .rs-image-band:last-child,
.wp-block-post-content > .rs-image-band:last-child,
.wp-block-post-content > .wp-block-acf-image-band:last-child .rs-image-band,
.wp-block-post-content > :last-child .rs-image-band:last-child{
  margin-bottom: 0;
}

.entry-content > .wp-block-acf-image-band:last-child,
.entry-content > :last-child:has(.rs-image-band),
.wp-block-post-content > .wp-block-acf-image-band:last-child,
.wp-block-post-content > :last-child:has(.rs-image-band){
  margin-bottom: 0;
  padding-bottom: 0;
}

body.has-terminal-image-band .entry-content > .wp-block-acf-image-band:last-child,
body.has-terminal-image-band .entry-content > :last-child:has(.rs-image-band),
body.has-terminal-image-band .entry-content .rs-image-band{
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.rs-image-band--fullbleed{
  width: 100vw;
  max-width: 100vw;
  margin-left: var(--rs-bleed-offset, calc(50% - 50vw));
  margin-right: 0;
}

.rs-image-band__img{
  display: block;
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: center 49%;
  pointer-events: none;
}

.rs-image-band__content{
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 0 20px 40px;
  pointer-events: none;
}

.rs-image-band__inner{
  width: 100%;
  max-width: 90%;
}

.rs-image-band--caption-upper-left .rs-image-band__content,
.rs-image-band--caption-upper-center .rs-image-band__content,
.rs-image-band--caption-upper-right .rs-image-band__content{
  align-items: flex-start;
  padding-top: clamp(22px, 3.5vw, 42px);
  padding-bottom: clamp(22px, 3.5vw, 42px);
}

.rs-image-band--caption-lower-left .rs-image-band__content,
.rs-image-band--caption-lower-center .rs-image-band__content,
.rs-image-band--caption-lower-right .rs-image-band__content{
  align-items: flex-end;
}

.rs-image-band--caption-upper-left .rs-image-band__inner,
.rs-image-band--caption-lower-left .rs-image-band__inner{
  text-align: left;
}

.rs-image-band--caption-upper-center .rs-image-band__inner,
.rs-image-band--caption-lower-center .rs-image-band__inner{
  text-align: center;
}

.rs-image-band--caption-upper-right .rs-image-band__inner,
.rs-image-band--caption-lower-right .rs-image-band__inner{
  text-align: right;
}

.rs-image-band .rs-image-band__text{
  display: inline-block;
  margin: 0;
  padding: 10px 18px;
  background: rgba(93, 85, 80, 0.7);
  color: #fff;
  font-size: clamp(1.45rem, 1.72vw, 2rem);
  font-weight: 500;
  line-height: 1.1;
  text-align: inherit;
}

.rs-image-band.rs-image-band--caption-style-plain-dark .rs-image-band__text{
  background: transparent;
  color: var(--rs-text, #221d1a);
}

@media (max-width: 767px){
  .rs-image-band--mobile-focus-left .rs-image-band__img{
    object-position: left 49%;
  }

  .rs-image-band--mobile-focus-right .rs-image-band__img{
    object-position: right 49%;
  }

  .rs-image-band .rs-image-band__text{
    max-width: min(18ch, 100%);
    padding: 9px 14px;
    font-size: clamp(1.24rem, 4.7vw, 1.62rem);
    line-height: 1.12;
  }

}

/* ── Order pathway cards (rs-pathway-card class on Group blocks) ── */
.rs-pathway-card {
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  border-radius: 10px !important;
  padding: 1.5em 1.75em !important;
  background: #fff;
}

.rs-pathway-card h3 {
  color: var(--rs-green, #4aa89a);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0.6em;
}

/* Pathway card layout — equal height, button pinned to bottom */
.wp-block-column:has(.rs-pathway-card) {
  display: flex !important;
  flex-direction: column !important;
}

.rs-pathway-card.wp-block-group {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 !important;
  height: 100% !important;
}

.rs-pathway-card .wp-block-heading {
  margin-top: 0 !important;
  margin-bottom: 0.5em !important;
}

.rs-pathway-card p {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  flex: 1 !important;
}

.rs-pathway-card .wp-block-buttons {
  margin-top: 1.25em !important;
  justify-content: center !important;
}

/* Force teal pill buttons inside pathway cards, remove orange outline */
.rs-pathway-card .wp-block-button__link,
.rs-pathway-card .wp-element-button {
  background-color: var(--rs-green, #4aa89a) !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  border-radius: 999px !important;
  color: #fff !important;
  font-size: 0.9rem !important;
  padding: 0.5em 1.3em !important;
}

/* Remove extra top margin on the columns block containing pathway cards */
.wp-block-columns:has(.rs-pathway-card) {
  margin-top: 0 !important;
}

/* ── Order pathways shortcode ────────────────────────── */
.rs-order-pathways {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5em;
  margin: 1.5em 0;
}

@media (max-width: 700px) {
  .rs-order-pathways {
    grid-template-columns: 1fr;
  }
}

.rs-order-pathways__card {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  padding: 1.5em 1.75em;
  background: #fff;
}

.rs-order-pathways__heading {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--rs-green, #4aa89a);
  margin: 0 0 0.6em;
  line-height: 1.2;
}

.rs-order-pathways__body {
  flex: 1;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #5a5a5a;
  margin: 0 0 1.25em;
}

.rs-order-pathways__btn {
  display: inline-block;
  align-self: flex-start;
  padding: 0.55em 1.4em;
  background: var(--rs-green, #4aa89a);
  color: #fff !important;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 9999px;
  box-shadow: 0 2px 0 rgba(0,0,0,.18), 0 8px 16px rgba(0,0,0,.10);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}

.rs-order-pathways__btn:hover,
.rs-order-pathways__btn:focus {
  filter: brightness(0.92);
  transform: translateY(1px);
  box-shadow: 0 1px 0 rgba(0,0,0,.18), 0 6px 12px rgba(0,0,0,.10);
}

.rs-order-pathways__btn:active {
  transform: translateY(2px);
  box-shadow: 0 3px 8px rgba(0,0,0,.10);
}

/* ── Quick links shortcode ───────────────────────────── */
.rs-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 0;
  margin: 0 auto;
}

.rs-quick-links__btn {
  display: inline-block;
  padding: 0.5em 1.4em;
  background: var(--rs-green, #4aa89a);
  border: 2px solid var(--rs-green, #4aa89a);
  color: #fff !important;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 9999px;
  white-space: nowrap;
  box-shadow: 0 2px 0 rgba(0,0,0,.18), 0 8px 16px rgba(0,0,0,.10);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}

.rs-quick-links__btn:hover,
.rs-quick-links__btn:focus {
  filter: brightness(0.92);
  transform: translateY(1px);
  box-shadow: 0 1px 0 rgba(0,0,0,.18), 0 6px 12px rgba(0,0,0,.10);
}

.rs-quick-links__btn:active {
  transform: translateY(2px);
  box-shadow: 0 0 0 rgba(0,0,0,0), 0 3px 8px rgba(0,0,0,.10);
}

@media (max-width: 600px) {
  .rs-quick-links {
    flex-direction: column;
    align-items: center;
  }
}
