/* --- POST INFO (post-info.html.twig) ---
   A row of short facts about a page (an article's author, date, category) with a thin divider after
   each but the last; the row wraps on narrow screens. Desktop values (--post-info-*), then phone
   (≤767px, --post-info-*-mobile) values falling back to them. Every rule is scoped to .post-info. */

.post-info {
    --pi-gap: var(--post-info-gap, 8px);
    max-width: var(--post-info-max-width, var(--content-max-width, 1200px));
    margin: var(--post-info-margin, 0 auto);
    padding: var(--post-info-padding, 0);
    box-sizing: border-box;
}

.post-info__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: var(--post-info-justify, center);
    margin: 0 calc(-1 * var(--pi-gap));
    padding: 0;
    list-style: none;
}

.post-info__item {
    position: relative;
    margin: 0 var(--pi-gap);
    font-size: var(--post-info-size, 14px);
    line-height: var(--post-info-line-height, 1.5);
    font-weight: var(--post-info-weight, inherit);
    color: var(--post-info-color, inherit);
}

/* the divider, in the middle of the space after each item but the last */
.post-info__item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50%;
    right: calc(-1 * var(--pi-gap));
    height: var(--post-info-divider-height, 100%);
    border-left: var(--post-info-divider-width, 1px) solid var(--post-info-divider-color, currentColor);
    transform: translateY(-50%);
}

.post-info__link {
    color: var(--post-info-link-color, inherit);
    text-decoration: var(--post-info-link-decoration, none);
    transition: var(--post-info-link-transition);
}

.post-info__link:hover,
.post-info__link:focus-visible {
    color: var(--post-info-link-hover-color, var(--post-info-link-color, inherit));
}

@media (max-width: 767px) {
    .post-info {
        padding: var(--post-info-padding-mobile, var(--post-info-padding, 0));
    }

    .post-info__item {
        font-size: var(--post-info-size-mobile, var(--post-info-size, 14px));
        line-height: var(--post-info-line-height-mobile, var(--post-info-line-height, 1.5));
    }
}
