/* Mobile font-size fixes — Yandex MF-checker нашёл 'слишком мелкий текст'.
   Минимум 12px на мобильных. */
@media (max-width: 767.98px) {
    /* Глобальный фикс horizontal scroll: блоки с margin: 0 -20px (posts-filter, sliders)
       не должны создавать общий горизонтальный скролл документа */
    html, body { overflow-x: hidden !important; max-width: 100vw; }

    /* Footer */
    .footer-stat-label,
    .footer-copyright,
    .market-time,
    figcaption.quote-author { font-size: 12px !important; }
    footer p,
    footer .disclaimer,
    footer .footer-disclaimer,
    .site-footer p,
    .site-footer .footer-content p { font-size: 12px !important; line-height: 1.5 !important; }

    /* Header tools dropdown labels — повышенная специфичность
       (header-tools.css загружается позже в очереди) */
    html body[class] .ht-dropdown .ht-dropdown-label,
    html body .ht-dropdown.ht-dropdown .ht-dropdown-label { font-size: 12px !important; }

    /* Mega menu featured items 'Популярное' label */
    .ibmm-featured-title,
    .ibmm-featured-title span,
    .ibmm-panel .ibmm-featured-title { font-size: 12px !important; }

    /* Мета поста */
    .meta-label,
    span.meta-label,
    .post-meta time,
    .single-post-meta time,
    .entry-meta time,
    article time,
    .post time { font-size: 12px !important; }

    /* Related articles widget */
    .related-article-type,
    .related-article-date,
    .related-articles time,
    .related-articles .post-date { font-size: 12px !important; }

    /* Карточка автора */
    .author-card-position,
    .author-card-bio,
    .all-posts-link,
    .author-role-badge,
    span.author-role-badge { font-size: 12px !important; }

    /* Author archive: дисклеймер, badges */
    .author-disclaimer,
    .author-disclaimer p,
    .author-bio p,
    .expertise-tag,
    .contact-label,
    .stat-label,
    .post-category-badge,
    .post-date,
    .experience-badge { font-size: 12px !important; }

    /* Telegram banner badge */
    .tg-banner__badge { font-size: 12px !important; }

    /* Risk warning — правильные класс-имена .risk-notice-block/.risk-notice-content */
    .risk-notice,
    .risk-notice-block,
    .risk-notice-content,
    .risk-warning { font-size: 13px !important; }
    .risk-notice strong,
    .risk-notice-block strong,
    .risk-notice-content strong,
    .risk-warning strong,
    .risk-notice-content p strong { font-size: 12px !important; }

    /* Sources block */
    .sources-toggle,
    button.sources-toggle,
    .sources-list a,
    .sources-list li,
    .post-sources a,
    .post-sources li { font-size: 12px !important; }

    /* Service review pages */
    .filter-button-text,
    .helpful-button,
    .review-comments-toggle,
    .review-topic,
    .review-meta,
    time.review-date,
    .verified-badge,
    .platform-card-reviews-count,
    .review-hero-badge,
    span.review-hero-badge,
    .report-button,
    button.report-button,
    .filter-btn,
    button.filter-btn,
    .filter-button,
    button.filter-button,
    label[for] { font-size: 12px !important; }

    /* Action buttons */
    a.action-button.register-button,
    a.action-button.expert-button,
    .action-button.register-button,
    .action-button.expert-button { font-size: 12px !important; }

    /* Popular posts */
    .popular-post-date,
    .popular-post-views { font-size: 12px !important; }

    /* Generic fallback: если в посте автор написал <li> с font-size:10px — поднять */
    .entry-content li[style*='10px'],
    .entry-content li[style*='11px'],
    .entry-content p[style*='10px'],
    .entry-content p[style*='11px'] { font-size: 12px !important; }
}

/* Доп. селекторы (вторая итерация диагностики) */
@media (max-width: 767.98px) {
    /* Хлебные крошки */
    .breadcrumb-nav,
    .breadcrumb-nav span,
    .breadcrumb-nav a,
    .breadcrumb-nav .breadcrumb-separator { font-size: 12px !important; }

    /* Financial disclaimer (под обзорами) */
    .financial-disclaimer,
    .financial-disclaimer p,
    .financial-disclaimer strong { font-size: 12px !important; line-height: 1.5 !important; }
}

/* Доп. селекторы (третья итерация) */
@media (max-width: 767.98px) {
    /* Имя автора в meta-блоке статьи */
    .article-meta-block .author-details a,
    .article-meta-block .author-details span,
    .author-expert-info .author-details span,
    .author-expert-info .author-details a,
    .author-details > span,
    .author-details a span { font-size: 12px !important; }

    /* Time без класса в article-meta */
    .article-meta-block time,
    .meta-info-item time,
    .date-item time,
    .dates-info time { font-size: 12px !important; }

    /* YMYL disclaimer на странице автора */
    .ymyl-disclaimer,
    .ymyl-disclaimer p,
    .ymyl-disclaimer h4 { font-size: 12px !important; line-height: 1.5 !important; }

    /* Table of Contents numbering */
    .stoc-num,
    span.stoc-num,
    .toc-num,
    .toc-list .toc-num { font-size: 12px !important; }
}

/* Footer contact-info (последняя итерация) */
@media (max-width: 767.98px) {
    .contact-info,
    .contact-info p,
    .contact-info span,
    .contact-info a,
    [itemprop='contactType'] { font-size: 12px !important; }
}

/* Footer ссылки + service-review filter group labels */
@media (max-width: 767.98px) {
    .footer-links a,
    .footer-links span,
    .footer-links [itemprop='name'] { font-size: 12px !important; }
    .filter-group span,
    .filter-group label,
    .filter-group [id$='-filter-label'] { font-size: 12px !important; }
}
