/* Blog, FAQ and API reference pages.
   Reuses index.css for the navbar, buttons, footer and the API doc blocks;
   everything below is the page-level layout that only these pages need. */

.blog-shell { padding-bottom: 48px; }

/* ---------- headings ---------- */
.blog-hero { margin: 6px 0 30px; }
.blog-hero h1 {
    margin: 0;
    color: var(--bigjpg-ink);
    font-size: 2rem;
    font-weight: 650;
    line-height: 1.25;
    letter-spacing: -.02em;
}
.blog-intro {
    max-width: 48rem;
    margin: 12px 0 0;
    color: var(--bigjpg-body);
    font-size: 1rem;
    line-height: 1.75;
}

/* ---------- breadcrumb ---------- */
.blog-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 2px 0 18px;
    color: var(--bigjpg-muted);
    font-size: .78rem;
}
.blog-breadcrumb a { color: var(--bigjpg-muted); text-decoration: none; }
.blog-breadcrumb a:hover { color: var(--bigjpg-ink); text-decoration: underline; }
.blog-breadcrumb-current { color: var(--bigjpg-body); }

/* ---------- post list ---------- */
.blog-section { margin: 0 0 40px; }
.blog-section-title {
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--bigjpg-hairline);
    color: var(--bigjpg-ink);
    font-size: .9rem;
    font-weight: 650;
    letter-spacing: .01em;
    text-transform: none;
}
.blog-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.blog-card {
    display: flex;
    flex-direction: column;
    padding: 18px 20px 16px;
    border: 1px solid #e5e5e7;
    border-radius: 12px;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.blog-card:hover { border-color: #d2d2d7; box-shadow: 0 8px 22px rgba(0, 0, 0, .06); }
.blog-card-thumb { display: block; margin: -4px 0 14px; }
.blog-card-thumb img {
    display: block;
    width: 100%;
    height: 148px;
    object-fit: cover;
    border: 1px solid var(--bigjpg-hairline);
    border-radius: 8px;
    background: #f5f5f7;
}
.blog-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 0 0 9px;
    color: var(--bigjpg-muted);
    font-size: .74rem;
}
.blog-card-cat { padding: 2px 8px; border-radius: 999px; background: #eef2f7; color: #3f5b7a; font-weight: 650; }
.blog-card-dot { color: #c7c7cc; }
.blog-card-title { margin: 0 0 8px; font-size: 1.05rem; font-weight: 650; line-height: 1.45; }
.blog-card-title a { color: var(--bigjpg-ink); text-decoration: none; }
.blog-card-title a:hover, .blog-card-title a:focus { text-decoration: underline; }
.blog-card-desc { margin: 0 0 14px; color: var(--bigjpg-body); font-size: .86rem; line-height: 1.65; }
.blog-card-more { margin-top: auto; color: #0f7b3f; font-size: .8rem; font-weight: 650; text-decoration: none; }
.blog-card-more:hover { text-decoration: underline; }

.blog-aside {
    margin: 8px 0 0;
    padding: 20px 22px;
    border: 1px solid #e5e5e7;
    border-radius: 12px;
    background: #f5f5f7;
    color: var(--bigjpg-body);
    font-size: .875rem;
    line-height: 1.7;
}
.blog-aside p { margin: 0; }
.blog-aside-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px !important; }

/* ---------- single post ---------- */
.blog-article { max-width: 46rem; }
.blog-article-header { margin-bottom: 26px; }
.blog-article-header h1 {
    margin: 0 0 12px;
    color: var(--bigjpg-ink);
    font-size: 2rem;
    font-weight: 650;
    line-height: 1.3;
    letter-spacing: -.02em;
}
.blog-article-lead { margin: 0; color: #4b5563; font-size: 1.0625rem; line-height: 1.7; }

.blog-article-image {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 0 30px;
    border: 1px solid var(--bigjpg-hairline);
    border-radius: 12px;
    background: #f5f5f7;
}

.blog-content { color: #2f3542; font-size: 1rem; line-height: 1.85; }
.blog-content p { margin: 0 0 1.05rem; }
.blog-content h2 {
    margin: 2.1rem 0 .8rem;
    color: var(--bigjpg-ink);
    font-size: 1.3rem;
    font-weight: 650;
    line-height: 1.4;
    letter-spacing: -.01em;
}
.blog-content h3 { margin: 1.6rem 0 .5rem; color: var(--bigjpg-ink); font-size: 1.05rem; font-weight: 650; }
.blog-content ul, .blog-content ol { margin: 0 0 1.15rem; padding-left: 1.4rem; }
.blog-content li { margin-bottom: .5rem; }
.blog-content a { color: #0b62d0; text-decoration: underline; text-underline-offset: 2px; }
.blog-content a:hover { color: #084c9e; }
.blog-content strong { color: var(--bigjpg-ink); font-weight: 650; }
.blog-content img { max-width: 100%; height: auto; margin: 1.4rem 0; border: 1px solid var(--bigjpg-hairline); border-radius: 10px; }
.blog-content code {
    padding: 2px 5px;
    border-radius: 4px;
    background: #f2f3f5;
    color: #1f2937;
    font: .875em/1.5 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.blog-content table { width: 100%; margin: 1.35rem 0; border-collapse: collapse; font-size: .875rem; }
.blog-content th, .blog-content td { padding: 10px 12px; border: 1px solid var(--bigjpg-hairline); text-align: left; vertical-align: top; }
.blog-content th { background: #f5f5f7; color: var(--bigjpg-ink); font-weight: 650; }
.blog-content blockquote {
    margin: 1.35rem 0;
    padding: .85rem 1.1rem;
    border-left: 3px solid #d2d2d7;
    background: #fafafa;
    color: #4b5563;
}
.blog-content figure { margin: 1.4rem 0; }
.blog-figure-narrow { max-width: 520px; margin-right: auto; margin-left: auto; }
.blog-content figcaption { margin-top: 8px; color: var(--bigjpg-muted); font-size: .8rem; text-align: center; }

.blog-cta {
    margin: 38px 0 0;
    padding: 22px 24px;
    border: 1px solid #e5e5e7;
    border-radius: 12px;
    background: #f5f5f7;
}
.blog-cta h2 { margin: 0 0 8px; color: var(--bigjpg-ink); font-size: 1.05rem; font-weight: 650; }
.blog-cta p { margin: 0; color: var(--bigjpg-body); font-size: .9rem; line-height: 1.7; }
.blog-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px !important; }
.blog-byline { margin: 18px 0 0; color: var(--bigjpg-muted); font-size: .78rem; }
.blog-back { margin: 30px 0 0; font-size: .85rem; }
.blog-back a { color: var(--bigjpg-body); text-decoration: none; }
.blog-back a:hover { color: var(--bigjpg-ink); text-decoration: underline; }

/* ---------- FAQ page ---------- */
.faq-more { margin-left: .4rem; color: #0f7b3f; font-weight: 650; text-decoration: none; white-space: nowrap; }
.faq-more:hover { text-decoration: underline; }

/* ---------- API reference page ---------- */
.blog-shell .api-endpoint { padding: 0; }
.blog-shell .api-endpoint-header { padding: 18px 22px; }
.api-endpoint-heading h2 { margin: 0 0 4px; color: var(--bigjpg-ink); font-size: 1rem; font-weight: 650; letter-spacing: normal; }
.code-label {
    margin: 0;
    padding: 12px 22px 0;
    color: var(--bigjpg-muted);
    font: 650 .72rem/1.4 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.code_box pre { padding: 10px 22px 18px; }
.blog-shell .api-parameter-list { padding-left: 44px; }
.api-key-status { min-height: 20px; margin: 8px 0 0; color: var(--bigjpg-body); font-size: .8rem; }
.api-key-login { display: block; text-decoration: none; }
.api-key-login a { color: #0b62d0; }
.api-contact { margin: 26px 0 0; color: var(--bigjpg-muted); font-size: .85rem; }

/* ---------- small screens ---------- */
@media (max-width: 767.98px) {
    .blog-grid { grid-template-columns: 1fr; }
    .blog-hero h1, .blog-article-header h1 { font-size: 1.55rem; }
    .blog-content h2 { font-size: 1.15rem; }
    .blog-shell .api-endpoint-header { padding: 16px; }
    .code_box pre, .code-label { padding-left: 16px; padding-right: 16px; }
}

/* FAQ answers open the homepage demo in a modal on the page itself. */
.demo_img { width: 100%; height: auto; }
