.org-structure-figure, .company-boundary {
  --org-ink: #29261b;
  --org-route: #075e56;
  --org-return: #8d2945;
}

.ownership-map {
  display:grid;
  grid-template-columns: minmax(12rem, 1fr) minmax(0, 2.25fr);
  align-items:center;
  max-width:58rem;
  margin:1.3rem auto;
}
.ownership-company {
  display:grid;
  justify-items:center;
  align-content:center;
  gap:.2rem;
  padding:.55rem .65rem .7rem;
  border:2px solid var(--org-ink);
  border-radius:var(--diagram-group-radius);
  background:var(--diagram-card);
  text-align:center;
}
.ownership-company strong, .reporting-role strong, .company-boundary strong {
  font-size:1.25rem;
}
.ownership-company img { width:6.5rem; height:auto; }
.ownership-parent { background:#ffefab; padding-block:1.25rem; }
.ownership-parent img { width:8rem; }
.org-role {
  display:inline-block;
  width:max-content;
  padding:.13rem .5rem;
  border-radius:5px;
  background:var(--diagram-green);
  color:#214431;
  font-size:.875rem;
  font-weight:700;
}
.ownership-branches {
  position:relative;
  display:grid;
  grid-template-rows:1fr 1fr;
  gap:.85rem;
  margin:0;
  padding:0 0 0 1.4rem;
  list-style:none;
}
.ownership-branches::before {
  position:absolute;
  left:calc(1.4rem - 3px);
  top:calc((100% - .85rem) / 4);
  bottom:calc((100% - .85rem) / 4);
  width:3px;
  border-radius:4px;
  background:var(--org-route);
  content:"";
}
.ownership-branches::after {
  position:absolute;
  top:calc(50% - 1.5px);
  left:0;
  width:1.4rem;
  height:3px;
  background:var(--org-route);
  content:"";
}
.ownership-branches > li {
  display:grid;
  grid-template-columns:minmax(0, 1.12fr) minmax(10rem, 1fr);
  align-items:stretch;
}
.ownership-link {
  position:relative;
  align-self:center;
  height:0;
  border-top:3px solid var(--org-route);
  color:var(--org-route);
  text-align:center;
}
.ownership-link span {
  position:absolute;
  right:.55rem;
  bottom:.4rem;
  left:.55rem;
  font-weight:700;
  line-height:1.25;
}
.ownership-link i {
  position:absolute;
  top:-1.5px;
  right:1px;
  display:grid;
  translate:0 -50%;
}
.ownership-link i::before {
  width:15px;
  height:19px;
  clip-path:var(--diagram-arrow-tip);
}
.org-structure-note {
  max-width:58rem;
  margin:1.2rem auto 0;
  padding-block:.7rem .1rem;
  border-top:1px solid var(--diagram-rule);
  color:var(--org-ink);
  font-size:1.07rem;
  text-align:center;
}

.company-boundary {
  max-width:51rem;
  margin:1.7rem auto 0;
  padding:0 1.4rem .85rem;
  border:3px solid var(--org-ink);
  border-radius:var(--diagram-group-radius);
  background:#fff9df;
}
.boundary-label {
  display:flex;
  align-items:center;
  gap:.6rem;
  width:max-content;
  margin:-.55rem auto 0;
  padding:0 .7rem;
  background:#fff9df;
}
.boundary-label img { width:5.25rem; height:auto; }
.boundary-label strong { display:block; }
.internal-companies {
  display:grid;
  grid-template-columns:repeat(var(--org-unit-count, 2), minmax(0, 1fr));
  margin:.4rem 0 0;
  padding:0;
  list-style:none;
}
.internal-companies li {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:.6rem;
  padding:.25rem .6rem;
}
.internal-companies li + li { border-left:2px dashed var(--diagram-rule); }
.internal-companies img { width:6rem; height:auto; }
.internal-companies strong, .internal-companies span { display:block; }
.company-boundary.in-review { margin:1.25rem auto .85rem; }
.in-review .internal-companies li { flex-direction:column; text-align:center; }
.in-review .internal-companies img { width:5.5rem; }

.reporting-map { max-width:47rem; margin:.75rem auto 0; }
.reporting-heading {
  display:inline-block;
  width:49%;
  text-align:center;
}
.reporting-role {
  position:relative;
  z-index:1;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:.45rem;
  width:min(70%, 28rem);
  margin-inline:auto;
  padding:.08rem .6rem;
  border:2px solid var(--org-ink);
  border-radius:var(--diagram-group-radius);
  background:var(--diagram-card);
}
.reporting-role:first-of-type { margin-top:.35rem; }
.reporting-role img { width:4.6rem; height:auto; }
.reporting-role strong, .reporting-role span { display:block; }
.reporting-pair {
  display:grid;
  grid-template-columns:1fr 1fr;
  margin:.1rem auto;
}
.reporting-pair > div {
  display:grid;
  grid-template-columns:1fr 1.55rem;
  align-items:center;
  gap:.6rem;
  min-height:3rem;
  padding-right:.35rem;
  font-weight:700;
  text-align:right;
}
.reporting-pair .reporting-results {
  grid-template-columns:1.55rem 1fr;
  padding:0 0 0 .35rem;
  text-align:left;
}
.reporting-orders { color:var(--org-route); }
.reporting-results { color:var(--org-return); }
.reporting-pair i {
  display:grid;
  position:relative;
  place-items:center;
  align-self:stretch;
  font-size:1.5rem;
}
.reporting-pair i::after {
  position:absolute;
  top:0;
  bottom:.65rem;
  width:3px;
  border-radius:3px;
  background:currentColor;
  content:"";
}
.reporting-pair [data-diagram-arrow="up"]::after { top:.65rem; bottom:0; }
.reporting-pair [data-diagram-arrow="down"]::before { align-self:end; margin-bottom:.13rem; }
.reporting-pair [data-diagram-arrow="up"]::before { align-self:start; margin-top:.13rem; }
.org-structure-figure .visually-hidden { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }

@media (max-width:650px) {
  .ownership-map { grid-template-columns:1fr; gap:.75rem; }
  .ownership-parent { justify-self:center; width:min(100%, 16rem); }
  .ownership-branches { padding-left:0; }
  .ownership-branches::before, .ownership-branches::after { display:none; }
  .ownership-branches > li { grid-template-columns:1fr 1fr; }
  .ownership-link span { right:.25rem; left:.25rem; }
  .internal-companies li { flex-direction:column; justify-content:flex-start; text-align:center; }
  .in-review .internal-companies img { width:4rem; }
  .reporting-pair > div { min-height:4.8rem; line-height:1.3; }
}
