/* EarthKosher — Knowledge Center & Startup Guide
 * Deliberately restrained: inherits the theme's fonts and colors, adds only
 * structural chrome. Tune --ek-accent to the site's brand green if desired. */

.ek-guide,
.ek-kc {
	--ek-accent: #236053;          /* EarthKosher brand green */
	--ek-accent-dark: #184539;     /* darker green for hover */
	--ek-line: rgba(0, 0, 0, .10);
	--ek-soft: rgba(0, 0, 0, .03);
	--ek-muted: rgba(0, 0, 0, .55);
	max-width: 860px;
	margin: 0 auto;
}

.ek-lead {
	font-size: 1.2em;
	line-height: 1.55;
	color: var(--ek-muted);
	margin: 0 0 1.5em;
}

/* ---------- Hub pillar ---------- */
.ek-answer {
	font-size: 1.2em;
	line-height: 1.55;
	margin: 0 0 1em;
}
.ek-hub-intro {
	color: var(--ek-muted);
	line-height: 1.6;
	margin: 0 0 1em;
}
.ek-hub h2 {
	scroll-margin-top: 90px;
	margin-top: 1.9em;
}
.ek-more {
	display: inline-block;
	margin-top: .2em;
	font-weight: 700;
	text-decoration: none;
	color: var(--ek-accent);
}
.ek-more:hover,
.ek-more:focus {
	text-decoration: underline;
}
.ek-table-caption {
	caption-side: top;
	text-align: left;
	font-size: .82em;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--ek-muted);
	margin-bottom: .5em;
}
.ek-checklist {
	margin: .6em 0 0;
	padding: 0;
	list-style: none;
}
.ek-checklist li {
	position: relative;
	padding: .3em 0 .3em 1.8em;
	line-height: 1.5;
}
.ek-checklist li::before {
	content: "✓";
	position: absolute;
	left: 0;
	top: .3em;
	color: var(--ek-accent);
	font-weight: 700;
}
.ek-scenarios p {
	line-height: 1.6;
	margin: 0 0 1em;
}

/* ---------- Breadcrumb ---------- */
.ek-crumbs {
	margin: 0 0 1.2em;
	font-size: .85em;
}
.ek-crumbs ol {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: .4em;
	color: var(--ek-muted);
}
.ek-crumbs li + li::before {
	content: "›";
	margin-right: .4em;
	color: var(--ek-muted);
}
.ek-crumbs a {
	color: var(--ek-muted);
	text-decoration: none;
}
.ek-crumbs a:hover {
	color: var(--ek-accent);
}
.ek-crumbs [aria-current="page"] {
	color: inherit;
	font-weight: 600;
}

/* ---------- In-cluster navigation ---------- */
.ek-cluster-nav {
	margin: 2.4em 0 0;
	padding: 1.3em 1.5em;
	background: var(--ek-soft);
	border: 1px solid var(--ek-line);
	border-radius: 10px;
}
.ek-cluster-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: .5em .7em;
}
.ek-cluster-nav a {
	display: inline-block;
	padding: .4em .85em;
	border: 1px solid var(--ek-line);
	border-radius: 20px;
	font-size: .9em;
	text-decoration: none;
	color: inherit;
	background: #fff;
}
.ek-cluster-nav a:hover,
.ek-cluster-nav a:focus {
	border-color: var(--ek-accent);
	color: var(--ek-accent);
}
.ek-cluster-current a {
	background: var(--ek-accent);
	color: #fff;
	border-color: var(--ek-accent);
}
.ek-cluster-current a:hover {
	color: #fff;
}

/* ---------- Hero ---------- */
.ek-hero-block {
	margin: 0 0 2.4em;
}
.ek-hero-eyebrow {
	margin: 0 0 .5em;
	font-size: .8em;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--ek-accent);
	font-weight: 700;
}
.ek-hero-title {
	margin: 0 0 .4em;
	line-height: 1.15;
}
.ek-hero-sub {
	font-size: 1.15em;
	line-height: 1.55;
	margin: 0 0 .6em;
}
.ek-hero-tagline {
	font-size: 1em;
	color: var(--ek-muted);
	margin: 0 0 1.2em;
}
.ek-byline {
	margin: 1em 0 0;
	font-size: .82em;
	letter-spacing: .02em;
	color: var(--ek-muted);
}
.ek-hero-block .ek-hero {
	margin-top: 1.6em;
}

/* ---------- Call to action ----------
 * Scoped + !important on the theme-overridable properties so Salient's
 * `#ajax-content-wrap a { color }` (id specificity) can't strip the styling. */
.ek-guide .ek-btn,
.ek-kc .ek-btn {
	display: inline-block;
	padding: .85em 1.6em;
	border-radius: 8px;
	font-size: 1.02em;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none !important;
	border: 2px solid var(--ek-accent);
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.ek-guide .ek-btn-primary,
.ek-kc .ek-btn-primary {
	background: var(--ek-accent) !important;
	color: #fff !important;
}
.ek-guide .ek-btn-primary:hover,
.ek-guide .ek-btn-primary:focus,
.ek-kc .ek-btn-primary:hover,
.ek-kc .ek-btn-primary:focus {
	background: var(--ek-accent-dark) !important;
	border-color: var(--ek-accent-dark);
	color: #fff !important;
}
.ek-guide .ek-btn-secondary,
.ek-kc .ek-btn-secondary {
	background: transparent !important;
	color: var(--ek-accent) !important;
}
.ek-guide .ek-btn-secondary:hover,
.ek-guide .ek-btn-secondary:focus,
.ek-kc .ek-btn-secondary:hover,
.ek-kc .ek-btn-secondary:focus {
	background: var(--ek-accent) !important;
	color: #fff !important;
}
.ek-cta-hero {
	display: flex;
	flex-wrap: wrap;
	gap: .8em;
	margin: 1.2em 0 0;
}
.ek-cta-inline {
	background: var(--ek-soft);
	border: 1px solid var(--ek-line);
	border-left: 4px solid var(--ek-accent);
	border-radius: 10px;
	padding: 1.4em 1.6em;
	margin: 2.4em 0;
}
.ek-cta-inline .ek-cta-text {
	margin: 0 0 1em;
	line-height: 1.55;
}
.ek-cta-inline .ek-btn {
	margin: 0;
}

/* ---------- Search ---------- */
.ek-search {
	position: relative;
	margin: 0 0 2.5em;
}
.ek-search-label {
	display: block;
	font-size: .8em;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--ek-muted);
	margin: 0 0 .5em;
}
.ek-search-input {
	width: 100%;
	box-sizing: border-box;
	padding: .8em 1em;
	font-size: 1.05em;
	line-height: 1.3;
	border: 1px solid var(--ek-line);
	border-radius: 8px;
	background: #fff;
	color: inherit;
	-webkit-appearance: none;
	appearance: none;
}
.ek-search-input:focus {
	outline: none;
	border-color: var(--ek-accent);
	box-shadow: 0 0 0 3px rgba(74, 124, 47, .15);
}
.ek-search-results {
	position: absolute;
	z-index: 40;
	left: 0;
	right: 0;
	margin-top: .4em;
	max-height: 60vh;
	overflow-y: auto;
	background: #fff;
	border: 1px solid var(--ek-line);
	border-radius: 8px;
	box-shadow: 0 12px 32px rgba(0, 0, 0, .12);
	padding: .5em 0;
}
.ek-search-group + .ek-search-group {
	border-top: 1px solid var(--ek-line);
	margin-top: .4em;
	padding-top: .4em;
}
.ek-search-group-title {
	margin: 0;
	padding: .4em 1.1em;
	font-size: .72em;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--ek-muted);
}
.ek-search-results ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.ek-search-results li {
	margin: 0;
}
.ek-search-results a {
	display: flex;
	flex-direction: column;
	gap: .15em;
	padding: .55em 1.1em;
	text-decoration: none;
	color: inherit;
	border: 0;
}
.ek-search-results a:hover,
.ek-search-results a:focus {
	background: var(--ek-soft);
}
.ek-search-hit {
	font-weight: 600;
	line-height: 1.35;
}
.ek-search-meta {
	font-size: .78em;
	color: var(--ek-muted);
}
.ek-search-empty {
	margin: 0;
	padding: .6em 1.1em;
	color: var(--ek-muted);
}

/* ---------- Table of contents ---------- */
.ek-toc {
	background: var(--ek-soft);
	border: 1px solid var(--ek-line);
	border-radius: 10px;
	padding: 1.4em 1.6em;
	margin: 0 0 2.5em;
}
.ek-toc-title {
	margin: 0 0 .7em;
	font-size: 1.1em;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: var(--ek-muted);
}
.ek-toc ol {
	margin: 0;
	padding: 0;
	counter-reset: ek-toc;
	list-style: none;
	columns: 2;
	column-gap: 2.2em;
}
.ek-toc li {
	counter-increment: ek-toc;
	margin: 0 0 .55em;
	break-inside: avoid;
	padding-left: 2.2em;
	text-indent: -2.2em;
}
.ek-toc li::before {
	content: counter(ek-toc);
	display: inline-block;
	width: 1.6em;
	margin-right: .6em;
	text-align: center;
	font-variant-numeric: tabular-nums;
	color: var(--ek-accent);
	font-weight: 700;
}

/* ---------- Figures / imagery ---------- */
.ek-figure {
	margin: 1.2em 0 1.8em;
}
.ek-figure img,
.ek-fig-img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 10px;
}
.ek-hero {
	margin: 0 0 2.2em;
}
.ek-chapter .ek-figure {
	margin-top: 1.4em;
}

/* ---------- Chapters ---------- */
.ek-chapter {
	padding: 2em 0 1.2em;
	border-top: 1px solid var(--ek-line);
	scroll-margin-top: 90px;
}
.ek-chapter-title {
	line-height: 1.25;
}
.ek-qnum {
	display: block;
	font-size: .5em;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--ek-accent);
	margin-bottom: .3em;
}
.ek-chapter h3 {
	scroll-margin-top: 90px;
	margin-top: 1.6em;
}
.ek-related {
	margin: 1.8em 0 0;
	padding: .9em 1.15em;
	background: var(--ek-soft);
	border-radius: 8px;
	font-size: .92em;
	line-height: 1.55;
}
.ek-related-label {
	font-weight: 700;
	color: var(--ek-accent);
	margin-right: .35em;
}
.ek-guide .ek-related a {
	text-decoration: underline;
}
.ek-back {
	margin: 1.6em 0 0;
	font-size: .85em;
}
.ek-back a {
	color: var(--ek-muted);
	text-decoration: none;
}
.ek-back a:hover {
	color: var(--ek-accent);
}

/* ---------- Myth / Reality callouts ---------- */
.ek-myth {
	margin-top: 1.4em;
}
.ek-reality {
	border-left: 3px solid var(--ek-accent);
	padding: .1em 0 .1em 1em;
	margin-left: 0;
	color: inherit;
}

/* ---------- FAQ ---------- */
.ek-faq {
	margin: .6em 0 0;
}
.ek-faq dt {
	font-weight: 600;
	margin-top: 1.1em;
}
.ek-faq dd {
	margin: .25em 0 0;
	color: inherit;
}

/* ---------- Tables ---------- */
.ek-table-wrap {
	overflow-x: auto;
	margin: 1.4em 0;
}
.ek-table {
	width: 100%;
	border-collapse: collapse;
	font-size: .96em;
}
.ek-table th,
.ek-table td {
	text-align: left;
	vertical-align: top;
	padding: .6em .9em;
	border: 1px solid var(--ek-line);
}
.ek-table thead th {
	background: var(--ek-soft);
	font-weight: 700;
}
.ek-table tbody th {
	font-weight: 600;
	background: rgba(0, 0, 0, .015);
}

/* ---------- Knowledge Center directory ---------- */
.ek-kc-section {
	margin: 0 0 2.6em;
}
.ek-kc-section + .ek-kc-section {
	border-top: 1px solid var(--ek-line);
	padding-top: 1.8em;
}
.ek-kc-section-title {
	margin: 0 0 .3em;
}
.ek-kc-count {
	font-size: .85em;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--ek-muted);
	margin: 0 0 1.2em;
}
.ek-kc-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.3em 2.2em;
}
.ek-kc-item {
	margin: 0;
}
.ek-kc-item-title {
	font-size: 1.05em;
	line-height: 1.35;
	margin: 0 0 .3em;
}
.ek-kc-item-title a {
	text-decoration: none;
}
.ek-kc-item-title a:hover,
.ek-kc-item-title a:focus {
	text-decoration: underline;
}
.ek-kc-item-desc {
	margin: 0;
	font-size: .9em;
	line-height: 1.5;
	color: var(--ek-muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
	.ek-toc ol {
		columns: 1;
	}
	.ek-kc-grid {
		grid-template-columns: 1fr;
	}
}
