/*
 Theme Name: Newspaper Child - Optimax
 Theme URI: https://opti-max.co
 Description: Optimax Magazine child theme for Newspaper.
 Author: SocialNinja
 Template: Newspaper
 Version: 1.0.1
 Text Domain: newspaper-child-optimax
*/

/* Self-hosted Noto Sans Hebrew (variable, SIL OFL - see assets/fonts/OFL.txt).
   Two src entries on purpose: the "-variations" format keyword is the one
   Safari understands, plain "truetype" is the safe keyword everywhere else.
   Same file either way; the browser takes the first keyword it recognises. */
@font-face {
  font-family: "Noto Sans Hebrew Local";
  src: url("assets/fonts/NotoSansHebrew-VariableFont_wdth,wght.ttf") format("truetype-variations"),
       url("assets/fonts/NotoSansHebrew-VariableFont_wdth,wght.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --optimax-font-hebrew: "Noto Sans Hebrew Local", "Noto Sans Hebrew", Arial, sans-serif;

  /* Newspaper 12.7.6 routes ~42 of its own typography rules through these two
     custom properties (defined in the parent style.css :root as Open Sans and
     Roboto). Re-pointing them here converts breadcrumbs, post dates, module
     titles, widget titles and the rest of the theme chrome to Noto Sans Hebrew
     without a single !important and without touching the icon font. */
  --td_default_google_font_1: "Noto Sans Hebrew Local", "Noto Sans Hebrew", Arial, sans-serif;
  --td_default_google_font_2: "Noto Sans Hebrew Local", "Noto Sans Hebrew", Arial, sans-serif;
}

html[lang="he-IL"],
html[lang="he_IL"],
html[dir="rtl"],
html[lang="he-IL"] body,
html[lang="he_IL"] body,
html[dir="rtl"] body,
html[dir="rtl"] button,
html[dir="rtl"] input,
html[dir="rtl"] select,
html[dir="rtl"] textarea,
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] h5,
html[dir="rtl"] h6,
html[dir="rtl"] .td-post-content,
html[dir="rtl"] .td-page-content,
html[dir="rtl"] .td_block_wrap,
html[dir="rtl"] .td-menu-item,
html[dir="rtl"] .tdm-descr {
  font-family: var(--optimax-font-hebrew) !important;
}

/* The handful of parent-theme rules that hardcode a family instead of reading
   the variables above, so Hebrew in them was falling back to Times New Roman /
   Lucida Grande: site logo + tagline (serif), captions and dropcaps (Verdana),
   mobile nav and mobile search (-apple-system).
   The .td-icon-* icon font is deliberately NOT in this list - it must keep
   font-family: 'newspaper' or the theme's glyphs turn into letters. */
html[dir="rtl"] .td-logo-text-container .td-logo-text,
html[dir="rtl"] .td-logo-text-container .td-tagline-text,
html[dir="rtl"] .wp-caption-text,
html[dir="rtl"] .wp-caption-dd,
html[dir="rtl"] .dropcap,
html[dir="rtl"] .wp-block-image figcaption,
html[dir="rtl"] .wp-block-gallery figcaption,
html[dir="rtl"] .wp-block-gallery .blocks-gallery-image figcaption,
html[dir="rtl"] .wp-block-gallery .blocks-gallery-item figcaption,
html[dir="rtl"] #td-mobile-nav,
html[dir="rtl"] .td-search-wrap-mob {
  font-family: var(--optimax-font-hebrew) !important;
}

/* == Optimax blue brand — client-requested blue+white (2026-07-17) == */
.omx-post-title{font-size:clamp(26px,3.2vw,38px);line-height:1.25;font-weight:800;color:#16305a;margin:0 0 18px;text-align:right}
.td-post-category,.td-category a{background-color:#16305a}
.td-post-category:hover,.td-category a:hover{background-color:#2c7dd9}
.td-module-title a:hover,.entry-title a:hover{color:#2c7dd9!important}
.td-post-content a,.td-page-content a{color:#2c5aa0}
.td-post-content a:hover,.td-page-content a:hover{color:#2c7dd9}
blockquote{border-color:#2c7dd9}
.td-footer-wrapper,.td-sub-footer-container{background-color:#0f2342}
