/* -----------------------------------------------
   BLOCK STYLE: core/post-terms — valencia-chip
   Solid chips. The third term treatment: ink-deep fill, base text,
   uppercase and tracked. Pills tint the accent and Label is bare type;
   this one is a marker you read BEFORE the thing it labels — a source or
   a section, not a taxonomy list.

   Not style_data: post-terms renders its terms as inner <a> elements and
   the chip treatment has to land on those. style_data reaches the block
   wrapper and elements.link only, so the shape lives here — same reason
   as style-pill.css.

   Source: lurkmoophy style guide `.lc-wholesong` (inline label chip).
   Mockup: valencia-mockups/notes-hard-shadow.html.
   ----------------------------------------------- */

.wp-block-post-terms.is-style-valencia-chip {
  display: block;
}

.wp-block-post-terms.is-style-valencia-chip a {
  display: inline-block;
  margin: 0 6px 6px 0;
  padding: var(--valencia-chip-pad-y, 4px) var(--valencia-chip-pad-x, 10px);
  border-radius: 3px;
  background-color: var(--wp--preset--color--ink-deep);
  color: var(--wp--preset--color--base);
  font-size: var(--valencia-chip-size, 11px);
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
  text-decoration: none;
  /* core-single-post.css puts a 2px accent border-bottom on every link
     inside .valencia-entry-content. A filled chip is not running text and
     the underline paints across its bottom edge — same neutralisation the
     pill and the badges need. */
  border-bottom: none;
}

.wp-block-post-terms.is-style-valencia-chip a:hover {
  /* ink-row, not accent-strong. Filling with the accent puts base text on
     a 3.58:1 ground, which is WEAKER than the 7.75:1 resting state — the
     hover would make the chip harder to read, which is the trap recorded
     on the pill's hover in style-pill.css. ink-row darkens to
     19.08:1, so hovering gains contrast rather than losing it. */
  background-color: var(--wp--preset--color--ink-row);
  color: var(--wp--preset--color--base);
}

.wp-block-post-terms.is-style-valencia-chip a:focus-visible {
  outline: 2px solid var(--wp--preset--color--accent-strong);
  outline-offset: 2px;
}

/* The separator text node between terms — post-terms gives it no element
   to target, so collapse it rather than leave a gap the margins handle. */
.wp-block-post-terms.is-style-valencia-chip .wp-block-post-terms__separator {
  display: none;
}

/* Paragraph chip (style_data carries color, type, radius, padding). A
   paragraph is block-level, so without this the fill spans the container
   and reads as a bar, not a chip. Same treatment as the badge pills. */
p.is-style-valencia-chip {
  display: inline-block;
  width: fit-content;
  line-height: 1.3;
}
