/* KESHO Motion / Tree Wind v1.1.0
 * SVG sway approach: rooted SVG groups with staggered oscillation.
 * Reference: https://codepen.io/zgm/pen/XbQOpW (Tree Sway SVG Animation).
 * Original implementation for KESHO; no third-party CSS copied.
 * Every selector remains scoped to this shortcode's banner.
 */
.kesho-tree-banner {
  box-sizing: border-box;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: row-reverse; /* RTL: artwork right, copy left */
  align-items: center;
  min-height: 252px;
  width: 100%;
  max-width: 1250px;
  margin-inline: auto;
  overflow: hidden;
  border-radius: 16px;
  background: #F2E3BD;
  color: #092C34;
  font-family: inherit;
}
.kesho-tree-banner, .kesho-tree-banner * { box-sizing: border-box; }
.kesho-tree-banner__copy {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-width: 0;
  padding: 30px 5%;
  padding-left: 8px;
  padding-right: calc(5% + clamp(0px, 7vw, 72px));
  text-align: right;
}
.kesho-tree-banner__copy p {
  margin: 0;
  font-size: clamp(19px, 2.35vw, 28px);
  font-weight: 700;
  line-height: 1.75;
  letter-spacing: 0;
}
.kesho-tree-banner__copy span { display: block; }
.kesho-tree-banner__art {
  position: relative;
  align-self: stretch;
  flex: 0 0 26%;
  min-width: 230px;
  overflow: hidden;
  pointer-events: none;
}
.kesho-tree-banner .kesho-tree {
  position: absolute;
  height: 250px;
  width: 215px;
  bottom: 0;
  left: calc(50% - 30px);
  transform: translateX(-50%);
  overflow: visible;
}
/* Each curved limb pivots at its actual attachment, never around SVG bottom. */
.kesho-tree-banner .kesho-tree__limb {
  transform-box: view-box;
  transform-origin: var(--anchor-x) var(--anchor-y);
  animation-duration: var(--breeze-duration);
  animation-delay: var(--breeze-delay);
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
  will-change: transform;
}
.kesho-tree-banner .kesho-tree__limb--a { animation-name: kesho-motion-wind-a; }
.kesho-tree-banner .kesho-tree__limb--b { animation-name: kesho-motion-wind-b; }
@keyframes kesho-motion-wind-a {
  0%,100% {transform: rotate(calc(var(--tilt) * -.30));}
  20% {transform: rotate(calc(var(--tilt) * .42));}
  38% {transform: rotate(calc(var(--tilt) * .78));}
  57% {transform: rotate(calc(var(--tilt) * -.55));}
  76% {transform: rotate(calc(var(--tilt) * -.85));}
  90% {transform: rotate(calc(var(--tilt) * .11));}
}
@keyframes kesho-motion-wind-b {
  0%,100% {transform: rotate(calc(var(--tilt) * -.10));}
  17% {transform: rotate(calc(var(--tilt) * -.70));}
  42% {transform: rotate(calc(var(--tilt) * .63));}
  58% {transform: rotate(calc(var(--tilt) * .26));}
  74% {transform: rotate(calc(var(--tilt) * -.86));}
  91% {transform: rotate(calc(var(--tilt) * .35));}
}
@media (max-width: 767px) {
  .kesho-tree-banner { min-height: 240px; }
  .kesho-tree-banner__copy { padding: 22px 5%; padding-left: 0; }
  .kesho-tree-banner__copy p { font-size: clamp(15px, 3.5vw, 21px); line-height: 1.85; }
  .kesho-tree-banner__art { flex-basis: 31%; min-width: 110px; }
  .kesho-tree-banner .kesho-tree { left: 42%; transform: translateX(-50%) scale(.79); transform-origin: center bottom; }
}
@media (max-width: 599px) {
  .kesho-tree-banner { flex-direction: column; align-items: stretch; min-height: 0; }
  .kesho-tree-banner__copy {
    flex: 0 0 auto;
    width: 100%;
    padding: 22px 22px 0;
    text-align: right;
  }
  .kesho-tree-banner__copy p { font-size: clamp(16px, 4.05vw, 19px); line-height: 1.85; }
  .kesho-tree-banner__art { align-self: stretch; flex: 0 0 174px; width: 100%; min-width: 0; height: 174px; }
  .kesho-tree-banner .kesho-tree {
    left: auto;
    right: 12px;
    bottom: 0;
    transform: scale(.70);
    transform-origin: right bottom;
  }
}
@media (prefers-reduced-motion: reduce) {
  .kesho-tree-banner .kesho-tree__limb { animation: none !important; will-change: auto; }
}


/* KESHO TREE LAYOUT REFINEMENT */
section.kesho-tree-banner {
    width: min(100%, 1250px) !important;
    max-width: 1250px !important;
    margin-inline: auto !important;
}

section.kesho-tree-banner .kesho-tree-banner__copy {
    direction: rtl;
    text-align: left !important;
}

section.kesho-tree-banner .kesho-tree-banner__copy p {
    text-align: left !important;
}
