/*
Theme Name: StockMaven Pro
Theme URI: https://stockmaven.com
Author: StockMaven
Author URI: https://stockmaven.com
Description: High-performance financial publishing theme with Elementor support. Built for E-E-A-T, Core Web Vitals excellence, and mobile-first design.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: stockmaven-pro
Tags: elementor, blog, finance, investing, responsive, custom-header, custom-menu, featured-images, full-width-template

StockMaven Pro is a high-performance WordPress theme designed for financial publishers.
*/

/* ============================================================
   CSS CUSTOM PROPERTIES — Design System Tokens
   ============================================================ */
:root {
  /* Brand Colors */
  --sm-primary:       #0A1628;
  --sm-primary-mid:   #122040;
  --sm-accent:        #00D4AA;
  --sm-accent-dark:   #00A882;
  --sm-accent-light:  #E6FBF7;
  --sm-gold:          #F0B429;
  --sm-gold-light:    #FEF3C7;

  /* Semantic Colors */
  --sm-gain:          #10B981;
  --sm-gain-bg:       #D1FAE5;
  --sm-loss:          #EF4444;
  --sm-loss-bg:       #FEE2E2;
  --sm-neutral:       #6B7280;

  /* Surface & Background */
  --sm-bg:            #FFFFFF;
  --sm-bg-soft:       #F8FAFC;
  --sm-bg-muted:      #F1F5F9;
  --sm-surface:       #FFFFFF;
  --sm-border:        #E2E8F0;
  --sm-border-strong: #CBD5E1;

  /* Text */
  --sm-text:          #0F172A;
  --sm-text-muted:    #475569;
  --sm-text-light:    #94A3B8;
  --sm-text-inverse:  #FFFFFF;

  /* Typography */
  --sm-font-display:  'Sora', 'DM Sans', -apple-system, sans-serif;
  --sm-font-body:     'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --sm-font-mono:     'JetBrains Mono', 'Fira Code', monospace;
  --sm-font-number:   'Sora', var(--sm-font-display);

  /* Spacing Scale */
  --sm-space-xs:      0.25rem;
  --sm-space-sm:      0.5rem;
  --sm-space-md:      1rem;
  --sm-space-lg:      1.5rem;
  --sm-space-xl:      2rem;
  --sm-space-2xl:     3rem;
  --sm-space-3xl:     4rem;
  --sm-space-4xl:     6rem;

  /* Border Radius */
  --sm-radius-sm:     0.375rem;
  --sm-radius-md:     0.75rem;
  --sm-radius-lg:     1rem;
  --sm-radius-xl:     1.5rem;
  --sm-radius-full:   9999px;

  /* Shadows */
  --sm-shadow-sm:     0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --sm-shadow-md:     0 4px 16px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.05);
  --sm-shadow-lg:     0 12px 40px rgba(0,0,0,.12), 0 4px 16px rgba(0,0,0,.06);
  --sm-shadow-xl:     0 24px 64px rgba(0,0,0,.14), 0 8px 24px rgba(0,0,0,.08);
  --sm-shadow-accent: 0 8px 32px rgba(0,212,170,.25);

  /* Transitions */
  --sm-transition:    all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --sm-transition-slow: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --sm-container:     1240px;
  --sm-container-sm:  860px;
  --sm-header-h:      72px;

  /* Z-Index */
  --sm-z-header:      1000;
  --sm-z-dropdown:    1100;
  --sm-z-modal:       2000;
  --sm-z-toast:       3000;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--sm-font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--sm-text);
  background: var(--sm-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Performance: contain layout shifts */
img, video, iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

img {
  content-visibility: auto;
}

a {
  color: var(--sm-accent-dark);
  text-decoration: none;
  transition: var(--sm-transition);
}

a:hover { color: var(--sm-accent); }

ul, ol { list-style: none; }

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

/* ============================================================
   LAYOUT CONTAINERS
   ============================================================ */
.sm-container {
  width: 100%;
  max-width: var(--sm-container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.sm-container--sm {
  max-width: var(--sm-container-sm);
}

.sm-section {
  padding-block: clamp(2.5rem, 6vw, 5rem);
}

/* ============================================================
   TYPOGRAPHY SYSTEM
   ============================================================ */
h1, h2, h3, h4, h5, h6,
.sm-h1, .sm-h2, .sm-h3, .sm-h4 {
  font-family: var(--sm-font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--sm-text);
  letter-spacing: -0.02em;
}

h1, .sm-h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2, .sm-h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3, .sm-h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4, .sm-h4 { font-size: clamp(1.1rem, 2vw, 1.3rem); }

.sm-display {
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.sm-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sm-accent-dark);
}

.sm-lead {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.65;
  color: var(--sm-text-muted);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.sm-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  font-family: var(--sm-font-body);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--sm-radius-full);
  transition: var(--sm-transition);
  white-space: nowrap;
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.sm-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.08);
  opacity: 0;
  transition: opacity 0.2s;
}
.sm-btn:hover::after { opacity: 1; }

.sm-btn--primary {
  background: var(--sm-accent);
  color: var(--sm-primary);
  box-shadow: var(--sm-shadow-accent);
}
.sm-btn--primary:hover {
  background: var(--sm-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,212,170,.35);
  color: var(--sm-primary);
}

.sm-btn--outline {
  background: transparent;
  color: var(--sm-text);
  border-color: var(--sm-border-strong);
}
.sm-btn--outline:hover {
  border-color: var(--sm-accent);
  color: var(--sm-accent-dark);
  background: var(--sm-accent-light);
}

.sm-btn--ghost {
  background: rgba(255,255,255,0.1);
  color: var(--sm-text-inverse);
  border-color: rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
}
.sm-btn--ghost:hover {
  background: rgba(255,255,255,0.18);
  color: var(--sm-text-inverse);
}

.sm-btn--lg {
  padding: 0.9rem 2rem;
  font-size: 1rem;
}

.sm-btn--sm {
  padding: 0.45rem 1rem;
  font-size: 0.8rem;
}

/* ============================================================
   BADGES & TAGS
   ============================================================ */
.sm-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: var(--sm-radius-full);
  letter-spacing: 0.04em;
}
.sm-badge--gain  { background: var(--sm-gain-bg); color: #065F46; }
.sm-badge--loss  { background: var(--sm-loss-bg); color: #991B1B; }
.sm-badge--new   { background: var(--sm-accent-light); color: var(--sm-accent-dark); }
.sm-badge--gold  { background: var(--sm-gold-light); color: #92400E; }
.sm-badge--cat   { background: var(--sm-bg-muted); color: var(--sm-text-muted); }

/* ============================================================
   CARDS — Base
   ============================================================ */
.sm-card {
  background: var(--sm-surface);
  border: 1px solid var(--sm-border);
  border-radius: var(--sm-radius-lg);
  overflow: hidden;
  transition: var(--sm-transition-slow);
}
.sm-card:hover {
  border-color: var(--sm-border-strong);
  box-shadow: var(--sm-shadow-lg);
  transform: translateY(-3px);
}

.sm-card__img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.sm-card__body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.sm-card__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.sm-card__title {
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.6rem;
  color: var(--sm-text);
  letter-spacing: -0.01em;
}

.sm-card__excerpt {
  font-size: 0.875rem;
  color: var(--sm-text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
   HEADER
   ============================================================ */
.sm-header {
  position: sticky;
  top: 0;
  z-index: var(--sm-z-header);
  height: var(--sm-header-h);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--sm-border);
  transition: var(--sm-transition);
}

.sm-header.scrolled {
  box-shadow: var(--sm-shadow-md);
}

.sm-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  height: 100%;
}

.sm-header__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--sm-font-display);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--sm-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.sm-header__logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--sm-accent), var(--sm-accent-dark));
  border-radius: var(--sm-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sm-header__logo-icon svg {
  width: 20px;
  height: 20px;
  fill: var(--sm-primary);
}

/* NAV */
.sm-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.sm-nav__item { position: relative; }

.sm-nav__link {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--sm-text-muted);
  border-radius: var(--sm-radius-md);
  transition: var(--sm-transition);
  white-space: nowrap;
}

.sm-nav__link:hover,
.sm-nav__link.active {
  color: var(--sm-text);
  background: var(--sm-bg-muted);
}

/* Dropdown */
.sm-nav__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  min-width: 220px;
  background: var(--sm-surface);
  border: 1px solid var(--sm-border);
  border-radius: var(--sm-radius-lg);
  box-shadow: var(--sm-shadow-xl);
  opacity: 0;
  pointer-events: none;
  transition: var(--sm-transition);
  z-index: var(--sm-z-dropdown);
  padding: 0.5rem;
}

.sm-nav__item:hover .sm-nav__dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.sm-nav__dropdown-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.85rem;
  font-size: 0.875rem;
  color: var(--sm-text-muted);
  border-radius: var(--sm-radius-md);
  transition: var(--sm-transition);
}

.sm-nav__dropdown-link:hover {
  color: var(--sm-text);
  background: var(--sm-bg-muted);
}

.sm-nav__dropdown-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--sm-radius-sm);
  background: var(--sm-bg-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

/* Header Actions */
.sm-header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.sm-header__search-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--sm-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sm-text-muted);
  transition: var(--sm-transition);
  background: transparent;
}

.sm-header__search-btn:hover {
  background: var(--sm-bg-muted);
  color: var(--sm-text);
}

/* Mobile hamburger */
.sm-mobile-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--sm-radius-md);
  color: var(--sm-text);
  background: transparent;
  transition: var(--sm-transition);
}

.sm-mobile-toggle:hover { background: var(--sm-bg-muted); }

/* Mobile Nav Drawer */
.sm-mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: calc(var(--sm-z-header) + 1);
  background: rgba(10,22,40,.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.sm-mobile-nav.open {
  opacity: 1;
  pointer-events: auto;
}

.sm-mobile-nav__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(360px, 88vw);
  background: var(--sm-surface);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  padding: 1.5rem;
}

.sm-mobile-nav.open .sm-mobile-nav__panel {
  transform: translateX(0);
}

/* ============================================================
   SEARCH OVERLAY
   ============================================================ */
.sm-search-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--sm-z-modal);
  background: rgba(10,22,40,.85);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 10vh;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.sm-search-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.sm-search-overlay__box {
  width: min(640px, 90vw);
  background: var(--sm-surface);
  border-radius: var(--sm-radius-xl);
  border: 1px solid var(--sm-border);
  box-shadow: var(--sm-shadow-xl);
  overflow: hidden;
}

.sm-search-overlay__input {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--sm-border);
}

.sm-search-overlay__input input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1.1rem;
  color: var(--sm-text);
  background: transparent;
}

.sm-search-overlay__results {
  padding: 0.75rem;
  max-height: 400px;
  overflow-y: auto;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.sm-hero {
  background: var(--sm-primary);
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 8vw, 6rem);
}

/* Animated background grid */
.sm-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,212,170,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,170,.06) 1px, transparent 1px);
  background-size: 48px 48px;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% { transform: translateY(0); }
  100% { transform: translateY(48px); }
}

/* Accent blobs */
.sm-hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  pointer-events: none;
}

.sm-hero__blob--1 {
  width: 600px;
  height: 600px;
  background: var(--sm-accent);
  top: -200px;
  right: -100px;
}

.sm-hero__blob--2 {
  width: 400px;
  height: 400px;
  background: #4F46E5;
  bottom: -150px;
  left: 100px;
}

.sm-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.sm-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sm-accent);
  margin-bottom: 1rem;
  padding: 0.35rem 0.85rem;
  background: rgba(0,212,170,.1);
  border: 1px solid rgba(0,212,170,.2);
  border-radius: var(--sm-radius-full);
}

.sm-hero__title {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #FFFFFF;
  margin-bottom: 1.25rem;
}

.sm-hero__title .accent {
  color: var(--sm-accent);
  position: relative;
}

.sm-hero__desc {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  line-height: 1.7;
  color: rgba(255,255,255,0.65);
  margin-bottom: 2rem;
  max-width: 500px;
}

.sm-hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.875rem;
}

.sm-hero__trust {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.12);
}

.sm-hero__trust-avatars {
  display: flex;
}

.sm-hero__trust-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--sm-primary);
  background: var(--sm-border);
  margin-left: -8px;
  overflow: hidden;
  flex-shrink: 0;
}

.sm-hero__trust-avatar:first-child { margin-left: 0; }

.sm-hero__trust-text {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.4;
}

.sm-hero__trust-text strong {
  color: rgba(255,255,255,0.9);
}

/* Hero visual / widget side */
.sm-hero__visual {
  position: relative;
}

/* ============================================================
   MARKET TICKER BAR
   ============================================================ */
.sm-ticker {
  background: var(--sm-primary-mid);
  border-bottom: 1px solid rgba(255,255,255,.08);
  overflow: hidden;
  height: 38px;
  display: flex;
  align-items: center;
}

.sm-ticker__track {
  display: flex;
  align-items: center;
  gap: 2rem;
  animation: tickerScroll 35s linear infinite;
  white-space: nowrap;
  padding-inline: 1rem;
}

@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.sm-ticker__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--sm-font-number);
  font-size: 0.78rem;
  font-weight: 600;
  flex-shrink: 0;
}

.sm-ticker__symbol { color: rgba(255,255,255,0.9); }
.sm-ticker__price  { color: rgba(255,255,255,0.7); }
.sm-ticker__change--gain { color: var(--sm-gain); }
.sm-ticker__change--loss { color: var(--sm-loss); }
.sm-ticker__dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
}

/* ============================================================
   FEATURED POSTS GRID
   ============================================================ */
.sm-featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1.25rem;
}

.sm-featured-grid .sm-card:first-child {
  grid-column: 1 / -1;
}

.sm-featured-grid .sm-card:first-child .sm-card__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.sm-featured-grid .sm-card:first-child .sm-card__img-wrap {
  aspect-ratio: auto;
  height: 100%;
}

.sm-featured-grid .sm-card:first-child .sm-card__img {
  height: 100%;
  aspect-ratio: auto;
}

/* ============================================================
   POST CARD VARIANTS
   ============================================================ */
.sm-post-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.sm-post-card__img-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--sm-radius-lg) var(--sm-radius-lg) 0 0;
  flex-shrink: 0;
}

.sm-post-card__img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}

.sm-card:hover .sm-post-card__img {
  transform: scale(1.04);
}

.sm-post-card__cat-tag {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
}

.sm-post-card__read-time {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.2rem 0.55rem;
  border-radius: var(--sm-radius-full);
  backdrop-filter: blur(4px);
}

/* List-style card */
.sm-post-card--horizontal {
  flex-direction: row;
  gap: 1rem;
  align-items: flex-start;
}

.sm-post-card--horizontal .sm-post-card__img-wrap {
  width: 100px;
  flex-shrink: 0;
  border-radius: var(--sm-radius-md);
}

.sm-post-card--horizontal .sm-post-card__img {
  height: 80px;
  aspect-ratio: auto;
  border-radius: var(--sm-radius-md);
}

/* ============================================================
   AUTHOR BIO BLOCK (E-E-A-T critical)
   ============================================================ */
.sm-author-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--sm-bg-soft);
  border: 1px solid var(--sm-border);
  border-radius: var(--sm-radius-lg);
  border-left: 4px solid var(--sm-accent);
}

.sm-author-card__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid var(--sm-border);
}

.sm-author-card__name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--sm-text);
  margin-bottom: 0.2rem;
}

.sm-author-card__title {
  font-size: 0.8rem;
  color: var(--sm-accent-dark);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.sm-author-card__credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
}

.sm-author-card__cred {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  background: var(--sm-gold-light);
  color: #92400E;
  border-radius: var(--sm-radius-full);
}

.sm-author-card__bio {
  font-size: 0.85rem;
  color: var(--sm-text-muted);
  line-height: 1.6;
}

.sm-author-card__stats {
  display: flex;
  gap: 1rem;
  margin-top: 0.75rem;
}

.sm-author-card__stat {
  text-align: center;
}

.sm-author-card__stat-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--sm-text);
  display: block;
}

.sm-author-card__stat-label {
  font-size: 0.7rem;
  color: var(--sm-text-light);
}

/* Inline author row (for article cards) */
.sm-author-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sm-author-row__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--sm-border);
  flex-shrink: 0;
}

.sm-author-row__name {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--sm-text-muted);
}

.sm-author-row__verified {
  width: 14px;
  height: 14px;
  fill: var(--sm-accent-dark);
}

/* ============================================================
   MARKET DATA WIDGETS
   ============================================================ */
.sm-market-card {
  background: var(--sm-surface);
  border: 1px solid var(--sm-border);
  border-radius: var(--sm-radius-lg);
  padding: 1.25rem;
  transition: var(--sm-transition);
}

.sm-market-card:hover {
  box-shadow: var(--sm-shadow-md);
  border-color: var(--sm-border-strong);
}

.sm-market-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.sm-market-card__symbol {
  font-family: var(--sm-font-number);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--sm-text);
}

.sm-market-card__name {
  font-size: 0.75rem;
  color: var(--sm-text-light);
  margin-top: 0.1rem;
}

.sm-market-card__price {
  font-family: var(--sm-font-number);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--sm-text);
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
}

.sm-market-card__change {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sm-market-card__pct {
  font-family: var(--sm-font-number);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: var(--sm-radius-sm);
}

.sm-market-card__pct--gain { background: var(--sm-gain-bg); color: #065F46; }
.sm-market-card__pct--loss { background: var(--sm-loss-bg); color: #991B1B; }

/* Mini sparkline placeholder */
.sm-sparkline {
  height: 40px;
  margin-top: 0.75rem;
  position: relative;
}

/* ============================================================
   STATS / METRICS ROW
   ============================================================ */
.sm-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: var(--sm-border);
  border: 1px solid var(--sm-border);
  border-radius: var(--sm-radius-lg);
  overflow: hidden;
}

.sm-stat-item {
  background: var(--sm-surface);
  padding: 1.5rem;
  text-align: center;
}

.sm-stat-item__value {
  font-family: var(--sm-font-number);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--sm-text);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.sm-stat-item__value .accent { color: var(--sm-accent); }

.sm-stat-item__label {
  font-size: 0.82rem;
  color: var(--sm-text-light);
  font-weight: 500;
}

/* ============================================================
   CATEGORY PILLS NAV
   ============================================================ */
.sm-cat-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.sm-cat-nav::-webkit-scrollbar { display: none; }

.sm-cat-nav__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--sm-text-muted);
  background: var(--sm-bg-muted);
  border: 1px solid transparent;
  border-radius: var(--sm-radius-full);
  white-space: nowrap;
  cursor: pointer;
  transition: var(--sm-transition);
  text-decoration: none;
}

.sm-cat-nav__pill:hover,
.sm-cat-nav__pill.active {
  color: var(--sm-accent-dark);
  background: var(--sm-accent-light);
  border-color: var(--sm-accent);
}

/* ============================================================
   NEWSLETTER / CTA SECTION
   ============================================================ */
.sm-newsletter {
  background: var(--sm-primary);
  border-radius: var(--sm-radius-xl);
  padding: clamp(2rem, 5vw, 3.5rem);
  position: relative;
  overflow: hidden;
}

.sm-newsletter::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--sm-accent) 0%, transparent 70%);
  opacity: 0.12;
  pointer-events: none;
}

.sm-newsletter__title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.6rem;
  letter-spacing: -0.02em;
}

.sm-newsletter__desc {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1.75rem;
  max-width: 440px;
}

.sm-newsletter__form {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.sm-newsletter__input {
  flex: 1;
  min-width: 220px;
  padding: 0.8rem 1.25rem;
  font-size: 0.9rem;
  border-radius: var(--sm-radius-full);
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08);
  color: #fff;
  outline: none;
  transition: var(--sm-transition);
}

.sm-newsletter__input::placeholder { color: rgba(255,255,255,0.4); }

.sm-newsletter__input:focus {
  border-color: var(--sm-accent);
  background: rgba(255,255,255,0.12);
}

.sm-newsletter__trust {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,.45);
}

/* ============================================================
   SINGLE POST LAYOUT
   ============================================================ */
.sm-post {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: flex-start;
}

.sm-post__content {
  min-width: 0;
}

.sm-post__sidebar {
  position: sticky;
  top: calc(var(--sm-header-h) + 1.5rem);
}

/* Article Header */
.sm-post-header {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--sm-border);
}

.sm-post-header__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.82rem;
}

.sm-post-header__date {
  color: var(--sm-text-light);
}

.sm-post-header__updated {
  color: var(--sm-accent-dark);
  font-weight: 500;
}

.sm-post-header__title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}

.sm-post-header__excerpt {
  font-size: 1.1rem;
  color: var(--sm-text-muted);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

/* Fact Check Bar */
.sm-fact-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--sm-accent-light);
  border: 1px solid rgba(0,212,170,.25);
  border-radius: var(--sm-radius-md);
  margin-bottom: 1rem;
  font-size: 0.8rem;
  color: var(--sm-accent-dark);
  font-weight: 500;
}

/* Article Body */
.sm-post-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--sm-text);
}

.sm-post-body h2 {
  font-size: 1.6rem;
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--sm-border);
}

.sm-post-body h3 {
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
}

.sm-post-body p { margin-bottom: 1.25rem; }

.sm-post-body ul, .sm-post-body ol {
  list-style: revert;
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.sm-post-body li { margin-bottom: 0.4rem; }

.sm-post-body a {
  color: var(--sm-accent-dark);
  text-decoration: underline;
  text-decoration-color: rgba(0,168,130,0.4);
  text-underline-offset: 3px;
}

.sm-post-body blockquote {
  border-left: 4px solid var(--sm-accent);
  padding: 1rem 1.5rem;
  background: var(--sm-bg-soft);
  border-radius: 0 var(--sm-radius-md) var(--sm-radius-md) 0;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--sm-text-muted);
}

.sm-post-body img {
  border-radius: var(--sm-radius-md);
  margin-block: 1.5rem;
}

/* Key Takeaway Box */
.sm-callout {
  padding: 1.25rem 1.5rem;
  border-radius: var(--sm-radius-lg);
  margin-block: 2rem;
  border: 1px solid transparent;
}

.sm-callout--tip {
  background: var(--sm-accent-light);
  border-color: rgba(0,212,170,.25);
}

.sm-callout__title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sm-accent-dark);
  margin-bottom: 0.6rem;
}

/* ============================================================
   TABLE OF CONTENTS
   ============================================================ */
.sm-toc {
  background: var(--sm-bg-soft);
  border: 1px solid var(--sm-border);
  border-radius: var(--sm-radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}

.sm-toc__title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sm-text-light);
  margin-bottom: 0.75rem;
}

.sm-toc__list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.sm-toc__link {
  font-size: 0.875rem;
  color: var(--sm-text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0;
  border-bottom: 1px solid transparent;
  transition: var(--sm-transition);
}

.sm-toc__link:hover {
  color: var(--sm-accent-dark);
}

.sm-toc__link.active {
  color: var(--sm-accent-dark);
  font-weight: 600;
}

.sm-toc__num {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--sm-text-light);
  min-width: 18px;
}

/* ============================================================
   SIDEBAR WIDGETS
   ============================================================ */
.sm-widget {
  background: var(--sm-surface);
  border: 1px solid var(--sm-border);
  border-radius: var(--sm-radius-lg);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.sm-widget__title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sm-text-light);
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--sm-border);
  margin-bottom: 1rem;
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.sm-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--sm-text-light);
  margin-bottom: 1.5rem;
}

.sm-breadcrumb a {
  color: var(--sm-text-light);
}
.sm-breadcrumb a:hover { color: var(--sm-accent-dark); }

.sm-breadcrumb__sep {
  opacity: 0.4;
}

/* ============================================================
   FOOTER
   ============================================================ */
.sm-footer {
  background: var(--sm-primary);
  color: rgba(255,255,255,0.7);
  margin-top: auto;
}

.sm-footer__main {
  padding: clamp(2.5rem, 6vw, 5rem) 0 3rem;
  display: grid;
  grid-template-columns: 280px repeat(3, 1fr);
  gap: 3rem;
}

.sm-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sm-footer__brand-desc {
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.5);
}

.sm-footer__col-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  margin-bottom: 1rem;
}

.sm-footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.sm-footer__link {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  transition: var(--sm-transition);
  text-decoration: none;
}
.sm-footer__link:hover { color: var(--sm-accent); }

.sm-footer__disclaimer {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1rem 0;
  font-size: 0.75rem;
  color: rgba(255,255,255,.3);
  line-height: 1.7;
}

.sm-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8rem;
}

.sm-footer__social {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.sm-footer__social-link {
  width: 36px;
  height: 36px;
  border-radius: var(--sm-radius-md);
  background: rgba(255,255,255,.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.6);
  transition: var(--sm-transition);
}

.sm-footer__social-link:hover {
  background: var(--sm-accent);
  color: var(--sm-primary);
}

/* ============================================================
   PAGINATION
   ============================================================ */
.sm-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 3rem;
}

.sm-page-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--sm-radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--sm-text-muted);
  background: var(--sm-bg-muted);
  transition: var(--sm-transition);
  text-decoration: none;
}

.sm-page-num:hover,
.sm-page-num.current {
  background: var(--sm-accent);
  color: var(--sm-primary);
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

/* Tablet */
@media (max-width: 1024px) {
  :root {
    --sm-header-h: 64px;
  }

  .sm-hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .sm-hero__desc { max-width: 100%; }
  .sm-hero__actions { justify-content: center; }
  .sm-hero__trust { justify-content: center; }
  .sm-hero__visual { display: none; }

  .sm-featured-grid {
    grid-template-columns: 1fr;
  }

  .sm-featured-grid .sm-card:first-child {
    grid-column: auto;
  }

  .sm-featured-grid .sm-card:first-child .sm-card__inner {
    grid-template-columns: 1fr;
  }

  .sm-post {
    grid-template-columns: 1fr;
  }

  .sm-post__sidebar {
    position: static;
  }

  .sm-footer__main {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .sm-nav { display: none; }

  .sm-mobile-toggle {
    display: flex;
  }

  .sm-mobile-nav {
    display: block;
  }

  .sm-header__inner {
    grid-template-columns: auto 1fr auto;
  }

  .sm-header__actions .sm-btn {
    display: none;
  }

  .sm-featured-grid {
    grid-template-columns: 1fr;
  }

  .sm-stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .sm-author-card {
    flex-direction: column;
  }

  .sm-footer__main {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .sm-footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .sm-newsletter__form {
    flex-direction: column;
  }

  .sm-newsletter__input {
    min-width: auto;
    width: 100%;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .sm-stats-grid {
    grid-template-columns: 1fr;
  }

  .sm-hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .sm-hero__actions .sm-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
  .sm-header, .sm-footer, .sm-ticker,
  .sm-post__sidebar, .sm-newsletter { display: none; }

  .sm-post { grid-template-columns: 1fr; }
  body { font-size: 12pt; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   ELEMENTOR OVERRIDES & COMPATIBILITY
   ============================================================ */
.elementor-section,
.elementor-container {
  max-width: 100% !important;
}

.elementor-widget-wrap {
  align-content: flex-start;
}

/* Prevent Elementor from overriding our header */
body.elementor-editor-active .sm-header {
  position: relative;
  z-index: auto;
}

/* Full-width Elementor sections */
.elementor-section.elementor-section-full_width .elementor-container {
  max-width: 100% !important;
  padding: 0 !important;
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.sm-text-center { text-align: center; }
.sm-text-muted  { color: var(--sm-text-muted); }
.sm-mt-auto     { margin-top: auto; }
.sm-flex        { display: flex; }
.sm-flex-between { justify-content: space-between; }
.sm-flex-center  { justify-content: center; align-items: center; }
.sm-gap-sm      { gap: 0.5rem; }
.sm-gap-md      { gap: 1rem; }
.sm-gap-lg      { gap: 1.5rem; }
.sm-hidden-mobile { }

@media (max-width: 768px) {
  .sm-hidden-mobile { display: none !important; }
  .sm-hidden-desktop { display: block !important; }
}

@media (min-width: 769px) {
  .sm-hidden-desktop { display: none !important; }
}

/* Loading skeleton animation */
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}

.sm-skeleton {
  background: linear-gradient(
    90deg,
    var(--sm-bg-muted) 25%,
    var(--sm-border) 50%,
    var(--sm-bg-muted) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--sm-radius-md);
}
