/* Classic top-down org chart with connecting lines, pure CSS
   (no JS library needed). Based on the standard "tree of <ul><li>" trick. */

.org-chart-wrapper {
    overflow-x: auto;
    padding: 24px 0;
}

.org-chart, .org-chart ul {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding-top: 24px;
    position: relative;
}

.org-chart li {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 12px 0 12px;
    position: relative;
}

/* Vertical line down from parent */
.org-chart li::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    border-left: 2px solid #c9d3dc;
    width: 0;
    height: 24px;
}

.org-chart > li::before {
    display: none; /* roots have no incoming line */
}

/* Horizontal connector across siblings */
.org-chart li:not(:only-child)::after {
    content: "";
    position: absolute;
    top: 24px;
    left: 0;
    right: 0;
    border-top: 2px solid #c9d3dc;
}

.org-chart li:first-child:not(:only-child)::after { left: 50%; }
.org-chart li:last-child:not(:only-child)::after { right: 50%; }
.org-chart > li:not(:only-child)::after { display: none; }

.org-node {
    background: #fff;
    border: 1px solid #dfe4ea;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    padding: 14px 16px;
    min-width: 160px;
    text-align: center;
}

.org-node-photo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 8px auto;
    display: block;
}

.org-node-photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #198754;
    color: #fff;
    font-weight: 700;
    font-size: 1.25rem;
}

.org-node-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.org-node-position {
    font-size: 0.8rem;
    color: #6c757d;
}

.org-node-office {
    font-size: 0.75rem;
    color: #adb5bd;
    margin-top: 2px;
}
