
/*
 * HV Mobile Fix v1.2 — stronger footer edge-to-edge selectors
 */
@media (max-width: 768px) {
  /* Global content edge-to-edge */
  .container,
  #page, #content, .site, .site-content-wrapper,
  .site-content, .main-content, .content-area, .site-main,
  article, .hentry, .entry, .entry-content,
  .wp-site-blocks, .wp-block-group {
    width:100%!important; max-width:100%!important;
    margin-left:0!important; margin-right:0!important;
    padding-left:0!important; padding-right:0!important;
    box-sizing:border-box;
  }

  #secondary, .sidebar, .widget-area, .site-sidebar { display:none!important; }

  .wp-block-columns { display:block!important; gap:0!important; }
  .wp-block-column { width:100%!important; flex:none!important; }

  .entry-content img, .wp-block-image img, iframe, video,
  .alignwide, .alignfull {
    width:100%!important; max-width:100%!important; height:auto!important;
    margin-left:0!important; margin-right:0!important; display:block;
  }

  .comments-area, .comment-respond, .comment-form {
    width:100%!important; max-width:100%!important;
    margin:0!important; padding:0!important;
    border-radius:0!important; box-shadow:none!important; background:transparent!important;
  }

  .comment-form, .comment-form *, form, form * {
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
    transform: none !important;
    white-space: normal !important;
    word-break: normal !important;
    line-height: 1.5 !important;
    letter-spacing: normal !important;
  }
  .comment-form input[type="text"],
  .comment-form input[type="email"],
  .comment-form input[type="url"],
  .comment-form textarea,
  .comment-form select,
  form input[type="text"], form input[type="email"],
  form input[type="url"], form textarea, form select {
    width: 100% !important; max-width: 100% !important; display: block !important;
  }

  [style*="width:"], [style*="max-width:"] {
    width:100%!important; max-width:100%!important;
  }

  .card, .content-card, .article-card, .entry, .post {
    border-radius:0!important; box-shadow:none!important; background:transparent!important;
  }

  /* ===== Aggressive footer edge-to-edge ===== */
  footer, .site-footer { padding-left:0!important; padding-right:0!important; }
  .site-footer,
  .site-footer *,
  [class*="footer"] {
    --wp--style--root--padding-left: 0px;
    --wp--style--root--padding-right: 0px;
  }
  .site-footer .wp-block-group,
  .site-footer .wp-block-group__inner-container,
  .site-footer [class*="container"],
  .site-footer [class*="inner"],
  .site-footer [class*="wrap"],
  .site-footer [class*="section"],
  .site-footer [class*="content"],
  .site-footer [class*="card"],
  .site-footer [class*="grid"] {
    width:100% !important; max-width:100% !important;
    margin-left:0 !important; margin-right:0 !important;
    padding-left:0 !important; padding-right:0 !important;
    border-radius:0 !important; box-shadow:none !important; background:transparent !important;
  }
  .site-footer .wp-block-columns { display:block !important; gap:0 !important; }
  .site-footer .wp-block-column { width:100% !important; flex:none !important; margin:0 !important; }
  .site-footer ul { list-style:none !important; padding-left:0 !important; margin-left:0 !important; }
  .site-footer nav, .footer-menu {
    display:flex !important; flex-wrap:wrap !important; justify-content:center !important;
    gap:10px !important; margin:10px 0 !important; padding:0 !important;
  }
  .site-footer img, .site-footer svg { max-width:100% !important; height:auto !important; display:inline-block !important; }
}
