/* MACRONUTRIENT CALCULATOR - STYLESHEET - Lime Green Fresh Theme */
:root {
  --primary: #84cc16;
  --primary-dark: #65a30d;
  --primary-light: #a3e635;
  --primary-bg: #f7fee7;
  --secondary: #365314;
  --accent: #f97316;
  --protein: #ef4444;
  --carbs: #3b82f6;
  --fat: #eab308;
  --success: #22c55e;
  --success-bg: #dcfce7;
  --warning: #f59e0b;
  --warning-bg: #fef3c7;
  --error: #ef4444;
  --error-bg: #fee2e2;
  --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;
  --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);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
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 { 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.75rem; }
h4 { font-size: 1rem; font-weight: 600; margin-top: 1rem; margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; }
a { color: var(--primary-dark); text-decoration: none; }
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; }
.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); }
.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); }
@media (max-width: 768px) { .nav-desktop { display: none; } .nav-toggle { display: block; } }

/* Calculator Card */
.intro-text { font-size: 1.125rem; color: var(--gray-600); margin-bottom: 1.5rem; max-width: 700px; }
.calculator-card { background: white; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); margin-bottom: 1.5rem; overflow: hidden; max-width: 720px; margin-left: auto; margin-right: auto; }

.calc-tabs { display: flex; background: var(--gray-100); border-bottom: 1px solid var(--gray-200); overflow-x: auto; }
.calc-tab { flex: 1; min-width: 80px; padding: 0.875rem 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; 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); }
.calc-tab svg { width: 20px; height: 20px; }
.calc-panel { display: none; padding: 1.25rem; }
.calc-panel.active { display: block; }

/* Form Elements */
.form-grid { display: grid; gap: 1rem; }
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
.form-row-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 600px) { .form-row, .form-row-3 { grid-template-columns: 1fr; } }
.form-group { display: flex; flex-direction: column; gap: 0.375rem; }
.form-label { font-size: 0.875rem; 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 1rem; font-size: 1rem; color: var(--gray-800); background: white; border: 1px solid var(--gray-300); border-radius: var(--radius-md); }
.form-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-bg); }
.form-select { height: 44px; padding: 0 1rem; font-size: 1rem; color: var(--gray-800); background: white; border: 1px solid var(--gray-300); border-radius: var(--radius-md); cursor: pointer; width: 100%; }

.radio-group { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.radio-option { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; padding: 0.5rem 0.75rem; border: 1px solid var(--gray-300); border-radius: var(--radius-md); 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 { width: 16px; height: 16px; accent-color: var(--primary); }

.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-lg); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 0.5rem; box-shadow: 0 4px 14px 0 rgba(132, 204, 22, 0.4); }
.calculate-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px 0 rgba(132, 204, 22, 0.5); }

/* Results Section */
.results-section { display: none; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--gray-200); max-width: 800px; margin-left: auto; margin-right: auto; }
.results-section.visible { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.result-primary { text-align: center; padding: 1.25rem; margin-bottom: 1rem; background: linear-gradient(135deg, var(--primary-bg) 0%, #d9f99d 100%); border-radius: var(--radius-lg); border: 2px solid var(--primary-light); }
.result-label { font-size: 0.75rem; font-weight: 500; color: var(--gray-500); text-transform: uppercase; margin-bottom: 0.25rem; }
.result-value { font-size: 2.5rem; font-weight: 700; color: var(--primary-dark); line-height: 1.2; }
.result-unit { font-size: 1rem; font-weight: 500; color: var(--gray-500); }
.result-sublabel { font-size: 0.875rem; color: var(--gray-600); margin-top: 0.25rem; }

/* Macro Bars */
.macro-bars { display: flex; flex-direction: column; gap: 0.75rem; margin: 1rem 0; }
.macro-bar-item { display: grid; grid-template-columns: 80px 1fr 60px; align-items: center; gap: 0.75rem; }
.macro-bar-label { font-size: 0.875rem; font-weight: 500; display: flex; align-items: center; gap: 0.5rem; }
.macro-bar-label .dot { width: 12px; height: 12px; border-radius: 50%; }
.macro-bar-label .dot.protein { background: var(--protein); }
.macro-bar-label .dot.carbs { background: var(--carbs); }
.macro-bar-label .dot.fat { background: var(--fat); }
.macro-bar-track { height: 24px; background: var(--gray-200); border-radius: var(--radius-full); overflow: hidden; }
.macro-bar-fill { height: 100%; border-radius: var(--radius-full); display: flex; align-items: center; justify-content: flex-end; padding-right: 0.5rem; font-size: 0.75rem; font-weight: 600; color: white; }
.macro-bar-fill.protein { background: linear-gradient(90deg, #fca5a5, var(--protein)); }
.macro-bar-fill.carbs { background: linear-gradient(90deg, #93c5fd, var(--carbs)); }
.macro-bar-fill.fat { background: linear-gradient(90deg, #fde047, var(--fat)); }
.macro-bar-value { font-size: 0.875rem; font-weight: 600; text-align: right; }

/* Macro Pie Visual */
.macro-pie-container { display: flex; justify-content: center; margin: 1rem 0; }
.macro-pie { width: 150px; height: 150px; border-radius: 50%; position: relative; }
.macro-pie-center { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 80px; height: 80px; background: white; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.macro-pie-center .cal { font-size: 1.25rem; font-weight: 700; color: var(--gray-800); }
.macro-pie-center .label { font-size: 0.625rem; color: var(--gray-500); text-transform: uppercase; }

/* Results Grid */
.results-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; margin-top: 1rem; }
.results-grid-3 { grid-template-columns: repeat(3, 1fr); }
.results-grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 600px) { .results-grid, .results-grid-3, .results-grid-4 { grid-template-columns: repeat(2, 1fr); } }
.result-item { padding: 0.875rem; background: var(--gray-50); border-radius: var(--radius-md); text-align: center; }
.result-item-label { font-size: 0.6875rem; color: var(--gray-500); margin-bottom: 0.25rem; text-transform: uppercase; }
.result-item-value { font-size: 1.125rem; font-weight: 600; color: var(--gray-800); }

/* Macro Cards */
.macro-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin: 1rem 0; }
@media (max-width: 500px) { .macro-cards { grid-template-columns: 1fr; } }
.macro-card { padding: 1rem; border-radius: var(--radius-lg); text-align: center; }
.macro-card.protein { background: #fef2f2; border: 2px solid #fecaca; }
.macro-card.carbs { background: #eff6ff; border: 2px solid #bfdbfe; }
.macro-card.fat { background: #fefce8; border: 2px solid #fef08a; }
.macro-card-icon { font-size: 1.5rem; margin-bottom: 0.25rem; }
.macro-card-value { font-size: 1.5rem; font-weight: 700; }
.macro-card.protein .macro-card-value { color: var(--protein); }
.macro-card.carbs .macro-card-value { color: var(--carbs); }
.macro-card.fat .macro-card-value { color: var(--fat); }
.macro-card-label { font-size: 0.75rem; color: var(--gray-600); text-transform: uppercase; }
.macro-card-percent { font-size: 0.875rem; color: var(--gray-500); margin-top: 0.25rem; }

/* Content Sections */
.content-section { background: white; border-radius: var(--radius-xl); box-shadow: var(--shadow-md); 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); }

/* Key Takeaways Box */
.key-takeaways { background: var(--primary-bg); border: 1px solid var(--primary-light); border-radius: var(--radius-lg); padding: 1rem 1.25rem; margin-bottom: 1.5rem; max-width: 800px; margin-left: auto; margin-right: auto; }
.key-takeaways-title { font-weight: 600; color: var(--primary-dark); margin-bottom: 0.5rem; font-size: 0.9375rem; }
.key-takeaways ul { margin: 0; padding-left: 1.25rem; font-size: 0.875rem; }
.key-takeaways li { margin-bottom: 0.375rem; color: var(--gray-700); }
.key-takeaways li:last-child { margin-bottom: 0; }

/* Tables */
.table-responsive { overflow-x: auto; margin: 1rem 0; }
.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); }

/* ===== COMPARISON TABLE ===== */
.comparison-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; margin: 1rem 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.comparison-table thead { background: linear-gradient(135deg, var(--gray-800) 0%, var(--gray-900) 100%); }
.comparison-table th { padding: 1rem; text-align: left; font-weight: 600; color: white; text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.05em; }
.comparison-table th:first-child { border-radius: var(--radius-lg) 0 0 0; }
.comparison-table th:last-child { border-radius: 0 var(--radius-lg) 0 0; }
.comparison-table td { padding: 0.875rem 1rem; border-bottom: 1px solid var(--gray-100); background: white; }
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tr:hover td { background: var(--gray-50); }
.comparison-table .highlight-row td { background: var(--primary-bg); font-weight: 600; }
.comparison-table .protein-col { color: var(--protein); font-weight: 600; }
.comparison-table .carbs-col { color: var(--carbs); font-weight: 600; }
.comparison-table .fat-col { color: var(--fat); font-weight: 600; }
.comparison-table .check { color: var(--success); font-weight: 700; }
.comparison-table .cross { color: var(--error); font-weight: 700; }

/* ===== MACRO CHART VISUAL ===== */
.macro-chart-visual { display: flex; flex-direction: column; gap: 1rem; padding: 1.5rem; background: var(--gray-50); border-radius: var(--radius-lg); margin: 1rem 0; }
.macro-chart-visual .chart-title { font-size: 0.875rem; font-weight: 600; color: var(--gray-700); text-transform: uppercase; letter-spacing: 0.025em; margin-bottom: 0.5rem; }
.macro-chart-visual .chart-bar-group { display: flex; flex-direction: column; gap: 0.75rem; }
.macro-chart-visual .chart-bar { display: flex; align-items: center; gap: 1rem; }
.macro-chart-visual .chart-label { min-width: 100px; font-size: 0.8125rem; font-weight: 500; color: var(--gray-700); }
.macro-chart-visual .chart-track { flex: 1; height: 32px; background: var(--gray-200); border-radius: var(--radius-full); overflow: hidden; position: relative; }
.macro-chart-visual .chart-fill { height: 100%; border-radius: var(--radius-full); display: flex; align-items: center; padding-left: 1rem; font-size: 0.8125rem; font-weight: 700; color: white; transition: width 0.5s ease-out; }
.macro-chart-visual .chart-fill.protein { background: linear-gradient(90deg, #fca5a5 0%, var(--protein) 100%); }
.macro-chart-visual .chart-fill.carbs { background: linear-gradient(90deg, #93c5fd 0%, var(--carbs) 100%); }
.macro-chart-visual .chart-fill.fat { background: linear-gradient(90deg, #fde047 0%, var(--fat) 100%); }
.macro-chart-visual .chart-fill.primary { background: linear-gradient(90deg, var(--primary-light) 0%, var(--primary-dark) 100%); }
.macro-chart-visual .chart-value { min-width: 60px; font-size: 0.875rem; font-weight: 600; color: var(--gray-800); text-align: right; }
.macro-chart-visual .chart-legend { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-top: 0.5rem; padding-top: 0.75rem; border-top: 1px solid var(--gray-200); }
.macro-chart-visual .legend-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8125rem; color: var(--gray-600); }
.macro-chart-visual .legend-dot { width: 12px; height: 12px; border-radius: 50%; }
.macro-chart-visual .legend-dot.protein { background: var(--protein); }
.macro-chart-visual .legend-dot.carbs { background: var(--carbs); }
.macro-chart-visual .legend-dot.fat { background: var(--fat); }

/* ===== STAT HIGHLIGHT ===== */
.stat-highlight { display: flex; align-items: center; gap: 1rem; padding: 1.25rem 1.5rem; background: linear-gradient(135deg, var(--primary-bg) 0%, #ecfccb 100%); border: 2px solid var(--primary-light); border-radius: var(--radius-lg); margin: 1rem 0; }
.stat-highlight-icon { width: 48px; height: 48px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 1.5rem; flex-shrink: 0; }
.stat-highlight-content { flex: 1; }
.stat-highlight-value { font-size: 1.75rem; font-weight: 700; color: var(--primary-dark); line-height: 1.2; }
.stat-highlight-label { font-size: 0.875rem; color: var(--gray-600); margin-top: 0.25rem; }
.stat-highlight.protein { background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%); border-color: #fecaca; }
.stat-highlight.protein .stat-highlight-icon { background: var(--protein); }
.stat-highlight.protein .stat-highlight-value { color: var(--protein); }
.stat-highlight.carbs { background: linear-gradient(135deg, #eff6ff 0%, #bfdbfe 100%); border-color: #bfdbfe; }
.stat-highlight.carbs .stat-highlight-icon { background: var(--carbs); }
.stat-highlight.carbs .stat-highlight-value { color: var(--carbs); }
.stat-highlight.fat { background: linear-gradient(135deg, #fefce8 0%, #fef08a 100%); border-color: #fef08a; }
.stat-highlight.fat .stat-highlight-icon { background: var(--fat); }
.stat-highlight.fat .stat-highlight-value { color: var(--fat); }

/* Stat Highlight Grid */
.stat-highlight-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1.5rem 0; }
@media (max-width: 768px) { .stat-highlight-grid { grid-template-columns: 1fr; } }
.stat-highlight-grid .stat-highlight { flex-direction: column; text-align: center; padding: 1.5rem 1rem; }
.stat-highlight-grid .stat-highlight-icon { margin-bottom: 0.5rem; }

/* ===== TIP CARD ===== */
.tip-card { padding: 1.25rem 1.5rem; background: white; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); border-left: 4px solid var(--primary); margin: 1rem 0; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.tip-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.tip-card-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.tip-card-icon { width: 36px; height: 36px; background: var(--primary-bg); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; flex-shrink: 0; }
.tip-card-title { font-size: 1rem; font-weight: 600; color: var(--gray-900); }
.tip-card-content { font-size: 0.9375rem; color: var(--gray-600); line-height: 1.6; }
.tip-card-content p:last-child { margin-bottom: 0; }
.tip-card.protein { border-left-color: var(--protein); }
.tip-card.protein .tip-card-icon { background: #fef2f2; color: var(--protein); }
.tip-card.carbs { border-left-color: var(--carbs); }
.tip-card.carbs .tip-card-icon { background: #eff6ff; color: var(--carbs); }
.tip-card.fat { border-left-color: var(--fat); }
.tip-card.fat .tip-card-icon { background: #fefce8; color: var(--fat); }
.tip-card.success { border-left-color: var(--success); }
.tip-card.success .tip-card-icon { background: var(--success-bg); color: var(--success); }
.tip-card.warning { border-left-color: var(--warning); }
.tip-card.warning .tip-card-icon { background: var(--warning-bg); color: var(--warning); }

/* Tip Card Grid */
.tip-card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin: 1.5rem 0; }
@media (max-width: 768px) { .tip-card-grid { grid-template-columns: 1fr; } }

/* ===== WARNING BOX ===== */
.warning-box { padding: 1.25rem 1.5rem; border-radius: var(--radius-lg); margin: 1rem 0; display: flex; gap: 1rem; align-items: flex-start; }
.warning-box-icon { width: 24px; height: 24px; flex-shrink: 0; margin-top: 0.125rem; }
.warning-box-content { flex: 1; }
.warning-box-title { font-size: 0.9375rem; font-weight: 600; margin-bottom: 0.375rem; }
.warning-box-text { font-size: 0.875rem; line-height: 1.6; }
.warning-box-text p:last-child { margin-bottom: 0; }
.warning-box.caution { background: var(--warning-bg); border: 1px solid #fde68a; }
.warning-box.caution .warning-box-icon { color: var(--warning); }
.warning-box.caution .warning-box-title { color: #92400e; }
.warning-box.caution .warning-box-text { color: #78350f; }
.warning-box.danger { background: var(--error-bg); border: 1px solid #fecaca; }
.warning-box.danger .warning-box-icon { color: var(--error); }
.warning-box.danger .warning-box-title { color: #991b1b; }
.warning-box.danger .warning-box-text { color: #7f1d1d; }
.warning-box.info { background: #eff6ff; border: 1px solid #bfdbfe; }
.warning-box.info .warning-box-icon { color: var(--carbs); }
.warning-box.info .warning-box-title { color: #1e40af; }
.warning-box.info .warning-box-text { color: #1e3a8a; }
.warning-box.success { background: var(--success-bg); border: 1px solid #bbf7d0; }
.warning-box.success .warning-box-icon { color: var(--success); }
.warning-box.success .warning-box-title { color: #166534; }
.warning-box.success .warning-box-text { color: #14532d; }

/* ===== PROGRESS BAR ===== */
.progress-bar { margin: 1rem 0; }
.progress-bar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.progress-bar-label { font-size: 0.875rem; font-weight: 500; color: var(--gray-700); }
.progress-bar-value { font-size: 0.875rem; font-weight: 600; color: var(--gray-800); }
.progress-bar-track { height: 12px; background: var(--gray-200); border-radius: var(--radius-full); overflow: hidden; }
.progress-bar-fill { height: 100%; border-radius: var(--radius-full); transition: width 0.5s ease-out; }
.progress-bar-fill.primary { background: linear-gradient(90deg, var(--primary-light) 0%, var(--primary-dark) 100%); }
.progress-bar-fill.protein { background: linear-gradient(90deg, #fca5a5 0%, var(--protein) 100%); }
.progress-bar-fill.carbs { background: linear-gradient(90deg, #93c5fd 0%, var(--carbs) 100%); }
.progress-bar-fill.fat { background: linear-gradient(90deg, #fde047 0%, var(--fat) 100%); }
.progress-bar-fill.success { background: linear-gradient(90deg, #86efac 0%, var(--success) 100%); }
.progress-bar-fill.warning { background: linear-gradient(90deg, #fcd34d 0%, var(--warning) 100%); }

/* Multi Progress Bar */
.multi-progress-bar { height: 24px; background: var(--gray-200); border-radius: var(--radius-full); overflow: hidden; display: flex; margin: 1rem 0; }
.multi-progress-bar .segment { height: 100%; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 600; color: white; transition: width 0.5s ease-out; }
.multi-progress-bar .segment.protein { background: var(--protein); }
.multi-progress-bar .segment.carbs { background: var(--carbs); }
.multi-progress-bar .segment.fat { background: var(--fat); }

/* ===== TIMELINE ===== */
.timeline { position: relative; margin: 1.5rem 0; padding-left: 2rem; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 0; bottom: 0; width: 2px; background: var(--gray-200); }
.timeline-item { position: relative; padding-bottom: 1.5rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before { content: ''; position: absolute; left: -2rem; top: 0.25rem; width: 16px; height: 16px; background: var(--primary); border-radius: 50%; border: 3px solid white; box-shadow: 0 0 0 2px var(--primary); z-index: 1; }
.timeline-item.completed::before { background: var(--success); box-shadow: 0 0 0 2px var(--success); }
.timeline-item.current::before { background: var(--primary); box-shadow: 0 0 0 2px var(--primary), 0 0 0 6px var(--primary-bg); }
.timeline-item.upcoming::before { background: var(--gray-300); box-shadow: 0 0 0 2px var(--gray-300); }
.timeline-title { font-size: 1rem; font-weight: 600; color: var(--gray-900); margin-bottom: 0.25rem; }
.timeline-date { font-size: 0.8125rem; color: var(--primary-dark); font-weight: 500; margin-bottom: 0.5rem; }
.timeline-content { font-size: 0.9375rem; color: var(--gray-600); line-height: 1.6; }

/* Horizontal Timeline */
.timeline-horizontal { display: flex; justify-content: space-between; margin: 2rem 0; position: relative; padding: 0 1rem; }
.timeline-horizontal::before { content: ''; position: absolute; top: 20px; left: 2rem; right: 2rem; height: 3px; background: var(--gray-200); }
.timeline-horizontal .step { text-align: center; position: relative; flex: 1; }
.timeline-horizontal .step-marker { width: 40px; height: 40px; background: var(--gray-200); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--gray-500); margin: 0 auto 0.75rem; position: relative; z-index: 1; border: 3px solid white; }
.timeline-horizontal .step.active .step-marker { background: var(--primary); color: white; }
.timeline-horizontal .step.completed .step-marker { background: var(--success); color: white; }
.timeline-horizontal .step-label { font-size: 0.8125rem; font-weight: 500; color: var(--gray-600); }
.timeline-horizontal .step.active .step-label { color: var(--primary-dark); font-weight: 600; }

/* ===== CHECKLIST ===== */
.checklist { list-style: none; padding: 0; margin: 1rem 0; }
.checklist-item { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.75rem 0; border-bottom: 1px solid var(--gray-100); }
.checklist-item:last-child { border-bottom: none; }
.checklist-checkbox { width: 22px; height: 22px; border: 2px solid var(--gray-300); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 0.125rem; cursor: pointer; transition: all 0.2s ease; }
.checklist-checkbox:hover { border-color: var(--primary); background: var(--primary-bg); }
.checklist-item.checked .checklist-checkbox { background: var(--primary); border-color: var(--primary); color: white; }
.checklist-item.checked .checklist-checkbox::after { content: ''; width: 6px; height: 10px; border: solid white; border-width: 0 2px 2px 0; transform: rotate(45deg); margin-top: -2px; }
.checklist-content { flex: 1; }
.checklist-label { font-size: 0.9375rem; font-weight: 500; color: var(--gray-800); line-height: 1.4; }
.checklist-item.checked .checklist-label { color: var(--gray-500); text-decoration: line-through; }
.checklist-description { font-size: 0.8125rem; color: var(--gray-500); margin-top: 0.25rem; }

/* Checklist with Icons */
.checklist-icons { list-style: none; padding: 0; margin: 1rem 0; }
.checklist-icons li { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.625rem 0; font-size: 0.9375rem; color: var(--gray-700); }
.checklist-icons li::before { content: ''; width: 20px; height: 20px; background: var(--success); border-radius: 50%; flex-shrink: 0; margin-top: 0.125rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E"); background-size: 12px; background-position: center; background-repeat: no-repeat; }

/* 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; }
.faq-question { width: 100%; padding: 1rem; display: flex; align-items: center; justify-content: space-between; font-size: 0.9375rem; font-weight: 500; text-align: left; color: var(--gray-800); background: var(--gray-50); border: none; cursor: pointer; }
.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; font-size: 0.9375rem; }
.faq-item.open .faq-answer { display: block; }

/* Blog Grid */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; margin-top: 1.5rem; max-width: 800px; margin-left: auto; margin-right: auto; }
.blog-card { background: white; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); overflow: hidden; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.blog-card-content { padding: 1rem; }
.blog-card-meta { font-size: 0.75rem; color: var(--gray-500); margin-bottom: 0.375rem; }
.blog-card h3 { margin: 0 0 0.375rem; font-size: 1rem; }
.blog-card h3 a { color: var(--gray-900); }
.blog-card p { font-size: 0.8125rem; color: var(--gray-600); margin-bottom: 0; }

/* Related Grid for Articles */
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; margin-top: 1rem; }
.related-card { display: block; padding: 1rem; background: white; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); text-decoration: none; transition: all 0.2s ease; }
.related-card:hover { border-color: var(--primary-light); background: var(--primary-bg); text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.related-card-title { font-size: 0.9375rem; font-weight: 600; color: var(--gray-900); margin-bottom: 0.375rem; }
.related-card-desc { font-size: 0.8125rem; color: var(--gray-600); line-height: 1.5; margin: 0; }

/* Tips Grid */
.tips-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; margin: 1rem 0; }
@media (max-width: 600px) { .tips-grid { grid-template-columns: 1fr; } }
.tip-item { display: flex; gap: 0.75rem; padding: 0.875rem; background: var(--gray-50); border-radius: var(--radius-md); }
.tip-icon { font-size: 1.25rem; flex-shrink: 0; }
.tip-content h4 { font-size: 0.875rem; margin: 0 0 0.25rem; color: var(--gray-800); }
.tip-content p { font-size: 0.8125rem; margin: 0; color: var(--gray-600); }

/* ===== CATEGORY FILTERS ===== */
.category-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.5rem 0; }
.category-filter { padding: 0.5rem 1rem; font-size: 0.875rem; font-weight: 500; color: var(--gray-600); background: white; border: 1px solid var(--gray-300); border-radius: var(--radius-full); cursor: pointer; transition: all 0.2s ease; }
.category-filter:hover { border-color: var(--primary); color: var(--primary-dark); }
.category-filter.active { background: var(--primary); border-color: var(--primary); color: white; }

/* ===== FEATURED ARTICLE CARD ===== */
.featured-article { background: linear-gradient(135deg, var(--primary-bg) 0%, #d9f99d 100%); border: 2px solid var(--primary-light); border-radius: var(--radius-xl); padding: 2rem; margin: 1.5rem 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
@media (max-width: 768px) { .featured-article { grid-template-columns: 1fr; } }
.featured-article-badge { display: inline-block; padding: 0.25rem 0.75rem; background: var(--primary); color: white; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; border-radius: var(--radius-full); margin-bottom: 0.75rem; }
.featured-article h3 { font-size: 1.5rem; color: var(--gray-900); margin-bottom: 0.75rem; }
.featured-article h3 a { color: inherit; }
.featured-article p { color: var(--gray-700); margin-bottom: 1rem; }
.featured-article-visual { text-align: center; }

/* ===== SEARCH BOX ===== */
.search-box { position: relative; margin: 1rem 0; }
.search-box input { width: 100%; height: 48px; padding: 0 1rem 0 3rem; font-size: 1rem; border: 2px solid var(--gray-200); border-radius: var(--radius-lg); background: white; transition: border-color 0.2s ease; }
.search-box input:focus { outline: none; border-color: var(--primary); }
.search-box-icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--gray-400); pointer-events: none; }
.search-box-icon svg { width: 20px; height: 20px; }

/* ===== BENEFITS TABLE ===== */
.benefits-table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 1rem 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.benefits-table th { padding: 1rem 1.25rem; text-align: left; background: var(--primary-dark); color: white; font-weight: 600; font-size: 0.875rem; }
.benefits-table td { padding: 1rem 1.25rem; background: white; border-bottom: 1px solid var(--gray-100); font-size: 0.9375rem; }
.benefits-table tr:last-child td { border-bottom: none; }
.benefits-table tr:hover td { background: var(--gray-50); }
.benefits-table .benefit-icon { font-size: 1.25rem; text-align: center; }

/* 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; max-width: 800px; margin-left: auto; margin-right: auto; }
@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; }
.footer-nav h4 { color: white; font-size: 0.8125rem; font-weight: 600; text-transform: uppercase; 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; text-align: center; }

/* Print Button */
.print-btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.625rem 1rem; font-size: 0.875rem; color: var(--gray-600); background: var(--gray-100); border: 1px solid var(--gray-300); border-radius: var(--radius-md); cursor: pointer; margin-top: 1rem; }
.print-btn:hover { background: var(--gray-200); }

/* ===== EXTENDED RESULTS ===== */
.extended-results {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--gray-200);
}
.extended-results:empty { display: none; }

.er-section {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--gray-100);
}
.er-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.er-section-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}

.er-section-subtitle {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--gray-800);
  margin: 1rem 0 0.5rem;
}

/* Extended Results Tables */
.er-table-wrap { overflow-x: auto; margin: 0.75rem 0; -webkit-overflow-scrolling: touch; }
.er-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}
.er-table th,
.er-table td {
  padding: 0.625rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
}
.er-table th {
  font-weight: 600;
  color: var(--gray-700);
  background: var(--gray-50);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}
.er-table td { color: var(--gray-600); }
.er-table tr:last-child td { border-bottom: none; }
.er-table .row-highlight td {
  background: var(--primary-bg);
  font-weight: 600;
  color: var(--gray-800);
}
.er-table .row-bold td { font-weight: 600; color: var(--gray-800); }
.er-table td.text-right,
.er-table th.text-right { text-align: right; }
.er-table td.text-center,
.er-table th.text-center { text-align: center; }

/* Explanation text blocks */
.er-explanation {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--gray-600);
  margin-bottom: 0.75rem;
}
.er-explanation strong { color: var(--gray-800); }

/* Horizontal bar chart items */
.er-bar-chart { display: flex; flex-direction: column; gap: 0.625rem; margin: 0.75rem 0; }
.er-bar-item {
  display: grid;
  grid-template-columns: 90px 1fr 60px;
  gap: 0.5rem;
  align-items: center;
}
.er-bar-label { font-size: 0.8125rem; font-weight: 500; color: var(--gray-700); text-align: right; }
.er-bar-track { height: 22px; background: var(--gray-100); border-radius: var(--radius-full); overflow: hidden; }
.er-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  font-weight: 600;
  color: white;
  min-width: 24px;
  transition: width 0.4s ease;
}
.er-bar-fill.protein { background: linear-gradient(90deg, #fca5a5, var(--protein)); }
.er-bar-fill.carbs { background: linear-gradient(90deg, #93c5fd, var(--carbs)); }
.er-bar-fill.fat { background: linear-gradient(90deg, #fde047, var(--fat)); }
.er-bar-value { font-size: 0.8125rem; font-weight: 600; color: var(--gray-700); }

/* Projection rows */
.er-projection { margin: 0.75rem 0; }
.er-projection-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  border-bottom: 1px solid var(--gray-100);
}
.er-projection-row:last-child { border-bottom: none; }
.er-projection-label { font-weight: 500; color: var(--gray-700); min-width: 80px; }
.er-projection-bar { flex: 1; height: 8px; background: var(--gray-100); border-radius: var(--radius-full); overflow: hidden; }
.er-projection-fill { height: 100%; border-radius: var(--radius-full); background: linear-gradient(90deg, var(--primary-light), var(--primary)); }
.er-projection-value { font-weight: 600; color: var(--gray-800); min-width: 70px; text-align: right; }

/* Tip list */
.er-tip-list { list-style: none; padding: 0; margin: 0.75rem 0; }
.er-tip-list li {
  position: relative;
  padding: 0.625rem 0 0.625rem 2rem;
  font-size: 0.875rem;
  color: var(--gray-600);
  border-bottom: 1px solid var(--gray-100);
  line-height: 1.5;
}
.er-tip-list li:last-child { border-bottom: none; }
.er-tip-list li::before {
  content: attr(data-icon);
  position: absolute;
  left: 0;
  top: 0.625rem;
  font-size: 1rem;
}

/* Foods grid */
.er-foods-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 0.75rem 0;
}
@media (max-width: 600px) { .er-foods-grid { grid-template-columns: 1fr; } }

.er-food-category {
  padding: 1rem;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
}
.er-food-category-title {
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}
.er-food-category-title.protein { color: var(--protein); }
.er-food-category-title.carbs { color: var(--carbs); }
.er-food-category-title.fat { color: var(--fat); }
.er-food-category ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.er-food-category li {
  font-size: 0.8125rem;
  color: var(--gray-600);
  padding: 0.25rem 0;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dotted var(--gray-200);
}
.er-food-category li:last-child { border-bottom: none; }
.er-food-category li span { font-weight: 600; color: var(--gray-700); white-space: nowrap; margin-left: 0.5rem; }

/* Highlight boxes */
.er-highlight-box {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  margin: 0.75rem 0;
  font-size: 0.875rem;
  line-height: 1.6;
}
.er-highlight-box.green { background: var(--success-bg); border: 1px solid #bbf7d0; color: #166534; }
.er-highlight-box.yellow { background: var(--warning-bg); border: 1px solid #fde68a; color: #92400e; }
.er-highlight-box.blue { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }
.er-highlight-box.lime { background: var(--primary-bg); border: 1px solid var(--primary-light); color: var(--secondary); }
.er-highlight-box strong { color: inherit; }

/* Meal timeline */
.er-meal-timeline { margin: 0.75rem 0; }
.er-meal-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--gray-100);
  align-items: start;
}
.er-meal-item:last-child { border-bottom: none; }
.er-meal-time {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary-dark);
  padding-top: 0.125rem;
}
.er-meal-details { font-size: 0.8125rem; color: var(--gray-600); }
.er-meal-macros {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.25rem;
  flex-wrap: wrap;
}
.er-meal-macro {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.125rem 0.5rem;
  border-radius: var(--radius-full);
  background: var(--gray-100);
}
.er-meal-macro.cal { color: var(--gray-700); }
.er-meal-macro.p { color: var(--protein); background: #fef2f2; }
.er-meal-macro.c { color: var(--carbs); background: #eff6ff; }
.er-meal-macro.f { color: var(--fat); background: #fefce8; }

/* Next steps */
.er-steps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin: 0.75rem 0;
}
@media (max-width: 600px) { .er-steps-grid { grid-template-columns: 1fr; } }
.er-step-card {
  padding: 1rem;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
}
.er-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 0.375rem;
}
.er-step-title { font-size: 0.875rem; font-weight: 600; color: var(--gray-800); margin-bottom: 0.25rem; }
.er-step-desc { font-size: 0.8125rem; color: var(--gray-600); line-height: 1.5; }

/* Checklist */
.er-checklist { list-style: none; padding: 0; margin: 0.75rem 0; }
.er-checklist li {
  padding: 0.5rem 0 0.5rem 1.75rem;
  font-size: 0.875rem;
  color: var(--gray-600);
  position: relative;
  border-bottom: 1px solid var(--gray-100);
}
.er-checklist li:last-child { border-bottom: none; }
.er-checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.625rem;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 2px solid var(--primary);
  background: var(--primary-bg);
}

/* Supplement table special */
.er-supplement-note {
  font-size: 0.75rem;
  color: var(--gray-500);
  font-style: italic;
  margin-top: 0.5rem;
}

/* Keto timeline */
.er-timeline { margin: 0.75rem 0; }
.er-timeline-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--gray-100);
}
.er-timeline-item:last-child { border-bottom: none; }
.er-timeline-period {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--primary-dark);
  white-space: nowrap;
}
.er-timeline-desc { font-size: 0.8125rem; color: var(--gray-600); line-height: 1.5; }

/* Print button at bottom of extended */
.er-print-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  margin-top: 1.5rem;
  box-shadow: 0 2px 8px rgba(132, 204, 22, 0.3);
}
.er-print-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(132, 204, 22, 0.4); }

/* ===== AUTHORITY LINK STYLES ===== */
.authority-link { color: var(--primary-dark); font-weight: 500; }
.authority-link:hover { color: var(--primary); }
.authority-link::after { content: ' \2197'; font-size: 0.75em; }

/* External link indicator */
a[target="_blank"]::after { content: ' \2197'; font-size: 0.75em; opacity: 0.7; }
a[target="_blank"].no-icon::after { content: none; }

/* ===== LEGAL PAGE STYLES ===== */
.legal-section { margin-bottom: 1.5rem; }
.legal-section h3 { font-size: 1.125rem; color: var(--gray-800); margin-bottom: 0.75rem; }
.legal-list { padding-left: 1.5rem; margin: 0.75rem 0; }
.legal-list li { margin-bottom: 0.5rem; font-size: 0.9375rem; color: var(--gray-600); }
.legal-highlight { background: var(--warning-bg); border-left: 4px solid var(--warning); padding: 1rem 1.25rem; margin: 1rem 0; border-radius: 0 var(--radius-md) var(--radius-md) 0; }
.legal-highlight p { margin: 0; font-size: 0.9375rem; color: #92400e; }

/* Data collection table */
.data-table-styled { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.data-table-styled th { background: var(--gray-100); padding: 0.875rem 1rem; text-align: left; font-weight: 600; font-size: 0.8125rem; color: var(--gray-700); text-transform: uppercase; border-bottom: 2px solid var(--gray-200); }
.data-table-styled td { padding: 0.875rem 1rem; border-bottom: 1px solid var(--gray-100); font-size: 0.9375rem; color: var(--gray-600); vertical-align: top; }
.data-table-styled tr:hover td { background: var(--gray-50); }
.data-table-styled .yes { color: var(--success); font-weight: 600; }
.data-table-styled .no { color: var(--error); font-weight: 600; }

/* Rights cards */
.rights-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin: 1rem 0; }
@media (max-width: 600px) { .rights-grid { grid-template-columns: 1fr; } }
.rights-card { padding: 1.25rem; background: var(--gray-50); border-radius: var(--radius-lg); border: 1px solid var(--gray-200); }
.rights-card-icon { font-size: 1.5rem; margin-bottom: 0.5rem; }
.rights-card h4 { font-size: 0.9375rem; font-weight: 600; color: var(--gray-800); margin-bottom: 0.375rem; }
.rights-card p { font-size: 0.8125rem; color: var(--gray-600); margin: 0; line-height: 1.5; }

/* Responsive adjustments for extended results */
@media (max-width: 600px) {
  .er-bar-item { grid-template-columns: 70px 1fr 50px; }
  .er-meal-item { grid-template-columns: 80px 1fr; }
  .er-timeline-item { grid-template-columns: 100px 1fr; }
  .er-table { font-size: 0.75rem; }
  .er-table th, .er-table td { padding: 0.5rem; }
}

/* ===== PRINT STYLES ===== */
@media print {
  .header, .footer, .nav-toggle, .nav-mobile, .calculate-btn, .er-print-btn, .print-btn { display: none !important; }
  body { background: white; font-size: 12pt; }
  .content-section { box-shadow: none; border: 1px solid #ddd; break-inside: avoid; }
  .results-section { display: block !important; }
  a { color: inherit; text-decoration: none; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 0.8em; color: #666; }
  a[href^="/"]:after { content: " (macronutrientcalculator.org" attr(href) ")"; }
}
