.jec-app {
	--jec-bg: #f7faf9;
	--jec-card: #ffffff;
	--jec-text: #24302f;
	--jec-muted: #63716f;
	--jec-line: #dce7e4;
	--jec-primary: #1f7a68;
	--jec-primary-dark: #165b4e;
	--jec-soft: #edf6f3;
	--jec-soft-line: #cfe3dd;
	--jec-shadow: 0 14px 34px rgba(34, 53, 49, 0.1);
	box-sizing: border-box;
	max-width: 760px;
	margin: 24px auto;
	padding: 0 16px;
	color: var(--jec-text);
	font-family: inherit;
}

.jec-app *,
.jec-app *::before,
.jec-app *::after {
	box-sizing: border-box;
}

.jec-app h1,
.jec-app h2,
.jec-app h3,
.jec-app .jec-heading,
.jec-app .jec-heading-main,
.jec-app .jec-heading-sub,
.jec-app .jec-title,
.jec-app .jec-question,
.jec-app .jec-question-title,
.jec-app .jec-complete-title,
.jec-app .jec-box-title {
	background: transparent !important;
	background-color: transparent !important;
	border: 0;
	box-shadow: none;
	padding-left: 0;
}

.jec-app h1::before,
.jec-app h1::after,
.jec-app h2::before,
.jec-app h2::after,
.jec-app h3::before,
.jec-app h3::after,
.jec-app .jec-heading::before,
.jec-app .jec-heading::after,
.jec-app .jec-title::before,
.jec-app .jec-question::before,
.jec-app .jec-question::after,
.jec-app .jec-question-title::before,
.jec-app .jec-question-title::after,
.jec-app .jec-complete-title::before,
.jec-app .jec-complete-title::after,
.jec-app .jec-box-title::before,
.jec-app .jec-box-title::after {
	background: transparent !important;
	background-color: transparent !important;
	border: 0;
	box-shadow: none;
}

.jec-app p {
	background: transparent !important;
	background-color: transparent !important;
}

.jec-app .jec-card {
	background: var(--jec-card);
	border: 1px solid var(--jec-line);
	border-radius: 8px;
	box-shadow: var(--jec-shadow);
	padding: 30px;
}

.jec-app .jec-start-card {
	background:
		linear-gradient(180deg, rgba(247, 250, 249, 0.9), rgba(255, 255, 255, 0.98) 42%),
		var(--jec-card);
}

.jec-app .jec-eyebrow,
.jec-app .jec-meta,
.jec-app .jec-description,
.jec-app .jec-explanation,
.jec-app .jec-loading,
.jec-app .jec-error {
	color: var(--jec-muted);
}

.jec-app .jec-eyebrow {
	margin: 0 0 8px;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0;
	text-transform: uppercase;
}

.jec-app .jec-heading-main,
.jec-app .jec-title {
	position: relative;
	margin: 0 0 18px;
	padding: 0 0 14px !important;
	background: transparent !important;
	background-color: transparent !important;
	border: 0;
	box-shadow: none;
	color: var(--jec-text);
	font-size: clamp(1.7rem, 5vw, 2.5rem);
	line-height: 1.16;
	letter-spacing: 0;
}

.jec-app .jec-heading-main::after,
.jec-app .jec-complete-title::after,
.jec-app .jec-title::after {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 54px;
	height: 3px;
	border-radius: 999px;
	background: var(--jec-primary) !important;
	background-color: var(--jec-primary) !important;
	content: "";
}

.jec-app .jec-final-card .jec-complete-title::after,
.jec-app .jec-final-card .jec-title::after {
	left: 50%;
	transform: translateX(-50%);
}

.jec-app .jec-heading-sub {
	margin: 0;
	background: transparent !important;
	background-color: transparent !important;
	color: var(--jec-primary-dark);
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1.35;
}

.jec-app .jec-subtitle {
	margin: 0;
	color: var(--jec-primary-dark);
	font-size: 1.15rem;
	font-weight: 700;
}

.jec-app .jec-description {
	max-width: 580px;
	margin: 14px 0 24px;
	font-size: 1rem;
	line-height: 1.7;
}

.jec-app .jec-category-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	margin-top: 6px;
}

.jec-app .jec-button,
.jec-app .jec-choice-button {
	width: 100%;
	min-height: 48px;
	border: 0;
	border-radius: 8px;
	cursor: pointer;
	font: inherit;
	font-weight: 700;
	line-height: 1.35;
	transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.jec-app .jec-button {
	background: var(--jec-primary);
	color: #ffffff;
	padding: 13px 18px;
	box-shadow: 0 10px 22px rgba(31, 122, 104, 0.2);
}

.jec-app .jec-button:hover,
.jec-app .jec-button:focus-visible,
.jec-app .jec-choice-button:hover,
.jec-app .jec-choice-button:focus-visible {
	transform: translateY(-1px);
	outline: 2px solid rgba(31, 122, 104, 0.22);
	outline-offset: 2px;
}

.jec-app .jec-button:hover {
	background: var(--jec-primary-dark);
}

.jec-app .jec-button-secondary {
	background: #e7f1ee;
	color: var(--jec-primary-dark);
	box-shadow: none;
}

.jec-app .jec-button-secondary:hover {
	background: #d9ebe6;
}

.jec-app .jec-category-button {
	min-height: 54px;
	padding: 14px 16px;
}

.jec-app .jec-button-random {
	background: #f1f7f5;
	border: 1px solid var(--jec-soft-line);
	color: var(--jec-primary-dark);
	box-shadow: none;
}

.jec-app .jec-button-random:hover {
	background: #e5f1ee;
}

.jec-app .jec-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 18px;
	font-size: 0.92rem;
	font-weight: 700;
}

.jec-app .jec-quiz-label,
.jec-app .jec-category-pill {
	display: inline-flex;
	align-items: center;
	min-height: 30px;
	border-radius: 999px;
	background: var(--jec-soft);
	border: 1px solid var(--jec-soft-line);
	color: var(--jec-primary-dark);
	padding: 5px 12px;
}

.jec-app .jec-quiz-label {
	background: #f1f7f5;
	color: var(--jec-muted);
}

.jec-app .jec-question-title,
.jec-app .jec-question {
	margin: 0 0 24px;
	padding: 0 !important;
	background: transparent !important;
	background-color: transparent !important;
	border: 0;
	box-shadow: none;
	color: var(--jec-text);
	font-size: clamp(1.35rem, 4vw, 1.9rem);
	font-weight: 700;
	line-height: 1.32;
	letter-spacing: 0;
}

.jec-app .jec-choices {
	display: grid;
	gap: 12px;
}

.jec-app .jec-choice-button {
	border: 1px solid var(--jec-line);
	background: #ffffff;
	color: var(--jec-text);
	padding: 15px 16px;
	text-align: left;
}

.jec-app .jec-choice-button:hover {
	background: #f4faf8;
	box-shadow: 0 10px 24px rgba(36, 48, 47, 0.08);
}

.jec-app .jec-result-label {
	display: inline-flex;
	align-items: center;
	min-height: 38px;
	margin: 0 0 16px;
	border-radius: 999px;
	padding: 7px 14px;
	font-size: 1.15rem;
	font-weight: 800;
}

.jec-app .jec-result-good-choice {
	background: #e4f5eb;
	color: #17643c;
}

.jec-app .jec-result-be-careful {
	background: #fff4cc;
	color: #7a5a00;
}

.jec-app .jec-result-better-avoid {
	background: #ffead6;
	color: #8a4300;
}

.jec-app .jec-result-not-recommended {
	background: #fde3e2;
	color: #9a2f2b;
}

.jec-app .jec-result-depends-on-the-place {
	background: #e2efff;
	color: #225c96;
}

.jec-app .jec-explanation,
.jec-app .jec-best-action,
.jec-app .jec-phrase-line {
	font-size: 1rem;
	line-height: 1.7;
}

.jec-app .jec-best-action {
	margin: 20px 0;
	border-left: 4px solid var(--jec-primary);
	background: #f4faf8;
	border-radius: 0 8px 8px 0;
	padding: 13px 15px;
}

.jec-app .jec-phrase-card,
.jec-app .jec-related-card {
	border: 1px solid var(--jec-line);
	border-radius: 8px;
	background: #fbfdfc;
}

.jec-app .jec-phrase-card {
	margin: 20px 0 16px;
	padding: 18px;
}

.jec-app .jec-box-title,
.jec-app .jec-section-title {
	margin: 0 0 10px;
	padding-left: 0;
	background: transparent !important;
	background-color: transparent !important;
	border: 0;
	box-shadow: none;
	color: var(--jec-text);
	font-size: 1rem;
	font-weight: 800;
	line-height: 1.35;
	letter-spacing: 0;
}

.jec-app .jec-phrase-line {
	margin: 6px 0;
}

.jec-app .jec-related-card {
	display: block;
	margin: 16px 0 24px;
	padding: 16px 18px;
	color: var(--jec-text);
	text-decoration: none;
}

.jec-app .jec-related-card:hover,
.jec-app .jec-related-card:focus-visible {
	border-color: rgba(31, 122, 104, 0.55);
	outline: 2px solid rgba(31, 122, 104, 0.2);
	outline-offset: 2px;
}

.jec-app .jec-related-label {
	display: block;
	margin-bottom: 4px;
	color: var(--jec-muted);
	font-size: 0.82rem;
	font-weight: 700;
	text-transform: uppercase;
}

.jec-app .jec-related-title {
	display: block;
	color: var(--jec-primary-dark);
	font-weight: 800;
}

.jec-app .jec-next-button {
	max-width: 220px;
}

.jec-app .jec-final-card {
	text-align: center;
	background:
		linear-gradient(180deg, rgba(247, 250, 249, 0.85), rgba(255, 255, 255, 0.98) 46%),
		var(--jec-card);
}

.jec-app .jec-score {
	margin: 24px 0 10px;
	color: var(--jec-text);
	font-size: 1.35rem;
	font-weight: 800;
}

.jec-app .jec-rank {
	display: inline-flex;
	margin: 0 0 24px;
	border-radius: 999px;
	background: var(--jec-soft);
	border: 1px solid var(--jec-soft-line);
	color: var(--jec-primary-dark);
	padding: 9px 16px;
	font-weight: 800;
}

.jec-app .jec-final-actions {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.jec-app .jec-loading,
.jec-app .jec-error {
	margin: 0;
	line-height: 1.7;
}

.wj-etiquette-page h2 {
	position: relative;
	margin: 1.8em 0 0.8em;
	padding: 0 0 10px !important;
	background: transparent !important;
	background-color: transparent !important;
	border: 0;
	border-bottom: 1px solid #dce7e4;
	box-shadow: none;
	color: #24302f;
	line-height: 1.35;
	letter-spacing: 0;
}

.wj-etiquette-page h2::before,
.wj-etiquette-page h2::after {
	position: absolute;
	bottom: -1px;
	left: 0;
	width: 54px;
	height: 3px;
	border: 0;
	border-radius: 999px;
	background: #1f7a68 !important;
	background-color: #1f7a68 !important;
	box-shadow: none;
	content: "";
}

.wj-etiquette-page h2::before {
	display: none;
}

@media (max-width: 600px) {
	.jec-app {
		margin: 16px auto;
		padding: 0 12px;
	}

	.jec-app .jec-card {
		padding: 24px 18px;
	}

	.jec-app .jec-heading-main,
	.jec-app .jec-title {
		margin-bottom: 16px;
		padding-bottom: 12px !important;
	}

	.jec-app .jec-category-grid,
	.jec-app .jec-final-actions {
		grid-template-columns: 1fr;
	}

	.jec-app .jec-meta {
		align-items: flex-start;
		flex-direction: column;
	}

	.jec-app .jec-next-button {
		max-width: none;
	}
}

/* Final override: keep STINGER heading bands out of this quiz/page only. */
.jec-app h1,
.jec-app h2,
.jec-app h3,
.jec-app .jec-heading,
.jec-app .jec-heading-main,
.jec-app .jec-heading-sub,
.jec-app .jec-title,
.jec-app .jec-question,
.jec-app .jec-question-title,
.jec-app .jec-complete-title,
.jec-app .jec-box-title,
.jec-app .jec-screen-title,
.jec-app [class*="title"],
.jec-app [class*="question"] {
	background: none !important;
	background-color: transparent !important;
	box-shadow: none !important;
	border: none;
	padding-left: 0 !important;
}

.jec-app h1::before,
.jec-app h1::after,
.jec-app h2::before,
.jec-app h2::after,
.jec-app h3::before,
.jec-app h3::after,
.jec-app .jec-heading::before,
.jec-app .jec-heading::after,
.jec-app .jec-question::before,
.jec-app .jec-question::after,
.jec-app .jec-question-title::before,
.jec-app .jec-question-title::after,
.jec-app .jec-complete-title::before,
.jec-app .jec-complete-title::after,
.jec-app .jec-box-title::before,
.jec-app .jec-box-title::after,
.jec-app .jec-screen-title::before,
.jec-app .jec-screen-title::after,
.jec-app [class*="question"]::before,
.jec-app [class*="question"]::after {
	background: none !important;
	background-color: transparent !important;
	box-shadow: none !important;
	border: none !important;
}

.jec-app .jec-heading-main,
.jec-app .jec-title {
	position: relative;
	margin-bottom: 18px;
	padding: 0 0 14px !important;
	color: var(--jec-text);
}

.jec-app .jec-heading::before,
.jec-app .jec-title::before {
	display: none !important;
	background: none !important;
	background-color: transparent !important;
	box-shadow: none !important;
	border: none !important;
	content: none !important;
}

.jec-app .jec-heading-main::after,
.jec-app .jec-complete-title::after,
.jec-app .jec-title::after {
	position: absolute;
	bottom: 0;
	left: 0;
	display: block !important;
	width: 54px;
	height: 3px;
	border: none !important;
	border-radius: 999px;
	background: var(--jec-primary) !important;
	background-color: var(--jec-primary) !important;
	box-shadow: none !important;
	content: "" !important;
}

.jec-app .jec-final-card .jec-complete-title::after,
.jec-app .jec-final-card .jec-title::after {
	left: 50%;
	transform: translateX(-50%);
}

.jec-app .jec-heading-sub {
	background: none !important;
	background-color: transparent !important;
	color: var(--jec-primary-dark);
	font-weight: 700;
}

.jec-app .jec-question-title,
.jec-app .jec-question {
	margin: 0 0 24px;
	padding: 0 !important;
	background: none !important;
	background-color: transparent !important;
	color: var(--jec-text);
	font-weight: 700;
	line-height: 1.32;
}

.jec-app .jec-complete-title {
	position: relative;
	margin: 0 0 24px;
	padding: 0 0 14px !important;
	background: none !important;
	background-color: transparent !important;
	color: var(--jec-text);
	font-size: clamp(1.7rem, 5vw, 2.5rem);
	font-weight: 800;
	line-height: 1.16;
	text-align: center;
}

.jec-app .jec-card,
.jec-app .jec-start-card,
.jec-app .jec-question-card,
.jec-app .jec-answer-card,
.jec-app .jec-final-card,
.jec-app .jec-loading-card,
.jec-app .jec-error-card,
.jec-app .jec-phrase-card,
.jec-app .jec-related-card {
	background-color: var(--jec-card);
}

.jec-app .jec-start-card,
.jec-app .jec-final-card {
	background:
		linear-gradient(180deg, rgba(247, 250, 249, 0.85), rgba(255, 255, 255, 0.98) 46%),
		var(--jec-card);
}

.jec-app .jec-phrase-card,
.jec-app .jec-related-card {
	background: #fbfdfc;
	background-color: #fbfdfc;
}

.wj-etiquette-page h2,
.wj-etiquette-page h3 {
	position: relative;
	background: none !important;
	background-color: transparent !important;
	box-shadow: none !important;
	border: none !important;
	border-bottom: 1px solid #dce7e4 !important;
	padding-left: 0 !important;
	padding-bottom: 10px !important;
	color: #24302f;
	line-height: 1.35;
}

.wj-etiquette-page h2::before,
.wj-etiquette-page h3::before {
	display: none !important;
	background: none !important;
	background-color: transparent !important;
	box-shadow: none !important;
	border: none !important;
	content: none !important;
}

.wj-etiquette-page h2::after,
.wj-etiquette-page h3::after {
	position: absolute;
	bottom: -1px;
	left: 0;
	display: block !important;
	width: 54px;
	height: 3px;
	border: none !important;
	border-radius: 999px;
	background: #1f7a68 !important;
	background-color: #1f7a68 !important;
	box-shadow: none !important;
	content: "" !important;
}

.wj-etiquette-page .wj-section-heading {
	position: relative;
	margin: 1.8em 0 0.8em;
	padding: 0 0 10px;
	background: none !important;
	background-color: transparent !important;
	border: none;
	border-bottom: 1px solid #dce7e4;
	box-shadow: none !important;
	color: #24302f;
	font-size: 1.45rem;
	font-weight: 800;
	line-height: 1.35;
	letter-spacing: 0;
}

.wj-etiquette-page .wj-section-heading::before {
	display: none !important;
	content: none !important;
}

.wj-etiquette-page .wj-section-heading::after {
	position: absolute;
	bottom: -1px;
	left: 0;
	width: 54px;
	height: 3px;
	border-radius: 999px;
	background: #1f7a68;
	content: "";
}
