/* ============================================
   STEPS TO MILES CALCULATOR - STYLESHEET
   Health/Fitness - Orange Theme
   ============================================ */

:root {
  --primary: #f97316;
  --primary-dark: #ea580c;
  --primary-light: #fb923c;
  --primary-bg: #fff7ed;
  --secondary: #c2410c;
  --accent: #fbbf24;
  --success: #10b981;
  --success-bg: #d1fae5;
  --success-light: #6ee7b7;
  --warning: #f59e0b;
  --warning-bg: #fef3c7;
  --error: #ef4444;
  --error-bg: #fee2e2;
  --info: #3b82f6;
  --info-bg: #dbeafe;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", monospace;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); font-size: 16px; line-height: 1.6; color: var(--gray-800); background: var(--gray-50); min-height: 100vh; display: flex; flex-direction: column; }

h1, h2, h3, h4 { font-weight: 600; line-height: 1.3; color: var(--gray-900); }
h1 { font-size: 2.25rem; margin-bottom: 1rem; }
h2 { font-size: 1.5rem; margin-top: 2rem; margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-top: 1.5rem; margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; }
a { color: var(--primary-dark); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--primary); text-decoration: underline; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
.content-narrow { max-width: 800px; margin: 0 auto; }
main { flex: 1; padding: 2rem 0 3rem; }

/* Header */
.header { background: white; border-bottom: 1px solid var(--gray-200); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 1.125rem; color: var(--gray-900); text-decoration: none; }
.logo:hover { text-decoration: none; color: var(--primary-dark); }
.logo-icon { width: 32px; height: 32px; color: var(--primary); }
.nav-desktop { display: flex; align-items: center; gap: 1.5rem; }
.nav-desktop a { font-size: 0.9375rem; font-weight: 500; color: var(--gray-600); padding: 0.5rem 0; border-bottom: 2px solid transparent; transition: all 0.15s ease; }
.nav-desktop a:hover, .nav-desktop a.active { color: var(--primary-dark); text-decoration: none; border-bottom-color: var(--primary); }
.nav-toggle { display: none; background: none; border: none; padding: 0.5rem; cursor: pointer; color: var(--gray-700); }
.nav-toggle svg { width: 24px; height: 24px; }
.nav-mobile { display: none; position: absolute; top: 100%; left: 0; right: 0; background: white; border-bottom: 1px solid var(--gray-200); padding: 1rem; box-shadow: var(--shadow-lg); z-index: 99; }
.nav-mobile.active { display: block; }
.nav-mobile a { display: block; padding: 0.5rem 1rem; color: var(--gray-700); font-weight: 500; border-radius: var(--radius-md); }
.nav-mobile a:hover { background: var(--gray-100); text-decoration: none; }
@media (max-width: 768px) { .nav-desktop { display: none; } .nav-toggle { display: block; } }

.intro-text { font-size: 1.125rem; color: var(--gray-600); margin-bottom: 1.5rem; max-width: 720px; margin-left: auto; margin-right: auto; }

/* ============================================
   CALCULATOR CARD
   ============================================ */
.calculator-card {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 0;
  margin-bottom: 1.5rem;
  overflow: hidden;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid var(--gray-200);
}

/* Tabs */
.calc-tabs { display: flex; background: var(--gray-100); border-bottom: 1px solid var(--gray-200); }
.calc-tab {
  flex: 1;
  min-width: 0;
  padding: 0.75rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--gray-600);
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  transition: all 0.15s ease;
  border-bottom: 3px solid transparent;
}
.calc-tab:hover { color: var(--gray-800); background: var(--gray-50); }
.calc-tab.active { color: var(--primary-dark); background: white; border-bottom-color: var(--primary); font-weight: 600; }
.calc-tab svg { width: 20px; height: 20px; }
.calc-tab-label { white-space: nowrap; font-size: 0.75rem; }
@media (min-width: 480px) {
  .calc-tab { padding: 0.875rem 1rem; font-size: 0.8125rem; }
  .calc-tab-label { font-size: 0.8125rem; }
}

.calc-panel { display: none; padding: 1.25rem; }
.calc-panel.active { display: block; }

/* Form */
.form-grid { display: grid; gap: 1rem; }
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }
.form-group { display: flex; flex-direction: column; gap: 0.375rem; }
.form-label { font-size: 0.8125rem; font-weight: 500; color: var(--gray-700); }
.form-hint { font-size: 0.75rem; color: var(--gray-500); }

.form-input {
  width: 100%;
  height: 44px;
  padding: 0 0.875rem;
  font-size: 0.9375rem;
  font-family: var(--font-sans);
  color: var(--gray-800);
  background: white;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  transition: all 0.15s ease;
  cursor: text;
}
.form-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-bg); }
.form-input[type="date"],
.form-input[type="time"],
.form-input[type="datetime-local"] { cursor: pointer; }
.form-input::-webkit-calendar-picker-indicator { cursor: pointer; padding: 0; margin: 0; }

.form-select {
  height: 44px;
  padding: 0 0.875rem;
  font-size: 0.9375rem;
  color: var(--gray-800);
  background: white;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  cursor: pointer;
  width: 100%;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2rem;
}
.form-select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-bg); }

.input-group { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.input-group .form-input { flex: 1; min-width: 50px; }
.input-group .form-select { width: 80px; flex-shrink: 0; }
.input-group span { font-size: 0.8125rem; color: var(--gray-500); padding: 0 0.125rem; }

/* Quick Presets */
.quick-presets { display: flex; flex-wrap: wrap; gap: 0.375rem; margin-bottom: 0.75rem; }
.preset-btn {
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gray-600);
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.15s ease;
}
.preset-btn:hover { background: var(--primary-bg); border-color: var(--primary-light); color: var(--primary-dark); }
.preset-btn.active { background: var(--primary); color: white; border-color: var(--primary); }

/* Radio */
.radio-group { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.radio-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  transition: all 0.15s ease;
  font-size: 0.875rem;
}
.radio-option:hover { border-color: var(--primary-light); background: var(--primary-bg); }
.radio-option:has(input:checked) { border-color: var(--primary); background: var(--primary-bg); }
.radio-option input[type="radio"] { width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer; margin: 0; }

/* Calculate Button */
.calculate-btn {
  width: 100%;
  height: 48px;
  margin-top: 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.15s ease;
  box-shadow: 0 4px 14px 0 rgba(249, 115, 22, 0.3);
}
.calculate-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px 0 rgba(249, 115, 22, 0.4); }
.calculate-btn:active { transform: translateY(0); }
.calculate-btn svg { width: 20px; height: 20px; }

/* ============================================
   RESULTS SECTION - ENHANCED
   ============================================ */
.results-section {
  display: none;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--gray-200);
}
.results-section.visible { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Primary Result */
.result-primary {
  text-align: center;
  padding: 1.5rem 1.25rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--primary-bg) 0%, #ffedd5 100%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--primary-light);
}
.result-label { font-size: 0.75rem; font-weight: 600; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.25rem; }
.result-value { font-size: 2.75rem; font-weight: 700; color: var(--primary-dark); line-height: 1.1; }
.result-unit { font-size: 1.25rem; font-weight: 500; color: var(--gray-500); }
.result-sublabel { font-size: 0.9375rem; color: var(--gray-600); margin-top: 0.25rem; }

/* Visual Progress Bar */
.progress-container {
  margin: 1rem 0;
  padding: 1rem;
  background: var(--gray-50);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
}
.progress-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.progress-title { font-size: 0.8125rem; font-weight: 600; color: var(--gray-700); }
.progress-value { font-size: 0.875rem; font-weight: 700; color: var(--primary-dark); }
.progress-bar { height: 14px; background: var(--gray-200); border-radius: var(--radius-full); overflow: hidden; position: relative; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--primary-light), var(--primary)); border-radius: var(--radius-full); transition: width 0.5s ease; }
.progress-note { font-size: 0.75rem; color: var(--gray-500); margin-top: 0.5rem; }

/* Results Grid */
.results-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; margin-top: 1rem; }
.results-grid-3 { grid-template-columns: repeat(3, 1fr); }
.results-grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 520px) { .results-grid, .results-grid-3, .results-grid-4 { grid-template-columns: repeat(2, 1fr); } }

.result-item {
  padding: 0.875rem 0.75rem;
  background: var(--gray-50);
  border-radius: var(--radius-md);
  text-align: center;
  border: 1px solid var(--gray-100);
}
.result-item-label { font-size: 0.6875rem; color: var(--gray-500); margin-bottom: 0.25rem; text-transform: uppercase; letter-spacing: 0.02em; }
.result-item-value { font-size: 1.125rem; font-weight: 600; color: var(--gray-800); }

/* Enhanced Results Tables */
.results-table-section {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-200);
}
.results-table-section h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.results-table-section h4 svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
}

.results-summary-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
  margin-bottom: 1rem;
}
.results-summary-table th,
.results-summary-table td {
  padding: 0.625rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
}
.results-summary-table th {
  font-weight: 600;
  color: var(--gray-600);
  background: var(--gray-50);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.results-summary-table td {
  color: var(--gray-700);
}
.results-summary-table td:nth-child(2) {
  font-weight: 600;
  color: var(--gray-800);
}
.results-summary-table tr:last-child td {
  border-bottom: none;
}

/* Input Summary (compact) */
.input-summary {
  background: var(--gray-50);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  margin-top: 1rem;
  border: 1px solid var(--gray-200);
}
.input-summary-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
}
.input-summary-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.input-summary-item {
  font-size: 0.8125rem;
}
.input-summary-item span:first-child {
  color: var(--gray-500);
}
.input-summary-item span:last-child {
  font-weight: 600;
  color: var(--gray-700);
  margin-left: 0.25rem;
}

/* Tips Section */
.tips-section {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-200);
}
.tips-section h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.75rem;
}
.tips-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
@media (max-width: 520px) { .tips-grid { grid-template-columns: 1fr; } }

.tip-card {
  display: flex;
  gap: 0.625rem;
  padding: 0.75rem;
  background: var(--gray-50);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-100);
}
.tip-icon {
  width: 32px;
  height: 32px;
  background: var(--primary-bg);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary-dark);
  font-size: 1rem;
}
.tip-content {
  flex: 1;
  min-width: 0;
}
.tip-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 0.125rem;
}
.tip-text {
  font-size: 0.75rem;
  color: var(--gray-500);
  line-height: 1.4;
}

/* What This Means Section */
.interpretation-section {
  margin-top: 1.25rem;
  padding: 1rem;
  background: var(--info-bg);
  border-radius: var(--radius-md);
  border: 1px solid #93c5fd;
}
.interpretation-section h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.interpretation-section p {
  font-size: 0.8125rem;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
  line-height: 1.5;
}
.interpretation-section p:last-child {
  margin-bottom: 0;
}

/* Print/Save Button */
.print-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--gray-600);
  background: white;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.15s ease;
}
.print-btn:hover {
  background: var(--gray-50);
  border-color: var(--gray-400);
  color: var(--gray-700);
}
.print-btn svg {
  width: 16px;
  height: 16px;
}

/* Color-coded status */
.status-good { color: var(--success); }
.status-warning { color: var(--warning); }
.status-caution { color: var(--error); }
.bg-good { background: var(--success-bg); border-color: var(--success-light); }
.bg-warning { background: var(--warning-bg); border-color: var(--warning); }

/* Quick Reference Table */
.quick-ref { margin-top: 1.25rem; }
.quick-ref-title { font-size: 0.875rem; font-weight: 600; color: var(--gray-700); margin-bottom: 0.5rem; }
.quick-ref .data-table { font-size: 0.8125rem; }
.quick-ref .data-table th, .quick-ref .data-table td { padding: 0.5rem 0.625rem; }

/* ============================================
   CONTENT SECTIONS
   ============================================ */
.content-section {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.content-section h2 { margin-top: 0; }
.content-section h2::after { content: ''; display: block; width: 60px; height: 3px; background: var(--primary); margin-top: 0.5rem; border-radius: var(--radius-full); }

/* Tables */
.table-responsive { overflow-x: auto; margin: 1.5rem 0; -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.data-table th, .data-table td { padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid var(--gray-200); }
.data-table th { font-weight: 600; color: var(--gray-700); background: var(--gray-50); }
.data-table td { color: var(--gray-600); }
.data-table tbody tr:hover { background: var(--primary-bg); }
.data-table .highlight { background: var(--primary-bg); font-weight: 600; }

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.faq-item { border: 1px solid var(--gray-200); border-radius: var(--radius-lg); overflow: hidden; background: white; }
.faq-question { width: 100%; padding: 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: 0.9375rem; font-weight: 500; text-align: left; color: var(--gray-800); background: var(--gray-50); border: none; cursor: pointer; min-height: 44px; }
.faq-question:hover { background: var(--gray-100); }
.faq-question svg { width: 18px; height: 18px; color: var(--gray-400); transition: transform 0.15s ease; flex-shrink: 0; }
.faq-item.open .faq-question svg { transform: rotate(180deg); }
.faq-answer { display: none; padding: 1rem; background: white; }
.faq-item.open .faq-answer { display: block; }
.faq-answer p:last-child { margin-bottom: 0; }

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.blog-card { background: white; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200); overflow: hidden; transition: all 0.15s ease; }
.blog-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.blog-card-content { padding: 1.25rem; }
.blog-card-meta { font-size: 0.75rem; color: var(--gray-500); margin-bottom: 0.5rem; }
.blog-card h3 { margin: 0 0 0.5rem; font-size: 1.0625rem; }
.blog-card h3 a { color: var(--gray-900); }
.blog-card h3 a:hover { color: var(--primary-dark); text-decoration: none; }
.blog-card p { font-size: 0.875rem; color: var(--gray-600); margin-bottom: 0; }

/* Footer */
.footer { background: var(--gray-900); color: var(--gray-400); padding: 2.5rem 0 1.5rem; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .logo { color: white; margin-bottom: 1rem; }
.footer-brand .logo-icon { color: var(--primary-light); }
.footer-brand p { font-size: 0.875rem; line-height: 1.6; }
.footer-nav h4 { color: white; font-size: 0.8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 1rem; }
.footer-nav ul { list-style: none; }
.footer-nav li { margin-bottom: 0.5rem; }
.footer-nav a { font-size: 0.875rem; color: var(--gray-400); }
.footer-nav a:hover { color: white; text-decoration: none; }
.footer-bottom { padding-top: 1.5rem; border-top: 1px solid var(--gray-800); font-size: 0.8125rem; }

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  .header, .footer, .nav-toggle, .calculate-btn, .print-btn, .calc-tabs { display: none !important; }
  body { background: white; }
  .calculator-card, .content-section { box-shadow: none; border: 1px solid #ddd; max-width: 100%; }
  .results-section { display: block !important; }
  .result-primary { background: #f9f9f9 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .progress-fill { background: #666 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center { text-align: center; }
.text-small { font-size: 0.8125rem; }
.text-muted { color: var(--gray-500); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }

/* ============================================
   BREADCRUMB NAVIGATION
   ============================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--gray-500);
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.breadcrumb a {
  color: var(--gray-500);
  text-decoration: none;
}
.breadcrumb a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}
.breadcrumb .separator {
  color: var(--gray-400);
  font-size: 0.75rem;
}
.breadcrumb .current {
  color: var(--gray-700);
  font-weight: 500;
}

/* ============================================
   TABLE OF CONTENTS
   ============================================ */
.toc-box {
  background: white;
  border: 1px solid var(--gray-200);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.toc-box h2 {
  font-size: 1rem;
  margin: 0 0 0.75rem;
  color: var(--gray-800);
}
.toc-box h2::after { display: none; }
.toc-box ol {
  margin: 0;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.toc-box li {
  font-size: 0.875rem;
  color: var(--gray-600);
}
.toc-box a {
  color: var(--gray-700);
  text-decoration: none;
}
.toc-box a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* ============================================
   CALLOUT BOXES
   ============================================ */
.callout {
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-lg);
  margin: 1.5rem 0;
  border-left: 4px solid;
}
.callout-title {
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.callout p {
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  line-height: 1.6;
}
.callout p:last-child { margin-bottom: 0; }
.callout-orange {
  background: var(--primary-bg);
  border-color: var(--primary);
}
.callout-orange .callout-title { color: var(--primary-dark); }
.callout-blue {
  background: var(--info-bg);
  border-color: var(--info);
}
.callout-blue .callout-title { color: #1d4ed8; }
.callout-green {
  background: var(--success-bg);
  border-color: var(--success);
}
.callout-green .callout-title { color: #047857; }

/* ============================================
   CSS BAR CHARTS
   ============================================ */
.chart-container {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 1.5rem 0;
}
.chart-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 1rem;
}
.chart-bar-group {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.chart-bar-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.chart-bar-label {
  width: 60px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--gray-600);
  text-align: right;
  flex-shrink: 0;
}
.chart-bar-track {
  flex: 1;
  height: 28px;
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
}
.chart-bar-fill {
  height: 100%;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
  min-width: 45px;
  transition: width 0.3s ease;
}
.chart-bar-fill.orange { background: linear-gradient(90deg, var(--primary-light), var(--primary)); }
.chart-bar-fill.blue { background: linear-gradient(90deg, #60a5fa, var(--info)); }
.chart-bar-fill.green { background: linear-gradient(90deg, var(--success-light), var(--success)); }
.chart-bar-fill.amber { background: linear-gradient(90deg, #fcd34d, var(--warning)); color: var(--gray-800); }
.chart-bar-fill.highlighted {
  box-shadow: 0 0 0 2px white, 0 0 0 4px var(--primary);
}
.chart-bar-value {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-left: 0.5rem;
  flex-shrink: 0;
  min-width: 50px;
}
@media (max-width: 480px) {
  .chart-bar-label { width: 48px; font-size: 0.6875rem; }
  .chart-bar-fill { font-size: 0.6875rem; padding-right: 0.25rem; }
  .chart-bar-value { font-size: 0.6875rem; min-width: 40px; }
}

/* Comparison Charts (side by side bars) */
.chart-comparison-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
}
.chart-comparison-row .chart-bar-label {
  width: 60px;
  margin-bottom: 0.125rem;
}
.chart-comparison-pair {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.chart-comparison-pair .chart-bar-track {
  height: 22px;
}
.chart-comparison-pair .chart-bar-fill {
  font-size: 0.6875rem;
}

/* Chart Legend */
.chart-legend {
  display: flex;
  gap: 1.25rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}
.chart-legend-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  color: var(--gray-600);
}
.chart-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.chart-legend-dot.orange { background: var(--primary); }
.chart-legend-dot.blue { background: var(--info); }
.chart-legend-dot.green { background: var(--success); }
.chart-legend-dot.amber { background: var(--warning); }

/* ============================================
   RELATED ARTICLES GRID
   ============================================ */
.related-articles {
  max-width: 800px;
  margin: 2rem auto 0;
}
.related-articles h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}
.related-articles h2::after { display: none; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.related-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  transition: all 0.15s ease;
  text-decoration: none;
  display: block;
}
.related-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  border-color: var(--primary-light);
}
.related-card .related-badge {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.5rem;
  display: inline-block;
  padding: 0.125rem 0.5rem;
  border-radius: var(--radius-full);
}
.related-card h3 {
  font-size: 0.9375rem;
  margin: 0 0 0.375rem;
  color: var(--gray-900);
}
.related-card p {
  font-size: 0.8125rem;
  color: var(--gray-500);
  margin: 0;
  line-height: 1.5;
}

/* ============================================
   CALCULATOR CTA BANNER
   ============================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-bg) 0%, #ffedd5 100%);
  border: 1px solid var(--primary-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 1.5rem 0;
  text-align: center;
}
.cta-banner h3 {
  font-size: 1.125rem;
  color: var(--gray-900);
  margin: 0 0 0.5rem;
}
.cta-banner p {
  font-size: 0.875rem;
  color: var(--gray-600);
  margin-bottom: 1rem;
}
.cta-banner .calculate-btn {
  display: inline-flex;
  width: auto;
  padding: 0 2rem;
  margin-top: 0;
}

/* ============================================
   FEATURED ARTICLE (Blog Index)
   ============================================ */
.featured-article {
  background: white;
  border: 2px solid var(--primary-light);
  border-radius: var(--radius-xl);
  padding: 2rem;
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  overflow: hidden;
}
.featured-article::before {
  content: 'FEATURED';
  position: absolute;
  top: 1rem;
  right: -2rem;
  background: var(--primary);
  color: white;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.25rem 2.5rem;
  transform: rotate(45deg);
  letter-spacing: 0.05em;
}
.featured-article h2 {
  font-size: 1.375rem;
  margin: 0 0 0.5rem;
}
.featured-article h2::after { display: none; }
.featured-article h2 a {
  color: var(--gray-900);
}
.featured-article h2 a:hover {
  color: var(--primary-dark);
  text-decoration: none;
}
.featured-article p {
  color: var(--gray-600);
  margin-bottom: 1rem;
}
.featured-article .calculate-btn {
  display: inline-flex;
  width: auto;
  padding: 0 2rem;
  margin-top: 0;
}

/* ============================================
   CATEGORY LABELS / BADGES
   ============================================ */
.category-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.125rem 0.5rem;
  border-radius: var(--radius-full);
}
.badge-conversion {
  background: var(--primary-bg);
  color: var(--primary-dark);
}
.badge-reference {
  background: var(--info-bg);
  color: #1d4ed8;
}
.badge-formula {
  background: var(--success-bg);
  color: #047857;
}
.badge-guide {
  background: var(--warning-bg);
  color: #92400e;
}
.badge-popular {
  background: #fce7f3;
  color: #be185d;
}

/* Blog Section Headers */
.blog-section-header {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-800);
  margin: 2rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--gray-200);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.blog-section-header::after { display: none; }

/* ============================================
   QUICK LINKS GRID (Contact, 404)
   ============================================ */
.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.quick-links-group h3 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-800);
  margin: 0 0 0.5rem;
}
.quick-links-group ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.quick-links-group a {
  font-size: 0.8125rem;
  color: var(--primary-dark);
}

/* ============================================
   EXPLORE GUIDES CARDS (About page)
   ============================================ */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.guide-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  text-decoration: none;
  display: block;
  transition: all 0.15s ease;
}
.guide-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  border-color: var(--primary-light);
}
.guide-card h3 {
  font-size: 0.9375rem;
  margin: 0 0 0.375rem;
  color: var(--gray-900);
}
.guide-card p {
  font-size: 0.8125rem;
  color: var(--gray-500);
  margin: 0;
}
