/* Integrity & Virtue EQ discussion guide */
.eqi-root {
	--eqi-bg: #f4f7f5;
	--eqi-card: #ffffff;
	--eqi-ink: #14241f;
	--eqi-muted: #5b6f68;
	--eqi-line: #d7e3dd;
	--eqi-accent: #0f5c4c;
	--eqi-accent-soft: #e6f3ef;
	--eqi-gold: #b08d57;
	--eqi-warn: #b45309;
	--eqi-radius: 16px;
	--eqi-shadow: 0 10px 28px rgba(20, 36, 31, 0.07);
	max-width: 42rem;
	margin: 0 auto;
	padding: 12px 14px 28px;
	color: var(--eqi-ink);
	font-family: "Source Sans 3", system-ui, -apple-system, Segoe UI, sans-serif;
	line-height: 1.45;
}
.eqi-root * { box-sizing: border-box; }
.eqi-root .hidden { display: none !important; }

.eqi-top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}
.eqi-brand { display: flex; gap: 12px; align-items: center; min-width: 0; }
.eqi-mark {
	width: 44px; height: 44px; border-radius: 14px;
	background: linear-gradient(145deg, #147a64, #0b463a);
	color: #fff; display: grid; place-items: center;
	box-shadow: 0 8px 18px rgba(15, 92, 76, 0.28);
	flex: 0 0 auto;
}
.eqi-kicker {
	margin: 0; font-size: 11px; font-weight: 700; letter-spacing: .06em;
	text-transform: uppercase; color: var(--eqi-accent);
}
.eqi-brand h1 {
	margin: 2px 0 0; font-size: 1.35rem; line-height: 1.15;
	font-family: Georgia, "Libre Baskerville", serif; font-weight: 700;
}
.eqi-top-actions { display: flex; gap: 8px; align-items: center; }
.eqi-chip, .eqi-icon-btn, .eqi-btn, .eqi-step, .eqi-nav-btn {
	font: inherit; cursor: pointer; border: 1px solid var(--eqi-line);
	background: var(--eqi-card); color: var(--eqi-ink);
}
.eqi-chip {
	border-radius: 999px; padding: 8px 12px; font-size: 12px; font-weight: 700;
	min-height: 40px;
}
.eqi-chip[aria-pressed="true"] {
	background: var(--eqi-accent); color: #fff; border-color: transparent;
}
.eqi-icon-btn {
	width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
}
.eqi-icon-btn:hover, .eqi-btn:hover, .eqi-step:hover { filter: brightness(0.98); }

.eqi-timer-card {
	background: var(--eqi-card);
	border: 1px solid var(--eqi-line);
	border-radius: var(--eqi-radius);
	padding: 14px 14px 12px;
	box-shadow: var(--eqi-shadow);
	margin-bottom: 12px;
}
.eqi-timer-row {
	display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.eqi-timer-label {
	display: block; font-size: 11px; font-weight: 700; letter-spacing: .04em;
	text-transform: uppercase; color: var(--eqi-muted);
}
.eqi-clock {
	font-variant-numeric: tabular-nums;
	font-size: 2rem; line-height: 1; letter-spacing: .02em;
	color: var(--eqi-accent);
}
.eqi-root.eqi-low .eqi-clock { color: var(--eqi-warn); }
.eqi-timer-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.eqi-btn {
	border-radius: 12px; min-height: 42px; padding: 8px 14px;
	font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 8px;
}
.eqi-btn:disabled { opacity: .45; cursor: default; }
.eqi-btn-primary {
	background: var(--eqi-accent); color: #fff; border-color: transparent;
}
.eqi-btn-ghost { background: var(--eqi-accent-soft); border-color: transparent; color: var(--eqi-accent); }
.eqi-progress {
	margin-top: 12px; height: 6px; border-radius: 999px; background: #e8efeb; overflow: hidden;
}
.eqi-progress > i {
	display: block; height: 100%; width: 0%;
	background: linear-gradient(90deg, #147a64, #0f5c4c);
	border-radius: inherit; transition: width .25s linear;
}
.eqi-board {
	margin: 10px 0 0; text-align: center; font-size: 13px; font-weight: 600;
	color: var(--eqi-muted); letter-spacing: .01em;
}

.eqi-steps {
	display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 6px; margin-bottom: 12px;
}
.eqi-step {
	border-radius: 12px; min-height: 52px; padding: 8px 4px;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	gap: 2px; font-size: 11px; font-weight: 700; color: var(--eqi-muted);
}
.eqi-step b { font-size: 14px; color: var(--eqi-ink); font-weight: 800; }
.eqi-step.on {
	background: var(--eqi-accent); color: rgba(255,255,255,.85); border-color: transparent;
}
.eqi-step.on b { color: #fff; }
.eqi-step.done { background: var(--eqi-accent-soft); border-color: transparent; color: var(--eqi-accent); }
.eqi-step.done b { color: var(--eqi-accent); }

.eqi-main {
	background: var(--eqi-card);
	border: 1px solid var(--eqi-line);
	border-radius: var(--eqi-radius);
	box-shadow: var(--eqi-shadow);
	padding: 16px 16px 14px;
	min-height: 280px;
}
.eqi-seg-meta {
	display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
	margin-bottom: 10px;
}
.eqi-badge {
	display: inline-flex; align-items: center; gap: 6px;
	background: var(--eqi-accent-soft); color: var(--eqi-accent);
	border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 700;
}
.eqi-mins { color: var(--eqi-muted); font-size: 12px; font-weight: 600; }
.eqi-main h2 {
	margin: 0 0 8px; font-family: Georgia, "Libre Baskerville", serif;
	font-size: 1.35rem; line-height: 1.25;
}
.eqi-purpose { margin: 0 0 14px; color: var(--eqi-muted); font-size: 14px; }
.eqi-quote {
	margin: 0 0 16px; padding: 14px 14px 14px 16px;
	border-left: 4px solid var(--eqi-gold);
	background: linear-gradient(180deg, #fbf8f1, #f7f3ea);
	border-radius: 0 12px 12px 0;
	font-family: Georgia, serif; font-size: 1.02rem; line-height: 1.5;
	color: #2a2418;
}
.eqi-quote cite {
	display: block; margin-top: 8px; font-style: normal;
	font-size: 12px; font-weight: 700; color: var(--eqi-muted);
	font-family: "Source Sans 3", system-ui, sans-serif;
}
.eqi-ask-label {
	margin: 0 0 6px; font-size: 11px; font-weight: 800; letter-spacing: .05em;
	text-transform: uppercase; color: var(--eqi-accent);
}
.eqi-ask {
	margin: 0 0 14px; font-size: 1.08rem; font-weight: 700; line-height: 1.35;
}
.eqi-follow { margin: 0 0 14px; padding: 0 0 0 18px; color: var(--eqi-muted); }
.eqi-follow li { margin: 0 0 6px; }
.eqi-tip {
	margin: 0 0 14px; padding: 12px 14px; border-radius: 12px;
	background: #eef6f3; border: 1px solid #cfe3db; font-size: 14px;
}
.eqi-tip strong { color: var(--eqi-accent); }
.eqi-script {
	margin: 0 0 14px; padding: 12px 14px; border-radius: 12px;
	background: #f8fafc; border: 1px dashed var(--eqi-line); font-size: 14px;
	color: #334155;
}
.eqi-nav {
	display: flex; justify-content: space-between; gap: 10px; margin-top: 4px;
}
.eqi-nav-btn {
	border-radius: 12px; min-height: 44px; padding: 10px 14px;
	font-weight: 700; font-size: 13px;
	display: inline-flex; align-items: center; gap: 8px;
}
.eqi-nav-btn.primary {
	background: var(--eqi-accent); color: #fff; border-color: transparent; margin-left: auto;
}

.eqi-notes {
	margin-top: 12px; background: var(--eqi-card); border: 1px solid var(--eqi-line);
	border-radius: var(--eqi-radius); padding: 12px 14px; box-shadow: var(--eqi-shadow);
}
.eqi-notes label {
	display: block; font-size: 12px; font-weight: 700; margin-bottom: 6px; color: var(--eqi-ink);
}
.eqi-notes label span { color: var(--eqi-muted); font-weight: 500; }
.eqi-notes textarea {
	width: 100%; border: 1px solid var(--eqi-line); border-radius: 12px;
	padding: 10px 12px; font: inherit; resize: vertical; min-height: 72px;
	background: #fbfcfc; color: var(--eqi-ink);
}
.eqi-notes textarea:focus {
	outline: 2px solid rgba(15, 92, 76, 0.25); border-color: var(--eqi-accent);
}

.eqi-foot { margin-top: 16px; text-align: center; }
.eqi-link {
	display: inline-flex; align-items: center; gap: 8px;
	color: var(--eqi-accent); font-weight: 700; text-decoration: none; font-size: 14px;
}
.eqi-link:hover { text-decoration: underline; }
.eqi-disc {
	margin: 10px auto 0; max-width: 34rem; font-size: 11px; line-height: 1.4; color: var(--eqi-muted);
}

.eqi-toast {
	position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%);
	background: #14241f; color: #fff; padding: 10px 14px; border-radius: 999px;
	font-size: 13px; font-weight: 600; z-index: 40;
	box-shadow: 0 12px 28px rgba(0,0,0,.2);
}

/* Follow-along mode hides facilitator-only chrome */
.eqi-root[data-role="follow"] .lead-only { display: none !important; }
.eqi-root[data-role="follow"] .eqi-tip { display: none !important; }
.eqi-root[data-role="follow"] .eqi-script { display: none !important; }

@media (max-width: 420px) {
	.eqi-brand h1 { font-size: 1.15rem; }
	.eqi-clock { font-size: 1.7rem; }
	.eqi-steps { gap: 4px; }
	.eqi-step { min-height: 48px; font-size: 10px; padding: 6px 2px; }
	.eqi-step b { font-size: 12px; }
}
