/* JNews: Global tweaks */

/* Typography scale (adjust font-family to your brand) */
:root {
  --jn-news-base-fs: 16px;
  --jn-news-heading-fs: 1.25em;
  --jn-news-headline-fs: 1.75em;
  --jn-news-primary: #2a6ebb;   /* primary brand color */
  --jn-news-accent: #e54b4b;    /* accent color */
  --jn-news-bg: #ffffff;
  --jn-news-text: #1a1a1a;
  --jn-news-muted: #6b7280;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: var(--jn-news-base-fs);
  color: var(--jn-news-text);
  background: var(--jn-news-bg);
  line-height: 1.6;
}

/* Global links */
a {
  color: var(--jn-news-primary);
  text-decoration: none;
}
a:hover,
a:focus {
  text-decoration: underline;
  color: var(--jn-news-accent);
}

/* Header / top navigation tweaks */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 12px 20px;
}
.site-header .logo {
  font-weight: 700;
  font-size: 1.2em;
}
.site-navigation {
  display: flex;
  gap: 16px;
  align-items: center;
}
.site-navigation a {
  padding: 8px 12px;
  border-radius: 6px;
}
.site-navigation a:hover {
  background: #f3f4f6;
}

/* Hero / featured slider tweaks (adjust selectors as per JNews markup) */
.jn-featured {
  position: relative;
  overflow: hidden;
}
.jn-featured .slide {
  display: block;
  padding: 20px;
  background: #f8fafc;
}
.jn-featured .slide h2 {
  font-size: var(--jn-news-headline-fs);
}
.jn-featured .slide .excerpt {
  color: var(--jn-news-muted);
  margin-top: 6px;
}

/* Post cards (grid/list) */
.jn-post-card {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.jn-post-card:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,.05);
}
.jn-post-card .thumb {
  width: 100%;
  height: 180px;
  background-size: cover;
  background-position: center;
}
.jn-post-card .content {
  padding: 14px;
}
.jn-post-card .title {
  font-size: 1.15em;
  font-weight: 700;
  margin: 0 0 6px;
}
.jn-post-card .meta {
  font-size: 0.875em;
  color: var(--jn-news-muted);
}
.jn-post-card .excerpt {
  color: #374151;
  margin-top: 6px;
}

/* Single post */
.single-post {
  max-width: 800px;
  margin: 0 auto;
  padding: 24px;
}
.single-post h1 {
  font-size: 2em;
  margin-bottom: 8px;
}
.single-post .byline {
  color: var(--jn-news-muted);
  font-size: 0.95em;
  margin-bottom: 16px;
}
.single-post .content {
  font-size: 1.05em;
}
.single-post .tags {
  margin-top: 18px;
}
.single-post .tags a {
  display: inline-block;
  background: #f3f4f6;
  color: #374151;
  padding: 6px 10px;
  border-radius: 999px;
  margin-right: 6px;
  font-size: 0.9em;
}

/* Comments block */
.comment-area {
  margin-top: 40px;
}
.comment-area h3 {
  font-size: 1.25em;
  margin-bottom: 12px;
}
.comment {
  border-top: 1px solid #e5e7eb;
  padding: 12px 0;
}
.comment .author {
  font-weight: 600;
}
.comment .text {
  margin-top: 6px;
  color: #374151;
}

/* Footer */
.site-footer {
  background: #111827;
  color: #e5e7eb;
  padding: 24px 20px;
}
.site-footer a {
  color: #e5e7eb;
}
@media (max-width: 768px) {
  :root {
    --jn-news-base-fs: 15px;
  }
  .single-post {
    padding: 16px;
  }
  .jn-post-card .thumb {
    height: 140px;
  }
}