/*
 * blog.css — the MDinteractive Health blog (MIPS-8113 follow-up).
 * The nav, phone bar and footer rules are the same as the audience pages', which
 * carry them inline; keep the two in step if either changes.
 */
:root {
  --primary: #2176c7;
  --primary-dark: #1558a0;
  --primary-light: #e8f3fc;
  --text: #1a2332;
  --text-muted: #4a5568;
  --border: #e2e8f0;
  --bg-light: #f7f9fc;
  --radius: 12px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: var(--text); background: #fff; line-height: 1.6; }

/* Phone bar + nav (as on the audience pages) */
.top-phone { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 10px; background: var(--primary-dark); color: #fff; text-align: center; padding: 10px 16px; font-size: 15px; line-height: 1.4; }
.top-phone strong { font-size: 20px; font-weight: 800; letter-spacing: 0.2px; white-space: nowrap; margin-left: 6px; }
.top-phone-call, .top-phone .phone-copy { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; margin: 0; padding: 4px 14px; border: 1px solid rgba(255,255,255,0.75); border-radius: 999px; background: transparent; color: #fff; font-family: inherit; font-size: 13px; font-weight: 600; line-height: 1.2; text-decoration: none; white-space: nowrap; cursor: pointer; }
.top-phone-call:hover, .top-phone .phone-copy:hover { background: rgba(255,255,255,0.16); }
@media (max-width: 768px) { .top-phone-call, .top-phone-call:hover { min-height: 40px; padding: 6px 20px; background: #fff; color: var(--primary-dark); border-color: #fff; font-size: 15px; font-weight: 700; } }
nav.site-nav { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.nav-inner { max-width: 1100px; margin: 0 auto; padding: 0 24px; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav-brand { display: flex; align-items: center; gap: 3px; text-decoration: none; }
.nav-logo-box { background: var(--primary); color: #fff; font-weight: 800; font-size: 18px; padding: 5px 10px; border-radius: 6px; letter-spacing: -0.5px; }
.nav-brand-text { font-size: 17px; font-weight: 600; color: var(--text); }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a { text-decoration: none; color: var(--text-muted); font-size: 14px; font-weight: 500; padding: 6px 12px; border-radius: 8px; transition: background 0.15s, color 0.15s; }
.nav-links a:hover, .nav-links a.active { background: var(--primary-light); color: var(--primary); }
.nav-cta { background: var(--primary) !important; color: #fff !important; border-radius: 8px; padding: 8px 16px !important; font-weight: 600 !important; }
.nav-cta:hover { background: var(--primary-dark) !important; }
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; }
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--border); padding: 12px 24px 16px; gap: 4px; }
  .nav-links.open { display: flex; }
  .hamburger { display: block; }
}

/* Blog header */
.blog-hero { background: linear-gradient(135deg, #071e36 0%, #0d3d6e 40%, var(--primary) 100%); color: #fff; padding: 56px 24px 48px; }
.blog-hero-inner { max-width: 820px; margin: 0 auto; }
.blog-kicker { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.85; margin-bottom: 12px; }
.blog-kicker a { color: #fff; }
.blog-hero h1 { font-size: clamp(26px, 4vw, 42px); font-weight: 800; line-height: 1.15; margin-bottom: 14px; }
.blog-hero p { font-size: clamp(16px, 2vw, 19px); opacity: 0.9; max-width: 680px; }

/* Lists */
.blog-section { padding: 48px 24px 64px; }
.blog-container { max-width: 820px; margin: 0 auto; }
.blog-section h2 { font-size: 22px; font-weight: 800; margin-bottom: 18px; }
.blog-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 16px; background: #fff; }
.blog-card h3 { font-size: 20px; font-weight: 700; line-height: 1.3; margin: 6px 0 8px; }
.blog-card h3 a { color: var(--text); text-decoration: none; }
.blog-card h3 a:hover { color: var(--primary); }
.blog-card p { color: var(--text-muted); font-size: 15px; margin-bottom: 10px; }
.blog-meta { font-size: 13px; color: var(--text-muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.blog-tag { background: var(--primary-light); color: var(--primary-dark); font-weight: 600; font-size: 12px; padding: 2px 8px; border-radius: 10px; }
.blog-read { font-weight: 600; font-size: 14px; color: var(--primary); text-decoration: none; }
.blog-empty { color: var(--text-muted); }
.blog-filter { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.blog-filter a { text-decoration: none; font-size: 14px; font-weight: 600; color: var(--text-muted); border: 1px solid var(--border); border-radius: 20px; padding: 6px 14px; }
.blog-filter a.active, .blog-filter a:hover { background: var(--primary-light); color: var(--primary); border-color: var(--primary-light); }

/* Two doors (blog home) */
.blog-doors { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 40px; }
@media (max-width: 700px) { .blog-doors { grid-template-columns: 1fr; } }
.blog-door { display: block; border: 2px solid var(--border); border-radius: var(--radius); padding: 26px; text-decoration: none; color: var(--text); background: var(--bg-light); transition: border-color 0.15s; }
.blog-door:hover { border-color: var(--primary); }
.blog-door strong { display: block; font-size: 20px; margin-bottom: 6px; }
.blog-door span { color: var(--text-muted); font-size: 15px; }

/* Article */
.blog-article { max-width: 720px; margin: 0 auto; padding: 48px 24px 24px; font-size: 18px; line-height: 1.7; }
.blog-article h2 { font-size: 26px; font-weight: 800; margin: 36px 0 12px; line-height: 1.25; }
.blog-article h3 { font-size: 20px; font-weight: 700; margin: 26px 0 8px; }
.blog-article p { margin-bottom: 16px; }
.blog-article ul { margin: 0 0 18px 24px; }
.blog-article li { margin-bottom: 8px; }
.blog-article a { color: var(--primary-dark); }
.blog-article .lede { font-size: 19px; color: var(--text-muted); font-style: italic; margin-bottom: 24px; }
.blog-article .fineprint { font-size: 14px; color: var(--text-muted); font-style: italic; border-top: 1px solid var(--border); padding-top: 16px; margin-top: 32px; }
.blog-cta { max-width: 720px; margin: 8px auto 56px; padding: 24px; border-radius: var(--radius); background: var(--primary-light); text-align: center; }
.blog-cta p { font-size: 17px; margin-bottom: 12px; }
.blog-cta a.btn { display: inline-block; background: var(--primary); color: #fff; font-weight: 700; padding: 12px 26px; border-radius: 10px; text-decoration: none; }
.blog-cta a.btn:hover { background: var(--primary-dark); }
.blog-back { max-width: 720px; margin: 0 auto 32px; padding: 0 24px; font-size: 15px; }
.blog-back a { color: var(--primary); text-decoration: none; font-weight: 600; }

/* Footer (as on the audience pages) */
footer { background: #0f1923; color: #94a3b8; padding: 40px 24px; }
footer a { color: #e2e8f0; text-decoration: underline; text-underline-offset: 2px; }
footer a:hover { color: #fff; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.footer-brand { display: flex; align-items: center; gap: 8px; }
.footer-logo { background: var(--primary); color: #fff; font-weight: 800; font-size: 14px; padding: 4px 8px; border-radius: 6px; }
.footer-brand-text { color: #e2e8f0; font-size: 14px; font-weight: 500; }
.footer-note { font-size: 13px; color: #94a3b8; max-width: 420px; line-height: 1.5; margin-top: 8px; }
.footer-small { font-size: 12px; color: #94a3b8; margin-top: 8px; max-width: 480px; line-height: 1.5; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a { color: #94a3b8; text-decoration: none; font-size: 13px; transition: color 0.15s; }
.footer-links a:hover { color: #e2e8f0; }
.footer-contact { font-size: 14px; color: #e2e8f0; margin-bottom: 8px; line-height: 1.6; }
.footer-bottom { border-top: 1px solid #1e2d3d; margin-top: 24px; padding-top: 20px; font-size: 12px; color: #94a3b8; text-align: center; }

/* Phone number: plain, selectable text with small Call / Copy controls
   (last, so they win over .blog-article a and footer a) */
.phone-number { white-space: nowrap; -webkit-user-select: text; user-select: text; }
a.phone-call, .phone-copy { display: inline-block; margin-left: 4px; padding: 1px 9px; border: 1px solid currentColor; border-radius: 999px; background: transparent; color: inherit; font-family: inherit; font-size: 12px; font-weight: 600; line-height: 1.4; text-decoration: none; white-space: nowrap; vertical-align: baseline; cursor: pointer; }
a.phone-call:hover, .phone-copy:hover { background: rgba(127,127,127,0.16); }
.top-phone-call:focus-visible, a.phone-call:focus-visible, .phone-copy:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.blog-cta-phone .phone-number { font-size: 20px; }
.blog-cta-phone a.phone-call, .blog-cta-phone .phone-copy { padding: 4px 14px; font-size: 14px; vertical-align: middle; }
.blog-cta-phone a.phone-call { background: var(--primary); border-color: var(--primary); color: #fff; }
.blog-cta-phone a.phone-call:hover { background: var(--primary-dark); }
