.report-org {
    --org-node-width: 194px;
    min-width: 0;
}

.report-org__viewport {
    display: none;
    max-width: 100%;
    overflow: auto;
    border: 1px solid var(--report-border);
    background: #f7fafb;
    scrollbar-color: var(--report-accent) #e8eff1;
}

.report-org.is-ready .report-org__viewport {
    display: block;
}

.report-org.is-measuring .report-org__viewport {
    display: block;
    visibility: hidden;
}

.report-org__stage {
    position: relative;
    min-width: 100%;
    min-height: 340px;
}

.report-org__links,
.report-org__nodes {
    position: absolute;
    inset: 0;
}

.report-org__links {
    z-index: 1;
    overflow: visible;
    pointer-events: none;
}

.report-org__nodes {
    z-index: 2;
}

.report-org__node {
    --tone: var(--report-accent);
    --tone-strong: var(--report-accent-strong);
    --tone-soft: var(--report-accent-soft);
    --tone-border: var(--report-border);
    box-sizing: border-box;
    display: grid;
    width: var(--org-node-width);
    min-height: 54px;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 9px;
    align-items: center;
    padding: 11px 12px;
    border: 1px solid var(--tone-border);
    border-top: 4px solid var(--tone);
    border-radius: 6px;
    color: var(--report-text);
    background: #fff;
    box-shadow: 0 8px 20px rgba(36, 67, 81, .09);
}

.report-org__node[data-org-context="desktop"] {
    position: absolute;
    top: 0;
    left: 0;
    transition: transform .22s ease;
}

.report-org__icon {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    color: var(--tone-strong);
}

.report-org__icon-svg {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.report-org__copy,
.report-org__copy > * {
    min-width: 0;
}

.report-org__copy {
    display: grid;
    gap: 3px;
}

.report-org__node:not(:has(.report-org__icon)) .report-org__copy {
    grid-column: 1 / -1;
}

.report-org__copy strong {
    color: var(--tone-strong);
    font-size: 15px;
    line-height: 1.45;
    letter-spacing: 0;
}

.report-org__label {
    justify-self: start;
    padding: 2px 6px;
    color: var(--tone-strong);
    background: var(--tone-soft);
    font-size: 12px;
    line-height: 1.35;
    white-space: nowrap;
}

.report-org__body {
    padding-top: 4px;
    border-top: 1px solid var(--tone-border);
    color: #5c6f77;
    font-size: 12px;
    line-height: 1.55;
}

.report-template--governance-wide .report-org__node {
    min-height: 42px;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 5px;
    padding: 6px;
    border-top-width: 3px;
}

.report-template--governance-wide .report-org__icon {
    width: 18px;
    height: 18px;
}

.report-template--governance-wide .report-org__icon-svg {
    width: 18px;
    height: 18px;
}

.report-template--governance-wide .report-org__copy strong {
    font-size: 12px;
    line-height: 1.35;
    text-wrap: balance;
}

.report-template--governance-wide .report-org__label {
    padding: 1px 3px;
    font-size: 10px;
}

.report-template--governance-wide .report-org__body {
    padding-top: 2px;
    font-size: 10px;
    line-height: 1.35;
}

.report-template--affiliates-wide .report-org__node {
    min-height: 44px;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 5px;
    padding: 7px;
    border-top-width: 3px;
}

.report-template--affiliates-wide .report-org__icon,
.report-template--affiliates-wide .report-org__icon-svg {
    width: 20px;
    height: 20px;
}

.report-template--affiliates-wide .report-org__copy strong {
    font-size: 12px;
    line-height: 1.35;
}

.report-template--affiliates-wide .report-org__label {
    padding: 1px 3px;
    font-size: 10px;
}

.report-template--sustainability-teams .report-org__node {
    min-height: 58px;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 9px;
    padding: 10px 12px;
    border-top-width: 4px;
}

.report-template--sustainability-teams .report-org__icon,
.report-template--sustainability-teams .report-org__icon-svg {
    width: 28px;
    height: 28px;
}

.report-template--sustainability-teams .report-org__copy strong {
    font-size: 15px;
    line-height: 1.45;
    white-space: normal;
    text-wrap: balance;
}

.report-template--sustainability-teams .report-org__label {
    padding: 2px 5px;
    font-size: 11px;
    line-height: 1.4;
}

.report-template--sustainability-teams .report-org__body {
    padding-top: 8px;
    color: #33464e;
    font-size: 14px;
    line-height: 1.65;
    text-wrap: pretty;
}

.report-template--sustainability-teams .report-org__viewport {
    border-color: #c7e2ec;
    background: #fbfdfe;
}

.report-template--sustainability-teams .report-org__link {
    stroke: #5791af;
    stroke-width: 1.8;
}

.report-template--sustainability-teams .report-org__node[data-node-key="board"],
.report-template--sustainability-teams .report-org__node[data-node-key="committee"] {
    --tone: #2676b5;
    --tone-strong: #ffffff;
    --tone-soft: rgba(255, 255, 255, .17);
    --tone-border: #2676b5;
    border-color: var(--tone-border);
    border-radius: 12px;
    color: #fff;
    background: #2676b5;
    box-shadow: 0 6px 13px rgba(26, 86, 131, .2);
}

.report-template--sustainability-teams .report-org__node[data-node-key="board"] .report-org__icon,
.report-template--sustainability-teams .report-org__node[data-node-key="committee"] .report-org__icon,
.report-template--sustainability-teams .report-org__node[data-node-key="board"] .report-org__copy strong,
.report-template--sustainability-teams .report-org__node[data-node-key="committee"] .report-org__copy strong,
.report-template--sustainability-teams .report-org__node[data-node-key="board"] .report-org__label,
.report-template--sustainability-teams .report-org__node[data-node-key="committee"] .report-org__label {
    color: #fff;
}

.report-template--sustainability-teams .report-org__node[data-node-key="executive-secretary"],
.report-template--sustainability-teams .report-org__node[data-node-key="risk-team"],
.report-template--sustainability-teams .report-org__node[data-node-key="rba"] {
    --tone: #82b8d3;
    --tone-strong: #174e6b;
    --tone-soft: #edf7fb;
    --tone-border: #b8d9e8;
    border-color: var(--tone-border);
    border-top-color: var(--tone);
    border-radius: 12px;
    background: #e4f2f8;
    box-shadow: 0 5px 12px rgba(38, 89, 114, .12);
}

.report-template--sustainability-teams .report-org__node.report-tone--economy {
    --tone: #e4bd36;
    --tone-strong: #55450b;
    --tone-soft: #f3d460;
    --tone-border: #ead784;
}

.report-template--sustainability-teams .report-org__node.report-tone--teal {
    --tone: #76b5ae;
    --tone-strong: #214f4b;
    --tone-soft: #98cbc5;
    --tone-border: #b9dbd7;
}

.report-template--sustainability-teams .report-org__node.report-tone--environment {
    --tone: #8ebb4d;
    --tone-strong: #34531b;
    --tone-soft: #a5ca68;
    --tone-border: #c9dda9;
}

.report-template--sustainability-teams .report-org__node.report-tone--blue {
    --tone: #6aa9cf;
    --tone-strong: #204c67;
    --tone-soft: #85bad9;
    --tone-border: #b7d5e7;
}

.report-template--sustainability-teams .report-org__node.report-tone--social {
    --tone: #dc8985;
    --tone-strong: #6a3533;
    --tone-soft: #e7a19d;
    --tone-border: #edc3c0;
}

.report-template--sustainability-teams .report-org__node.report-org__node--detailed {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: stretch;
    padding: 0;
    border: 1px solid var(--tone-border);
    border-top: 0;
    border-radius: 16px 16px 10px 10px;
    background: #fff;
    box-shadow: 0 8px 18px rgba(39, 74, 89, .1);
}

.report-template--sustainability-teams .report-org__node--detailed[data-org-context="desktop"] {
    min-height: 330px;
}

.report-template--sustainability-teams .report-org__node--detailed .report-org__icon {
    position: absolute;
    z-index: 2;
    top: -24px;
    left: 50%;
    width: 46px;
    height: 46px;
    border: 4px solid #fff;
    border-radius: 50%;
    outline: 3px solid var(--tone);
    color: var(--tone);
    background: #fff;
    transform: translateX(-50%);
}

.report-template--sustainability-teams .report-org__node--detailed .report-org__icon-svg {
    width: 29px;
    height: 29px;
}

.report-template--sustainability-teams .report-org__node--detailed .report-org__copy {
    display: flex;
    width: 100%;
    flex: 1;
    flex-direction: column;
    gap: 0;
}

.report-template--sustainability-teams .report-org__node--detailed[data-org-context="desktop"] .report-org__copy {
    min-height: 330px;
}

.report-template--sustainability-teams .report-org__node--detailed .report-org__label {
    position: absolute;
    z-index: 2;
    top: -17px;
    left: 10px;
    padding: 2px 5px;
    border: 1px solid var(--tone-border);
    border-radius: 3px;
    color: var(--tone-strong);
    background: rgba(255, 255, 255, .72);
    font-weight: 700;
}

.report-template--sustainability-teams .report-org__node--detailed .report-org__copy > strong {
    display: flex;
    width: 100%;
    min-height: 58px;
    align-items: center;
    justify-content: center;
    padding: 12px 8px;
    border-radius: 15px 15px 0 0;
    color: #192a31;
    background: var(--tone-soft);
    font-size: 15px;
    line-height: 1.45;
    text-align: center;
}

.report-template--sustainability-teams .report-org__node--detailed .report-org__body {
    display: flex;
    width: 100%;
    flex: 1;
    flex-direction: column;
    gap: 15px;
    padding: 17px 13px 16px;
    border-top: 0;
    text-align: center;
}

.report-template--sustainability-teams .report-org__body-section,
.report-template--sustainability-teams .report-org__body-heading,
.report-template--sustainability-teams .report-org__body-list,
.report-template--sustainability-teams .report-org__body-item {
    display: block;
}

.report-template--sustainability-teams .report-org__body-section + .report-org__body-section {
    padding-top: 14px;
    border-top: 2px solid var(--tone);
}

.report-template--sustainability-teams .report-org__body-heading {
    margin-bottom: 7px;
    color: #6a7a81;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.45;
}

.report-template--sustainability-teams .report-org__body-list {
    display: grid;
    gap: 4px;
}

.report-template--sustainability-teams .report-org__body-item {
    overflow-wrap: anywhere;
}

.report-template--sustainability-teams .report-org__node--detailed[data-org-context="mobile"] {
    position: relative;
    min-height: 0;
    margin-top: 26px;
}

.report-template--sustainability-teams .report-org__node--detailed[data-org-context="mobile"] .report-org__copy {
    min-height: 0;
}

.report-template--sustainability-teams .report-org__node--detailed[data-org-context="mobile"] .report-org__body {
    padding-inline: 16px;
    text-align: left;
}

.report-template--sustainability-teams .report-org__node--detailed[data-org-context="mobile"] .report-org__body-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 14px;
}

.report-org__link {
    fill: none;
    stroke: #7393a0;
    stroke-width: 1.6;
    vector-effect: non-scaling-stroke;
}

.report-org__link--dashed {
    stroke-dasharray: 7 5;
}

.report-org__link--arrow,
.report-org__link--bidirectional {
    stroke: var(--report-accent-strong);
}

.report-org__links marker path {
    fill: var(--report-accent-strong);
}

.report-org__link-label {
    fill: #556c76;
    font-size: 11px;
    paint-order: stroke;
    stroke: #fff;
    stroke-linejoin: round;
    stroke-width: 4px;
    text-anchor: middle;
}

.report-org__mobile {
    min-width: 0;
}

.report-org.is-ready .report-org__mobile {
    display: none;
}

.report-org__tree-level {
    display: grid;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.report-org__tree-level .report-org__tree-level {
    position: relative;
    margin: 14px 0 0 18px;
    padding-left: 22px;
    border-left: 2px solid #b9cdd4;
}

.report-org__tree-item {
    position: relative;
    min-width: 0;
}

.report-org__tree-level .report-org__tree-level > .report-org__tree-item::before {
    content: "";
    position: absolute;
    top: 28px;
    left: -22px;
    width: 22px;
    border-top: 2px solid #b9cdd4;
}

.report-org__tree-item[data-edge-type="dashed"]::before {
    border-top-style: dashed !important;
}

.report-org__tree-item > .report-org__node {
    width: min(100%, 360px);
}

@media (max-width: 767.98px) {
    .report-org {
        /* Total indentation per tree level; split between margin and connector gutter. */
        --org-mobile-indent: 14px;
        --org-mobile-indent-half: calc(var(--org-mobile-indent) / 2);
    }

    .report-org.is-ready .report-org__viewport {
        display: none;
    }

    .report-org.is-ready .report-org__mobile {
        display: block;
    }

    .report-org__node {
        padding: 10px;
    }

    .report-org__copy strong {
        font-size: 14px;
    }

    .report-template--sustainability-teams .report-org__copy strong {
        white-space: normal;
    }

    .report-org__tree-level .report-org__tree-level {
        margin-left: var(--org-mobile-indent-half);
        padding-left: var(--org-mobile-indent-half);
    }

    .report-org__tree-level .report-org__tree-level > .report-org__tree-item::before {
        left: calc(-1 * var(--org-mobile-indent-half));
        width: var(--org-mobile-indent-half);
    }

    .report-template--sustainability-teams .report-org__node--detailed[data-org-context="mobile"] .report-org__body-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .report-org[data-mobile-mode="siblings-scroll"] .report-org__tree-level[data-org-depth="1"] {
        display: flex;
        max-width: 100%;
        gap: 12px;
        overflow-x: auto;
        padding: 2px 0 12px var(--org-mobile-indent-half);
        scrollbar-gutter: stable;
        scroll-snap-type: x proximity;
    }

    .report-org[data-mobile-mode="siblings-scroll"] .report-org__tree-level[data-org-depth="1"] > .report-org__tree-item {
        flex: 0 0 min(300px, calc(100vw - 64px));
        scroll-snap-align: start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .report-org__node[data-org-context="desktop"] {
        transition: none;
    }
}
