/**
 * NextGrowthPilot Content: key takeaways, FAQ, "who it is for", related reading.
 * Uses the theme tokens (via the Software Manager's --sm-* variables).
 */

.ngp-ct-takeaways {
	background: var(--ngp-teal-wash, #ecfbf4);
	border: 1px solid var(--ngp-border, #e2e8f0);
	border-left: 4px solid var(--ngp-emerald, #087f5b);
	border-radius: var(--ngp-radius-card, 14px);
	margin: 0 0 var(--ngp-s6, 2rem);
	padding: var(--ngp-s5, 1.5rem);
}
.ngp-ct-takeaways__title {
	color: var(--ngp-navy, #14243a);
	font-family: var(--ngp-font-heading, inherit);
	font-size: var(--ngp-fs-lg, 1.25rem);
	margin: 0 0 var(--ngp-s3, 0.75rem);
}
.ngp-ct-takeaways ul { margin: 0; padding-left: 1.25em; }
.ngp-ct-takeaways li + li { margin-top: var(--ngp-s2, 0.5rem); }

.ngp-ct-fit__grid,
.ngp-ct-related__grid {
	display: grid;
	gap: var(--ngp-s4, 1rem);
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.ngp-ct-fit__card { padding: var(--ngp-s5, 1.5rem); }
.ngp-ct-fit__card h3 {
	color: var(--ngp-navy, #14243a);
	font-size: var(--ngp-fs-md, 1.0625rem);
	margin: 0 0 var(--ngp-s3, 0.75rem);
}
.ngp-ct-fit__card--yes { border-top: 3px solid var(--ngp-emerald, #087f5b); }
.ngp-ct-fit__card--no { border-top: 3px solid var(--ngp-warning, #94570f); }
.ngp-ct-fit__list { margin: 0; padding-left: 1.25em; }
.ngp-ct-fit__list li + li { margin-top: var(--ngp-s2, 0.5rem); }

.ngp-ct-faqlist { border-top: 1px solid var(--ngp-border, #e2e8f0); }
.ngp-ct-faqlist__item { border-bottom: 1px solid var(--ngp-border, #e2e8f0); }
.ngp-ct-faqlist__item summary {
	color: var(--ngp-navy, #14243a);
	cursor: pointer;
	font-weight: 600;
	list-style: none;
	padding: var(--ngp-s4, 1rem) 2rem var(--ngp-s4, 1rem) 0;
	position: relative;
}
.ngp-ct-faqlist__item summary::-webkit-details-marker { display: none; }
.ngp-ct-faqlist__item summary::after {
	color: var(--ngp-emerald, #087f5b);
	content: "+";
	font-size: 1.25em;
	line-height: 1;
	position: absolute;
	right: 0.25rem;
	top: 50%;
	transform: translateY(-50%);
}
.ngp-ct-faqlist__item[open] summary::after { content: "\2212"; }
.ngp-ct-faqlist__item summary:focus-visible { outline: 2px solid var(--ngp-focus, #0d9488); outline-offset: 2px; }
.ngp-ct-faqlist__answer { padding: 0 0 var(--ngp-s4, 1rem); }
.ngp-ct-faqlist__answer p { margin: 0 0 var(--ngp-s3, 0.75rem); }
.ngp-ct-faqlist__answer p:last-child { margin-bottom: 0; }

.ngp-ct-related__group {
	background: var(--ngp-surface, #fff);
	border: 1px solid var(--ngp-border, #e2e8f0);
	border-radius: var(--ngp-radius-card, 14px);
	padding: var(--ngp-s5, 1.5rem);
}
.ngp-ct-related__title {
	color: var(--ngp-text-muted, #5b6b80);
	font-size: var(--ngp-fs-sm, 0.875rem);
	letter-spacing: 0.04em;
	margin: 0 0 var(--ngp-s3, 0.75rem);
	text-transform: uppercase;
}
.ngp-ct-related__list { list-style: none; margin: 0; padding: 0; }
.ngp-ct-related__list li + li { margin-top: var(--ngp-s2, 0.5rem); }
.ngp-ct-related__list a { color: var(--ngp-emerald-ink, #065f46); font-weight: 600; text-decoration: none; }
.ngp-ct-related__list a:hover,
.ngp-ct-related__list a:focus { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
	.ngp-ct-faqlist__item summary { transition: none; }
}

/* ---------- Review: use cases, alternatives, final decision ---------- */

.ngp-ct-usecases { display: grid; gap: var(--ngp-s3, 0.75rem); margin: 0; }
.ngp-ct-usecases > div {
	border-left: 3px solid var(--ngp-teal, #0d9488);
	padding: var(--ngp-s2, 0.5rem) 0 var(--ngp-s2, 0.5rem) var(--ngp-s4, 1rem);
}
.ngp-ct-usecases dt { color: var(--ngp-navy, #14243a); font-weight: 700; }
.ngp-ct-usecases dd { color: var(--ngp-text-muted, #5b6b80); margin: 2px 0 0; }

.ngp-ct-alts {
	display: grid;
	gap: var(--ngp-s4, 1rem);
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
}
.ngp-ct-alt { padding: var(--ngp-s5, 1.5rem); }
.ngp-ct-alt p { margin: 0; }
.ngp-ct-alt p + p { margin-top: var(--ngp-s2, 0.5rem); }
.ngp-ct-alt__name a { color: var(--ngp-navy, #14243a); font-weight: 700; text-decoration: none; }
.ngp-ct-alt__name a:hover, .ngp-ct-alt__name a:focus { text-decoration: underline; }
.ngp-ct-alt__price { color: var(--ngp-text-muted, #5b6b80); display: block; font-size: var(--ngp-fs-sm, 0.875rem); }
.ngp-ct-final {
	background: var(--ngp-teal-wash, #ecfbf4);
	border-radius: var(--ngp-radius-card, 14px);
	padding: var(--ngp-s5, 1.5rem);
}

/* ---------- Comparison: decision matrix ---------- */

.ngp-ct-tablewrap { margin: var(--ngp-s4, 1rem) 0 var(--ngp-s6, 2rem); overflow-x: auto; }
.ngp-ct-matrix { border-collapse: collapse; min-width: 520px; width: 100%; }
.ngp-ct-matrix th, .ngp-ct-matrix td {
	border-bottom: 1px solid var(--ngp-border, #e2e8f0);
	padding: var(--ngp-s3, 0.75rem);
	text-align: left;
	vertical-align: top;
}
.ngp-ct-matrix thead th { color: var(--ngp-text-muted, #5b6b80); font-size: var(--ngp-fs-sm, 0.875rem); }
.ngp-ct-matrix tbody th { color: var(--ngp-navy, #14243a); font-weight: 600; }
.ngp-ct-matrix td a { color: var(--ngp-emerald-ink, #065f46); font-weight: 700; }

/* ---------- Limits, sources, next steps ---------- */

.ngp-ct-limits, .ngp-ct-sources { margin: 0; padding-left: 1.25em; }
.ngp-ct-limits li + li, .ngp-ct-sources li + li { margin-top: var(--ngp-s2, 0.5rem); }
.ngp-ct-sources a { color: var(--ngp-emerald-ink, #065f46); }

.ngp-ct-next {
	border: 1px solid var(--ngp-border, #e2e8f0);
	border-radius: var(--ngp-radius-card, 14px);
	margin: var(--ngp-s6, 2rem) 0;
	padding: var(--ngp-s5, 1.5rem);
}
.ngp-ct-next p { margin: 0 0 var(--ngp-s3, 0.75rem); }
.ngp-ct-next__title { color: var(--ngp-navy, #14243a); font-family: var(--ngp-font-heading, inherit); font-size: var(--ngp-fs-lg, 1.25rem); font-weight: 700; }

/* ---------- Category hub ---------- */

.ngp-ct-needs__list {
	display: grid;
	gap: var(--ngp-s3, 0.75rem);
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
}
.ngp-ct-needs__list li {
	background: var(--ngp-surface, #fff);
	border: 1px solid var(--ngp-border, #e2e8f0);
	border-radius: var(--ngp-radius-card, 14px);
	padding: var(--ngp-s4, 1rem);
}
.ngp-ct-needs__list strong { color: var(--ngp-navy, #14243a); display: block; }
.ngp-ct-needs__list span { color: var(--ngp-text-muted, #5b6b80); display: block; font-size: var(--ngp-fs-sm, 0.875rem); margin-top: 4px; }
.ngp-ct-hublinks {
	display: grid;
	gap: var(--ngp-s4, 1rem);
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
}
.ngp-ct-hublinks li { padding: var(--ngp-s5, 1.5rem); }
.ngp-ct-hublinks a { color: var(--ngp-navy, #14243a); font-weight: 700; text-decoration: none; }
.ngp-ct-hublinks a:hover, .ngp-ct-hublinks a:focus { text-decoration: underline; }
.ngp-ct-hublinks p { color: var(--ngp-text-muted, #5b6b80); font-size: var(--ngp-fs-sm, 0.875rem); margin: var(--ngp-s2, 0.5rem) 0 0; }

/* ---------- Find My Tool ---------- */

.ngp-ct-finder__form { display: grid; gap: var(--ngp-s4, 1rem); }
.ngp-ct-q {
	border: 1px solid var(--ngp-border, #e2e8f0);
	border-radius: var(--ngp-radius-card, 14px);
	margin: 0;
	padding: var(--ngp-s4, 1rem) var(--ngp-s5, 1.5rem) var(--ngp-s5, 1.5rem);
}
.ngp-ct-q legend { color: var(--ngp-navy, #14243a); font-family: var(--ngp-font-heading, inherit); font-weight: 700; padding: 0 var(--ngp-s2, 0.5rem); }
.ngp-ct-q select { max-width: 100%; min-height: 44px; min-width: 240px; }
.ngp-ct-opt { align-items: center; display: inline-flex; gap: 8px; margin: 6px 18px 6px 0; min-height: 32px; }
.ngp-ct-opt input { height: 18px; width: 18px; }
.ngp-ct-hint { color: var(--ngp-text-muted, #5b6b80); font-size: var(--ngp-fs-sm, 0.875rem); margin: 0 0 var(--ngp-s2, 0.5rem); }
.ngp-ct-finder__results { margin-top: var(--ngp-s7, 3rem); }
.ngp-ct-finder__list { display: grid; gap: var(--ngp-s4, 1rem); list-style: none; margin: var(--ngp-s4, 1rem) 0; padding: 0; }
.ngp-ct-pick { padding: var(--ngp-s5, 1.5rem); }
.ngp-ct-pick__head { align-items: center; display: flex; gap: var(--ngp-s3, 0.75rem); }
.ngp-ct-pick__name { font-size: var(--ngp-fs-lg, 1.25rem); margin: 0; }
.ngp-ct-pick__name a { color: var(--ngp-navy, #14243a); text-decoration: none; }
.ngp-ct-pick__for { color: var(--ngp-text-muted, #5b6b80); margin: 2px 0 0; }
.ngp-ct-pick__label { font-size: var(--ngp-fs-sm, 0.875rem); font-weight: 700; letter-spacing: 0.03em; margin: var(--ngp-s4, 1rem) 0 var(--ngp-s2, 0.5rem); text-transform: uppercase; }
.ngp-ct-pick__why, .ngp-ct-pick__limits { margin: 0; padding-left: 1.25em; }
.ngp-ct-pick__why li::marker { color: var(--ngp-emerald, #087f5b); }
.ngp-ct-pick__limits li::marker { color: var(--ngp-warning, #94570f); }
.ngp-ct-pick__actions { align-items: center; display: flex; flex-wrap: wrap; gap: var(--ngp-s3, 0.75rem); margin: var(--ngp-s4, 1rem) 0 0; }
.ngp-ct-finder__excluded { margin-top: var(--ngp-s4, 1rem); }
.ngp-ct-finder__excluded summary { cursor: pointer; font-weight: 600; }

@media (max-width: 600px) {
	.ngp-ct-q select { min-width: 0; width: 100%; }
	.ngp-ct-opt { display: flex; margin-right: 0; }
}

/* ---------- Review page extras (1.3.0) ---------- */

.ngp-ct-herolinks {
	align-items: center;
	color: var(--ngp-text-muted, #5b6b80);
	display: flex;
	flex-wrap: wrap;
	font-size: var(--ngp-fs-sm, 0.875rem);
	gap: var(--ngp-s2, 0.5rem) var(--ngp-s3, 0.75rem);
	margin: var(--ngp-s3, 0.75rem) 0 0;
}
.ngp-ct-herolinks a { color: var(--ngp-emerald-ink, #065f46); font-weight: 600; }

.ngp-ct-note { color: var(--ngp-text-muted, #5b6b80); font-size: var(--ngp-fs-sm, 0.875rem); margin: var(--ngp-s2, 0.5rem) 0 var(--ngp-s4, 1rem); }

.ngp-ct-fitlist { display: grid; gap: var(--ngp-s3, 0.75rem); list-style: none; margin: 0; padding: 0; }
.ngp-ct-fitlist__item {
	align-items: center;
	background: var(--ngp-surface, #fff);
	border: 1px solid var(--ngp-border, #e2e8f0);
	border-radius: var(--ngp-radius-card, 14px);
	display: grid;
	gap: 4px var(--ngp-s3, 0.75rem);
	grid-template-columns: 1fr auto;
	padding: var(--ngp-s3, 0.75rem) var(--ngp-s4, 1rem);
}
.ngp-ct-fitlist__need { color: var(--ngp-navy, #14243a); font-weight: 700; }
.ngp-ct-fitlist__why { color: var(--ngp-text-muted, #5b6b80); font-size: var(--ngp-fs-sm, 0.875rem); grid-column: 1 / -1; }
.ngp-ct-badge {
	border-radius: 999px;
	font-size: var(--ngp-fs-xs, 0.8125rem);
	font-weight: 700;
	padding: 3px 10px;
	white-space: nowrap;
}
.ngp-ct-badge--strong { background: var(--ngp-mint, #ddf7ec); color: var(--ngp-emerald-ink, #065f46); }
.ngp-ct-badge--conditional { background: #eef2f7; color: var(--ngp-navy, #14243a); }
.ngp-ct-badge--limited { background: var(--ngp-warning-wash, #fdf3e6); color: var(--ngp-warning, #94570f); }
.ngp-ct-next--inline { align-items: center; display: flex; flex-wrap: wrap; gap: var(--ngp-s3, 0.75rem) var(--ngp-s5, 1.5rem); justify-content: space-between; margin: var(--ngp-s5, 1.5rem) 0 0; }
.ngp-ct-next--inline p { flex: 1 1 260px; margin: 0; }

.ngp-ct-cmp__wrap { border: 1px solid var(--ngp-border, #e2e8f0); border-radius: var(--ngp-radius-card, 14px); }
.ngp-ct-cmp__wrap:focus-visible { outline: 2px solid var(--ngp-teal, #0d9488); outline-offset: 2px; }
.ngp-ct-cmp { border-collapse: separate; border-spacing: 0; min-width: 560px; width: 100%; }
.ngp-ct-cmp th, .ngp-ct-cmp td {
	background: var(--ngp-surface, #fff);
	border-bottom: 1px solid var(--ngp-border, #e2e8f0);
	font-size: var(--ngp-fs-sm, 0.875rem);
	padding: var(--ngp-s3, 0.75rem);
	text-align: left;
	vertical-align: top;
}
.ngp-ct-cmp tr:last-child th, .ngp-ct-cmp tr:last-child td { border-bottom: 0; }
.ngp-ct-cmp thead th { background: var(--ngp-bg, #f5f7fa); vertical-align: bottom; }
.ngp-ct-cmp tbody th { color: var(--ngp-text-muted, #5b6b80); font-weight: 600; width: 22%; }
.ngp-ct-cmp th:first-child { left: 0; position: sticky; z-index: 1; }
.ngp-ct-cmp thead th:nth-child(2), .ngp-ct-cmp td:nth-child(2) { background: var(--ngp-teal-wash, #ecfbf4); }
.ngp-ct-cmp__name { color: var(--ngp-navy, #14243a); display: block; font-size: var(--ngp-fs-base, 1rem); font-weight: 800; }
.ngp-ct-cmp__tag { color: var(--ngp-emerald-ink, #065f46); display: block; font-size: var(--ngp-fs-xs, 0.8125rem); font-weight: 600; margin-top: 2px; }
.ngp-ct-cmp td a { color: var(--ngp-emerald-ink, #065f46); font-weight: 600; }
.ngp-ct-cmp__foot { margin: var(--ngp-s3, 0.75rem) 0 0; }

.ngp-ct-alt__head { align-items: center; display: flex; gap: var(--ngp-s3, 0.75rem); }
.ngp-ct-alt__label {
	background: var(--ngp-mint, #ddf7ec);
	border-radius: 999px;
	color: var(--ngp-emerald-ink, #065f46);
	display: inline-block;
	font-size: var(--ngp-fs-xs, 0.8125rem);
	font-weight: 700;
	padding: 3px 10px;
}
.ngp-ct-alt__for { color: var(--ngp-text-muted, #5b6b80); font-size: var(--ngp-fs-sm, 0.875rem); }
.ngp-ct-alt__links { display: flex; flex-wrap: wrap; gap: var(--ngp-s2, 0.5rem) var(--ngp-s4, 1rem); }
.ngp-ct-alt__links a { color: var(--ngp-emerald-ink, #065f46); font-weight: 600; }

.ngp-ct-sticky {
	background: rgba(255, 255, 255, 0.98);
	border-top: 1px solid var(--ngp-border, #e2e8f0);
	bottom: 0;
	box-shadow: 0 -8px 24px -16px rgba(20, 36, 58, 0.35);
	left: 0;
	padding: var(--ngp-s2, 0.5rem) var(--ngp-gutter, 16px) calc(var(--ngp-s2, 0.5rem) + env(safe-area-inset-bottom, 0px));
	position: fixed;
	right: 0;
	z-index: 90;
}
.ngp-ct-sticky[hidden] { display: none; }
.ngp-ct-sticky__inner { align-items: center; display: flex; gap: var(--ngp-s3, 0.75rem); margin: 0 auto; max-width: var(--ngp-narrow, 760px); position: relative; }
.ngp-ct-sticky__text { flex: 1 1 auto; line-height: 1.3; margin: 0; min-width: 0; }
.ngp-ct-sticky__text strong { color: var(--ngp-navy, #14243a); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ngp-ct-sticky__text span { color: var(--ngp-text-muted, #5b6b80); display: block; font-size: var(--ngp-fs-xs, 0.8125rem); }
.ngp-ct-sticky__btn { flex: none; min-height: var(--ngp-control, 44px); }
.ngp-ct-sticky__close {
	background: none;
	border: 0;
	border-radius: 8px;
	color: var(--ngp-text-muted, #5b6b80);
	cursor: pointer;
	flex: none;
	font-size: 1.5rem;
	height: var(--ngp-control, 44px);
	line-height: 1;
	width: var(--ngp-control, 44px);
}
.ngp-ct-sticky__close:hover { color: var(--ngp-navy, #14243a); }
.ngp-ct-sticky__close:focus-visible { outline: 2px solid var(--ngp-teal, #0d9488); outline-offset: 2px; }
.ngp-ct-sticky__aff { bottom: -2px; color: var(--ngp-text-muted, #5b6b80); font-size: 0.6875rem; position: absolute; right: 52px; }
body.ngp-ct-sticky-on { padding-bottom: 76px; }

@media (max-width: 479px) {
	.ngp-ct-sticky .ngp-logo-tile { display: none; }
	.ngp-ct-sticky__btn { padding-inline: var(--ngp-s4, 1rem); }
}
@media (prefers-reduced-motion: no-preference) {
	.ngp-ct-sticky { animation: ngp-ct-rise 0.2s ease-out; }
	@keyframes ngp-ct-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}
@media print {
	.ngp-ct-sticky { display: none !important; }
}

/* Theme feature table on very small phones: wrap long notes instead of widening the page. */
@media (max-width: 400px) {
	.ngp-review .ngp-feature-table { table-layout: fixed; }
	.ngp-review .ngp-feature-table th,
	.ngp-review .ngp-feature-table td { overflow-wrap: anywhere; padding: 10px 8px; }
	.ngp-review .ngp-feature-table .ngp-fact,
	.ngp-review .ngp-feature-table .ngp-fact span { max-width: 100%; white-space: normal; }
}
