/* ============================================================
   Eagle Rock Baptist Church — Spiritual Gifts Assessment
   Themed to the ERBC look: deep navy, warm gold, amber highlights.
   Headings in Rubik, body in Karla.
   All styles scoped under .erbcsg-root.
   ============================================================ */

.erbcsg-root {
	/* ============ COLOR (Eagle Rock Baptist Church) ============ */
	/* Backgrounds */
	--erbcsg-bg-dark:   #1a2230;   /* Deep navy — hero / dark rows */
	--erbcsg-bg-light:  #ffffff;   /* Light row */
	--erbcsg-bg-muted:  #f5f1ea;   /* Warm off-white — quiz row */

	/* Font colors: contrasted */
	--erbcsg-text:      #1a2230;   /* Heading on light (navy ink) */
	--erbcsg-text-soft: #4f5864;   /* Paragraph */
	--erbcsg-text-mute: #8a939e;   /* Derived softer mute */
	--erbcsg-on-dark:   #FFFFFF;   /* Text on dark rows */
	--erbcsg-on-dark-soft: #d6dae1;
	--erbcsg-on-dark-mute: #8f99a6;

	/* Rules / borders (derived) */
	--erbcsg-rule:       #e2dbcf;   /* on muted */
	--erbcsg-rule-light: #e7e9ed;   /* on light */
	--erbcsg-rule-dark:  #2c3647;   /* on dark */

	/* For Attention — naturally active */
	--erbcsg-loyalty:  #2f6fb0;   /* For links (navy-leaning blue) */
	--erbcsg-fresh:    #6fac80;
	--erbcsg-energy:   #c69544;   /* Primary CTA / actions — ERBC warm gold */
	--erbcsg-energy-hover: #a87c30;

	/* Amber — reserved for highlighting the user's top gifts */
	--erbcsg-amber:      #f3b259;
	--erbcsg-amber-soft: #fbe6c4;

	/* Complementary accent washes */
	--erbcsg-cool:    #cfe0ef;
	--erbcsg-calm:    #BAD7C2;
	--erbcsg-warmth:  #f3dcb8;

	/* Alternative — stated */
	--erbcsg-link:    #2f6fb0;

	/* ============ TYPE ============ */
	/* Headings: Rubik (loaded via Google Fonts; or Adobe Fonts kit if set). */
	--erbcsg-font-heading: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;

	/* Paragraph / body: Karla. */
	--erbcsg-font-body: 'Karla', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;

	/* Callout / eyebrow labels (all caps): Rubik, to stay in the two-font system. */
	--erbcsg-font-callout: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;

	/* ============ Shape ============ */
	--erbcsg-radius:    6px;
	--erbcsg-radius-lg: 10px;
	--erbcsg-radius-pill: 999px;  /* per homepage button style */

	/* ============ Reset / insulation from host theme ============ */
	font-family: var(--erbcsg-font-body);
	font-weight: 400;            /* Karla regular */
	color: var(--erbcsg-text);
	background: var(--erbcsg-bg-light);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	box-sizing: border-box;

	/* Allow assessment to feel full-bleed even inside themed page containers. */
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	width: 100vw;
	max-width: 100vw;
	overflow-x: hidden;
}

.erbcsg-root *,
.erbcsg-root *::before,
.erbcsg-root *::after {
	box-sizing: border-box;
}

/* ============ Screen layout ============ */
.erbcsg-screen {
	padding: clamp(2.5rem, 6vw, 5.5rem) clamp(1.25rem, 5vw, 3rem);
	position: relative;
	min-height: 100vh;
}

/* Intro: dark navy hero, echoing the ERBC homepage hero. */
.erbcsg-screen--intro {
	background: var(--erbcsg-bg-dark);
	color: var(--erbcsg-on-dark);
}

/* Quiz: warm muted cream, easier on the eyes for 80 questions. */
.erbcsg-screen--quiz {
	background: var(--erbcsg-bg-muted);
	color: var(--erbcsg-text);
}

/* Results: clean light, lets the data breathe. */
.erbcsg-screen--results {
	background: var(--erbcsg-bg-light);
	color: var(--erbcsg-text);
}

/* Subtle topographic-style background hint on the muted intro/quiz
   (echoes the "Prepare the Way" card on their homepage). */
.erbcsg-screen--quiz::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-image:
		radial-gradient(ellipse at 100% 0%, rgba(243, 178, 89, 0.08), transparent 50%),
		radial-gradient(ellipse at 0% 100%, rgba(243, 178, 89, 0.05), transparent 50%);
}

.erbcsg-container {
	max-width: 1100px;
	margin: 0 auto;
	position: relative;
	z-index: 1;
}

.erbcsg-container--narrow {
	max-width: 760px;
}

/* ============ Typography ============ */

/* Callout: Rubik, all caps, with lead rule mark. */
.erbcsg-callout {
	font-family: var(--erbcsg-font-callout);
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-size: 0.95rem;
	font-weight: 500;
	color: var(--erbcsg-energy);
	margin: 0 0 1.5rem;
	display: inline-flex;
	align-items: center;
	gap: 0.85rem;
}

.erbcsg-callout::before {
	content: "";
	display: inline-block;
	width: 28px;
	height: 2px;
	background: var(--erbcsg-energy);
}

.erbcsg-callout--small {
	font-size: 0.78rem;
	margin-bottom: 1rem;
}

/* Title: Rubik Bold, "single line, simple statement." style.
   We must explicitly set color here — many WordPress themes target
   `h1` or `.entry-content h1` with their own color, which would
   otherwise leave a dark heading on our dark-row intro screen. */
.erbcsg-root .erbcsg-title {
	font-family: var(--erbcsg-font-heading);
	font-weight: 700;
	font-size: clamp(2.5rem, 6vw, 4.75rem);
	line-height: 1.05;
	letter-spacing: -0.015em;
	margin: 0 0 1.75rem;
	color: var(--erbcsg-text);
}

/* Intro screen sits on the dark row, so the heading is white. */
.erbcsg-root .erbcsg-screen--intro .erbcsg-title {
	color: var(--erbcsg-on-dark);
}

/* Lede: Karla, balanced paragraph color. */
.erbcsg-lede {
	font-family: var(--erbcsg-font-body);
	font-weight: 400;
	font-size: clamp(1.05rem, 1.6vw, 1.2rem);
	line-height: 1.65;
	margin: 0 0 2.5rem;
	max-width: 56ch;
}

/* On dark rows, override paragraph color. */
.erbcsg-screen--intro .erbcsg-lede {
	color: var(--erbcsg-on-dark-soft);
}
.erbcsg-screen--quiz .erbcsg-lede,
.erbcsg-screen--results .erbcsg-lede {
	color: var(--erbcsg-text-soft);
}

/* Section heading: Rubik, anchored with a rule. */
.erbcsg-section-heading {
	font-family: var(--erbcsg-font-heading);
	font-weight: 600;
	font-size: clamp(1.5rem, 2.5vw, 2rem);
	letter-spacing: -0.01em;
	color: var(--erbcsg-text);
	margin: 3.5rem 0 1.75rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--erbcsg-rule-light);
}

/* ============ Intro screen ============ */
.erbcsg-intro-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	gap: clamp(2rem, 5vw, 4.5rem);
	align-items: start;
	margin-bottom: 3.5rem;
}

@media (max-width: 860px) {
	.erbcsg-intro-grid {
		grid-template-columns: 1fr;
	}
}

.erbcsg-intro-main {
	padding-top: 1rem;
}

.erbcsg-intro-sidebar {
	display: grid;
	gap: 1.25rem;
}

/* Cards on dark: light surface, like the "Join a Life Group" card on homepage. */
.erbcsg-screen--intro .erbcsg-card {
	background: var(--erbcsg-bg-light);
	border: 1px solid transparent;
	color: var(--erbcsg-text);
}

.erbcsg-screen--intro .erbcsg-card--muted {
	background: var(--erbcsg-bg-muted);
}

.erbcsg-card {
	border-radius: var(--erbcsg-radius-lg);
	padding: 1.75rem;
	position: relative;
}

.erbcsg-card-heading {
	font-family: var(--erbcsg-font-heading);
	font-weight: 600;
	font-size: 1.25rem;
	margin: 0 0 1.25rem;
	color: var(--erbcsg-text);
	letter-spacing: -0.005em;
}

.erbcsg-checklist {
	list-style: none;
	padding: 0;
	margin: 0;
}

.erbcsg-checklist li {
	position: relative;
	padding-left: 1.5rem;
	margin-bottom: 0.85rem;
	color: var(--erbcsg-text-soft);
	font-size: 0.95rem;
	line-height: 1.5;
}

.erbcsg-checklist li:last-child {
	margin-bottom: 0;
}

.erbcsg-checklist li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.55rem;
	width: 7px;
	height: 7px;
	background: var(--erbcsg-energy);
	border-radius: 50%;
}

.erbcsg-scale-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: 0.65rem;
}

.erbcsg-scale-list li {
	display: flex;
	align-items: center;
	gap: 1rem;
	color: var(--erbcsg-text-soft);
	font-size: 0.92rem;
}

.erbcsg-scale-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.1rem;
	height: 2.1rem;
	border: 1.5px solid var(--erbcsg-energy);
	border-radius: 50%;
	font-family: var(--erbcsg-font-heading);
	font-weight: 700;
	font-size: 1rem;
	color: var(--erbcsg-energy);
	flex-shrink: 0;
	background: transparent;
}

.erbcsg-attribution {
	font-size: 0.78rem;
	font-style: italic;
	text-align: center;
	margin: 0;
	padding-top: 2rem;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.erbcsg-screen--intro .erbcsg-attribution {
	color: var(--erbcsg-on-dark-mute);
}

/* ============ Buttons ============ */
/* Primary = pill-shaped amber, like the homepage "Join Us Sunday" button. */
.erbcsg-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
	padding: 1rem 2.25rem;
	font-family: var(--erbcsg-font-callout);
	font-size: 0.95rem;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	cursor: pointer;
	transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
	border: 2px solid transparent;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
	border-radius: var(--erbcsg-radius-pill);
}

.erbcsg-btn:focus-visible {
	outline: 2px solid var(--erbcsg-energy);
	outline-offset: 3px;
}

.erbcsg-btn--primary {
	background: var(--erbcsg-energy);
	color: var(--erbcsg-text);
	border-color: var(--erbcsg-energy);
}

.erbcsg-btn--primary:hover {
	background: var(--erbcsg-energy-hover);
	border-color: var(--erbcsg-energy-hover);
	transform: translateY(-2px);
	box-shadow: 0 10px 24px -10px rgba(243, 178, 89, 0.6);
}

.erbcsg-btn--primary:active {
	transform: translateY(0);
}

/* Ghost on light: dark outline like the "3 Locations" homepage button. */
.erbcsg-btn--ghost {
	background: transparent;
	color: var(--erbcsg-text);
	border-color: var(--erbcsg-text);
}

.erbcsg-btn--ghost:hover:not(:disabled) {
	background: var(--erbcsg-text);
	color: var(--erbcsg-bg-light);
}

/* Ghost on dark inverts. */
.erbcsg-screen--intro .erbcsg-btn--ghost {
	color: var(--erbcsg-on-dark);
	border-color: var(--erbcsg-on-dark);
}
.erbcsg-screen--intro .erbcsg-btn--ghost:hover:not(:disabled) {
	background: var(--erbcsg-on-dark);
	color: var(--erbcsg-bg-dark);
}

.erbcsg-btn--ghost:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

/* ============ Quiz screen ============ */
.erbcsg-quiz-header {
	margin-bottom: 3.5rem;
}

.erbcsg-progress-info {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-bottom: 0.85rem;
}

.erbcsg-progress-count {
	font-family: var(--erbcsg-font-callout);
	font-size: 0.9rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--erbcsg-text-soft);
	font-variant-numeric: tabular-nums;
	font-weight: 500;
}

.erbcsg-progress-count strong {
	color: var(--erbcsg-text);
	font-weight: 600;
	font-size: 1.15rem;
}

.erbcsg-progress-divider {
	color: var(--erbcsg-text-mute);
	margin: 0 0.4rem;
	font-size: 0.85em;
}

.erbcsg-progress-total {
	color: var(--erbcsg-text-soft);
}

.erbcsg-progress-percent {
	font-family: var(--erbcsg-font-callout);
	color: var(--erbcsg-energy);
	font-weight: 500;
	font-size: 0.9rem;
	letter-spacing: 0.08em;
	font-variant-numeric: tabular-nums;
}

.erbcsg-progress-bar {
	height: 3px;
	background: rgba(26, 34, 48, 0.12);
	position: relative;
	overflow: hidden;
	border-radius: 0;
}

.erbcsg-progress-fill {
	height: 100%;
	background: var(--erbcsg-energy);
	width: 0%;
	transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Question — Rubik, big, declarative. */
.erbcsg-question-text {
	font-family: var(--erbcsg-font-heading);
	font-weight: 700;
	font-size: clamp(1.5rem, 3.2vw, 2.3rem);
	line-height: 1.25;
	color: var(--erbcsg-text);
	margin: 0 0 2.5rem;
	min-height: 5rem;
	letter-spacing: -0.01em;
}

/* ============ Answer options ============ */
.erbcsg-options {
	display: grid;
	gap: 0.6rem;
	margin-bottom: 2rem;
}

.erbcsg-option {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	width: 100%;
	padding: 1.15rem 1.5rem;
	background: var(--erbcsg-bg-light);
	border: 1.5px solid var(--erbcsg-rule);
	border-radius: var(--erbcsg-radius);
	cursor: pointer;
	font-family: var(--erbcsg-font-body);
	font-weight: 400;
	text-align: left;
	transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
	color: var(--erbcsg-text-soft);
	position: relative;
}

.erbcsg-option:focus-visible {
	outline: 2px solid var(--erbcsg-energy);
	outline-offset: 2px;
}

.erbcsg-option:hover {
	border-color: var(--erbcsg-text-mute);
	color: var(--erbcsg-text);
	transform: translateX(4px);
}

.erbcsg-option.is-selected {
	border-color: var(--erbcsg-energy);
	background: var(--erbcsg-warmth);
	color: var(--erbcsg-text);
}

.erbcsg-option.is-selected::before {
	content: "";
	position: absolute;
	left: -1.5px;
	top: -1.5px;
	bottom: -1.5px;
	width: 4px;
	background: var(--erbcsg-energy);
	border-radius: var(--erbcsg-radius) 0 0 var(--erbcsg-radius);
}

.erbcsg-option-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.6rem;
	height: 2.6rem;
	border: 1.5px solid var(--erbcsg-rule);
	border-radius: 50%;
	font-family: var(--erbcsg-font-heading);
	font-weight: 700;
	font-size: 1.1rem;
	color: var(--erbcsg-text-mute);
	flex-shrink: 0;
	transition: all 0.18s ease;
	background: var(--erbcsg-bg-light);
}

.erbcsg-option:hover .erbcsg-option-num {
	color: var(--erbcsg-text);
	border-color: var(--erbcsg-text-mute);
}

.erbcsg-option.is-selected .erbcsg-option-num {
	background: var(--erbcsg-energy);
	color: var(--erbcsg-text);
	border-color: var(--erbcsg-energy);
}

.erbcsg-option-text {
	font-size: 1rem;
	font-weight: 400;
	flex: 1;
}

.erbcsg-option-check {
	width: 1.25rem;
	height: 1.25rem;
	border: 1.5px solid var(--erbcsg-rule);
	border-radius: 50%;
	flex-shrink: 0;
	position: relative;
	transition: all 0.18s ease;
	background: var(--erbcsg-bg-light);
}

.erbcsg-option.is-selected .erbcsg-option-check {
	background: var(--erbcsg-energy);
	border-color: var(--erbcsg-energy);
}

.erbcsg-option.is-selected .erbcsg-option-check::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 45%;
	width: 6px;
	height: 10px;
	border: solid var(--erbcsg-text);
	border-width: 0 2px 2px 0;
	transform: translate(-50%, -50%) rotate(45deg);
}

/* ============ Navigation ============ */
.erbcsg-nav {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 1rem;
	margin-top: 2.5rem;
	padding-top: 2rem;
	border-top: 1px solid var(--erbcsg-rule);
}

.erbcsg-nav #erbcsg-prev {
	justify-self: start;
}

.erbcsg-nav #erbcsg-next {
	justify-self: end;
}

.erbcsg-keyboard-hint {
	font-size: 0.78rem;
	color: var(--erbcsg-text-mute);
	margin: 0;
	font-style: italic;
	text-align: center;
}

@media (max-width: 600px) {
	.erbcsg-nav {
		grid-template-columns: 1fr 1fr;
	}

	.erbcsg-keyboard-hint {
		display: none;
	}
}

/* ============ Results screen ============ */
.erbcsg-results-header {
	margin-bottom: 3rem;
}

.erbcsg-top-gifts {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
	margin: 2rem 0 3.5rem;
}

@media (max-width: 720px) {
	.erbcsg-top-gifts {
		grid-template-columns: 1fr;
	}
}

.erbcsg-top-gift {
	background: var(--erbcsg-bg-muted);
	border: 1.5px solid var(--erbcsg-rule);
	border-radius: var(--erbcsg-radius-lg);
	padding: 2rem 1.5rem;
	text-align: center;
	position: relative;
	overflow: hidden;
	transition: transform 0.3s ease;
}

.erbcsg-top-gift:hover {
	transform: translateY(-3px);
}

.erbcsg-top-gift::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: var(--erbcsg-rule);
}

.erbcsg-top-gift--first {
	border-color: var(--erbcsg-amber);
	background: var(--erbcsg-amber-soft);
}

.erbcsg-top-gift--first::before {
	background: var(--erbcsg-amber);
}

.erbcsg-top-gift-rank {
	font-family: var(--erbcsg-font-callout);
	font-size: 0.8rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--erbcsg-energy-hover);
	font-weight: 500;
	margin-bottom: 1rem;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
}

.erbcsg-top-gift-rank::before,
.erbcsg-top-gift-rank::after {
	content: "";
	width: 16px;
	height: 1px;
	background: var(--erbcsg-energy-hover);
}

.erbcsg-top-gift-name {
	font-family: var(--erbcsg-font-heading);
	font-size: clamp(1.4rem, 2.3vw, 1.75rem);
	font-weight: 700;
	color: var(--erbcsg-text);
	margin-bottom: 0.85rem;
	letter-spacing: -0.01em;
	line-height: 1.15;
}

.erbcsg-top-gift-score {
	font-family: var(--erbcsg-font-callout);
	font-size: 0.78rem;
	color: var(--erbcsg-text-soft);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	font-weight: 500;
	font-variant-numeric: tabular-nums;
}

.erbcsg-top-gift-score strong {
	color: var(--erbcsg-text);
	font-weight: 700;
	font-size: 1rem;
}

/* ============ Chart ============ */
.erbcsg-chart {
	display: grid;
	gap: 0.75rem;
	margin: 0 0 2rem;
}

.erbcsg-bar-row {
	display: grid;
	grid-template-columns: 140px 1fr 50px;
	align-items: center;
	gap: 1.25rem;
	padding: 0.5rem 0;
}

.erbcsg-bar-label {
	font-family: var(--erbcsg-font-heading);
	font-size: 1rem;
	font-weight: 600;
	color: var(--erbcsg-text);
	text-align: right;
	letter-spacing: -0.005em;
}

.erbcsg-bar-track {
	height: 14px;
	background: var(--erbcsg-bg-muted);
	border: 1px solid var(--erbcsg-rule);
	border-radius: 2px;
	overflow: hidden;
	position: relative;
}

.erbcsg-bar-fill {
	height: 100%;
	background: var(--erbcsg-energy);
	transform-origin: left;
	animation: erbcsg-bar-grow 1s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}

/* Top three gifts are highlighted in amber. */
.erbcsg-bar-row--top .erbcsg-bar-fill {
	background: var(--erbcsg-amber);
}

.erbcsg-bar-row--low .erbcsg-bar-fill {
	background: var(--erbcsg-text-mute);
	opacity: 0.45;
}

.erbcsg-bar-score {
	font-family: var(--erbcsg-font-heading);
	font-weight: 700;
	color: var(--erbcsg-text);
	font-size: 1.05rem;
	text-align: right;
	font-variant-numeric: tabular-nums;
}

.erbcsg-bar-row--top .erbcsg-bar-score {
	color: var(--erbcsg-energy-hover);
}

@keyframes erbcsg-bar-grow {
	from { transform: scaleX(0); }
	to   { transform: scaleX(1); }
}

@media (max-width: 600px) {
	.erbcsg-bar-row {
		grid-template-columns: 100px 1fr 40px;
		gap: 0.75rem;
	}

	.erbcsg-bar-label {
		font-size: 0.82rem;
	}

	.erbcsg-bar-score {
		font-size: 0.92rem;
	}
}

/* ============ Reflection & actions ============ */
.erbcsg-reflection {
	background: var(--erbcsg-bg-muted);
	border-left: 4px solid var(--erbcsg-energy);
	border-radius: 0 var(--erbcsg-radius-lg) var(--erbcsg-radius-lg) 0;
	padding: 2rem 2.25rem;
	margin: 3rem 0 2rem;
}

.erbcsg-reflection-heading {
	font-family: var(--erbcsg-font-heading);
	font-weight: 700;
	font-size: 1.4rem;
	margin: 0 0 1rem;
	color: var(--erbcsg-text);
	letter-spacing: -0.005em;
}

.erbcsg-reflection p {
	font-family: var(--erbcsg-font-body);
	font-weight: 400;
	font-size: 1.05rem;
	color: var(--erbcsg-text-soft);
	margin: 0 0 1rem;
	line-height: 1.65;
}

.erbcsg-reflection p:last-child {
	margin-bottom: 0;
}

.erbcsg-reflection-cta {
	padding-top: 1rem;
	border-top: 1px solid var(--erbcsg-rule);
	color: var(--erbcsg-text) !important;
	font-weight: 500;
}

.erbcsg-actions {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
	margin-top: 2rem;
}

@media (max-width: 600px) {
	.erbcsg-actions {
		flex-direction: column;
	}

	.erbcsg-actions .erbcsg-btn {
		width: 100%;
	}
}

/* ============ Mobile fine-tuning ============ */
@media (max-width: 600px) {
	.erbcsg-option {
		padding: 1rem 1.1rem;
		gap: 1rem;
	}

	.erbcsg-option-num {
		width: 2.2rem;
		height: 2.2rem;
		font-size: 1rem;
	}

	.erbcsg-option-text {
		font-size: 0.92rem;
	}

	.erbcsg-option-check {
		width: 1.1rem;
		height: 1.1rem;
	}

	.erbcsg-card {
		padding: 1.5rem 1.25rem;
	}
}

/* ============================================================
   THEME-CONFLICT GUARD
   ------------------------------------------------------------
   Many WordPress themes apply aggressive global rules to h1-h6,
   p, li, a, button — sometimes via .entry-content selectors that
   beat our single-class rules in the cascade. The block below
   re-asserts our intended colors at higher specificity
   (.erbcsg-root nested) so the plugin renders consistently
   regardless of the host theme.
   ============================================================ */

/* Headings — explicit color, no theme inheritance. */
.erbcsg-root .erbcsg-title,
.erbcsg-root .erbcsg-section-heading,
.erbcsg-root .erbcsg-card-heading,
.erbcsg-root .erbcsg-question-text,
.erbcsg-root .erbcsg-top-gift-name,
.erbcsg-root .erbcsg-bar-label,
.erbcsg-root .erbcsg-reflection-heading {
	color: var(--erbcsg-text);
}

/* Dark-row intro: invert headings & body copy. */
.erbcsg-root .erbcsg-screen--intro,
.erbcsg-root .erbcsg-screen--intro p,
.erbcsg-root .erbcsg-screen--intro h1,
.erbcsg-root .erbcsg-screen--intro h2,
.erbcsg-root .erbcsg-screen--intro li {
	color: var(--erbcsg-on-dark);
}

.erbcsg-root .erbcsg-screen--intro .erbcsg-title {
	color: var(--erbcsg-on-dark);
}

.erbcsg-root .erbcsg-screen--intro .erbcsg-lede {
	color: var(--erbcsg-on-dark-soft);
}

.erbcsg-root .erbcsg-screen--intro .erbcsg-attribution {
	color: var(--erbcsg-on-dark-mute);
}

/* Cards on dark intro screen reset back to dark text on light card. */
.erbcsg-root .erbcsg-screen--intro .erbcsg-card,
.erbcsg-root .erbcsg-screen--intro .erbcsg-card h2,
.erbcsg-root .erbcsg-screen--intro .erbcsg-card li,
.erbcsg-root .erbcsg-screen--intro .erbcsg-card p {
	color: var(--erbcsg-text);
}

.erbcsg-root .erbcsg-screen--intro .erbcsg-card .erbcsg-checklist li,
.erbcsg-root .erbcsg-screen--intro .erbcsg-card .erbcsg-scale-list li {
	color: var(--erbcsg-text-soft);
}

/* Callout always uses the energy amber for its own text. */
.erbcsg-root .erbcsg-callout {
	color: var(--erbcsg-energy);
}

/* Buttons: defend against theme button styles that re-color text. */
.erbcsg-root .erbcsg-btn--primary {
	color: var(--erbcsg-text);
	background-color: var(--erbcsg-energy);
}

.erbcsg-root .erbcsg-btn--ghost {
	color: var(--erbcsg-text);
	background-color: transparent;
}

.erbcsg-root .erbcsg-screen--intro .erbcsg-btn--ghost {
	color: var(--erbcsg-on-dark);
}

/* Reset theme link styles inside the assessment. */
.erbcsg-root a {
	color: var(--erbcsg-loyalty);
	text-decoration: none;
}

/* Inline CTA link — used for "Connect with Us" in the reflection block.
   Reads as text but with an amber underline + color shift on hover, so it
   feels like a thoughtful invitation rather than a generic blue web link. */
.erbcsg-root .erbcsg-link {
	color: var(--erbcsg-text);
	font-weight: 500;
	text-decoration: underline;
	text-decoration-color: var(--erbcsg-energy);
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
	transition: color 0.18s ease, text-decoration-color 0.18s ease;
}

.erbcsg-root .erbcsg-link:hover,
.erbcsg-root .erbcsg-link:focus-visible {
	color: var(--erbcsg-energy-hover);
	text-decoration-color: var(--erbcsg-energy-hover);
}

.erbcsg-root .erbcsg-link:focus-visible {
	outline: 2px solid var(--erbcsg-energy);
	outline-offset: 3px;
	border-radius: 2px;
}

/* Reset theme button base styles (some themes give buttons huge padding,
   shadows, gradients, etc.). */
.erbcsg-root button {
	font-family: inherit;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	background: none;
	border: none;
	padding: 0;
	margin: 0;
	box-shadow: none;
	text-shadow: none;
}

/* Re-apply our intended button styles after the reset.
   IMPORTANT: this rule must restore ALL typography properties, not just
   shape. Otherwise <button> elements inherit the host theme's button
   font/size/weight while <a class="erbcsg-btn"> renders with our intended
   styles — making mixed button/anchor rows look inconsistent. */
.erbcsg-root a.erbcsg-btn,
.erbcsg-root button.erbcsg-btn,
.erbcsg-root .erbcsg-btn {
	font-family: var(--erbcsg-font-callout) !important;
	font-size: 0.95rem !important;
	font-weight: 500 !important;
	line-height: 1 !important;
	letter-spacing: 0.1em !important;
	text-transform: uppercase !important;
	text-decoration: none !important;
	padding: 1rem 2.25rem !important;
	border-radius: var(--erbcsg-radius-pill) !important;
	border-width: 2px !important;
	border-style: solid !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	box-sizing: border-box !important;
	min-height: 0;     /* defeat any theme min-height on buttons */
	height: auto;      /* defeat any fixed-height theme rule */
}

/* Headings: strip any theme decorations (background images, after-elements,
   underlines from theme blockquote styles, etc.). */
.erbcsg-root h1.erbcsg-title::before,
.erbcsg-root h1.erbcsg-title::after,
.erbcsg-root h2.erbcsg-section-heading::after,
.erbcsg-root h2.erbcsg-card-heading::before,
.erbcsg-root h2.erbcsg-card-heading::after,
.erbcsg-root h2.erbcsg-question-text::before,
.erbcsg-root h2.erbcsg-question-text::after,
.erbcsg-root h2.erbcsg-reflection-heading::before,
.erbcsg-root h2.erbcsg-reflection-heading::after {
	content: none;
	display: none;
}

/* Ensure theme blockquote/list styles don't leak into our cards. */
.erbcsg-root ul,
.erbcsg-root ol {
	list-style: none;
	padding: 0;
	margin: 0;
}

/* Ensure lists inside the assessment use our spacing, not theme defaults. */
.erbcsg-root .erbcsg-checklist,
.erbcsg-root .erbcsg-scale-list {
	list-style: none;
}

/* ============================================================
   ABOUT SPIRITUAL GIFTS  &  MINISTRY MATCHING CHART
   Added in v1.3.0 — render below the bar chart on the results page.
   ============================================================ */

/* ---- About section ---- */
.erbcsg-root .erbcsg-about {
	margin-top: 3rem;
}

.erbcsg-root .erbcsg-about-lede {
	font-family: var(--erbcsg-font-body);
	font-weight: 400;
	font-size: 1.05rem;
	line-height: 1.65;
	color: var(--erbcsg-text-soft);
	max-width: 70ch;
	margin: 0 0 1.75rem;
}

/* List of "Leadership can show up almost anywhere" etc. */
.erbcsg-root .erbcsg-notes {
	background: var(--erbcsg-bg-muted);
	border-radius: var(--erbcsg-radius-lg);
	padding: 1.75rem 2rem 1.75rem 2.5rem;
	margin: 0;
	list-style: none;
	border-left: 4px solid var(--erbcsg-energy);
}

.erbcsg-root .erbcsg-notes li {
	position: relative;
	padding-left: 1.25rem;
	margin-bottom: 0.85rem;
	color: var(--erbcsg-text-soft);
	font-size: 1rem;
	line-height: 1.55;
}

.erbcsg-root .erbcsg-notes li:last-child {
	margin-bottom: 0;
}

.erbcsg-root .erbcsg-notes li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.6rem;
	width: 6px;
	height: 6px;
	background: var(--erbcsg-energy);
	border-radius: 50%;
}

.erbcsg-root .erbcsg-notes strong {
	color: var(--erbcsg-text);
	font-weight: 600;
}

/* ---- Ministries section ---- */
.erbcsg-root .erbcsg-ministries {
	margin-top: 3rem;
}

.erbcsg-root .erbcsg-ministries-intro {
	font-family: var(--erbcsg-font-body);
	font-weight: 400;
	font-size: 1.05rem;
	line-height: 1.65;
	color: var(--erbcsg-text-soft);
	max-width: 70ch;
	margin: 0 0 2rem;
}

.erbcsg-root .erbcsg-highlight-key {
	display: inline-block;
	padding: 0.1em 0.5em;
	background: var(--erbcsg-amber-soft);
	color: var(--erbcsg-text);
	border-radius: 3px;
	font-weight: 600;
	white-space: nowrap;
}

/* The grid of ministry cards. */
.erbcsg-root .erbcsg-ministry-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 1rem;
	margin-top: 1.5rem;
}

/* Each ministry: card with title, optional fit badge, gift pills. */
.erbcsg-root .erbcsg-ministry-card {
	background: var(--erbcsg-bg-light);
	border: 1.5px solid var(--erbcsg-rule-light);
	border-radius: var(--erbcsg-radius-lg);
	padding: 1.5rem;
	transition: all 0.2s ease;
	position: relative;
}

.erbcsg-root .erbcsg-ministry-card:hover {
	border-color: var(--erbcsg-text-mute);
	transform: translateY(-2px);
	box-shadow: 0 6px 16px -8px rgba(26, 34, 48, 0.15);
}

/* Cards with a match get the warm background and amber border. */
.erbcsg-root .erbcsg-ministry-card--fit {
	background: var(--erbcsg-bg-muted);
	border-color: var(--erbcsg-amber);
}

.erbcsg-root .erbcsg-ministry-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 1rem;
	flex-wrap: wrap;
}

.erbcsg-root .erbcsg-ministry-name {
	font-family: var(--erbcsg-font-heading);
	font-weight: 700;
	font-size: 1.35rem;
	color: var(--erbcsg-text);
	margin: 0;
	letter-spacing: -0.005em;
	line-height: 1.2;
}

.erbcsg-root .erbcsg-ministry-badge {
	font-family: var(--erbcsg-font-callout);
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-size: 0.7rem;
	font-weight: 600;
	padding: 0.35em 0.75em;
	border-radius: var(--erbcsg-radius-pill);
	background: var(--erbcsg-amber);
	color: var(--erbcsg-text);
	white-space: nowrap;
	flex-shrink: 0;
}

.erbcsg-root .erbcsg-ministry-badge--soft {
	background: transparent;
	color: var(--erbcsg-energy-hover);
	border: 1px solid var(--erbcsg-amber);
}

/* Pills container. */
.erbcsg-root .erbcsg-ministry-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

/* Individual gift pills. */
.erbcsg-root .erbcsg-gift-pill {
	font-family: var(--erbcsg-font-body);
	font-weight: 500;
	font-size: 0.82rem;
	padding: 0.4em 0.85em;
	background: rgba(26, 34, 48, 0.04);
	color: var(--erbcsg-text-soft);
	border-radius: var(--erbcsg-radius-pill);
	border: 1px solid transparent;
	transition: all 0.18s ease;
}

/* Pills for the user's top 3 gifts: amber fill, dark text. */
.erbcsg-root .erbcsg-gift-pill--match {
	background: var(--erbcsg-amber);
	color: var(--erbcsg-text);
	font-weight: 600;
	box-shadow: 0 2px 6px -2px rgba(243, 178, 89, 0.5);
}

@media (max-width: 600px) {
	.erbcsg-root .erbcsg-ministry-card {
		padding: 1.25rem;
	}

	.erbcsg-root .erbcsg-ministry-name {
		font-size: 1.2rem;
	}

	.erbcsg-root .erbcsg-gift-pill {
		font-size: 0.78rem;
	}

	.erbcsg-root .erbcsg-notes {
		padding: 1.25rem 1.25rem 1.25rem 1.75rem;
	}
}

/* ============================================================
   PDF EXPORT MODE
   When the user clicks "Export to PDF", a clone of the results
   screen gets the .erbcsg-pdf-mode class. These rules tune the
   layout for an 8.5×11 / A4 sheet: tighter spacing, no
   animations, sensible page breaks, and a branded header.
   ============================================================ */

/* The clone is wrapped in .erbcsg-root.erbcsg-pdf-root for CSS scoping.
   Critically, we MUST undo the full-bleed negative-margin trick
   from the main `.erbcsg-root` rule — html2canvas can't handle
   viewport-relative margins and will render an empty capture.
   Width matches the off-screen holder used by the image exporter. */
.erbcsg-root.erbcsg-pdf-root {
	margin: 0 !important;
	width: 900px !important;
	max-width: 900px !important;
	overflow: visible !important;
	background: #ffffff !important;
	color: #1a2230 !important;
	display: block !important;
	box-sizing: border-box;
	padding: 32px !important;
}
.erbcsg-root .erbcsg-pdf-mode {
	background: #ffffff !important;
	padding: 0 !important;
	min-height: 0 !important;
	width: 100% !important;
	margin: 0 !important;
}

.erbcsg-root .erbcsg-pdf-mode .erbcsg-container {
	max-width: 100% !important;
	padding: 0 !important;
}

/* PDF header — branded letterhead. */
.erbcsg-pdf-header {
	border-bottom: 3px solid var(--erbcsg-energy);
	padding-bottom: 12px;
	margin-bottom: 28px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.erbcsg-pdf-brand {
	font-family: var(--erbcsg-font-callout);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.18em;
	color: var(--erbcsg-text);
}

.erbcsg-pdf-subbrand {
	font-family: var(--erbcsg-font-heading);
	font-size: 22px;
	font-weight: 700;
	color: var(--erbcsg-text);
	letter-spacing: -0.01em;
}

.erbcsg-pdf-date {
	font-family: var(--erbcsg-font-body);
	font-size: 11px;
	color: var(--erbcsg-text-soft);
	margin-top: 2px;
}

/* Kill animations & hover transforms so nothing renders mid-state. */
.erbcsg-pdf-mode *,
.erbcsg-pdf-mode *::before,
.erbcsg-pdf-mode *::after {
	animation: none !important;
	transition: none !important;
	transform: none !important;
}

/* Hide the title's display H1 — the PDF header carries the title now. */
.erbcsg-pdf-mode .erbcsg-results-header {
	display: none !important;
}

/* Tighten vertical rhythm for print. */
.erbcsg-pdf-mode .erbcsg-section-heading {
	margin: 18px 0 12px !important;
	font-size: 16px !important;
	padding-bottom: 6px !important;
}

.erbcsg-pdf-mode .erbcsg-top-gifts {
	margin: 0 0 18px !important;
	gap: 8px !important;
	display: grid !important;
	grid-template-columns: repeat(3, 1fr) !important;
}

.erbcsg-pdf-mode .erbcsg-top-gift {
	padding: 12px 10px !important;
}

.erbcsg-pdf-mode .erbcsg-top-gift-name {
	font-size: 16px !important;
	margin-bottom: 4px !important;
}

.erbcsg-pdf-mode .erbcsg-top-gift-rank {
	font-size: 9px !important;
	margin-bottom: 6px !important;
}

.erbcsg-pdf-mode .erbcsg-top-gift-score {
	font-size: 9px !important;
}

/* Chart — denser rows for the PDF. */
.erbcsg-pdf-mode .erbcsg-chart {
	gap: 4px !important;
	page-break-inside: avoid;
}

.erbcsg-pdf-mode .erbcsg-bar-row {
	grid-template-columns: 110px 1fr 32px !important;
	padding: 2px 0 !important;
	gap: 10px !important;
	page-break-inside: avoid;
}

.erbcsg-pdf-mode .erbcsg-bar-label {
	font-size: 11px !important;
}

.erbcsg-pdf-mode .erbcsg-bar-score {
	font-size: 11px !important;
}

.erbcsg-pdf-mode .erbcsg-bar-track {
	height: 10px !important;
}

/* The reflection / next step block — keep together on one page. */
.erbcsg-pdf-mode .erbcsg-reflection {
	padding: 14px 16px !important;
	margin: 18px 0 !important;
	page-break-inside: avoid;
}

.erbcsg-pdf-mode .erbcsg-reflection-heading {
	font-size: 14px !important;
	margin-bottom: 8px !important;
}

.erbcsg-pdf-mode .erbcsg-reflection p {
	font-size: 11px !important;
	margin-bottom: 6px !important;
}

/* About + notes block. */
.erbcsg-pdf-mode .erbcsg-about {
	margin-top: 16px !important;
	page-break-inside: avoid;
}

.erbcsg-pdf-mode .erbcsg-about-lede {
	font-size: 11px !important;
	margin-bottom: 10px !important;
}

.erbcsg-pdf-mode .erbcsg-notes {
	padding: 12px 14px 12px 22px !important;
}

.erbcsg-pdf-mode .erbcsg-notes li {
	font-size: 10.5px !important;
	margin-bottom: 5px !important;
}

/* Ministry chart — likely lands on page 2. */
.erbcsg-pdf-mode .erbcsg-ministries {
	margin-top: 16px !important;
	page-break-before: auto;
}

.erbcsg-pdf-mode .erbcsg-ministries-intro {
	font-size: 11px !important;
	margin-bottom: 10px !important;
}

.erbcsg-pdf-mode .erbcsg-ministry-grid {
	grid-template-columns: repeat(2, 1fr) !important;
	gap: 8px !important;
}

.erbcsg-pdf-mode .erbcsg-ministry-card {
	padding: 10px 12px !important;
	page-break-inside: avoid;
}

.erbcsg-pdf-mode .erbcsg-ministry-name {
	font-size: 13px !important;
}

.erbcsg-pdf-mode .erbcsg-ministry-head {
	margin-bottom: 6px !important;
}

.erbcsg-pdf-mode .erbcsg-ministry-badge {
	font-size: 8px !important;
	padding: 2px 6px !important;
}

.erbcsg-pdf-mode .erbcsg-gift-pill {
	font-size: 9.5px !important;
	padding: 2px 7px !important;
}

.erbcsg-pdf-mode .erbcsg-ministry-pills {
	gap: 3px !important;
}

/* Hover effects off in PDF. */
.erbcsg-pdf-mode .erbcsg-ministry-card:hover,
.erbcsg-pdf-mode .erbcsg-top-gift:hover {
	transform: none !important;
	box-shadow: none !important;
}
