/* -----------------------------------------------
   PATTERN COMPONENT: core/group — .valencia-blogroll-row
   One blogroll entry. Structure the patterns provide:
   inner flex group (site name link, then domain link),
   optional sibling paragraph as the description.
   All colors/sizes reference theme presets so the rows
   follow Global Styles.
   ----------------------------------------------- */

.wp-block-group.valencia-blogroll-row {
  padding: var(--wp--preset--spacing--sm) 0;
}

/* Rows separate by their own padding — collapse the block gap between them.
   Editors sometimes save these rows as layout "constrained" rather than
   "default"; that re-establishes a layout context and lets core's
   :where(.is-layout-constrained) > * rule apply its default 24px
   margin-block-start, overriding the wrapper's 2px grid gap. Zero the
   logical longhand too so the row spacing holds under either layout type. */
.wp-block-group.valencia-blogroll-row + .wp-block-group.valencia-blogroll-row {
  margin-top: 0;
  margin-block-start: 0;
}

.wp-block-group.valencia-blogroll-row > .wp-block-group:first-child {
  gap: 0.75em;
  align-items: center;
}

/* The inline paragraphs inherit .valencia-entry-content's 25px
   margin-bottom, inflating the flex row — zero them at higher specificity. */
.valencia-entry-content .wp-block-group.valencia-blogroll-row > .wp-block-group:first-child > p {
  margin: 0;
  margin-block-start: 0;
  line-height: 1.25;
}

/* Site name. Color is NOT set here: it rides on the row's inner group as
   paired textColor + elements.link preset slugs, so the editor's Color panel
   can change it (matching this page's section headings and Pulitzer's
   contact-list idiom). A color declaration here would out-specify that pick,
   because the text sits inside an <a> and a child's own color always beats
   an inherited one. border-bottom: none overrides the always-on underline
   from .valencia-entry-content a */
.wp-block-group.valencia-blogroll-row > .wp-block-group:first-child > :first-child,
.wp-block-group.valencia-blogroll-row > .wp-block-group:first-child > :first-child a {
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: none;
  transition: color 0.2s ease;
}

.wp-block-group.valencia-blogroll-row > .wp-block-group:first-child > :first-child a:hover {
  color: var(--wp--preset--color--accent-strong);
  border-bottom: none;
}

/* Hover stays in CSS on purpose: pseudo-selectors aren't expressible as
   block attributes, so there is no editor control for them to fight. */

/* Accent dash divider, rendered before the domain. ::before can't be
   expressed as a block attribute either, so this one color stays here. */
.wp-block-group.valencia-blogroll-row > .wp-block-group:first-child > :last-child::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 2px;
  background: var(--wp--preset--color--accent);
  vertical-align: middle;
  margin-right: 0.75em;
  flex-shrink: 0;
}

/* Domain */
.wp-block-group.valencia-blogroll-row > .wp-block-group:first-child > :last-child,
.wp-block-group.valencia-blogroll-row > .wp-block-group:first-child > :last-child a {
  font-family: var(--wp--preset--font-family--mono);
  font-size: var(--wp--preset--font-size--xs);
  text-decoration: none;
  border-bottom: none;
  transition: color 0.2s ease;
}

.wp-block-group.valencia-blogroll-row > .wp-block-group:first-child > :last-child a:hover {
  color: var(--wp--preset--color--accent-strong);
}

/* Description. margin-block-start is stated explicitly because core emits
   the logical longhand for constrained/flow layouts; the `margin` shorthand
   alone would tie on property and be decided by load order. */
.wp-block-group.valencia-blogroll-row > p {
  margin: 4px 0 0;
  margin-block-start: 4px;
  font-size: var(--wp--preset--font-size--small);
}
