/* Readable text and touch controls on phones. */
@media (max-width: 767px) {
  html { font-size: 100%; }
  body { font-size: 17px; line-height: 1.65; }
  .entry-content, .entry-content p, .entry-content li, .elementor-image-box-description {
    font-size: 17px !important; line-height: 1.7 !important; overflow-wrap: break-word;
  }
  .single .entry-title, .page:not(.home) .entry-title, .archive .page-title, .search .page-title {
    font-size: 26px !important; line-height: 1.3 !important; overflow-wrap: break-word;
  }
  .home .article__title, .home h4.elementor-heading-title, .archive .entry-title, .blog .entry-title, .search .entry-title {
    font-size: 20px !important; line-height: 1.4 !important; overflow-wrap: break-word;
  }
  .home h6.elementor-heading-title, .entry-meta, .cat-links { font-size: 14px !important; line-height: 1.5 !important; }
  .elementor-button, #colophon .wpforms-submit { font-size: 14px !important; line-height: 1.4 !important; min-height: 44px; }
  #ast-mobile-header .main-header-menu-toggle, #ast-mobile-header .ast-search-menu-icon .slide-search, #menu-toggle-close { min-width: 44px; min-height: 44px; }
  .ast-mobile-popup-drawer .menu-link { font-size: 16px !important; line-height: 1.5 !important; min-height: 44px; padding-top: 10px; padding-bottom: 10px; }
  #colophon .menu-link { display: inline-flex; align-items: center; font-size: 15px; line-height: 1.5; min-height: 44px; }
  #colophon .footer-social-item { min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
  #colophon h4 { font-size: 20px; line-height: 1.4; }
  #colophon input, .search-field, .comment-form input, .comment-form textarea { font-size: 16px !important; min-height: 44px; }
  .poistine-form-notice { font-size: 14px; line-height: 1.6; }
}

@media (max-width: 767px) {
  #ast-mobile-header .site-logo-img { padding-right: 0; }
  #ast-mobile-header .custom-logo { width: clamp(140px, 42vw, 160px); }
  #ast-mobile-header .site-header-primary-section-right .ast-builder-layout-element { padding-left: 0; padding-right: 0; }
  #ast-mobile-header .ast-builder-grid-row { column-gap: 10px; }
}

@media (max-width: 767px) {
  #ast-mobile-header .ast-search-menu-icon { position: static; }
  #ast-mobile-header .ast-search-menu-icon.ast-search-open .search-form {
    top: 100%; left: 16px; right: 16px; width: auto; max-width: none; z-index: 1000; background: #fff; transform: none;
  }
  #ast-mobile-header .ast-search-open .search-form label { display: block; width: 100%; }
  #ast-mobile-header .ast-search-open .search-field { width: 100%; min-height: 48px; box-sizing: border-box; padding: 12px; }
  .ast-archive-description { padding: 24px 20px; }
}

@media (max-width: 767px) {
  .search .ast-archive-description, .archive .ast-archive-description { padding: 24px 20px !important; }
}

/* Hide the conceptual selection on the homepage; keep its content intact. */
.home.page-id-576 .elementor-element.elementor-element-e6d548b {
  display: none !important;
}

/* Hide the newsletter setup notice in the footer. */
#colophon #wpforms-form-3375 .poistine-form-notice {
  display: none !important;
}

/* Compact, responsive cards in All Articles. */
.blog #content > .ast-container { max-width: 1240px; }
.blog #primary { width: 100%; max-width: none; }
.blog #main > .ast-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; }
.blog #main > .ast-row::before, .blog #main > .ast-row::after { display: none; }
.blog #main > .ast-row > article.ast-article-post { width: auto; min-width: 0; margin: 0; padding: 14px; border: 0; border-radius: 8px; box-shadow: 0 0 8px rgba(0, 0, 0, 0.1); }
.blog #main .ast-article-inner, .blog #main .post-content { display: flex; flex-direction: column; height: 100%; min-width: 0; }
.blog #main .post-content { padding: 0; }
.blog #main .ast-blog-featured-section { margin: 0 0 14px; }
.blog #main .post-thumb-img-content img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; margin: 0; }
.blog #main .entry-title { font-size: 20px; line-height: 1.4; margin: 0 0 10px; overflow-wrap: anywhere; }
.blog #main .entry-header { margin-bottom: 8px; }
.blog #main .entry-meta { font-size: 14px; line-height: 1.5; }
.blog #main .ast-excerpt-container { display: none; }
.blog #main .ast-read-more-container { margin: auto 0 0; padding-top: 12px; }
.blog #main .ast-read-more-container a { display: inline-flex; align-items: center; min-height: 44px; }
.home .poistine-card-placeholder { display: grid; place-items: center; height: 100%; background: #eee; font-size: 24px; font-weight: bold; }
@media (max-width: 1024px) { .blog #main > .ast-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .blog #main > .ast-row { grid-template-columns: minmax(0, 1fr); gap: 20px; } }