/* Organism - Race Results */
 .race-results {
    text-align: right;
}

.race-results-stages {
    display: inline-block;
    width: 100%;
}

/** Molecule - Stage jersey filters **/

.race-results-jerseys {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

.race-results-jersey {
    display: flex;
    align-items: center;
    border: 1px solid var(--grey);
    padding: .25rem;
    cursor: pointer;
    transition: background-color .25s ease;
    -moz-transition: background-color .25s ease;
    -webkit-transition: background-color .25s ease;
}

.race-results-jersey:hover {
    background: var(--grey);
}

.race-results-jersey.active-jersey {
    border: 2px solid var(--secondary);
}

.race-results-jersey img {
    width: 35px;
    height: 35px;
}

.race-results-jersey span {
    padding: 0 .5rem;
}

.race-results-jersey .jersey-name {
    padding-left: 0;
}

.race-results-entry {
    width: 100%;
    text-align: left;
    animation: fadeInRight .2s ease-in-out;
    font-size: .9rem;
}

.race-results-entry--group {
    margin-bottom: 1rem;
    box-shadow: var(--box-shadow);
    -webkit-box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    animation: fadeInLeft .2s ease-in-out;
}

.race-results-more .race-results-entry:first-of-type {
    border-top: 5px solid var(--grey);
}

.race-results-more .race-results-entry:nth-of-type(even) {
    background: var(--greybg);
}

.race-results-more .race-results-entry:nth-of-type(odd) {
    background: var(--white);
}

.race-results-heading {
    display: inline-block;
    width: 100%;
    padding: .5rem 1rem;
    font-weight: 900;
    text-align: left;
    text-transform: uppercase;
    background: var(--primary);
    color: var(--white);
    border-radius: 5px 5px 0 0;
}

.race-results-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.race-results-position,
.race-results-rider,
.race-results-result {
    padding: .5rem 1rem;
}

.race-results-position {
    flex: 0 1 10%;
    text-align: center;
}

.race-results-position img {
    width: 50px;
    height: 50px;
}

.race-results-rider {
    flex: 1 1 58%;
    text-transform: capitalize;
}

.race-results-rider > p:first-of-type {
    font-weight: 900;
}

@media (min-width: 48em) {

    .race-results-jerseys {
        grid-template-columns: repeat(2, 1fr);
    }

    .race-results-rider {
        flex: 1 1 60%;
    }
}

/* Large devices (desktop */

@media (min-width: 64.063em) {
    .race-results-rider {
        flex: 1 1 69%;
    }
}

.race-results-result {
    flex: 1 1 20%;
}

.race-results-result {
    text-align: right;
}

.race-results-rider p,
.race-results-result p {
    margin: 0;
}

.race-results-position,
.race-results-result p {
    font-size: 1.25rem;
    font-weight: bold;
}

.race-results-more {
    display: inline-block;
    width: 100%;
    padding: 0;
    text-align: right;
    text-transform: uppercase;
    background: var(--grey);
    color: var(--darkgrey);
    border-radius: 0 0 5px 5px;
}

.race-results-more span {
    font-size: .85rem;
    margin: .35rem .5rem;
    cursor: pointer;
    transition: color .25s;
    -webkit-transition: color .25s;
    -moz-transition: color .25s;
}

.race-results-more span:hover {
    color: var(--secondary);
}

.race-results-more span::after {
    font-family: 'FontAwesome';
    margin-left: .25rem;
    color: var(--secondary);
}

.race-results-control-more::after {
    content: '\f107';
}

.race-results-control-less::after {
    content: '\f106';
}

.race-results-control-active {
    display: inline-block;
}

.race-results-control-inactive {
    display: none;
}

/* Hide Time Trial Results */
#entry-ETE {
    display: none;
}

/* Remove bug where stage winner was showing on `General Classification` after clicking `Overview` */

[data-selected-stage="0"] #entry-ITE {
    display: none !important;
}