/* RTH Article Design 1.0.3 — reusable article components.
   Product A uses --rth-a (navy), Product B uses --rth-b (teal). */
:root {
	--rth-a: #1b406d;
	--rth-a-dark: #12304f;
	--rth-b: #0f6e6a;
	--rth-b-dark: #0b5653;
	--rth-slate: #537292;
	--rth-sky: #bed9f6;
	--rth-ink: #0a1829;
	--rth-muted: #575760;
	--rth-line: #e3e8ee;
	--rth-soft: #f7f8f9;
	--rth-win: #15803d;
	--rth-winbg: #e8f5ec;
	--rth-warn: #9a5b06;
	--rth-warnbg: #fff6e5;
	--rth-infobg: #eef5fd;
}

/* ---------- theme compatibility ----------
   GeneratePress wraps group content in .wp-block-group__inner-container and pads it 40px.
   RTH groups control their own spacing, so the wrapper is neutralised here. */
.wp-block-group[class*="rth-"] > .wp-block-group__inner-container { padding: 0 !important; margin: 0 !important; max-width: none !important; }
.wp-block-group[class*="rth-"] > .wp-block-group__inner-container > :first-child { margin-top: 0; }
.wp-block-group[class*="rth-"] > .wp-block-group__inner-container > :last-child { margin-bottom: 0; }
/* Columns layout even if the core columns stylesheet is not loaded. */
.wp-block-columns.rth-decide, .wp-block-columns.rth-pc { display: flex; flex-wrap: nowrap; }
.wp-block-columns.rth-decide > .wp-block-column, .wp-block-columns.rth-pc > .wp-block-column { flex: 1 1 0; min-width: 0; }
@media (max-width: 781px) {
	.wp-block-columns.rth-decide, .wp-block-columns.rth-pc { flex-wrap: wrap; }
	.wp-block-columns.rth-decide > .wp-block-column, .wp-block-columns.rth-pc > .wp-block-column { flex-basis: 100%; }
}

/* ---------- paragraph styles ---------- */
.is-style-rth-lead { font-size: 1.12em; line-height: 1.6; color: #1d2b3d; }
.is-style-rth-eyebrow {
	display: flex; align-items: center; gap: 8px;
	font-size: 12px !important; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
	color: var(--rth-slate); margin: 2.4em 0 -.35em !important;
}
.is-style-rth-eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--rth-sky); flex: 0 0 auto; }
.is-style-rth-trust { font-size: 13px !important; color: var(--rth-muted); border-top: 1px solid var(--rth-line); padding-top: 10px; }

/* ---------- check list ---------- */
ul.is-style-rth-checks { list-style: none; padding-left: 0; margin-left: 0; }
ul.is-style-rth-checks li { position: relative; padding-left: 28px; margin: 0 0 9px; line-height: 1.45; }
ul.is-style-rth-checks li::before {
	content: ""; position: absolute; left: 0; top: .2em; width: 18px; height: 18px;
	background: var(--rth-win);
	-webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2.8" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12.5 10 17l9-10"/></svg>') center/contain no-repeat;
	mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2.8" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12.5 10 17l9-10"/></svg>') center/contain no-repeat;
}

/* ---------- decision cards ---------- */
.wp-block-columns.rth-decide { gap: 14px; margin: 1.4em 0 1.6em; align-items: stretch !important; }
.rth-side { border: 1px solid var(--rth-line); border-radius: 14px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.rth-side > * { margin-left: 18px; margin-right: 18px; }
.rth-side .rth-side__head {
	margin: 0 0 14px; padding: 14px 18px 14px 62px; color: #fff; background: var(--rth-a); position: relative;
}
.rth-side--b .rth-side__head { background: var(--rth-b); }
.rth-side__head::before {
	content: ""; position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
	width: 34px; height: 34px; border-radius: 9px; background: rgba(255,255,255,.16) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M4 5a2 2 0 0 1 2-2h12v18H6a2 2 0 0 1-2-2V5Z"/><path d="M8 7h6M8 11h6"/></svg>') center/19px no-repeat;
}
.rth-side__head p { margin: 0 !important; color: #fff; }
.rth-side__head .rth-side__title { font-weight: 800; font-size: 18px; line-height: 1.3; }
.rth-side__head .rth-side__sub { font-size: 13px; opacity: .85; line-height: 1.4; }
.rth-side ul.is-style-rth-checks { margin: 2px 20px 16px; }
.rth-side ul.is-style-rth-checks li { font-size: 15.5px; padding-left: 30px; }
.rth-side .rth-pick { margin-top: auto; margin-bottom: 18px; }
.rth-pick { padding: 12px 14px; border-radius: 10px; background: var(--rth-soft); border: 1px dashed #cfd8e3; }
.rth-pick p { margin: 0; }
.rth-pick .rth-pick__label { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--rth-slate); }
.rth-pick .rth-pick__name { font-weight: 800; font-size: 16px; margin: 2px 0 10px; color: var(--rth-ink); }
.rth-pick .rth-pick__more { font-size: 12.5px; color: var(--rth-muted); text-align: center; margin-top: 8px; }

/* ---------- AmzKit button inside RTH components ----------
   Same AmzKit button and price; only its look changes here. The "as of" note stays visible. */
.rth-pick .amzkit, .rth-ctas .amzkit { margin: 0 !important; }
.rth-pick .amzkit-stack, .rth-ctas .amzkit-stack { margin: 0; padding: 0; }
.rth-pick .amzkit-cta, .rth-ctas .amzkit-cta {
	display: grid !important; grid-template-columns: 1fr; grid-template-areas: "btn" "note";
	gap: 4px; padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important;
}
.rth-pick .amzkit-cta__price, .rth-ctas .amzkit-cta__price { display: contents; }
.rth-pick .amzkit-buttons, .rth-ctas .amzkit-buttons { grid-area: btn; margin: 0; width: 100%; display: block !important; }
.rth-pick .amzkit-price, .rth-ctas .amzkit-price {
	grid-area: btn; justify-self: end; align-self: center; margin: 0 10px 0 0; z-index: 2; pointer-events: none;
	background: #fff; border-radius: 7px; padding: 2px 8px; line-height: 1.5;
}
.rth-pick .amzkit-price__now, .rth-ctas .amzkit-price__now { color: var(--rth-a); font-weight: 800; font-size: 14px; }
.rth-pick .amzkit-note, .rth-ctas .amzkit-note { grid-area: note; font-size: 11px; color: var(--rth-muted); text-align: center; justify-content: center; }
.rth-pick .amzkit-btn, .rth-ctas .amzkit-btn {
	display: flex !important; align-items: center; justify-content: flex-start; width: 100% !important; max-width: none !important; box-sizing: border-box;
	background: var(--rth-a) !important; color: #fff !important; border: 0 !important; border-radius: 10px !important;
	padding: 11px 96px 11px 14px !important; font-weight: 700; font-size: 15px; text-decoration: none !important;
	box-shadow: none !important; transition: background .15s, transform .15s;
}
.rth-pick .amzkit-btn:hover, .rth-ctas .amzkit-btn:hover { background: var(--rth-a-dark) !important; transform: translateY(-1px); }
.rth-pick .amzkit-btn svg, .rth-ctas .amzkit-btn svg { display: none; }
.rth-side--b .rth-pick .amzkit-btn, .rth-ctas .amzkit:nth-child(2) .amzkit-btn { background: var(--rth-b) !important; }
.rth-side--b .rth-pick .amzkit-btn:hover, .rth-ctas .amzkit:nth-child(2) .amzkit-btn:hover { background: var(--rth-b-dark) !important; }
.rth-side--b .rth-pick .amzkit-price__now, .rth-ctas .amzkit:nth-child(2) .amzkit-price__now { color: var(--rth-b); }

/* ---------- callouts ---------- */
.rth-call { position: relative; padding: 14px 16px 14px 52px; border-radius: 12px; margin: 1.2em 0; font-size: .92em; line-height: 1.55; }
.rth-call p { margin: 0 0 .5em; }
.rth-call p:last-child { margin-bottom: 0; }
.rth-call p:first-child strong:first-child { display: block; margin-bottom: 2px; }
.rth-call::before { content: ""; position: absolute; left: 16px; top: 15px; width: 22px; height: 22px; }
.rth-call--warn { background: var(--rth-warnbg); border-left: 4px solid #e7a33a; }
.rth-call--warn::before { background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%239a5b06" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 3 2 20h20L12 3Z"/><path d="M12 10v4M12 17h.01"/></svg>') center/contain no-repeat; }
.rth-call--info { background: var(--rth-infobg); border-left: 4px solid var(--rth-slate); }
.rth-call--info::before { background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23537292" stroke-width="2" stroke-linecap="round"><circle cx="12" cy="12" r="9"/><path d="M12 11v6M12 7.5h.01"/></svg>') center/contain no-repeat; }
.rth-call--tip { background: var(--rth-winbg); border-left: 4px solid var(--rth-win); }
.rth-call--tip::before { background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%2315803d" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M9 18h6M10 21h4M12 3a6 6 0 0 0-4 10.5c.7.7 1 1.5 1 2.5h6c0-1 .3-1.8 1-2.5A6 6 0 0 0 12 3Z"/></svg>') center/contain no-repeat; }

/* ---------- comparison table ---------- */
.wp-block-table.is-style-rth-compare { border: 1px solid var(--rth-line); border-radius: 14px; overflow: hidden; margin: 1em 0 .6em; }
.wp-block-table.is-style-rth-compare table { border-collapse: collapse; width: 100%; margin: 0; border: 0; font-size: 15px; }
.wp-block-table.is-style-rth-compare thead { border: 0; }
.wp-block-table.is-style-rth-compare th {
	padding: 12px 14px; font-weight: 800; font-size: 15px; color: #fff; text-align: left; border: 0; box-shadow: none; background: var(--rth-a);
}
.wp-block-table.is-style-rth-compare th:first-child { background: var(--rth-soft); color: var(--rth-muted); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.wp-block-table.is-style-rth-compare th:nth-child(3) { background: var(--rth-b); }
.wp-block-table.is-style-rth-compare td { padding: 12px 14px; border: 0; border-top: 1px solid var(--rth-line); line-height: 1.45; vertical-align: top; }
.wp-block-table.is-style-rth-compare tbody tr:nth-child(even) td { background: #fbfcfd; }
.wp-block-table.is-style-rth-compare td:first-child { font-weight: 700; color: var(--rth-ink); }
.wp-block-table.is-style-rth-compare mark, .wp-block-table.is-style-rth-vs mark { background: none !important; }
.wp-block-table.is-style-rth-compare mark {
	display: table; margin-top: 5px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
	color: var(--rth-win) !important; background: var(--rth-winbg) !important; border-radius: 999px; padding: 2px 8px;
}
.rth-score { margin: 10px 0 1.4em; }
.rth-score:has(> .wp-block-group__inner-container) { display: block !important; }
.rth-score, .rth-score > .wp-block-group__inner-container { display: flex; flex-wrap: wrap; gap: 10px; }
.rth-score p { margin: 0 !important; padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: 14px; }
.rth-score .rth-score__a { background: #e7eef7; color: var(--rth-a); }
.rth-score .rth-score__b { background: #e2f1f0; color: var(--rth-b); }
/* Legend (added by rth.js from the table header), shown on phones only. */
.rth-legend { display: none; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; font-weight: 800; color: var(--rth-ink); margin: 1em 0 8px; }
.rth-legend span { display: inline-flex; align-items: center; gap: 6px; }
.rth-legend i { width: 12px; height: 12px; border-radius: 3px; background: var(--rth-a); }
.rth-legend span:nth-child(2) i { background: var(--rth-b); }
.rth-legend .rth-legend__win { color: var(--rth-win); }
@media (max-width: 640px) {
	/* Phones: one color key at the top, a colored bar per value, the stronger side tinted with a check. */
	.rth-legend { display: flex; }
	.wp-block-table.is-style-rth-compare { margin-top: 0; }
	.wp-block-table.is-style-rth-compare thead { display: none; }
	.wp-block-table.is-style-rth-compare table, .wp-block-table.is-style-rth-compare tbody { display: block; }
	.wp-block-table.is-style-rth-compare tr { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 8px; padding: 10px 12px; border-top: 1px solid var(--rth-line); }
	.wp-block-table.is-style-rth-compare tbody tr:first-child { border-top: 0; }
	.wp-block-table.is-style-rth-compare td { border: 0; padding: 0 0 0 8px; background: none !important; font-size: 14.5px; line-height: 1.4; }
	.wp-block-table.is-style-rth-compare td:first-child { grid-column: 1 / -1; padding: 0; font-weight: 800; font-size: 13.5px; }
	.wp-block-table.is-style-rth-compare td:nth-child(2) { border-left: 3px solid var(--rth-a); }
	.wp-block-table.is-style-rth-compare td:nth-child(3) { border-left: 3px solid var(--rth-b); }
	.wp-block-table.is-style-rth-compare td:has(mark) { background: var(--rth-winbg) !important; border-radius: 0 8px 8px 0; padding: 4px 8px; }
	.wp-block-table.is-style-rth-compare td:has(mark)::after { content: " \2713"; color: var(--rth-win); font-weight: 800; }
	.wp-block-table.is-style-rth-compare mark { display: none !important; }
}

/* ---------- model vs model card ---------- */
.rth-vs { border: 1px solid var(--rth-line); border-radius: 14px; padding: 18px; margin: 1.2em 0 1.4em; background: linear-gradient(180deg, #fbfcfd, #fff); }
.rth-vs .rth-vs__names { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; text-align: center; margin: 0 0 12px; font-size: 16px; line-height: 1.3; }
.rth-vs .rth-vs__names strong { color: var(--rth-ink); }
.rth-vs__x { width: 38px; height: 38px; border-radius: 50%; background: var(--rth-ink); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.wp-block-table.is-style-rth-vs { margin: 0; }
.wp-block-table.is-style-rth-vs table { width: 100%; border-collapse: collapse; border: 0; font-size: 14.5px; margin: 0; }
.wp-block-table.is-style-rth-vs td { padding: 8px 6px; border: 0; border-top: 1px solid var(--rth-line); text-align: center; width: 38%; vertical-align: middle; }
.wp-block-table.is-style-rth-vs td:nth-child(2) { width: 24%; color: var(--rth-muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.wp-block-table.is-style-rth-vs td:nth-child(2) { word-break: normal; overflow-wrap: normal; }
.wp-block-table.is-style-rth-vs mark { color: var(--rth-win) !important; font-weight: 700; }
@media (max-width: 640px) {
	/* Phones: value, label pill, value on one row. */
	.rth-vs { padding: 12px; }
	.wp-block-table.is-style-rth-vs table, .wp-block-table.is-style-rth-vs tbody { display: block; }
	.wp-block-table.is-style-rth-vs tr { display: grid; grid-template-columns: 1fr auto 1fr; gap: 6px; align-items: center; padding: 7px 0; border-top: 1px solid var(--rth-line); }
	.wp-block-table.is-style-rth-vs td { width: auto !important; border: 0; padding: 0 2px; font-size: 14px; line-height: 1.35; }
	.wp-block-table.is-style-rth-vs td:nth-child(2) {
		justify-self: center; max-width: 108px; padding: 2px 8px; border-radius: 999px; background: var(--rth-soft);
		font-size: 10.5px; line-height: 1.25; letter-spacing: .05em; white-space: normal;
	}
}
.rth-vs .rth-verdict { margin: 12px 0 0; font-size: 15px; background: var(--rth-soft); border-radius: 10px; padding: 10px 12px; }
.rth-vs .rth-verdict strong { color: var(--rth-a); }
.rth-ctas { margin-top: 14px; }
.rth-ctas, .rth-ctas > .wp-block-group__inner-container { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rth-ctas:has(> .wp-block-group__inner-container) { display: block; }
@media (max-width: 640px) {
	/* Phones: the two buttons stay side by side; the price sits under the button text. */
	.rth-ctas, .rth-ctas > .wp-block-group__inner-container { gap: 8px; }
	.rth-ctas .amzkit-btn { justify-content: center; text-align: center; padding: 8px 6px 34px !important; font-size: 13.5px; line-height: 1.3; }
	.rth-ctas .amzkit-price { justify-self: center; align-self: end; margin: 0 0 7px; }
}

/* ---------- phone layout for decision cards and callouts ---------- */
@media (max-width: 640px) {
	.wp-block-columns.rth-decide { gap: 12px; }
	.rth-side > * { margin-left: 14px; margin-right: 14px; }
	.rth-side .rth-side__head { padding: 10px 14px; margin: 0 0 10px; }
	.rth-side__head::before { display: none; }
	.rth-side__head .rth-side__title, .rth-side__head .rth-side__sub { display: inline; }
	.rth-side__head .rth-side__title { font-size: 16.5px; margin-right: 8px !important; }
	.rth-side__head .rth-side__sub { font-size: 12.5px; }
	.rth-side ul.is-style-rth-checks { margin: 2px 14px 4px; }
	.rth-side ul.is-style-rth-checks li { font-size: 15px; margin-bottom: 6px; padding-left: 26px; }
	.rth-side .rth-pick { margin: 8px 14px 14px; padding: 10px 0 0; background: none; border: 0; border-top: 1px solid var(--rth-line); border-radius: 0; }
	.rth-side .rth-pick > .wp-block-group__inner-container,
	.rth-side .rth-pick:not(:has(> .wp-block-group__inner-container)) { display: flex; flex-wrap: wrap; align-items: center; column-gap: 8px; }
	.rth-side .rth-pick .rth-pick__name { order: 1; flex: 1 1 auto; margin: 0 0 8px; font-size: 14.5px; }
	.rth-side .rth-pick .rth-pick__label { order: 2; margin: 0 0 8px; }
	.rth-side .rth-pick .amzkit { order: 3; flex: 1 1 100%; }
	.rth-side .rth-pick .rth-pick__more { order: 4; flex: 1 1 100%; }
	.rth-call { padding: 12px 12px 12px 42px; }
	.rth-call::before { left: 12px; top: 13px; width: 20px; height: 20px; }
}

/* ---------- pros and cons ---------- */
.wp-block-columns.rth-pc { gap: 12px; margin: 1em 0 1.4em; }
.rth-pc .wp-block-column { border-radius: 12px; padding: 12px 14px; font-size: 15px; }
.rth-pc .rth-pc__pro { background: var(--rth-winbg); }
.rth-pc .rth-pc__con { background: #fdecec; }
.rth-pc .rth-pc__label { margin: 0 0 6px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.rth-pc .rth-pc__pro .rth-pc__label { color: var(--rth-win); }
.rth-pc .rth-pc__con .rth-pc__label { color: #b42318; }
.rth-pc ul { margin: 0; padding-left: 18px; }

/* ---------- FAQ block (affiliate-layout), only on posts using this design ---------- */
.rth-design .alb-faq-item { border: 1px solid var(--rth-line); border-radius: 12px; margin: 10px 0; background: #fff; padding: 0 16px; }
.rth-design .alb-faq-item.alb-faq-open { box-shadow: 0 4px 14px rgba(27, 64, 109, .07); }
.rth-design .alb-faq-question { padding: 14px 0; }
.rth-design .alb-faq-question h3 { font-size: 17px !important; margin: 0 !important; }
.rth-design .alb-faq-answer-inner { padding: 0 0 14px; font-size: 15.5px; }
