.page-blog-index main,
.page-blog-post main,
.page-not-found main,
.page-404 main {
    padding-bottom: 24px;
}

.blog-hero,
.not-found-section {
    padding: 34px 0 20px;
}

.blog-hero h1,
.post-header h1,
.not-found-card h1 {
    margin: 0;
    font-size: clamp(2.5rem, 5vw, 5rem);
    line-height: 1.02;
    letter-spacing: -0.045em;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
}

.blog-hero p,
.post-excerpt,
.not-found-card p {
    margin: 0;
    max-width: 640px;
    font-size: 1.08rem;
    color: var(--muted);
    overflow-wrap: anywhere;
}

.blog-grid-section,
.related-posts-section {
    padding: 34px 0;
}

.related-posts-section {
    padding-top: 42px;
    padding-bottom: 64px;
}

.related-posts-section h2,
.post-card h2 {
    margin: 0;
    font-size: clamp(1.8rem, 3.2vw, 2.7rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.related-posts-section h2 {
    margin-bottom: 20px;
}

.post-header,
.post-grid {
    display: grid;
}

.post-grid {
    gap: 24px;
}

.blog-pagination {
    margin-top: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.blog-pagination-pages {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.blog-pagination-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    padding: 0;
    flex: 0 0 52px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--surface);
    color: var(--text);
    font-weight: 700;
    text-align: center;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(10px);
    transform: translateY(0);
    transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.blog-pagination-link:hover,
.blog-pagination-link:focus-visible {
    border-color: rgba(242, 109, 71, 0.28);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 109, 71, 0.09));
    box-shadow: 0 16px 34px rgba(24, 20, 18, 0.12);
    transform: translateY(-2px);
}

.blog-pagination-link-control {
    width: auto;
    min-width: 132px;
    padding: 0 22px;
    border-radius: var(--radius-pill);
    flex: 0 0 auto;
}

.blog-pagination-link.is-current {
    background: var(--surface-strong);
    border-color: var(--surface-strong);
    color: #fff;
    box-shadow: 0 18px 36px rgba(21, 19, 18, 0.22);
}

.blog-pagination-link.is-current:hover,
.blog-pagination-link.is-current:focus-visible {
    background: #000;
    border-color: #000;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
}

.blog-pagination-link.is-disabled {
    color: var(--muted);
    background: rgba(255, 255, 255, 0.6);
    opacity: 0.78;
    box-shadow: none;
    transform: none;
    cursor: default;
}

.blog-pagination-link.is-disabled:hover,
.blog-pagination-link.is-disabled:focus-visible {
    border-color: var(--border);
    background: rgba(255, 255, 255, 0.6);
    color: var(--muted);
    box-shadow: none;
    transform: none;
}

.post-header {
    grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
    align-items: center;
    gap: 28px;
}

.post-grid-editorial {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.blog-hero-shell,
.not-found-card,
.post-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
}

.blog-hero-shell,
.not-found-card {
    padding: 28px;
}

.blog-hero-shell {
    gap: 14px;
}

.blog-hero-simple {
    padding-top: clamp(34px, 6vw, 76px);
    padding-bottom: 18px;
}

.blog-hero-simple .blog-hero-shell {
    display: grid;
    gap: 14px;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    max-width: none;
    margin: 0 auto;
}

.blog-hero-simple h1 {
    max-width: 980px;
    letter-spacing: 0;
}

.blog-hero-simple p {
    max-width: 720px;
    color: var(--muted-strong);
}

.blog-grid-section-simple {
    padding-top: 24px;
}

.not-found-card {
    max-width: 760px;
    text-align: center;
}

.not-found-actions {
    margin-top: 24px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.post-page {
    display: grid;
    gap: 26px;
    width: min(calc(100% - 32px), 900px);
    margin-top: clamp(32px, 5vw, 64px);
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.post-page .answer-block {
    margin-top: -2px;
}

.post-page .article-answer-strip {
    margin-top: -4px;
}

.post-body:focus {
    outline: none;
}

.post-body:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--accent-violet) 44%, transparent);
    outline-offset: 8px;
    border-radius: 18px;
}

.post-research-snapshot,
.post-quick-compare,
.post-paa {
    display: grid;
    gap: 16px;
    padding: 18px 20px 20px;
    border: 1px solid rgba(24, 20, 18, 0.08);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 28px rgba(24, 20, 18, 0.05);
}

.post-research-lead {
    margin: 0;
    color: var(--muted);
}

.post-quick-compare-lead {
    margin: 0;
    color: var(--muted);
}

.post-quick-compare h2 {
    margin: 0;
    font-size: clamp(1.5rem, 2.5vw, 2.1rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

details.post-quick-compare {
    display: block;
    padding: 0;
    overflow: hidden;
}

.post-quick-compare-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    list-style: none;
}

.post-quick-compare-summary::-webkit-details-marker {
    display: none;
}

.post-quick-compare-summary span {
    color: var(--accent-strong);
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.post-quick-compare-summary strong {
    grid-column: 1;
    justify-self: start;
    color: var(--text);
    text-align: left;
}

.post-quick-compare-summary::after {
    width: 34px;
    height: 34px;
    display: inline-flex;
    grid-column: 2;
    grid-row: 1 / span 2;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--glass);
    color: var(--text);
    content: "+";
    font-weight: 900;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

details.post-quick-compare[open] .post-quick-compare-summary::after {
    content: "–";
    transform: rotate(180deg);
}

.post-quick-compare-inner {
    display: grid;
    gap: 16px;
    padding: 0 20px 20px;
    border-top: 1px solid var(--border);
}

.post-quick-compare-inner .comparison-table-wrap {
    margin: 0;
}

.post-research-grid,
.post-paa-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.post-research-card,
.post-paa-card {
    display: grid;
    gap: 10px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(24, 20, 18, 0.08);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 20px rgba(24, 20, 18, 0.04);
}

.post-research-card h3,
.post-research-card p,
.post-paa-card h3,
.post-paa-card p {
    margin: 0;
}

.post-research-card p,
.post-paa-card p {
    color: var(--muted);
}

.post-header-stacked {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border);
}

.post-cover {
    min-height: 260px;
    overflow: hidden;
    background: #fff;
    min-width: 0;
    max-width: 100%;
}

.post-cover img,
.post-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-header-stacked .post-cover {
    min-height: 0;
    max-height: 520px;
    max-width: 100%;
    border-radius: 28px;
    box-shadow: var(--shadow-soft);
}

.post-header-stacked .post-cover img {
    aspect-ratio: 16 / 9;
}

.post-header-copy {
    display: grid;
    gap: 14px;
    min-width: 0;
    max-width: 100%;
}

.post-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 0.95rem;
    color: var(--muted);
}

.post-card {
    padding: 0;
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.post-card--spotlight {
    border-color: rgba(242, 109, 71, 0.18);
    background:
        radial-gradient(circle at top right, rgba(255, 146, 77, 0.12), transparent 34%),
        var(--surface);
}

.post-card--spotlight .post-card-body {
    gap: 14px;
}

.post-card--spotlight .post-card-date {
    color: var(--accent-strong);
    font-weight: 700;
}

.post-card--spotlight h2 {
    font-size: 1.4rem;
}

.post-card:hover,
.post-card:focus-within {
    transform: translateY(-6px);
    box-shadow: 0 30px 72px color-mix(in srgb, var(--accent-violet) 12%, transparent), var(--shadow);
    border-color: color-mix(in srgb, var(--accent-violet) 30%, var(--border));
}

.post-card-link {
    display: grid;
    gap: 0;
    height: 100%;
}

.post-card-cover {
    aspect-ratio: 1.55 / 1;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
    background:
        linear-gradient(135deg, var(--accent-violet-soft), var(--accent-soft)),
        var(--surface-solid);
}

.post-card-body {
    display: grid;
    gap: 12px;
    padding: 20px;
}

.post-card-body p,
.post-card-date,
.post-excerpt {
    color: var(--muted);
}

.post-card-date {
    margin: 0;
    font-size: 0.92rem;
    letter-spacing: 0.02em;
}

.post-card-editorial h2 {
    font-size: 1.28rem;
    line-height: 1.2;
}

.post-back-link,
.post-card-cta {
    position: relative;
    display: inline-flex;
    width: fit-content;
    color: var(--accent-strong);
    font-weight: 700;
}

.post-card-cta::after,
.post-back-link::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -3px;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

.post-card:hover .post-card-cta::after,
.post-card:focus-within .post-card-cta::after,
.post-back-link:hover::after,
.post-back-link:focus-visible::after {
    transform: scaleX(1);
}

.prose {
    font-size: clamp(1.02rem, 1.4vw, 1.1rem);
    line-height: 1.78;
}

.prose img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 560px;
    height: auto;
    margin: 0;
    object-fit: contain;
}

.prose h2,
.prose h3,
.prose p,
.prose ul,
.prose ol {
    margin-top: 0;
    margin-bottom: 18px;
}

.prose .app-entry-shot {
    margin: -4px 0 22px;
    display: flex;
    justify-content: flex-start;
}

.prose .app-entry-shot img {
    display: block;
    width: auto;
    max-width: min(100%, 392px);
    height: auto;
    border: 1px solid var(--border);
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.prose h2 {
    font-size: 1.72rem;
    line-height: 1.15;
}

.prose h3 {
    font-size: 1.24rem;
    line-height: 1.2;
}

.prose ul,
.prose ol {
    padding-left: 22px;
}

.post-page > *,
.post-body,
.prose {
    min-width: 0;
}

.post-body a {
    color: #5a58d6;
    font-weight: 650;
    text-decoration: underline;
    text-decoration-color: color-mix(in srgb, currentColor 34%, transparent);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
    transition: opacity 0.2s ease, text-decoration-color 0.2s ease;
}

.post-body a:hover,
.post-body a:focus-visible {
    opacity: 0.82;
    text-decoration-color: currentColor;
}

.article-byline,
.article-methodology,
.article-cluster,
.article-expansion,
.article-seo-support {
    border: 1px solid rgba(24, 20, 18, 0.08);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 12px 28px rgba(24, 20, 18, 0.05);
}

.article-byline,
.article-methodology,
.article-cluster,
.article-seo-support {
    padding: 22px;
}

.article-byline {
    display: grid;
    gap: 14px;
}

.article-byline-grid,
.article-cluster-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.article-cluster-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
}

.post-compare-cluster {
    display: grid;
    gap: 18px;
}

.post-compare-cluster-copy {
    display: grid;
    gap: 10px;
}

.post-compare-cluster-copy h2,
.post-compare-cluster-copy p {
    margin: 0;
}

.post-compare-cluster-copy h2 {
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
}

.post-compare-cluster-copy p {
    color: var(--muted);
    line-height: 1.7;
}

.post-compare-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.post-compare-card {
    display: grid;
    gap: 10px;
    padding: 18px 20px;
    border-radius: 20px;
    border: 1px solid rgba(24, 20, 18, 0.08);
    background:
        radial-gradient(circle at top right, rgba(255, 146, 77, 0.12), transparent 34%),
        rgba(255, 255, 255, 0.96);
    color: inherit;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(24, 20, 18, 0.05);
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.post-compare-card:hover,
.post-compare-card:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(24, 20, 18, 0.08);
    border-color: rgba(255, 146, 77, 0.2);
}

.post-compare-card.is-hub {
    grid-column: 1 / -1;
    background:
        radial-gradient(circle at top right, rgba(255, 146, 77, 0.16), transparent 40%),
        linear-gradient(135deg, rgba(255, 247, 241, 0.98), rgba(255, 255, 255, 0.98));
}

.post-compare-card strong,
.post-compare-card span {
    display: block;
}

.post-compare-card strong {
    font-size: 1.08rem;
    line-height: 1.35;
    color: var(--text);
}

.post-compare-card>span:not(.post-compare-card-kicker):not(.post-compare-card-cta) {
    color: var(--muted);
    line-height: 1.65;
}

.post-compare-card-kicker,
.post-compare-card-cta {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.post-compare-card-kicker {
    color: var(--accent);
}

.post-compare-card-cta {
    color: var(--text);
}

.article-byline-label,
.article-cluster-kicker,
.article-byline-role {
    margin: 0;
    font-size: 0.86rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.article-byline-value,
.article-byline-trust,
.article-methodology p,
.article-cluster p,
.article-cluster-links {
    margin: 0;
}

.article-byline-value {
    margin-top: 6px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
}

.article-byline-role {
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.94rem;
}

.article-byline-trust {
    color: var(--muted);
    line-height: 1.6;
}

.article-methodology {
    display: grid;
    gap: 14px;
}

.article-seo-support {
    display: grid;
    gap: 16px;
}

.article-seo-support h2,
.article-seo-support h3,
.article-seo-support p {
    margin: 0;
}

.article-seo-support h2 {
    font-size: clamp(1.5rem, 2.8vw, 2rem);
    line-height: 1.12;
}

.article-seo-support-lead {
    color: var(--muted);
}

.article-seo-support-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.article-seo-support-card {
    display: grid;
    gap: 10px;
    padding: 18px;
    border: 1px solid rgba(24, 20, 18, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 20px rgba(24, 20, 18, 0.04);
}

.article-seo-support-card p {
    color: var(--muted);
}

.article-seo-support-card a {
    color: var(--accent-strong);
    font-weight: 700;
}

.article-methodology h2,
.article-cluster h2 {
    margin: 0;
    font-size: clamp(1.5rem, 2.8vw, 2rem);
    line-height: 1.12;
}

.article-methodology ul,
.article-cluster-links {
    margin: 0;
    padding-left: 20px;
}

.article-methodology-note {
    margin: 0;
    font-size: 0.95rem;
}

.article-methodology-note a {
    color: var(--accent-strong);
    font-weight: 700;
}

.article-cluster {
    display: grid;
    gap: 16px;
}

.article-cluster-card {
    display: grid;
    gap: 10px;
    padding: 18px;
    border: 1px solid rgba(24, 20, 18, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 20px rgba(24, 20, 18, 0.04);
}

.article-cluster-card h3 {
    margin: 0;
    font-size: 1.18rem;
    line-height: 1.18;
}

.article-cluster-card a {
    color: var(--text);
}

.article-cluster-card p,
.article-cluster-links {
    color: var(--muted);
}

.article-cluster-links li + li {
    margin-top: 10px;
}

.article-cluster-links a {
    color: var(--accent-strong);
    font-weight: 700;
}

.article-expansion {
    padding: 22px;
}


.prose .article-inline-image {
    margin: 28px 0 30px;
}

.prose .article-inline-image img {
    width: auto;
    max-width: min(100%, 620px);
    display: block;
    margin: 0;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
}

@media (max-width: 980px) {
    .post-grid-editorial,
    .post-header {
        grid-template-columns: 1fr;
    }

    .article-byline-grid,
    .article-cluster-grid,
    .post-compare-grid,
    .post-research-grid,
    .post-paa-grid,
    .article-seo-support-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .blog-hero-shell,
    .not-found-card {
        padding: 20px;
    }

    .post-card-body {
        padding: 16px;
    }

    .post-page {
        width: min(calc(100% - 24px), 900px);
        gap: 22px;
        margin-top: 28px;
        padding: 0;
    }

    .post-header h1 {
        max-width: 100%;
        font-size: clamp(1.85rem, 8vw, 2.35rem);
        line-height: 1.04;
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    .blog-pagination {
        gap: 10px 12px;
    }

    .blog-pagination-link {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
    }

    .blog-pagination-link-control {
        min-width: 108px;
        padding: 0 18px;
    }

    .article-byline,
    .article-methodology,
    .article-cluster,
    .article-expansion,
    .article-seo-support,
    .post-research-snapshot,
    .post-quick-compare,
    .post-paa {
        padding: 18px;
    }

    .post-quick-compare-summary {
        grid-template-columns: 1fr 34px;
        padding: 16px 18px;
    }

    .post-quick-compare-summary strong {
        justify-self: start;
        grid-column: 1;
        text-align: left;
    }

    .prose .article-inline-image {
        margin: 24px 0 26px;
    }

    .prose img {
        max-height: 420px;
    }

    .prose .app-entry-shot {
        margin-bottom: 20px;
    }

    .prose .app-entry-shot img {
        width: auto;
        max-width: min(100%, 340px);
    }
}
