:root {
  --color-50: #f5f2f7;
  --color-100: #e0d7e7;
  --color-300: #cbbcd8;
  --color-400: #ab93c0;
  --color-500: #9678b0;
  --color-700: #78608d;
  --color-800: #4b375d;
}

.page-node-type-new-strategy #header {
  position: static;
}

.page-node-type-new-strategy .node--type-new-strategy {
  margin: 3rem auto;
}

.node--type-new-strategy {
  background-color: var(--color-500);
  margin: auto;
  position: relative;
  overflow: hidden;
  --circle-width: 105px;
}

.node--type-new-strategy .clickable {
  cursor: pointer;
  transition: transform 0.25s linear;
  /* will-change: transform; */
}

.node--type-new-strategy .clickable:hover {
  transform: scale(1.05);
}

.node--type-new-strategy .clickable:focus:focus-visible {
  transform: scale(1.05);
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--color-500);
  outline: none;
} 

.node--type-new-strategy .bold {
  font-weight: 600;
}

.strategy-title {
  color: #fff;
  margin-top: 1rem;
  text-align: center;
}

.strategy-element {
  display: grid;
  margin: auto auto 2rem auto;
  grid-template-columns: 1fr 1fr 1fr;
  justify-items: center;
  max-width: 22rem;
}

.strategy-element-title {
  color: #fff;
  grid-column-start: span 3;
  text-align: center;
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.strategy-element svg {
  width: 100%;
  height: auto;
}

.strategy-center {
  color: #fff;
  line-height: 1.3;
  font-size: calc(1.25 * var(--font-body-large));
  align-items: center;
  justify-content: center;
  font-family: var(--bold-font);
  text-align: center;
  display: flex;
  border-radius: 50%;
  background-color: var(--color-700);
  aspect-ratio: 1 / 1;
  padding: 1rem;
  box-sizing: border-box;
  width: 150px;
  margin: auto auto 2rem auto;
}

#main-content .node--type-new-strategy .outter-element {
  color: #fff;
  padding: 1rem;
  box-sizing: border-box;
  border-radius: var(--corner-extra-small, 0.25rem);
  max-width: 20rem;
  text-align: center;
  margin: auto auto 2rem auto;
}

.strategy-circle {
  background-color: #fff;
  border-radius: 50%;
  width: var(--circle-width);
  text-align: center;
  font-size: var(--font-body-medium);
  line-height: 1.3;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 5px;
  box-sizing: border-box;
  aspect-ratio: 1 / 1;
}

.strategy-center-line {
  display: none;
}

.ui-widget.ui-widget-content.new-strategy {
  border: 1px solid var(--color-functional-300);
}

.ui-dialog.new-strategy {
  background-color: #fff;
  overflow-x: hidden;
}

.ui-dialog.new-strategy .ui-widget-header .ui-dialog-title {
  padding: 2px 0 4px 0;
  margin: 5px 0;
  font-family: var(--title-font);
  font-size: var(--font-body-large);
  line-height: 1.3;
  color: var(--color-700);
}

.ui-dialog.new-strategy .ui-widget-header {
  font-family: var(--bold-font);
  background-color: transparent;
  border: 0;
  font-weight: 400;
}

.ui-dialog.new-strategy .ns-line {
  background-color: var(--color-700);
  display: block;
  height: 2px;
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0;
}

.ui-widget-content.new-strategy a {
  color: var(--color-700);
  text-decoration: none;
}

.ui-widget-content.new-strategy a:hover {
  text-decoration: underline;
}

.ui-widget-content.new-strategy a:focus {
  box-shadow: none;
}

.new-strategy .ui-button .ui-icon,
.new-strategy .ui-state-hover .ui-icon,
.new-strategy .ui-state-focus .ui-icon,
.new-strategy .ui-button:hover .ui-icon,
.new-strategy .ui-button:focus .ui-icon {
  background-image: none;
}

body .ui-dialog.new-strategy .ui-dialog-titlebar .ui-button .ui-icon-closethick {
  display: none;
}

.ui-dialog.new-strategy button.ui-dialog-titlebar-close {
  text-indent: 0;
  width: auto;
  height: auto;
  top: 1.25rem;
  right: 0.5rem;
  color: var(--color-functional-black);
}

.new-strategy .ui-button-icon-only::after {
  content: "cancel";
  font-family: "Material Symbols Outlined";
  display: block;
  font-size: calc(1.5 * var(--font-body-large));
}

.new-strategy .ui-button-icon-only:hover::after {
  color: var(--color-700);
}

.outter-element .popup-title,
.outter-element .field__item,
.strategy-title .field--name-title,
.strategy-element-title {
  text-shadow: 0 0 2px var(--color-800);
}

@media (width > 1119px) {
  .node--type-new-strategy {
    --vertical-offset: 48px;
    --elements-height: 220px;
    --elements-width: 446px;
    --bg-size: 638px;
    --bg-color: var(--color-700);
    --component-height: 560px;
    --component-width: 1088px;
    --connector-width: 313px;
    --connector-x-offset: 66px;
    --connector-y-offset: -174px;
    height: var(--component-height);
    width: var(--component-width);
  }

  .section-wrapper.wide .node--type-new-strategy {
    --component-width: 1120px;
  } 

  .strategy-title {
    z-index: 3;
    position: relative;
  }

  .strategy-bg {
    position: absolute;
    border-radius: 50%;
    left: 0;
    right: 0;
    margin: auto;
    width: var(--bg-size);
    height: var(--bg-size);
    top: calc((var(--component-height) - var(--bg-size)) / 2);
    background-color: var(--bg-color);
  }

  .strategy-element {
    position: absolute;
    width: var(--elements-width);
    height: var(--elements-height);
    margin: auto;
    left: 0;
    right: 0;
    background: var(--color-800);
    max-width: unset;
  }

  .strategy-top-element {
    top: var(--vertical-offset);
    mask-image: url(../images/top_mask.svg);
    mask-size: 100% 100%;
    /** smooth transition firefox force GPU**/
    transform: translateZ(1px);
  }

  .strategy-bottom-element {
    bottom: var(--vertical-offset);
    mask-image: url(../images/bottom_mask.svg);
    mask-size: 100% 100%;
    /** smooth transition firefox force GPU **/
    transform: translateZ(1px);
  }

  .strategy-center {
    position: absolute;
    width: 120px;
    inset: 0;
    margin: auto;
    z-index: 1;
    padding: 0;
  }

  .strategy-circle {
    position: absolute;
  }

  .strategy-top-element .circle-1 {
    left: 40px;
    top: 90px;
  }

  .strategy-top-element .circle-2 {
    top: 23px;
    left: 170px;
  }

  .strategy-top-element .circle-3 {
    right: 40px;
    top: 90px;
  }

  .strategy-bottom-element .strategy-circle {
    border: 1px solid #fff;
    color: #fff;
    background-color: var(--color-800);
  }

  .strategy-bottom-element .circle-1 {
    left: 40px;
    bottom: 90px;
  }

  .strategy-bottom-element .circle-2 {
    bottom: 23px;
    left: 170px;
  }

  .strategy-bottom-element .circle-3 {
    right: 40px;
    bottom: 90px;
  }

  .se-connector {
    width: var(--connector-width);
    height: var(--connector-width);
    position: absolute;
    border: 1px solid #fff;
    border-radius: 100%;
    z-index: 0;
    left: var(--connector-x-offset);
  }

  .se-top-connector {
    bottom: var(--connector-y-offset);
  }

  .se-bottom-connector {
    top: var(--connector-y-offset);
  }

  .strategy-center-line {
    position: absolute;
    display: grid;
    width: var(--bg-size);
    margin: auto;
    left: 0;
    right: 0;
    grid-template-columns: 156px 326px 156px;
    top: 50%;
  }

  .strategy-center-line span {
    height: 1px;
    background-color: #fff;
    position: relative;
  }

  .strategy-center-line span:not(.no-line)::after {
    content: "";
    width: 16px;
    display: block;
    position: absolute;
    height: 12px;
    top: -12px;
  }

  .strategy-center-line span:first-child::after {
    right: -7px;
    border-bottom-right-radius: 12px;
    border-bottom: 1px solid #fff;
    border-right: 1px solid #fff;
  }

  .strategy-center-line span:last-child::after {
    left: -7px;
    border-bottom-left-radius: 12px;
    border-bottom: 1px solid #fff;
    border-left: 1px solid #fff;
  }

  .strategy-center-line span:not(.no-line)::before {
    content: "";
    width: 16px;
    display: block;
    position: absolute;
    height: 12px;
    top: 0;
  }

  .strategy-center-line span:first-child::before {
    right: -7px;
    border-top-right-radius: 12px;
    border-top: 1px solid #fff;
    border-right: 1px solid #fff;
  }

  .strategy-center-line span:last-child::before {
    left: -7px;
    border-top-left-radius: 12px;
    border-top: 1px solid #fff;
    border-left: 1px solid #fff;
  }

  .strategy-center-line span.no-line {
    background-color: transparent;
  }

  #main-content .node--type-new-strategy .outter-element {
    position: absolute;
    width: calc((var(--component-width) - var(--bg-size)) / 2);
    top: calc(50% - 4rem);
    height: fit-content;
    max-width: unset;
    padding: 0 1.25rem;
    margin-bottom: 0;
  }

  .strategy-right {
    right: 0;
  }

  #main-content .strategy-container .strategy-element-title {
    position: absolute;
    left: 0.75rem;
    margin-bottom: 0;
    padding-bottom: 0;
  }

  .strategy-top-element .strategy-element-title {
    bottom: 0.5rem;
  }

  .strategy-bottom-element .strategy-element-title {
    top: 0.25rem;
  }
}

/** HD **/
@media screen and (min-width: 1921px) {
  .node--type-new-strategy {
    --vertical-offset: 68px;
    --elements-height: 308px;
    --elements-width: 624px;
    --bg-size: 894px;
    --component-height: 784px;
    --component-width: 1500px;
    --circle-width: 148px;
    --connector-width: 643px;
    --connector-x-offset: 144px;
    --connector-y-offset: -360px;
  }
  
  .section-wrapper.wide .node--type-new-strategy {
    --component-width: 1500px;
  } 

  #main-content .node--type-new-strategy .outter-element {
    top: calc(50% - 6rem);
  }

  .strategy-top-element .circle-1 {
    left: 72px;
    top: 106px;
  }

  .strategy-top-element .circle-2 {
    top: 30px;
    left: 240px;
  }

  .strategy-top-element .circle-3 {
    right: 72px;
    top: 106px;
  }

  .strategy-bottom-element .circle-1 {
    left: 72px;
    bottom: 106px;
  }

  .strategy-bottom-element .circle-2 {
    bottom: 30px;
    left: 240px;
  }

  .strategy-bottom-element .circle-3 {
    right: 70px;
    bottom: 106px;
  }

  .strategy-center-line {
    grid-template-columns: 222px 450px 222px;
  }

  .strategy-center-line span:not(.no-line)::after {
    height: 16px;
    top: -16px;
  }

  .strategy-center-line span:first-child::after {
    border-bottom-right-radius: 16px;
  }

  .strategy-center-line span:last-child::after {
    left: -10px;
    border-bottom-left-radius: 16px;
  }

  .strategy-center-line span:not(.no-line)::before {
    height: 16px;
  }

  .strategy-center-line span:first-child::before {
    border-top-right-radius: 16px;
  }

  .strategy-center-line span:last-child::before {
    left: -10px;
    border-top-left-radius: 16px;
  }

  .ui-dialog.new-strategy {
    min-width: 750px;
  }
}
/** END HD **/

/** 4k **/
@media screen and (min-width: 3441px) {
  .node--type-new-strategy {
    --vertical-offset: 100px;
    --elements-height: 462px;
    --elements-width: 936px;
    --bg-size: 1340px;
    --component-height: 1176px;
    --component-width: 2250px;
    --circle-width: 222px;
  }

  #main-content .node--type-new-strategy .outter-element {
    top: calc(50% - 9rem);
  }

  .strategy-top-element .circle-1 {
    left: 106px;
    top: 160px;
  }

  .strategy-top-element .circle-2 {
    top: 48px;
    left: 352px;
  }

  .strategy-top-element .circle-3 {
    right: 106px;
    top: 160px;
  }

  .strategy-bottom-element .circle-1 {
    left: 106px;
    bottom: 160px;
  }

  .strategy-bottom-element .circle-2 {
    bottom: 48px;
    left: 352px;
  }

  .strategy-bottom-element .circle-3 {
    right: 106px;
    bottom: 160px;
  }

  .strategy-center-line {
    grid-template-columns: 336px 668px 336px;
  }

  .ui-dialog.new-strategy {
    min-width: 1075px;
  }

  .strategy-center-line span:not(.no-line)::after {
    height: 26px;
    top: -26px;
    width: 26px;
  }

  .strategy-center-line span:first-child::after {
    border-bottom-right-radius: 26px;
    right: -13px;
  }

  .strategy-center-line span:last-child::after {
    left: -15px;
    border-bottom-left-radius: 26px;
  }

  .strategy-center-line span:not(.no-line)::before {
    height: 26px;
    width: 26px;
  }

  .strategy-center-line span:first-child::before {
    border-top-right-radius: 26px;
    right: -13px;
  }

  .strategy-center-line span:last-child::before {
    left: -15px;
    border-top-left-radius: 26px;
  }
}
/** END 4K **/
