/**
 * NOH Internal Links — front-end styles for related-post callouts.
 *
 * All rules are scoped under .nohil-related-callout to prevent any leakage
 * into theme styles. Class names use a unique "nohil-" prefix that should
 * not collide with WordPress core, WPRM, or theme conventions.
 *
 * Color palette is exposed as CSS custom properties so you can override
 * them in your theme if you want a different look:
 *
 *   .nohil-related-callout {
 *     --nohil-accent: #c4654c;
 *     --nohil-bg: #efe9e0;
 *     --nohil-text: #3a3a3a;
 *     --nohil-link: #8b3a26;
 *     --nohil-link-hover: #c4654c;
 *   }
 */

.nohil-related-callout {
	/* Color tokens (overridable from theme) */
	--nohil-accent:     #c4654c;
	--nohil-bg:         #efe9e0;
	--nohil-text:       #3a3a3a;
	--nohil-link:       #8b3a26;
	--nohil-link-hover: #c4654c;

	/* Layout */
	margin: 1.75em 0;
	padding: 1.25em 1.5em 1.25em 1.75em;
	border-left: 3px solid var(--nohil-accent);
	background: var(--nohil-bg);
	border-radius: 0 4px 4px 0;
	position: relative;
	overflow: hidden; /* contain the floated thumbnail */

	/* Typography */
	font-style: italic;
	font-family: inherit;
	color: var(--nohil-text);
	line-height: 1.55;
}

/* Floated thumbnail at the left, with text wrapping around it */
.nohil-related-callout__thumb-link {
	float: left;
	margin: 0.25em 1em 0.25em 0;
	display: block;
	line-height: 0;
	border-radius: 3px;
	overflow: hidden;
}

.nohil-related-callout__thumb {
	display: block;
	width: 90px;
	height: 90px;
	object-fit: cover;
	border-radius: 3px;
}

.nohil-related-callout::before {
	content: "RELATED";
	display: block;
	font-size: 0.7em;
	font-weight: 700;
	letter-spacing: 0.12em;
	color: var(--nohil-accent);
	margin-bottom: 0.5em;
	font-style: normal;
	font-family: inherit;
}

/* Italics inside the callout — make sure nested em/i still read as italic */
.nohil-related-callout em,
.nohil-related-callout i {
	font-style: italic;
}

.nohil-related-callout a {
	font-style: italic;
	color: var(--nohil-link);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}

.nohil-related-callout a:hover,
.nohil-related-callout a:focus {
	color: var(--nohil-link-hover);
}

@media (max-width: 600px) {
	.nohil-related-callout {
		padding: 1em 1.25em 1em 1.25em;
		margin: 1.25em 0;
	}
	.nohil-related-callout__thumb {
		width: 70px;
		height: 70px;
	}
	.nohil-related-callout__thumb-link {
		margin: 0.25em 0.75em 0.25em 0;
	}
}
