/* ── Major / minor journal posts ──────────────────────────────────────────
 *
 * Minor posts (post format "status") read as a lighter row in the journal:
 * one line with a small title and the time after it; no image, meta row,
 * excerpt or rule. Major posts are untouched.
 */

/* ── Filter links: All / Major / Minor ─────────────────────────────────── */

.pfw-kind-filter ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25em 1.25em;
    margin: 0 0 1.5em;
    padding: 0 16px;
    list-style: none;

    font-size: var( --wp--preset--font-size--small, 0.9em );
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.pfw-kind-filter a {
    color: inherit;
    text-decoration: none;
    opacity: 0.55;
}

.pfw-kind-filter a:hover,
.pfw-kind-filter a:focus-visible {
    opacity: 1;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.pfw-kind-filter a[aria-current="page"] {
    opacity: 1;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.3em;
}

/* ── Minor card in the listing ─────────────────────────────────────────── */

/* The image column stays, empty, as a spacer: a minor title then starts on the
   same line as an essay's title and meta row instead of out at the image's
   edge. Once the columns stack (WordPress does that below 782px) it would
   only add a gap, so it goes. */
.wp-block-post.format-status .wp-block-column:not( :has( .wp-block-post-title ) ) {
    visibility: hidden;
}

@media ( max-width: 781px ) {
    .wp-block-post.format-status .wp-block-column:not( :has( .wp-block-post-title ) ) {
        display: none;
    }
}

/* One quiet line: hide everything in the text column but the title group —
   the meta row (✎ date, ⏱, ∈ category), the excerpt and the <hr> rule. */
.wp-block-post.format-status .wp-block-column > .wp-block-group > :not( :has( .wp-block-post-title ) ) {
    display: none;
}

/* Less vertical air than an essay row. */
.wp-block-post.format-status .wp-block-column > .wp-block-group {
    padding-block: var( --wp--preset--spacing--30, 1rem ) !important;
}

/* Title: present (it's the permalink), but quiet. */
.wp-block-post.format-status .wp-block-post-title {
    font-size: clamp( 1.15rem, 1rem + 0.6vw, 1.5rem ) !important;
    font-weight: 500 !important;
}

/* Time inline after the title, in the meta row's small caps style. */
.pfw-minor-time {
    margin-inline-start: 0.6em;

    font-family: var( --wp--preset--font-family--system-font, inherit );
    font-size: var( --wp--preset--font-size--small, 0.8rem );
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    white-space: nowrap;
    opacity: 0.6;
}

/* ── Minor post, single view ───────────────────────────────────────────── */

.single-format-status .pf-post-title {
    font-size: clamp( 1.5rem, 1.2rem + 1vw, 2.2rem );
}

/* "Last updated" tracks edits to long posts; on a dated run of posts it's noise. */
.single-format-status .pf-freshness {
    display: none;
}

/* The theme's end mark (Global Styles: `.entry-content p:nth-last-of-type(1)::after`)
   matches the last paragraph of *every* fedi post, since each is its own
   container. Keep it only on a post that actually ends the page. */
body.single-post main .entry-content .pf-fedi-post:not( :last-child ) p::after {
    content: none;
    display: none;
}

/* A minor post *is* the thread, so it needs no rule marking it off from prose.
   Threads quoted inside major posts keep theirs. */
.single-format-status .pf-fedi-post {
    border-inline-start: none;
    padding-inline-start: 0;
}

/* The ✎ in the major rows' meta line matches the one on minor rows: same
   system font and small size, instead of proxima-nova at body size. */
.wp-block-post .wp-block-group:has( > .wp-block-post-date ) > p {
    /* !important: the theme sets paragraph font-family more specifically. */
    font-family: var( --wp--preset--font-family--system-font, -apple-system, system-ui, sans-serif ) !important;
    font-size: var( --wp--preset--font-size--small, 0.8rem );
    font-weight: 500;
}
