/* Blog landing page: compact panels using the existing platform palette. */
.blog-home {
    min-width: 0;
    padding: 12px;
    color: var(--font-color);
    font-size: 12px;
    line-height: 1.4;
}

.blog-home,
.blog-home * {
    box-sizing: border-box;
}

.blog-home .blog-home__tags {
    display: flex;
    align-items: flex-start;
    min-width: 0;
    gap: 6px;
}

/* Cards keep their width, with a single column on smaller screens. */
.blog-home .blog-home__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    min-width: 0;
}

.blog-home .blog-home__card {
    flex: 0 0 300px;
    max-width: 100%;
    height: 250px;
    min-width: 0;
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    background: var(--box-color);
}

.blog-home .blog-home__card:hover {
    border-color: var(--heading-color);
}

.blog-home .blog-home__image-link {
    display: block;
    height: 168px;
    border-radius: 7px 7px 0 0;
}

.blog-home .blog-home__image-link img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
}

.blog-home .blog-home__card-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 26px minmax(0, 1fr);
    gap: 8px;
    min-width: 0;
    min-height: 0;
    height: calc(100% - 168px);
    padding: 10px;
}

.blog-home .blog-home__card h2 {
    min-width: 0;
    margin: 0;
    font-size: 18px !important;
    font-weight: 600;
    line-height: 1.4;
}

.blog-home .blog-home__card h2 a {
    color: inherit;
    text-decoration: none;
}

.blog-home .blog-home__tags {
    min-height: 0;
}

.blog-home .blog-home__card h2 a:hover {
    text-decoration: underline;
}

.blog-home .blog-home__tags .tag_card {
    max-width: 100%;
    min-height: 24px;
    padding: 3px 6px;
    border-radius: 5px;
    font: inherit;
    font-size: 10px;
    line-height: 1.4;
    text-align: left;
    overflow-wrap: anywhere;
}

.blog-home .blog-home__tags > .tag_card {
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.blog-home .blog-home__tags-menu {
    position: relative;
    flex: none;
    margin-left: auto;
}

.blog-home .blog-home__tags-menu summary {
    list-style: none;
}

.blog-home .blog-home__tags-menu summary::-webkit-details-marker {
    display: none;
}

.blog-home .blog-home__tags-menu[open] {
    z-index: 2;
}

.blog-home .blog-home__tags-list {
    position: absolute;
    bottom: calc(100% + 6px);
    right: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    width: min(278px, calc(100vw - 40px));
    max-height: 180px;
    overflow: auto;
    padding: 10px;
    border: 1px solid var(--secondary-color);
    border-radius: 6px;
    background: var(--pure-color);
    box-shadow: 0 4px 14px var(--box-color);
}

.blog-home .blog-home__empty {
    width: 100%;
    margin: 0;
    padding: 12px;
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    background: var(--box-color);
    color: var(--font-label-color);
}

.blog-home a:focus-visible,
.blog-home button:focus-visible,
.blog-home summary:focus-visible,
.blog-home input:focus-visible {
    outline: 2px solid var(--terciary-color);
    outline-offset: 2px;
}

@media (max-width: 720px) {
    .blog-home {
        padding: 8px;
    }

}
