/* aieo/post-related-needs — pill-chip row, centered.
 * Sits at the bottom of an article above the share box. Each chip is
 * a link to the corresponding need archive.
 */
.aieo-post-related-needs {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.aieo-post-related-needs__heading {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--wp--preset--color--contrast-2, #555);
}

.aieo-post-related-needs__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.aieo-post-related-needs__item {
    margin: 0;
    padding: 0;
}

.aieo-post-related-needs__chip {
    display: inline-block;
    padding: 7px 14px;
    border: 1px solid var(--wp--preset--color--contrast, #1a1a1a);
    border-radius: var(--wp--custom--rooster--shape--chip, 999px);
    font-size: 0.85rem;
    color: var(--wp--preset--color--contrast, #1a1a1a);
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.aieo-post-related-needs__chip:hover,
.aieo-post-related-needs__chip:focus-visible {
    background: var(--wp--preset--color--contrast, #1a1a1a);
    color: var(--wp--preset--color--bg, #fff); /* the page's own background on the contrast fill: white on white in the dark scheme before (11.3.3) */
    transform: translateY(-1px);
}

/* Display "row" (11.3.11; the designer's post-b, the post's foot: the categories, needs and brands the post is linked
 * to and its tags, «Reds · Gel colour · Shade match · Aurenne»): one row of chips at the start, a hairline in the line
 * colour around each, the button shape (square in direction B, as the journal's chips), the text's colour; the line
 * turns to the ink under the pointer. Tokens only. */
.aieo-post-related-needs--row { display: block; }
.aieo-post-related-needs--row .aieo-post-related-needs__list { justify-content: flex-start; gap: 6px; }
.aieo-post-related-needs--row .aieo-post-related-needs__chip { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border: 1px solid var(--wp--preset--color--line); border-radius: var(--wp--custom--rooster--shape--button); color: inherit; font-size: var(--wp--preset--font-size--sm); line-height: 1.2; text-decoration: none; transition: border-color 0.15s ease; }
.aieo-post-related-needs--row .aieo-post-related-needs__chip:hover,
.aieo-post-related-needs--row .aieo-post-related-needs__chip:focus-visible { border-color: var(--wp--preset--color--fg); background: transparent; color: inherit; transform: none; }
