/* [srdss_post_meta] styles — auto-enqueued when the shortcode is used.
 *
 * Every setting is a var() with no fallback on an inherited property: a
 * blank setting declares no variable, the declaration is then invalid at
 * computed-value time, and the property inherits — which is the theme's own
 * value, exactly as if the rule were not there.
 *
 * Links are the exception, because inheriting is not what they do by default.
 * They take the color only under --color, which the shortcode adds when Post
 * Meta Color is set.
 */

.srd-post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 8px;
    line-height: 1.6;
    font-size: var(--srd-post-meta-font-size, 14px);
    font-weight: var(--srd-post-meta-font-weight);
    color: var(--srd-post-meta-color);
    text-transform: var(--srd-post-meta-text-transform);
    letter-spacing: var(--srd-post-meta-letter-spacing);
}

/* Per-part colors. Blank declares no variable, so the part inherits the
   line's color — Post Meta Color when set, the theme's otherwise. */
.srd-post-meta__date         { color: var(--srd-post-meta-date-color); }
.srd-post-meta__categories   { color: var(--srd-post-meta-category-color); }
.srd-post-meta__tags         { color: var(--srd-post-meta-tag-color); }
.srd-post-meta__reading-time { color: var(--srd-post-meta-reading-time-color); }

.srd-post-meta.srd-post-meta--color a,
.srd-post-meta .srd-post-meta__item--color a {
    color: inherit;
}

/* (0,3,1) and (0,3,2): above the --color rule and a theme's a:hover alike. */
.srd-post-meta.srd-post-meta--hover a:hover,
.srd-post-meta.srd-post-meta--hover a:focus-visible {
    color: var(--srd-post-meta-link-hover-color);
}

.srd-post-meta__sep {
    opacity: 0.55;
}
