/*
 * Takhfedaty v1.3 — Conservative Publisher-safe visual corrections.
 * Keep Publisher's original spacing, columns, float, card sizing and ads.
 * No global box-sizing, font-family or line-height overrides.
 */
body.takhfedaty-refresh {
  --tk-navy: #122b4d;
  --tk-teal: #078d9b;
  --tk-teal-dark: #076d79;
  --tk-gold: #ffbd4a;
  --tk-border: #e5ecf3;
  background-color: #f5f8fc;
}

/* Navigation: cosmetics only, no changes to nav dimensions/layout. */
body.takhfedaty-refresh .site-header .main-menu > li > a:hover,
body.takhfedaty-refresh .site-header .main-menu > li.current-menu-item > a {
  color: var(--tk-gold);
}
body.takhfedaty-refresh .site-header .site-branding #site-logo {
  max-width: min(100%, 260px);
  height: auto;
}
body.takhfedaty-refresh .rh-header .logo-container img {
  max-width: 170px;
  height: auto;
}

/* Publisher controls the listing/grid sizing and gaps.
   Only decorate its existing item containers; add NO padding/margin/height.
   Use an inset shadow, so card sizing does not change. */
body.takhfedaty-refresh .listing-item-grid-1 > .item-inner,
body.takhfedaty-refresh .listing-item-grid-2 > .item-inner,
body.takhfedaty-refresh .listing-item-blog-1 > .item-inner,
body.takhfedaty-refresh .listing-item-blog-2 > .item-inner,
body.takhfedaty-refresh .listing-item-classic-1 > .item-inner {
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px rgba(19, 52, 79, .055);
}
body.takhfedaty-refresh .listing-item .title a {
  color: #183353;
}
body.takhfedaty-refresh .listing-item .title a:hover,
body.takhfedaty-refresh .entry-content a:hover {
  color: var(--tk-teal-dark);
}
body.takhfedaty-refresh .listing-item .featured .img-holder {
  border-radius: 8px;
}
body.takhfedaty-refresh .listing-item .post-summary {
  color: #4e6072;
}
body.takhfedaty-refresh .listing-item .term-badges a {
  border-radius: 5px;
}

/* Post reading typography only. No forced width, columns or heights. */
body.takhfedaty-refresh .single-post-content .entry-content,
body.takhfedaty-refresh .entry-content {
  overflow-wrap: break-word;
}
body.takhfedaty-refresh .single-post-content h2,
body.takhfedaty-refresh .entry-content h2 {
  color: #173754;
}
body.takhfedaty-refresh .single-post-content blockquote,
body.takhfedaty-refresh .entry-content blockquote {
  border-inline-start: 3px solid var(--tk-teal);
}
body.takhfedaty-refresh .single-post-content img,
body.takhfedaty-refresh .entry-content img {
  max-width: 100%;
  height: auto;
}

/* Accent details for existing Publisher navigation, do not rebuild them. */
body.takhfedaty-refresh .bs-pagination a:hover,
body.takhfedaty-refresh .bs-pagination .current {
  border-radius: 7px;
}
body.takhfedaty-refresh :is(a, button, input):focus-visible {
  outline: 2px solid #df9f2c;
  outline-offset: 2px;
}

/* Mobile article content overflow only; do not clamp ads or full page. */
@media (max-width: 767px) {
  body.takhfedaty-refresh .entry-content table,
  body.takhfedaty-refresh .post-content table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  body.takhfedaty-refresh .listing-item .title {
    overflow-wrap: break-word;
  }
}
@media (prefers-reduced-motion: reduce) {
  body.takhfedaty-refresh a { scroll-behavior: auto; }
}
