/* ════════════════════════════════════════════════════════
   Licensely — Blog shared styles
   Used by /blog/ index + every /blog/[slug]/ article page
   ════════════════════════════════════════════════════════ */

:root {
    --navy: #1A2138;
    --deep: #0F1525;
    --blue: #159FE8;
    --violet: #5D69EF;
    --mid: #3885ED;
    --grad: linear-gradient(135deg, #159FE8, #5D69EF);
    --off: #F8FAFC;
    --pale: #EFF6FF;
    --white: #FFFFFF;
    --border: #E2E8F0;
    --text: #475569;
    --textl: #64748B;
    --mint: #10B981;
    --warm: #F59E0B;
    --rose: #F43F5E;
    --shadow: 0 10px 30px -12px rgba(15,21,37,.12);
    --radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--off);
    color: var(--navy);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--mid); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 740px; margin: 0 auto; padding: 0 22px; }

/* Header */
header.bar { border-bottom: 1px solid var(--border); background: var(--white); }
header.bar .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-weight: 800; font-size: 20px; color: var(--navy); text-decoration: none; letter-spacing: -0.01em; }
.logo span { background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.bar a.nav { font-size: 14px; color: var(--textl); font-weight: 500; text-decoration: none; }
.bar a.nav:hover { color: var(--mid); text-decoration: none; }

/* ── Blog index ── */
.blog-hero { padding: 56px 0 32px; }
.blog-hero .eyebrow {
    font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
    background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; margin-bottom: 14px;
}
.blog-hero h1 { font-size: 38px; line-height: 1.15; margin: 0 0 18px; letter-spacing: -0.02em; font-weight: 800; color: var(--navy); }
.blog-hero p { font-size: 17px; color: var(--text); max-width: 600px; }

.post-list { padding: 24px 0 60px; }
.post-card {
    display: block; padding: 24px 26px; margin-bottom: 14px;
    background: var(--white); border: 1px solid var(--border); border-radius: 14px;
    text-decoration: none; transition: transform .15s, box-shadow .15s, border-color .15s;
}
.post-card:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -12px rgba(15,21,37,.12); border-color: var(--mid); text-decoration: none; }
.post-card .meta { display: flex; gap: 12px; align-items: center; font-size: 12px; color: var(--textl); margin-bottom: 10px; flex-wrap: wrap; }
.post-card .meta .tag { background: var(--pale); color: var(--mid); font-weight: 700; padding: 3px 10px; border-radius: 999px; font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; }
.post-card .meta .date { color: var(--textl); }
.post-card h2 { font-size: 22px; line-height: 1.25; color: var(--navy); margin: 0 0 8px; letter-spacing: -0.01em; font-weight: 800; }
.post-card p { font-size: 15px; color: var(--text); line-height: 1.55; margin: 0; }
.post-card .read-more { display: inline-block; margin-top: 12px; color: var(--mid); font-weight: 700; font-size: 14px; }

/* ── Blog article ── */
.article-hero { padding: 48px 0 24px; }
.article-hero .eyebrow {
    font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
    background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; margin-bottom: 14px;
}
.article-hero h1 { font-size: 38px; line-height: 1.15; margin: 0 0 18px; letter-spacing: -0.02em; font-weight: 800; color: var(--navy); }
.article-hero .article-meta { display: flex; gap: 14px; align-items: center; font-size: 13.5px; color: var(--textl); flex-wrap: wrap; }
.article-hero .article-meta .author { color: var(--navy); font-weight: 600; }

/* Verified stamp (re-used pattern) */
.verified-stamp {
    display: flex; align-items: flex-start; gap: 10px;
    margin: 22px 0 30px; padding: 12px 16px;
    background: #FFF8E6; border-left: 3px solid #F59E0B; border-radius: 7px;
    font-size: 13px; line-height: 1.55; color: #78350F;
}
.verified-stamp .ic { flex-shrink: 0; font-size: 16px; line-height: 1.4; }
.verified-stamp strong { color: #78350F; font-weight: 700; }

/* TOC */
.toc {
    background: var(--white); border: 1px solid var(--border); border-radius: 12px;
    padding: 20px 24px; margin: 24px 0 36px;
}
.toc .toc-label { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--textl); margin-bottom: 10px; }
.toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.toc ol li { counter-increment: toc; padding: 5px 0; font-size: 14.5px; }
.toc ol li::before { content: counter(toc) ". "; color: var(--mid); font-weight: 700; margin-right: 4px; }
.toc ol li a { color: var(--navy); text-decoration: none; }
.toc ol li a:hover { color: var(--mid); text-decoration: underline; }

/* Article body */
.article-body { padding: 0 0 40px; }
.article-body p { font-size: 17px; line-height: 1.75; color: var(--navy); margin: 0 0 20px; }
.article-body p.lede { font-size: 19px; color: var(--text); margin-bottom: 28px; line-height: 1.65; }
.article-body h2 {
    font-size: 26px; margin: 40px 0 14px; letter-spacing: -0.015em; font-weight: 800; color: var(--navy); line-height: 1.25;
}
.article-body h2 .kicker {
    display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
    background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; margin-bottom: 6px;
}
.article-body h3 { font-size: 20px; margin: 28px 0 10px; font-weight: 700; color: var(--navy); }
.article-body ul, .article-body ol { margin: 0 0 22px 26px; }
.article-body ul li, .article-body ol li { font-size: 17px; color: var(--navy); margin-bottom: 8px; line-height: 1.65; }
.article-body strong { color: var(--navy); font-weight: 700; }
.article-body a { color: var(--mid); font-weight: 600; }

/* Pro tip / Pitfall callouts (per competitor pattern adoption) */
.callout {
    background: var(--pale); border-left: 4px solid var(--mid); border-radius: 0 12px 12px 0;
    padding: 18px 22px; margin: 26px 0; font-size: 16px;
}
.callout strong { color: var(--navy); }
.callout.tip { border-left-color: var(--mid); background: var(--pale); }
.callout.tip .label { color: var(--mid); }
.callout.pitfall { border-left-color: var(--warm); background: #FEF3C7; color: #78350F; }
.callout.pitfall .label { color: #92400E; }
.callout.pitfall strong { color: #78350F; }
.callout .label {
    display: block; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
    margin-bottom: 6px;
}

/* Table */
.article-body table {
    width: 100%; border-collapse: collapse; margin: 22px 0; font-size: 14.5px;
    background: var(--white); border: 1px solid var(--border); border-radius: 10px; overflow: hidden;
}
.article-body th { background: var(--off); color: var(--navy); font-weight: 700; text-align: left; padding: 12px 16px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; border-bottom: 1px solid var(--border); }
.article-body td { padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--navy); vertical-align: top; }
.article-body tr:last-child td { border-bottom: 0; }

/* Article footer / CTA */
.article-cta {
    position: relative; overflow: hidden;
    background: var(--grad); color: #fff; border-radius: 22px;
    padding: 40px 36px; margin: 48px 0 24px;
    box-shadow: 0 24px 60px -22px rgba(56,133,237,0.45);
}
.article-cta::before {
    content: ""; position: absolute; top: -100px; right: -100px;
    width: 320px; height: 320px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.18), transparent 70%);
    pointer-events: none;
}
.article-cta > * { position: relative; z-index: 1; }
.article-cta .cta-badge {
    display: inline-block; padding: 5px 12px; background: rgba(255,255,255,0.18);
    color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
    text-transform: uppercase; border-radius: 999px; margin-bottom: 14px;
    backdrop-filter: blur(8px);
}
.article-cta h3 {
    font-size: 30px; margin: 0 0 12px; color: #fff; font-weight: 800;
    letter-spacing: -0.02em; line-height: 1.15;
}
.article-cta .cta-sub {
    color: rgba(255,255,255,0.95); font-size: 16px; margin: 0 0 22px;
    line-height: 1.55; font-weight: 500; max-width: 480px;
}
.article-cta .cta-features {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    margin: 0 0 26px; padding: 16px 18px;
    background: rgba(255,255,255,0.1); border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.18);
}
.article-cta .cta-features div {
    display: flex; align-items: center; gap: 9px;
    font-size: 13.5px; color: rgba(255,255,255,0.97); font-weight: 500; line-height: 1.4;
}
.article-cta .cta-features div::before {
    content: "✓"; flex-shrink: 0; width: 18px; height: 18px;
    background: rgba(255,255,255,0.22); border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 800; color: #fff;
}
.article-cta .btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: #fff; color: var(--navy);
    padding: 14px 26px; border-radius: 11px; font-weight: 700; font-size: 15px;
    text-decoration: none; box-shadow: 0 8px 22px rgba(0,0,0,0.22);
    transition: transform .15s, box-shadow .15s;
}
.article-cta .btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,0.32); text-decoration: none; }
@media (max-width: 600px) {
    .article-cta { padding: 30px 24px; }
    .article-cta h3 { font-size: 24px; }
    .article-cta .cta-features { grid-template-columns: 1fr; }
}

/* Blog email signup — blue gradient panel that pops */
.blog-signup {
    position: relative; overflow: hidden;
    background: var(--grad); color: #fff;
    border-radius: 18px;
    padding: 32px 32px; margin: 40px 0 24px;
    box-shadow: 0 24px 60px -22px rgba(56,133,237,0.45);
}
.blog-signup::before {
    content: ""; position: absolute; top: -90px; right: -90px;
    width: 300px; height: 300px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.18), transparent 70%);
    pointer-events: none;
}
.blog-signup::after {
    content: ""; position: absolute; bottom: -120px; left: -80px;
    width: 280px; height: 280px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.12), transparent 70%);
    pointer-events: none;
}
.blog-signup > * { position: relative; z-index: 1; }
.blog-signup h3 {
    font-size: 26px; margin: 0 0 8px; color: #fff;
    font-weight: 800; letter-spacing: -0.015em; line-height: 1.2;
}
.blog-signup .lede-copy {
    font-size: 15px; color: rgba(255,255,255,0.94); margin: 0 0 20px;
    line-height: 1.55; max-width: 540px;
}
.blog-signup form { display: flex; gap: 10px; }
.blog-signup input[type="email"] {
    flex: 1; padding: 14px 16px;
    border: none; border-radius: 11px;
    font-family: inherit; font-size: 15px; color: var(--navy);
    background: #fff;
    transition: box-shadow 0.15s;
}
.blog-signup input[type="email"]::placeholder { color: #94A3B8; }
.blog-signup input[type="email"]:focus {
    outline: none; box-shadow: 0 0 0 3px rgba(255,255,255,0.45);
}
.blog-signup button {
    padding: 14px 24px; border: none;
    background: var(--navy); color: #fff;
    border-radius: 11px; font-family: inherit; font-size: 15px; font-weight: 700;
    cursor: pointer; white-space: nowrap;
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
    box-shadow: 0 6px 18px rgba(0,0,0,0.22);
}
.blog-signup button:hover {
    transform: translateY(-1px);
    background: #0F1525;
    box-shadow: 0 10px 26px rgba(0,0,0,0.32);
}
.blog-signup .micro {
    font-size: 12px; color: rgba(255,255,255,0.82);
    margin-top: 12px; line-height: 1.5;
}
.blog-signup .success {
    display: none; padding: 16px 20px;
    background: rgba(255,255,255,0.18);
    border-radius: 11px;
    font-size: 15px; color: #fff; font-weight: 600;
    backdrop-filter: blur(8px);
}
.blog-signup.submitted form { display: none; }
.blog-signup.submitted .micro { display: none; }
.blog-signup.submitted .success { display: block; }
@media (max-width: 600px) {
    .blog-signup { padding: 26px 24px; }
    .blog-signup h3 { font-size: 22px; }
    .blog-signup form { flex-direction: column; }
    .blog-signup button { width: 100%; }
}

/* Disclaimer */
.disclaimer {
    margin-top: 32px; padding: 16px 18px; background: var(--off); border-radius: 10px;
    font-size: 12.5px; color: var(--textl); line-height: 1.6;
}

/* Sources block */
.sources { margin: 36px 0 24px; padding: 20px 24px; background: var(--white); border: 1px solid var(--border); border-radius: 12px; }
.sources h4 { font-size: 12px; font-weight: 800; color: var(--textl); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 10px; }
.sources ol { margin: 0 0 0 24px; padding: 0; }
.sources li { font-size: 13.5px; color: var(--text); line-height: 1.6; margin-bottom: 6px; }

/* Footer (matches state pages) */
footer.page-footer { background: var(--white); border-top: 1px solid var(--border); padding: 28px 0; margin-top: 40px; font-size: 13px; color: var(--textl); }
footer.page-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer.page-footer a { color: var(--textl); }

@media (max-width: 600px) {
    .blog-hero h1, .article-hero h1 { font-size: 30px; }
    .blog-hero { padding: 36px 0 20px; }
    .article-hero { padding: 32px 0 18px; }
    .article-body p, .article-body ul li, .article-body ol li { font-size: 16px; }
    .article-body h2 { font-size: 22px; }
    .article-body table { font-size: 13px; }
    .article-body th, .article-body td { padding: 10px 12px; }
}
