/* MedPathGuide.com - Healthcare Information & Education Site */
:root {
  --primary: #1a5276;
  --primary-dark: #0e3d5c;
  --primary-light: #2980b9;
  --accent: #27ae60;
  --accent-dark: #1e8449;
  --accent-light: #2ecc71;
  --warning: #e67e22;
  --danger: #c0392b;
  --text: #2c3e50;
  --text-light: #6c757d;
  --text-muted: #adb5bd;
  --bg: #ffffff;
  --bg-soft: #f8f9fa;
  --bg-alt: #eef6fb;
  --border: #dee2e6;
  --border-light: #e9ecef;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-w: 1200px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); font-size: 16px; line-height: 1.7; color: var(--text); background: var(--bg); min-height: 100vh; display: flex; flex-direction: column; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-light); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary); }
h1,h2,h3,h4,h5 { color: var(--primary); line-height: 1.3; font-weight: 700; }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin: 2rem 0 0.75rem; }
h3 { font-size: 1.15rem; margin: 1.5rem 0 0.5rem; }
p { margin-bottom: 1rem; }
ul, ol { margin: 0 0 1rem 1.5rem; }
li { margin-bottom: 0.35rem; }
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
main { flex: 1; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* Buttons */
.btn, .btn-primary, .btn-secondary, .btn-outline, .btn-lg, .btn-sm { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-weight: 600; font-size: 0.95rem; border-radius: var(--radius); border: 2px solid transparent; cursor: pointer; transition: all 0.2s; text-decoration: none; line-height: 1.4; }
.btn-primary { background: var(--accent); color: #fff; padding: 10px 22px; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; text-decoration: none; }
.btn-secondary { background: var(--primary); color: #fff; padding: 10px 22px; border-color: var(--primary); }
.btn-secondary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; text-decoration: none; }
.btn-outline { background: transparent; color: var(--primary); padding: 10px 22px; border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; text-decoration: none; }
.btn-lg { padding: 14px 32px; font-size: 1.1rem; border-radius: var(--radius-lg); }
.btn-sm { padding: 6px 14px; font-size: 0.85rem; }
.btn-ghost { background: transparent; color: var(--text); border: none; padding: 8px 16px; }
.btn-ghost:hover { background: var(--bg-soft); color: var(--primary); }
.btn-warning { background: var(--warning); color: #fff; border-color: var(--warning); }
.btn-warning:hover { background: #d35400; border-color: #d35400; color: #fff; }

/* Badge */
.badge { display: inline-block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; padding: 3px 10px; border-radius: 20px; }
.badge-primary { background: var(--primary); color: #fff; }
.badge-accent { background: var(--accent); color: #fff; }
.badge-warning { background: var(--warning); color: #fff; }
.badge-outline { background: transparent; border: 1px solid var(--primary); color: var(--primary); }

/* Cards */
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); transition: transform 0.2s, box-shadow 0.2s; }
.card:hover { box-shadow: var(--shadow-md); }
.card-grid { display: grid; gap: 20px; }
.card-grid-2 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card-grid-3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.card-grid-4 { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }

/* ===== HEADER / NAV ===== */
.site-header { position: sticky; top: 0; z-index: 1000; background: #fff; border-bottom: 1px solid var(--border); }
.header-top { background: var(--primary-dark); color: #fff; font-size: 0.8rem; padding: 6px 0; }
.header-top .container { display: flex; justify-content: space-between; align-items: center; }
.header-top a { color: rgba(255,255,255,0.8); }
.header-top a:hover { color: #fff; }
.navbar { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 8px; font-size: 1.3rem; font-weight: 800; color: var(--primary); text-decoration: none; }
.logo:hover { color: var(--primary); text-decoration: none; }
.logo-icon { width: 36px; height: 36px; background: var(--primary); color: #fff; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1rem; font-weight: 800; }
.nav-links { list-style: none; display: flex; gap: 4px; align-items: center; }
.nav-links a { color: var(--text); font-weight: 500; padding: 8px 14px; border-radius: var(--radius); display: block; transition: background 0.2s, color 0.2s; font-size: 0.92rem; }
.nav-links a:hover, .nav-links a.active { background: var(--bg-soft); color: var(--primary); text-decoration: none; }
.nav-links .has-dropdown { position: relative; }
.nav-links .dropdown { display: none; position: absolute; top: 100%; left: 0; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); min-width: 220px; padding: 8px 0; z-index: 100; }
.nav-links .has-dropdown:hover .dropdown { display: block; }
.nav-links .dropdown a { padding: 8px 16px; font-size: 0.88rem; border-radius: 0; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: 0.25s; }
.header-cta { display: flex; gap: 8px; align-items: center; }

/* ===== HERO ===== */
.hero { background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%); color: #fff; padding: 72px 20px 64px; text-align: center; }
.hero h1 { color: #fff; margin-bottom: 16px; max-width: 800px; margin-left: auto; margin-right: auto; }
.hero .subtitle { color: rgba(255,255,255,0.85); font-size: 1.15rem; max-width: 700px; margin: 0 auto 28px; }
.hero-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 32px; }
.hero-badge { background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2); color: #fff; font-size: 0.85rem; font-weight: 600; padding: 6px 16px; border-radius: 40px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 24px; }

/* Search Bar */
.search-bar { max-width: 600px; margin: 28px auto 0; position: relative; }
.search-bar input { width: 100%; padding: 16px 56px 16px 20px; border: 2px solid rgba(255,255,255,0.3); border-radius: 50px; background: rgba(255,255,255,0.15); color: #fff; font-size: 1rem; backdrop-filter: blur(8px); }
.search-bar input::placeholder { color: rgba(255,255,255,0.7); }
.search-bar input:focus { outline: none; border-color: #fff; background: rgba(255,255,255,0.2); }
.search-bar button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: var(--accent); border: none; color: #fff; width: 42px; height: 42px; border-radius: 50%; cursor: pointer; font-size: 1.1rem; }

/* ===== QUICK LINKS ===== */
.quick-links { background: #fff; padding: 24px 0; border-bottom: 1px solid var(--border); }
.quick-links-inner { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.quick-link { display: inline-flex; align-items: center; gap: 6px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 40px; padding: 8px 18px; font-size: 0.88rem; font-weight: 500; color: var(--text); transition: all 0.2s; }
.quick-link:hover { background: var(--bg-alt); border-color: var(--primary-light); color: var(--primary); text-decoration: none; }

/* ===== SECTION UTILITIES ===== */
.section { padding: 56px 0; }
.section-sm { padding: 32px 0; }
.section-bg { background: var(--bg-soft); }
.section-alt { background: var(--bg-alt); }
.section-header { text-align: center; margin-bottom: 36px; }
.section-header h2 { margin-bottom: 8px; }
.section-header p { color: var(--text-light); max-width: 700px; margin: 0 auto; }

/* ===== MEDICATION CATEGORY CARDS ===== */
.category-card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 28px 20px; }
.category-icon { width: 60px; height: 60px; border-radius: var(--radius-lg); background: var(--bg-alt); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; margin-bottom: 14px; }
.category-card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.category-card p { color: var(--text-light); font-size: 0.88rem; margin: 0 0 12px; }
.category-card .card-link { font-weight: 600; font-size: 0.88rem; }

/* ===== MEDICATION INFO CARD ===== */
.med-card { display: flex; flex-direction: column; }
.med-card .med-header { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.med-card .med-icon { width: 48px; height: 48px; border-radius: var(--radius); background: var(--bg-alt); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.med-card h3 { margin: 0; font-size: 1.05rem; }
.med-card .med-generic { color: var(--text-light); font-size: 0.85rem; }
.med-card p { color: var(--text-light); font-size: 0.92rem; flex: 1; }
.med-card .med-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 12px; }

/* ===== BLOG CARD ===== */
.blog-card { display: flex; flex-direction: column; }
.blog-card .blog-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 10px; font-size: 0.82rem; color: var(--text-light); }
.blog-card .blog-meta span { display: inline-flex; align-items: center; gap: 4px; }
.blog-card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.blog-card h3 a { color: var(--primary); }
.blog-card p { color: var(--text-light); font-size: 0.92rem; flex: 1; }
.blog-card .read-more { font-weight: 600; font-size: 0.88rem; }
.blog-card.featured { border: 2px solid var(--accent); }

/* ===== ARTICLE ===== */
.article { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 48px); box-shadow: var(--shadow); margin-bottom: 30px; }
.article-meta { color: var(--text-light); font-size: 0.85rem; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 16px; }
.article-meta span { display: inline-flex; align-items: center; gap: 4px; }
.article h2 { border-left: 4px solid var(--accent); padding-left: 14px; }
.article blockquote { border-left: 4px solid var(--primary-light); background: var(--bg-soft); padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0; margin: 18px 0; }
.article blockquote p { margin: 0; font-style: italic; }
.article .disclaimer-box { background: #fff3cd; border: 1px solid #ffc107; border-radius: var(--radius); padding: 16px 20px; margin: 24px 0; }
.article .disclaimer-box strong { color: #856404; }
.article .covers-box { background: var(--bg-alt); border: 1px solid var(--primary-light); border-radius: var(--radius); padding: 16px 20px; margin: 20px 0; }
.article .source-list { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; margin: 20px 0; }
.article .source-list h3 { margin-top: 0; font-size: 1rem; }
.article .source-list ul { margin-bottom: 0; }
.article .source-list a { font-size: 0.88rem; word-break: break-all; }

/* TOC */
.toc { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; margin: 20px 0; }
.toc h3 { margin: 0 0 10px; font-size: 1rem; }
.toc ul { margin: 0; list-style: none; }
.toc li { margin-bottom: 6px; }
.toc a { font-weight: 600; font-size: 0.92rem; }

/* ===== PHARMACY SAFETY MODULE ===== */
.safety-module { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow); }
.safety-module h2 { margin-top: 0; }
.safety-checklist { list-style: none; margin: 0; padding: 0; }
.safety-checklist li { padding: 10px 0; border-bottom: 1px solid var(--border-light); display: flex; align-items: flex-start; gap: 10px; font-size: 0.95rem; }
.safety-checklist li:last-child { border-bottom: none; }
.safety-checklist .check { color: var(--accent); font-size: 1.2rem; flex-shrink: 0; }

/* ===== COST MODULE ===== */
.cost-module { background: var(--bg-alt); border: 1px solid var(--primary-light); border-radius: var(--radius-lg); padding: 32px; }
.cost-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-top: 20px; }
.cost-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; text-align: center; }
.cost-item .cost-label { font-size: 0.82rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; }
.cost-item .cost-value { font-size: 1.4rem; font-weight: 800; color: var(--primary); margin: 6px 0; }

/* ===== REDIRECT MODULE ===== */
.redirect-module { background: #fff; border: 2px solid var(--warning); border-radius: var(--radius-lg); padding: 32px; }
.redirect-module h2 { color: var(--warning); margin-top: 0; }
.redirect-module .destination { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin: 16px 0; }
.redirect-module .destination strong { color: var(--primary); }
.redirect-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: #fff; font-weight: 700; font-size: 1.05rem; padding: 14px 32px; border-radius: var(--radius); border: none; cursor: pointer; text-decoration: none; transition: background 0.2s; }
.redirect-btn:hover { background: var(--accent-dark); color: #fff; text-decoration: none; }
.redirect-notice { background: #fff3cd; border: 1px solid #ffc107; border-radius: var(--radius); padding: 14px 18px; font-size: 0.88rem; color: #856404; margin: 16px 0; }

/* ===== FAQ ===== */
.faq-section { margin: 20px 0; }
.faq-item { background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 12px; box-shadow: var(--shadow); }
.faq-item h3 { margin: 0 0 6px; font-size: 1rem; color: var(--primary); cursor: pointer; }
.faq-item p { margin: 0; color: var(--text-light); font-size: 0.95rem; }

/* ===== TABLE ===== */
.table-wrap { overflow-x: auto; margin: 18px 0; }
table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); font-size: 0.92rem; }
th { background: var(--primary); color: #fff; text-align: left; padding: 12px 14px; font-weight: 600; }
td { padding: 12px 14px; border-top: 1px solid var(--border); }
tr:nth-child(even) td { background: var(--bg-soft); }

/* ===== FOOTER ===== */
.site-footer { background: var(--primary-dark); color: rgba(255,255,255,0.8); padding: 56px 0 30px; margin-top: auto; font-size: 0.92rem; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 40px; margin-bottom: 40px; }
.footer-brand p { color: rgba(255,255,255,0.6); margin: 12px 0 0; font-size: 0.88rem; }
.footer-col h3 { color: #fff; font-size: 1rem; margin: 0 0 14px; font-weight: 700; }
.footer-col ul { list-style: none; margin: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: rgba(255,255,255,0.6); font-size: 0.88rem; transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.footer-bottom p { margin: 0; color: rgba(255,255,255,0.5); font-size: 0.82rem; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-legal a { color: rgba(255,255,255,0.5); font-size: 0.82rem; }
.footer-legal a:hover { color: #fff; }
.footer-disclaimer { background: rgba(255,255,255,0.05); border-radius: var(--radius); padding: 16px 20px; margin-top: 24px; font-size: 0.82rem; color: rgba(255,255,255,0.5); }

/* ===== BREADCRUMBS ===== */
.breadcrumbs { padding: 12px 0; font-size: 0.85rem; color: var(--text-light); }
.breadcrumbs a { color: var(--primary-light); }
.breadcrumbs .sep { margin: 0 6px; }

/* ===== CTA SECTION ===== */
.cta-section { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #fff; text-align: center; border-radius: var(--radius-lg); padding: 44px 32px; margin: 36px 0; }
.cta-section h2 { color: #fff; margin: 0 0 10px; }
.cta-section p { color: rgba(255,255,255,0.85); margin: 0 0 22px; }
.cta-section .btn-lg { background: #fff; color: var(--accent-dark); }
.cta-section .btn-lg:hover { background: #f0f0f0; color: var(--accent-dark); text-decoration: none; }

/* ===== 404 ===== */
.error-404 { text-align: center; padding: 80px 20px; }
.error-404 h1 { font-size: 5rem; margin-bottom: 0.5rem; }
.error-404 p { color: var(--text-light); margin-bottom: 24px; font-size: 1.1rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 10px 20px 20px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 10px; border-bottom: 1px solid var(--border-light); }
  .nav-links .dropdown { position: static; box-shadow: none; border: none; padding: 0 0 0 16px; }
  .nav-links .has-dropdown:hover .dropdown { display: block; }
  .header-cta { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .hero { padding: 48px 16px 44px; }
  .section { padding: 36px 0; }
  .card-grid-2, .card-grid-3, .card-grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ===== BLOG HUB ===== */
.blog-filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 32px; }
.blog-filter-btn { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 40px; padding: 8px 18px; font-size: 0.88rem; font-weight: 500; color: var(--text); cursor: pointer; transition: all 0.2s; }
.blog-filter-btn:hover, .blog-filter-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); text-decoration: none; }
.blog-card .category-badge { display: inline-block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; padding: 3px 10px; border-radius: 20px; background: var(--bg-alt); color: var(--primary); margin-bottom: 10px; }

/* Article page */
.breadcrumbs { padding: 14px 0; font-size: 0.85rem; color: var(--text-light); border-bottom: 1px solid var(--border-light); }
.breadcrumbs a { color: var(--primary-light); }
.breadcrumbs .sep { margin: 0 6px; color: var(--text-muted); }
.article-header { padding: 40px 0 0; }
.article-header h1 { max-width: 800px; }
.article-author-block { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; margin: 16px 0 24px; font-size: 0.9rem; color: var(--text-light); }
.article-author-block .author-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.1rem; flex-shrink: 0; }
.article-author-block .author-info { display: flex; flex-direction: column; gap: 2px; }
.article-author-block .author-name { font-weight: 600; color: var(--text); font-size: 0.95rem; }
.article-author-block .reviewer { font-size: 0.82rem; color: var(--text-muted); }
.summary-box { background: var(--bg-alt); border: 1px solid var(--primary-light); border-radius: var(--radius-lg); padding: 20px 24px; margin: 24px 0; font-size: 0.95rem; line-height: 1.7; }
.summary-box p:last-child { margin-bottom: 0; }
.info-box { border-radius: var(--radius); padding: 18px 22px; margin: 20px 0; }
.info-box.covers { background: #eafbe7; border: 1px solid var(--accent); }
.info-box.not-covers { background: #fff8f0; border: 1px solid var(--warning); }
.info-box.clinician { background: #fdf2f2; border: 1px solid var(--danger); }
.info-box h3 { margin: 0 0 8px; font-size: 1rem; }
.info-box.covers h3 { color: var(--accent-dark); }
.info-box.not-covers h3 { color: #d35400; }
.info-box.clinician h3 { color: var(--danger); }
.info-box ul { margin: 0; padding-left: 1.2rem; }
.info-box li { font-size: 0.92rem; margin-bottom: 4px; }
.article-body h2 { border-left: 4px solid var(--accent); padding-left: 14px; }
.article-body h3 { border: none; padding: 0; }
.related-articles { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin: 16px 0; }
.related-articles .card { padding: 18px; }
.related-articles .card h4 { margin: 0 0 6px; font-size: 0.95rem; }
.related-articles .card h4 a { color: var(--primary); }
.related-articles .card p { font-size: 0.85rem; color: var(--text-light); margin: 0; }
.correction-link { text-align: center; padding: 20px; background: var(--bg-soft); border-radius: var(--radius); margin: 30px 0; font-size: 0.9rem; }
.article-disclaimer { background: #fff3cd; border: 1px solid #ffc107; border-radius: var(--radius); padding: 18px 22px; margin: 30px 0; font-size: 0.88rem; }
.article-disclaimer strong { color: #856404; }
.author-bio { display: flex; gap: 16px; align-items: flex-start; background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin: 30px 0; }
.author-bio .bio-avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.2rem; flex-shrink: 0; }
.author-bio .bio-text h4 { margin: 0 0 4px; font-size: 0.95rem; color: var(--text); }
.author-bio .bio-text p { margin: 0; font-size: 0.88rem; color: var(--text-light); }

/* ===== CTA BAR (top on desktop, bottom on mobile) ===== */
.mobile-cta-bar {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--primary);
  padding: 8px 24px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.mobile-cta-bar a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 8px 24px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.2s;
}
.mobile-cta-bar a:hover {
  background: var(--accent-dark);
  color: #fff;
  text-decoration: none;
}
.mobile-cta-bar .cta-sub {
  font-size: 0.7rem;
  font-weight: 400;
  opacity: 0.85;
  margin-left: 4px;
}
@media (min-width: 769px) {
  .mobile-cta-bar {
    top: 0;
    bottom: auto;
    padding: 6px 24px;
  }
  body { padding-top: 44px; }
}
@media (max-width: 768px) {
  .mobile-cta-bar {
    bottom: 0;
    top: auto;
    padding: 6px 12px calc(6px + env(safe-area-inset-bottom));
    border-top: 2px solid var(--accent);
    background: #fff;
  }
  .mobile-cta-bar a {
    width: 100%;
    font-size: 0.85rem;
    padding: 10px 16px;
  }
  .mobile-cta-bar .cta-sub {
    font-size: 0.65rem;
  }
  body { padding-bottom: 60px; }
}

/* ===== PRINT ===== */
@media print {
  .site-header, .site-footer, .mobile-cta-bar, .search-bar { display: none; }
  body { font-size: 12pt; }
  a { color: #000; }
  .article { border: none; box-shadow: none; }
}
