
:root {
  --gold: #C59B27;
  --gold-dark: #8F6B10;
  --gold-light: #F5E6B8;
  --gold-tint: #FDFBF4;
  --obsidian: #0E1116;
  --slate-dark: #1A202C;
  --slate-text: #2D3748;
  --slate-muted: #5A6578;
  --ivory: #F8F6F0;
  --white: #FFFFFF;
  --border: #E2DDD2;
  --border-strong: #C9C1B0;
  --success: #1E6F43;
  --max-w: 1220px;
  --font-serif: Georgia, "Times New Roman", Times, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--slate-text);
  background: var(--ivory);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--obsidian);
  line-height: 1.25;
  font-weight: 700;
}

a {
  color: var(--gold-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--obsidian);
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Top Live Spot Price Ticker Bar */
.top-ticker-bar {
  background: var(--obsidian);
  color: #E2E8F0;
  border-bottom: 1px solid #2D3748;
  font-size: 0.82rem;
  padding: 0.45rem 0;
}

.top-ticker-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.ticker-items {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.1rem;
}

.ticker-badge {
  background: var(--gold);
  color: var(--obsidian);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
}

.ticker-item strong {
  color: var(--gold-light);
}

.ticker-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
}

.ticker-right a {
  color: var(--gold-light);
  text-decoration: none;
  font-weight: 600;
}

/* Site Header & WordPress Editorial Branding */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.brand-block {
  max-width: 480px;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 2.5vw, 1.95rem);
  font-weight: 700;
  color: var(--obsidian);
  text-decoration: none;
  display: block;
  letter-spacing: -0.01em;
}

.brand-tagline {
  font-size: 0.82rem;
  color: var(--slate-muted);
  margin-top: 0.2rem;
}

/* Primary Navigation Bar */
.main-nav {
  background: var(--slate-dark);
  border-bottom: 3px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.55rem 0;
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  color: #F1F5F9;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: 4px;
  transition: background 0.15s, color 0.15s;
}

.nav-links a:hover, .nav-links a.active {
  background: rgba(197, 155, 39, 0.18);
  color: var(--gold-light);
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--gold);
  color: var(--obsidian);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.65rem 1.35rem;
  border-radius: 4px;
  text-decoration: none;
  border: 1px solid var(--gold-dark);
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}

.btn:hover {
  background: var(--gold-dark);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--gold-light);
  border: 1px solid var(--gold);
}

.btn-outline:hover {
  background: var(--gold);
  color: var(--obsidian);
}

.btn-dark {
  background: var(--obsidian);
  color: var(--gold-light);
  border: 1px solid var(--obsidian);
}

.btn-dark:hover {
  background: var(--slate-dark);
  color: var(--white);
}

/* Hero Section */
.hero-banner {
  background: linear-gradient(135deg, #0E1116 0%, #1C222D 100%);
  color: var(--white);
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-eyebrow {
  display: inline-block;
  background: rgba(197, 155, 39, 0.2);
  border: 1px solid var(--gold);
  color: var(--gold-light);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.75rem;
  border-radius: 3px;
  margin-bottom: 1rem;
}

.hero-banner h1 {
  color: var(--white);
  font-size: clamp(1.85rem, 3.6vw, 2.85rem);
  margin-bottom: 1rem;
}

.hero-banner h1 span {
  color: var(--gold-light);
}

.hero-lead {
  color: #CBD5E1;
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  max-width: 640px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.hero-image-card {
  background: #161B24;
  border: 1px solid #2D3748;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
}

.hero-image-card img {
  width: 100%;
  height: 270px;
  object-fit: cover;
  display: block;
}

.hero-image-card figcaption {
  padding: 0.65rem 0.9rem;
  font-size: 0.75rem;
  color: #94A3B8;
  background: #0E1116;
  line-height: 1.4;
}

/* Two-Column WordPress Content + Sidebar Grid */
.wp-layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 2.25rem;
  padding: 2.5rem 0 3.5rem;
  align-items: start;
}

.wp-main-column {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2.25rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.wp-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;
  top: 4.25rem;
}

.widget-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.35rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.widget-title {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--obsidian);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

/* Breadcrumbs */
.breadcrumb-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0.65rem 0;
  font-size: 0.82rem;
  color: var(--slate-muted);
}

.breadcrumb-bar a {
  color: var(--gold-dark);
  text-decoration: none;
  font-weight: 600;
}

/* Article Typography & Visual Elements */
.article-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.85rem;
  font-size: 0.83rem;
  color: var(--slate-muted);
}

.cat-badge {
  background: var(--gold-tint);
  border: 1px solid var(--gold);
  color: var(--gold-dark);
  font-weight: 700;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  text-decoration: none;
}

.entry-title {
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  margin-bottom: 0.85rem;
  color: var(--obsidian);
}

.entry-subtitle {
  font-size: 1.08rem;
  color: var(--slate-muted);
  margin-bottom: 1.5rem;
  line-height: 1.55;
}

.editorial-figure {
  margin: 0 0 1.75rem 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  background: var(--ivory);
}

.editorial-figure img {
  width: 100%;
  max-height: 430px;
  object-fit: cover;
  display: block;
}

.editorial-figure figcaption {
  padding: 0.65rem 1rem;
  font-size: 0.78rem;
  color: var(--slate-muted);
  border-top: 1px solid var(--border);
  background: #FAF8F4;
}

/* Key Takeaways Box */
.key-takeaways-card {
  background: var(--gold-tint);
  border: 1px solid var(--border-strong);
  border-left: 4px solid var(--gold-dark);
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.75rem;
}

.key-takeaways-title {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold-dark);
  margin-bottom: 0.65rem;
}

.key-takeaways-card ul {
  margin-left: 1.15rem;
  font-size: 0.94rem;
  color: var(--obsidian);
}

.key-takeaways-card li {
  margin-bottom: 0.4rem;
}

/* Table of Contents */
.toc-panel {
  background: var(--ivory);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.15rem 1.35rem;
  margin-bottom: 2rem;
}

.toc-title {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--slate-muted);
  margin-bottom: 0.5rem;
}

.toc-panel ol {
  margin-left: 1.25rem;
  font-size: 0.9rem;
}

.toc-panel li {
  margin-bottom: 0.3rem;
}

.toc-panel a {
  text-decoration: none;
  font-weight: 600;
}

/* Article Body Content */
.entry-content {
  font-size: 1.04rem;
  line-height: 1.8;
  color: var(--slate-text);
}

.entry-content h2 {
  font-size: 1.5rem;
  margin: 2.25rem 0 0.85rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}

.entry-content h3 {
  font-size: 1.22rem;
  margin: 1.65rem 0 0.6rem;
}

.entry-content p {
  margin-bottom: 1.25rem;
}

.entry-content ul, .entry-content ol {
  margin: 0 0 1.35rem 1.5rem;
}

.entry-content li {
  margin-bottom: 0.45rem;
}

.entry-content code {
  background: #F1EFEA;
  padding: 0.12rem 0.38rem;
  border-radius: 3px;
  font-size: 0.9em;
  color: var(--obsidian);
  border: 1px solid #E2DDD2;
}

/* Data Tables */
.entry-content table, .data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0 1.85rem;
  font-size: 0.9rem;
  background: var(--white);
  border: 1px solid var(--border-strong);
}

.entry-content th, .data-table th {
  background: var(--slate-dark);
  color: var(--gold-light);
  font-weight: 700;
  text-align: left;
  padding: 0.75rem 0.9rem;
  border: 1px solid #2D3748;
}

.entry-content td, .data-table td {
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border);
  vertical-align: top;
}

.entry-content tr:nth-child(even) td, .data-table tr:nth-child(even) td {
  background: #FAF8F4;
}

/* AdSense & Sponsored Banner Containers */
.ad-slot-container {
  background: #FAF8F4;
  border: 1px dashed var(--border-strong);
  border-radius: 6px;
  padding: 0.85rem 1rem;
  margin: 1.75rem 0;
  text-align: center;
}

.ad-slot-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8C96A6;
  margin-bottom: 0.4rem;
  display: block;
}

.ad-fallback-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  background: linear-gradient(90deg, #0E1116 0%, #1E2530 100%);
  color: var(--white);
  padding: 1rem 1.35rem;
  border-radius: 5px;
  text-align: left;
  border-left: 4px solid var(--gold);
}

.ad-fallback-banner h4 {
  color: var(--gold-light);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.ad-fallback-banner p {
  font-size: 0.82rem;
  color: #CBD5E1;
  margin: 0;
}

/* Affiliate Product Comparison Module */
.affiliate-module {
  background: var(--ivory);
  border: 2px solid var(--gold);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2.25rem 0;
}

.affiliate-module-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 0.75rem;
  margin-bottom: 1.15rem;
}

.affiliate-module-header h3 {
  font-size: 1.25rem;
  margin: 0;
}

.affiliate-disclosure-tag {
  font-size: 0.73rem;
  color: var(--slate-muted);
}

.affiliate-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.affiliate-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.affiliate-badge {
  display: inline-block;
  background: var(--gold-tint);
  color: var(--gold-dark);
  border: 1px solid var(--gold);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  margin-bottom: 0.5rem;
  align-self: flex-start;
}

.affiliate-card h4 {
  font-family: var(--font-sans);
  font-size: 0.98rem;
  margin-bottom: 0.45rem;
  color: var(--obsidian);
}

.affiliate-card p {
  font-size: 0.84rem;
  color: var(--slate-muted);
  margin-bottom: 0.85rem;
  line-height: 1.5;
}

/* Calculator Box */
.calc-panel {
  background: var(--obsidian);
  color: var(--white);
  border: 1px solid #2D3748;
  border-radius: 8px;
  padding: 1.5rem;
}

.calc-panel h3 {
  color: var(--gold-light);
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.calc-field-group {
  margin-bottom: 0.85rem;
}

.calc-field-group label {
  display: block;
  font-size: 0.78rem;
  color: #CBD5E1;
  margin-bottom: 0.3rem;
  font-weight: 600;
}

.calc-input, .calc-select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: 4px;
  border: 1px solid #3E4C5E;
  background: #161B24;
  color: var(--white);
  font-size: 0.92rem;
}

.calc-result-box {
  background: rgba(197, 155, 39, 0.14);
  border: 1px solid var(--gold);
  border-radius: 6px;
  padding: 0.9rem;
  margin-top: 1rem;
  text-align: center;
}

.calc-result-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold-light);
}

.calc-result-number {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--white);
  margin: 0.2rem 0;
}

.calc-result-sub {
  font-size: 0.76rem;
  color: #CBD5E1;
}

/* Article Archive Cards Grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.5rem;
}

.post-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.07);
}

.post-card-img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
}

.post-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.post-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.76rem;
  color: var(--slate-muted);
  margin-bottom: 0.55rem;
}

.post-card h3 {
  font-size: 1.12rem;
  margin-bottom: 0.55rem;
  line-height: 1.35;
}

.post-card h3 a {
  color: var(--obsidian);
  text-decoration: none;
}

.post-card h3 a:hover {
  color: var(--gold-dark);
}

.post-card p {
  font-size: 0.88rem;
  color: var(--slate-muted);
  margin-bottom: 1rem;
  flex-grow: 1;
}

/* Category Filter Tabs */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.filter-tab {
  background: var(--white);
  border: 1px solid var(--border-strong);
  color: var(--slate-text);
  padding: 0.45rem 0.95rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.filter-tab.active, .filter-tab:hover {
  background: var(--obsidian);
  color: var(--gold-light);
  border-color: var(--obsidian);
}

/* Cross-Domain Network Box */
.network-backlinks-box {
  background: #F4F1EA;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  padding: 1.35rem;
  margin: 2rem 0;
}

.network-backlinks-box h3 {
  font-size: 1.1rem;
  margin-bottom: 0.65rem;
}

.network-links-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.85rem;
  list-style: none;
  margin: 0 !important;
}

.network-links-list li {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 0.85rem;
}

/* Footer */
.site-footer {
  background: var(--obsidian);
  color: #94A3B8;
  padding: 3.5rem 0 2rem;
  border-top: 4px solid var(--gold);
  font-size: 0.88rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-col h4 {
  color: var(--gold-light);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.85rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.45rem;
}

.footer-col a {
  color: #CBD5E1;
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--gold-light);
}

.footer-bottom {
  border-top: 1px solid #1E293B;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.78rem;
  color: #64748B;
}

@media (max-width: 960px) {
  .hero-grid, .wp-layout-grid {
    grid-template-columns: 1fr;
  }
  .wp-sidebar {
    position: static;
  }
  .wp-main-column {
    padding: 1.35rem;
  }
}
