/* روزباکس — ticker فناوری | layout:tech */
html { direction: rtl; }
:root {
  --cm-accent: #1565c0;
  --cm-bg: #f5f9ff;
  --cm-surface: #ffffff;
  --cm-text: #0d2137;
  --cm-muted: #607d8b;
  --cm-radius: 8px;
  --cm-gap: 0.95rem;
  --cm-font: Sahel, Tahoma, "Segoe UI", sans-serif;
  --cm-shadow: 0 2px 8px rgba(21,101,192,0.06);
  --cm-header-dark: #0d2137;
  --wp--preset--font-family--open-sans: Sahel, Tahoma, sans-serif;
}

html, body, .site, .cm-content, #page,
body, button, input, select, textarea,
.widget, .cm-entry-title, .entry-title,
.main-navigation, .main-navigation a,
h1, h2, h3, h4, h5, h6,
#cm-primary-nav, #cm-primary-nav a,
.cm-header, .cm-header a,
.cm-footer, .cm-footer a,
.cm-entry-meta, .entry-meta,
.entry-content, .search-form input {
  font-family: var(--cm-font) !important;
}

body {
  background: var(--cm-bg);
  color: var(--cm-text);
  font-weight: 400;
  line-height: 1.7;
  direction: rtl;
  text-align: right;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--cm-accent); }
a:hover { filter: brightness(0.9); }

.cm-entry-title a, .entry-title a {
  color: var(--cm-text) !important;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.cm-entry-meta, .entry-meta, .cm-entry-meta a {
  color: var(--cm-muted) !important;
  font-size: 0.78rem;
}

img { max-width: 100%; height: auto; }

.cm-header, .cm-main-header, .cm-header-1 {
  background: var(--cm-header-dark) !important;
  color: #fff !important;
  border-bottom: 3px solid var(--cm-accent) !important;
}
.cm-header .cm-site-title a,
#cm-site-info .cm-site-title a,
.cm-primary-nav a, #cm-primary-nav a {
  color: #fff !important;
}
.custom-logo-link img, .custom-logo {
  max-height: 52px;
  width: auto;
}

.cm-featured-posts, .widget, .cm-posts {
  background: var(--cm-surface);
  border-radius: var(--cm-radius);
  box-shadow: var(--cm-shadow);
}

.widget-title, .cm-widget-title, .cm-posts .cm-widget-title span {
  border-right: 4px solid var(--cm-accent);
  padding-right: 0.6rem;
  font-weight: 700;
}

/* Single post reading */
.single .entry-content, .single .cm-entry-summary {
  max-width: 42rem;
  font-size: 1.05rem;
  line-height: 1.85;
}
.single .wp-post-image, .single .cm-featured-image img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
  border-radius: var(--cm-radius);
}
.cm-breadcrumb, .breadcrumb {
  font-size: 0.8rem;
  color: var(--cm-muted);
  margin-bottom: 0.75rem;
}

.rooyesh-home-h1.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  border: 0;
}

@media (max-width: 768px) {
  body { font-size: 15px; }
  .cm-header .cm-site-title { font-size: 1.05rem !important; }
  .custom-logo-link img { max-height: 40px; }
}
@media (max-width: 360px) {
  body { font-size: 14px; }
  .cm-primary-nav a { padding: 0.4rem 0.55rem !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* tech dashboard: airy cards, tool bar feel */
body { letter-spacing: 0.01em; }
.cm-header {
  border-bottom: none !important;
  box-shadow: inset 0 -1px 0 rgba(255,255,255,.08);
}
.cm-primary-nav a {
  border-radius: 6px; margin: 0 2px;
}
.cm-primary-nav a:hover { background: rgba(255,255,255,.1); }
.widget, .cm-featured-posts, .cm-posts {
  padding: 0.85rem; border: 1px solid color-mix(in srgb, var(--cm-accent) 18%, transparent);
}
.cm-entry-title { font-weight: 650; }
