/* Meta row: date, a hairline that eats the slack, then share icons. Sits
   BELOW the post title on the hero band, not above it -- the chip is what
   sits above. Ported from valencia-mockups/blog/fly-format-hero-offset.html,
   measured 2026-09-14: date at the band's left edge, rule running 918px
   between, icons flush to the band's right edge.

   The row is a flex Group authored in templates/single.html, so its gap,
   colour and size stay editable from the sidebar. Only two things live here:
   the rule, which is a flex-grow filler with no content and therefore
   nothing a block can express, and the icon sizing.

   The rule and the icons are appended by valencia_eyebrow_share() in
   functions.php, because every share URL carries this post's permalink and
   title. No core block builds a share intent -- core/social-links is for
   profile links with fixed URLs. */

.valencia-eyebrow {
	font-family: var(--wp--preset--font-family--display);
}

/* The row runs the full hero band, ending with the title rather than with
   the body column: the reference measures meta right edge == title right
   edge (1513 at 1920), 220px past the body's 1293. An earlier cap at the
   body's edge was wrong. */

/* The date is a block, so its size and colour come from the group. Only the
   link reset belongs here: the entry-content underline rule would otherwise
   paint through it. */
.valencia-eyebrow .wp-block-post-date,
.valencia-eyebrow .wp-block-post-date a {
	margin: 0;
	color: inherit;
	text-decoration: none;
	border-bottom: none;
}

/* Eats whatever space the date and icons leave, which is what keeps the
   icons flush right at any measure.

   The negative left margin cancels the row's flex gap on this one side: in
   the reference the rule butts straight against the date (measured 0px
   between them at 1440) and the gap belongs only between the icons. */
/* A core/separator, authored in templates/single.html rather than injected:
   the rule carries no content, so a block does the job and stays visible and
   editable in the editor. Core renders it as an <hr> with its own border and
   a centred max-width, both of which have to be undone for a flex filler. */
.valencia-eyebrow__rule {
	flex: 1;
	min-width: var(--wp--preset--spacing--md);
	width: auto;
	max-width: none;
	height: 1px;
	margin-block: 0;
	border: 0;
	background: var(--wp--custom--hairline);
}

.valencia-eyebrow .valencia-share {
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.75rem;
	height: 1.75rem;
	color: inherit;
	border-bottom: none;
	transition: color 0.15s ease;
}

.valencia-eyebrow .valencia-share:hover {
	color: var(--wp--preset--color--accent-strong);
}

.valencia-eyebrow .valencia-share:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent-strong);
	outline-offset: 2px;
}

.valencia-eyebrow .valencia-share svg {
	width: 1rem;
	height: 1rem;
	fill: currentColor;
}

/* The rule fills the slack at EVERY width. An earlier version collapsed it
   to a fixed sm below 781px, written when this row sat above the title and
   carried the chip; the row is now date + rule + icons, and collapsing the
   rule left it a 17px stub with the icons bunched beside the date instead
   of closing the row on the right. Measured 320-1024 before the fix. */

/* Below ~400px the date plus four icons cannot share a line: at 320 the row
   wrapped to four. The rule drops out entirely there and the icons close up,
   which fits them beside the date on one line instead. */
@media (max-width: 400px) {
	.valencia-eyebrow__rule {
		display: none;
	}

	.valencia-eyebrow {
		justify-content: space-between;
	}

	.valencia-eyebrow .valencia-share {
		width: 1.5rem;
	}
}
