.structure-hero {
    width: 100%;
    min-height: 363px;
    background: linear-gradient(90deg, #014a9f 0%, #83a6cf 100%);
    display: flex;
    align-items: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
    padding: 0 100px;
}

.structure-hero::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 380px;
    height: 100%;
    background-image: url("../img/batik-bg.png");
    background-size: cover;
    background-position: left center;
    opacity: 0.55;
    pointer-events: none;
}

.structure-hero .page-hero-container {
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 1;
}

.structure-hero .breadcrumb {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 20px;
    margin-bottom: 25px;
}

.structure-hero .breadcrumb a {
    color: rgba(255, 255, 255, 0.55);
}

.structure-hero .breadcrumb a:hover {
    text-decoration: underline;
}

.structure-hero .breadcrumb-icon {
    width: 13px;
    height: 13px;
    display: flex;
    align-items: center;
}

.structure-hero .breadcrumb .current {
    color: var(--white);
}

.structure-hero h1 {
    font-size: 50px;
    font-weight: 500;
    line-height: 1.1;
    margin-bottom: 12px;
}

.structure-hero p {
    font-size: 20px;
    max-width: 520px;
}

.structure-content {
    padding: 56px 24px 72px;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fb 100%);
}

.structure-content__inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.structure-content__header {
    margin-bottom: 28px;
}

.structure-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(90deg, #5f85bc 0%, #0e427d 100%);
    color: var(--white);
    border-radius: 999px;
    padding: 10px 20px;
    font-size: 18px;
    font-weight: 500;
    box-shadow: 0 10px 24px rgba(1, 74, 159, 0.16);
}

.structure-pill i {
    font-size: 20px;
}

.structure-chart-card {
    margin: 0;
    padding: 28px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(0, 74, 159, 0.08);
    box-shadow: 0 24px 60px rgba(0, 74, 159, 0.1);
}

.structure-chart-viewport {
    overflow-x: auto;
    overflow-y: hidden;
    border-radius: 20px;
    scrollbar-width: thin;
    scrollbar-color: rgba(1, 74, 159, 0.35) rgba(1, 74, 159, 0.08);
}

.structure-chart-viewport::-webkit-scrollbar {
    height: 10px;
}

.structure-chart-viewport::-webkit-scrollbar-track {
    background: rgba(1, 74, 159, 0.08);
    border-radius: 999px;
}

.structure-chart-viewport::-webkit-scrollbar-thumb {
    background: rgba(1, 74, 159, 0.35);
    border-radius: 999px;
}

/* =========================================================
   Org Tree — SVG skeleton (drawn first), then pills floated on top.
   Both layers share the same coordinate system (viewBox 1000x1100)
   so lines connect cleanly to pill icons regardless of viewport size.
   ========================================================= */
.org-tree {
    position: relative;
    width: 100%;
    min-width: 960px;
    aspect-ratio: 1000 / 1100;
    margin: 0 auto;
}

/* Skeleton: full-bleed SVG containing every connector line. */
.org-skeleton {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Pills: absolutely positioned via inline left/top/width %s. */
.org-pill {
    position: absolute;
    z-index: 2;
    text-decoration: none;
    border-radius: 999px;
    transition: transform 0.18s ease, filter 0.18s ease;
}

.org-pill img {
    display: block;
    width: 100%;
    height: auto;
    pointer-events: none;
    user-select: none;
}

/* Each Component Organization PNG was cropped from the master chart with a
   small connector stub baked in. Clip those stubs off so the only visible
   structure lines come from the SVG skeleton. */

.org-pill:hover {
    transform: translateY(-2px);
    filter: drop-shadow(0 6px 14px rgba(1, 74, 159, 0.18));
}

.org-pill:focus-visible {
    outline: 3px solid rgba(1, 74, 159, 0.45);
    outline-offset: 4px;
}

/* ---------- Synthetic Energy & Infrastructure pill ---------- */
.org-pill--synthetic {
    background: #eef1f6;
    padding: 6px 22px 6px 6px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.org-pill--synthetic .org-pill__icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #004a9f;
    border: 2px solid #fff;
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
    box-shadow: 0 3px 8px rgba(0, 74, 159, 0.25);
}

.org-pill--synthetic .org-pill__icon img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    filter: brightness(0) invert(1);   /* force the icon to white */
}

.org-pill--synthetic .org-pill__label {
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 700;
    color: #0a3573;
    line-height: 1.25;
}

@media (max-width: 992px) {
    .structure-hero {
        padding: 0 40px;
        min-height: 320px;
    }

    .structure-hero h1 {
        font-size: 42px;
    }

    .structure-hero p,
    .structure-pill {
        font-size: 18px;
    }

    .structure-content {
        padding: 48px 20px 64px;
    }

    .structure-chart-card {
        padding: 20px;
        border-radius: 24px;
    }

    /* Let tree scale freely on tablet — percentage positions handle layout */
    .org-tree {
        min-width: 0;
    }

    .org-pill--synthetic .org-pill__icon {
        width: 44px;
        height: 44px;
    }

    .org-pill--synthetic .org-pill__icon img {
        width: 28px;
        height: 28px;
    }

    .org-pill--synthetic .org-pill__label {
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .structure-hero {
        padding: 0 20px;
        min-height: 280px;
    }

    .structure-hero::after {
        width: 190px;
        opacity: 0.4;
    }

    .structure-hero .breadcrumb {
        font-size: 16px;
        margin-bottom: 20px;
        gap: 10px;
    }

    .structure-hero h1 {
        font-size: 32px;
    }

    .structure-hero p,
    .structure-pill {
        font-size: 16px;
    }

    .structure-content {
        padding: 40px 16px 56px;
    }

    .structure-content__header {
        margin-bottom: 20px;
    }

    .structure-pill {
        padding: 9px 16px;
    }

    .structure-chart-card {
        padding: 10px;
        border-radius: 20px;
    }

    .structure-chart-viewport {
        border-radius: 14px;
    }

    .org-tree {
        min-width: 0;
    }

    .org-pill--synthetic {
        gap: 5px;
        padding: 3px 8px 3px 3px;
    }

    .org-pill--synthetic .org-pill__icon {
        width: 32px;
        height: 32px;
    }

    .org-pill--synthetic .org-pill__icon img {
        width: 20px;
        height: 20px;
    }

    .org-pill--synthetic .org-pill__label {
        font-size: 9px;
    }
}
