/*
Theme Name:     Herald Child
Theme URI:      https://mekshq.com/theme/herald/
Description:    Child theme for the Herald theme
Author:         meks
Author URI:     https://mekshq.com
Template:       herald
Version:        0.1.0
*/

/* ===== ESPECIAIS ===== */
body.cs-especial .cs-special-ribbon {
  display: none !important;
}

body.cs-especial .header-middle {
  background: var(--cs-especial-primary, #c8102e);
  border-bottom: 0;
}

body.cs-especial .header-middle .site-branding,
body.cs-especial .header-middle .site-branding a,
body.cs-especial .header-middle .site-branding img {
  text-align: center;
}

body.cs-especial .header-middle .site-branding {
  padding: 18px 0;
}

body.cs-especial .header-middle .herald-logo,
body.cs-especial .header-middle .herald-logo-mini {
  max-height: 82px;
}

body.cs-especial .header-middle .site-title {
  display: block;
}

body.cs-especial .header-middle .site-title a {
  color: #fff;
}

body.cs-especial .header-middle .hel-l,
body.cs-especial .header-middle .hel-r {
  display: none;
}

body.cs-especial .header-middle .hel-c,
body.cs-especial .header-middle .site-branding {
  width: 100%;
  float: none;
}

body.cs-especial .header-bottom {
  background: color-mix(in srgb, var(--cs-especial-primary, #c8102e) 92%, #000 8%);
  border-bottom: 0;
}

body.cs-especial .header-bottom .main-navigation,
body.cs-especial .header-bottom .main-navigation > ul,
body.cs-especial .header-bottom .main-navigation > div > ul {
  justify-content: center;
}

body.cs-especial .header-bottom .main-navigation ul.menu,
body.cs-especial .header-bottom .main-navigation > div > ul.menu {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
}

body.cs-especial .header-bottom .main-navigation li > a,
body.cs-especial .header-bottom .secondary-navigation li > a,
body.cs-especial .header-bottom .main-navigation .sub-menu li > a {
  color: #fff;
}

body.cs-especial .header-bottom .main-navigation li.current-menu-item > a,
body.cs-especial .header-bottom .main-navigation li.current-menu-ancestor > a,
body.cs-especial .header-bottom .main-navigation li > a:hover,
body.cs-especial .header-bottom .secondary-navigation li > a:hover {
  color: #fff;
  background: rgba(255,255,255,.14);
}

body.cs-especial .header-bottom .main-navigation li.current-menu-item > a:before,
body.cs-especial .header-bottom .main-navigation li > a:hover:before {
  background: #fff;
}

body.cs-especial .header-bottom .search_header,
body.cs-especial .header-bottom .search_header i,
body.cs-especial .header-bottom .social_counter_item,
body.cs-especial .header-bottom .social_counter_item a {
  color: #fff;
}

body.cs-especial .header-bottom .hel-r,
body.cs-especial .header-bottom .hel-l {
  display: flex;
  align-items: center;
}

body.cs-especial .header-bottom .hel-l {
  flex: 1 1 auto;
  justify-content: center;
}

body.cs-especial .header-bottom .hel-r {
  flex: 0 0 auto;
}

body.cs-especial .herald-site-content {
  min-height: 50vh;
}

body.cs-especial .herald-breadcrumbs {
  border-left: 4px solid var(--cs-especial-primary, #c8102e);
  padding-left: 12px;
}

body.cs-especial .herald-breadcrumbs a,
body.cs-especial .herald-entry-meta a,
body.cs-especial .comment-reply-link,
body.cs-especial .herald-mod-title a:hover,
body.cs-especial .herald-single-content .entry-content a,
body.cs-especial .entry-content a,
body.cs-especial .widget a:hover,
body.cs-especial .herald-author-name a:hover,
body.cs-especial .related-item-title a:hover,
body.cs-especial .herald-post-lay-g .entry-title a:hover,
body.cs-especial .herald-post-lay-h .entry-title a:hover,
body.cs-especial .main-navigation a:hover,
body.cs-especial .main-navigation li.current-menu-item > a,
body.cs-especial .main-navigation li.current-menu-ancestor > a,
body.cs-especial .main-navigation li.current_page_item > a,
body.cs-especial .main-navigation li.current_page_ancestor > a {
  color: var(--cs-especial-primary, #c8102e);
}

body.cs-especial .herald-mod-title,
body.cs-especial .widget-title,
body.cs-especial .comment-reply-title,
body.cs-especial .comments-title,
body.cs-especial .cs-especial-home-title,
body.cs-especial .cs-especial-archive-wrap h1 {
  border-left: 6px solid var(--cs-especial-primary, #c8102e);
  padding-left: 12px;
}

body.cs-especial .herald-post-meta-cat a,
body.cs-especial .meta-category a,
body.cs-especial .entry-meta .meta-category a {
  background: var(--cs-especial-primary, #c8102e);
  color: #fff;
  padding: 2px 8px;
  border-radius: 3px;
}

body.cs-especial button,
body.cs-especial input[type="submit"],
body.cs-especial input[type="button"],
body.cs-especial .button,
body.cs-especial .wp-block-button__link,
body.cs-especial .page-numbers.current,
body.cs-especial .pagination .current {
  background: var(--cs-especial-primary, #c8102e);
  border-color: var(--cs-especial-primary, #c8102e);
  color: #fff;
}

body.cs-especial .page-numbers:hover,
body.cs-especial .pagination a:hover,
body.cs-especial .button:hover,
body.cs-especial .wp-block-button__link:hover {
  border-color: var(--cs-especial-primary, #c8102e);
}

body.cs-especial .herald-menu-popup,
body.cs-especial .herald-menu-popup-search {
  border-top: 2px solid var(--cs-especial-primary, #c8102e);
}

body.cs-especial .herald-sticky.header-is-sticky .header-bottom {
  border-bottom: 0;
}

body.cs-especial .cs-especial-archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

body.cs-especial .cs-especial-archive-item h2 {
  font-size: 22px;
  line-height: 1.3;
  margin-top: 12px;
}

body.cs-especial .cs-especial-home-content {
  margin-top: 20px;
}



body.cs-especial .header-top {
  display: block !important;
}

body.cs-especial .header-top,
body.cs-especial .header-top a,
body.cs-especial .header-top i,
body.cs-especial .header-top .meta-item,
body.cs-especial .header-top .meta-item a {
  color: #fff;
}

body.cs-especial .header-top {
  background: #111;
}

body.cs-especial .header-top .hel-l,
body.cs-especial .header-top .hel-r,
body.cs-especial .header-top .hel-c {
  opacity: 1;
}

body.cs-especial .header-middle .site-title {
  display: block !important;
  margin: 0;
  font-size: 0;
  line-height: 0;
}

body.cs-especial .header-middle .site-title a {
  display: inline-block;
}

body.cs-especial .header-middle .site-desc {
  display: none !important;
}

body.cs-especial .header-middle {
  padding-top: 0;
}

body.cs-especial .header-middle .container,
body.cs-especial .header-bottom .container,
body.cs-especial #herald-responsive-header .container {
  width: 100%;
}

body.cs-especial .header-middle .site-branding {
  padding: 24px 0;
}

body.cs-especial .header-middle .herald-logo img,
body.cs-especial .header-middle .herald-logo-mini img,
body.cs-especial #herald-responsive-header .herald-logo img,
body.cs-especial #herald-responsive-header .herald-logo-mini img {
  max-height: 92px;
  width: auto;
}

body.cs-especial .header-bottom .main-navigation > ul > li > a,
body.cs-especial .header-bottom .main-navigation > div > ul > li > a {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
}

body.cs-especial .herald-mobile-nav,
body.cs-especial #herald-responsive-header {
  background: var(--cs-especial-primary, #c8102e);
}

body.cs-especial #herald-responsive-header,
body.cs-especial #herald-responsive-header a,
body.cs-especial #herald-responsive-header i,
body.cs-especial .herald-mobile-nav a,
body.cs-especial .herald-mobile-nav i,
body.cs-especial .herald-mobile-nav .herald-menu-toggler {
  color: #fff;
}

body.cs-especial #herald-responsive-header {
  border-bottom: 1px solid rgba(255,255,255,.14);
}

body.cs-especial .herald-mobile-nav .herald-mob-nav > li > a,
body.cs-especial .herald-mobile-nav .sub-menu li a {
  color: #fff;
}

body.cs-especial .herald-mobile-nav .current-menu-item > a,
body.cs-especial .herald-mobile-nav li > a:hover {
  background: rgba(255,255,255,.12);
}

body.cs-especial .herald-sidebar-special .widget,
body.cs-especial .herald-sidebar-special .herald-sticky .widget {
  border-top: 3px solid var(--cs-especial-primary, #c8102e);
}

body.cs-especial .herald-sidebar-special .widget-title {
  border-left-color: var(--cs-especial-primary, #c8102e);
}

@media (max-width: 991px) {
  body.cs-especial .header-top {
    display: none !important;
  }

  body.cs-especial .header-middle,
  body.cs-especial .header-bottom {
    display: none !important;
  }

  body.cs-especial #herald-responsive-header {
    display: block !important;
  }
}


/* Ajustes finos v06 */
body.cs-especial #herald-responsive-header .search_header_wrap,
body.cs-especial #herald-responsive-header .search_header,
body.cs-especial #herald-responsive-header .search_header i {
  background: transparent !important;
  color: #fff !important;
}

body.cs-especial #herald-responsive-header .search_header_wrap {
  border-left: 1px solid rgba(255,255,255,.18);
  padding-left: 14px;
}

body.cs-especial .header-bottom .search_header_wrap,
body.cs-especial .header-bottom .search_header,
body.cs-especial .header-bottom .search_header i {
  background: transparent !important;
  color: #fff !important;
}

body.cs-especial .herald-sidebar-special .widget,
body.cs-especial .herald-sidebar-special .herald-sticky .widget,
body.cs-especial .footer-widgets .widget {
  border-top: 0 !important;
}

body.cs-especial .herald-sidebar-special .widget-title,
body.cs-especial .footer-widgets .widget-title {
  border-left: 0 !important;
  padding-left: 0 !important;
}

body.cs-especial .herald-sidebar-special .widget-title span,
body.cs-especial .footer-widgets .widget-title span {
  border-bottom: 0 !important;
  box-shadow: none !important;
}

body.cs-especial .footer-widgets .widget-title,
body.cs-especial .herald-sidebar-special .widget-title {
  color: inherit;
}

body.cs-especial .meta-category a:hover {
  opacity: .9;
}


/* Ajustes finos v07 */
body.cs-especial .header-middle .container {
  width: 100%;
}

body.cs-especial .header-bottom .container,
body.cs-especial #herald-responsive-header .container {
  width: auto;
}

body.cs-especial .header-bottom .main-navigation ul.menu,
body.cs-especial .header-bottom .main-navigation > div > ul.menu {
  gap: 0;
}

body.cs-especial .header-bottom .main-navigation > ul > li > a,
body.cs-especial .header-bottom .main-navigation > div > ul > li > a {
  margin: 0;
}

body.cs-especial .header-bottom .herald-menu-popup-search,
body.cs-especial .header-bottom .herald-menu-popup,
body.cs-especial .header-bottom .herald-cart-icon {
  border-top: 0 !important;
  margin: 0 !important;
}

body.cs-especial .header-bottom .herald-menu-popup-search > span,
body.cs-especial .header-bottom .herald-menu-popup > span,
body.cs-especial .header-bottom .herald-cart-icon > a {
  border-top: 0 !important;
  margin-top: 0 !important;
}

body.cs-especial #herald-responsive-header .herald-menu-popup-search,
body.cs-especial #herald-responsive-header .herald-menu-popup-search > span,
body.cs-especial #herald-responsive-header .herald-menu-popup-search .fa,
body.cs-especial #herald-responsive-header .herald-search-submit,
body.cs-especial #herald-responsive-header .herald-search-submit:after {
  background: var(--cs-especial-primary, #c8102e) !important;
  color: #fff !important;
}

body.cs-especial #herald-responsive-header .herald-menu-popup-search {
  padding-right: 10px;
}

body.cs-especial #herald-responsive-header .container div:last-child {
  right: 0;
}


/* Ajustes focados em widgets do especial */
body.cs-especial .herald-sidebar-special .widget-title,
body.cs-especial .herald-sidebar-special .widget-title a,
body.cs-especial .herald-sidebar-special .widget-title span {
  color: var(--cs-especial-primary, #c8102e) !important;
}

body.cs-especial .footer-widgets .widget-title,
body.cs-especial .footer-widgets .widget-title a,
body.cs-especial .footer-widgets .widget-title span {
  color: inherit !important;
}

/* Ajuste busca/menu desktop v15 */
@media (min-width: 992px) {
  body.cs-especial .header-bottom .container {
    padding-left: 20px;
    padding-right: 20px;
    margin-left: auto;
    margin-right: auto;
    width: 970px;
    max-width: 100%;
  }

  body.cs-especial .header-bottom .hel-el {
    position: relative;
    display: flex;
    align-items: center;
    height: 50px;
  }

  body.cs-especial .header-bottom .hel-l {
    position: absolute;
    left: 20px;
    top: 0 !important;
    z-index: 1001;
    display: flex;
    align-items: center;
    height: 100%;
    flex: 0 0 auto !important;
    justify-content: flex-start;
  }

  body.cs-especial .header-bottom .hel-c {
    position: relative;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    float: none;
    flex: 0 1 auto;
  }

  body.cs-especial .header-bottom .hel-r {
    position: absolute;
    right: 20px;
    top: 0 !important;
    z-index: 1001;
    display: flex;
    align-items: center;
    height: 100%;
    flex: 0 0 auto !important;
    justify-content: flex-end;
  }

  body.cs-especial .header-bottom .main-navigation ul.menu,
  body.cs-especial .header-bottom .main-navigation > div > ul.menu {
    display: block;
    gap: 0 !important;
  }

  body.cs-especial .header-bottom .main-navigation > ul > li,
  body.cs-especial .header-bottom .main-navigation > div > ul > li {
    display: inline-block;
    vertical-align: middle;
  }

  body.cs-especial .header-bottom .main-navigation > ul > li > a,
  body.cs-especial .header-bottom .main-navigation > div > ul > li > a {
    margin: 0;
  }

  body.cs-especial .header-bottom .herald-menu-popup-search,
  body.cs-especial .header-bottom .search_header_wrap,
  body.cs-especial .header-bottom .search_header {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    height: 50px;
    display: flex;
    align-items: center;
  }

  body.cs-especial .header-bottom .herald-menu-popup-search > span,
  body.cs-especial .header-bottom .search_header {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    min-width: 44px;
    padding: 0 12px;
    margin: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #fff !important;
  }

  body.cs-especial .header-bottom .herald-menu-popup-search > span:before,
  body.cs-especial .header-bottom .search_header:before,
  body.cs-especial .header-bottom .herald-menu-popup-search > span.fa,
  body.cs-especial .header-bottom .search_header i {
    color: #fff !important;
  }

  body.cs-especial .header-bottom .herald-menu-popup-search:hover > span,
  body.cs-especial .header-bottom .search_header:hover {
    background: rgba(255,255,255,.14) !important;
  }

  body.cs-especial .header-bottom .herald-menu-popup-search .herald-in-popup {
    top: 50px;
    border-top: 0 !important;
  }
}

@media (min-width: 1200px) {
  body.cs-especial .header-bottom .container {
    width: 1360px;
  }
}


/* Títulos dos widgets no especial */
body.cs-especial .widget-title,
body.cs-especial .herald-mod-title {
  background: var(--cs-especial-primary, #c8102e);
  color: #fff;
  border-left: 0;
  padding: 8px 12px;
}

body.cs-especial .widget-title a,
body.cs-especial .herald-mod-title a,
body.cs-especial .widget-title span,
body.cs-especial .herald-mod-title span {
  color: #fff !important;
}

/* Ajuste v17 - títulos dos widgets do especial */
body.cs-especial .herald-sidebar-special .widget-title {
  background: transparent !important;
  border-left: 0 !important;
  padding: 0 !important;
  color: #fff !important;
}

body.cs-especial .herald-sidebar-special .widget-title a,
body.cs-especial .herald-sidebar-special .widget-title span {
  color: #fff !important;
}

body.cs-especial .herald-sidebar-special .widget-title span {
  display: inline-block !important;
  background: var(--cs-especial-primary, #6d4fa3) !important;
  color: #fff !important;
  padding: 8px 12px !important;
  border: 0 !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
  line-height: 1.2 !important;
}

/* Ajuste v18 - linha inferior dos títulos da sidebar especial */
body.cs-especial .herald-sidebar-special .widget-title {
  border-bottom: 1px solid var(--cs-especial-primary, #6d4fa3) !important;
}

/* Ajuste v19 - sidebar especial e títulos do rodapé */
body.cs-especial .herald-sidebar-special .widget-title:after {
  background: var(--cs-especial-primary, #6d4fa3) !important;
}

body.cs-especial .footer-widgets .widget-title {
  background: transparent !important;
  border-left: 0 !important;
  padding: 0 !important;
  color: #fff !important;
  border-bottom: 0 !important;
}

body.cs-especial .footer-widgets .widget-title:after {
  background: rgba(255,255,255,.28) !important;
}

body.cs-especial .footer-widgets .widget-title,
body.cs-especial .footer-widgets .widget-title a,
body.cs-especial .footer-widgets .widget-title span {
  color: #fff !important;
}

body.cs-especial .footer-widgets .widget-title span {
  background: transparent !important;
  padding: 0 0 10px 0 !important;
  border: 0 !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
}


/* Ajuste v21/v23 - home do especial sem widgets laterais, preservando o rodapé */
body.cs-especial-home .herald-sidebar,
body.cs-especial-home .herald-sidebar-special,
body.cs-especial-home aside.herald-sidebar,
body.cs-especial-home #secondary,
body.cs-especial-home .sidebar {
  display: none !important;
}

body.cs-especial-home .col-mod-main,
body.cs-especial-home .col-lg-9.col-mod-single.col-mod-main,
body.cs-especial-home .col-md-9.col-mod-single.col-mod-main,
body.cs-especial-home .col-lg-8.col-mod-single.col-mod-main,
body.cs-especial-home .col-md-8.col-mod-single.col-mod-main,
body.cs-especial-home .herald-main-content {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
}

body.cs-especial-home .footer-widgets,
body.cs-especial-home .footer-widgets .widget-area,
body.cs-especial-home .footer-widgets .widget,
body.cs-especial-home .footer-widgets .col-lg-3,
body.cs-especial-home .footer-widgets .col-md-3,
body.cs-especial-home .footer-widgets .col-lg-12,
body.cs-especial-home .footer-widgets .col-md-12 {
  display: block !important;
}

/* Ajuste v24/v25 - ocultar apenas o título da área principal da capa do especial */
body.cs-especial-home .herald-main-content .entry-header .entry-title,
body.cs-especial-home .herald-main-content .cs-especial-home-title,
body.cs-especial-home .herald-main-content .template-page .entry-title,
body.cs-especial-home .herald-main-content .page .entry-title,
body.cs-especial-home .herald-main-content h1.entry-title,
body.cs-especial-home .herald-main-content .herald-page-title,
body.cs-especial-home .herald-main-content .page-header,
body.cs-especial-home .herald-main-content .archive-head {
  display: none !important;
}


/* Ajuste v24/v25 - ocultar apenas o título dentro do conteúdo principal da capa do especial */
body.cs-especial-home .herald-main-content .entry-content > h1:first-child,
body.cs-especial-home .herald-main-content .entry-content > h2:first-child,
body.cs-especial-home .herald-main-content .entry-content > .wp-block-post-title,
body.cs-especial-home .herald-main-content .entry-content > .wp-block-heading:first-child,
body.cs-especial-home .herald-main-content .page-content > h1:first-child,
body.cs-especial-home .herald-main-content .page-content > h2:first-child,
body.cs-especial-home .herald-main-content .page-content > .wp-block-post-title,
body.cs-especial-home .herald-main-content .page-content > .wp-block-heading:first-child {
  display: none !important;
}


/* Ajuste v26 - reexibir títulos dos posts nos widgets do footer da home do especial */
body.cs-especial-home .footer-widgets .entry-title,
body.cs-especial-home .footer-widgets .entry-title a,
body.cs-especial-home .footer-widgets .herald-post-title,
body.cs-especial-home .footer-widgets .herald-post-title a,
body.cs-especial-home .footer-widgets .related-item-title,
body.cs-especial-home .footer-widgets .related-item-title a {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  overflow: visible !important;
  clip: auto !important;
  position: static !important;
  color: inherit !important;
}


/* Ajuste v27 - garantir títulos dos posts visíveis nos widgets do footer da home do especial */
body.cs-especial-home .footer-widgets li a,
body.cs-especial-home .footer-widgets .widget li a,
body.cs-especial-home .footer-widgets .entry-title,
body.cs-especial-home .footer-widgets .entry-title a,
body.cs-especial-home .footer-widgets .herald-post-title,
body.cs-especial-home .footer-widgets .herald-post-title a,
body.cs-especial-home .footer-widgets .related-item-title,
body.cs-especial-home .footer-widgets .related-item-title a,
body.cs-especial-home .footer-widgets .mks_post_widget ul li a,
body.cs-especial-home .footer-widgets .mks_themeforest_widget ul li a {
  display: inline !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  width: auto !important;
  max-height: none !important;
  overflow: visible !important;
  clip: auto !important;
  clip-path: none !important;
  position: static !important;
  text-indent: 0 !important;
  font-size: inherit !important;
  line-height: inherit !important;
  color: #fff !important;
}
body.cs-especial-home .footer-widgets li .meta-item,
body.cs-especial-home .footer-widgets li time,
body.cs-especial-home .footer-widgets li .entry-meta { color: rgba(255,255,255,.75) !important; }

/* Ajuste v28 - home do especial: reexibir títulos dos posts dos widgets do footer */
body.cs-especial-home .footer-widgets .widget.herald_posts_widget .herald-lay-g .entry-header h2.entry-title,
body.cs-especial-home .footer-widgets .widget.herald_posts_widget .herald-lay-g .entry-header h2.entry-title.h7 {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  width: auto !important;
  max-height: none !important;
  overflow: visible !important;
  clip: auto !important;
  clip-path: none !important;
  position: static !important;
  margin: 0 0 4px !important;
  padding: 0 !important;
  text-indent: 0 !important;
  font-size: 14px !important;
  line-height: 1.3 !important;
  white-space: normal !important;
}

body.cs-especial-home .footer-widgets .widget.herald_posts_widget .herald-lay-g .entry-header h2.entry-title a,
body.cs-especial-home .footer-widgets .widget.herald_posts_widget .herald-lay-g .entry-header h2.entry-title.h7 a {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  color: #ffffff !important;
  font-size: 14px !important;
  line-height: 1.3 !important;
  white-space: normal !important;
  overflow: visible !important;
  text-indent: 0 !important;
  height: auto !important;
  width: auto !important;
  max-height: none !important;
}
