/*
Theme Name: FinSight Finance Blog
Theme URI: https://finsight.in
Author: FinSight
Author URI: https://finsight.in
Description: A complete finance awareness blog WordPress theme with market ticker, article layouts, financial tools, and full inner pages. Built for Indian finance blogs with editorial design.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: finsight
Tags: blog, finance, news, custom-colors, custom-menu, featured-images, sticky-post, threaded-comments, translation-ready
*/

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --ink: #0a0a0f;
  --paper: #faf9f6;
  --cream: #f2efe8;
  --gold: #c9a84c;
  --gold-light: #e8c96a;
  --forest: #1a3a2a;
  --mint: #d4ede0;
  --red: #c0392b;
  --slate: #4a5568;
  --muted: #8a8f9e;
  --border: #e2ddd4;
  --white: #ffffff;
  --card-shadow: 0 2px 20px rgba(10,10,15,0.08);
  --card-shadow-hover: 0 8px 40px rgba(10,10,15,0.16);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul { list-style: none; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.3px;
}

/* ============================================================
   TICKER TAPE
   ============================================================ */
.site-ticker {
  background: var(--forest);
  color: var(--mint);
  padding: 0.45rem 0;
  overflow: hidden;
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}
.ticker-track {
  display: flex;
  gap: 3rem;
  animation: ticker 28s linear infinite;
  white-space: nowrap;
  width: max-content;
}
.ticker-item { display: inline-flex; align-items: center; gap: 0.5rem; }
.ticker-up { color: #5cb85c; }
.ticker-down { color: #e74c3c; }
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,249,246,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.site-logo {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 1.6rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.site-logo .logo-accent { color: var(--gold); }
.site-logo .logo-tag {
  font-family: 'DM Mono', monospace;
  font-size: 0.55rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
  line-height: 1;
  align-self: flex-end;
  padding-bottom: 4px;
}
.main-navigation { display: flex; gap: 2rem; align-items: center; }
.main-navigation ul { display: flex; gap: 2rem; align-items: center; list-style: none; }
.main-navigation a {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.2px;
  color: var(--slate);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}
.main-navigation a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--gold);
  transition: width 0.25s ease;
}
.main-navigation a:hover { color: var(--ink); }
.main-navigation a:hover::after { width: 100%; }
.nav-cta {
  background: var(--forest) !important;
  color: var(--paper) !important;
  padding: 0.5rem 1.25rem !important;
  border-radius: 4px;
  font-weight: 600 !important;
  transition: background 0.2s, transform 0.15s !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--ink) !important; transform: translateY(-1px); }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  font-size: 1.1rem;
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--muted);
}
.breadcrumb a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { color: var(--border); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--ink);
  padding: 0.8rem 2rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 15px rgba(201,168,76,0.35);
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(201,168,76,0.45);
}
.btn-ghost {
  display: inline-block;
  background: transparent;
  color: var(--ink);
  padding: 0.8rem 2rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1.5px solid var(--border);
  transition: border-color 0.2s, background 0.2s;
}
.btn-ghost:hover { border-color: var(--ink); background: var(--cream); }

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--ink);
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.5px;
}
.section-title sup {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  vertical-align: super;
  margin-left: 0.3rem;
}
.section-link {
  font-size: 0.8rem;
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap 0.2s;
}
.section-link:hover { gap: 0.6rem; }

/* ============================================================
   HOMEPAGE — HERO
   ============================================================ */
.site-hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 4rem 2rem 3rem;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 3rem;
  align-items: start;
}
.hero-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.hero-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--gold);
}
.site-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 1.25rem;
}
.site-hero h1 em { font-style: italic; color: var(--forest); }
.hero-desc {
  font-size: 1.05rem;
  color: var(--slate);
  max-width: 540px;
  margin-bottom: 2rem;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }

/* Hero Featured Card */
.hero-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--card-shadow-hover);
  transition: transform 0.3s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  animation: fadeUp 0.7s 0.15s ease both;
}
.hero-card:hover { transform: translateY(-4px); }
.hero-card-img {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, var(--forest) 0%, #2d6a4f 50%, #1a3a2a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.hero-card-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(255,255,255,0.03) 20px, rgba(255,255,255,0.03) 40px);
}
.hero-card-icon { font-size: 4rem; opacity: 0.9; position: relative; z-index: 1; }
.hero-card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--gold);
  color: var(--ink);
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 3px;
  font-weight: 600;
}
.hero-card-body { padding: 1.5rem; }
.hero-card-meta {
  font-size: 0.75rem;
  color: var(--muted);
  font-family: 'DM Mono', monospace;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.hero-card-meta span { color: var(--gold); }
.hero-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.7rem;
}
.hero-card-excerpt { font-size: 0.875rem; color: var(--slate); line-height: 1.6; }

/* ============================================================
   HOMEPAGE — STATS BAR
   ============================================================ */
.stats-bar {
  background: var(--cream);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.stat-item { text-align: center; padding: 0.5rem; }
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--forest);
  letter-spacing: -1px;
  line-height: 1;
}
.stat-label {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-family: 'DM Mono', monospace;
  margin-top: 0.25rem;
}

/* ============================================================
   MAIN CONTENT LAYOUT
   ============================================================ */
.main-layout {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 2rem;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
}

/* ============================================================
   ARTICLE CARDS — HOMEPAGE GRID
   ============================================================ */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.article-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform 0.25s, box-shadow 0.25s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.article-card:hover { transform: translateY(-3px); box-shadow: var(--card-shadow-hover); }
.article-card.featured { grid-column: span 2; flex-direction: row; }
.card-img {
  width: 100%;
  height: 180px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  position: relative;
  overflow: hidden;
}
.article-card.featured .card-img { width: 340px; height: auto; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-img-investing { background: linear-gradient(135deg, #1a3a2a, #2d6a4f); }
.card-img-budget    { background: linear-gradient(135deg, #2c3e50, #3498db); }
.card-img-tax       { background: linear-gradient(135deg, #6b2121, #c0392b); }
.card-img-crypto    { background: linear-gradient(135deg, #1a1a2e, #16213e); }
.card-img-savings   { background: linear-gradient(135deg, #2d4a22, #52b788); }
.card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.card-category {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.5rem;
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
  display: inline-block;
}
.cat-investing { background: var(--mint); color: var(--forest); }
.cat-budget    { background: #dbe9f9; color: #1a3a5c; }
.cat-tax       { background: #fde8e8; color: #7a1515; }
.cat-crypto    { background: #e8e0ff; color: #3a1a6e; }
.cat-savings   { background: #e0f5e8; color: #1a4a2e; }
.card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.5rem;
  flex: 1;
}
.article-card.featured .card-title { font-size: 1.4rem; }
.card-excerpt { font-size: 0.825rem; color: var(--slate); line-height: 1.6; margin-bottom: 0.75rem; }
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.card-author { display: flex; align-items: center; gap: 0.5rem; font-size: 0.78rem; color: var(--muted); }
.author-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--mint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 700;
  overflow: hidden;
}
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.card-read-time { font-family: 'DM Mono', monospace; font-size: 0.7rem; color: var(--muted); }

/* ============================================================
   TOOLS STRIP
   ============================================================ */
.tools-strip { background: var(--forest); padding: 2.5rem 0; margin: 2rem 0; }
.tools-inner { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }
.tools-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.tools-title { font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 700; color: var(--paper); }
.tools-link { font-size: 0.8rem; color: var(--gold); text-decoration: none; font-weight: 600; }
.tools-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.tool-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 1.25rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.tool-card:hover { background: rgba(255,255,255,0.12); transform: translateY(-2px); }
.tool-icon { font-size: 1.8rem; margin-bottom: 0.75rem; }
.tool-name { font-weight: 700; font-size: 0.9rem; color: var(--paper); margin-bottom: 0.3rem; }
.tool-desc { font-size: 0.78rem; color: rgba(212,237,224,0.7); line-height: 1.5; }

/* ============================================================
   TOPICS GRID
   ============================================================ */
.topics-section { max-width: 1280px; margin: 0 auto; padding: 2rem 2rem 3rem; }
.topics-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; margin-top: 1.5rem; }
.topic-pill {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 1rem 0.75rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.topic-pill:hover { border-color: var(--forest); background: var(--mint); transform: translateY(-2px); }
.topic-pill-icon { font-size: 1.4rem; display: block; margin-bottom: 0.4rem; }
.topic-pill-name { font-size: 0.75rem; font-weight: 600; line-height: 1.3; letter-spacing: 0.2px; }

/* ============================================================
   QUOTE BLOCK
   ============================================================ */
.quote-section { background: var(--ink); padding: 3rem 0; }
.quote-inner { max-width: 800px; margin: 0 auto; padding: 0 2rem; text-align: center; }
.quote-mark {
  font-family: 'Playfair Display', serif;
  font-size: 5rem;
  color: var(--gold);
  line-height: 0.5;
  display: block;
  margin-bottom: 0.5rem;
  opacity: 0.8;
}
.quote-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-style: italic;
  font-weight: 400;
  color: var(--paper);
  line-height: 1.5;
  margin-bottom: 1rem;
}
.quote-author {
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

/* ============================================================
   SIDEBAR WIDGETS
   ============================================================ */
.sidebar { display: flex; flex-direction: column; gap: 2rem; }
.widget-area .sidebar { position: sticky; top: 88px; }
.sidebar-widget { background: var(--white); border-radius: 8px; overflow: hidden; box-shadow: var(--card-shadow); }
.widget-header {
  background: var(--ink);
  color: var(--paper);
  padding: 0.9rem 1.25rem;
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
}
.widget-header.green { background: var(--forest); }
.widget-body { padding: 1.25rem; }
/* Newsletter widget */
.newsletter-desc { font-size: 0.85rem; color: var(--slate); line-height: 1.6; margin-bottom: 1rem; }
.newsletter-form { display: flex; flex-direction: column; gap: 0.6rem; }
.newsletter-form input {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.2s;
  outline: none;
}
.newsletter-form input:focus { border-color: var(--gold); }
.newsletter-form button {
  width: 100%;
  padding: 0.7rem;
  background: var(--gold);
  color: var(--ink);
  border: none;
  border-radius: 4px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.2s;
}
.newsletter-form button:hover { background: var(--gold-light); }
/* Popular posts widget */
.popular-list { display: flex; flex-direction: column; }
.popular-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s;
}
.popular-item:last-child { border-bottom: none; }
.popular-item:hover { opacity: 0.7; }
.popular-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--border);
  line-height: 1;
  flex-shrink: 0;
  width: 28px;
  text-align: right;
}
.popular-title { font-size: 0.85rem; font-weight: 600; line-height: 1.4; flex: 1; }
/* Categories widget */
.category-list { display: flex; flex-direction: column; }
.category-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  transition: padding-left 0.2s, color 0.2s;
}
.category-item:last-child { border-bottom: none; }
.category-item:hover { padding-left: 0.5rem; color: var(--forest); }
.cat-count {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  background: var(--cream);
  color: var(--muted);
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
}
/* Market widget */
.market-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}
.market-item:last-child { border-bottom: none; }
.market-name { font-weight: 600; }
.market-val { font-family: 'DM Mono', monospace; font-size: 0.8rem; }
.market-change {
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  font-weight: 600;
}
.market-up   { background: #e6f7ec; color: #1a6e3a; }
.market-down { background: #fde8e8; color: #8b1a1a; }

/* ============================================================
   SINGLE ARTICLE PAGE
   ============================================================ */
.article-layout {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
}
.article-header { margin-bottom: 2rem; }
.article-category {
  display: inline-block;
  background: var(--mint);
  color: var(--forest);
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: 3px;
  margin-bottom: 1rem;
  text-decoration: none;
}
.article-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 1rem;
}
.article-subtitle { font-size: 1.1rem; color: var(--slate); line-height: 1.7; margin-bottom: 1.5rem; }
.article-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.meta-author { display: flex; align-items: center; gap: 0.6rem; }
.author-avatar-lg {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--mint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  overflow: hidden;
  flex-shrink: 0;
}
.author-avatar-lg img { width: 100%; height: 100%; object-fit: cover; }
.author-info { display: flex; flex-direction: column; }
.author-name { font-size: 0.875rem; font-weight: 600; }
.author-role { font-size: 0.75rem; color: var(--muted); }
.meta-divider { width: 1px; height: 32px; background: var(--border); }
.meta-item { display: flex; flex-direction: column; gap: 0.1rem; }
.meta-label { font-family: 'DM Mono', monospace; font-size: 0.6rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.meta-value { font-size: 0.8rem; font-weight: 600; }
.article-hero {
  width: 100%;
  height: 420px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 2rem;
  position: relative;
}
.article-hero img { width: 100%; height: 100%; object-fit: cover; }
.article-hero-placeholder {
  background: linear-gradient(135deg, var(--forest) 0%, #2d6a4f 60%, #1a3a2a 100%);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
}
.article-body { font-size: 1.05rem; line-height: 1.85; color: #2a2a35; }
.article-body h2 { font-family: 'Playfair Display', serif; font-size: 1.6rem; font-weight: 700; margin: 2.5rem 0 1rem; letter-spacing: -0.3px; }
.article-body h3 { font-family: 'Playfair Display', serif; font-size: 1.25rem; font-weight: 700; margin: 2rem 0 0.75rem; }
.article-body p { margin-bottom: 1.5rem; }
.article-body strong { font-weight: 600; color: var(--ink); }
.article-body ul, .article-body ol { margin: 1rem 0 1.5rem 1.5rem; }
.article-body li { margin-bottom: 0.5rem; }
.article-body a { color: var(--forest); text-decoration: underline; text-underline-offset: 3px; }
.article-body img { border-radius: 8px; margin: 1.5rem 0; }
blockquote, .pullquote {
  margin: 2.5rem 0;
  padding: 1.5rem 2rem;
  border-left: 4px solid var(--gold);
  background: var(--cream);
  border-radius: 0 8px 8px 0;
}
blockquote p, .pullquote p {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-style: italic;
  color: var(--forest);
  margin: 0;
  line-height: 1.6;
}
blockquote cite, .pullquote cite {
  display: block;
  margin-top: 0.5rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}
.key-takeaway { background: var(--forest); color: var(--paper); border-radius: 10px; padding: 1.5rem; margin: 2rem 0; }
.key-takeaway h4 { font-family: 'DM Mono', monospace; font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-bottom: 0.75rem; }
.key-takeaway ul { list-style: none; margin: 0; padding: 0; }
.key-takeaway li { padding: 0.4rem 0; font-size: 0.9rem; color: rgba(212,237,224,0.9); display: flex; align-items: flex-start; gap: 0.5rem; }
.key-takeaway li::before { content: '→'; color: var(--gold); flex-shrink: 0; margin-top: 0.05rem; }
table.data-table { width: 100%; border-collapse: collapse; margin: 2rem 0; font-size: 0.875rem; }
table.data-table thead { background: var(--forest); color: var(--paper); }
table.data-table th { padding: 0.75rem 1rem; text-align: left; font-weight: 600; font-size: 0.8rem; letter-spacing: 0.5px; }
table.data-table td { padding: 0.7rem 1rem; border-bottom: 1px solid var(--border); }
table.data-table tr:nth-child(even) { background: var(--cream); }
table.data-table .positive { color: #1a6e3a; font-weight: 600; }
table.data-table .negative { color: var(--red); font-weight: 600; }
.info-box { background: #e6f2ff; border: 1px solid #b5d4f4; border-radius: 8px; padding: 1.25rem; margin: 1.5rem 0; display: flex; gap: 0.75rem; }
.info-box-icon { font-size: 1.2rem; flex-shrink: 0; }
.info-box p { font-size: 0.875rem; color: #1a3a5c; line-height: 1.6; margin: 0; }
/* Article footer */
.article-footer { margin-top: 3rem; padding-top: 2rem; border-top: 2px solid var(--border); }
.article-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.tag {
  background: var(--cream);
  color: var(--slate);
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 500;
  border: 1px solid var(--border);
  text-decoration: none;
  transition: all 0.2s;
}
.tag:hover { background: var(--mint); border-color: var(--forest); color: var(--forest); }
.share-bar { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.share-label { font-family: 'DM Mono', monospace; font-size: 0.7rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.share-btn {
  padding: 0.45rem 1rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
  background: transparent;
  color: var(--ink);
}
.share-btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
/* Author bio */
.author-bio {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 2rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.author-bio-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--mint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
}
.author-bio-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-bio-name { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 700; margin-bottom: 0.25rem; }
.author-bio-title { font-size: 0.78rem; color: var(--muted); font-family: 'DM Mono', monospace; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 0.5rem; }
.author-bio-text { font-size: 0.875rem; color: var(--slate); line-height: 1.6; }
/* Reading progress */
.reading-progress { position: fixed; top: 0; left: 0; width: 0%; height: 3px; background: var(--gold); z-index: 999; transition: width 0.1s linear; }
/* Related articles */
.related-section { margin-top: 3rem; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 1.5rem; }
.related-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform 0.25s, box-shadow 0.25s;
  text-decoration: none;
  color: inherit;
}
.related-card:hover { transform: translateY(-3px); box-shadow: var(--card-shadow-hover); }
.related-card-img { height: 140px; display: flex; align-items: center; justify-content: center; font-size: 2rem; overflow: hidden; }
.related-card-img img { width: 100%; height: 100%; object-fit: cover; }
.related-card-body { padding: 1rem; }
.related-card-cat { font-family: 'DM Mono', monospace; font-size: 0.62rem; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 0.4rem; }
.related-card-title { font-family: 'Playfair Display', serif; font-size: 0.95rem; font-weight: 700; line-height: 1.35; }
/* TOC widget */
.toc-list { list-style: none; display: flex; flex-direction: column; }
.toc-list a {
  display: block;
  padding: 0.55rem 0;
  font-size: 0.85rem;
  color: var(--slate);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s, padding-left 0.2s;
}
.toc-list a:hover { color: var(--forest); padding-left: 0.4rem; }
.toc-list li:last-child a { border-bottom: none; }
.toc-h3 a { padding-left: 1rem; font-size: 0.8rem; }

/* ============================================================
   ARCHIVE / CATEGORY PAGE
   ============================================================ */
.cat-hero { background: var(--forest); padding: 3rem 2rem; color: var(--paper); }
.cat-hero-inner { max-width: 1280px; margin: 0 auto; }
.cat-breadcrumb {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(212,237,224,0.6);
  margin-bottom: 0.75rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.cat-breadcrumb a { color: rgba(212,237,224,0.6); text-decoration: none; transition: color 0.2s; }
.cat-breadcrumb a:hover { color: var(--gold); }
.cat-title { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; letter-spacing: -0.5px; margin-bottom: 0.5rem; }
.cat-desc { color: rgba(212,237,224,0.75); font-size: 1rem; max-width: 540px; line-height: 1.7; margin-bottom: 1.5rem; }
.cat-stats { display: flex; gap: 2rem; }
.cat-stat { display: flex; flex-direction: column; }
.cat-stat-num { font-family: 'Playfair Display', serif; font-size: 1.6rem; font-weight: 900; color: var(--gold); line-height: 1; }
.cat-stat-label { font-family: 'DM Mono', monospace; font-size: 0.62rem; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(212,237,224,0.5); margin-top: 0.2rem; }
/* Filter bar */
.filter-bar { background: var(--white); border-bottom: 1px solid var(--border); padding: 0.75rem 2rem; position: sticky; top: 68px; z-index: 90; }
.filter-inner { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.filter-tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.filter-tab {
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1.5px solid var(--border);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--slate);
}
.filter-tab:hover, .filter-tab.active { background: var(--forest); color: var(--paper); border-color: var(--forest); }
.archive-layout { max-width: 1280px; margin: 0 auto; padding: 2.5rem 2rem; display: grid; grid-template-columns: 1fr 300px; gap: 3rem; align-items: start; }
.featured-article {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(10,10,15,0.08);
  display: flex;
  margin-bottom: 2rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s, box-shadow 0.25s;
}
.featured-article:hover { transform: translateY(-2px); box-shadow: var(--card-shadow-hover); }
.featured-article-img {
  width: 360px;
  min-height: 100%;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--forest), #2d6a4f);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  position: relative;
  overflow: hidden;
}
.featured-article-img img { width: 100%; height: 100%; object-fit: cover; }
.featured-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--gold);
  color: var(--ink);
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 3px;
  font-weight: 600;
}
.featured-article-body { padding: 2rem; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.featured-title { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 900; line-height: 1.25; margin-bottom: 0.75rem; letter-spacing: -0.3px; }
.featured-excerpt { font-size: 0.9rem; color: var(--slate); line-height: 1.7; margin-bottom: 1.25rem; }
.article-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.article-meta-row { display: flex; align-items: center; gap: 1rem; font-size: 0.78rem; color: var(--muted); }
.meta-sep { color: var(--border); }
/* Pagination */
.pagination { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin-top: 3rem; }
.page-btn {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  border: 1.5px solid var(--border);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  color: var(--ink);
}
.page-btn:hover, .page-btn.active { background: var(--forest); color: var(--paper); border-color: var(--forest); }
.page-btn.prev-next { width: auto; padding: 0 1rem; font-size: 0.8rem; }
/* Tag cloud */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag-pill {
  background: var(--cream);
  color: var(--slate);
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid var(--border);
  text-decoration: none;
  transition: all 0.2s;
}
.tag-pill:hover { background: var(--mint); border-color: var(--forest); color: var(--forest); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--forest); color: rgba(212,237,224,0.8); padding: 3rem 0 0; margin-top: 4rem; }
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-brand .site-logo { color: var(--paper); }
.footer-brand .logo-accent { color: var(--gold); }
.footer-tagline { font-size: 0.85rem; color: rgba(212,237,224,0.65); line-height: 1.6; margin-top: 0.75rem; max-width: 280px; }
.footer-social { display: flex; gap: 0.75rem; margin-top: 1.25rem; }
.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
  color: var(--mint);
}
.social-btn:hover { background: rgba(255,255,255,0.18); }
.footer-col h4 { font-family: 'DM Sans', sans-serif; font-size: 0.75rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { font-size: 0.85rem; color: rgba(212,237,224,0.7); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--paper); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.25rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom-text { font-size: 0.78rem; color: rgba(212,237,224,0.45); font-family: 'DM Mono', monospace; }
.footer-disclaimer { font-size: 0.72rem; color: rgba(212,237,224,0.35); max-width: 500px; text-align: right; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.site-hero h1, .hero-desc, .hero-actions { animation: fadeUp 0.7s ease both; }
.hero-desc   { animation-delay: 0.1s; }
.hero-actions { animation-delay: 0.2s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .topics-grid { grid-template-columns: repeat(4, 1fr); }
  .tools-grid  { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .site-hero { grid-template-columns: 1fr; }
  .hero-card { display: none; }
  .main-layout, .article-layout, .archive-layout { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: 1fr; }
  .article-card.featured { flex-direction: column; }
  .article-card.featured .card-img { width: 100%; height: 200px; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .featured-article { flex-direction: column; }
  .featured-article-img { width: 100%; height: 220px; }
  .article-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .main-navigation { display: none; }
  .main-navigation.toggled { display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--border); padding: 1rem 2rem; gap: 0; }
  .main-navigation.toggled ul { flex-direction: column; gap: 0; width: 100%; }
  .main-navigation.toggled ul li { border-bottom: 1px solid var(--border); }
  .main-navigation.toggled ul a { display: block; padding: 0.75rem 0; }
  .menu-toggle { display: block; }
  .topics-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}
