/* Mobile category page: show every subcategory. The old horizontal scrolling
   row hid the rest of the links without a visual indication. */
@media (max-width: 720px) {
    .category-page .category-subnav {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        overflow: visible;
        flex-wrap: initial;
        width: 100%;
        padding: 0;
    }
    .category-page .category-subnav a {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 0;
        width: 100%;
        min-height: 42px;
        padding: 9px 10px;
        text-align: center;
        white-space: normal;
        overflow-wrap: anywhere;
        line-height: 1.35;
        font-size: 11px;
        border-radius: 10px;
    }
}
@media (max-width: 560px) {
    .category-page .category-subnav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 340px) {
    .category-page .category-subnav {
        grid-template-columns: minmax(0, 1fr);
    }
}
