/*
 * GamerHeadlines Orphan Tag Architecture — Topics/Temas chips.
 *
 * Scoped strictly to the .gh-topics component rendered by the plugin. No global
 * resets, no bare element selectors outside the component root, no overriding
 * declarations (no important overrides). Ships alongside the plugin and is
 * enqueued ONLY on singular posts that render the component (see
 * gh_orphan_enqueue_topics_css in the loader).
 *
 * Accessibility: the <nav> is labelled via aria-label; chips are real <a>
 * elements with a visible :focus-visible outline; motion is disabled for users
 * who request reduced motion.
 */

nav.gh-topics {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.5rem;
	margin: 1.5rem 0 0;
	padding-top: 0.875rem;
	border-top: 1px solid rgba(26, 37, 48, 0.18);
	font-size: 0.875rem;
	line-height: 1.4;
}

nav.gh-topics .gh-kicker {
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

nav.gh-topics .gh-topics__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

nav.gh-topics a.gh-topic {
	display: inline-block;
	padding: 0.25rem 0.75rem;
	border: 1px solid rgba(26, 37, 48, 0.22);
	border-radius: 999px;
	background-color: #eef2f6;
	color: #1a2530;
	text-decoration: none;
	transition: background-color 120ms ease, border-color 120ms ease;
}

nav.gh-topics a.gh-topic:hover,
nav.gh-topics a.gh-topic:focus-visible {
	background-color: #dbe4ec;
	border-color: #1a2530;
	text-decoration: underline;
}

nav.gh-topics a.gh-topic:focus-visible {
	outline: 2px solid #1a2530;
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	nav.gh-topics a.gh-topic {
		transition: none;
	}
}
