@import "styles.css";

/* mobile first */

section {
    border-bottom: 1px solid var(--accent-color);
}

section:last-child {
    border: 0;
}

.section_header {
    display: inline-block;
    min-width: 50%;
    padding: 2rem 0;
}

.section_name {
    font-family: var(--feature-font);
    font-size: 1.5rem;
    padding-bottom: 1rem;
}

.grid-auto-layout {
    --grid-min-col-size: 25rem;

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(var(--grid-min-col-size), 100%), 1fr));
    gap: 1rem;
    
    padding-bottom: 2.25rem;
}

.grid-card {
    border: 1px solid #bababa;
    border-radius: 5px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
}

.grid-card-title {
    font-family: var(--feature-font);
    line-height: 1.3rem;
    padding: 1rem;
    background-color: #bababa;
    color: #242124;

    white-space: normal;
    overflow: visible;
    text-overflow: normal;
}

.grid-card-title a {
    color: #242124;
}

.grid-card-info {
    padding: 0 1rem 1rem 1rem;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.5rem;
}

.grid-card-info .divider {
    display: none;
}

/* desktop */

@media (min-width: 500px) {
    .grid-card-info {
        flex-direction: row;
        justify-content: flex-start;
        gap: 1.5rem;
    }
    
    .grid-card-title {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .grid-card-info .divider {
        display: block;
    }
}

@media (min-width: 820px) {
    .section_header {
        min-width: 200px;
    }
}
