/* ==========================================================================
   Mobile-specific refinements for the "Mint Soft" theme.
   Base (mobile-first) rules live in styles.css; this file only adds
   phone-only polish and safe-area handling.
   ========================================================================== */

@media (max-width: 899px) {
  header {
    padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 12px;
  }

  header .brand-name {
    font-size: 18px;
  }

  /* full-screen menu handles its own scroll */
  .mobile-menu-panel {
    overflow-y: auto;
    padding: calc(20px + env(safe-area-inset-top, 0px)) 20px calc(20px + env(safe-area-inset-bottom, 0px));
  }

  .mobile-menu-links a:last-child {
    border-bottom: none;
  }

  main {
    padding: 18px 16px 52px;
  }

  .hero {
    padding: 26px 0 24px;
  }

  .hero-lead {
    font-size: 14.5px;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-ghost {
    flex: 1 1 auto;
    justify-content: center;
  }

  .section-header {
    padding-top: 26px;
  }

  .section-divider {
    display: none;
  }

  /* tight news-list rows on phones */
  .article-card {
    padding: 14px 0;
  }

  .article-card img.lazy-image {
    width: 96px;
    border-radius: 12px;
  }

  .article-title {
    font-size: 15px;
  }

  .article-card p {
    font-size: 12.5px;
    -webkit-line-clamp: 2;
  }

  .skeleton-card:last-child {
    margin-bottom: 0;
  }

  .pagination {
    padding: 18px 14px;
  }

  .page-jump {
    width: 100%;
    justify-content: center;
  }

  .page-numbers {
    max-width: 300px;
  }

  footer {
    margin-top: 44px;
  }

  .footer-container {
    padding: 34px 16px calc(22px + env(safe-area-inset-bottom, 0px));
  }

  #backToTop {
    right: 14px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    width: 42px;
    height: 42px;
  }
}
