.aci-page {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.aci-left {
    flex: 0 0 300px; 
    order: 1;
    display: flex;
    flex-direction: column;    
    gap: 25px;
}

.aci-center {
    flex: 1;
    order: 2;
}

.aci-right {
    flex: 0 0 250px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    order: 3;
}

@media (max-width: 768px) {
    .aci-page {
        flex-direction: column;
        margin-top: 0px;
    }

    .aci-left   { order: 2; } 
    .aci-center { order: 1; } 
    .aci-right  { order: 3; } 

    .aci-left, .aci-center, .aci-right {
        flex: 1 1 auto;
    }
}

.aci-details-wrapper {
    width: 100%;
    margin-bottom: 30px;
}

.chart-legend-inline {
    display: flex;
    align-items: baseline;
    gap: 12px;
    font-family: 'Inter', sans-serif; 
}

.legend-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
}

.legend-pct {
    font-size: 0.95rem;
    font-weight: 600;
}

.pct-up { color: #26a69a; }
.pct-down { color: #ef5350; }

#chart-legend {
    transition: all 0.1s ease;
}

.hero-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 0;
    margin-bottom: 20px;
    overflow: hidden; 
}

.hero-image {
    flex-shrink: 0;
    width: 250px;            
    display: flex;
    justify-content: center;
    contain: layout paint;    
}

.hero-image img {
    max-width: 100%;
    height: auto;
    display: block;
}

.hero-image {
    animation: float 4s ease-in-out infinite;
}

.hero-aci h1 { 
    font-family: var(--font-heading);
    font-size: 3.8rem;                    
    line-height: 1.18;
    letter-spacing: -0.015em;
    font-weight: 500;
    color: var(--color-cta);
    font-synthesis: none;
    margin-bottom: 0px;
    margin-top: 0px;
}

.hero-aci p {
    color: var(--color-text);
    line-height: 1.6;
    font-size: 1.15rem; 
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .hero-wrapper {
        flex-direction: column;
        text-align: left;
    }

    .hero-aci h1 {
        font-size: 3.10rem;
    }    

    .hero-aci p {
        font-size: 1.0rem;
    }    
}