/* Falcon 3.6.19.74 — homepage W2DC category equal-height cards */

/* Desktop/tablet: W2DC category names can wrap to two lines without making
   one green tile taller than its neighbours. */
body.home .w2dc-categories-table .w2dc-categories-root,
body.home .w2dc-categories-table .w2dc-category-item {
    height: 168px !important;
    min-height: 168px !important;
    max-height: 168px !important;
    box-sizing: border-box !important;
}

body.home .w2dc-categories-table .w2dc-categories-root > a,
body.home .w2dc-categories-table .w2dc-category-item > a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    box-sizing: border-box !important;
}

/* Keep the text/count label centred even when a long category wraps. */
body.home .w2dc-categories-table .w2dc-term-label,
body.home .w2dc-categories-table .w2dc-term-label-justify {
    line-height: 1.35 !important;
    text-align: center !important;
}

/* Phones get a slightly shorter but still equal card height. */
@media (max-width: 600px) {
    body.home .w2dc-categories-table .w2dc-categories-root,
    body.home .w2dc-categories-table .w2dc-category-item {
        height: 145px !important;
        min-height: 145px !important;
        max-height: 145px !important;
    }
}
