/* ══════════════════════════════════════════════════════════════
   LENSLOOP  —  getlensloop.blog.article.css
   Blog post–specific styles.
   Requires (load in this order):
     1. getlensloop.site.css
     2. getlensloop.navbar.static.css
     3. getlensloop.footer.css
     4. getlensloop.blog.article.css   ← this file
   ══════════════════════════════════════════════════════════════ */

/* ── Blog-specific colour tokens ── */
:root {
    --ink: #111827;
    --ink-2: #1f2937;
    --ink-3: #4b5563;
    --rule: #e5e7eb;
    --surface: #f8f7f4;
    --teal-light: #edf3f1;
    --amber-light: #faeeda;
    --red-light: #fcebeb;
    --blue-light: #e6f1fb;
    /* Re-map site accent aliases used in blog content */
    --accent: var(--brand);
    --accent-dark: var(--brand-mid);
}

/* ══════════════════════════════
   PAGE SHELL
   ══════════════════════════════ */

/* Match the blog list page nav width (1480px site-container).
   The static navbar uses --max (1200px) for .nav-inner — override it
   here so the article nav stretches to the same full-width as the list. */
body.blog-post-page .nav-inner {
    max-width: 1480px;
    padding-left: 40px;
    padding-right: 40px;
}

/* Override site.css body background (#f9f8f5) — blog articles are white */
/* Flex column ensures the footer is always pushed to the bottom     */
body.blog-post-page {
    background: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-bottom: 0; /* Remove padding — footer must sit flush at bottom */
}

    /* Content area grows to fill remaining space above the footer */
    body.blog-post-page .blog-content-section {
        flex: 1;
        padding-bottom: 120px; /* Bottom breathing room lives here instead */
    }

    /* Footer must not shrink — it is the last flex child */
    body.blog-post-page .site-footer {
        flex-shrink: 0;
        margin-top: 0;
    }

/* ══════════════════════════════
   HERO IMAGE
   ══════════════════════════════ */
.blog-hero-image img {
    width: 100%;
    height: 68vh;
    min-height: 520px;
    object-fit: cover;
    display: block;
    border-radius: 0;
}

/* ══════════════════════════════
   FLOATING HERO CARD
   ══════════════════════════════ */
.blog-hero-card-wrap {
    position: relative;
    margin-top: -120px;
    z-index: 10;
    padding: 0 40px;
}

.blog-hero-card {
    max-width: 900px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 30px;
    padding: 56px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .08);
}

/* ── Post meta bar ── */
.blog-post-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.blog-post-meta-left {
    display: flex;
    align-items: center;
    gap: 18px;
}

.blog-post-tag {
    background: rgba(22, 59, 58, .10);
    color: var(--accent-dark);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.blog-post-back-link {
    font-size: 14px;
    font-weight: 700;
    color: var(--brand-mid);
    text-decoration: none;
}

    .blog-post-back-link:hover {
        opacity: .7;
    }

.blog-date {
    font-size: 14px;
    color: var(--muted);
}

/* ── Post title & excerpt ── */
.blog-title {
    font-size: clamp(28px, 6vw, 48px);
    line-height: .98;
    letter-spacing: -2.4px;
    margin: 0 0 28px;
    color: var(--ink);
    font-weight: 800;
}

.blog-excerpt {
    font-size: 21px;
    line-height: 1.65;
    color: var(--ink-3);
    margin-bottom: 40px;
    border-left: 4px solid var(--accent);
    padding-left: 20px;
}

/* ── Author row ── */
.blog-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

    .blog-author img {
        width: 62px;
        height: 62px;
        padding: 6px;
        border-radius: 14px;
        object-fit: contain;
        background: #f5f5f2;
    }

.author-name {
    font-size: 16px;
    font-weight: 700;
}

.author-meta {
    font-size: 14px;
    color: var(--muted);
    margin-top: 4px;
}

/* ══════════════════════════════
   ARTICLE CONTENT AREA
   ══════════════════════════════ */
.blog-content-section {
    padding-top: 72px;
}

.blog-content {
    max-width: 760px;
    margin: 0 auto;
    font-size: 19px;
    line-height: 1.85;
    color: var(--ink-2);
    padding: 0 40px;
}

    /* ── Headings ── */
    .blog-content h2 {
        font-size: 40px;
        line-height: 1.08;
        margin-top: 72px;
        margin-bottom: 22px;
        letter-spacing: -1px;
        color: var(--ink);
        font-weight: 800;
        padding-bottom: 14px;
        border-bottom: 2px solid var(--rule);
    }

    .blog-content h3 {
        font-size: 26px;
        line-height: 1.2;
        margin-top: 48px;
        margin-bottom: 14px;
        color: var(--ink);
        font-weight: 700;
    }

    /* ── Body copy ── */
    .blog-content p {
        margin-bottom: 22px;
    }

    .blog-content a {
        color: var(--accent-dark);
        text-underline-offset: 3px;
    }

        .blog-content a:hover {
            opacity: .75;
        }

    .blog-content strong {
        color: var(--ink);
        font-weight: 700;
    }

    .blog-content em {
        font-style: italic;
    }

cite, .source {
    font-size: 13px;
    color: var(--muted);
    font-style: normal;
}

/* ── Lists ── */
.blog-content ul,
.blog-content ol {
    margin-top: 0;
    margin-bottom: 28px;
    padding-left: 28px;
}

.blog-content li {
    margin-bottom: 10px;
    line-height: 1.65;
}

/* ── Blockquote ── */
.blog-content blockquote {
    margin: 56px 0;
    padding-left: 28px;
    border-left: 5px solid var(--accent);
    font-size: 28px;
    line-height: 1.35;
    letter-spacing: -.5px;
    color: var(--ink);
    font-style: italic;
}

    .blog-content blockquote cite {
        display: block;
        margin-top: 12px;
        font-size: 14px;
        color: var(--muted);
        font-style: normal;
    }

/* ── Inline images ── */
.blog-content img,
.blog-inline-image {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 24px;
    margin: 56px auto;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .06);
}

.blog-image-caption {
    margin-top: 14px;
    text-align: center;
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
}

figure {
    margin: 56px 0 28px;
}

    figure img {
        margin: 0 !important;
    }

/* ══════════════════════════════
   STAT COMPONENTS
   ══════════════════════════════ */

/* ── Stat grid (multi-card) ── */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin: 32px 0;
}

.stat-card {
    background: var(--surface);
    border-radius: 16px;
    padding: 20px 22px;
}

    .stat-card .num {
        /* Reset every property site.css .num badge sets */
        display: block;
        width: auto;
        height: auto;
        border-radius: 0;
        background: none;
        border: none;
        place-items: unset;
        /* Stat card number styles */
        font-size: 1.75rem;
        font-weight: 800;
        color: var(--ink);
        line-height: 1;
        margin-top: 0;
    }

    .stat-card .lbl {
        font-size: 13px;
        color: var(--ink-3);
        margin-top: 6px;
        line-height: 1.4;
    }

    .stat-card .src {
        font-size: 11px;
        color: var(--muted);
        margin-top: 6px;
    }

/* ── Stat callout (single large figure) ── */
.stat-callout {
    background: var(--surface);
    border-radius: 16px;
    padding: 24px 28px;
    margin: 32px 0;
}

    .stat-callout .stat-row {
        display: flex;
        align-items: baseline;
        gap: 14px;
        margin-bottom: 6px;
        flex-wrap: wrap;
    }

    .stat-callout .big-num {
        font-size: 2.4rem;
        font-weight: 800;
        color: var(--ink);
        line-height: 1;
        white-space: nowrap;
    }

    .stat-callout .stat-label {
        font-size: 15px;
        color: var(--ink-3);
        line-height: 1.45;
    }

    .stat-callout .stat-source {
        font-size: 12px;
        color: var(--muted);
        margin-top: 6px;
    }

/* ══════════════════════════════
   CALLOUT BLOCKS
   ══════════════════════════════ */

/* ── Key insight (quotable pull) ── */
.key-insight {
    border-left: 4px solid var(--accent-dark);
    padding: 18px 24px;
    margin: 36px 0;
    background: var(--teal-light);
    border-radius: 0 12px 12px 0;
}

    .key-insight p {
        font-size: 17px;
        font-weight: 600;
        line-height: 1.6;
        color: var(--accent-dark);
        margin: 0;
    }

/* ── Definition ── */
.definition {
    background: var(--blue-light);
    border-radius: 12px;
    padding: 20px 24px;
    margin: 24px 0;
}

    .definition .term {
        font-size: 11px;
        font-weight: 700;
        letter-spacing: .1em;
        text-transform: uppercase;
        color: #1a5fa0;
        margin-bottom: 6px;
    }

    .definition .def-text {
        font-size: 15px;
        line-height: 1.65;
        color: #0c3e6b;
    }

/* ── Red callout ── */
.callout-red {
    background: var(--red-light);
    border-left: 4px solid #8b1f1f;
    border-radius: 0 12px 12px 0;
    padding: 16px 22px;
    margin: 32px 0;
    font-size: 15px;
    color: #5a1515;
    line-height: 1.6;
}

/* ── Amber callout ── */
.callout-amber {
    background: var(--amber-light);
    border-left: 4px solid #c08010;
    border-radius: 0 12px 12px 0;
    padding: 16px 22px;
    margin: 32px 0;
    font-size: 15px;
    color: #5a3a08;
    line-height: 1.6;
}

/* ══════════════════════════════
   KEY TAKEAWAYS
   ══════════════════════════════ */
.key-takeaways {
    background: var(--teal-light);
    border: 1.5px solid #b2d4ce;
    border-radius: 20px;
    padding: 32px 36px;
    margin: 0 0 56px;
}

.key-takeaways-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--accent);
    margin-bottom: 20px;
}

    .key-takeaways-label::before {
        content: '';
        display: inline-block;
        width: 18px;
        height: 2px;
        background: var(--accent);
        border-radius: 2px;
        flex-shrink: 0;
    }

.key-takeaways ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

    .key-takeaways ul li {
        position: relative;
        padding: 12px 0 12px 26px;
        font-size: 16px;
        line-height: 1.65;
        color: var(--ink-2);
        border-bottom: 1px solid #c8deda;
    }

        .key-takeaways ul li:last-child {
            border-bottom: none;
            padding-bottom: 0;
        }

        .key-takeaways ul li:first-child {
            padding-top: 0;
        }

        .key-takeaways ul li::before {
            content: '→';
            position: absolute;
            left: 0;
            top: 12px;
            color: var(--accent);
            font-weight: 700;
            font-size: 14px;
            line-height: 1.65;
        }

        .key-takeaways ul li:first-child::before {
            top: 0;
        }

/* ══════════════════════════════
   FRICTION / STEP LIST
   ══════════════════════════════ */
.friction-step {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.friction-num {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--accent-dark);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

.friction-text {
    font-size: 15px;
    color: var(--ink-3);
    line-height: 1.6;
}

    .friction-text strong {
        color: var(--ink);
    }

/* ══════════════════════════════
   COMPARISON TABLE
   ══════════════════════════════ */
.compare-wrap {
    overflow-x: auto;
    margin: 32px 0;
    border-radius: 16px;
    border: 1.5px solid var(--rule);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

thead th {
    padding: 14px 16px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
    background: var(--surface);
    border-bottom: 1.5px solid var(--rule);
}

tbody td {
    padding: 13px 16px;
    border-bottom: 1px solid var(--rule);
    vertical-align: top;
    color: var(--ink-3);
    line-height: 1.5;
}

tbody tr:last-child td {
    border-bottom: none;
}

tbody tr:hover {
    background: #fafaf9;
}

.col-feature {
    font-weight: 600;
    color: var(--ink);
}

.check {
    color: #0d6e56;
    font-weight: 700;
}

.cross {
    color: #8b1f1f;
}

.partial {
    color: #7a4f0a;
}

/* ══════════════════════════════
   IN-CONTENT CTA
   Full reset of blog-content bleed-through
   ══════════════════════════════ */
.blog-cta {
    margin-top: 80px;
}

/* h2 — remove blog-content border, padding, and margin */
.blog-content .blog-cta h2 {
    border-bottom: none;
    padding-bottom: 0;
    margin-top: 0;
    color: #ffffff;
}

/* p — reset blog-content margins and restore CTA colour */
.blog-content .blog-cta p {
    margin-bottom: 20px;
    color: rgba(255, 255, 255, .8);
}

    .blog-content .blog-cta p.cta-sub {
        margin-top: 16px;
        margin-bottom: 0;
        font-size: 13px;
        color: rgba(255, 255, 255, .5);
    }

/* Stats */
.blog-cta .cta-stat {
    text-align: center;
}

.blog-cta .cta-stat-num {
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
}

.blog-cta .cta-stat-lbl {
    font-size: 12px;
    color: rgba(255, 255, 255, .65);
    margin-top: 4px;
    letter-spacing: .03em;
}

/* Button — override site.css .btn which applies brand colours */
.blog-content .blog-cta .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 36px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 16px;
    background: #ffffff;
    color: var(--brand);
    border: none;
    box-shadow: none;
    text-decoration: none;
    letter-spacing: .01em;
    transition: background .15s;
    opacity: 1;
}

    .blog-content .blog-cta .btn:hover {
        background: #f0faf8;
        opacity: 1;
        transform: none;
    }

/* ══════════════════════════════
   FAQ  (blog in-content variant)
   Fully scoped to .blog-content to override site.css
   .faq-section which sets bg-sand background, 140px
   padding, and 56px centred accordion heading.
   ══════════════════════════════ */
.blog-content .faq-section {
    padding: 0;
    margin-top: 64px;
    padding-top: 40px;
    background: transparent;
    border-top: 2px solid var(--rule);
    border-bottom: none;
}

    /* Override site.css 56px centred accordion h2 */
    .blog-content .faq-section h2 {
        font-size: 40px;
        text-align: left;
        letter-spacing: -1px;
        margin: 0 0 32px;
        padding-bottom: 0;
        border-bottom: none;
        color: var(--ink);
        font-weight: 800;
    }

.blog-content .faq-item {
    margin-bottom: 36px;
    border-top: 1px solid var(--rule);
    padding-top: 28px;
}

    .blog-content .faq-item:first-of-type {
        border-top: none;
        padding-top: 0;
    }

    .blog-content .faq-item h3 {
        font-size: 18px;
        margin-top: 0;
        margin-bottom: 10px;
        color: var(--ink);
        font-weight: 700;
    }

    .blog-content .faq-item p {
        font-size: 15px;
        color: var(--ink-3);
        line-height: 1.75;
        margin: 0;
    }

/* ══════════════════════════════
   REFERENCES
   ══════════════════════════════ */
.references {
    margin-top: 64px;
    padding-top: 32px;
    border-top: 1px solid var(--rule);
}

    .references h2 {
        font-size: 16px;
        font-weight: 700;
        margin: 0 0 16px;
        border: none;
        padding: 0;
        color: var(--ink);
    }

    .references ol {
        font-size: 13px;
        color: var(--muted);
        padding-left: 20px;
    }

    .references li {
        margin-bottom: 8px;
        line-height: 1.6;
    }

    .references a {
        color: var(--accent-dark);
    }

/* ══════════════════════════════
   RESPONSIVE  ≤ 900px
   ══════════════════════════════ */
@media (max-width: 900px) {

    .blog-hero-image img {
        height: 42vh;
        min-height: 320px;
    }

    .blog-hero-card-wrap {
        margin-top: -40px;
        padding: 0 16px;
    }

    .blog-hero-card {
        padding: 32px 24px;
        border-radius: 20px;
    }

    .blog-title {
        font-size: 38px;
        letter-spacing: -1.5px;
    }

    .blog-excerpt {
        font-size: 17px;
    }

    .blog-content {
        font-size: 17px;
        padding: 0 16px;
    }

        .blog-content h2 {
            font-size: 30px;
        }

        .blog-content h3 {
            font-size: 22px;
        }

        .blog-content blockquote {
            font-size: 22px;
        }

    .blog-cta {
        padding: 48px 28px;
        border-radius: 20px;
    }

        .blog-cta h2 {
            font-size: 32px;
        }

        .blog-cta .cta-stats {
            gap: 24px;
        }

    .stat-grid {
        grid-template-columns: 1fr 1fr;
    }

    .key-takeaways {
        padding: 24px 20px;
        border-radius: 16px;
        margin-bottom: 40px;
    }

        .key-takeaways ul li {
            font-size: 15px;
            padding-left: 22px;
        }
}

/* ══════════════════════════════
   RESPONSIVE  ≤ 500px
   ══════════════════════════════ */
@media (max-width: 500px) {

    .blog-hero-card-wrap {
        padding: 0 12px;
    }

    .blog-hero-card {
        padding: 24px 18px;
    }

    .blog-post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .stat-card .num {
        display: block;
        width: auto;
        height: auto;
        border-radius: 0;
        background: none;
        border: none;
        font-size: 1.4rem;
    }

    .blog-cta .cta-stats {
        flex-direction: column;
        gap: 16px;
    }

    .key-takeaways {
        padding: 20px 16px;
        border-radius: 12px;
    }

    .key-takeaways-label {
        font-size: 10px;
    }

    .key-takeaways ul li {
        font-size: 14px;
        padding-left: 20px;
    }
}
