/* ==========================================================================
   templet.css — shared stylesheet for every AnimalsFarming guide page
   (Getting Started, Livestock, Health, Accounting, Employment Management,
   Marketplace Guide, Multi-Farm Management, Yield Tracking, and the
   Guides Hub).

   WHY THIS FILE EXISTS:
   Every one of these pages used to carry its own near-identical <style>
   block, copy-pasted from page to page with only its CSS variable prefix
   changed (--acc-, --emp-, --hg-, --liv-, --mg-, --mf-, --gd-, --yld-,
   --hub-). This file merges all of that into one place, scoped entirely
   under the single ".guide-page" class already present on every one of
   these templates' <main> tag — so updating a color or spacing value
   once now updates every guide page at once, instead of nine separate
   edits.

   WHY THIS CANNOT CONFLICT WITH main.css:
   Every custom property here is scoped to ".guide-page" (not :root), and
   uses its own "--gp-" prefix, so it can never collide with main.css's
   root-level variables (--primary, --primary-dark, --border, etc.) even
   by name. Every structural selector here (.container, buttons, etc.) is
   written as ".guide-page .container" rather than a bare ".container" —
   a descendant selector under .guide-page is more specific than
   main.css's bare ".container" rule, so it always wins *only inside
   these guide pages*, without needing !important and without changing
   how .container (or anything else) behaves anywhere else on the site.
   This is the same scoping technique each of the nine original <style>
   blocks already used individually — this file simply centralizes it.
   ========================================================================== */

.guide-page,
.guide-page * {
	box-sizing: border-box;
	min-width: 0;
}
.guide-page {
	--gp-primary: #16a34a;
	--gp-primary-dark: #15803d;
	--gp-primary-tint: #eaf7ee;
	--gp-text: #1f2937;
	--gp-muted: #6b7280;
	--gp-border: #e5e7eb;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	color: var(--gp-text);
}
.guide-page .container {
	max-width: 1120px;
	margin: 0 auto;
	padding: 0 24px;
}

/* ---- Hero ---- */
.guide-page .guide-hero {
	padding: 56px 0 32px;
	text-align: center;
}
.guide-page .guide-hero-eyebrow {
	display: inline-block;
	background: var(--gp-primary-tint);
	color: var(--gp-primary-dark);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	padding: 6px 14px;
	border-radius: 999px;
	margin-bottom: 16px;
}
.guide-page .guide-hero h1 {
	font-size: 38px;
	font-weight: 800;
	margin: 0 0 14px;
	line-height: 1.2;
	overflow-wrap: anywhere;
}
@media (max-width: 480px) {
	.guide-page .guide-hero h1 {
		font-size: 27px;
	}
}
.guide-page .guide-hero p {
	font-size: 16px;
	line-height: 1.7;
	color: var(--gp-muted);
	max-width: 640px;
	margin: 0 auto;
}

/* ---- Quick-jump pill nav ---- */
.guide-page .guide-jump-nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	padding: 24px 0 8px;
}
.guide-page .guide-jump-nav .container {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
}
.guide-page .guide-jump-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #fff;
	border: 1px solid var(--gp-border);
	color: var(--gp-text);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	padding: 8px 14px;
	border-radius: 999px;
	transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.guide-page .guide-jump-pill:hover {
	border-color: var(--gp-primary);
	color: var(--gp-primary-dark);
	background: var(--gp-primary-tint);
}
.guide-page .guide-jump-pill .num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--gp-primary-tint);
	color: var(--gp-primary-dark);
	font-size: 11px;
	font-weight: 800;
}

/* ---- Admin-only inline badge (used by multi-farm-guide-template.php) ---- */
.guide-page .guide-step-text p em {
	font-style: normal;
	display: inline-block;
	background: #fff7ed;
	color: #c2410c;
	font-size: 11.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	padding: 3px 9px;
	border-radius: 999px;
	margin-bottom: 8px;
}

/* ---- Steps ---- */
.guide-page .guide-step {
	padding: 48px 0;
	border-top: 1px solid var(--gp-border);
	scroll-margin-top: 20px;
}
.guide-page .guide-step-inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	align-items: center;
}
@media (max-width: 860px) {
	.guide-page .guide-step-inner {
		grid-template-columns: 1fr;
		gap: 24px;
	}
}
.guide-page .guide-step.is-reversed .guide-step-inner {
	direction: rtl;
}
.guide-page .guide-step.is-reversed .guide-step-text,
.guide-page .guide-step.is-reversed .guide-step-art {
	direction: ltr;
}
.guide-page .guide-step-number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--gp-primary);
	color: #fff;
	font-weight: 800;
	font-size: 15px;
	margin-bottom: 14px;
}
.guide-page .guide-step-text h2 {
	font-size: 24px;
	font-weight: 800;
	margin: 0 0 12px;
	overflow-wrap: anywhere;
}
.guide-page .guide-step-text p {
	font-size: 15px;
	line-height: 1.75;
	color: var(--gp-muted);
	margin: 0;
}
.guide-page .guide-step-text p a {
	color: var(--gp-primary-dark);
	font-weight: 700;
	text-decoration: none;
}
.guide-page .guide-step-text p a:hover {
	text-decoration: underline;
}
.guide-page .guide-step-text strong {
	color: var(--gp-text);
}
.guide-page .guide-step-art {
	display: flex;
	justify-content: center;
}
.guide-page .guide-step-art svg {
	width: 100%;
	max-width: 420px;
	height: auto;
	filter: drop-shadow(0 14px 30px rgba(16, 24, 40, 0.08));
}

/* ---- Closing CTA — illustrated guides (gradient box, two button styles) ---- */
.guide-page .guide-cta-section {
	padding: 56px 0 64px;
}
.guide-page .guide-cta-box {
	background: linear-gradient(135deg, var(--gp-primary) 0%, var(--gp-primary-dark) 100%);
	color: #fff;
	border-radius: 24px;
	padding: 44px 40px;
	text-align: center;
}
.guide-page .guide-cta-box h2 {
	margin: 0 0 12px;
	font-size: 26px;
	font-weight: 800;
}
.guide-page .guide-cta-box p {
	margin: 0 auto 24px;
	max-width: 520px;
	font-size: 15px;
	line-height: 1.7;
	opacity: 0.92;
}
.guide-page .guide-cta-actions {
	display: flex;
	justify-content: center;
	gap: 14px;
	flex-wrap: wrap;
}
.guide-page .guide-cta-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	text-decoration: none;
	font-size: 14px;
	font-weight: 700;
	padding: 13px 26px;
	border-radius: 8px;
	white-space: nowrap;
}
.guide-page .guide-cta-btn.is-solid {
	background: #fff;
	color: var(--gp-primary-dark);
}
.guide-page .guide-cta-btn.is-solid:hover {
	background: #f3f4f6;
}
.guide-page .guide-cta-btn.is-outline {
	border: 1.5px solid rgba(255, 255, 255, 0.7);
	color: #fff;
}
.guide-page .guide-cta-btn.is-outline:hover {
	background: rgba(255, 255, 255, 0.12);
}

/* ---- Closing CTA — Guides Hub variant (plain tint box, single solid button) ----
   The Hub page intentionally uses a simpler closing CTA than the eight
   illustrated step-by-step guides (no gradient, one button instead of
   two) — these ".--hub" rules layer on top of the shared rules above via
   two small modifier classes added only in
   Softwear-guides-hub-template.php's markup. */
.guide-page .guide-cta-box.guide-cta-box--hub {
	background: var(--gp-primary-tint);
	color: var(--gp-text);
}
.guide-page .guide-cta-box--hub h2 {
	color: var(--gp-primary-dark);
	font-size: 22px;
	margin: 0 0 10px;
}
.guide-page .guide-cta-box--hub p {
	color: var(--gp-text);
	max-width: 480px;
	font-size: 14.5px;
	opacity: 1;
	margin: 0 auto 20px;
}
.guide-page .guide-cta-btn.is-hub {
	background: var(--gp-primary);
	color: #fff;
}
.guide-page .guide-cta-btn.is-hub:hover {
	background: var(--gp-primary-dark);
}

@media (max-width: 480px) {
	.guide-page .container {
		padding: 0 16px;
	}
	.guide-page .guide-cta-box {
		padding: 32px 22px;
	}
}

/* ==========================================================================
   Guides Hub page — card grid layout (only used by
   Softwear-guides-hub-template.php)
   ========================================================================== */
.guide-page .hub-setup-hint {
	max-width: 720px;
	margin: 0 auto 40px;
	background: #fff7ed;
	border: 1.5px dashed #f59e0b;
	border-radius: 12px;
	padding: 18px 22px;
	font-size: 14px;
	line-height: 1.7;
	color: #92400e;
}
.guide-page .hub-setup-hint strong {
	color: #78350f;
}
.guide-page .hub-section {
	padding: 20px 0 44px;
}
.guide-page .hub-section-heading {
	display: flex;
	align-items: baseline;
	gap: 10px;
	margin: 0 0 22px;
}
.guide-page .hub-section-heading h2 {
	font-size: 22px;
	font-weight: 800;
	margin: 0;
}
.guide-page .hub-section-heading span.tag {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: var(--gp-primary-dark);
	background: var(--gp-primary-tint);
	padding: 4px 10px;
	border-radius: 999px;
}
.guide-page .hub-featured-card {
	display: flex;
	align-items: center;
	gap: 26px;
	background: linear-gradient(135deg, var(--gp-primary) 0%, var(--gp-primary-dark) 100%);
	color: #fff;
	border-radius: 20px;
	padding: 32px;
	text-decoration: none;
	margin-bottom: 18px;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.guide-page .hub-featured-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 16px 34px rgba(16, 24, 40, 0.16);
}
.guide-page .hub-featured-icon {
	flex: 0 0 auto;
	width: 74px;
	height: 74px;
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.18);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 34px;
}
.guide-page .hub-featured-body h3 {
	margin: 0 0 6px;
	font-size: 21px;
	font-weight: 800;
}
.guide-page .hub-featured-body p {
	margin: 0 0 4px;
	font-size: 14px;
	line-height: 1.6;
	opacity: 0.92;
	max-width: 560px;
}
.guide-page .hub-featured-body .hub-cta-arrow {
	display: inline-block;
	margin-top: 8px;
	font-size: 13px;
	font-weight: 700;
}
@media (max-width: 600px) {
	.guide-page .hub-featured-card {
		flex-direction: column;
		align-items: flex-start;
		text-align: left;
	}
}
.guide-page .hub-card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 20px;
}
.guide-page .hub-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--gp-border);
	border-radius: 16px;
	padding: 24px;
	text-decoration: none;
	color: var(--gp-text);
	transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.guide-page .hub-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 14px 30px rgba(16, 24, 40, 0.1);
	border-color: var(--gp-primary);
}
.guide-page .hub-card-icon {
	width: 54px;
	height: 54px;
	border-radius: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 26px;
	margin-bottom: 16px;
}
.guide-page .hub-card h3 {
	margin: 0 0 8px;
	font-size: 17px;
	font-weight: 800;
	overflow-wrap: anywhere;
}
.guide-page .hub-card p {
	margin: 0 0 14px;
	font-size: 13.5px;
	line-height: 1.65;
	color: var(--gp-muted);
	flex-grow: 1;
}
.guide-page .hub-card .hub-card-link {
	font-size: 13px;
	font-weight: 700;
	color: var(--gp-primary-dark);
}
.guide-page .hub-empty {
	border: 1.5px dashed var(--gp-border);
	border-radius: 14px;
	padding: 26px;
	text-align: center;
	color: var(--gp-muted);
	font-size: 14px;
}
