/* ForkedPassport — supplemental polish (rules theme.json can't fully express) */

/* Category tags render as links; terracotta, uppercase, no underline */
.wp-block-post-terms a,
.wp-block-post-terms a:hover {
	color: var(--wp--preset--color--clay);
	text-decoration: none;
	font-weight: 500;
}

/* Post titles in cards/links: ink, underline only on hover */
.wp-block-post-title a {
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}
.wp-block-post-title a:hover {
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--clay);
	text-underline-offset: 3px;
}

/* Featured-image links shouldn't get underlines */
.wp-block-post-featured-image a {
	text-decoration: none;
	display: block;
	overflow: hidden;
}
.wp-block-post-featured-image img {
	transition: transform 0.4s ease;
}
.wp-block-post-featured-image a:hover img {
	transform: scale(1.03);
}

/* Post cards: editorial + borderless — image and text sit on the page, no box, no lift.
   The visual interest comes from type and the image, not card chrome. */
.wp-block-query .wp-block-post-template > li > .wp-block-group,
.wp-block-query .wp-block-post-template .wp-block-post,
.wp-block-query .wp-block-post-template .has-white-background-color {
	border: none;
	border-radius: 0;
	overflow: visible;
	background: transparent !important;
	box-shadow: none;
}
/* Strip the inner card padding so the label + title align flush under the image */
.wp-block-query .wp-block-post-template > li > .wp-block-group > .wp-block-group {
	padding: 0 !important;
}

/* Comfortable reading rhythm for long-form post bodies */
.wp-block-post-content p {
	margin-block: 1.25em;
}

/* Body links: refined underline offset */
a {
	text-underline-offset: 2px;
}

/* Forked Passport link button (.fp-btn) — filled near-black pill CTA for
   "book / visit / view" affiliate actions. Distinct from the default theme.json
   button (terracotta outline). Used by the "FP Link Button" pattern and by the
   "Forked Passport" Button block-style variation (is-style-fp-btn). Single source
   of truth for this component — do not re-add it to Global Styles > Additional CSS. */
.wp-block-button.fp-btn .wp-block-button__link,
.wp-block-button.is-style-fp-btn .wp-block-button__link,
a.fp-btn {
	display: inline-block;
	background-color: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--paper);
	font-size: 0.7rem;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	text-decoration: none;
	padding: 9px 20px;
	border-radius: 999px;
	line-height: 1;
	transition: background-color 0.2s ease, transform 0.15s ease;
}
.wp-block-button.fp-btn .wp-block-button__link:hover,
.wp-block-button.fp-btn .wp-block-button__link:focus,
.wp-block-button.is-style-fp-btn .wp-block-button__link:hover,
.wp-block-button.is-style-fp-btn .wp-block-button__link:focus,
a.fp-btn:hover,
a.fp-btn:focus {
	background-color: var(--wp--preset--color--clay);
	color: var(--wp--preset--color--paper);
	transform: translateY(-1px);
}

/* Visible keyboard focus — applies to links, buttons, nav items, search, inputs.
   :focus-visible keeps the outline off mouse clicks but on for keyboard users. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
.wp-element-button:focus-visible,
.wp-block-navigation-item__content:focus-visible,
.wp-block-search__input:focus-visible,
.wp-block-search__button:focus-visible {
	outline: 2px solid var(--wp--preset--color--ink);
	outline-offset: 2px;
	border-radius: 2px;
}
