/*
Theme Name:kadence child
Template:kadence
Description:A child theme of kadence.
Author:Hazem
Version:2.0
*/

/* =========================================================================
   The Tests Lab: mobile-first styles (Nov 2026 redesign).
   Logical properties (inline-start/end) are used so Arabic (RTL) mirrors.
   The quiz markup comes from the quiz-generator plugin; js/quiz.js depends on
   its ids/classes, so this file only styles them.
   ========================================================================= */

:root {
	--ttl-accent: #4f46e5;
	--ttl-accent-dark: #4338ca;
	--ttl-accent-soft: #eef2ff;
	--ttl-ink: #1a202c;
	--ttl-muted: #4a5568;
	--ttl-line: #e2e8f0;
	--ttl-card: #ffffff;
	--ttl-radius: 14px;
	--ttl-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 4px 14px rgba(16, 24, 40, .06);
	--ttl-ok: #16a34a;
	--ttl-error: #dc2626;
}

html { -webkit-text-size-adjust: 100%; }
.quiz-container *, .quiz-container *::before, .quiz-container *::after { box-sizing: border-box; }
body { overflow-wrap: break-word; }
img, svg, video, iframe { max-width: 100%; }

/* ---------- Header ---------- */
.site-branding .site-title { letter-spacing: -.01em; }
.menu-toggle-open { min-width: 44px; min-height: 44px; }

/* ---------- Home intro (inserted by tools/postprocess.py) ---------- */
.home-intro {
	margin: 0 0 1.75rem !important;
	padding: 1.5rem 1.25rem;
	border-radius: var(--ttl-radius);
	background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 55%, #db2777 100%);
	color: #fff;
	box-shadow: var(--ttl-shadow);
}
.home-intro h1 {
	color: #fff;
	font-size: clamp(1.6rem, 6vw, 2.4rem) !important;
	letter-spacing: -.02em;
}
.home-intro p { color: rgba(255, 255, 255, .92); max-width: 46em; line-height: 1.55; }

/* ---------- Archive header (category pages) ---------- */
.archive .entry-hero-container-inner,
.archive .page-header { border-radius: 0; }
.archive .archive-title { letter-spacing: -.02em; }
.archive .archive-description { max-width: 40em; margin-inline: auto; color: var(--ttl-muted); }

/* ---------- Quiz cards on home / category / related ---------- */
.content-wrap.grid-cols { gap: 1rem; }
@media (min-width: 768px) { .content-wrap.grid-cols { gap: 1.5rem; } }

.loop-entry.content-bg {
	position: relative;
	display: flex;
	flex-direction: column;
	border: 1px solid var(--ttl-line);
	border-top: 5px solid var(--ttl-cat, var(--ttl-accent));
	border-radius: var(--ttl-radius);
	box-shadow: var(--ttl-shadow);
	overflow: hidden;
	transition: transform .15s ease, box-shadow .15s ease;
}
.loop-entry.content-bg:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(16, 24, 40, .12); }
.loop-entry .entry-content-wrap {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 1.1rem 1.15rem 1.15rem;
}
@media (min-width: 768px) { .loop-entry .entry-content-wrap { padding: 1.4rem 1.5rem 1.5rem; } }
.loop-entry .entry-footer { margin-top: auto; }
.loop-entry .entry-title { font-size: 1.2rem; line-height: 1.3; margin-bottom: .9rem; }
.loop-entry .entry-title a { color: var(--ttl-ink); text-decoration: none; }
/* Make the whole card tappable (the title link stretches over it). */
.loop-entry .entry-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.loop-entry .entry-taxonomies { position: relative; z-index: 2; margin-bottom: .5rem; }
.loop-entry .entry-taxonomies a { color: var(--ttl-cat, var(--ttl-accent)); }
.loop-entry .entry-actions p { margin: 0; }
.loop-entry .post-more-link {
	display: inline-flex;
	align-items: center;
	gap: .4em;
	min-height: 40px;
	padding: .45rem 1rem;
	border-radius: 999px;
	background: var(--ttl-accent-soft);
	color: var(--ttl-accent-dark);
	font-weight: 700;
	letter-spacing: .04em;
	text-decoration: none;
}
.loop-entry:hover .post-more-link { background: var(--ttl-accent); color: #fff; }
[dir="rtl"] .loop-entry .post-more-link .kadence-svg-iconset { transform: scaleX(-1); }

/* Category colours (the last matching rule below wins). */
.category-smart { --ttl-cat: #059669; }
.category-general-knowledge { --ttl-cat: #2563eb; }
.category-fun { --ttl-cat: #ea580c; }
.category-careers { --ttl-cat: #d97706; }
.category-gaming { --ttl-cat: #16a34a; }
.category-characters { --ttl-cat: #0891b2; }
.category-relationships { --ttl-cat: #db2777; }
.category-personality { --ttl-cat: #7c3aed; }

/* Pagination: thumb-sized */
.pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 44px; min-height: 44px; border-radius: 10px;
}

/* ---------- Single quiz page ---------- */
.single-post .entry-header .entry-title {
	font-size: clamp(1.75rem, 7vw, 2.5rem);
	line-height: 1.2;
	letter-spacing: -.02em;
}
@media (max-width: 767px) {
	.single-post .content-container { padding-inline: 12px; }
	.single-post .entry-content-wrap { padding: 1.25rem 1rem 1.5rem; }
	.single-post .site-main > .content-bg,
	.single-post .single-entry.content-bg { border-radius: var(--ttl-radius); }
	.single-post .content-area { margin-top: 12px; margin-bottom: 16px; }
}

/* The plugin wraps the quiz in <pre style="all:unset">; make sure it behaves like a block. */
.single-content pre:has(> .quiz-container) { display: block; white-space: normal; }
.quiz-container { font-size: 1.0625rem; line-height: 1.6; color: var(--ttl-ink); }
.quiz-container br { display: none; }
.quiz-container > hr,
.long-description > hr { display: none; }

.short_description h2 {
	font-size: clamp(1.2rem, 4.8vw, 1.45rem);
	line-height: 1.3;
	margin: 0 0 .5rem;
	color: var(--ttl-ink);
}
.short_description p { color: var(--ttl-muted); margin: 0; }

/* Start button */
.quiz-container > p:has(#startQuiz) { margin: 0; }
.start-btn,
#startQuiz {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .5em;
	width: 100%;
	min-height: 60px;
	margin: 1.5rem 0 2rem;
	padding: .9rem 1.25rem;
	border: 0;
	border-radius: var(--ttl-radius);
	background: linear-gradient(135deg, var(--ttl-accent) 0%, #7c3aed 100%);
	color: #fff;
	font-size: 1.25rem;
	font-weight: 700;
	letter-spacing: .01em;
	box-shadow: 0 6px 18px rgba(79, 70, 229, .35);
	cursor: pointer;
	transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
	-webkit-tap-highlight-color: transparent;
}
.start-btn::after { content: "→"; font-size: 1.2em; line-height: 1; }
[dir="rtl"] .start-btn::after { content: "←"; }
.start-btn:hover { filter: brightness(1.06); box-shadow: 0 8px 22px rgba(79, 70, 229, .45); }
.start-btn:active { transform: scale(.985); }

/* Quiz / email / result cards */
.quiz-content,
.email-form,
.quiz-results {
	max-width: 720px;
	margin: 1rem auto 2rem;
	padding: 1.25rem 1rem 1.25rem;
	border: 1px solid var(--ttl-line);
	border-radius: 18px;
	background: var(--ttl-card);
	box-shadow: var(--ttl-shadow);
	scroll-margin-top: 16px;
}
@media (min-width: 768px) {
	.quiz-content, .email-form, .quiz-results { padding: 1.75rem 2rem; }
}

/* Progress bar (added by quiz.js) */
.ttl-progress { margin: 0 0 1.1rem; }
.ttl-progress-label {
	display: flex;
	justify-content: space-between;
	font-size: .85rem;
	font-weight: 700;
	color: var(--ttl-muted);
	margin-bottom: .4rem;
	letter-spacing: .02em;
}
.ttl-progress-track { height: 8px; border-radius: 999px; background: var(--ttl-accent-soft); overflow: hidden; }
.ttl-progress-fill {
	height: 100%;
	width: 0;
	border-radius: inherit;
	background: linear-gradient(90deg, var(--ttl-accent), #7c3aed);
	transition: width .3s ease;
}

.question { margin: 0; }
.question h3 {
	font-size: clamp(1.15rem, 4.8vw, 1.4rem);
	line-height: 1.35;
	margin: 0 0 1rem;
	color: var(--ttl-ink);
}
#quiz ul { list-style: none; padding: 0; margin: 0 0 1.1rem; }
#quiz ul li { margin: 0 0 .6rem; padding: 0; }
#quiz ul li label {
	display: flex;
	align-items: center;
	gap: .8rem;
	min-height: 56px;
	padding: .75rem 1rem;
	border: 2px solid var(--ttl-line);
	border-radius: 12px;
	background: #fff;
	font-size: 1.0625rem;
	line-height: 1.4;
	color: var(--ttl-ink);
	cursor: pointer;
	transition: border-color .12s ease, background-color .12s ease, box-shadow .12s ease;
	-webkit-tap-highlight-color: transparent;
	user-select: none;
}
#quiz ul li label:hover { border-color: #c7d2fe; background: #fafaff; }
#quiz ul li input[type="radio"] {
	flex: none;
	width: 22px;
	height: 22px;
	margin: 0;
	accent-color: var(--ttl-accent);
	cursor: pointer;
}
#quiz ul li label:has(input:checked) {
	border-color: var(--ttl-accent);
	background: var(--ttl-accent-soft);
	box-shadow: 0 0 0 3px rgba(79, 70, 229, .15);
	font-weight: 600;
}
#quiz ul li label:has(input:focus-visible) { outline: 3px solid #a5b4fc; outline-offset: 2px; }

/* Next / Finish */
.next-button,
.email-form button[type="submit"] {
	display: block;
	width: 100%;
	min-height: 54px;
	padding: .8rem 1.25rem;
	border: 0;
	border-radius: 12px;
	background: var(--ttl-accent);
	color: #fff;
	font-size: 1.125rem;
	font-weight: 700;
	cursor: pointer;
	transition: background-color .12s ease, opacity .12s ease, transform .1s ease;
	-webkit-tap-highlight-color: transparent;
}
.next-button:hover,
.email-form button[type="submit"]:hover { background: var(--ttl-accent-dark); }
.next-button:active,
.email-form button[type="submit"]:active { transform: scale(.985); }
.next-button[data-next-id="results"] { background: var(--ttl-ok); }
.next-button[data-next-id="results"]:hover { background: #15803d; }
/* Looks inactive until an answer is chosen (still clickable, so the error message shows). */
.question:not(:has(input:checked)) .next-button { opacity: .55; }

.error-message {
	margin-top: .6rem;
	font-size: .95rem;
	font-weight: 600;
	color: var(--ttl-error) !important;
}
.question .error-message { text-align: center; width: 100%; }
.question .error-message[style*="inline"] { display: block !important; }

/* Email step */
.email-form h3 {
	font-size: clamp(1.15rem, 4.8vw, 1.4rem);
	line-height: 1.35;
	margin: 0 0 1rem;
	text-align: center;
}
.email-form h3::before {
	content: "🎉";
	display: block;
	font-size: 2.25rem;
	line-height: 1;
	margin-bottom: .5rem;
}
.email-form form { display: flex; flex-direction: column; gap: .75rem; margin: 0; }
.email-form input[type="email"] {
	width: 100%;
	min-height: 54px;
	margin: 0 !important;
	padding: .75rem 1rem;
	border: 2px solid var(--ttl-line);
	border-radius: 12px;
	background: #fff;
	font-size: 1rem; /* 16px+ stops iOS zooming in */
	color: var(--ttl-ink);
	box-sizing: border-box;
}
.email-form input[type="email"]:focus { outline: none; border-color: var(--ttl-accent); box-shadow: 0 0 0 3px rgba(79, 70, 229, .18); }
.email-form button[type="submit"] { margin: 0 !important; }
.email-form .error-message { text-align: center; }

/* Result */
.quiz-results {
	text-align: center;
	border: 2px solid #c7d2fe;
	background: linear-gradient(180deg, var(--ttl-accent-soft) 0%, #fff 70%);
}
.quiz-results h3 {
	font-size: clamp(1.4rem, 6vw, 1.9rem);
	line-height: 1.25;
	margin: 0 0 .75rem;
	color: var(--ttl-accent-dark);
}
.quiz-results h3::before { content: "🏆"; display: block; font-size: 2.5rem; line-height: 1; margin-bottom: .5rem; }
.quiz-results p,
.quiz-results .score-description { font-size: 1.0625rem; line-height: 1.6; color: var(--ttl-ink); margin: 0; }

/* Long description */
.long-description {
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--ttl-line);
}
.long-description h2 {
	font-size: clamp(1.3rem, 5.4vw, 1.75rem);
	line-height: 1.3;
	letter-spacing: -.01em;
	margin: 0 0 .75rem;
}
.long-description .description-text p { margin: 0 0 1rem; line-height: 1.7; color: #2d3748; }

/* Possible results */
.results-info { margin-top: 2rem; }
.results-info h3 { font-size: clamp(1.2rem, 5vw, 1.5rem); line-height: 1.3; margin: 0 0 .9rem; }
.results-info ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.results-info li {
	margin: 0;
	padding: .85rem 1rem;
	border: 1px solid var(--ttl-line);
	border-inline-start: 4px solid var(--ttl-accent);
	border-radius: 10px;
	background: #fafbff;
	line-height: 1.5;
}
.results-info li strong { display: block; color: var(--ttl-accent-dark); margin-bottom: .15rem; }
@media (min-width: 768px) { .results-info ul { grid-template-columns: 1fr 1fr; } }

/* ---------- "Take Another Test" carousel ---------- */
.entry-related .entry-related-title { font-size: clamp(1.3rem, 5.5vw, 1.75rem); }
.entry-related .loop-entry .entry-title { font-size: 1.1rem; }
@media (max-width: 543px) {
	.entry-related-carousel.splide { padding-inline: 0; }
	.entry-related .splide__arrows { display: none; }
}
.entry-related .splide__pagination__page { width: 10px; height: 10px; }

/* ---------- Footer ---------- */
.site-footer a { display: inline-block; padding-block: .35rem; }

/* =========================================================================
   Home page (front-page.php)
   ========================================================================= */
.ttl-home .site-main { padding-top: 1rem; }
.ttl-hero {
	position: relative;
	margin: 0 0 2.25rem;
	padding: 1.75rem 1.25rem 1.5rem;
	border-radius: 20px;
	background: radial-gradient(120% 140% at 100% 0%, #db2777 0%, rgba(219, 39, 119, 0) 55%),
		linear-gradient(135deg, #4338ca 0%, #6d28d9 60%, #7c3aed 100%);
	color: #fff;
	box-shadow: 0 10px 30px rgba(67, 56, 202, .25);
	overflow: hidden;
}
@media (min-width: 768px) { .ttl-hero { padding: 3rem 3rem 2.5rem; } }
.ttl-hero-kicker {
	display: inline-block;
	margin: 0 0 .9rem;
	padding: .3rem .75rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, .16);
	font-size: .85rem;
	font-weight: 700;
	letter-spacing: .02em;
}
.ttl-hero h1 {
	margin: 0 0 .75rem;
	color: #fff;
	font-size: clamp(1.75rem, 7vw, 3rem);
	line-height: 1.12;
	letter-spacing: -.02em;
	max-width: 18em;
}
.ttl-hero-lead { margin: 0 0 1.4rem; max-width: 42em; font-size: clamp(1rem, 3.8vw, 1.15rem); line-height: 1.6; color: rgba(255, 255, 255, .92); }
.ttl-hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 0; }
.ttl-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	padding: .7rem 1.4rem;
	border-radius: 12px;
	font-weight: 700;
	font-size: 1.05rem;
	text-decoration: none;
	transition: transform .12s ease, background-color .12s ease, box-shadow .12s ease;
}
.ttl-btn:active { transform: scale(.98); }
.ttl-hero .ttl-btn-primary { background: #fff; color: #4338ca; box-shadow: 0 4px 14px rgba(0, 0, 0, .15); }
.ttl-hero .ttl-btn-primary:hover { background: #eef2ff; color: #3730a3; }
.ttl-btn-ghost { background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .45); }
.ttl-btn-ghost:hover { background: rgba(255, 255, 255, .24); color: #fff; }
@media (max-width: 479px) { .ttl-hero-actions .ttl-btn { flex: 1 1 100%; } }

.ttl-section { margin: 0 0 2.5rem; scroll-margin-top: 16px; }
.ttl-section-title { margin: 0 0 .4rem; font-size: clamp(1.3rem, 5.4vw, 1.75rem); line-height: 1.25; letter-spacing: -.01em; }
.ttl-row-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.ttl-see-all {
	flex: none;
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 .25rem;
	font-weight: 700;
	color: var(--ttl-cat, var(--ttl-accent));
	text-decoration: none;
	white-space: nowrap;
}
.ttl-see-all::after { content: " →"; }
[dir="rtl"] .ttl-see-all::after { content: " ←"; }
.ttl-row-desc { margin: 0 0 1rem; max-width: 46em; color: var(--ttl-muted); font-size: .98rem; line-height: 1.55; }

/* Topic tiles */
.ttl-topics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin: 1rem 0 0; padding: 0; list-style: none; }
@media (min-width: 768px) { .ttl-topics { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; } }
.ttl-topic { margin: 0; }
.ttl-topic a {
	display: flex;
	flex-direction: column;
	gap: .2rem;
	height: 100%;
	min-height: 112px;
	padding: 1rem;
	border: 1px solid var(--ttl-line);
	border-radius: var(--ttl-radius);
	background: #fff;
	color: var(--ttl-ink);
	text-decoration: none;
	box-shadow: var(--ttl-shadow);
	transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.ttl-topic a:hover { transform: translateY(-2px); border-color: var(--ttl-cat); box-shadow: 0 8px 22px rgba(16, 24, 40, .12); }
.ttl-topic-icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; margin-bottom: .35rem;
	border-radius: 12px;
	background: color-mix(in srgb, var(--ttl-cat) 14%, #fff);
	font-size: 1.45rem;
}
.ttl-topic-name { font-weight: 800; font-size: 1rem; line-height: 1.3; }
.ttl-topic-count { font-size: .85rem; color: var(--ttl-muted); }

/* How it works */
.ttl-steps { display: grid; gap: .75rem; margin: 1rem 0 0; padding: 0; list-style: none; counter-reset: ttl-step; }
@media (min-width: 768px) { .ttl-steps { grid-template-columns: repeat(3, 1fr); } }
.ttl-steps li {
	position: relative;
	margin: 0;
	padding: 1rem 1rem 1rem 3.6rem;
	border-radius: var(--ttl-radius);
	background: var(--ttl-accent-soft);
	color: var(--ttl-muted);
	line-height: 1.5;
	counter-increment: ttl-step;
}
[dir="rtl"] .ttl-steps li { padding: 1rem 3.6rem 1rem 1rem; }
.ttl-steps li::before {
	content: counter(ttl-step);
	position: absolute;
	inset-inline-start: 1rem;
	top: 1rem;
	width: 30px; height: 30px;
	border-radius: 50%;
	background: var(--ttl-accent);
	color: #fff;
	font-weight: 800;
	display: flex; align-items: center; justify-content: center;
}
.ttl-steps strong { display: block; color: var(--ttl-ink); }

/* Quiz cards */
.ttl-cards { display: grid; grid-template-columns: 1fr; gap: .75rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 600px) { .ttl-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .ttl-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; } }
.ttl-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: .4rem;
	margin: 0;
	padding: 1rem 1.1rem 1.05rem;
	border: 1px solid var(--ttl-line);
	border-top: 4px solid var(--ttl-cat, var(--ttl-accent));
	border-radius: var(--ttl-radius);
	background: #fff;
	box-shadow: var(--ttl-shadow);
	transition: transform .15s ease, box-shadow .15s ease;
}
.ttl-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(16, 24, 40, .12); }
.ttl-card-topic { font-size: .78rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: var(--ttl-cat, var(--ttl-accent)); }
.ttl-card-title { margin: 0; font-size: 1.08rem; line-height: 1.35; }
.ttl-card-title a { color: var(--ttl-ink); text-decoration: none; }
.ttl-card-title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.ttl-card-title a:focus-visible { outline: none; }
.ttl-card:has(a:focus-visible) { outline: 3px solid #a5b4fc; outline-offset: 2px; }
.ttl-card-desc { margin: 0; font-size: .92rem; line-height: 1.5; color: var(--ttl-muted); }
.ttl-card-cta { margin-top: auto; padding-top: .35rem; font-size: .9rem; font-weight: 800; color: var(--ttl-cat, var(--ttl-accent)); }
.ttl-card-cta::after { content: " →"; }
[dir="rtl"] .ttl-card-cta::after { content: " ←"; }
.ttl-more { margin: 1.25rem 0 0; text-align: center; }
.ttl-more .ttl-btn-primary { background: var(--ttl-accent); color: #fff; }
.ttl-more .ttl-btn-primary:hover { background: var(--ttl-accent-dark); color: #fff; }

/* FAQ */
.ttl-faq { margin: 0 0 .6rem; border: 1px solid var(--ttl-line); border-radius: 12px; background: #fff; }
.ttl-faq summary {
	display: flex; align-items: center; justify-content: space-between; gap: 1rem;
	min-height: 52px; padding: .75rem 1rem;
	font-weight: 700; cursor: pointer; list-style: none;
}
.ttl-faq summary::-webkit-details-marker { display: none; }
.ttl-faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--ttl-accent); }
.ttl-faq[open] summary::after { content: "−"; }
.ttl-faq p { margin: 0; padding: 0 1rem 1rem; color: var(--ttl-muted); line-height: 1.6; }

/* List page H1 (/page/N/) */
.ttl-list-header .page-title { margin: .5rem 0 1.25rem; font-size: clamp(1.5rem, 6vw, 2rem); }

/* Language link in the header menu */
.ttl-lang-item .ttl-lang-link { font-weight: 700; }
.header-navigation .ttl-lang-item > a {
	padding-inline: .9em !important;
	border: 1px solid var(--ttl-line);
	border-radius: 999px;
	margin-inline-start: .4em;
}

/* Category pages: topic colour on the header */
.archive.category .entry-hero .entry-header,
.archive.category .archive-description { line-height: 1.6; }

/* Phones: topic rows scroll sideways (one swipe per row instead of four stacked cards). */
@media (max-width: 599px) {
	.ttl-topic-row .ttl-cards {
		display: flex;
		gap: .75rem;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
		padding: 2px 2px 10px;
		margin: 0 -2px;
	}
	.ttl-topic-row .ttl-cards::-webkit-scrollbar { display: none; }
	.ttl-topic-row .ttl-card { flex: 0 0 80%; scroll-snap-align: start; }
	.ttl-topic-row .ttl-card:hover { transform: none; }
	.ttl-section { margin-bottom: 2rem; }
	.ttl-row-desc { font-size: .92rem; margin-bottom: .75rem; }
	.ttl-steps li { padding-block: .8rem; }
}

/* Topic rows already say the topic: no chip on each card. */
.ttl-topic-row .ttl-card-topic { display: none; }

/* ---------- Long questions/answers always wrap (any browser) ----------
   The plugin wraps the quiz in <pre style="all:unset">. Some phone browsers (in-app ones from
   ads included) can end up with Kadence's pre styles (monospace, overflow:auto), so force
   normal text flow here. */
.single-content pre[style*="all:unset"],
.single-content pre[style*="all: unset"] {
	display: block !important;
	white-space: normal !important;
	overflow: visible !important;
	max-width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	background: none !important;
	font: inherit !important;
	color: inherit !important;
}
.quiz-container,
.quiz-container * { white-space: normal; }
.quiz-container { max-width: 100%; overflow-wrap: break-word; }
.question h3,
#quiz ul li label,
.quiz-results,
.email-form h3 { overflow-wrap: anywhere; word-break: normal; min-width: 0; max-width: 100%; }
#quiz ul li label { white-space: normal; }

/* ---------- "Try this next" under the result ---------- */
.ttl-next {
	max-width: 720px;
	margin: -1rem auto 2rem;
	padding: 1.25rem 1rem;
	border: 1px solid var(--ttl-line);
	border-radius: 18px;
	background: #fff;
	box-shadow: var(--ttl-shadow);
}
@media (min-width: 768px) { .ttl-next { padding: 1.5rem 2rem; } }
.ttl-next-title { margin: 0 0 .9rem; font-size: clamp(1.15rem, 4.8vw, 1.4rem); line-height: 1.3; text-align: center; }
.ttl-next .ttl-cards { display: grid; grid-template-columns: 1fr; gap: .75rem; }
@media (min-width: 600px) { .ttl-next .ttl-cards { grid-template-columns: 1fr 1fr; } }
.ttl-next .ttl-card-topic { display: none; }
.ttl-next .ttl-card:first-child { border-width: 2px; border-top-width: 4px; border-color: var(--ttl-cat); }
.ttl-next .ttl-card:first-child .ttl-card-cta {
	align-self: stretch;
	margin-top: .5rem;
	padding: .7rem 1rem;
	border-radius: 12px;
	background: var(--ttl-cat);
	color: #fff;
	text-align: center;
}
.ttl-next-more { margin: .9rem 0 0; text-align: center; }
.ttl-next-more a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--ttl-accent); }

/* Inside the post content: undo the article list/heading spacing. */
.single-content .ttl-next .ttl-cards { margin: 0; padding: 0; list-style: none; }
.single-content .ttl-next .ttl-card { margin: 0; }
.single-content .ttl-next .ttl-card-title { margin: 0; }
.single-content .ttl-next .ttl-card-desc { margin: 0; }
