/**
 * Portfolio Carousel — the item's own page.
 *
 * Only the website button lives here; everything else on a single portfolio
 * page is the theme's. Loaded only when the button is actually printed.
 *
 * Every value is a custom property, so a theme restyles the button without
 * fighting specificity:
 *
 *   .pfc-visit { --pfc-btn-bg: #123c29; --pfc-btn-radius: 4px; }
 */

.pfc-visit-wrap {
	margin: 32px 0 0;
}

.pfc-visit {
	--pfc-btn-bg: #009444;
	--pfc-btn-bg-hover: #007a38;
	--pfc-btn-ink: #ffffff;
	--pfc-btn-radius: 999px;
	--pfc-btn-pad-y: 28px;
	--pfc-btn-pad-x: 68px;
	--pfc-btn-size: 15px;
	/*
	 * A sans face by default, not `inherit`. Portfolio pages tend to set a serif
	 * body font, and the reference button is sans — set `--pfc-btn-font: inherit`
	 * to follow the theme instead.
	 */
	--pfc-btn-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;

	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	box-sizing: border-box;

	background: var(--pfc-btn-bg);
	color: var(--pfc-btn-ink) !important;
	border: 0;
	border-radius: var(--pfc-btn-radius);
	padding: var(--pfc-btn-pad-y) var(--pfc-btn-pad-x);

	font-family: var(--pfc-btn-font);
	font-size: var(--pfc-btn-size);
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	text-decoration: none;

	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease;
}

/*
 * Themes routinely style `.entry-content a` with their own colour and an
 * underline. Repeating the colour through the link states keeps the button
 * white-on-green in all of them.
 */
.pfc-visit:link,
.pfc-visit:visited {
	color: var(--pfc-btn-ink) !important;
	text-decoration: none;
}

.pfc-visit:hover,
.pfc-visit:focus,
.pfc-visit:active {
	background: var(--pfc-btn-bg-hover);
	color: var(--pfc-btn-ink) !important;
	text-decoration: none;
}

.pfc-visit:hover {
	transform: translateY(-1px);
}

.pfc-visit:focus-visible {
	outline: 2px solid var(--pfc-btn-bg);
	outline-offset: 3px;
}

@media (max-width: 600px) {
	.pfc-visit {
		--pfc-btn-pad-y: 20px;
		--pfc-btn-pad-x: 32px;
		--pfc-btn-size: 14px;
		/* A long label must wrap inside the button, not past the screen edge. */
		max-width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pfc-visit {
		transition: none;
	}

	.pfc-visit:hover {
		transform: none;
	}
}
