/* Onward Guide System - Professional Business Documentation Design
   ================================================================ 
   Following @docs/THEME_GUIDE.md specifications
   Light mode default for optimal readability */

/* Import modern luxury fonts for storytelling */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=Source+Serif+4:opsz,wght@8..60,300;8..60,400;8..60,500;8..60,600&family=Work+Sans:wght@400;500;600;700&display=swap');

/* Guide-Specific Theme Variables */
:root {
  /* Light Mode (Default for Guides) */
  --guide-bg: #FFFFFF;
  --guide-surface: #F8F7F4;
  --guide-surface-hover: #F0EDE6;
  --guide-text-primary: #1A1A1A;
  --guide-text-secondary: #4A4A4A;
  --guide-text-muted: #6B6B6B;
  --guide-border: #E5E5E5;
  --guide-border-dark: #D0D0D0;
  
  /* Accent Colors for Light Mode */
  --guide-accent-primary: #C69C3F;
  --guide-accent-hover: #B88A37;
  --guide-accent-blue: #4A90E2;
  --guide-accent-green: #50C878;
  --guide-accent-coral: #FF6B6B;
  --guide-accent-purple: #9B59B6;
  --guide-accent-teal: #26A69A;
  
  /* Shadows & Effects */
  --guide-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06);
  --guide-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --guide-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.10);
  --guide-shadow-gold: 0 4px 16px rgba(198, 156, 63, 0.15);
}

/* Dark Mode Override for Guides */
.dark-mode-guides {
  --guide-bg: #1A1A1A;
  --guide-surface: #2A2A2A;
  --guide-surface-hover: #333333;
  --guide-text-primary: #FFFFFF;
  --guide-text-secondary: #E0E0E0;
  --guide-text-muted: #A0A0A0;
  --guide-border: #3A3A3A;
  --guide-border-dark: #4A4A4A;
  
  /* Brighter accents for dark mode */
  --guide-accent-blue: #5FA3F5;
  --guide-accent-green: #6FE89C;
  --guide-accent-coral: #FF8A8A;
  --guide-accent-purple: #B47BCE;
  --guide-accent-teal: #3FBFB3;
}

/* Main Guide Container */
.content-section {
  background-color: var(--guide-bg);
  min-height: 100vh;
  transition: background-color 0.3s ease;
}

/* Guide Article Wrapper */
.guide-content {
  background: var(--guide-bg);
  border-radius: 16px;
  padding: 3rem;
  color: var(--guide-text-primary);
  position: relative;
  box-shadow: var(--guide-shadow-md);
  border: 1px solid var(--guide-border);
}

/* Typography System - Modern Premium Theme */
.guide-content {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.75;
  letter-spacing: -0.01em;
}

/* Main Title */
.guide-content h1 {
  font-family: 'DM Serif Display', Georgia, serif;
  letter-spacing: -0.02em;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--guide-text-primary);
  margin-bottom: 2rem;
  line-height: 1.3;
  position: relative;
  padding-bottom: 1rem;
}

.guide-content h1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--guide-accent-primary) 0%, var(--guide-accent-hover) 100%);
  border-radius: 2px;
}

/* Section Headers */
.guide-content h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.015em;
  font-size: 1.875rem;
  font-weight: 600;
  color: var(--guide-text-primary);
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  padding: 1.5rem 0;
  position: relative;
  scroll-margin-top: 100px;
  border-top: 1px solid var(--guide-border);
}

.guide-content h2:first-of-type {
  border-top: none;
  margin-top: 2rem;
}

/* Subsection Headers */
.guide-content h3 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.01em;
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--guide-text-secondary);
  margin-top: 2rem;
  margin-bottom: 1rem;
  position: relative;
  padding-left: 1rem;
}

.guide-content h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 70%;
  background: var(--guide-accent-primary);
  border-radius: 2px;
}

/* Body Text */
.guide-content p {
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: var(--guide-text-secondary);
}

.guide-content strong {
  color: var(--guide-text-primary);
  font-weight: 600;
}

/* Lists */
.guide-content ul,
.guide-content ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
  color: var(--guide-text-secondary);
}

.guide-content li {
  margin-bottom: 0.75rem;
  line-height: 1.7;
  position: relative;
}

.guide-content ul li::marker {
  color: var(--guide-accent-primary);
}

.guide-content ol li::marker {
  color: var(--guide-accent-primary);
  font-weight: 600;
}

/* Enhanced Blockquotes */
.guide-content blockquote {
  background: var(--guide-surface);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
}

.guide-content blockquote::before {
  content: '\201C';
  position: absolute;
  top: -10px;
  left: 10px;
  font-size: 4rem;
  color: var(--guide-accent-primary);
  opacity: 0.2;
  font-family: Georgia, serif;
}

.guide-content blockquote p {
  margin-bottom: 0;
  font-style: italic;
  color: var(--guide-text-secondary);
  position: relative;
  z-index: 1;
}

/* Table of Contents Sidebar - Compact Design */
.guide-toc {
  background: var(--guide-surface);
  border: 1px solid var(--guide-border);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 2rem;
  box-shadow: var(--guide-shadow-sm);
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.guide-toc-content h3 {
  font-family: 'Work Sans', sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--guide-text-muted);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--guide-border);
}

.guide-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.guide-toc-list li {
  margin-bottom: 0.125rem;
}

.guide-toc-list a {
  color: var(--guide-text-muted);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 400;
  display: block;
  padding: 0.375rem 0.5rem;
  border-radius: 4px;
  transition: all 0.2s ease;
  position: relative;
  line-height: 1.3;
}

.guide-toc-list a:hover {
  color: var(--guide-text-primary);
  background: var(--guide-surface-hover);
}

.guide-toc-list a.active {
  color: var(--guide-text-primary);
  font-weight: 600;
  background: var(--guide-surface-hover);
}

/* Info Cards & Callouts */
.guide-info-card {
  background: var(--guide-surface);
  border: 1px solid var(--guide-border);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2rem 0;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.guide-info-card:hover {
  box-shadow: var(--guide-shadow-md);
  transform: translateY(-2px);
}

.guide-info-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--guide-accent-primary) 0%, var(--guide-accent-hover) 100%);
}

.guide-info-card h4 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--guide-text-primary);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.guide-info-card h4 i {
  color: var(--guide-accent-primary);
}

/* Comparison Tables */
.guide-content table {
  width: 100%;
  margin: 2rem 0;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--guide-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--guide-shadow-sm);
  border: 1px solid var(--guide-border);
}

.guide-content th {
  background: var(--guide-surface);
  color: var(--guide-text-primary);
  font-weight: 600;
  padding: 1rem;
  text-align: left;
  font-family: 'Work Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid var(--guide-accent-primary);
}

.guide-content td {
  padding: 1rem;
  border-bottom: 1px solid var(--guide-border);
  color: var(--guide-text-secondary);
}

.guide-content tr:last-child td {
  border-bottom: none;
}

.guide-content tr:hover {
  background: var(--guide-surface);
}

/* Code Blocks */
.guide-content code {
  background: var(--guide-surface);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  color: var(--guide-accent-coral);
  font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
  font-size: 0.875em;
  border: 1px solid var(--guide-border);
}

.guide-content pre {
  background: var(--guide-surface);
  color: var(--guide-text-primary);
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 2rem 0;
  border: 1px solid var(--guide-border);
  box-shadow: var(--guide-shadow-sm);
}

.guide-content pre code {
  background: transparent;
  padding: 0;
  border: none;
  color: inherit;
}

/* Links */
.guide-content a {
  color: var(--guide-accent-blue);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease;
  font-weight: 500;
}

.guide-content a:hover {
  color: var(--guide-accent-primary);
  border-bottom-color: var(--guide-accent-primary);
}

/* Quick Summary Box */
.guide-quick-summary {
  background: linear-gradient(135deg, var(--guide-surface) 0%, var(--guide-surface-hover) 100%);
  border: 2px solid var(--guide-accent-primary);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2rem 0;
  position: relative;
}

.guide-quick-summary::before {
  content: '⏱️';
  position: absolute;
  top: -12px;
  left: 20px;
  background: var(--guide-bg);
  padding: 0 0.5rem;
  font-size: 1.5rem;
}

.guide-quick-summary > p {
  margin-bottom: 0;
  font-weight: 500;
}

/* Scenario Cards for Comparison */
.guide-scenario-card {
  background: var(--guide-bg);
  border: 2px solid var(--guide-border);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  transition: all 0.3s ease;
}

.guide-scenario-card:hover {
  border-color: var(--guide-accent-primary);
  box-shadow: var(--guide-shadow-gold);
  transform: translateX(4px);
}

.guide-scenario-card h4 {
  color: var(--guide-accent-primary);
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  margin-bottom: 1rem;
}

/* Analysis Boxes */
.guide-analysis {
  background: var(--guide-surface);
  border-left: 3px solid var(--guide-accent-teal);
  padding: 1rem 1.5rem;
  margin: 1rem 0;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--guide-text-secondary);
}

/* Score Cards */
.guide-score-card {
  background: linear-gradient(135deg, var(--guide-accent-primary) 0%, var(--guide-accent-hover) 100%);
  color: white;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--guide-shadow-gold);
  transition: all 0.3s ease;
}

.guide-score-card:hover {
  transform: scale(1.05);
}

.guide-score-card .score-number {
  font-size: 2.5rem;
  font-weight: 400;
  font-family: 'DM Serif Display', Georgia, serif;
}

.guide-score-card .score-label {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.9;
}

/* Meta Information Bar */
.guide-meta {
  background: var(--guide-surface);
  border: 1px solid var(--guide-border);
  border-radius: 8px;
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}

.guide-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--guide-text-muted);
}

.guide-meta-item i {
  color: var(--guide-accent-primary);
}

/* Series Navigation - Compact Top Bar */
.guide-series-nav {
  background: var(--guide-surface);
  border: 1px solid var(--guide-border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.guide-series-nav .series-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--guide-text-muted);
}

.guide-series-nav .series-badge {
  background: var(--guide-accent-primary);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.guide-series-nav .series-links {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.guide-series-nav .series-links a {
  padding: 0.375rem 0.75rem;
  background: transparent;
  color: var(--guide-text-secondary);
  border: 1px solid var(--guide-border);
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.guide-series-nav .series-links a:hover {
  background: var(--guide-surface-hover);
  border-color: var(--guide-accent-primary);
  color: var(--guide-accent-primary);
}

.guide-series-nav .series-links a.current {
  background: var(--guide-accent-primary);
  color: white;
  border-color: var(--guide-accent-primary);
}

/* Part Context Box - For readers landing mid-series */
.guide-context-box {
  background: linear-gradient(135deg, var(--guide-surface) 0%, var(--guide-surface-hover) 100%);
  border: 1px solid var(--guide-accent-primary);
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 2rem;
  position: relative;
}

.guide-context-box::before {
  content: '📖';
  position: absolute;
  top: -10px;
  left: 15px;
  background: var(--guide-bg);
  padding: 0 0.5rem;
  font-size: 1.25rem;
}

.guide-context-box h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--guide-text-primary);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.guide-context-box p {
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 0.75rem;
  color: var(--guide-text-secondary);
}

.guide-context-box .context-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.guide-context-box .context-links a {
  font-size: 0.8125rem;
  color: var(--guide-accent-primary);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
}

.guide-context-box .context-links a:hover {
  border-bottom-color: var(--guide-accent-primary);
}

/* Part Navigation - Bottom of article */
.guide-part-nav {
  background: var(--guide-surface);
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 3rem;
  border: 1px solid var(--guide-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.guide-part-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: var(--guide-accent-primary);
  color: white;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.guide-part-nav a:hover {
  background: var(--guide-accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--guide-shadow-sm);
}

.guide-part-nav .nav-prev {
  padding-left: 1rem;
}

.guide-part-nav .nav-next {
  padding-right: 1rem;
}

.guide-part-nav .nav-center {
  color: var(--guide-text-muted);
  font-size: 0.8125rem;
}

/* Responsive Design */
@media (max-width: 991px) {
  .guide-toc {
    position: static;
    margin-bottom: 2rem;
  }
  
  .guide-content {
    padding: 2rem;
  }
  
  .guide-content h1 {
    font-size: 2rem;
  }
  
  .guide-content h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 767px) {
  .guide-content {
    padding: 1.5rem;
    border-radius: 0;
  }
  
  .guide-content h1 {
    font-size: 1.75rem;
  }
  
  .guide-content h2 {
    font-size: 1.375rem;
  }
  
  .guide-content h3 {
    font-size: 1.125rem;
  }
  
  .guide-content p {
    font-size: 1rem;
  }
  
  .guide-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  
  .guide-part-nav {
    flex-direction: column;
  }
  
  .guide-part-nav a {
    width: 100%;
    justify-content: center;
  }
}

/* Print Styles */
@media print {
  .guide-toc,
  .guide-meta,
  .guide-part-nav {
    display: none;
  }
  
  .guide-content {
    box-shadow: none;
    border: none;
    padding: 0;
  }
  
  .guide-content h2 {
    page-break-before: auto;
    page-break-after: avoid;
  }
  
  .guide-scenario-card,
  .guide-info-card {
    page-break-inside: avoid;
  }
}

/* ============================================================
   MAGAZINE-STYLE COMPONENTS
   Professional editorial design elements for enhanced readability
   ============================================================ */

/* Pull Quotes with Author Avatars */
.magazine-pull-quote {
  margin: 3rem 0;
  padding: 2rem;
  background: var(--guide-surface);
  border-radius: 12px;
  position: relative;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}

.magazine-pull-quote .quote-avatar {
  width: 256px;
  height: 320px;
  border-radius: 16px;
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.magazine-pull-quote blockquote {
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  box-shadow: none;
  flex: 1;
}

.magazine-pull-quote blockquote::before {
  content: '\201C';
  position: absolute;
  top: 0;
  left: 20px;
  font-size: 5rem;
  color: var(--guide-accent-primary);
  opacity: 0.15;
  font-family: Georgia, serif;
  line-height: 1;
}

.magazine-pull-quote blockquote p {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.35rem;
  line-height: 1.6;
  color: var(--guide-text-primary);
  font-style: normal;
  margin-bottom: 1rem;
  font-weight: 300;
  letter-spacing: -0.015em;
}

.magazine-pull-quote cite {
  display: block;
  font-style: normal;
  margin-top: 1rem;
}

.magazine-pull-quote cite strong {
  display: block;
  color: var(--guide-text-primary);
  font-family: 'Work Sans', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.25rem;
  letter-spacing: -0.01em;
}

.magazine-pull-quote cite span {
  color: var(--guide-text-secondary);
  font-size: 0.875rem;
}

/* Alternative pull quote layout (right-aligned avatar) */
.magazine-pull-quote.quote-right {
  flex-direction: row-reverse;
}

.magazine-pull-quote.quote-right blockquote::before {
  left: auto;
  right: 20px;
}

/* Media Placeholder Components */
.media-placeholder {
  margin: 2.5rem 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--guide-shadow-md);
  position: relative;
  background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
}

.media-placeholder-image {
  aspect-ratio: 4 / 3;
}

.media-placeholder-video {
  aspect-ratio: 16 / 9;
}

.media-placeholder-map {
  aspect-ratio: 16 / 10;
}

.media-placeholder-chart {
  aspect-ratio: 3 / 2;
}

.media-placeholder-infographic {
  aspect-ratio: 2 / 3;
}

.placeholder-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 2rem;
  text-align: center;
  color: #999;
  background: rgba(255, 255, 255, 0.5);
}

.placeholder-content i {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #bbb;
}

.placeholder-content span {
  font-size: 0.875rem;
  font-style: italic;
  color: #777;
  max-width: 80%;
}

/* Interactive hover effect for media placeholders */
.media-placeholder:hover .placeholder-content {
  background: rgba(255, 255, 255, 0.8);
}

.media-placeholder:hover .placeholder-content i {
  transform: scale(1.1);
  transition: transform 0.3s ease;
}

/* Magazine Sidebar */
.magazine-sidebar {
  float: right;
  width: 35%;
  margin: 0 0 1.5rem 2rem;
  padding: 1.5rem;
  background: var(--guide-surface);
  border-radius: 8px;
  border: 1px solid var(--guide-border);
  box-shadow: var(--guide-shadow-sm);
}

.magazine-sidebar h4 {
  color: var(--guide-accent-primary);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.magazine-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.magazine-sidebar li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--guide-border);
}

.magazine-sidebar li:last-child {
  border-bottom: none;
}

/* Magazine Info Box */
.magazine-infobox {
  margin: 2rem 0;
  padding: 1.5rem;
  background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
  border-radius: 8px;
  position: relative;
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.15);
}

.magazine-infobox::before {
  content: '\2139';  /* Info symbol */
  position: absolute;
  top: -12px;
  right: 1.5rem;
  width: 24px;
  height: 24px;
  background: var(--guide-accent-blue);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
}

.magazine-infobox h5 {
  color: var(--guide-accent-blue);
  margin-top: 0;
  margin-bottom: 0.75rem;
}

/* Drop Caps */
.drop-cap::first-letter {
  float: left;
  font-size: 4rem;
  line-height: 0.8;
  margin: 0.1em 0.1em 0 0;
  font-weight: 700;
  color: var(--guide-accent-primary);
  font-family: 'DM Serif Display', Georgia, serif;
}

/* Magazine Columns */
.magazine-columns {
  column-count: 2;
  column-gap: 2rem;
  margin: 2rem 0;
}

.magazine-columns p {
  margin-bottom: 1rem;
  text-align: justify;
  hyphens: auto;
}

/* Number Callouts */
.magazine-stat {
  display: inline-block;
  margin: 1rem 0;
  padding: 1rem 1.5rem;
  background: var(--guide-surface);
  border-radius: 8px;
  text-align: center;
  box-shadow: var(--guide-shadow-sm);
}

.magazine-stat .stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--guide-accent-primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.magazine-stat .stat-label {
  font-size: 0.875rem;
  color: var(--guide-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Section Dividers */
.magazine-divider {
  margin: 3rem auto;
  width: 50%;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    var(--guide-accent-primary) 20%, 
    var(--guide-accent-primary) 80%, 
    transparent 100%);
  position: relative;
}

.magazine-divider::after {
  content: '◆';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--guide-bg);
  padding: 0 1rem;
  color: var(--guide-accent-primary);
  font-size: 1rem;
}

/* Highlight Box */
.magazine-highlight {
  margin: 2rem 0;
  padding: 2rem;
  background: var(--guide-surface);
  border-radius: 12px;
  position: relative;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}

.magazine-highlight h5 {
  color: var(--guide-accent-primary);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  font-weight: 700;
}

/* Hover Video Container */
.hover-video-container {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  cursor: pointer;
  background: #000;
}

.hover-video-container .hover-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s ease;
  display: block;
}

.hover-video-container .hover-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.hover-video-container:hover .hover-image {
  opacity: 0;
}

.hover-video-container:hover .hover-video {
  opacity: 1;
}

.hover-video-container .video-play-icon {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hover-video-container:hover .video-play-icon {
  opacity: 0;
  transform: scale(0.8);
}

.hover-video-container .video-play-icon::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 16px solid var(--guide-accent-primary);
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  margin-left: 3px;
}

/* AI Contenders Grid */
.ai-contenders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.ai-contender-card {
  background: linear-gradient(135deg, var(--guide-surface) 0%, white 100%);
  border: 2px solid var(--guide-border);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.ai-contender-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
  border-color: var(--guide-accent-primary);
}

.ai-contender-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--guide-accent-primary), var(--guide-accent-hover));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.ai-contender-card:hover::before {
  transform: scaleX(1);
}

.contender-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contender-logo {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.contender-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.contender-name h3 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--guide-text-primary);
}

.contender-company {
  font-size: 0.875rem;
  color: var(--guide-text-muted);
  font-weight: 500;
}

.contender-price {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--guide-border);
}

.price-amount {
  font-size: 2rem;
  font-weight: 700;
  color: var(--guide-accent-primary);
  font-family: 'DM Serif Display', Georgia, serif;
}

.price-period {
  font-size: 0.875rem;
  color: var(--guide-text-muted);
}

.contender-features {
  margin-bottom: 1.5rem;
}

.feature-item {
  display: flex;
  align-items: start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.feature-item i {
  color: var(--guide-accent-green);
  font-size: 0.875rem;
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.feature-item span {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--guide-text-secondary);
}

.contender-question {
  background: var(--guide-surface);
  border-radius: 8px;
  padding: 1rem;
  font-size: 0.875rem;
  color: var(--guide-text-primary);
  line-height: 1.5;
}

.contender-question strong {
  color: var(--guide-accent-primary);
  display: block;
  margin-bottom: 0.25rem;
}

/* Magazine Island Cards Grid */
.island-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.island-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.island-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.island-card-image {
  height: 200px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
  overflow: hidden;
}

.island-card-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}

.island-card-content {
  padding: 1.5rem;
}

.island-card h3 {
  color: var(--guide-text-primary);
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.island-location {
  color: var(--guide-accent-primary);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.island-stats {
  display: flex;
  gap: 1.5rem;
  margin: 1rem 0;
  padding: 1rem 0;
  border-top: 1px solid var(--guide-border);
  border-bottom: 1px solid var(--guide-border);
}

.island-stat {
  flex: 1;
  text-align: center;
}

.island-stat-value {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--guide-text-primary);
}

.island-stat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--guide-text-muted);
  text-transform: uppercase;
  margin-top: 0.25rem;
}

.island-features {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0 0;
}

.island-features li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--guide-text-secondary);
  font-size: 0.9rem;
}

.island-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--guide-accent-green);
  font-weight: bold;
}

/* Magazine-Style Lists */
.magazine-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.magazine-list li {
  position: relative;
  padding: 1rem 0 1rem 3rem;
  border-bottom: 1px solid var(--guide-border);
  transition: background 0.2s ease;
}

.magazine-list li:hover {
  background: var(--guide-surface);
}

.magazine-list li:last-child {
  border-bottom: none;
}

.magazine-list li::before {
  content: counter(list-counter);
  counter-increment: list-counter;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  background: var(--guide-accent-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
}

.magazine-list {
  counter-reset: list-counter;
}

.magazine-list strong {
  display: block;
  color: var(--guide-text-primary);
  margin-bottom: 0.25rem;
}

/* Icon List Variant */
.magazine-icon-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.magazine-icon-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: var(--guide-surface);
  border-radius: 8px;
  transition: transform 0.2s ease;
}

.magazine-icon-list li:hover {
  transform: translateX(5px);
}

.magazine-icon-list .list-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--guide-accent-primary);
  color: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.magazine-icon-list .list-content {
  flex: 1;
}

.magazine-icon-list .list-title {
  font-weight: 600;
  color: var(--guide-text-primary);
  margin-bottom: 0.25rem;
}

.magazine-icon-list .list-description {
  font-size: 0.875rem;
  color: var(--guide-text-secondary);
}

/* Interactive Map Styles */
.magazine-map-container {
  height: 500px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  margin: 2.5rem 0;
  position: relative;
  background: #f0f0f0;
}

/* Custom Map Markers */
.custom-map-marker {
  background: transparent;
  border: none;
}

.marker-pin {
  width: 32px;
  height: 32px;
  border-radius: 50% 50% 50% 0;
  position: relative;
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.marker-pin i {
  transform: rotate(45deg);
  color: white;
  font-size: 14px;
}

/* Map Legend */
.map-legend {
  background: white;
  padding: 10px 15px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  font-size: 0.875rem;
}

.legend-title {
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--guide-text-primary);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.legend-item {
  display: flex;
  align-items: center;
  margin: 5px 0;
  color: var(--guide-text-secondary);
}

.legend-icon {
  width: 20px;
  height: 20px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  margin-right: 8px;
  display: inline-block;
  flex-shrink: 0;
}

/* Custom Popup Styles */
.island-custom-popup .leaflet-popup-content-wrapper {
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
}

.island-popup {
  padding: 1rem;
}

.island-popup h4 {
  margin: 0 0 0.5rem 0;
  color: var(--guide-text-primary);
  font-size: 1.125rem;
  font-weight: 700;
}

.island-location {
  color: var(--guide-accent-primary);
  font-size: 0.875rem;
  margin: 0 0 0.75rem 0;
}

.island-popup-stats {
  display: flex;
  gap: 1rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--guide-border);
  border-bottom: 1px solid var(--guide-border);
  margin-bottom: 0.75rem;
}

.island-popup-stats span {
  font-size: 0.75rem;
  color: var(--guide-text-secondary);
}

.island-popup-stats strong {
  display: block;
  font-size: 1rem;
  color: var(--guide-text-primary);
  margin-bottom: 0.125rem;
}

.island-popup-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.island-popup-features li {
  padding: 0.25rem 0;
  padding-left: 1.25rem;
  position: relative;
  font-size: 0.875rem;
  color: var(--guide-text-secondary);
}

.island-popup-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--guide-accent-green);
  font-weight: bold;
}

/* Leaflet Control Overrides */
.magazine-map-container .leaflet-control-zoom {
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.magazine-map-container .leaflet-control-zoom a {
  width: 36px;
  height: 36px;
  line-height: 36px;
  color: var(--guide-text-primary);
  background: white;
  border: none;
}

.magazine-map-container .leaflet-control-zoom a:hover {
  background: var(--guide-surface);
}

/* Mobile Map Adjustments */
@media (max-width: 767px) {
  .magazine-map-container {
    height: 400px;
    margin: 1.5rem -15px;
    border-radius: 0;
  }
  
  .map-legend {
    display: none;
  }
}

/* Responsive Design for Magazine Elements */
@media (max-width: 991px) {
  .magazine-pull-quote {
    flex-direction: column;
    text-align: center;
  }
  
  .magazine-pull-quote .quote-avatar {
    width: 200px;
    height: 200px;
    margin: 0 auto;
  }
  
  .magazine-sidebar {
    float: none;
    width: 100%;
    margin: 2rem 0;
  }
  
  .magazine-columns {
    column-count: 1;
  }
}

@media (max-width: 767px) {
  .magazine-pull-quote blockquote p {
    font-size: 1.1rem;
  }
  
  .drop-cap::first-letter {
    font-size: 3rem;
  }
}

/* Special Styles for LLM Comparison Guide */
.llm-comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.llm-platform-card {
  background: var(--guide-surface);
  border: 2px solid var(--guide-border);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.llm-platform-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--guide-accent-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.llm-platform-card:hover::before {
  transform: scaleX(1);
}

.llm-platform-card:hover {
  border-color: var(--guide-accent-primary);
  box-shadow: var(--guide-shadow-gold);
  transform: translateY(-4px);
}

.llm-platform-card h3 {
  color: var(--guide-text-primary);
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.llm-platform-card .platform-price {
  color: var(--guide-accent-primary);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 1rem 0;
}

.llm-platform-card .platform-description {
  color: var(--guide-text-muted);
  font-size: 0.875rem;
}

/* Winner Badge */
.winner-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--guide-accent-primary) 0%, var(--guide-accent-hover) 100%);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.875rem;
  box-shadow: var(--guide-shadow-gold);
}

/* Comparison Score Table */
.comparison-scores {
  background: var(--guide-surface);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2rem 0;
}

.comparison-scores table {
  margin: 0;
  box-shadow: none;
  border: none;
  background: transparent;
}

.comparison-scores th {
  background: transparent;
  border-bottom: 2px solid var(--guide-accent-primary);
}

.comparison-scores td {
  font-weight: 600;
}

.score-excellent { color: var(--guide-accent-green); }
.score-good { color: var(--guide-accent-blue); }
.score-average { color: var(--guide-accent-teal); }
.score-poor { color: var(--guide-accent-coral); }

/* Problem Summary Grid */
.problem-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.problem-summary-card {
  text-align: center;
  padding: 1.5rem;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.problem-summary-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.problem-summary-card i {
  font-size: 2.5rem;
  color: #dc3545;
  margin-bottom: 1rem;
  display: block;
}

.problem-summary-card h4 {
  color: #212529;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.problem-summary-card p {
  color: #6c757d;
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.4;
}

/* Problem Story Cards */
.problem-story-cards {
  display: grid;
  gap: 2rem;
  margin: 2rem 0;
}

.problem-story-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.problem-story-card:hover {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.problem-story-card .story-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-bottom: 1px solid #dee2e6;
}

.problem-story-card .problem-badge {
  background: #495057;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
}

.problem-story-card .problem-cost {
  color: #dc3545;
  font-weight: 700;
  font-size: 1.25rem;
}

.problem-story-card .story-content {
  padding: 1.5rem;
}

.problem-story-card .story-quote {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 8px;
}

.problem-story-card .story-avatar {
  width: 160px;
  height: 160px;
  border-radius: 12px;
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.problem-story-card .story-quote blockquote {
  margin: 0;
  padding: 0;
  border: none;
  flex: 1;
}

.problem-story-card .story-quote p {
  margin: 0 0 0.5rem 0;
  font-style: italic;
  color: #495057;
  line-height: 1.5;
}

.problem-story-card .story-quote cite {
  display: block;
  font-style: normal;
  font-size: 0.875rem;
  color: #6c757d;
  margin-top: 0.5rem;
}

.problem-story-card .problem-solution-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #dee2e6;
}

.problem-story-card .problem-breakdown,
.problem-story-card .solution-preview {
  margin-bottom: 0;
}

.problem-story-card .problem-breakdown {
  padding-right: 1rem;
  border-right: 1px solid #e9ecef;
}

.problem-story-card .solution-preview {
  padding-left: 1rem;
}

.problem-story-card .problem-breakdown h4,
.problem-story-card .solution-preview h4 {
  color: #212529;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.problem-story-card .problem-breakdown h4 {
  color: #dc3545;
}

.problem-story-card .solution-preview h4 {
  color: #28a745;
}

.problem-story-card .problem-breakdown p,
.problem-story-card .solution-preview p {
  margin: 0.5rem 0;
  color: #495057;
  font-size: 0.9rem;
}

.problem-story-card .problem-breakdown ul,
.problem-story-card .solution-preview ul {
  margin: 0.75rem 0;
  padding-left: 1.25rem;
  color: #6c757d;
  font-size: 0.9rem;
}

.problem-story-card .problem-breakdown li,
.problem-story-card .solution-preview li {
  margin: 0.25rem 0;
  line-height: 1.4;
}

.problem-story-card .solution-result {
  display: inline-block;
  background: #28a745;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.875rem;
  margin-top: 1rem;
}

@media (max-width: 768px) {
  .problem-story-card .story-quote {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .problem-story-card .story-avatar {
    width: 140px;
    height: 140px;
    margin-bottom: 1rem;
  }
  
  .problem-story-card .problem-solution-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .problem-story-card .problem-breakdown {
    padding-right: 0;
    border-right: none;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e9ecef;
  }
  
  .problem-story-card .solution-preview {
    padding-left: 0;
  }
}