.ob-centre-investing {
  --ob-investing-goals: var(--ob3-gold);
  --ob-investing-risk: var(--ob3-blue);
  --ob-investing-performance: #a99ad8;
}

.ob-centre-investing .ob2-explorer-territory.ob2-territory--investing-goals-growth {
  border-top-color: var(--ob-investing-goals);
}

.ob-centre-investing .ob2-explorer-territory.ob2-territory--investing-risk-costs {
  border-top-color: var(--ob-investing-risk);
}

.ob-centre-investing .ob2-explorer-territory.ob2-territory--investing-performance-accounts {
  border-top-color: var(--ob-investing-performance);
}

.ob-centre-investing .ob2-territory--investing-goals-growth .ob2-territory-mark {
  background: var(--ob-investing-goals);
}

.ob-centre-investing .ob2-territory--investing-risk-costs .ob2-territory-mark {
  background: var(--ob-investing-risk);
}

.ob-centre-investing .ob2-territory--investing-performance-accounts .ob2-territory-mark {
  background: var(--ob-investing-performance);
}

.ob-centre-investing .ob2-territory--investing-goals-growth .ob2-explorer-question {
  border-left-color: rgba(228, 170, 66, 0.82);
}

.ob-centre-investing .ob2-territory--investing-risk-costs .ob2-explorer-question {
  border-left-color: rgba(105, 185, 198, 0.84);
}

.ob-centre-investing .ob2-territory--investing-performance-accounts .ob2-explorer-question {
  border-left-color: rgba(169, 154, 216, 0.84);
}

@media (min-width: 980px) {
  .ob-centre-investing .ob2-map-territory {
    height: 220px;
  }

  .ob-centre-investing .ob2-map-territory--investing-goals-growth {
    clip-path: polygon(0 0, 92% 0, 100% 100%, 8% 100%);
    left: 24px;
    right: 128px;
    top: 100px;
  }

  .ob-centre-investing .ob2-map-territory--investing-risk-costs {
    background: linear-gradient(90deg, rgba(105, 185, 198, 0.15), rgba(105, 185, 198, 0.025) 58%, transparent);
    border-color: rgba(105, 185, 198, 0.36);
    border-left-color: var(--ob-investing-risk);
    clip-path: polygon(8% 0, 96% 0, 100% 100%, 0 100%);
    left: 92px;
    right: 62px;
    top: 325px;
  }

  .ob-centre-investing .ob2-map-territory--investing-risk-costs span {
    left: calc(8% + 14px);
  }

  .ob-centre-investing .ob2-map-territory--investing-performance-accounts {
    background: linear-gradient(90deg, rgba(169, 154, 216, 0.15), rgba(169, 154, 216, 0.025) 58%, transparent);
    border-color: rgba(169, 154, 216, 0.38);
    border-left-color: var(--ob-investing-performance);
    clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%);
    left: 166px;
    right: 24px;
    top: 550px;
  }

  .ob-centre-investing .ob2-map-territory--investing-performance-accounts span {
    left: calc(12% + 14px);
  }

  .ob-centre-investing .ob2-map-node[data-ob2-territory="investing-goals-growth"] .ob2-question-code {
    color: var(--ob-investing-goals);
  }

  .ob-centre-investing .ob2-map-node[data-ob2-territory="investing-risk-costs"] .ob2-question-code {
    color: var(--ob-investing-risk);
  }

  .ob-centre-investing .ob2-map-node[data-ob2-territory="investing-performance-accounts"] .ob2-question-code {
    color: var(--ob-investing-performance);
  }

  .ob-centre-investing .ob2-map-node[data-ob3-geometry="investing-row-1-left"] {
    left: 28%;
    top: 215px;
  }

  .ob-centre-investing .ob2-map-node[data-ob3-geometry="investing-row-1-right"] {
    left: 70%;
    top: 215px;
  }

  .ob-centre-investing .ob2-map-node[data-ob3-geometry="investing-row-2-left"] {
    left: 30%;
    top: 440px;
  }

  .ob-centre-investing .ob2-map-node[data-ob3-geometry="investing-row-2-right"] {
    left: 74%;
    top: 440px;
  }

  .ob-centre-investing .ob2-map-node[data-ob3-geometry="investing-row-3-left"] {
    left: 36%;
    top: 665px;
  }

  .ob-centre-investing .ob2-map-node[data-ob3-geometry="investing-row-3-right"] {
    left: 78%;
    top: 665px;
  }

  .ob-centre-investing .ob2-map-node {
    min-height: 112px;
    width: min(40%, 360px);
  }
}

@media (min-width: 1090px) {
  .ob-centre-investing.ob2-is-enhanced .ob2-stage {
    grid-template-columns: minmax(0, 1.75fr) minmax(350px, 0.82fr);
  }
}

@media (min-width: 1090px) and (max-width: 1359px) {
  .ob-centre-investing .ob2-map-field,
  .ob-centre-investing .ob2-context-dock {
    height: 860px;
    min-height: 860px;
  }

  .ob-centre-investing .ob2-map-territory {
    height: 230px;
  }

  .ob-centre-investing .ob2-map-territory--investing-goals-growth {
    top: 100px;
  }

  .ob-centre-investing .ob2-map-territory--investing-risk-costs {
    top: 345px;
  }

  .ob-centre-investing .ob2-map-territory--investing-performance-accounts {
    top: 590px;
  }

  .ob-centre-investing .ob2-map-node[data-ob3-geometry^="investing-row-1-"] {
    top: 230px;
  }

  .ob-centre-investing .ob2-map-node[data-ob3-geometry^="investing-row-2-"] {
    top: 475px;
  }

  .ob-centre-investing .ob2-map-node[data-ob3-geometry^="investing-row-3-"] {
    top: 720px;
  }
}

@media (min-width: 980px) and (max-width: 1089px) {
  .ob-centre-investing .ob2-map-node {
    width: min(42%, 390px);
  }
}

@media (min-width: 1360px) {
  .ob-centre-investing .ob2-map-territory--investing-goals-growth {
    top: 100px;
  }

  .ob-centre-investing .ob2-map-territory--investing-risk-costs {
    top: 325px;
  }

  .ob-centre-investing .ob2-map-territory--investing-performance-accounts {
    top: 550px;
  }
}

@media (max-width: 979px) {
  .ob-centre-investing .ob2-territory--investing-goals-growth .ob2-question-code {
    border-color: rgba(228, 170, 66, 0.78);
    color: #f2c76e;
  }

  .ob-centre-investing .ob2-territory--investing-risk-costs .ob2-question-code {
    border-color: rgba(105, 185, 198, 0.78);
    color: #9bd8e1;
  }

  .ob-centre-investing .ob2-territory--investing-performance-accounts .ob2-question-code {
    border-color: rgba(169, 154, 216, 0.78);
    color: #cabcf0;
  }

  .ob-centre-investing.ob2-is-enhanced .ob2-territory--investing-risk-costs .ob2-explorer-question.is-selected {
    box-shadow: 0 0 0 2px rgba(105, 185, 198, 0.5), 0 16px 30px rgba(0, 0, 0, 0.24);
  }

  .ob-centre-investing.ob2-is-enhanced .ob2-territory--investing-risk-costs .ob2-explorer-question.is-selected .ob2-explorer-question__button {
    background: rgba(105, 185, 198, 0.13);
  }

  .ob-centre-investing.ob2-is-enhanced .ob2-territory--investing-performance-accounts .ob2-explorer-question.is-selected {
    box-shadow: 0 0 0 2px rgba(169, 154, 216, 0.5), 0 16px 30px rgba(0, 0, 0, 0.24);
  }

  .ob-centre-investing.ob2-is-enhanced .ob2-territory--investing-performance-accounts .ob2-explorer-question.is-selected .ob2-explorer-question__button {
    background: rgba(169, 154, 216, 0.13);
  }
}

.ob-centre-investing :is(.ob2-question__dock-copy, .ob2-dock-summary) strong[data-ob2-key-term] {
  color: inherit;
  font-weight: var(--ob2-type-reader-emphasis-weight);
}

.ob-centre-investing :is(.ob2-driver-list, .ob2-relationship-contract)[hidden] {
  display: none !important;
}

.ob-centre-investing .ob2-question__resources .ob2-resource-type {
  display: none;
}

.ob-centre-investing .ob2-planning-context {
  background: var(--ob2-ink);
  border-top: 1px solid var(--ob2-stage-rule);
  color: var(--ob2-resource);
  isolation: isolate;
  overflow: hidden;
  padding: clamp(38px, 5vw, 64px) var(--ob2-page-gutter);
  position: relative;
}

.ob-centre-investing .ob2-planning-context__inner {
  max-width: 980px;
  position: relative;
  z-index: 1;
}

.ob-centre-investing .ob2-planning-context h2 {
  color: inherit;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  line-height: 1.2;
  margin: 0 0 20px;
}

.ob-centre-investing .ob2-planning-context p {
  color: rgba(244, 240, 230, 0.84);
  line-height: 1.68;
  margin: 0;
}

.ob-centre-investing .ob2-planning-context p + p {
  margin-top: 14px;
}

.ob-centre-investing .ob2-index-state {
  margin-bottom: 28px;
}

.ob-centre-investing .ob2-index-groups {
  margin-top: 28px;
}

.ob-centre-investing .ob2-resource-index,
.ob-centre-investing .ob2-educational-boundary {
  padding-bottom: clamp(28px, 3vw, 40px);
  padding-top: clamp(28px, 3vw, 40px);
}

.ob-centre-investing:has(.ob2-explorer-question[data-ob2-resource-total="1"].is-selected) .ob2-context-dock .ob2-dock-actions,
.ob-centre-investing:has(.ob2-explorer-question[data-ob2-resource-total="2"].is-selected) .ob2-context-dock .ob2-dock-actions,
.ob-centre-investing:has(.ob2-explorer-question[data-ob2-resource-total="3"].is-selected) .ob2-context-dock .ob2-dock-actions {
  display: none;
}

@media (min-width: 980px) {
  .ob-centre-investing .ob2-map-heading {
    max-width: calc(100% - 56px);
  }

  .ob-centre-investing .ob2-dock-territories {
    gap: 6px;
  }

  .ob-centre-investing .ob2-dock-territories li {
    align-items: start;
    border-top: 0;
    grid-template-columns: minmax(0, 1fr);
    isolation: isolate;
    overflow: hidden;
    padding: 11px 16px;
    position: relative;
  }

  .ob-centre-investing .ob2-dock-territories li::before {
    content: "";
    inset: 0;
    position: absolute;
    z-index: -1;
  }

  .ob-centre-investing .ob2-dock-territories li[data-ob2-territory="investing-goals-growth"]::before {
    background: linear-gradient(90deg, rgba(228, 170, 66, 0.2), rgba(228, 170, 66, 0.035));
    clip-path: polygon(0 0, 91% 0, 100% 100%, 5% 100%);
  }

  .ob-centre-investing .ob2-dock-territories li[data-ob2-territory="investing-risk-costs"]::before {
    background: linear-gradient(90deg, rgba(105, 185, 198, 0.2), rgba(105, 185, 198, 0.035));
    clip-path: polygon(7% 0, 100% 0, 94% 100%, 0 100%);
  }

  .ob-centre-investing .ob2-dock-territories li[data-ob2-territory="investing-performance-accounts"]::before {
    background: linear-gradient(90deg, rgba(169, 154, 216, 0.2), rgba(169, 154, 216, 0.035));
    clip-path: polygon(0 0, 94% 0, 100% 100%, 8% 100%);
  }

  .ob-centre-investing .ob2-dock-territories small {
    grid-column: 1;
  }

  .ob-centre-investing .ob2-context-dock .ob2-lead-resource-list {
    display: grid;
    gap: 2px;
  }

  .ob-centre-investing .ob2-context-dock .ob2-lead-resource-list li {
    border-bottom: 0;
    padding: 3px 0;
  }

  .ob-centre-investing .ob2-context-dock .ob2-dock-actions {
    margin-top: 12px;
  }
}

@media (min-width: 1090px) {
  .ob-centre-investing .ob2-planning-context::before,
  .ob-centre-investing .ob2-planning-context::after {
    content: "";
    inset: 0 0 0 52%;
    pointer-events: none;
    position: absolute;
    z-index: 0;
  }

  .ob-centre-investing .ob2-planning-context::before {
    background:
      linear-gradient(158deg, rgba(228, 170, 66, 0.11) 0 28%, transparent 28%),
      linear-gradient(158deg, transparent 32%, rgba(105, 185, 198, 0.1) 32% 61%, transparent 61%),
      linear-gradient(158deg, transparent 65%, rgba(169, 154, 216, 0.11) 65% 94%, transparent 94%);
    clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%, 9% 72%, 2% 43%);
  }

  .ob-centre-investing .ob2-planning-context::after {
    background: repeating-radial-gradient(
      ellipse at 100% 48%,
      transparent 0 52px,
      rgba(220, 235, 232, 0.065) 53px 54px,
      transparent 55px 102px
    );
    opacity: 0.72;
  }
}

@media (min-width: 980px) and (max-width: 1089px) {
  .ob-centre-investing .ob2-context-dock {
    height: auto;
    min-height: 0;
  }
}

@media print {
  .ob-centre-investing .ob2-planning-context {
    background: #fff !important;
    color: #000 !important;
    padding: 20pt 0 !important;
  }

  .ob-centre-investing .ob2-planning-context p {
    color: #000 !important;
  }

  .ob-centre-investing .ob2-planning-context::before,
  .ob-centre-investing .ob2-planning-context::after {
    display: none !important;
  }

  .ob-centre-investing .ob2-territory--investing-goals-growth {
    border-top-color: #8a650e;
  }

  .ob-centre-investing .ob2-territory--investing-risk-costs {
    border-top-color: #326f7a;
  }

  .ob-centre-investing .ob2-territory--investing-performance-accounts {
    border-top-color: #675a93;
  }
}
