.goal-tree {
  display: grid;
  justify-items: center;
  max-width: 52rem;
  margin-inline: auto;
}

.goal-tree-root {
  display: grid;
  gap: .25rem;
  padding: .55rem 1rem;
  border: 2px solid var(--ink);
  border-radius: 12px 10px 14px 11px;
  background: var(--strategy-yellow);
  text-align: center;
}

.goal-tree-root strong { font-size: 1.27em; }
.goal-tree-trunk { width: 3px; height: 1.2rem; background: var(--strategy-teal); }

.goal-tree-branches {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding-top: 1.25rem;
}

.goal-tree-branches::before {
  content: "";
  position: absolute;
  inset: 0 24.5% auto;
  height: 1.25rem;
  border: solid var(--strategy-teal);
  border-width: 3px 3px 0;
  border-radius: 12px 12px 0 0;
}

.goal-tree-branches > div {
  display: grid;
  justify-items: center;
  gap: .24rem;
  padding: .5rem;
  background: var(--strategy-cyan);
  border: 2px solid var(--ink);
  border-radius: 10px 14px 9px 12px;
  text-align: center;
}

.goal-tree-branches img, .goal-smart-sheet img {
  width: 70px;
  height: 54px;
  object-fit: contain;
}

.goal-tree-branches :is(h4, p) { margin: 0; }
.goal-tree-branches h4 { font-size: 1.12em; }
.goal-gap { padding: .08rem .5rem; border-radius: 5px; background: var(--strategy-paper); }
.goal-tree-branches div:first-child .goal-gap { background: var(--strategy-yellow); font-weight: 800; }

.goal-equation {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .35rem 1.2rem;
  margin: .6rem 0 0;
  padding: .3rem .7rem;
  background: var(--strategy-paper);
  border-top: 2px solid var(--strategy-rule);
}

.goal-observation-table { width: 100%; background: var(--strategy-paper); border-collapse: collapse; }
.goal-observation-table caption { text-align: left; font-weight: 800; }
.goal-observation-table :is(th, td) { border: 1px solid var(--strategy-rule); padding: .35rem .5rem; text-align: center; }
.goal-observation-table thead { background: var(--strategy-cyan); }
.goal-observation-table .goal-observed-low { font-weight: 800; background: var(--strategy-yellow); }
.goal-proof { margin-top: .8rem; }
.goal-proof > li { background: var(--strategy-paper); border-radius: 8px 11px 6px 9px; }
:is(.goal-proof, .goal-grow) .strategy-transition { z-index: 1; white-space: nowrap; }

.goal-smart {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.goal-smart-sheet {
  padding: .6rem .75rem;
  border: 2px solid var(--ink);
  border-radius: 9px 15px 14px 10px;
  background: var(--strategy-paper);
}

.goal-smart-sheet h4 {
  display: flex;
  align-items: center;
  gap: .45rem;
  margin: 0;
  font-size: 1.1em;
}

.goal-smart-sheet p, .goal-smart-evidence { display: flex; flex-wrap: wrap; gap: .4rem; margin: .5rem 0 0; }
.goal-smart-sheet p span { background: var(--strategy-yellow); font-weight: 800; }
.goal-smart-evidence span { background: var(--strategy-cyan); }
.goal-smart-sheet [data-key] { display: flex; align-items: center; gap: .27rem; padding: .2rem .42rem; border-radius: 5px; }

.goal-smart-sheet [data-key]::before, .goal-smart dt b {
  display: inline-grid;
  place-items: center;
  width: 1.36em;
  height: 1.36em;
  border-radius: 50%;
  background: var(--strategy-teal);
  color: white;
  font-weight: 800;
}

.goal-smart-sheet [data-key]::before { content: attr(data-key); }
.goal-smart dl { margin: 0; }
.goal-smart dl > div { display: grid; grid-template-columns: 9.6rem 1fr; gap: .2rem .5rem; padding: .28rem 0; border-bottom: 1px solid var(--strategy-rule); }
.goal-smart :is(dt, dd) { margin: 0; }
.goal-smart dt { font-weight: 750; white-space: nowrap; }

.goal-grow { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.goal-grow > li { grid-template-rows: 72px auto auto; background: var(--strategy-paper); border-radius: 11px 9px 10px 8px; }
.goal-grow h4 { margin: .18rem 0; padding: .04rem .4rem; border-radius: 4px; background: var(--strategy-cyan); font-size: 1.1em; }
.goal-grow li:last-child h4 { background: var(--strategy-yellow); }
.goal-grow h4 span { font-weight: 650; }

@media (max-width: 700px) {
  .goal-smart, .goal-grow { grid-template-columns: 1fr; }
}
