/* ===== LDES Grid - Main Stylesheet ===== */
/* Theme: Deep Teal + Cyan (Energy/Sustainability) */

:root {
  --primary: #0f766e;
  --primary-dark: #0d5f59;
  --primary-light: #14b8a6;
  --secondary: #06b6d4;
  --secondary-dark: #0891b2;
  --secondary-light: #22d3ee;
  --accent: #10b981;
  --bg-dark: #042f2e;
  --bg-darker: #022322;
  --bg-light: #f0fdfa;
  --bg-card: #ffffff;
  --bg-gray: #f3f4f6;
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-light: #9ca3af;
  --text-on-dark: #f0fdfa;
  --border: #e5e7eb;
  --border-light: #f3f4f6;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.05);
  --shadow: 0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  --radius-sm: 0.375rem;
  --radius: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --transition: all 0.2s ease;
  --container-max: 1280px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-light);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

/* ===== Header & Navigation ===== */
.site-header {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary-dark) 100%);
  color: var(--text-on-dark);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: var(--container-max);
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-on-dark);
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary-light) 100%);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-text .brand { font-size: 1.1rem; font-weight: 800; }
.logo-text .tagline { font-size: 0.7rem; opacity: 0.7; font-weight: 400; }

.main-nav { display: flex; align-items: center; gap: 1.5rem; }

.main-nav a {
  color: var(--text-on-dark);
  opacity: 0.85;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
}

.main-nav a:hover,
.main-nav a.active { opacity: 1; color: var(--secondary-light); }

.main-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--secondary);
  border-radius: 1px;
}

.nav-right { display: flex; align-items: center; gap: 1rem; }

.lang-switcher {
  display: flex;
  gap: 0.25rem;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 0.25rem;
}

.lang-switcher button {
  background: transparent;
  border: none;
  color: var(--text-on-dark);
  padding: 0.35rem 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.lang-switcher button.active {
  background: var(--secondary);
  color: white;
}

.lang-switcher button:hover:not(.active) { background: rgba(255,255,255,0.15); }

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-on-dark);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ===== Hero Section ===== */
.hero {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary-dark) 50%, var(--bg-darker) 100%);
  color: var(--text-on-dark);
  padding: 5rem 0 6rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(6,182,212,0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(20,184,166,0.2) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(6,182,212,0.15);
  border: 1px solid rgba(6,182,212,0.3);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--secondary-light);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ffffff 0%, var(--secondary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p.lead {
  font-size: 1.2rem;
  opacity: 0.85;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary-light) 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(6,182,212,0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(6,182,212,0.5);
  color: white;
}

.btn-secondary {
  background: rgba(255,255,255,0.1);
  color: var(--text-on-dark);
  border: 1px solid rgba(255,255,255,0.2);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.2);
  color: var(--text-on-dark);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.hero-stat {
  text-align: center;
}

.hero-stat .number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--secondary-light);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.hero-stat .label {
  font-size: 0.9rem;
  opacity: 0.7;
}

/* ===== Section Styles ===== */
.section {
  padding: 5rem 0;
}

.section-alt {
  background: white;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

/* ===== Technology Matrix ===== */
.tech-matrix {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  background: white;
}

.tech-matrix table {
  width: 100%;
  border-collapse: collapse;
  min-width: 800px;
}

.tech-matrix th {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}

.tech-matrix th:first-child {
  border-radius: var(--radius-lg) 0 0 0;
  min-width: 200px;
}

.tech-matrix th:last-child { border-radius: 0 var(--radius-lg) 0 0; }

.tech-matrix td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.9rem;
}

.tech-matrix tr:last-child td { border-bottom: none; }

.tech-matrix tr:hover td { background: var(--bg-light); }

.tech-matrix .tech-name {
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.tech-matrix .tech-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--bg-light), #ccfbf1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.metric-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.metric-bar .bar {
  flex: 1;
  height: 8px;
  background: var(--bg-gray);
  border-radius: 4px;
  overflow: hidden;
  min-width: 80px;
}

.metric-bar .bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-light), var(--secondary));
  border-radius: 4px;
  transition: width 0.6s ease;
}

.metric-bar .value {
  font-size: 0.85rem;
  font-weight: 600;
  min-width: 60px;
  text-align: right;
}

/* ===== Card Grid ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 1.75rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.card:hover::before { transform: scaleX(1); }

.card-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.card-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--bg-light), #ccfbf1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.card-subtitle {
  font-size: 0.85rem;
  color: var(--text-light);
}

.card-body { margin-bottom: 1.25rem; }
.card-body p { color: var(--text-secondary); font-size: 0.92rem; line-height: 1.6; }

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

.card-stats {
  display: flex;
  gap: 1.25rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.card-stats .stat {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.card-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.card-link:hover { color: var(--primary-dark); }

/* ===== Tags / Badges ===== */
.tag {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.tag-primary { background: #ccfbf1; color: var(--primary-dark); }
.tag-secondary { background: #cffafe; color: var(--secondary-dark); }
.tag-success { background: #d1fae5; color: #065f46; }
.tag-warning { background: #fef3c7; color: #92400e; }
.tag-gray { background: var(--bg-gray); color: var(--text-secondary); }

.tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

/* ===== Page Header ===== */
.page-header {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary-dark) 100%);
  color: var(--text-on-dark);
  padding: 4rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(6,182,212,0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.page-header-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.page-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.page-header p {
  font-size: 1.1rem;
  opacity: 0.85;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  opacity: 0.7;
  margin-bottom: 1rem;
}

.breadcrumb a { color: var(--text-on-dark); }
.breadcrumb a:hover { opacity: 1; }
.breadcrumb .sep { opacity: 0.5; }

/* ===== Filters ===== */
.filters-bar {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

.filter-group select,
.filter-group input {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  background: white;
  color: var(--text-primary);
  min-width: 140px;
}

.filter-group select:focus,
.filter-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15,118,110,0.1);
}

.search-input {
  flex: 1;
  min-width: 200px;
  position: relative;
}

.search-input input {
  width: 100%;
  padding: 0.6rem 1rem 0.6rem 2.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
}

.search-input::before {
  content: '🔍';
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
}

/* ===== Detail Page ===== */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
}

.detail-main { min-width: 0; }

.detail-header { margin-bottom: 2rem; }

.detail-header .title-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.detail-header h1 {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-primary);
}

.detail-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.detail-meta span { display: flex; align-items: center; gap: 0.4rem; }

.detail-section {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.detail-section h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.detail-section h2::before {
  content: '';
  width: 4px;
  height: 24px;
  background: linear-gradient(to bottom, var(--primary), var(--secondary));
  border-radius: 2px;
}

.detail-section p {
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.detail-section p:last-child { margin-bottom: 0; }

.detail-sidebar {
  position: sticky;
  top: 100px;
}

.specs-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}

.specs-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--primary-light);
}

.spec-item {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.9rem;
}

.spec-item:last-child { border-bottom: none; }

.spec-item .label {
  color: var(--text-secondary);
  font-weight: 500;
}

.spec-item .value {
  font-weight: 600;
  color: var(--text-primary);
  text-align: right;
}

.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1rem;
}

.pros-list, .cons-list {
  padding: 1.25rem;
  border-radius: var(--radius);
}

.pros-list {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

.cons-list {
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.pros-list h4, .cons-list h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pros-list h4 { color: #166534; }
.cons-list h4 { color: #991b1b; }

.pros-list ul, .cons-list ul {
  list-style: none;
  padding: 0;
}

.pros-list li, .cons-list li {
  padding: 0.4rem 0;
  font-size: 0.88rem;
  line-height: 1.5;
  padding-left: 1.25rem;
  position: relative;
}

.pros-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #16a34a;
  font-weight: 700;
}

.cons-list li::before {
  content: '✕';
  position: absolute;
  left: 0;
  color: #dc2626;
  font-weight: 700;
}

/* ===== Compare Page ===== */
.compare-layout { display: flex; flex-direction: column; gap: 2rem; }

.compare-controls {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.compare-controls h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.compare-selectors {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.compare-selector {
  padding: 0.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
}

.compare-table {
  overflow-x: auto;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.compare-table table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.compare-table th {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  position: sticky;
  top: 0;
}

.compare-table th:first-child {
  min-width: 180px;
  position: sticky;
  left: 0;
  z-index: 2;
}

.compare-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.9rem;
}

.compare-table td:first-child {
  font-weight: 600;
  background: var(--bg-light);
  position: sticky;
  left: 0;
  z-index: 1;
}

.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:hover td { background: #f8fafc; }
.compare-table tr:hover td:first-child { background: #ecfdf5; }

.diff-highlight {
  background: #fef3c7 !important;
  position: relative;
}

.diff-highlight::after {
  content: '≠';
  position: absolute;
  top: 50%;
  right: 0.5rem;
  transform: translateY(-50%);
  font-size: 0.7rem;
  color: var(--warning);
  font-weight: 700;
}

.best-value {
  background: #d1fae5 !important;
  color: #065f46;
  font-weight: 700;
}

/* ===== Calculator ===== */
.calculator-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.calc-form, .calc-results {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.calc-form h2, .calc-results h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.calc-field { margin-bottom: 1.25rem; }

.calc-field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.calc-field input,
.calc-field select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  transition: var(--transition);
}

.calc-field input:focus,
.calc-field select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15,118,110,0.1);
}

.calc-field .hint {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 0.35rem;
}

.calc-result-big {
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, var(--bg-light), #cffafe);
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
}

.calc-result-big .label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.calc-result-big .value {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.calc-result-big .unit {
  font-size: 1.2rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.calc-breakdown { margin-top: 1rem; }
.calc-breakdown h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.breakdown-item {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.9rem;
}

.breakdown-item:last-child { border-bottom: none; }
.breakdown-item .label { color: var(--text-secondary); }
.breakdown-item .val { font-weight: 600; color: var(--text-primary); }

/* ===== Articles / Guides ===== */
.article-card {
  display: flex;
  gap: 1.5rem;
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.article-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
  transform: translateX(4px);
}

.article-number {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  font-weight: 800;
  flex-shrink: 0;
}

.article-content { flex: 1; min-width: 0; }

.article-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.article-content h3 a { color: var(--text-primary); }
.article-content h3 a:hover { color: var(--primary); }

.article-excerpt {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-light);
}

.article-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.article-body {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-secondary);
}

.article-body h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 2rem 0 1rem;
}

.article-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 1.5rem 0 0.75rem;
}

.article-body p { margin-bottom: 1rem; }
.article-body ul, .article-body ol { margin: 1rem 0 1.5rem 1.5rem; }
.article-body li { margin-bottom: 0.5rem; }

.article-body blockquote {
  border-left: 4px solid var(--primary);
  padding: 1rem 1.5rem;
  background: var(--bg-light);
  margin: 1.5rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-primary);
}

/* ===== Footer ===== */
.site-footer {
  background: var(--bg-darker);
  color: var(--text-on-dark);
  padding: 3rem 0 1.5rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--secondary-light);
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a {
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
}

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

.footer-about p {
  font-size: 0.9rem;
  opacity: 0.7;
  line-height: 1.6;
  margin-top: 0.75rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  opacity: 0.6;
}

/* ===== Tabs ===== */
.tabs {
  display: flex;
  gap: 0.25rem;
  background: var(--bg-gray);
  padding: 0.25rem;
  border-radius: var(--radius);
  margin-bottom: 2rem;
  width: fit-content;
}

.tab-btn {
  padding: 0.6rem 1.25rem;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-secondary);
  transition: var(--transition);
}

.tab-btn.active {
  background: white;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.tab-content { display: none; }
.tab-content.active { display: block; }

/* ===== Comparison Selector Widget ===== */
.compare-widget {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  margin-top: 3rem;
}

.compare-widget h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.compare-widget p {
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

/* ===== Pagination ===== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  margin-top: 2.5rem;
}

.pagination button, .pagination span {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  background: white;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-secondary);
}

.pagination button:hover { border-color: var(--primary); color: var(--primary); }
.pagination .active { background: var(--primary); color: white; border-color: var(--primary); }
.pagination .disabled { opacity: 0.5; cursor: not-allowed; }

/* ===== Utility ===== */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.flex { display: flex; }
.gap-2 { gap: 1rem; }
.wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .detail-layout { grid-template-columns: 1fr; }
  .detail-sidebar { position: static; }
  .calculator-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .mobile-menu-btn { display: block; }
  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-dark);
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-lg);
  }
  .hero { padding: 3rem 0 4rem; }
  .hero h1 { font-size: 2rem; }
  .hero p.lead { font-size: 1rem; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .section { padding: 3rem 0; }
  .section-header h2 { font-size: 1.75rem; }
  .page-header { padding: 3rem 0; }
  .page-header h1 { font-size: 1.75rem; }
  .card-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .pros-cons { grid-template-columns: 1fr; }
  .article-card { flex-direction: column; gap: 1rem; }
  .hero-stats { margin-top: 2.5rem; padding-top: 2rem; }
  .filters-bar { flex-direction: column; align-items: stretch; }
  .filter-group { flex-direction: column; align-items: stretch; }
  .filter-group select, .filter-group input { width: 100%; }
}

@media (max-width: 480px) {
  .nav-container { padding: 0.75rem 1rem; }
  .logo { font-size: 1rem; }
  .hero-cta { flex-direction: column; }
  .btn { width: 100%; }
  .hero-stats { grid-template-columns: 1fr; }
}
