
/* ------------------------------------------------------------------ */
/* Tab nav container                                                    */
/* ------------------------------------------------------------------ */

#homepage-industry-tabs {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    gap: 0;
    flex-wrap: wrap;
    /* allow wrapping on small screens    */
}

/* ------------------------------------------------------------------ */
/* Individual tab buttons                                               */
/* ------------------------------------------------------------------ */

#homepage-industry-tabs .nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;

    padding: 1rem 0.5rem 0.75rem;
    border: none;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    background: transparent;

    color: rgba(255, 255, 255, 0.45);
    /* inactive: muted white    */
    font-size: 0.75rem;
    line-height: 1.2;
    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease;

    cursor: pointer;
    min-width: 0;
    /* flex shrink              */
}

/* Icon inside each button */
#homepage-industry-tabs .nav-link i {
    transition: color 0.2s ease;
}

/* ------------------------------------------------------------------ */
/* Hover state                                                          */
/* ------------------------------------------------------------------ */

#homepage-industry-tabs .nav-link:hover:not(.active) {
    color: rgba(255, 255, 255, 0.8);
    border-bottom-color: rgba(248, 141, 43, 0.4);
    /* orange tint      */
    background-color: rgba(255, 255, 255, 0.04);
}

/* ------------------------------------------------------------------ */
/* Active / selected state                                              */
/* ------------------------------------------------------------------ */

#homepage-industry-tabs .nav-link.active {
    color: #f88d2b;
    /* brand orange     */
    border-bottom-color: #f88d2b;
    background-color: rgba(248, 141, 43, 0.08);
}

#homepage-industry-tabs .nav-link.active i {
    color: #f88d2b;
}

/* ------------------------------------------------------------------ */
/* Industry label text                                                  */
/* ------------------------------------------------------------------ */

#homepage-industry-tabs .industry-label {
    margin-top: 0.35rem;
    font-size: 0.7rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    opacity: 0.85;
}

#homepage-industry-tabs .nav-link.active .industry-label {
    opacity: 1;
}

/* ------------------------------------------------------------------ */
/* Coverage count badge                                                 */
/* ------------------------------------------------------------------ */

#homepage-industry-tabs .industry-count {
    margin-top: 0.25rem;
    font-size: 0.65rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.01em;
    min-height: 1em;
    /* reserve space while loading           */
    transition: color 0.2s ease;
}

#homepage-industry-tabs .nav-link.active .industry-count {
    color: rgba(248, 141, 43, 0.75);
}

/* ------------------------------------------------------------------ */
/* KPI region tag — shown when a world region is selected on the map   */
/* ------------------------------------------------------------------ */

.homepage-kpi-region-tag {
    display: inline-block;
    margin-left: 0.35rem;
    padding: 0.1em 0.5em;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #f88d2b;
    border: 1px solid rgba(248, 141, 43, 0.45);
    border-radius: 3px;
    vertical-align: middle;
    white-space: nowrap;
}



#home-coverage-map-container {
    min-height: 400px;
    transition: opacity 0.3s ease;
}

/* ------------------------------------------------------------------ */
/* Map spinner                                                          */
/* ------------------------------------------------------------------ */

.homepage-map-spinner {
    pointer-events: none;
    z-index: 10;
}

/* ------------------------------------------------------------------ */
/* KPI row — subtle fade-in on switch                                   */
/* ------------------------------------------------------------------ */

.homepage-map-kpis {
    transition: opacity 0.25s ease;
}

/* ------------------------------------------------------------------ */
/* Responsive — smaller screens                                         */
/* ------------------------------------------------------------------ */

@media (max-width: 991.98px) {
    #homepage-industry-tabs {
        justify-content: flex-start;
    }

    #homepage-industry-tabs .nav-link {
        flex: 0 0 calc(20% - 1px);
        /* 5 per row on tablet            */
        min-width: 60px;
    }
}

@media (max-width: 575.98px) {
    #homepage-industry-tabs .nav-link {
        flex: 0 0 calc(25% - 1px);
        /* 4 per row on mobile            */
        padding: 0.75rem 0.25rem 0.6rem;
    }

    #homepage-industry-tabs .industry-label {
        font-size: 0.6rem;
    }

    #homepage-industry-tabs .industry-count {
        font-size: 0.55rem;
    }
}