/* توویدک — کاتالوگ فنی کارگاهی | layout:neon */
html { direction: rtl; }
:root {
  --cm-accent: #f9a825;
  --cm-bg: #1a1a1a;
  --cm-surface: #242424;
  --cm-text: #f5f5f5;
  --cm-muted: #b0b0b0;
  --cm-radius: 4px;
  --cm-gap: 0.9rem;
  --cm-font: Tanha, Tahoma, "Segoe UI", sans-serif;
  --cm-shadow: none;
  --cm-header-dark: #111111;
  --wp--preset--font-family--open-sans: Tanha, 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;
  }
}

/* neon/dark: glow cards */
body { background: var(--cm-bg); }
.cm-header { border-bottom: 2px solid var(--cm-accent) !important; box-shadow: 0 0 24px color-mix(in srgb, var(--cm-accent) 35%, transparent); }
.widget, .cm-featured-posts, .cm-posts {
  border: 1px solid color-mix(in srgb, var(--cm-accent) 40%, transparent);
  box-shadow: 0 0 20px color-mix(in srgb, var(--cm-accent) 18%, transparent);
}
.cm-entry-title a, .entry-title a { color: var(--cm-text) !important; }
.cm-entry-title a:hover { color: var(--cm-accent) !important; text-shadow: 0 0 12px color-mix(in srgb, var(--cm-accent) 50%, transparent); }
.cm-featured-category-slider .cm-entry-title a { color: #fff !important; }
a { text-decoration-thickness: 2px; }
