/*
Theme Name: Mharty Child (Torod)
Theme URI: https://blog.torod.co/
Description: Child theme for Mharty on blog.torod.co. Keeps the parent untouched; holds SEO/accessibility markup fixes (menu items are <span> instead of <h3>).
Author: Torod
Template: mharty
Version: 2.0.0
Text Domain: mharty-child
*/

/*
 * Menu item labels: Mharty prints <h3 class="mhc-menu-item-link-head">; the child prints <span> instead
 * (no headings before the page H1). These rules are the parent's h3 rules that matched those elements,
 * re-targeted at span:where(.mhc-menu-item-link-head) (same specificity as "h3"), so the look is unchanged.
 * Verified 2026-11-06: computed styles + sizes identical for all 28 menu items at 375 px and 1024 px, AR + EN.
 */
:where(span.mhc-menu-item-link-head){display:block;font-size:1.17em;margin-block:1em;font-weight:bold}
span:where(.mhc-menu-item-link-head){margin:0;padding:0;border:0;outline:0;font-size:100%;vertical-align:baseline;background:0 0}
span:where(.mhc-menu-item-link-head){color:#444;padding-bottom:10px;line-height:1.4em;font-weight:400}
span:where(.mhc-menu-item-link-head){font-size:20px}
.mh-app-nav span:where(.mhc-menu-item-link-head){font-family:"IBM Plex Sans Arabic",Tahoma,Arial,"Times New Roman",serif}
span:where(.mhc-menu-item-link-head){font-family:"IBM Plex Sans Arabic",Tahoma,Arial,"Times New Roman",serif}
#top-menu span:where(.mhc-menu-item-link-head){font-family:"IBM Plex Sans Arabic",Tahoma,Arial,"Times New Roman",serif}

/*
 * Header menu fit (2026-11-06, 6-pillar menu): keeps the 10-item menu on one row between 981 and 1599 px,
 * Arabic and English (checked at 1024, 1280, 1440). Below 1280 px the "Home" item is hidden (the logo links home).
 */
@media only screen and (min-width:981px) and (max-width:1599px){body:not(.tp-ds) #top-menu>li{padding-left:4px!important;padding-right:4px!important;margin-left:0!important}}
@media only screen and (min-width:981px) and (max-width:1279px){#top-menu .mhc-menu-item-link-head{font-size:12px!important}#top-menu>li.menu-item-home{display:none!important}}
