/* ============================================================
   HeartScore Calculator — Production CSS (No Tailwind CDN)
   All utility classes written manually for cPanel deployment
   ============================================================ */

/* === CSS VARIABLES === */
:root {
  --navy: #1D3557;
  --navy-dark: #162640;
  --vitred: #E63946;
  --vitred-dark: #c0303c;
  --safe-green: #2ECC71;
  --warn-yellow: #F1C40F;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --white: #ffffff;
}

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  min-height: 100vh;
  color: #1e293b;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }

/* === READING PROGRESS BAR === */
#progress-bar {
  position: fixed; top: 0; left: 0; height: 3px;
  background: linear-gradient(90deg, var(--vitred), #ff6b6b);
  width: 0%; z-index: 9999; transition: width 0.1s ease;
}

/* ============================================================
   HEADER
   ============================================================ */
header {
  background: rgba(29, 53, 87, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: sticky; top: 0; z-index: 100;
}
.header-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 12px 16px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 8px; }
.logo-text { font-family: 'Lexend', sans-serif; font-weight: 800; color: #fff; font-size: 20px; letter-spacing: -0.5px; }
.logo-text span { color: #f87171; }
header nav { display: flex; align-items: center; gap: 24px; }
header nav a { color: rgba(255,255,255,0.8); font-size: 14px; font-weight: 500; font-family: 'Inter', sans-serif; transition: color 0.2s; }
header nav a:hover { color: #fff; }
.mobile-menu-btn { display: none; background: none; border: none; cursor: pointer; color: rgba(255,255,255,0.8); padding: 4px; }
#mobile-nav { display: none; background: var(--navy-dark); border-top: 1px solid rgba(255,255,255,0.1); }
#mobile-nav.open { display: block; }
#mobile-nav a { display: block; color: rgba(255,255,255,0.8); font-size: 14px; font-weight: 500; padding: 10px 16px; }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container { max-width: 1280px; margin: 0 auto; padding: 0 16px; }
.section { padding: 40px 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; }
.grid-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1 { font-family: 'Lexend', sans-serif; font-weight: 800; font-size: clamp(28px, 4vw, 48px); color: var(--navy); line-height: 1.15; margin-bottom: 16px; }
h1 .accent { color: var(--vitred); }
h2 { font-family: 'Lexend', sans-serif; font-weight: 700; font-size: clamp(20px, 2.5vw, 28px); color: var(--navy); margin-bottom: 16px; }
h3 { font-family: 'Lexend', sans-serif; font-weight: 600; font-size: 18px; color: var(--navy); margin-bottom: 12px; }
p { font-family: 'Inter', sans-serif; color: var(--slate-600); line-height: 1.75; margin-bottom: 16px; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 600; }

/* ============================================================
   BADGES & LABELS
   ============================================================ */
.update-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, var(--navy) 0%, #2d4f7f 100%);
  color: #fff; border-radius: 20px; padding: 5px 14px;
  font-size: 12px; font-weight: 600; font-family: 'Lexend', sans-serif;
  letter-spacing: 0.3px; margin-bottom: 16px;
}
.verified-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: #f0fdf4; border: 1px solid #86efac;
  color: #16a34a; border-radius: 20px; padding: 3px 10px;
  font-size: 12px; font-weight: 600; font-family: 'Lexend', sans-serif;
}
.label-xs {
  font-family: 'Lexend', sans-serif; font-size: 11px; font-weight: 600;
  color: var(--slate-600); text-transform: uppercase; letter-spacing: 0.06em;
  display: block; margin-bottom: 6px;
}

/* ============================================================
   CARDS
   ============================================================ */
.calc-card {
  background: rgba(255,255,255,0.97);
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: 0 20px 60px rgba(0,0,0,0.1), 0 4px 20px rgba(0,0,0,0.06);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 28px 32px;
}
.sidebar-card {
  background: #fff;
  border: 1px solid var(--slate-200);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  border-radius: 16px;
  padding: 20px;
}
.white-card {
  background: #fff;
  border: 1px solid var(--slate-100);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  border-radius: 12px;
  padding: 16px;
}
.author-card {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid var(--slate-200);
  border-radius: 16px;
  padding: 24px;
  display: flex; align-items: flex-start; gap: 16px;
}
.author-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), #3b6cc1);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; flex-shrink: 0;
}
.author-name { font-family: 'Lexend', sans-serif; font-weight: 700; color: var(--navy); font-size: 15px; }
.author-title { font-family: 'Inter', sans-serif; font-size: 11px; color: var(--vitred); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }

/* ============================================================
   STAT ROW
   ============================================================ */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 24px; }
.stat-box {
  text-align: center; padding: 12px;
  background: #fff; border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  border: 1px solid var(--slate-100);
}
.stat-val { font-family: 'Lexend', sans-serif; font-weight: 700; font-size: 22px; color: var(--navy); }
.stat-val.red { color: var(--vitred); }
.stat-label { font-family: 'Inter', sans-serif; font-size: 11px; color: var(--slate-500); margin-top: 2px; }

/* ============================================================
   NOTICE / ALERT BOXES
   ============================================================ */
.notice { border-radius: 12px; padding: 14px 16px; margin-bottom: 20px; display: flex; align-items: flex-start; gap: 10px; }
.notice svg { flex-shrink: 0; margin-top: 1px; }
.notice-blue { background: #eff6ff; border: 1px solid #bfdbfe; }
.notice-blue .notice-title { font-family: 'Lexend', sans-serif; font-weight: 600; color: #1e40af; font-size: 12px; margin-bottom: 4px; }
.notice-blue p { color: #1d4ed8; font-size: 12px; line-height: 1.6; }
.notice-amber { background: #fffbeb; border: 1px solid #fde68a; }
.notice-amber p { color: #92400e; font-size: 12px; line-height: 1.6; }
.notice-slate { background: var(--slate-50); border: 1px solid var(--slate-200); }
.notice-slate p { color: var(--slate-500); font-size: 12px; line-height: 1.6; }
.notice-orange { background: #fff7ed; border: 1px solid #fed7aa; }
.notice-orange p { color: #9a3412; font-size: 12px; line-height: 1.6; }
.notice-indigo { background: #eef2ff; border: 1px solid #c7d2fe; }
.notice-indigo .notice-title { font-family: 'Lexend', sans-serif; font-weight: 600; color: #3730a3; font-size: 13px; margin-bottom: 4px; }
.notice-indigo p { color: #4338ca; font-size: 12px; line-height: 1.6; }
.disclaimer { font-family: 'Inter', sans-serif; font-size: 11px; color: var(--slate-400); line-height: 1.6; max-width: 400px; }

/* ============================================================
   FORM INPUTS
   ============================================================ */
.input-wrapper { position: relative; }
.input-icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: var(--slate-400); pointer-events: none;
}
.calc-input {
  font-family: 'Lexend', sans-serif;
  border: 1.5px solid var(--slate-200); border-radius: 10px;
  padding: 10px 14px 10px 38px; width: 100%; font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: var(--slate-50); color: #1e293b; outline: none;
}
.calc-input:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(29,53,87,0.1); background: #fff; }
.calc-select {
  font-family: 'Lexend', sans-serif;
  border: 1.5px solid var(--slate-200); border-radius: 10px;
  padding: 10px 36px 10px 14px; width: 100%; font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: var(--slate-50); color: #1e293b; outline: none;
  cursor: pointer; appearance: none; -webkit-appearance: none;
}
.calc-select:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(29,53,87,0.1); background: #fff; }
.select-wrapper { position: relative; }
.select-arrow {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: var(--slate-400); pointer-events: none;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-col-2 { grid-column: 1 / -1; }

/* Toggle buttons */
.toggle-group { display: flex; gap: 8px; }
.toggle-btn {
  flex: 1; padding: 10px; border-radius: 10px;
  border: 1.5px solid var(--slate-200); background: var(--slate-50);
  font-family: 'Lexend', sans-serif; font-size: 13px; font-weight: 500;
  cursor: pointer; transition: all 0.2s; color: var(--slate-500);
}
.toggle-btn.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.toggle-btn:hover:not(.active) { border-color: var(--navy); color: var(--navy); }

/* Race warning */
#race-warning {
  display: none; margin-top: 8px; font-size: 12px;
  font-family: 'Inter', sans-serif; color: #c2410c;
  background: #fff7ed; border: 1px solid #fed7aa;
  border-radius: 8px; padding: 8px 10px; line-height: 1.5;
}
#race-warning.show { display: block; }

/* ============================================================
   CALCULATE BUTTON
   ============================================================ */
.calc-btn {
  background: linear-gradient(135deg, var(--vitred) 0%, var(--vitred-dark) 100%);
  color: #fff; border: none; border-radius: 12px;
  padding: 14px 28px; font-family: 'Lexend', sans-serif;
  font-size: 16px; font-weight: 700; cursor: pointer; width: 100%;
  letter-spacing: 0.3px; position: relative; overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 8px 24px rgba(230,57,70,0.35);
}
.calc-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(230,57,70,0.45); }
.calc-btn:active { transform: translateY(0); }
@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.08); opacity: 0; }
}
.calc-btn::after {
  content: ''; position: absolute; inset: 0;
  border-radius: 12px; border: 2px solid rgba(255,255,255,0.4);
  animation: pulse-ring 1.8s ease-out infinite;
}

/* ============================================================
   RESULT AREA
   ============================================================ */
#result-area { display: none; margin-top: 24px; }
#result-area.show { display: block; animation: fadeInUp 0.5s ease forwards; }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Gauge SVG needle */
#gauge-needle {
  transform-origin: 100px 100px;
  transition: transform 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.gauge-wrap { display: flex; justify-content: center; margin-bottom: 16px; }

/* Score display */
.score-row { display: flex; justify-content: center; align-items: center; gap: 24px; margin-bottom: 8px; }
.score-col { text-align: center; }
.score-divider { width: 1px; height: 50px; background: var(--slate-200); }
.score-num { font-family: 'Lexend', sans-serif; font-weight: 900; font-size: 48px; line-height: 1; margin-bottom: 4px; color: var(--navy); }
.score-sublabel { font-family: 'Inter', sans-serif; font-size: 11px; color: var(--slate-500); }
.risk-badge { display: inline-block; padding: 6px 16px; border-radius: 999px; font-family: 'Lexend', sans-serif; font-weight: 700; font-size: 13px; border: 1.5px solid; margin-bottom: 12px; }
.risk-low    { color: #16a34a; background: #dcfce7; border-color: #86efac; }
.risk-borderline { color: #ca8a04; background: #fef9c3; border-color: #fde047; }
.risk-intermediate { color: #ea580c; background: #ffedd5; border-color: #fdba74; }
.risk-high   { color: #dc2626; background: #fee2e2; border-color: #fca5a5; }
#risk-interpretation { background: var(--slate-50); border-radius: 12px; padding: 14px 16px; font-family: 'Inter', sans-serif; font-size: 13px; color: var(--slate-700); line-height: 1.7; margin-bottom: 12px; }
.result-center { text-align: center; }

/* ============================================================
   THERAPY SIMULATOR
   ============================================================ */
#therapy-sim, #risk-enhancers, #save-compare-area, #cac-panel { display: none; }
#therapy-sim.show, #risk-enhancers.show, #save-compare-area.show, #cac-panel.show { display: block; }
.panel-box { border: 1px solid var(--slate-200); border-radius: 12px; overflow: hidden; margin-bottom: 12px; }
.panel-header { padding: 10px 16px; display: flex; align-items: center; gap: 8px; }
.panel-header-navy { background: var(--navy); }
.panel-header-navy span { font-family: 'Lexend', sans-serif; font-weight: 600; color: #fff; font-size: 13px; }
.panel-header-orange { background: #fff7ed; border-bottom: 1px solid #fed7aa; }
.panel-header-orange span { font-family: 'Lexend', sans-serif; font-weight: 600; color: #9a3412; font-size: 13px; }
.panel-body { padding: 16px; background: #fff; }
.panel-body p { font-family: 'Inter', sans-serif; font-size: 12px; color: var(--slate-500); margin-bottom: 12px; }
.therapy-item { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; cursor: pointer; }
.therapy-item input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--navy); border-radius: 4px; cursor: pointer; }
.therapy-item label { font-family: 'Inter', sans-serif; font-size: 13px; color: var(--slate-700); flex: 1; cursor: pointer; }
.therapy-item .reduction { font-family: 'Lexend', sans-serif; font-weight: 700; font-size: 11px; color: #16a34a; margin-left: auto; }
#therapy-result { display: none; background: #f0fdf4; border: 1px solid #86efac; border-radius: 10px; padding: 12px; text-align: center; margin-top: 12px; }
#therapy-result.show { display: block; }
#therapy-result .result-label { font-family: 'Inter', sans-serif; font-size: 11px; color: #166534; margin-bottom: 4px; }
#therapy-score { font-family: 'Lexend', sans-serif; font-weight: 900; font-size: 32px; color: #16a34a; }
.sim-btn {
  margin-top: 12px; width: 100%; padding: 9px; border-radius: 10px;
  background: var(--navy); color: #fff; border: none;
  font-family: 'Lexend', sans-serif; font-weight: 600; font-size: 13px;
  cursor: pointer; transition: background 0.2s;
}
.sim-btn:hover { background: var(--navy-dark); }
.enhancer-item { display: flex; align-items: flex-start; gap: 8px; font-family: 'Inter', sans-serif; font-size: 12px; color: var(--slate-700); margin-bottom: 8px; }
.enhancer-item::before { content: '▸'; color: #fb923c; flex-shrink: 0; }

/* ============================================================
   SAVE & COMPARE
   ============================================================ */
.compare-grid { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.compare-col { text-align: center; }
.compare-label { font-family: 'Inter', sans-serif; font-size: 11px; color: var(--slate-400); margin-bottom: 4px; }
.compare-val { font-family: 'Lexend', sans-serif; font-weight: 700; font-size: 28px; }
.compare-note { font-family: 'Inter', sans-serif; font-size: 11px; color: var(--slate-500); text-align: center; }

/* ============================================================
   SHARE BUTTONS
   ============================================================ */
.share-row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 16px; }
.share-btn {
  display: flex; align-items: center; gap: 6px;
  font-family: 'Lexend', sans-serif; font-size: 12px; font-weight: 600;
  padding: 8px 12px; border-radius: 10px; border: none; cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s; color: #fff;
}
.share-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.15); }
.share-btn.whatsapp { background: #25D366; }
.share-btn.facebook { background: #1877f2; }
.share-btn.twitter { background: #0f0f0f; }
.share-btn.print { background: #fff; color: var(--navy); border: 1px solid var(--slate-200); }

/* ============================================================
   RISK TABLE
   ============================================================ */
.risk-table { width: 100%; border-radius: 12px; overflow: hidden; border: 1px solid var(--slate-200); margin-bottom: 24px; border-collapse: collapse; }
.risk-table thead tr { background: var(--navy); }
.risk-table th { text-align: left; padding: 12px 16px; font-family: 'Lexend', sans-serif; font-weight: 600; font-size: 13px; color: #fff; }
.risk-table td { padding: 12px 16px; font-family: 'Inter', sans-serif; font-size: 13px; color: var(--slate-600); border-bottom: 1px solid var(--slate-100); }
.risk-table tbody tr:nth-child(even) { background: var(--slate-50); }
.risk-table tbody tr:last-child td { border-bottom: none; }
.td-low { font-weight: 600; color: #16a34a; }
.td-borderline { font-weight: 600; color: #ca8a04; }
.td-intermediate { font-weight: 600; color: #ea580c; }
.td-high { font-weight: 600; color: #dc2626; }

/* ============================================================
   EXPERT / CTA BOXES
   ============================================================ */
.expert-box {
  border-left: 4px solid var(--vitred);
  background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
  border-radius: 0 12px 12px 0;
  padding: 20px; display: flex; gap: 12px;
}
.expert-icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: #fee2e2; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.expert-title { font-family: 'Lexend', sans-serif; font-weight: 700; color: var(--navy); font-size: 13px; margin-bottom: 4px; }
.expert-box p { font-size: 13px; }
.cta-box {
  background: linear-gradient(135deg, #fff5f5 0%, #fef2f2 100%);
  border: 1px solid #fecaca; border-radius: 12px; padding: 24px;
  display: flex; gap: 16px;
}
.cta-icon { width: 40px; height: 40px; border-radius: 50%; background: #fecaca; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.cta-title { font-family: 'Lexend', sans-serif; font-weight: 700; color: var(--navy); margin-bottom: 12px; font-size: 14px; }
.cta-list { list-style: none; }
.cta-list li { font-family: 'Inter', sans-serif; font-size: 13px; color: var(--slate-600); padding: 4px 0; }

/* ============================================================
   CODE BLOCK
   ============================================================ */
.code-block { background: #1e293b; border-radius: 12px; padding: 20px; margin-bottom: 20px; }
.code-label { color: #94a3b8; font-size: 11px; font-family: 'Inter', sans-serif; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.code-line { font-family: 'Courier New', monospace; font-size: 12px; line-height: 1.8; }
.code-comment { color: #64748b; }
.code-green { color: #4ade80; }
.code-white { color: #e2e8f0; }
.code-yellow { color: #facc15; }

/* ============================================================
   KEY FACTORS CARDS
   ============================================================ */
.factor-card { background: #fff; border-radius: 12px; padding: 16px; border: 1px solid var(--slate-100); box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.factor-icon { font-size: 24px; margin-bottom: 8px; }
.factor-title { font-family: 'Lexend', sans-serif; font-weight: 600; color: var(--navy); font-size: 14px; margin-bottom: 6px; }
.factor-desc { font-family: 'Inter', sans-serif; font-size: 13px; color: var(--slate-600); line-height: 1.6; }

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.faq-item { background: #fff; border: 1px solid var(--slate-200); border-radius: 12px; overflow: hidden; margin-bottom: 12px; }
details summary { list-style: none; cursor: pointer; }
details summary::-webkit-details-marker { display: none; }
.faq-summary {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px; font-family: 'Lexend', sans-serif; font-weight: 600; color: var(--navy); font-size: 14px;
  user-select: none;
}
.faq-icon { color: var(--vitred); font-size: 20px; font-weight: 700; transition: transform 0.3s ease; }
details[open] .faq-icon { transform: rotate(45deg); }
details[open] .faq-summary { color: var(--navy); }
.faq-body { padding: 0 16px 16px; font-family: 'Inter', sans-serif; font-size: 13px; color: var(--slate-600); line-height: 1.7; border-top: 1px solid var(--slate-100); padding-top: 12px; }

/* ============================================================
   KEY TAKEAWAYS
   ============================================================ */
.takeaways-box { background: var(--navy); border-radius: 16px; padding: 24px; color: #fff; }
.takeaways-box h2 { color: #fff; font-size: 20px; }
.takeaway-item { display: flex; align-items: flex-start; gap: 12px; font-family: 'Inter', sans-serif; font-size: 13px; color: rgba(255,255,255,0.8); padding: 8px 0; }
.ti-green { color: #4ade80; font-size: 16px; line-height: 1.3; }
.ti-yellow { color: #facc15; font-size: 16px; line-height: 1.3; }
.ti-red { color: #f87171; font-size: 16px; line-height: 1.3; }
.ti-blue { color: #60a5fa; font-size: 16px; line-height: 1.3; }
.ti-purple { color: #c084fc; font-size: 16px; line-height: 1.3; }

/* ============================================================
   SIDEBAR
   ============================================================ */
.sticky-sidebar { position: sticky; top: 80px; }
.toc-link { display: block; font-family: 'Inter', sans-serif; font-size: 13px; color: var(--slate-600); padding: 4px 0; transition: all 0.2s; }
.toc-link:hover, .toc-link.active { color: var(--vitred); padding-left: 4px; }
.toc-link.sub { font-size: 11px; color: var(--slate-500); padding-left: 12px; }
.toc-link.sub:hover { padding-left: 16px; }
.toc-title { font-family: 'Lexend', sans-serif; font-weight: 700; color: var(--navy); font-size: 14px; margin-bottom: 12px; display: flex; align-items: center; gap: 6px; }
.sidebar-share-title { font-family: 'Lexend', sans-serif; font-weight: 700; color: var(--navy); font-size: 13px; margin-bottom: 4px; }
.sidebar-share-desc { font-family: 'Inter', sans-serif; font-size: 12px; color: var(--slate-500); margin-bottom: 16px; }
.sidebar-share-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sidebar-share-btn {
  padding: 10px; border-radius: 10px; border: none; cursor: pointer;
  font-family: 'Lexend', sans-serif; font-size: 12px; font-weight: 600; color: #fff;
  transition: transform 0.2s, box-shadow 0.2s;
}
.sidebar-share-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.12); }
.ssb-wa { background: #25D366; }
.ssb-fb { background: #1877f2; }
.ssb-tw { background: #0f0f0f; }
.ssb-em { background: #fff; color: var(--navy); border: 1px solid var(--slate-200); }
.health-item { display: flex; align-items: flex-start; gap: 12px; padding: 8px 0; text-decoration: none; }
.health-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.hi-red { background: #fee2e2; }
.hi-blue { background: #dbeafe; }
.hi-green { background: #dcfce7; }
.hi-yellow { background: #fef9c3; }
.health-title { font-family: 'Lexend', sans-serif; font-weight: 600; color: var(--navy); font-size: 12px; transition: color 0.2s; }
.health-item:hover .health-title { color: var(--vitred); }
.health-sub { font-family: 'Inter', sans-serif; font-size: 11px; color: var(--slate-400); margin-top: 2px; }
.authority-title { font-family: 'Lexend', sans-serif; font-weight: 700; color: var(--navy); font-size: 13px; margin-bottom: 12px; }
.authority-link { display: flex; align-items: center; gap: 8px; font-family: 'Inter', sans-serif; font-size: 12px; color: var(--slate-600); padding: 5px 0; transition: color 0.2s; }
.authority-link:hover { color: var(--vitred); }
.sidebar-section-title { font-family: 'Lexend', sans-serif; font-weight: 700; color: var(--navy); font-size: 13px; margin-bottom: 10px; }

/* ============================================================
   FOOTER
   ============================================================ */
footer { background: var(--navy); padding: 40px 16px; }
.footer-inner { max-width: 1280px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer-brand p { font-family: 'Inter', sans-serif; color: rgba(255,255,255,0.6); font-size: 13px; line-height: 1.6; margin-top: 8px; }
.footer-col-title { font-family: 'Lexend', sans-serif; font-weight: 600; color: #fff; font-size: 13px; margin-bottom: 12px; }
.footer-col a { display: block; font-family: 'Inter', sans-serif; color: rgba(255,255,255,0.6); font-size: 13px; padding: 4px 0; transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-social { display: flex; gap: 10px; }
.social-btn { width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.social-btn:hover { background: rgba(255,255,255,0.2); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; text-align: center; }
.footer-bottom p { font-family: 'Inter', sans-serif; color: rgba(255,255,255,0.4); font-size: 12px; }

/* ============================================================
   CONTENT SECTION SCROLL MARGIN
   ============================================================ */
.content-section { scroll-margin-top: 80px; margin-bottom: 48px; }

/* ============================================================
   UTILITY
   ============================================================ */
.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.text-link { color: var(--vitred); font-weight: 500; }
.text-link:hover { text-decoration: underline; }
.divider { width: 1px; background: var(--slate-200); margin: 0 4px; }
.space-y > * + * { margin-top: 8px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .sticky-sidebar { position: static; }
}

@media (max-width: 768px) {
  header nav { display: none; }
  .mobile-menu-btn { display: block; }
  .calc-card { padding: 20px 16px; }
  .grid-cards { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-col-2 { grid-column: 1; }
  .score-num { font-size: 36px; }
  .share-row { gap: 6px; }
  .cta-box { flex-direction: column; }
  .expert-box { flex-direction: column; }
}

@media (max-width: 480px) {
  h1 { font-size: 26px; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .stat-box:last-child { grid-column: 1 / -1; }
  .sidebar-share-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
  header, footer, .share-row, .sidebar-card, #therapy-sim,
  #risk-enhancers, #save-compare-area, .calc-btn, .notice-blue { display: none !important; }
  body { background: #fff; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .calc-card { box-shadow: none; border: 1px solid #ccc; }
}