/* Kalam Aflam editorial chrome v1.5: all classic-theme pages except the bespoke homepage.
   Reuses content and menus without replacing header/footer templates or ad placements. */
body:not(.home):not(.page-id-18366) {
  --kads-ink:#171717;
  --kads-accent:#a94332;
  --kads-paper:#f6f3ed;
  --kads-surface:#fffdf9;
  --kads-rule:#ded8d0;
  --kads-muted:#6b6763;
  background:#faf9f6;
  color:var(--kads-ink);
}
/* Keep menu links, IDs and accessibility behavior from Cream Magazine. */
body:not(.home):not(.page-id-18366) header.general-header.cm_header-five .top-header {
  background-image:none!important;
  background-color:var(--kads-paper)!important;
  border-bottom:1px solid var(--kads-rule);
  min-height:100px;
}
body:not(.home):not(.page-id-18366) header.general-header.cm_header-five .top-header .mask {display:none!important;}
body:not(.home):not(.page-id-18366) header.general-header.cm_header-five .top-header .logo-container {
  position:relative;z-index:2;padding:22px 18px;max-width:1240px;margin-inline:auto;
}
body:not(.home):not(.page-id-18366) header.general-header.cm_header-five .top-header .site-title a {
  color:var(--kads-ink)!important;
  font:700 clamp(25px,2.7vw,36px)/1.5 'IBM Plex Sans Arabic',Tahoma,Arial,sans-serif!important;
  text-shadow:none!important;
}
body:not(.home):not(.page-id-18366) header.general-header.cm_header-five .top-header .site-description {
  color:var(--kads-muted)!important;
  font:400 13px/1.7 'IBM Plex Sans Arabic',Tahoma,Arial,sans-serif!important;
  text-shadow:none!important;
}
body:not(.home):not(.page-id-18366) header.general-header.cm_header-five .navigation-container {
  background:var(--kads-paper)!important;border-bottom:2px solid var(--kads-accent);
}
body:not(.home):not(.page-id-18366) header.general-header.cm_header-five nav.main-navigation {
  background:var(--kads-paper)!important;max-width:1240px;margin-inline:auto;
}
body:not(.home):not(.page-id-18366) header.general-header.cm_header-five .primary-navigation {
  background:var(--kads-paper)!important;
}
body:not(.home):not(.page-id-18366) header.general-header.cm_header-five .primary-navigation :is(a,.menu-toggle) {
  font-family:'IBM Plex Sans Arabic',Tahoma,Arial,sans-serif!important;
}
body:not(.home):not(.page-id-18366) header.general-header.cm_header-five .primary-navigation ul li>a,
body:not(.home):not(.page-id-18366) header.general-header.cm_header-five .primary-navigation .menu-toggle {
  color:var(--kads-ink)!important;
}
body:not(.home):not(.page-id-18366) header.general-header.cm_header-five .primary-navigation a:hover,
body:not(.home):not(.page-id-18366) header.general-header.cm_header-five .primary-navigation li.current-menu-item>a {
  color:var(--kads-accent)!important;
}
body:not(.home):not(.page-id-18366) header.general-header.cm_header-five .primary-navigation .menu-toggle svg {
  fill:var(--kads-ink)!important;color:var(--kads-ink)!important;
}
body:not(.home):not(.page-id-18366) header.general-header.cm_header-five .primary-navigation :is(a,button):focus-visible {
  outline:3px solid var(--kads-accent);outline-offset:2px;
}
/* Unified site chrome for pages, posts, taxonomy, search and index. */
body:not(.home):not(.page-id-18366) :is(.breadcrumb,.default-breadcrumb,.breadcrumb-trail) {
  color:var(--kads-muted);font-family:'IBM Plex Sans Arabic',Tahoma,Arial,sans-serif!important;
  font-size:13px;
}
body:not(.home):not(.page-id-18366) :is(.breadcrumb,.default-breadcrumb,.breadcrumb-trail) a:hover {color:var(--kads-accent)!important;}
body:not(.home):not(.page-id-18366) :is(.cm_post_page_lay_wrap,.kads-shell) img,
body:not(.home):not(.page-id-18366) :is(.cm_post_page_lay_wrap,.kads-shell) video {max-width:100%;height:auto;}
body:not(.home):not(.page-id-18366) .widget :is(.widget-title,h2.widget-title) {
  font-family:'IBM Plex Sans Arabic',Tahoma,Arial,sans-serif!important;
}
body:not(.home):not(.page-id-18366) :is(#secondary,.kads-sidebar) .widget-title h2 {
  border-bottom:2px solid var(--kads-accent);padding-bottom:9px;
  color:var(--kads-ink)!important;
}
body:not(.home):not(.page-id-18366) :is(#secondary,.kads-sidebar) .widget a:hover {color:var(--kads-accent)!important;}
body:not(.home):not(.page-id-18366) footer.footer {
  border-top:3px solid var(--kads-accent);
}
body:not(.home):not(.page-id-18366) footer.footer :is(.widget-title,.copyright_section,.footer_nav) {
  font-family:'IBM Plex Sans Arabic',Tahoma,Arial,sans-serif!important;
}
body:not(.home):not(.page-id-18366) :is(.search-form input[type=search],.wp-block-search__input,input[type=email]) {
  max-width:100%;
}
body:not(.home):not(.page-id-18366) :is(.search-form button,.search-form input[type=submit],.wp-block-search__button) {
  background:var(--kads-ink);color:#fff!important;
  font-family:'IBM Plex Sans Arabic',Tahoma,Arial,sans-serif!important;
}
body:not(.home):not(.page-id-18366) :is(.search-form button,.search-form input[type=submit],.wp-block-search__button):hover {
  background:var(--kads-accent);
}
@media(max-width:767px){
  body:not(.home):not(.page-id-18366) header.general-header.cm_header-five .top-header{min-height:82px;}
  body:not(.home):not(.page-id-18366) header.general-header.cm_header-five .top-header .logo-container{padding:14px;}
  body:not(.home):not(.page-id-18366) header.general-header.cm_header-five .top-header .site-title a{font-size:26px!important;}
  body:not(.home):not(.page-id-18366) header.general-header.cm_header-five .top-header .site-description{font-size:12px!important;}
}
/* Match the site icon already used in the live editorial homepage. */
body:not(.home):not(.page-id-18366) header.general-header.cm_header-five .top-header .site-title a::before{
 content:"";display:inline-block;vertical-align:middle;width:36px;height:36px;
 background:url('https://kalamaflam.com/wp-content/uploads/2026/05/cropped-44-1.png') center/contain no-repeat;
 margin-left:10px;border-radius:5px;
}
@media(max-width:767px){
 body:not(.home):not(.page-id-18366) header.general-header.cm_header-five .top-header .site-title a::before{width:30px;height:30px;margin-left:8px;}
}
/* Friendly, consistent styling for native search errors and missing-page states. */
body.error404 .site-main :is(h1,.page-title),
body.search-no-results .site-main :is(h1,.page-title){
 color:var(--kads-ink,#171717)!important;
 font:700 clamp(26px,3vw,38px)/1.5 'IBM Plex Sans Arabic',Tahoma,Arial,sans-serif!important;
}
body.error404 .site-main .error-404,
body.search-no-results .site-main .no-results{
 background:var(--kads-paper,#f6f3ed);
 padding:clamp(18px,3vw,36px);
 border-top:3px solid var(--kads-accent,#a94332);
}
