.post-collection {
    --post-list-ink: var(--fs-color-base, #333333);
    --post-list-accent: var(--fs-color-primary, #333333);
    --post-list-border: #dddddd;
    --post-list-muted: #666666;
    --post-list-placeholder: #eeeeee;
    --post-list-surface: #ffffff;
    --post-list-thumb: 80px;
    display: grid;
    box-sizing: border-box;
}

.post-collection.is-list {
    grid-template-columns: 1fr;
}

.post-collection.is-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.post-collection.is-grid.columns-1 { grid-template-columns: 1fr; }
.post-collection.is-grid.columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.post-collection.is-grid.columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.post-collection__item {
    background: var(--post-list-surface);
    min-width: 0;
}

.post-collection.is-list .post-collection__item {
    display: grid;
    grid-template-columns: var(--post-list-thumb) minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid var(--post-list-border);
}

.post-collection.is-list .post-collection__item:first-child {
    border-top: 0;
    padding-top: 0;
}

.post-collection.is-list .post-collection__item:last-child {
    padding-bottom: 0;
}

.post-collection__media {
    display: block;
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    overflow: hidden;
}

.post-collection.is-grid .post-collection__media {
    margin-bottom: 14px;
}

.post-collection__media img,
.post-collection__placeholder {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: var(--post-list-placeholder);
}

.post-collection__content {
    min-width: 0;
    overflow-wrap: anywhere;
}

.post-collection__title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 6px;
}

.post-collection__title a {
    color: var(--post-list-ink);
}

.post-collection__title a:hover,
.post-collection__title a:focus-visible,
.post-collection__action:hover,
.post-collection__action:focus-visible {
    color: var(--post-list-accent);
}

.post-collection a:focus-visible {
    outline: 2px solid var(--post-list-accent);
    outline-offset: 2px;
}

.post-collection__item time {
    display: block;
    color: var(--post-list-muted);
    font-size: 12px;
    line-height: 1.5;
}

.post-collection__excerpt {
    color: var(--post-list-muted);
    font-size: 13px;
    line-height: 1.54;
    margin: 10px 0 0;
}

.post-collection__action {
    display: inline-block;
    margin-top: 10px;
    color: var(--post-list-accent);
    font-size: 13px;
    line-height: 1.54;
}

.post-collection__empty {
    margin-bottom: 0;
}


.blog-wrapper {
    --fn-blog-surface: #ffffff;
    --fn-blog-border: #e4e4e0;
    --fn-blog-muted: #666666;
    --fn-blog-radius: 12px;
    --fn-blog-card-border: 1px solid var(--fn-blog-border);
    --fn-blog-shadow: none;
    --fn-blog-padding: 24px;
}

/* Decoration belongs to content owners; global styling stays in Theme Options. */
.blog-archive .archive-page-header {
    padding-top: 0;
    margin-bottom: 24px;
}

/* Keep the header card aligned with native post-column gutters on mobile too. */
.blog-archive .archive-page-header > .row {
    padding-inline: 15px;
}

.blog-archive .archive-page-header > .row > .large-12,
.blog-archive #post-list > .row > .post-item > .col-inner,
.single-post :is(.article-inner, .post-sidebar .widget),
.single-post .post-collection.is-grid .post-collection__item {
    background: var(--fn-blog-surface);
    border: var(--fn-blog-card-border);
    border-radius: var(--fn-blog-radius);
    box-shadow: var(--fn-blog-shadow);
    padding: var(--fn-blog-padding);
}

.blog-archive #post-list > .row > .post-item > .col-inner > .box {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.blog-wrapper .site-blog-breadcrumb-row,
.blog-wrapper .site-blog-breadcrumb-row > .col {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding-top: 0;
    padding-bottom: 0;
}

.site-blog-breadcrumb-row .rank-math-breadcrumb {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.site-blog-breadcrumb-row .rank-math-breadcrumb p {
    margin-bottom: 0;
}

.blog-wrapper .widget-title {
    display: block;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.45;
    margin-bottom: 16px;
    text-transform: none;
}

.fn-blog-related {
    margin-top: 24px;
}

.blog-wrapper .post-collection {
    --post-list-surface: var(--fn-blog-surface);
    --post-list-border: var(--fn-blog-border);
    --post-list-muted: var(--fn-blog-muted);
}


.blog-archive > .row > .large-10 {
    flex-basis: 100%;
    max-width: 100%;
}

.single-post .blog-single > .row > .large-9 {
    flex-basis: 70%;
    max-width: 70%;
}

.single-post .blog-single > .row > .post-sidebar {
    flex-basis: 30%;
    max-width: 30%;
    padding-left: 0;
}

@media only screen and (max-width: 48em) {
.post-collection.is-grid,
    .post-collection.is-grid.small-columns-1 {
        grid-template-columns: 1fr;
    }

    .post-collection.is-grid.small-columns-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .single-post .blog-single > .row > .large-9 {
        flex-basis: 100%;
        max-width: 100%;
    }

    .single-post .blog-single > .row > .post-sidebar {
        flex-basis: 100%;
        max-width: 100%;
        padding-left: 15px;
    }
}
