/* Wiki-style help page. Every selector is scoped to this template. */
.guide-wiki {
	--guide-ink: #202122;
	--guide-muted: #54595d;
	--guide-line: #a2a9b1;
	--guide-line-soft: #d8dde3;
	--guide-paper: #fff;
	--guide-soft: #f8f9fa;
	--guide-green: #276749;
	--guide-green-dark: #18563a;
	--guide-green-pale: #edf7f0;
	background: #fff;
	color: var(--guide-ink);
	font-family: "Source Sans 3", Arial, sans-serif;
	font-size: 16px;
	line-height: 1.65;
}

.guide-wiki *,
.guide-wiki *::before,
.guide-wiki *::after { box-sizing: border-box; }

.guide-wiki a { color: var(--guide-green-dark); }
.guide-wiki a:focus-visible { outline: 3px solid rgba(39, 103, 73, .24); outline-offset: 2px; }

/* Compact document masthead instead of a marketing-style hero. */
.guide-wiki__header {
	padding: 22px 0 28px;
	border-bottom: 1px solid var(--guide-line-soft);
	background: var(--guide-soft);
}

.guide-wiki .breadcrumb {
	margin: 0 0 20px;
	color: var(--guide-muted);
	font-size: 13px;
}

.guide-wiki .breadcrumb a { color: var(--guide-green-dark); text-decoration: none; }
.guide-wiki .breadcrumb a:hover { text-decoration: underline; }

.guide-wiki__heading {
	display: flex;
	max-width: 930px;
	align-items: flex-start;
	justify-content: space-between;
	gap: 36px;
}

.guide-wiki__eyebrow {
	margin: 0 0 5px;
	color: var(--guide-green);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.guide-wiki__heading h1 {
	margin: 0;
	color: var(--guide-ink);
	font-family: "Source Serif 4", Georgia, serif;
	font-size: clamp(36px, 4vw, 48px);
	font-weight: 600;
	letter-spacing: -.02em;
	line-height: 1.15;
}

.guide-wiki__lead {
	max-width: 720px;
	margin: 10px 0 0;
	color: var(--guide-muted);
	font-size: 17px;
	line-height: 1.55;
}

.guide-wiki__badge {
	display: grid;
	width: 72px;
	height: 72px;
	flex: 0 0 72px;
	place-items: center;
	border: 1px solid #b8cfc0;
	border-radius: 4px;
	background: #fff;
	color: var(--guide-green);
}

.guide-wiki__badge svg {
	width: 38px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2;
}

.guide-search {
	display: flex;
	width: min(720px, 100%);
	min-height: 48px;
	margin-top: 22px;
	align-items: center;
	border: 1px solid var(--guide-line);
	border-radius: 3px;
	background: #fff;
}

.guide-search:focus-within {
	border-color: var(--guide-green);
	box-shadow: 0 0 0 2px rgba(39, 103, 73, .18);
}

.guide-search svg {
	width: 20px;
	margin-left: 14px;
	flex: 0 0 20px;
	fill: none;
	stroke: #72777d;
	stroke-linecap: round;
	stroke-width: 2;
}

.guide-search input {
	min-width: 0;
	flex: 1;
	margin: 0;
	padding: 10px 12px;
	border: 0;
	outline: 0;
	background: transparent;
	color: var(--guide-ink);
	font: inherit;
}

.guide-search button {
	align-self: stretch;
	margin: -1px -1px -1px 0;
	padding: 0 22px;
	border: 1px solid var(--guide-green-dark);
	border-radius: 0 3px 3px 0;
	background: var(--guide-green);
	color: #fff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.guide-search button:hover { background: var(--guide-green-dark); }

/* Classic wiki: stable table of contents beside a readable article column. */
.guide-wiki__layout {
	display: grid;
	grid-template-columns: 240px minmax(0, 850px);
	justify-content: space-between;
	gap: 52px;
	padding-top: 34px;
	padding-bottom: 72px;
}

.guide-wiki__sidebar {
	min-width: 0;
	align-self: start;
}

.guide-toc {
	position: sticky;
	top: 92px;
	padding: 16px;
	border: 1px solid var(--guide-line-soft);
	background: var(--guide-soft);
}

.guide-toc__title {
	margin: 0 0 9px;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--guide-line);
	color: var(--guide-ink);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .025em;
}

.guide-toc ol { margin: 0; padding: 0; list-style: none; }
.guide-toc li { margin: 0; }

.guide-toc a {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 6px 7px;
	border-left: 3px solid transparent;
	color: #3d4942;
	font-size: 14px;
	line-height: 1.35;
	text-decoration: none;
}

.guide-toc a span {
	width: 18px;
	flex: 0 0 18px;
	color: #72777d;
	font-size: 12px;
	font-weight: 700;
	text-align: right;
}

.guide-toc a:hover,
.guide-toc a:focus-visible {
	border-left-color: var(--guide-green);
	background: var(--guide-green-pale);
	color: var(--guide-green-dark);
}

.guide-help-box {
	margin-top: 18px;
	padding: 15px 16px;
	border-left: 4px solid var(--guide-green);
	background: var(--guide-green-pale);
}

.guide-help-box strong { font-size: 14px; }
.guide-help-box p { margin: 5px 0 9px; color: var(--guide-muted); font-size: 13px; line-height: 1.45; }
.guide-help-box a { font-size: 13px; font-weight: 700; text-decoration: none; }
.guide-help-box a:hover { text-decoration: underline; }

.guide-wiki__content {
	min-width: 0;
	padding: 4px 0 0;
}

.guide-section {
	position: relative;
	padding: 0 0 42px;
	scroll-margin-top: 90px;
}

.guide-section + .guide-section { padding-top: 36px; }

.guide-section__number {
	position: absolute;
	top: 5px;
	right: 0;
	color: #72777d;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
}

.guide-section h2 {
	margin: 0 0 14px;
	padding: 0 50px 7px 0;
	border-bottom: 1px solid var(--guide-line);
	color: var(--guide-ink);
	font-family: "Source Serif 4", Georgia, serif;
	font-size: clamp(27px, 3vw, 32px);
	font-weight: 600;
	letter-spacing: -.012em;
	line-height: 1.25;
}

.guide-section h2 + p { margin: 0; color: #3d4246; font-size: 16px; line-height: 1.7; }

.guide-steps {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	margin-top: 22px;
	border: 1px solid var(--guide-line-soft);
	background: var(--guide-line-soft);
	gap: 1px;
}

.guide-steps > div { min-height: 124px; padding: 17px 18px; background: #fff; }
.guide-steps span { display: block; margin-bottom: 9px; color: var(--guide-green); font-size: 12px; font-weight: 800; }
.guide-steps strong, .guide-steps small { display: block; }
.guide-steps strong { font-size: 14px; }
.guide-steps small { margin-top: 4px; color: var(--guide-muted); font-size: 12px; line-height: 1.45; }

.guide-hubs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 21px; }

.guide-hub {
	display: grid;
	grid-template-columns: 38px 1fr auto;
	align-items: center;
	gap: 12px;
	padding: 14px;
	border: 1px solid var(--guide-line-soft);
	background: #fff;
	color: inherit;
	text-decoration: none;
}

.guide-hub:hover { border-color: var(--guide-green); background: #fbfdfb; color: inherit; }
.guide-hub__icon { display: grid; width: 38px; height: 38px; place-items: center; background: var(--guide-green-pale); }
.guide-hub__icon::before { color: var(--guide-green-dark); font-size: 20px; }
.guide-hub__icon--plant::before { content: "⌁"; transform: rotate(-25deg); font-size: 26px; }
.guide-hub__icon--bug::before { content: "✣"; }
.guide-hub__icon--soil::before { content: "≋"; font-size: 25px; }
.guide-hub__icon--process::before { content: "↻"; font-size: 23px; }
.guide-hub__icon--book::before { content: "Aa"; font-family: Georgia, serif; font-size: 14px; font-weight: 700; }
.guide-hub strong, .guide-hub small { display: block; }
.guide-hub strong { margin-bottom: 2px; color: var(--guide-ink); font-size: 15px; }
.guide-hub small { color: var(--guide-muted); font-size: 12px; line-height: 1.35; }
.guide-hub b { color: #72777d; font-size: 21px; font-weight: 400; }

.guide-anatomy { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 21px; border: 1px solid var(--guide-line-soft); background: var(--guide-line-soft); }
.guide-anatomy > div { padding: 15px 17px; background: var(--guide-soft); }
.guide-anatomy strong, .guide-anatomy span { display: block; }
.guide-anatomy strong { font-size: 14px; }
.guide-anatomy span { margin-top: 3px; color: var(--guide-muted); font-size: 13px; }

.guide-note { margin-top: 18px; padding: 15px 18px; border: 1px solid #d8c886; border-left: 4px solid #b69b2e; background: #fffdf2; }
.guide-note strong { color: #66540d; font-size: 14px; }
.guide-note p { margin: 5px 0 0; color: #5f5a47; font-size: 13px; line-height: 1.55; }

.guide-example { margin-top: 20px; border: 1px solid var(--guide-line-soft); background: #fff; }
.guide-example__row { display: grid; grid-template-columns: 94px 1fr; align-items: center; padding: 12px 15px; }
.guide-example__row + .guide-example__row { border-top: 1px solid var(--guide-line-soft); }
.guide-example__row span { font-size: 12px; font-weight: 800; text-transform: uppercase; }
.guide-example__row code { padding: 0; background: transparent; color: #30363a; font-family: inherit; font-size: 14px; }
.guide-example__row--good { border-left: 4px solid var(--guide-green); }
.guide-example__row--bad { border-left: 4px solid #a34f45; }
.guide-example__row--good span { color: var(--guide-green); }
.guide-example__row--bad span { color: #8b4139; }

.guide-checklist { margin: 18px 0 0; padding: 0; list-style: none; }
.guide-checklist li { position: relative; margin: 8px 0; padding-left: 25px; color: #3d4942; font-size: 14px; line-height: 1.5; }
.guide-checklist li::before { content: "✓"; position: absolute; top: 0; left: 0; color: var(--guide-green); font-weight: 800; }

.guide-feedback { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 20px; padding: 18px 20px; border: 1px solid #b8cfc0; background: var(--guide-green-pale); }
.guide-feedback strong { font-size: 14px; }
.guide-feedback ul { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 7px 0 0; padding-left: 18px; color: #435149; font-size: 13px; }
.guide-feedback__button { flex: 0 0 auto; padding: 10px 15px; border: 1px solid var(--guide-green-dark); border-radius: 3px; background: var(--guide-green); color: #fff !important; font-size: 13px; font-weight: 700; text-decoration: none !important; }
.guide-feedback__button:hover { background: var(--guide-green-dark); }
.guide-section--editor .entry-content > :first-child { margin-top: 0; }

@media (max-width: 980px) {
	.guide-wiki__layout { grid-template-columns: 210px minmax(0, 1fr); gap: 32px; }
	.guide-hubs { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
	.guide-wiki__layout { grid-template-columns: 1fr; gap: 26px; }
	.guide-wiki__sidebar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, .7fr); gap: 14px; }
	.guide-toc { position: static; }
	.guide-help-box { margin-top: 0; }
}

@media (max-width: 640px) {
	.guide-wiki__header { padding: 18px 0 22px; }
	.guide-wiki .breadcrumb { margin-bottom: 15px; }
	.guide-wiki__badge { display: none; }
	.guide-wiki__heading h1 { font-size: 34px; }
	.guide-wiki__lead { font-size: 15px; }
	.guide-search { min-height: 44px; margin-top: 18px; }
	.guide-search input { padding: 8px 9px; font-size: 14px; }
	.guide-search button { padding: 0 12px; font-size: 13px; }
	.guide-wiki__layout { padding-top: 22px; padding-bottom: 48px; }
	.guide-wiki__sidebar { display: block; }
	.guide-help-box { display: none; }
	.guide-toc ol { display: grid; grid-template-columns: 1fr 1fr; }
	.guide-section { padding-bottom: 34px; }
	.guide-section + .guide-section { padding-top: 28px; }
	.guide-section h2 { padding-right: 40px; font-size: 26px; }
	.guide-steps, .guide-anatomy { grid-template-columns: 1fr; }
	.guide-steps > div { min-height: 0; }
	.guide-hubs { grid-template-columns: 1fr; }
	.guide-hub { grid-template-columns: 36px 1fr auto; padding: 12px; }
	.guide-hub__icon { width: 36px; height: 36px; }
	.guide-example__row { grid-template-columns: 80px 1fr; }
	.guide-feedback { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
	.guide-wiki *, .guide-wiki *::before, .guide-wiki *::after { scroll-behavior: auto !important; transition: none !important; }
}
