/* Blog — aligned with the product: DM Sans, indigo #4f46e5, gray-900 type, 12px cards. */

.blog-shell {
    --blog-ink: #111827;
    --blog-muted: #4b5563;
    --blog-faint: #6b7280;
    --blog-line: #e5e7eb;
    --blog-bg: #f8fafc;
    --blog-card: #ffffff;
    --blog-accent: #4f46e5;
    --blog-accent-dark: #4338ca;
    --blog-accent-soft: #eef2ff;
    --blog-shadow: 0 18px 45px rgba(27, 22, 66, 0.08);
    background:
        radial-gradient(880px 360px at 0% -8%, rgba(79, 70, 229, 0.09), transparent 62%),
        radial-gradient(640px 320px at 100% 0%, rgba(59, 130, 246, 0.07), transparent 58%),
        var(--blog-bg);
    color: var(--blog-ink);
    font-family: "DM Sans", sans-serif;
    padding: 2.75rem 0 4.5rem;
}

.blog-shell,
.blog-shell h1,
.blog-shell h2,
.blog-shell h3,
.blog-shell h4,
.blog-shell p,
.blog-shell a,
.blog-shell li,
.blog-shell span,
.blog-shell button,
.blog-shell input {
    font-family: "DM Sans", sans-serif;
}

.blog-wrap {
    width: min(1120px, calc(100% - 2.5rem));
    margin: 0 auto;
}

.blog-shell .visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.blog-shell a {
    color: inherit;
    text-decoration: none;
}

.blog-shell a:hover {
    text-decoration: none;
}

/* Header */
.blog-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
}

.blog-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.85rem;
    padding: 0.35rem 0.8rem;
    border: 1px solid rgba(79, 70, 229, 0.22);
    border-radius: 999px;
    background: #fff;
    color: var(--blog-accent);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

.blog-kicker-dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.16);
}

.blog-shell .blog-heading {
    margin: 0 0 0.6rem;
    max-width: 16em;
    color: var(--blog-ink);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.08;
}

.blog-lead {
    margin: 0;
    max-width: 38rem;
    color: var(--blog-muted);
    font-size: 1.05rem;
    line-height: 1.65;
}

.blog-crumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.9rem;
    color: var(--blog-faint);
    font-size: 0.875rem;
}

.blog-crumbs a {
    color: var(--blog-muted);
}

.blog-crumbs a:hover {
    color: var(--blog-accent);
}

.blog-crumbs-current {
    max-width: min(42rem, 70vw);
    overflow: hidden;
    color: var(--blog-ink);
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.blog-search {
    position: relative;
    flex: 0 0 320px;
}

.blog-search input {
    width: 100%;
    height: 48px;
    padding: 0 3rem 0 1rem;
    border: 1px solid var(--blog-line);
    border-radius: 12px;
    background: #fff;
    color: var(--blog-ink);
    font-size: 0.95rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.blog-search input::placeholder {
    color: #9ca3af;
}

.blog-search input:focus {
    outline: none;
    border-color: var(--blog-accent);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.14);
}

.blog-search button {
    position: absolute;
    top: 50%;
    right: 0.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--blog-accent);
    cursor: pointer;
    transform: translateY(-50%);
}

.blog-search button:hover {
    background: var(--blog-accent-soft);
}

/* Featured */
.blog-feature {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    min-height: 380px;
    margin-bottom: 2.75rem;
    overflow: hidden;
    border: 1px solid var(--blog-line);
    border-radius: 16px;
    background: var(--blog-card);
    box-shadow: var(--blog-shadow);
}

.blog-feature-media {
    position: relative;
    display: block;
    min-height: 280px;
    background: #eef2ff;
}

.blog-feature-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card-media img,
.blog-side-item img,
.blog-article-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-feature-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 2rem 1.75rem;
}

.blog-pill {
    display: inline-flex;
    align-self: flex-start;
    margin-bottom: 0.85rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: var(--blog-accent-soft);
    color: var(--blog-accent-dark);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.blog-feature-title {
    margin: 0 0 0.75rem;
    color: var(--blog-ink);
    font-size: clamp(1.45rem, 2vw, 1.85rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.blog-feature-title:hover,
.blog-card-title:hover,
.blog-side-copy strong:hover {
    color: var(--blog-accent);
}

.blog-excerpt {
    margin: 0 0 1.1rem;
    color: var(--blog-muted);
    font-size: 0.98rem;
    line-height: 1.65;
}

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.7rem;
    margin-top: auto;
    color: var(--blog-faint);
    font-size: 0.8125rem;
}

.blog-meta-author {
    color: var(--blog-ink);
    font-weight: 600;
}

.blog-read {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 1.15rem;
    color: var(--blog-accent) !important;
    font-size: 0.92rem;
    font-weight: 600;
}

.blog-read:hover {
    color: var(--blog-accent-dark) !important;
    gap: 0.5rem;
}

/* Grid */
.blog-section-label {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin: 0 0 1rem;
    color: var(--blog-ink);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.blog-section-label span {
    color: var(--blog-faint);
    font-size: 0.85rem;
    font-weight: 500;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.15rem;
}

.blog-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--blog-line);
    border-radius: 14px;
    background: var(--blog-card);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.blog-card:hover {
    border-color: #c7d2fe;
    box-shadow: var(--blog-shadow);
    transform: translateY(-3px);
}

.blog-card-media {
    display: block;
    aspect-ratio: 16 / 10;
    background: #eef2ff;
}

.blog-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.05rem 1.1rem 1.15rem;
}

.blog-card-title {
    margin: 0 0 0.45rem;
    color: var(--blog-ink);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.35;
}

.blog-card .blog-excerpt {
    display: -webkit-box;
    margin-bottom: 0.9rem;
    overflow: hidden;
    font-size: 0.9rem;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.blog-card .blog-read {
    margin-bottom: 0.85rem;
}

.blog-empty {
    padding: 3.5rem 1.5rem;
    border: 1px dashed #c7d2fe;
    border-radius: 16px;
    background: #fff;
    text-align: center;
}

.blog-empty h2 {
    margin: 0 0 0.4rem;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
}

.blog-empty p {
    margin: 0;
    color: var(--blog-muted);
}

/* Pager */
.blog-pager {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
    margin: 2.25rem 0 0;
    padding: 0;
    list-style: none;
}

.blog-pager a,
.blog-pager span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.7rem;
    border: 1px solid var(--blog-line);
    border-radius: 10px;
    background: #fff;
    color: var(--blog-ink);
    font-size: 0.9rem;
    font-weight: 600;
}

.blog-pager a:hover {
    border-color: #c7d2fe;
    color: var(--blog-accent);
}

.blog-pager .is-active a {
    border-color: var(--blog-accent);
    background: var(--blog-accent);
    color: #fff;
}

.blog-pager .is-disabled span {
    color: #c4c8d0;
    background: #f3f4f6;
}

/* Article */
.blog-article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 2rem;
    align-items: start;
}

.blog-article {
    min-width: 0;
    padding: 1.75rem 1.75rem 2rem;
    border: 1px solid var(--blog-line);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--blog-shadow);
}

.blog-shell .blog-article-title {
    margin: 0 0 0.85rem;
    color: var(--blog-ink);
    font-size: clamp(1.8rem, 3vw, 2.45rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.15;
}

.blog-article-cover {
    margin: 1.25rem 0 1.5rem;
    overflow: hidden;
    border-radius: 12px;
    background: #eef2ff;
    aspect-ratio: 16 / 8;
}

.blog-article-cover img {
    display: block;
}

.blog-prose {
    color: #1f2937;
    font-size: 1.0625rem;
    line-height: 1.75;
}

.blog-prose > *:first-child {
    margin-top: 0;
}

.blog-prose h1,
.blog-prose h2,
.blog-prose h3,
.blog-prose h4 {
    margin: 1.8rem 0 0.7rem;
    color: var(--blog-ink);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.25;
}

.blog-prose h1 { font-size: 1.7rem; }
.blog-prose h2 { font-size: 1.4rem; }
.blog-prose h3 { font-size: 1.15rem; }

.blog-prose p,
.blog-prose ul,
.blog-prose ol,
.blog-prose blockquote,
.blog-prose pre,
.blog-prose table {
    margin: 0 0 1.05rem;
}

.blog-prose a {
    color: var(--blog-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.blog-prose a:hover {
    color: var(--blog-accent-dark);
}

.blog-prose ul,
.blog-prose ol {
    padding-left: 1.25rem;
}

.blog-prose li + li {
    margin-top: 0.3rem;
}

.blog-prose img,
.blog-prose video,
.blog-prose iframe {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.blog-prose iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
}

.blog-prose blockquote {
    padding: 0.2rem 0 0.2rem 1rem;
    border-left: 3px solid var(--blog-accent);
    color: var(--blog-muted);
}

.blog-prose pre {
    overflow-x: auto;
    max-width: 100%;
    padding: 1rem 1.1rem;
    border-radius: 12px;
    background: #20212b;
    color: #e5e7eb;
    font-size: 0.86rem;
    line-height: 1.65;
}

.blog-prose code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 0.9em;
}

.blog-prose :not(pre) > code {
    padding: 0.12rem 0.35rem;
    border-radius: 6px;
    background: var(--blog-accent-soft);
    color: var(--blog-accent-dark);
}

/* CMS wraps each console in pre > code > code. The inner code is inline,
   so a background paints a white chip on every line. */
.blog-prose pre code {
    display: block;
    width: max-content;
    min-width: 100%;
    margin: 0;
    padding: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: inherit !important;
    font-size: inherit;
    line-height: inherit;
    white-space: pre;
    box-shadow: none !important;
}

.blog-prose table {
    display: block;
    width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
}

.blog-prose th,
.blog-prose td {
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--blog-line);
    text-align: left;
}

.blog-prose th {
    background: #f9fafb;
}

.blog-cta {
    margin-top: 2rem;
    padding: 1.4rem 1.4rem 1.45rem;
    border-radius: 14px;
    background:
        linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(59, 130, 246, 0.06)),
        #fff;
    border: 1px solid #c7d2fe;
}

.blog-cta h2 {
    margin: 0 0 0.35rem;
    font-size: 1.35rem;
    letter-spacing: -0.03em;
}

.blog-cta p {
    margin: 0 0 1rem;
    color: var(--blog-muted);
}

.blog-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.2rem;
    border: 1px solid var(--blog-accent);
    border-radius: 10px;
    background: var(--blog-accent);
    color: #fff !important;
    font-weight: 600;
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.blog-btn:hover {
    background: var(--blog-accent-dark);
    border-color: var(--blog-accent-dark);
    color: #fff !important;
    transform: translateY(-1px);
}

/* Sidebar */
.blog-side {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-self: start;
}

.blog-side-card {
    padding: 1.1rem 1.1rem 1.15rem;
    border: 1px solid var(--blog-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.blog-side-card h2 {
    margin: 0 0 0.85rem;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.blog-side-card h2.blog-side-section {
    margin-top: 1.25rem;
    padding-top: 1.15rem;
    border-top: 1px solid var(--blog-line);
}

.blog-side .blog-search {
    flex: none;
    width: 100%;
}

.blog-side-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.blog-side-item {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 0.7rem;
    align-items: center;
}

.blog-side-item img,
.blog-side-fallback {
    width: 64px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    background: #eef2ff;
}

.blog-side-copy {
    min-width: 0;
}

.blog-side-copy strong {
    display: -webkit-box;
    overflow: hidden;
    color: var(--blog-ink);
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.blog-side-copy span {
    display: block;
    margin-top: 0.15rem;
    color: var(--blog-faint);
    font-size: 0.75rem;
}

@media (max-width: 980px) {
    .blog-top,
    .blog-feature,
    .blog-article-layout,
    .blog-grid {
        display: flex;
        flex-direction: column;
    }

    .blog-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .blog-search {
        flex-basis: auto;
        width: 100%;
    }

    .blog-shell .blog-heading {
        max-width: none;
    }

}

@media (max-width: 680px) {
    .blog-shell {
        padding-top: 1.5rem;
    }

    .blog-wrap {
        width: min(1120px, calc(100% - 1.5rem));
    }

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

    .blog-feature-body,
    .blog-article {
        padding: 1.15rem;
    }

    .blog-article-cover {
        aspect-ratio: 16 / 10;
    }
}
