/* ─── Shared article page styles ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --blue:      #2563EB; --blue-dark: #1D4ED8; --blue-light: #EFF6FF;
  --purple:    #7C3AED; --green: #059669; --amber: #D97706;
  --gray-50:   #F9FAFB; --gray-100: #F3F4F6; --gray-200: #E5E7EB;
  --gray-400:  #9CA3AF; --gray-600: #4B5563; --gray-700: #374151;
  --gray-900:  #111827; --white: #FFFFFF;
  --radius:    12px; --shadow: 0 2px 16px rgba(0,0,0,0.07);
}
html  { font-size: 16px; scroll-behavior: smooth; }
body  { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; color: var(--gray-900); background: var(--gray-50); line-height: 1.65; }

/* Nav */
nav { background: var(--white); border-bottom: 1px solid var(--gray-200); padding: 0 40px; display: flex; align-items: center; justify-content: space-between; height: 64px; position: sticky; top: 0; z-index: 100; }
@media(max-width:600px){ nav { padding: 0 16px; } }
.nav-logo { font-weight: 900; font-size: 1rem; color: var(--blue-dark); text-decoration: none; letter-spacing: -0.01em; }
.nav-links { display: flex; align-items: center; gap: 20px; }
.nav-links a { font-size: 0.85rem; font-weight: 600; color: var(--gray-600); text-decoration: none; }
@media(max-width:480px){ .nav-links a:not(.nav-cta){ display:none; } }
.nav-cta { background: var(--blue) !important; color: white !important; padding: 8px 18px; border-radius: 8px; font-size: 0.85rem !important; }
.nav-cta:hover { background: var(--blue-dark) !important; }

/* Hero */
.article-hero { background: linear-gradient(160deg, #EFF6FF 0%, #F5F3FF 100%); padding: 56px 40px 48px; }
@media(max-width:600px){ .article-hero { padding: 36px 20px 32px; } }
.article-hero-inner { max-width: 760px; margin: 0 auto; }
.article-tag { display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--blue); background: var(--blue-light); padding: 4px 12px; border-radius: 20px; margin-bottom: 16px; }
.article-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 900; letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 16px; }
.article-hero .lead { font-size: 1.05rem; color: var(--gray-600); line-height: 1.75; max-width: 640px; margin-bottom: 20px; }
.article-meta { font-size: 0.82rem; color: var(--gray-400); }

/* Layout */
.article-layout { max-width: 1060px; margin: 0 auto; padding: 48px 32px 80px; display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: start; }
@media(max-width:860px){ .article-layout { grid-template-columns: 1fr; } .sidebar { order: -1; } }
@media(max-width:600px){ .article-layout { padding: 28px 16px 60px; } }

/* Article body */
.article-body h2 { font-size: 1.35rem; font-weight: 800; color: var(--gray-900); margin: 36px 0 12px; letter-spacing: -0.02em; }
.article-body h2:first-child { margin-top: 0; }
.article-body h3 { font-size: 1.05rem; font-weight: 700; color: var(--gray-900); margin: 24px 0 8px; }
.article-body p { color: var(--gray-600); margin-bottom: 16px; font-size: 0.97rem; line-height: 1.8; }
.article-body ul, .article-body ol { color: var(--gray-600); padding-left: 22px; margin-bottom: 16px; font-size: 0.97rem; }
.article-body li { margin-bottom: 8px; line-height: 1.7; }
.article-body strong { color: var(--gray-900); }
.article-body a { color: var(--blue); }
.article-body hr { border: none; border-top: 2px solid var(--gray-200); margin: 32px 0; }

/* Callout */
.callout { border-radius: 10px; padding: 18px 22px; margin: 24px 0; font-size: 0.93rem; line-height: 1.7; border-left: 4px solid; }
.callout-blue   { background: #EFF6FF; border-color: var(--blue);   color: #1E3A8A; }
.callout-purple { background: #F5F3FF; border-color: var(--purple); color: #3B0764; }
.callout-green  { background: #ECFDF5; border-color: var(--green);  color: #064E3B; }
.callout-amber  { background: #FFFBEB; border-color: var(--amber);  color: #78350F; }
.callout strong { color: inherit; }

/* Symptom grid */
.symptom-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0; }
@media(max-width:500px){ .symptom-grid { grid-template-columns: 1fr; } }
.symptom-card { background: var(--white); border: 1.5px solid var(--gray-200); border-radius: 10px; padding: 16px 18px; }
.symptom-card h4 { font-size: 0.88rem; font-weight: 700; color: var(--blue); margin-bottom: 6px; }
.symptom-card ul { padding-left: 16px; margin: 0; font-size: 0.85rem; color: var(--gray-600); }
.symptom-card li { margin-bottom: 4px; }

/* CTA box */
.quiz-cta { background: linear-gradient(135deg, #1E3A8A 0%, #7C3AED 100%); border-radius: var(--radius); padding: 28px 28px; margin: 36px 0; text-align: center; color: white; }
.quiz-cta h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 8px; }
.quiz-cta p  { color: rgba(255,255,255,0.8); font-size: 0.9rem; margin-bottom: 18px; }
.quiz-cta a  { display: inline-flex; background: white; color: var(--blue-dark); padding: 12px 28px; border-radius: 8px; font-size: 0.95rem; font-weight: 800; text-decoration: none; }
.quiz-cta a:hover { opacity: 0.92; }

/* Sidebar */
.sidebar { display: flex; flex-direction: column; gap: 20px; }
.sidebar-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); }
.sidebar-card h4 { font-size: 0.88rem; font-weight: 800; color: var(--gray-900); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.05em; }
.sidebar-card ul { list-style: none; padding: 0; }
.sidebar-card li { border-bottom: 1px solid var(--gray-100); padding: 8px 0; }
.sidebar-card li:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-card a { font-size: 0.87rem; color: var(--blue); text-decoration: none; font-weight: 600; line-height: 1.4; display: block; }
.sidebar-card a:hover { text-decoration: underline; }
.sidebar-cta { background: linear-gradient(135deg, var(--blue) 0%, var(--purple) 100%); border: none; text-align: center; padding: 24px; }
.sidebar-cta h4 { color: white; margin-bottom: 8px; }
.sidebar-cta p  { font-size: 0.85rem; color: rgba(255,255,255,0.8); margin-bottom: 14px; }
.sidebar-cta a  { display: block; background: white; color: var(--blue-dark); padding: 10px; border-radius: 8px; font-size: 0.88rem; font-weight: 800; text-decoration: none; }

/* Ad slot */
.ad-slot { margin: 24px 0; min-height: 90px; background: var(--gray-100); border-radius: 8px; overflow: hidden; }

/* Footer */
footer { background: var(--gray-900); color: rgba(255,255,255,0.5); padding: 28px 40px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.82rem; }
@media(max-width:600px){ footer { padding: 20px; justify-content: center; text-align: center; } }
.footer-logo { color: rgba(255,255,255,0.85); font-weight: 800; }
footer a { color: rgba(255,255,255,0.5); }
