body .site-header .brand:has([data-smmcalc-logo]) { height: auto; min-height: 44px; }
body .site-header img[data-smmcalc-logo] { max-height: none; }
/* SMMcalc phone usability: readable fields, reachable controls and clear reading space. */
[data-blog-affiliate-bottom-banner][data-smmcalc-widget-suppressed],
[data-blog-survey-bottom-banner][data-smmcalc-widget-suppressed],
[data-blog-affiliate-bottom-banner][data-smmcalc-input-suppressed],
[data-blog-survey-bottom-banner][data-smmcalc-input-suppressed],
[data-blog-affiliate-bottom-banner][data-smmcalc-landscape-suppressed],
[data-blog-survey-bottom-banner][data-smmcalc-landscape-suppressed] { display: none !important; }

@media (max-width: 860px) {
  body .site-header #primary-navigation.is-open {
    max-height: calc(100dvh - 160px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}
@media (max-width: 760px), (max-height: 500px) and (max-width: 960px) {
  body .site-header .brand { min-height: 44px; }
  body .contact-grid { gap: 24px; }
  body .contact-grid .page-title { margin-bottom: 0; }
  body .blog-article-page .blog-prose .article-language-picker > summary {
    min-width: 44px;
    min-height: 44px;
  }
  body .blog-article-page .blog-prose .article-language-picker__menu a {
    min-width: 44px;
    min-height: 44px;
  }
  body .article-table-search input,
  body .affiliate-search :is(input,select),
  body .home-discount-library__search input {
    min-height: 44px;
    font-size: 16px;
  }
  body .blog-magazine .category-pills a,
  body .tools-page .affiliate-toolbar .category-pills a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 14px;
    font-size: 14px;
  }
  body .site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 12px; }
  body .site-footer nav a,
  body .site-footer .footer-contact a {
    display: inline-flex;
    align-items: center;
    min-width: 44px;
    min-height: 44px;
    padding: 8px 2px;
    line-height: 1.45;
  }
  body .tools-page .affiliate-sources a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 0;
    font-size: 14px;
    line-height: 1.5;
  }
  body .home-discount-library__coupon button { font-size: 14px; min-width: 44px; }
  body .blog-aside__share .share-btn { min-width: 44px; min-height: 44px; }
  body .blog-popup .blog-survey__topbar { min-height: 54px; padding-right: 72px; }
  body .blog-article-page .blog-mobile-widget > summary { background: #edf2e3; }
  body .blog-article-page .article-table-card-title { background: #edf2e3; }
  body .blog-survey-bottom,
  body .blog-survey-bottom.blog-affiliate-bottom--standard,
  body .blog-survey-bottom.blog-affiliate-bottom--discount {
    left: max(10px,env(safe-area-inset-left));
    right: max(10px,env(safe-area-inset-right));
    bottom: max(10px,env(safe-area-inset-bottom));
    width: auto;
    grid-template-columns: minmax(0,1fr) minmax(98px,124px) 44px;
    gap: 8px;
    padding: 8px;
    border-radius: 12px;
    transform: none;
  }
  body .blog-affiliate-bottom .blog-affiliate-bottom__brand { gap: 6px; }
  body .blog-affiliate-bottom .affiliate-tool-logo.blog-affiliate-bottom__logo { width: 28px; height: 28px; }
  body .blog-affiliate-bottom .affiliate-tool-logo.blog-affiliate-bottom__logo img { width: 22px; height: 22px; }
  body .blog-survey-bottom .blog-survey-bottom__copy strong {
    display: block;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  body .blog-survey-bottom .blog-survey-bottom__button {
    min-height: 44px;
    padding: 8px;
    font-size: 13px;
    line-height: 1.25;
  }
  body .blog-survey-bottom .blog-survey-bottom__close {
    position: static;
    grid-column: 3;
    grid-row: 1;
    width: 44px;
    height: 44px;
    margin: 0;
    align-self: center;
  }
  body .blog-survey-bottom.blog-affiliate-bottom--discount {
    grid-template-columns: minmax(0,1fr) 44px;
  }
  body .blog-affiliate-bottom--discount .blog-affiliate-bottom__brand { display: none; }
  body .blog-affiliate-bottom--discount .blog-affiliate-bottom__actions {
    grid-column: 1;
    grid-row: 1;
    gap: 8px;
  }
  body .blog-affiliate-bottom--discount .blog-survey-bottom__close { grid-column: 2; }
}
@media (max-height: 500px) and (max-width: 960px) {
  body .blog-survey-bottom { display: none !important; }
  body .blog-popup { padding: 8px; }
  body .blog-popup .blog-popup__panel { max-height: calc(100dvh - 16px); min-height: 0; }
  body .blog-popup .blog-survey__viewport { max-height: calc(100dvh - 100px); }
  body .blog-popup:has(.blog-survey__intro:not([hidden])) .blog-survey__viewport { max-height: calc(100dvh - 24px); }
}

/* Branded article tables grow vertically; their inner scrollers retain horizontal comparison. */
@media (max-width: 760px) {
  body .smmcalc-qwen-article .article-table-scroll.smmcalc-qwen-table {
    max-height: none;
    height: auto;
  }
}

@media (max-width: 760px) {
  body .smmcalc-qwen-article .smmcalc-qwen-table:has(> .article-table-shell--cards) > .smmcalc-qwen-table__hint {
    display: none;
  }
}
