/*
Theme Name: The Trader Sid
Theme URI: https://thetradersid.com
Author: The Trader Sid
Author URI: https://thetradersid.com
Description: Custom WordPress theme for The Trader Sid — swing trading analysis and education for Indian cash market traders.
Version: 1.0.3
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tradersid
Tags: blog, trading, custom-theme
*/

/* =============================================
   CSS VARIABLES — EDIT BRAND COLOURS HERE
============================================= */
:root {
  --green:        #1A6B3C;
  --green-light:  #22883F;
  --green-pale:   #EBF5EF;
  --black:        #0D1117;
  --dark:         #1C2128;
  --mid:          #4A5568;
  --muted:        #718096;
  --border:       #E2E8F0;
  --bg:           #FFFFFF;
  --bg-soft:      #F8FAFB;
  --red:          #C0392B;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'DM Sans', sans-serif;
  --radius:       10px;
  --shadow-sm:    0 1px 3px rgba(0,0,0,0.07);
  --shadow-md:    0 4px 16px rgba(0,0,0,0.09);
  --shadow-lg:    0 8px 32px rgba(0,0,0,0.12);
  --max-w:        1200px;
  --transition:   0.2s ease;
}

/* =============================================
   RESET & BASE
============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* =============================================
   TOP BAR
============================================= */
.top-bar {
  background: var(--black);
  color: rgba(255,255,255,0.75);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 8px 0;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar-tagline { color: rgba(255,255,255,0.6); }
.top-bar-socials { display: flex; gap: 16px; align-items: center; }
.top-bar-socials a {
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
  display: flex;
  align-items: center;
}
.top-bar-socials a:hover { color: #fff; }
.top-bar-socials svg { width: 15px; height: 15px; fill: currentColor; }

/* =============================================
   HEADER / NAV
============================================= */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 32px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-mark {
  width: 40px;
  height: 40px;
  background: var(--green);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.5px;
}
.logo-text { line-height: 1.2; }
.logo-text strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--black);
  letter-spacing: -0.3px;
}
.logo-text span {
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0.02em;
}
.site-nav { display: flex; align-items: center; gap: 3px; }
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}
.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--mid);
  padding: 4px 8px;
  border-radius: 6px;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: var(--black);
  background: var(--bg-soft);
}
.nav-link svg { width: 12px; height: 12px; fill: currentColor; opacity: 0.5; }
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all var(--transition);
  z-index: 200;
}
.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown a {
  display: block;
  font-size: 13.5px;
  color: var(--mid);
  padding: 8px 12px;
  border-radius: 6px;
  transition: all var(--transition);
  font-weight: 400;
}
.dropdown a:hover { background: var(--bg-soft); color: var(--black); }
.btn-newsletter {
  background: var(--green);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: 7px;
  transition: all var(--transition);
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.btn-newsletter:hover {
  background: var(--green-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26,107,60,0.3);
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.mobile-nav {
  display: none;
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 16px 24px 24px;
  flex-direction: column;
  gap: 4px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--mid);
  padding: 11px 12px;
  border-radius: 7px;
  transition: all var(--transition);
}
.mobile-nav a:hover { background: var(--bg-soft); color: var(--black); }
.mobile-nav .mobile-cta {
  margin-top: 12px;
  background: var(--green);
  color: #fff;
  text-align: center;
  border-radius: 8px;
  font-weight: 600;
}
.mobile-nav .mobile-cta:hover { background: var(--green-light); }

/* Mobile nav submenu — expandable on tap, since the mobile walker now
   renders children instead of dropping them (previously the mobile
   walker used depth => 1 and skipped sub-items entirely). */
.mobile-nav-item { display: flex; flex-direction: column; }
.mobile-nav-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--mid);
  padding: 11px 12px;
  border-radius: 7px;
  cursor: pointer;
  transition: all var(--transition);
  text-align: left;
}
.mobile-nav-toggle:hover { background: var(--bg-soft); color: var(--black); }
.mobile-nav-toggle svg {
  width: 14px;
  height: 14px;
  transition: transform var(--transition);
  flex-shrink: 0;
}
.mobile-nav-item.is-open .mobile-nav-toggle svg { transform: rotate(180deg); }
.mobile-submenu {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 16px;
  margin-top: 2px;
}
.mobile-submenu[hidden] { display: none; }
.mobile-submenu-link {
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
  padding: 9px 12px;
  border-radius: 6px;
  transition: all var(--transition);
}
.mobile-submenu-link:hover { background: var(--bg-soft); color: var(--black); }

/* =============================================
   HERO
============================================= */
.hero {
  padding: 72px 0 64px;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-pale);
  color: var(--green);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.hero-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.12;
  color: var(--black);
  letter-spacing: -1px;
  margin-bottom: 20px;
}
.hero h1 em {
  font-style: italic;
  color: var(--green);
}
.hero-desc {
  font-size: 17px;
  color: var(--mid);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 460px;
  font-weight: 300;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 13px 24px;
  border-radius: 8px;
  transition: all var(--transition);
}
.btn-primary:hover {
  background: var(--green-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(26,107,60,0.25);
}
.btn-primary svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--dark);
  font-size: 15px;
  font-weight: 500;
  padding: 13px 24px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  transition: all var(--transition);
}
.btn-secondary:hover {
  border-color: var(--dark);
  background: var(--bg-soft);
}
.hero-features { display: flex; gap: 28px; flex-wrap: wrap; }
.hero-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}
.hero-feature svg { width: 16px; height: 16px; color: var(--green); flex-shrink: 0; }
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chart-container {
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.chart-label {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--mid);
  box-shadow: var(--shadow-sm);
}
.chart-label span { color: var(--green); font-weight: 600; display: block; }
.chart-svg { width: 100%; height: auto; }

/* =============================================
   FEATURE STRIP
============================================= */
.feature-strip {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}
.feature-strip-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 0 32px;
  border-right: 1px solid var(--border);
}
.feature-item:first-child { padding-left: 0; }
.feature-item:last-child { border-right: none; }
.feature-icon {
  width: 38px;
  height: 38px;
  background: var(--green-pale);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.feature-icon svg { width: 18px; height: 18px; color: var(--green); }
.feature-text strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 3px;
}
.feature-text p { font-size: 12.5px; color: var(--muted); line-height: 1.5; }

/* =============================================
   CATEGORIES
============================================= */
.categories { padding: 64px 0; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 34px);
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}
.section-sub {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 40px;
  font-weight: 300;
}
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.category-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  transition: all var(--transition);
  cursor: pointer;
}
.category-card:hover {
  border-color: var(--green);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.cat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.cat-icon svg { width: 22px; height: 22px; }
.cat-icon.green { background: var(--green-pale); color: var(--green); }
.cat-icon.blue { background: #EBF4FF; color: #2563EB; }
.cat-icon.purple { background: #F3EEFF; color: #7C3AED; }
.category-card h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 8px;
}
.category-card p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 20px;
}
.category-link {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: gap var(--transition);
}
.category-card:hover .category-link { gap: 8px; }

/* =============================================
   FRAMEWORK
============================================= */
.framework {
  background: var(--black);
  padding: 64px 0;
}
.framework .section-title { color: #fff; }
.framework .section-sub { color: rgba(255,255,255,0.5); }
.framework-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
  margin-top: 48px;
}
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 12px;
  position: relative;
}
.step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.step-num svg { width: 22px; height: 22px; color: var(--green); }
.step h4 {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
}
.step p { font-size: 12px; color: rgba(255,255,255,0.45); line-height: 1.5; }
.step-arrow {
  position: absolute;
  top: 26px;
  right: -8px;
  color: rgba(255,255,255,0.2);
  font-size: 16px;
  z-index: 2;
}

/* =============================================
   MAIN CONTENT
============================================= */
.main-content { padding: 64px 0; }
.content-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}
.articles-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.articles-header h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.3px;
}
.view-all {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: gap var(--transition);
}
.view-all:hover { gap: 8px; }
.article-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}
.article-card:first-child { padding-top: 0; }
.article-card:last-child { border-bottom: none; }
.article-card:hover .article-title { color: var(--green); }
.article-thumb {
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--black);
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 12px;
}
.article-thumb-label {
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.3;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
  position: relative;
  z-index: 1;
}
.article-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}
.thumb-1 { background: linear-gradient(135deg, #0D1117 0%, #1A3A2A 100%); }
.thumb-2 { background: linear-gradient(135deg, #0D1117 0%, #1A2A3A 100%); }
.thumb-3 { background: linear-gradient(135deg, #0D1117 0%, #2A1A3A 100%); }
.thumb-4 { background: linear-gradient(135deg, #0D1117 0%, #3A2A1A 100%); }
.article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}
.article-meta .tag {
  background: var(--green-pale);
  color: var(--green);
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 100px;
  font-size: 11px;
}
.article-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.4;
  margin-bottom: 8px;
  transition: color var(--transition);
  letter-spacing: -0.2px;
}
.article-excerpt {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
  font-weight: 300;
}

/* =============================================
   SIDEBAR
============================================= */
.sidebar { display: flex; flex-direction: column; gap: 28px; }
.sidebar-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.about-card-inner { padding: 24px; }
.about-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-pale), #d4edde);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 14px;
  border: 3px solid var(--green-pale);
  overflow: hidden;
}
.about-avatar img { width: 100%; height: 100%; object-fit: cover; }
.about-card-inner h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 6px;
}
.about-card-inner p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 16px;
  font-weight: 300;
}
.read-story {
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.newsletter-card { padding: 24px; }
.newsletter-card h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 4px;
  letter-spacing: -0.3px;
}
.newsletter-count {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--green);
  font-weight: 600;
  margin-bottom: 16px;
}
.newsletter-count::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}
.newsletter-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 16px;
  font-weight: 300;
}
.newsletter-form { display: flex; flex-direction: column; gap: 10px; }
.newsletter-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--bg-soft);
  transition: border-color var(--transition);
  outline: none;
}
.newsletter-input:focus { border-color: var(--green); background: var(--bg); }
.newsletter-input::placeholder { color: var(--muted); }
.newsletter-submit {
  width: 100%;
  background: var(--green);
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all var(--transition);
}
.newsletter-submit:hover {
  background: var(--green-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(26,107,60,0.25);
}
.newsletter-note {
  font-size: 11.5px;
  color: var(--muted);
  text-align: center;
}
.popular-card { padding: 20px 24px; }
.popular-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.popular-list { display: flex; flex-direction: column; }
.popular-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--mid);
  transition: color var(--transition);
  cursor: pointer;
  gap: 10px;
}
.popular-item:last-child { border-bottom: none; }
.popular-item:hover { color: var(--green); }
.popular-item svg { width: 14px; height: 14px; flex-shrink: 0; opacity: 0.4; }
.tools-card { padding: 24px; background: var(--green-pale); }
.tools-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 8px;
}
.tools-card p {
  font-size: 13px;
  color: var(--mid);
  line-height: 1.6;
  margin-bottom: 16px;
  font-weight: 300;
}
.tools-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 7px;
  transition: all var(--transition);
}
.tools-link:hover { background: var(--green-light); }

/* =============================================
   SINGLE POST
============================================= */
.single-post { padding: 56px 0; }
.single-post .content-grid { grid-template-columns: 1fr 320px; }
.post-header { margin-bottom: 32px; }
.post-header .article-meta { margin-bottom: 12px; }
.post-header h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 16px;
}
.post-featured-image {
  width: 100%;
  border-radius: 14px;
  margin-bottom: 32px;
  background: var(--black);
}
.post-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}
.post-content { font-size: 17px; line-height: 1.8; color: var(--dark); }
.post-content h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--black);
  margin: 40px 0 16px;
  letter-spacing: -0.3px;
}
.post-content h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--black);
  margin: 32px 0 12px;
}
.post-content p { margin-bottom: 20px; font-weight: 300; }
.post-content ul, .post-content ol {
  padding-left: 24px;
  margin-bottom: 20px;
  list-style: disc;
}
.post-content ol { list-style: decimal; }
.post-content li { margin-bottom: 8px; font-weight: 300; }
.post-content strong { font-weight: 600; color: var(--black); }
.post-content blockquote {
  border-left: 3px solid var(--green);
  padding: 16px 24px;
  background: var(--green-pale);
  border-radius: 0 8px 8px 0;
  margin: 28px 0;
  font-style: italic;
  color: var(--mid);
}
.post-content img {
  border-radius: 10px;
  margin: 28px 0;
  width: 100%;
}
.post-content a { color: var(--green); text-decoration: underline; }

/* =============================================
   ARCHIVE / CATEGORY PAGE
============================================= */
.archive-header {
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}
.archive-header h1 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}
.archive-header p { font-size: 16px; color: var(--muted); font-weight: 300; }
.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 48px;
}
.archive-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: all var(--transition);
}
.archive-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--green);
}
.archive-card:hover .archive-card-title { color: var(--green); }
.archive-card-image {
  aspect-ratio: 16/9;
  background: var(--black);
  overflow: hidden;
  position: relative;
}
.archive-card-image img {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 16/9 !important;
  object-fit: cover;
  opacity: 0.85;
  transition: opacity var(--transition);
}
.archive-card:hover .archive-card-image img { opacity: 1; }
.archive-card-body { padding: 20px; }
.archive-card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.4;
  margin-bottom: 8px;
  transition: color var(--transition);
}
.archive-card-excerpt {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  font-weight: 300;
  margin-bottom: 14px;
}
.archive-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}
.archive-card-meta .tag {
  background: var(--green-pale);
  color: var(--green);
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 100px;
  font-size: 11px;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 32px 0;
}
.pagination a, .pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 14px;
  font-weight: 500;
  color: var(--mid);
  transition: all var(--transition);
}
.pagination a:hover { border-color: var(--green); color: var(--green); }
.pagination .current {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

/* =============================================
   FOOTER
============================================= */
.site-footer {
  background: var(--black);
  color: rgba(255,255,255,0.65);
  padding: 56px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.4fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand p {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255,255,255,0.45);
  margin-bottom: 20px;
  font-weight: 300;
  max-width: 240px;
}
.footer-brand .logo-mark { margin-bottom: 16px; }
.footer-socials { display: flex; gap: 10px; }
.footer-social {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  background: rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.footer-social:hover { background: var(--green); }
.footer-social svg { width: 15px; height: 15px; fill: rgba(255,255,255,0.65); }
.footer-social:hover svg { fill: #fff; }
.footer-col h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  font-size: 13.5px;
  color: rgba(255,255,255,0.45);
  transition: color var(--transition);
  font-weight: 300;
}
.footer-col ul li a:hover { color: rgba(255,255,255,0.9); }
.footer-newsletter h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  margin-bottom: 8px;
}
.footer-newsletter p {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  line-height: 1.6;
  margin-bottom: 16px;
  font-weight: 300;
}
.footer-input-row { display: flex; gap: 8px; }
.footer-input {
  flex: 1;
  padding: 10px 14px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 7px;
  color: #fff;
  font-size: 13px;
  font-family: var(--font-body);
  outline: none;
  transition: border-color var(--transition);
}
.footer-input:focus { border-color: var(--green); }
.footer-input::placeholder { color: rgba(255,255,255,0.3); }
.footer-sub-btn {
  background: var(--green);
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background var(--transition);
  white-space: nowrap;
}
.footer-sub-btn:hover { background: var(--green-light); }
.footer-bottom {
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: rgba(255,255,255,0.3);
}
.footer-bottom a { color: rgba(255,255,255,0.4); transition: color var(--transition); }
.footer-bottom a:hover { color: rgba(255,255,255,0.8); }
.footer-bottom-links { display: flex; gap: 20px; }

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 560px; margin: 0 auto; width: 100%; }
  .framework-steps { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .step-arrow { display: none; }
  .content-grid { grid-template-columns: 1fr; }
  .sidebar { display: grid; grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .categories-grid { grid-template-columns: 1fr 1fr; }
  .archive-grid { grid-template-columns: 1fr 1fr; }
  .single-post .content-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .top-bar { display: none; }
  .site-nav, .btn-newsletter { display: none; }
  .hamburger { display: flex; }
  .hero { padding: 40px 0 48px; }
  .hero h1 { font-size: 34px; }
  .hero-desc { font-size: 15px; }
  .feature-strip-inner { grid-template-columns: 1fr; gap: 20px; }
  .feature-item { border-right: none; border-bottom: 1px solid var(--border); padding: 0 0 20px; }
  .feature-item:last-child { border-bottom: none; padding-bottom: 0; }
  .categories-grid { grid-template-columns: 1fr; }
  .framework-steps { grid-template-columns: 1fr 1fr; }
  .article-card { grid-template-columns: 120px 1fr; gap: 14px; }
  .article-title { font-size: 15px; }
  .article-excerpt { display: none; }
  .sidebar { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .footer-bottom-links { flex-wrap: wrap; justify-content: center; gap: 14px; }
  .footer-input-row { flex-direction: column; }
  .archive-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 28px; }
  .framework-steps { grid-template-columns: 1fr; }
  .article-card { grid-template-columns: 1fr; }
  .article-thumb { aspect-ratio: 16/7; }
  .sidebar { grid-template-columns: 1fr; }
}

/* =============================================
   DISCLAIMER BANNER
   Rendered by radar_disclaimer_banner() in functions.php.
   Appears automatically at the top of every single post, and in the
   hero of the Weekly Market Radar page.
============================================= */
.vg-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--green-pale);
  border: 1px solid rgba(26,107,60,0.18);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 0 0 32px;
}
.vg-disclaimer svg {
  width: 18px; height: 18px;
  stroke: var(--green);
  flex-shrink: 0;
  margin-top: 1px;
}
.vg-disclaimer p {
  font-size: 13px;
  color: var(--mid);
  line-height: 1.6;
  margin: 0;
  font-weight: 400;
}
.vg-disclaimer a {
  color: var(--green);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.vg-disclaimer a:hover { color: var(--green-light); }
.vg-disclaimer.compact {
  padding: 12px 16px;
  margin: 0 0 28px;
}
.vg-disclaimer.compact p { font-size: 12.5px; }

/* =============================================
   INLINE RESEARCH CARDS (single post)
   Rendered by radar_render_shortcodes_in_content() in functions.php,
   replacing [sector]/[rank]/[setup] tags typed into the post body
   with these cards, in place, wherever the tag was written. Uses the
   same --green/--black/--border tokens as the rest of the theme so
   these read as a native part of the article, not a bolted-on widget.
============================================= */
.vg-inline-sector-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px 16px;
  margin: 28px 0;
  background: var(--bg);
  font-family: var(--font-body);
}
.vg-inline-sector-card.leader {
  border-color: rgba(26,107,60,0.35);
  background: var(--green-pale);
}
.vg-inline-sector-card.laggard {
  border-color: rgba(192,57,43,0.3);
  background: #FBEEEC;
}

.vg-inline-rank-row {
  display: grid;
  grid-template-columns: 1fr 90px 90px;
  gap: 14px;
  padding: 10px 16px;
  font-size: 13.5px;
  font-family: var(--font-body);
  border: 1px solid var(--border);
  border-top: none;
  background: var(--bg);
}
.vg-inline-rank-row:first-of-type {
  border-top: 1px solid var(--border);
  border-radius: 10px 10px 0 0;
  margin-top: 28px;
}
.vg-inline-rank-row:last-of-type {
  border-radius: 0 0 10px 10px;
  margin-bottom: 28px;
}

/* Shared sub-elements used inside the sector card */
.vg-sector-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.vg-sector-name { font-size: 15px; font-weight: 600; color: var(--black); margin: 0; }
.vg-sector-trend {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}
.vg-sector-trend.up   { background: var(--green-pale); color: var(--green); }
.vg-sector-trend.down { background: #FBEEEC; color: var(--red); }
.vg-sector-trend svg  { width: 11px; height: 11px; }
.vg-sector-stats { display: flex; gap: 18px; margin-bottom: 10px; }
.vg-stat { flex: 1; }
.vg-stat-label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 4px;
}
.vg-stat-value { font-size: 15px; font-weight: 600; color: var(--black); }
.vg-rs-bar {
  width: 100%; height: 5px;
  background: var(--bg-soft);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 3px;
}
.vg-rs-bar-fill { height: 100%; border-radius: 10px; background: var(--green); }
.vg-inline-sector-card.laggard .vg-rs-bar-fill { background: var(--red); }
.vg-sector-note {
  font-size: 13px;
  color: var(--mid);
  line-height: 1.55;
  margin: 10px 0 0;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
  font-weight: 300;
}

.vg-inline-rank-sector { font-weight: 600; color: var(--black); }
.vg-inline-rank-momentum.up   { color: var(--green); font-weight: 600; }
.vg-inline-rank-momentum.down { color: var(--red); font-weight: 600; }

/* =============================================
   STOCKS WORTH WATCHING — [watch] cards
   Deliberately minimal: stock name, sector, a trend label, and a
   short observational summary. No entry zone, stop loss, target
   price, or risk field — this section is a curated research
   watchlist, not a trade-setup service.
============================================= */
.vg-watch-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 28px 0;
}
.vg-watch-card {
  display: flex;
  align-items: stretch;
  gap: 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  background: var(--bg);
  font-family: var(--font-body);
}
.vg-watch-chart {
  flex: 0 0 260px;
  display: block;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: zoom-in;
}
.vg-watch-chart img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s ease;
}
.vg-watch-chart:hover img {
  transform: scale(1.03);
}
.vg-watch-body {
  flex: 1 1 auto;
  min-width: 0;
}
@media (max-width: 900px) {
  .vg-watch-card {
    flex-direction: column;
  }
  .vg-watch-chart {
    flex: 0 0 auto;
    width: 100%;
    aspect-ratio: 16 / 9;
  }
}
.vg-watch-top {
  margin-bottom: 10px;
}
.vg-watch-stock {
  font-size: 16px;
  font-weight: 700;
  color: var(--black);
  margin: 0;
  letter-spacing: -0.1px;
}
.vg-watch-sector {
  font-size: 12.5px;
  color: var(--muted);
  margin: 3px 0 0;
  font-weight: 400;
}
.vg-watch-trend {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--green);
  background: var(--green-pale);
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 14px;
}
.vg-watch-summary {
  font-size: 13.5px;
  color: var(--mid);
  line-height: 1.65;
  font-weight: 300;
  margin: 0;
}

.vg-watch-disclaimer {
  font-size: 12.5px;
  color: var(--muted);
  font-style: italic;
  line-height: 1.6;
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-weight: 300;
}

@media (max-width: 900px) {
  /* .vg-watch-grid intentionally stays single-column here — it's
     already 1fr by default since the chart-card redesign, so no
     2-column override belongs at this breakpoint. The old rule below
     was a leftover from before that redesign and was forcing 2 stocks
     per row on mobile, squeezing the chart image and text together. */
}
@media (max-width: 600px) {
  .vg-inline-rank-row { grid-template-columns: 1fr 70px; }
  .vg-inline-rank-row > :nth-child(2) { display: none; }
}