/*
Theme Name: Hueman Child (TTO)
Template: hueman
Version: 1.0.0
Description: TTO-specific child theme: a11y fixes, tap-target sizing, empty-H1 removal, avatar alt attributes, CLS safeguards.
Author: JARVIS
Author URI: https://tirumalatirupationline.com/
Text Domain: hueman-child
*/

/* This file is loaded via wp_enqueue_style by functions.php with data-no-optimize
   attribute so LiteSpeed UCSS doesn't strip selectors that don't match at crawl time. */

/* ================ Mobile tap-target enforcement (WCAG 2.1 AA) ================ */
@media (max-width: 768px) {
  /* Inline content & nav links */
  .entry-content a,
  .post-inner a,
  #content a:not(.button):not(.btn):not(.elementor-button):not(.adsbygoogle),
  nav a,
  .menu a,
  .main-navigation a,
  .sub-menu a,
  #mainnav a,
  .footer a,
  .site-footer a {
    min-height: 44px;
    min-width: 20px;
    display: inline-block;
    line-height: 1.5;
    padding-top: 8px;
    padding-bottom: 8px;
    vertical-align: middle;
  }

  /* Icon / social / share buttons */
  .social-icons a,
  .share a,
  .jetpack-likes-widget-wrapper a,
  .jp-sharing a {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Primary nav menu items */
  .main-nav li > a,
  .primary-menu > li > a,
  #mainnav li > a {
    padding-top: 14px;
    padding-bottom: 14px;
    min-height: 44px;
  }

  /* Comment reply / metadata */
  .comment-reply-link,
  .comment-metadata a,
  .comment-author a {
    min-height: 44px;
    display: inline-block;
    padding: 10px 14px;
  }

  /* Tag cloud + related posts + widget links */
  .tagcloud a,
  .related-posts a,
  .widget a,
  .sidebar a {
    min-height: 40px;
    display: inline-block;
    padding: 8px 10px;
    line-height: 1.4;
  }

  /* Pagination links */
  .nav-links a, .page-numbers {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
  }
}

/* ================ Skip-to-content link (visible on focus) ================ */
#tto-skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 10001;
}
#tto-skip-link:focus {
  position: fixed;
  top: 0;
  left: 0;
  width: auto;
  height: auto;
  padding: 12px 16px;
  background: #e25c18;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-bottom-right-radius: 4px;
}

/* ================ Comments a11y ================ */
/* Hide empty H1s (rare theme/plugin artifact) */
h1:empty { display: none !important; }

/* Increase focus visibility for keyboard users */
a:focus, button:focus, [tabindex]:focus {
  outline: 2px solid #e25c18;
  outline-offset: 2px;
}
