/*
 * The "Republish Articles Pop Up" Popup Maker popup (wp-admin) is 100%
 * DB content, not a theme pattern file — its own container (width/
 * border/radius/background) is configured on its assigned Popup Theme
 * post (shared with the newsletter popup), not here. This file only
 * covers the two spots that theme.json/native block support couldn't
 * reach inside a Popup Maker-rendered popup.
 */

/*
 * Popup Maker renders this popup's content through its own hook rather
 * than the main page's content flow, so WordPress's per-request block
 * CSS detection never registers this paragraph's "elements.link" colour
 * as used — core only prints a block's scoped .wp-elements-N rule for
 * elements it saw rendered in the main request, and this paragraph
 * never makes that list here (same root cause already documented for
 * .newsletter-popup__header in newsletter-popup.css). Explicit
 * class-based fallback instead of relying on the per-instance ID.
 *
 * The Creative Commons attribution URL is also one long unbroken string
 * with no spaces, so at the popup's fixed 659px width it overflows past
 * the box's right edge instead of wrapping — confirmed ~34px overflow
 * at default size. Every other line in this popup is ordinary prose
 * that wraps fine on its own; only this raw URL needs the break
 * allowed.
 */
.republish-popup a {
	color: var(--wp--preset--color--accent-500);
	overflow-wrap: anywhere;
	text-decoration: none;
}

/*
 * Figma has no hover state defined for this link, so it borrows the
 * header top bar's own link hover colour (parts/header.html's
 * site-header__top group) for consistency with the rest of the site.
 * Same out-of-flow rendering issue as the base colour above — a native
 * block hover style wouldn't get its scoped rule printed here either.
 * :focus-visible mirrors :hover so keyboard users get the same
 * indication mouse users do.
 */
.republish-popup a:hover,
.republish-popup a:focus-visible {
	color: var(--wp--preset--color--accent-200);
}
