.inkorly-recent-posts {
    --inkorly-recent-posts-gap: 16px;
    --inkorly-recent-posts-card-bg: #fff;
    --inkorly-recent-posts-card-border: 1px solid rgba(0, 0, 0, 0.1);
    --inkorly-recent-posts-card-radius: 14px;
    --inkorly-recent-posts-card-shadow: none;
    --inkorly-recent-posts-card-padding: 13px 15px;
    --inkorly-recent-posts-title-color: inherit;
    --inkorly-recent-posts-title-size: clamp(1.02rem, 1.12vw, 1.125rem);
    --inkorly-recent-posts-title-line-height: 1.22;
    --inkorly-recent-posts-excerpt-color: inherit;
    --inkorly-recent-posts-excerpt-size: 0.78rem;
    --inkorly-recent-posts-excerpt-line-height: 1.4;
    --inkorly-recent-posts-date-color: inherit;
    --inkorly-recent-posts-date-size: 0.70rem;
    --inkorly-recent-posts-image-fit: contain;
    --inkorly-recent-posts-image-bg: rgba(0, 0, 0, 0.025);
    --inkorly-recent-posts-button-color: inherit;
    --inkorly-recent-posts-button-bg: transparent;
    --inkorly-recent-posts-button-border: 1px solid currentColor;
    --inkorly-recent-posts-button-radius: 999px;
    --inkorly-recent-posts-button-padding: 0.62em 1.08em;
    width: 100%;
}

.inkorly-recent-posts *,
.inkorly-recent-posts *::before,
.inkorly-recent-posts *::after {
    box-sizing: border-box;
}

.inkorly-recent-posts__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--inkorly-recent-posts-gap);
    align-items: stretch;
}

.inkorly-recent-posts--count-1 .inkorly-recent-posts__grid {
    grid-template-columns: minmax(0, 680px);
    justify-content: center;
}

.inkorly-recent-posts--count-2 .inkorly-recent-posts__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.inkorly-recent-post {
    display: grid;
    grid-template-columns: minmax(92px, 0.36fr) minmax(0, 0.64fr);
    min-width: 0;
    min-height: 122px;
    overflow: hidden;
    background: var(--inkorly-recent-posts-card-bg);
    border: var(--inkorly-recent-posts-card-border);
    border-radius: var(--inkorly-recent-posts-card-radius);
    box-shadow: var(--inkorly-recent-posts-card-shadow);
}

.inkorly-recent-posts--count-1 .inkorly-recent-post {
    grid-template-columns: minmax(155px, 0.32fr) minmax(0, 0.68fr);
}

.inkorly-recent-posts--count-2 .inkorly-recent-post {
    grid-template-columns: minmax(120px, 0.34fr) minmax(0, 0.66fr);
}

.inkorly-recent-post--no-image {
    grid-template-columns: 1fr !important;
}

.inkorly-recent-post__image-link,
.inkorly-recent-post__image {
    display: block;
    width: 100%;
    height: 100%;
}

.inkorly-recent-post__image {
    min-height: 122px;
    overflow: hidden;
    background: var(--inkorly-recent-posts-image-bg);
}

.inkorly-recent-post__image-element {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: var(--inkorly-recent-posts-image-fit);
    transition: transform 180ms ease;
}

.inkorly-recent-post__image-link:hover .inkorly-recent-post__image-element,
.inkorly-recent-post__image-link:focus-visible .inkorly-recent-post__image-element {
    transform: scale(1.018);
}

.inkorly-recent-post__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    min-width: 0;
    gap: 5px;
    padding: var(--inkorly-recent-posts-card-padding);
}

.inkorly-recent-post__title {
    margin: 0;
    font: inherit;
    font-weight: 700;
    line-height: var(--inkorly-recent-posts-title-line-height);
}

.inkorly-recent-post__title a {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    color: var(--inkorly-recent-posts-title-color);
    font-size: var(--inkorly-recent-posts-title-size);
    font-weight: 700;
    line-height: var(--inkorly-recent-posts-title-line-height);
    text-decoration: none;
}

.inkorly-recent-post__title a:hover,
.inkorly-recent-post__title a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 0.16em;
}

.inkorly-recent-post__excerpt {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    margin: 0;
    color: var(--inkorly-recent-posts-excerpt-color);
    font-size: var(--inkorly-recent-posts-excerpt-size);
    line-height: var(--inkorly-recent-posts-excerpt-line-height);
    opacity: 0.72;
}

.inkorly-recent-post__date {
    color: var(--inkorly-recent-posts-date-color);
    font-size: var(--inkorly-recent-posts-date-size);
    line-height: 1.3;
    opacity: 0.56;
}

.inkorly-recent-posts__view-all-wrap {
    display: flex;
    justify-content: center;
    margin-top: 18px;
}

.inkorly-recent-posts__view-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--inkorly-recent-posts-button-padding);
    border: var(--inkorly-recent-posts-button-border);
    border-radius: var(--inkorly-recent-posts-button-radius);
    background: var(--inkorly-recent-posts-button-bg);
    color: var(--inkorly-recent-posts-button-color);
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    transition: transform 160ms ease, opacity 160ms ease;
}

.inkorly-recent-posts__view-all:hover,
.inkorly-recent-posts__view-all:focus-visible {
    transform: scale(1.025);
    opacity: 0.82;
}

/* Blog Manager site-level recent-posts control. */
.inkorly-blog-recent-posts-setting {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 0 0 22px;
    padding: 14px 18px;
    border: 1px solid #dfe5ee;
    border-radius: 12px;
    background: #f8fafc;
}

.inkorly-blog-recent-posts-setting__copy {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 520px;
}

.inkorly-blog-recent-posts-setting__title-row {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 4px;
}

.inkorly-blog-manager .inkorly-blog-recent-posts-setting__copy h2 {
    margin: 0;
    font-size: 19px;
    line-height: 1.25;
}

.inkorly-blog-recent-posts-setting__copy p {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    color: #5a6473;
}

.inkorly-blog-recent-posts-setting__info {
    position: relative;
    display: inline-grid;
    place-items: center;
    flex: none;
    width: 18px;
    height: 18px;
    padding: 0;
    border: 1px solid #dfe5ee;
    border-radius: 50%;
    background: #f1f5f9;
    color: #667085;
    font: 700 11px/1 Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    cursor: help;
}

.inkorly-blog-recent-posts-setting__info::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 9px);
    transform: translateX(-50%) translateY(4px);
    width: min(310px, 72vw);
    padding: 9px 10px;
    border-radius: 8px;
    background: #172033;
    color: #fff;
    font: 500 12px/1.4 Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    text-align: left;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .15s ease, transform .15s ease;
    z-index: 50;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .18);
}

.inkorly-blog-recent-posts-setting__info:hover::after,
.inkorly-blog-recent-posts-setting__info:focus::after,
.inkorly-blog-recent-posts-setting__info:focus-visible::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.inkorly-blog-recent-posts-setting__form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    min-width: 0;
}

.inkorly-blog-recent-posts-setting__form > label {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #101828;
    white-space: nowrap;
}

.inkorly-blog-recent-posts-setting__controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.inkorly-blog-recent-posts-setting__controls select {
    min-width: 126px;
    min-height: 44px;
    padding: 9px 11px;
    border: 1px solid #cfd4dc;
    border-radius: 7px;
    background: #fff;
    color: #101828;
    font: inherit;
}

.inkorly-blog-recent-posts-setting__controls select:focus {
    border-color: #3a86ff;
    box-shadow: 0 0 0 3px rgba(58, 134, 255, 0.14);
    outline: 0;
}

@media (max-width: 767px) {
    .inkorly-recent-posts__grid,
    .inkorly-recent-posts--count-1 .inkorly-recent-posts__grid,
    .inkorly-recent-posts--count-2 .inkorly-recent-posts__grid {
        grid-template-columns: 1fr;
    }

    .inkorly-recent-posts--count-1 .inkorly-recent-post,
    .inkorly-recent-posts--count-2 .inkorly-recent-post,
    .inkorly-recent-post {
        grid-template-columns: minmax(104px, 0.31fr) minmax(0, 0.69fr);
        min-height: 116px;
    }

    .inkorly-recent-post__image {
        min-height: 116px;
    }

    .inkorly-blog-recent-posts-setting {
        align-items: stretch;
        flex-direction: column;
        gap: 14px;
    }

    .inkorly-blog-recent-posts-setting__form {
        align-items: stretch;
        flex-direction: column;
        gap: 7px;
        min-width: 0;
    }

    .inkorly-blog-recent-posts-setting__form > label {
        white-space: normal;
    }

    .inkorly-blog-recent-posts-setting__info::after {
        left: 0;
        transform: translateY(4px);
    }

    .inkorly-blog-recent-posts-setting__info:hover::after,
    .inkorly-blog-recent-posts-setting__info:focus::after,
    .inkorly-blog-recent-posts-setting__info:focus-visible::after {
        transform: translateY(0);
    }
}

@media (max-width: 420px) {
    .inkorly-recent-post {
        grid-template-columns: 96px minmax(0, 1fr);
    }

    .inkorly-recent-post__body {
        padding: 11px 12px;
    }

}

@media (prefers-reduced-motion: reduce) {
    .inkorly-recent-post__image-element,
    .inkorly-recent-posts__view-all {
        transition: none;
    }
}
