.royal-bn-energy-flow {
    --royal-bn-energy-default: #A4CBF1;
    --royal-bn-energy-hub: #A4CBF1;
    --royal-bn-energy-child: #A4CBF1;
    --royal-bn-energy-hover: #D3E5F9;
    --royal-bn-energy-border: #6F9FCC;
    --royal-bn-energy-line: #4E9BE8;
    --royal-bn-energy-node-core: #F28C28;
    --royal-bn-energy-node-ripple: rgba(242, 140, 40, 0.68);
    --royal-bn-energy-route: #509BDE;
    --royal-bn-energy-text: #244E70;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    color: var(--royal-bn-energy-text);
    container-type: inline-size;
}

.royal-bn-energy-flow *,
.royal-bn-energy-flow *::before,
.royal-bn-energy-flow *::after {
    box-sizing: border-box;
}

.royal-bn-energy-flow__summary {
    margin: 0 0 0.75rem;
    color: var(--royal-bn-energy-text);
    font-size: 0.875rem;
    line-height: 1.6;
    text-align: center;
}

.royal-bn-energy-flow__summary strong {
    color: #193F5C;
    font-weight: 700;
}

.royal-bn-energy-flow__summary span {
    margin-inline: 0.45rem;
    color: var(--royal-bn-energy-line);
}

.royal-bn-energy-flow__map-shell {
    position: relative;
    width: min(100%, 52rem);
    max-width: 100%;
    margin-inline: auto;
    aspect-ratio: 1 / 1;
}

.royal-bn-energy-flow__map {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.royal-bn-energy-flow .royal-business-network-map__province {
    fill: var(--royal-bn-energy-default);
    stroke: var(--royal-bn-energy-border);
    stroke-width: 0.75px;
    pointer-events: auto;
    vector-effect: non-scaling-stroke;
    transition: fill 160ms ease;
}

.royal-bn-energy-flow .royal-business-network-map__province--hub {
    fill: var(--royal-bn-energy-hub);
}

.royal-bn-energy-flow .royal-business-network-map__province--child {
    fill: var(--royal-bn-energy-child);
}

.royal-bn-energy-flow [data-province-path]:hover {
    fill: var(--royal-bn-energy-hover);
}

.royal-bn-energy-flow [data-map-inset] {
    fill: var(--royal-bn-energy-child);
    stroke: var(--royal-bn-energy-border);
    pointer-events: none;
    vector-effect: non-scaling-stroke;
}

.royal-bn-energy-flow__routes,
.royal-bn-energy-flow__beams,
.royal-bn-energy-flow__nodes,
.royal-bn-energy-flow__labels,
.royal-bn-energy-flow__particles,
.royal-bn-energy-flow__route,
.royal-bn-energy-flow__node {
    pointer-events: none;
}

.royal-bn-energy-flow__route {
    fill: none;
    stroke: var(--royal-bn-energy-route);
    stroke-width: 1.1px;
    stroke-linecap: round;
    opacity: 0.76;
    pointer-events: none;
    vector-effect: non-scaling-stroke;
}

.royal-bn-energy-flow__node-wave {
    fill: var(--royal-bn-energy-node-ripple);
    stroke: rgba(255, 255, 255, 0.78);
    stroke-width: 0.12;
    transform-box: fill-box;
    transform-origin: center;
    animation: royal-bn-energy-hub-pulse 2200ms ease-out infinite;
}

.royal-bn-energy-flow__node-wave--second {
    animation-delay: 1100ms;
}

.royal-bn-energy-flow__node-core {
    fill: var(--royal-bn-energy-node-core);
    stroke: #FFF4E8;
    stroke-width: 0.22;
}

.royal-bn-energy-flow [data-energy-trail],
.royal-bn-energy-flow [data-energy-head] {
    pointer-events: none;
}

.royal-bn-energy-flow__beam-trail {
    fill-rule: nonzero;
    stroke: none;
    filter: url(#royal-bn-energy-glow);
}
.royal-bn-energy-flow__beam-head {
    fill: #FFFFFF;
    stroke: #8FEAFF;
    stroke-width: 0.08px;
    vector-effect: non-scaling-stroke;
    filter: url(#royal-bn-energy-head-glow);
}

.royal-bn-energy-flow__node--hub .royal-bn-energy-flow__node-core {
    r: 0.9;
}

.royal-bn-energy-flow__node-label {
    fill: #FFFFFF;
    font-size: 1.45px;
    font-weight: 600;
    letter-spacing: 0px;
    paint-order: stroke;
    stroke: rgba(0, 0, 0, 0.82);
    stroke-width: 0.16px;
    stroke-linejoin: round;
    pointer-events: none;
}

.royal-bn-energy-flow__directory {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 1.5rem;
    width: min(100%, 58rem);
    max-width: 100%;
    margin: 0.75rem auto 0;
    padding: 0;
    list-style: none;
}

.royal-bn-energy-flow__directory-group {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 0.6rem;
    min-width: 0;
    padding: 0.45rem 0;
    border-bottom: 1px solid rgba(111, 159, 204, 0.55);
}

.royal-bn-energy-flow__directory-group > strong {
    font-size: 0.875rem;
    font-weight: 700;
}

.royal-bn-energy-flow__directory-group ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem 0.65rem;
    min-width: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.royal-bn-energy-flow__directory-group li {
    min-width: 0;
    max-width: 100%;
    color: #355E7E;
    font-size: 0.875rem;
    overflow-wrap: anywhere;
}

.royal-bn-energy-flow__empty {
    margin: 0;
    padding: 2rem 1rem;
    color: #355E7E;
    text-align: center;
}

@container (max-width: 639px) {
    .royal-bn-energy-flow__map-shell {
        width: 100%;
    }

    .royal-bn-energy-flow__directory {
        grid-template-columns: minmax(0, 1fr);
    }

    .royal-bn-energy-flow__directory-group {
        grid-template-columns: minmax(4.5rem, max-content) minmax(0, 1fr);
    }

}

@container (min-width: 740px) and (max-width: 849px) { .royal-bn-energy-flow__node-label { font-size: 1.65px; stroke-width: 0.18px; } }
@container (min-width: 640px) and (max-width: 739px) { .royal-bn-energy-flow__node-label { font-size: 1.9px; stroke-width: 0.21px; } }
@container (min-width: 520px) and (max-width: 639px) { .royal-bn-energy-flow__node-label { font-size: 2.1px; stroke-width: 0.25px; } }
@container (min-width: 400px) and (max-width: 519px) { .royal-bn-energy-flow__node-label { font-size: 2.6px; stroke-width: 0.3px; } }
@container (max-width: 399px) { .royal-bn-energy-flow__node-label { font-size: 3.2px; stroke-width: 0.4px; } }

@media (prefers-reduced-motion: reduce) {
    .royal-bn-energy-flow .royal-business-network-map__province {
        transition: none;
    }

    .royal-bn-energy-flow__node-wave { animation: none; }
    .royal-bn-energy-flow__node-wave--first { opacity: 0.32; transform: scale(1); }
    .royal-bn-energy-flow__node-wave--second { display: none; }
}

@keyframes royal-bn-energy-hub-pulse {
    0% { opacity: 0.78; transform: scale(0.62); }
    72%, 100% { opacity: 0; transform: scale(1.9); }
}
