/**
 * List. No own background: the row light/dark color wins.
 * Place name uses the theme heading size. Paragraph size comes from the
 * Uncode text-size class on the text. Two columns start at 960px.
 */

.graniteandgreen-list__items {
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: start;
}

.graniteandgreen-list__item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: var(--graniteandgreen-spacing-lg);
    row-gap: var(--graniteandgreen-spacing-xs);
    align-items: baseline;
    margin: 0;
    padding-block: var(--graniteandgreen-spacing-lg);
    border-bottom: var(--graniteandgreen-border-width) solid color-mix(in srgb, currentColor 18%, transparent);
}

.graniteandgreen-list__item:first-child {
    border-top: var(--graniteandgreen-border-width) solid color-mix(in srgb, currentColor 18%, transparent);
}

.graniteandgreen-list h3.graniteandgreen-list__title {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
    color: inherit;
    font-weight: var(--graniteandgreen-font-weight-normal);
    line-height: var(--graniteandgreen-line-height-tight);
}

.graniteandgreen-list span.graniteandgreen-list__label {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    margin: 0;
    color: rgba(var(--graniteandgreen-color-copper), 1);
    font-weight: var(--graniteandgreen-font-weight-normal);
    font-style: normal;
    line-height: var(--graniteandgreen-line-height-tight);
    white-space: nowrap;
}

.graniteandgreen-list__text {
    grid-column: 1 / -1;
    grid-row: 2;
    margin: 0;
    color: color-mix(in srgb, currentColor 72%, transparent);
}

@media (min-width: 960px) {
    .graniteandgreen-list--cols-2 .graniteandgreen-list__items {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: var(--graniteandgreen-spacing-3xl);
    }

    .graniteandgreen-list--cols-2 .graniteandgreen-list__item:nth-child(2) {
        border-top: var(--graniteandgreen-border-width) solid color-mix(in srgb, currentColor 18%, transparent);
    }
}
