.tf-candidate__list {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    --title-row: 0;
    --meta-row: 0;
    --taxonomies-row: 0;
    --excerpt-row: 0;
}

.tf-candidate__list:has(.tf-candidate__list-item-title){
    --title-row: 1;
}

.tf-candidate__list:has(.tf-candidate-meta){
    --meta-row: 1;
}

.tf-candidate__list:has(.tf-candidate-taxonomy){
    --taxonomies-row: 1;
}

.tf-candidate__list:has(.tf-candidate__list-item-excerpt){
    --excerpt-row: 1;
}

.tf-candidate__list-item{
    display: contents;
}
.tf-candidate__list-outer .tf-candidate__list-title{
    margin: 0 0 1rem 0;
    font-size: 1.7rem;
}

/* Use subgrid if supported */
@supports (grid-template-columns: subgrid) {
    .tf-candidate__list-item-link {
        display: grid;
        grid-row: span calc( calc( var(--title-row) + var(--meta-row) + var(--taxonomies-row) + var(--excerpt-row) ) + 1 );
        grid-template-rows: subgrid;
        grid-auto-flow: dense;
        gap: 0;
    }
}
.tf-candidate__list-item-link{
    border: 1px solid #ddd;
    background-color: white;
    padding: 1rem;
    color: #000;
    text-decoration: none;

    > *{
        color: #000;
    }
}
/** Read More button **/
.tf-candidate__list-item-link:after{
    content: "Read More";
    margin-top: 1rem;
    display: block;
    justify-self: end;
    color: white;
    background-color: var(--button-bg-color, #666);
    padding: 0.5rem 1rem;
}
.tf-candidate__list-item-link:hover{
    --button-bg-color: #333;
}


.tf-candidate__list-item-title{
    margin: 0;
    font-size: 1rem !important;
    margin-bottom: 0.5rem;
    > a{
        color: #000 !important;
        text-decoration: none;
    }
}
.tf-candidate__list-item-excerpt{
    margin-top: 1rem;
}

.tf-candidate__list-empty{
    border: 1px solid #ddd;
    padding: 1rem;
    background: #f9f9f9;
    text-align: center;
}