/* ============================================================
   The Plant Native — Host Plant Callout
   ONE responsive design:
     • Mobile  = full-screen 9:16 poster. Screenshot it for an IG reel.
     • Desktop = a contained editorial card in the article.
   Same markup, no separate modes.
   Uses site design tokens when present (var(--tpn-*)); falls back
   to brand hex so it looks right anywhere.
   ============================================================ */

.pn-hpc {
	--_dark-green: var(--tpn-dark-green, #235327);
	--_accent-green: var(--tpn-accent-green, #046D3C);
	--_sand: var(--tpn-warm-sand, #F9F7F3);
	--_body: var(--tpn-body-text, #1E1E1E);
	--_muted: var(--tpn-muted, #4E5243);
	--_muted-light: var(--tpn-muted-light, #7a7d6f);
	--_goldenrod: var(--tpn-accent-goldenrod, #DAA520);
	--_border: var(--tpn-border, #E8E8E0);

	--_font-display: var(--font-display, "Gooper", Georgia, "Times New Roman", serif);
	--_font-body: var(--font-body, "sole-serif-small-variable", Georgia, serif);
	--_font-mono: var(--font-mono, "Flexa Mono", "IBM Plex Mono", "Courier New", monospace);

	box-sizing: border-box;
	display: block;
	background: var(--_card, #ffffff);
	color: var(--_body);
	/* No outer spacing; control placement with the Elementor widget's margins. */
	margin: 0;
	border: 1px solid var(--_border);
	border-radius: 12px;
	overflow: hidden;
	box-shadow: var(--tpn-shadow-sm, 0 4px 12px -4px rgba(35, 83, 39, 0.15));
}

.pn-hpc *,
.pn-hpc *::before,
.pn-hpc *::after {
	box-sizing: border-box;
}

/* Guard against theme / Elementor styles leaking in. Everything below is
   scoped with the .pn-hpc ancestor so these win over rules like
   ".entry-content p { margin-bottom: 25px }" or a sitewide link colour. */
.pn-hpc p {
	margin: 0;
	padding: 0;
}

.pn-hpc__inner {
	display: flex;
	flex-direction: column;
	padding: clamp(1.5rem, 5.5vw, 2rem);
}

/* ---------- Header: eyebrow + butterfly icon (no logo) ---------- */
.pn-hpc__top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
}

.pn-hpc .pn-hpc__eyebrow {
	margin: 0;
	font-family: var(--_font-mono);
	font-size: 13px;
	font-weight: 400;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--_dark-green);
}

.pn-hpc__icon {
	flex: none;
	width: 3.35rem;
	height: 3.35rem;
	/* Deeper goldenrod so the butterfly reads well on the card. */
	color: var(--tpn-accent-goldenrod-deep, #B8860B);
}

.pn-hpc__icon svg {
	display: block;
	width: 100%;
	height: 100%;
}

/* ---------- Body (centered on the poster) ---------- */
.pn-hpc__body {
	padding: 1.1rem 0 0;
}

.pn-hpc .pn-hpc__lead {
	margin: 0;
	font-family: var(--_font-display);
	font-size: clamp(1.3rem, 5vw, 1.65rem);
	line-height: 1.15;
	font-weight: 400;
	color: var(--_body);
}

.pn-hpc__plant {
	font-weight: 700;
}

.pn-hpc__latin {
	font-style: italic;
	font-weight: 400;
}

.pn-hpc__stat {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.1rem;
	/* A touch of air under the lead line (mobile; desktop overrides below). */
	margin-top: 0.15rem;
	margin-bottom: 0.95rem;
}

.pn-hpc__number {
	font-family: var(--_font-display);
	font-weight: 700;
	line-height: 0.85;
	font-size: clamp(4.25rem, 20vw, 6rem);
	color: var(--_dark-green);
	letter-spacing: -0.01em;
}

.pn-hpc__label {
	font-family: var(--_font-display);
	font-size: clamp(1.5rem, 6.5vw, 2rem);
	line-height: 1.1;
	font-weight: 400;
	color: var(--_dark-green);
	max-width: 15ch;
}

.pn-hpc .pn-hpc__sentence {
	margin: 0 0 1.15rem;
	font-family: var(--_font-body);
	font-size: clamp(0.95rem, 3.6vw, 1.05rem);
	line-height: 1.5;
	color: var(--_body);
	max-width: 48ch;
}

/* ---------- Notable species: plain text, small ---------- */
.pn-hpc__notable {
	margin: 0;
}

.pn-hpc .pn-hpc__notable-label {
	margin: 0 0 0.1rem;
	font-family: var(--_font-mono);
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--_muted);
}

.pn-hpc .pn-hpc__notable-list {
	margin: 0;
	font-family: var(--_font-body);
	font-size: clamp(0.85rem, 3vw, 0.92rem);
	line-height: 1.5;
	color: var(--_muted);
}

.pn-hpc__notable-sep {
	color: var(--_dark-green);
	padding: 0 0.1rem;
}

/* ---------- Footer: CTA + handle + citation ---------- */
.pn-hpc__foot {
	margin-top: 1.35rem;
}

.pn-hpc .pn-hpc__cta {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--_font-mono);
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	/* Force white text; beats a sitewide link colour. */
	color: #ffffff;
	background: var(--_dark-green);
	border-radius: 999px;
	line-height: 1;
	padding: 0.7rem 1.4rem;
	transition: transform 0.2s ease, background 0.2s ease;
}

.pn-hpc .pn-hpc__cta:hover,
.pn-hpc .pn-hpc__cta:focus {
	background: var(--_goldenrod);
	transform: translateY(-1px);
	color: #1E1E1E;
}

.pn-hpc__cta-arrow {
	transition: transform 0.2s ease;
}

.pn-hpc .pn-hpc__cta:hover .pn-hpc__cta-arrow,
.pn-hpc .pn-hpc__cta:focus .pn-hpc__cta-arrow {
	transform: translateX(3px);
}

.pn-hpc .pn-hpc__source {
	margin: 0.85rem 0 0;
	font-family: var(--_font-mono);
	font-size: 11px;
	line-height: 1.5;
	letter-spacing: 0.02em;
	color: var(--_muted);
}

.pn-hpc .pn-hpc__source-link {
	color: var(--_dark-green);
	text-decoration: underline;
	text-underline-offset: 2px;
	white-space: nowrap;
}

.pn-hpc__source-link:hover,
.pn-hpc__source-link:focus {
	color: var(--_body);
}

.pn-hpc a:focus-visible {
	outline: 2px solid var(--_accent-green);
	outline-offset: 3px;
	border-radius: 4px;
}

/* Mobile CTA: full width, easy to see in the screenshot */
@media (max-width: 639px) {
	.pn-hpc__cta {
		width: 100%;
		justify-content: center;
	}
}

/* ============================================================
   DESKTOP — full-width editorial card inside the article.
   ============================================================ */
@media (min-width: 640px) {
	.pn-hpc {
		width: 100%;       /* fill the container / column width */
		max-width: none;
		min-height: 0;
		margin: 0;
		border: 1px solid var(--_border);
		border-radius: var(--tpn-radius-xl, 12px);
		overflow: hidden;
		box-shadow: var(--tpn-shadow-sm, 0 4px 12px -4px rgba(35, 83, 39, 0.15));
	}

	.pn-hpc__inner {
		display: block;
		min-height: 0;
		padding: clamp(2rem, 4vw, 2.75rem);
	}

	.pn-hpc__top {
		margin-bottom: 0.9rem;
	}

	.pn-hpc__icon {
		width: 3.6rem;
		height: 3.6rem;
	}

	.pn-hpc__body {
		display: block;
		padding: 0;
	}

	.pn-hpc__number {
		font-size: 4.5rem;
	}

	.pn-hpc__label {
		font-size: 1.6rem;
	}

	.pn-hpc .pn-hpc__lead {
		font-size: 1.5rem;
		margin: 0 0 0.25rem;
	}

	.pn-hpc__stat {
		/* A little more air around the number on desktop. */
		margin-top: 0;
		gap: 0.35rem;
		margin-bottom: 1.1rem;
	}

	.pn-hpc .pn-hpc__sentence {
		font-size: 1.0625rem;
		margin: 0 0 1.35rem;
	}

	.pn-hpc__notable {
		padding-top: 1.25rem;
		border-top: 1px solid var(--_border);
	}

	.pn-hpc .pn-hpc__notable-list {
		font-size: 0.95rem;
	}

	.pn-hpc__foot {
		margin-top: 1.5rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pn-hpc__cta,
	.pn-hpc__cta-arrow {
		transition: none;
	}
}
