.rmm-home-market-slot:empty {
    display: block;
    block-size: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.rmm-home-markets {
    --rmm-home-gap: .65rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, max(13rem, calc((100% - var(--rmm-home-gap)) / 2))), 1fr));
    gap: var(--rmm-home-gap);
    margin: 0;
    padding: 0;
    list-style: none;
}

.rmm-home-markets .rmm-home-card {
    min-inline-size: 0;
    margin: 0;
}

.rmm-home-markets .rmm-home-card .rmm-home-card-link {
    display: grid;
    grid-template-columns: clamp(4.5rem, 18vw, 6rem) minmax(0, 1fr);
    gap: .65rem;
    box-sizing: border-box;
    min-block-size: 100%;
    padding: .55rem;
    border-radius: 0;
    background: var(--base-2, #f4f5f6);
    color: var(--contrast, #171426);
    text-decoration: none;
}

.rmm-home-markets .rmm-home-card .rmm-home-card-link:focus-visible {
    outline: 2px solid var(--accent, #c60008);
    outline-offset: 2px;
}

.rmm-home-markets .rmm-home-card-media {
    --rmm-media-background: var(--base-3, #fff);
    aspect-ratio: 1;
    align-self: start;
}

.rmm-home-markets .rmm-home-card-content {
    display: grid;
    min-inline-size: 0;
    gap: .2rem;
    align-self: center;
    overflow-wrap: anywhere;
}

.rmm-home-markets .rmm-home-card-date {
    color: var(--contrast-2, #51515e);
    font-size: .82em;
    line-height: 1.35;
}

.rmm-home-markets .rmm-home-card-title {
    margin: 0;
    color: inherit;
    font: inherit;
    font-size: clamp(.96rem, 1.3vw, 1.08rem);
    font-weight: 700;
    line-height: 1.28;
}

.rmm-home-markets .rmm-home-card-link:is(:hover, :focus-visible) .rmm-home-card-title {
    text-decoration: underline;
    text-underline-offset: .15em;
}
