/* EMRFlow Insights - shared styles (v1). Tokens mirror index.html. */
:root {
    --primary: #2171B5;
    --primary-dark: #1a5a91;
    --primary-light: #e8f2fc;
    --accent: #0ea5e9;
    --surface: #ffffff;
    --surface-alt: #f7f9fc;
    --surface-tint: #f0f6fd;
    --text: #0f172a;
    --text-muted: #64748b;
    --border: rgba(15, 23, 42, 0.08);
    --border-strong: rgba(15, 23, 42, 0.12);
    --success: #10b981;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--surface);
    color: var(--text);
    line-height: 1.6;
}
/* Sticky nav (mirrors homepage) */
nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 2rem;
}
.nav-inner { max-width: 1120px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.nav-brand img { height: 34px; display: block; }
.nav-links { display: flex; gap: 1.75rem; list-style: none; align-items: center; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-size: 0.95rem; font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--primary); font-weight: 600; }
.nav-cta {
    background: var(--primary); color: #fff !important; padding: 0.55rem 1.2rem;
    border-radius: 8px; font-weight: 600;
}
.nav-cta:hover { background: var(--primary-dark); color: #fff !important; }
.mobile-toggle { display: none; background: none; border: none; font-size: 1.5rem; color: var(--text); cursor: pointer; }
@media (max-width: 860px) {
    nav { padding: 0.85rem 1.25rem; }
    .mobile-toggle { display: block; }
    .nav-links {
        position: fixed; inset: 60px 0 auto 0; background: var(--surface);
        flex-direction: column; gap: 0; padding: 0.5rem 0 1rem;
        border-bottom: 1px solid var(--border);
        transform: translateY(-130%); transition: transform 0.25s ease;
    }
    .nav-links.open { transform: translateY(0); }
    .nav-links li { width: 100%; text-align: center; }
    .nav-links a { display: block; padding: 0.8rem 0; }
}
/* Page scaffold */
.page { max-width: 760px; margin: 0 auto; padding: 3rem 1.5rem 4rem; }
.eyebrow {
    display: inline-block; color: var(--primary); background: var(--primary-light);
    font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
    padding: 0.3rem 0.75rem; border-radius: 999px; margin-bottom: 1rem;
}
h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 0.75rem; text-wrap: balance; }
.byline { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 2.25rem; }
article h2 { font-size: 1.35rem; margin: 2.25rem 0 0.75rem; letter-spacing: -0.01em; }
article p { margin-bottom: 1.1rem; }
article ul, article ol { margin: 0 0 1.1rem 1.4rem; }
article li { margin-bottom: 0.4rem; }
article a { color: var(--primary); }
.callout {
    background: var(--surface-tint); border: 1px solid var(--border-strong);
    border-radius: 12px; padding: 1.1rem 1.3rem; margin: 1.5rem 0;
}
.callout p:last-child { margin-bottom: 0; }
/* Insights index cards */
.cards { display: grid; gap: 1.25rem; margin-top: 2rem; }
.card {
    display: block; text-decoration: none; color: inherit;
    border: 1px solid var(--border-strong); border-radius: 14px;
    padding: 1.4rem 1.5rem; background: var(--surface);
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.card:hover { box-shadow: 0 6px 24px rgba(15, 23, 42, 0.08); transform: translateY(-2px); }
.card h3 { font-size: 1.15rem; margin-bottom: 0.4rem; letter-spacing: -0.01em; }
.card p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 0.6rem; }
.card time { color: var(--text-muted); font-size: 0.82rem; }
/* Footer (compact) */
footer {
    border-top: 1px solid var(--border); background: var(--surface-alt);
    padding: 2rem 1.5rem; text-align: center; color: var(--text-muted); font-size: 0.9rem;
}
footer a { color: var(--primary); text-decoration: none; }
