/* ==== CookerSuggest article components (cs-article.php) ====
   Scoped to .csa so nothing outside rewritten posts is affected. */
.csa {
	--csa-orange: #ea580c;
	--csa-orange-dark: #c2410c;
	--csa-orange-soft: #fdba74;
	--csa-cream: #fff7ed;
	--csa-ink: #1c1917;
	--csa-ink-2: #44403c;
	--csa-mute: #78716c;
	--csa-line: #e7e5e4;
	--csa-soft: #fafaf9;
	--csa-red: #b91c1c;
	--csa-red-soft: #fef2f2;
	--csa-blue: #1d4ed8;
	--csa-blue-soft: #eff6ff;
	--csa-green: #15803d;
	color: var(--csa-ink-2);
	font-size: 1.06rem;
	line-height: 1.75;
}
.csa *,
.csa *::before,
.csa *::after {
	box-sizing: border-box;
}
.csa p {
	margin: 0 0 1.1em;
}
.csa h2 {
	margin: 2.4em 0 0.7em;
	padding-bottom: 0.35em;
	border-bottom: 2px solid var(--csa-cream);
	color: var(--csa-ink);
	font-size: clamp(1.4rem, 2.6vw, 1.75rem);
	line-height: 1.25;
}
.csa h3 {
	margin: 1.8em 0 0.6em;
	color: var(--csa-ink);
	font-size: clamp(1.15rem, 2vw, 1.3rem);
	line-height: 1.3;
}
.csa h4 {
	margin: 1.4em 0 0.5em;
	color: var(--csa-ink);
	font-size: 1.05rem;
}
.csa a {
	color: var(--csa-orange-dark);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}
.csa a:hover,
.csa a:focus {
	color: var(--csa-orange);
}
.csa ul,
.csa ol {
	margin: 0 0 1.2em;
	padding-left: 1.3em;
}
.csa li {
	margin-bottom: 0.45em;
}
.csa li::marker {
	color: var(--csa-orange-dark);
}

/* Meta line under the title */
.csa-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
	margin: 0 0 1.4em;
	color: var(--csa-mute);
	font-size: 0.88rem;
}
.csa-meta span::before {
	content: "•";
	margin-right: 8px;
	color: var(--csa-orange-soft);
}
.csa-meta span:first-child::before {
	content: none;
}

/* Quick answer */
.csa-answer {
	margin: 0 0 1.6em;
	padding: 20px 22px;
	border: 1px solid #fde4cc;
	border-left: 5px solid var(--csa-orange);
	border-radius: 12px;
	background: var(--csa-cream);
}
.csa-answer .csa-label {
	display: block;
	margin-bottom: 6px;
	color: var(--csa-orange-dark);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.csa-answer p:last-child,
.csa-callout p:last-child {
	margin-bottom: 0;
}

/* Key takeaways */
.csa-takeaways {
	margin: 0 0 1.8em;
	padding: 18px 22px;
	border: 1px solid var(--csa-line);
	border-radius: 12px;
	background: var(--csa-soft);
}
.csa-takeaways .csa-label {
	display: block;
	margin-bottom: 8px;
	color: var(--csa-ink);
	font-weight: 700;
}
.csa-takeaways ul {
	margin: 0;
	padding: 0;
	list-style: none;
}
.csa-takeaways li {
	position: relative;
	padding-left: 28px;
}
.csa-takeaways li::before {
	content: "✓";
	position: absolute;
	left: 0;
	top: 0;
	color: var(--csa-green);
	font-weight: 800;
}

/* Callouts */
.csa-callout {
	margin: 1.4em 0;
	padding: 16px 20px;
	border-radius: 12px;
	border: 1px solid var(--csa-line);
	background: var(--csa-soft);
}
.csa-callout strong:first-child {
	display: block;
	margin-bottom: 4px;
	color: var(--csa-ink);
}
.csa-warning {
	border-color: #fecaca;
	border-left: 5px solid var(--csa-red);
	background: var(--csa-red-soft);
}
.csa-warning strong:first-child {
	color: var(--csa-red);
}
.csa-info {
	border-color: #bfdbfe;
	border-left: 5px solid var(--csa-blue);
	background: var(--csa-blue-soft);
}
.csa-tip {
	border-color: #fde4cc;
	border-left: 5px solid var(--csa-orange);
	background: var(--csa-cream);
}

/* Tables */
.csa-table {
	margin: 1.4em 0 1.8em;
	overflow-x: auto;
	border: 1px solid var(--csa-line);
	border-radius: 12px;
	-webkit-overflow-scrolling: touch;
}
.csa-table table {
	width: 100%;
	min-width: 560px;
	margin: 0;
	border-collapse: collapse;
	font-size: 0.95rem;
	line-height: 1.5;
}
.csa-table th,
.csa-table td {
	padding: 11px 14px;
	border: 0;
	border-bottom: 1px solid var(--csa-line);
	text-align: left;
	vertical-align: top;
}
.csa-table th {
	background: var(--csa-ink);
	color: #fff;
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.02em;
}
.csa-table tr:nth-child(even) td {
	background: var(--csa-soft);
}
.csa-table tr:last-child td {
	border-bottom: 0;
}
.csa-table td:first-child {
	color: var(--csa-ink);
	font-weight: 600;
}

/* Product picks */
.csa-picks {
	display: grid;
	gap: 18px;
	margin: 1.4em 0 2em;
}
.csa-pick {
	padding: 22px;
	border: 1px solid var(--csa-line);
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(28, 25, 23, 0.04);
}
.csa-pick-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 6px 14px;
	margin-bottom: 10px;
}
.csa .csa-pick h3 {
	margin: 0;
	font-size: 1.18rem;
}
.csa-badge {
	display: inline-block;
	padding: 3px 11px;
	border-radius: 999px;
	background: var(--csa-cream);
	color: var(--csa-orange-dark);
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	white-space: nowrap;
}
.csa-specs {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 8px;
	margin: 0 0 14px;
	padding: 0;
	list-style: none;
}
.csa .csa-specs li {
	margin: 0;
	padding: 8px 12px;
	border-radius: 8px;
	background: var(--csa-soft);
	font-size: 0.9rem;
	line-height: 1.4;
}
.csa-specs li b {
	display: block;
	color: var(--csa-mute);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
.csa-proscons {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	margin-bottom: 14px;
}
.csa-proscons ul {
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 0.95rem;
}
.csa-proscons li {
	position: relative;
	padding-left: 22px;
}
.csa-pros li::before {
	content: "+";
	position: absolute;
	left: 2px;
	color: var(--csa-green);
	font-weight: 800;
}
.csa-cons li::before {
	content: "−";
	position: absolute;
	left: 2px;
	color: var(--csa-red);
	font-weight: 800;
}
.csa-proscons .csa-label {
	display: block;
	margin-bottom: 4px;
	color: var(--csa-ink);
	font-size: 0.85rem;
	font-weight: 700;
}
.csa .csa-btn {
	display: inline-block;
	padding: 10px 18px;
	border-radius: 8px;
	background: var(--csa-orange);
	color: #fff;
	font-size: 0.93rem;
	font-weight: 700;
	text-decoration: none;
}
.csa .csa-btn:hover,
.csa .csa-btn:focus {
	background: var(--csa-orange-dark);
	color: #fff;
}

/* Steps */
.csa-steps {
	counter-reset: csa-step;
	margin: 1.2em 0 1.8em;
	padding: 0;
	list-style: none;
}
.csa .csa-steps > li {
	position: relative;
	margin: 0 0 14px;
	padding: 4px 0 0 52px;
	min-height: 38px;
}
.csa-steps > li::before {
	content: counter(csa-step);
	counter-increment: csa-step;
	position: absolute;
	left: 0;
	top: 0;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: var(--csa-cream);
	color: var(--csa-orange-dark);
	font-weight: 800;
	line-height: 36px;
	text-align: center;
}

/* FAQ */
.csa-faq {
	margin: 1.2em 0 2em;
	border: 1px solid var(--csa-line);
	border-radius: 12px;
	overflow: hidden;
}
.csa-faq details {
	border-bottom: 1px solid var(--csa-line);
}
.csa-faq details:last-child {
	border-bottom: 0;
}
.csa-faq summary {
	position: relative;
	padding: 15px 48px 15px 18px;
	color: var(--csa-ink);
	font-weight: 700;
	cursor: pointer;
	list-style: none;
}
.csa-faq summary::-webkit-details-marker {
	display: none;
}
.csa-faq summary::after {
	content: "+";
	position: absolute;
	right: 18px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--csa-orange-dark);
	font-size: 1.4rem;
	font-weight: 400;
}
.csa-faq details[open] summary::after {
	content: "−";
}
.csa-faq details[open] summary {
	background: var(--csa-cream);
}
.csa-faq .csa-faq-body {
	padding: 4px 18px 6px;
}

/* Sources and related reading */
.csa-sources,
.csa-related {
	margin: 1.6em 0;
	padding: 18px 22px;
	border-radius: 12px;
	background: var(--csa-soft);
	font-size: 0.95rem;
}
.csa-sources .csa-label,
.csa-related .csa-label {
	display: block;
	margin-bottom: 8px;
	color: var(--csa-ink);
	font-weight: 700;
}
.csa-sources ul,
.csa-related ul {
	margin: 0;
}

/* Comparison pair */
.csa-vs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	margin: 1.2em 0 1.8em;
}
.csa-vs > div {
	padding: 16px 18px;
	border: 1px solid var(--csa-line);
	border-radius: 12px;
	background: #fff;
}
.csa-vs h4 {
	margin-top: 0;
}

/* Product and article images */
.csa-pick-img,
.csa-figure {
	margin: 0 0 16px;
}
.csa-pick-img {
	padding: 10px;
	border-radius: 10px;
	background: #fff;
	border: 1px solid var(--csa-line);
	text-align: center;
}
.csa .csa-pick-img img {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 260px;
	margin: 0 auto;
	object-fit: contain;
}
.csa .csa-figure img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 12px;
}
.csa-pick-img figcaption,
.csa-figure figcaption {
	margin-top: 8px;
	color: var(--csa-mute);
	font-size: 0.78rem;
	line-height: 1.4;
	text-align: center;
}
.csa-pick-img figcaption a,
.csa-figure figcaption a {
	color: var(--csa-mute);
	text-decoration: underline;
}

@media (max-width: 640px) {
	.csa {
		font-size: 1rem;
	}
	.csa-proscons,
	.csa-vs {
		grid-template-columns: 1fr;
	}
	.csa-pick,
	.csa-answer,
	.csa-takeaways {
		padding: 16px;
	}
	.csa .csa-steps > li {
		padding-left: 46px;
	}
	.csa .csa-pick-img img {
		max-height: 220px;
	}
}
