/* Preserve the theme's typography and desktop category layout. */
.idodoc-blog-categories-toggle { display: none; }
@media (max-width: 767px) {
    body.page-id-79 #main { padding-top: 24px; }
    body.page-id-79 #content > .filter { margin-bottom: 24px; }
    body.page-id-79 .filter.idodoc-blog-filter-ready {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }
    body.page-id-79 .idodoc-blog-filter-ready .idodoc-blog-categories-toggle {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        box-sizing: border-box;
        min-height: 48px;
        margin: 0;
        padding: 12px 16px;
        border: 1px solid #d9e2ee;
        border-radius: 5px;
        background: #f4f8fc;
        color: #333;
        font: inherit;
        text-align: left;
        box-shadow: none;
        cursor: pointer;
    }
    body.page-id-79 .idodoc-blog-categories-toggle > span:first-child { flex-shrink: 0; }
    body.page-id-79 .idodoc-blog-selected-category {
        min-width: 0;
        margin-left: auto;
        white-space: normal;
        overflow-wrap: break-word;
    }
    body.page-id-79 .idodoc-blog-chevron {
        flex: 0 0 7px;
        width: 7px;
        height: 7px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(45deg);
        margin: -4px 2px 0 4px;
    }
    body.page-id-79 .idodoc-blog-categories-toggle[aria-expanded="true"] .idodoc-blog-chevron {
        transform: rotate(225deg);
        margin-top: 4px;
    }
    body.page-id-79 .idodoc-blog-filter-ready .filter-categories {
        display: none;
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }
    body.page-id-79 .idodoc-blog-filter-ready .idodoc-blog-categories-toggle[aria-expanded="true"] + .filter-categories {
        display: flex;
        flex-wrap: wrap;
        align-items: stretch;
        justify-content: flex-start;
        gap: 8px;
        margin: 12px 0 0;
        padding: 0;
    }
    body.page-id-79 .idodoc-blog-filter-ready .filter-categories a {
        display: flex;
        align-items: center;
        flex: 0 1 auto;
        max-width: 100%;
        min-width: 0;
        margin: 0;
        padding: 10px 12px;
        min-height: 44px;
        border: 1px solid #d9e2ee;
        border-radius: 5px;
        box-sizing: border-box;
        white-space: normal;
        overflow-wrap: break-word;
        text-align: left;
    }
    body.page-id-79 .idodoc-blog-categories-toggle:focus-visible {
        outline: 2px solid #237eaa;
        outline-offset: 3px;
    }
}
