/* How Much Smarter Are You? — Speaking Human Magazine
 * Everything is scoped to .shsq and avoids p/ul/h-tags so Divi's text styles can't leak in. */

.shsq {
	--shsq-accent: #00adef;
	--shsq-ink: #111;
	--shsq-muted: #4a4a4a;
	--shsq-line: #e3e6ea;
	--shsq-soft: #eef9fe;
	--shsq-scale: var(--shsq-scale-d, 1);
	--shsq-font-head: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
	--shsq-font-body: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
	--shsq-font-hand: 'Caveat', 'Comic Sans MS', cursive;
	box-sizing: border-box;
	width: 100%;
	max-width: 1180px;
	margin: 0 auto;
	padding: 0;
	color: var(--shsq-ink);
	font-family: var(--shsq-font-body);
	font-size: calc(17px * var(--shsq-scale));
	line-height: 1.45;
	text-align: left;
	text-transform: none;
	letter-spacing: normal;
}
.shsq *, .shsq *::before, .shsq *::after { box-sizing: border-box; }
.shsq div, .shsq span, .shsq label, .shsq fieldset, .shsq legend, .shsq form, .shsq button, .shsq strong {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	color: inherit;
	letter-spacing: inherit;
	text-transform: inherit;
	list-style: none;
	box-shadow: none;
}
.shsq strong { font-weight: 700; }
.shsq [hidden] { display: none !important; }
.shsq-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Layout -------------------------------------------------------------- */
.shsq .shsq-grid {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	gap: calc(56px * var(--shsq-scale));
	align-items: start;
}
.shsq .shsq-side-inner { position: sticky; top: 110px; }

/* Title block ---------------------------------------------------------- */
.shsq .shsq-title {
	display: block;
	font-family: var(--shsq-font-head);
	font-weight: 900;
	color: var(--shsq-accent);
	text-transform: uppercase;
	line-height: 0.95;
	letter-spacing: -0.01em;
	font-size: calc(54px * var(--shsq-scale));
}
.shsq .shsq-title-line { display: block; }
.shsq .shsq-title-big { font-size: 1.3em; }
.shsq .shsq-subtitle {
	display: block;
	margin-top: calc(26px * var(--shsq-scale));
	font-family: var(--shsq-font-hand);
	font-weight: 700;
	font-size: calc(32px * var(--shsq-scale));
	line-height: 1.15;
	color: var(--shsq-ink);
	max-width: 15em;
}

/* "Tally" tile — stands in for the page's QR box */
.shsq .shsq-tally {
	display: inline-flex;
	align-items: center;
	gap: 16px;
	margin-top: calc(32px * var(--shsq-scale));
	padding: 10px 26px 10px 10px;
	background: var(--shsq-accent);
	border-radius: 18px;
	color: #fff;
}
.shsq .shsq-tally-box {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: calc(96px * var(--shsq-scale));
	height: calc(96px * var(--shsq-scale));
	background: #fff;
	border-radius: 12px;
	color: var(--shsq-accent);
	font-family: var(--shsq-font-head);
}
.shsq .shsq-tally-num { font-size: calc(44px * var(--shsq-scale)); font-weight: 900; line-height: 1; }
.shsq .shsq-tally-of { font-size: calc(13px * var(--shsq-scale)); font-weight: 700; text-transform: uppercase; color: var(--shsq-muted); }
.shsq .shsq-tally-label {
	font-family: var(--shsq-font-head);
	font-weight: 900;
	text-transform: uppercase;
	font-size: calc(22px * var(--shsq-scale));
	line-height: 1.05;
}
.shsq .shsq-tally.is-bump .shsq-tally-num { animation: shsq-bump .35s ease; }
@keyframes shsq-bump { 40% { transform: scale(1.25); } }

.shsq .shsq-image-wrap { margin-top: calc(28px * var(--shsq-scale)); }
.shsq .shsq-image { display: block; width: 100%; height: auto; max-width: 420px; }

/* Instructions --------------------------------------------------------- */
.shsq .shsq-h3 {
	display: block;
	font-family: var(--shsq-font-head);
	font-weight: 900;
	text-transform: uppercase;
	color: var(--shsq-accent);
	font-size: calc(26px * var(--shsq-scale));
	line-height: 1.1;
	margin-bottom: 8px;
}
.shsq .shsq-text { display: block; color: var(--shsq-ink); font-size: 1em; line-height: 1.5; }
.shsq .shsq-instructions { margin-bottom: calc(30px * var(--shsq-scale)); }

/* Questions ------------------------------------------------------------ */
.shsq .shsq-form { display: block; }
.shsq .shsq-q { display: block; min-width: 0; scroll-margin-top: 100px; margin-bottom: calc(30px * var(--shsq-scale)); }
.shsq .shsq-legend {
	display: block;
	float: none;
	width: 100%;
	font-weight: 700;
	font-size: calc(18px * var(--shsq-scale));
	line-height: 1.3;
	margin-bottom: 10px;
}
.shsq .shsq-qnum { color: var(--shsq-accent); font-family: var(--shsq-font-head); font-weight: 900; }
.shsq .shsq-answers { display: grid; gap: 8px; }

.shsq .shsq-a {
	position: relative;
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 14px;
	min-height: 52px;
	padding: 10px 14px 10px 10px;
	border: 2px solid var(--shsq-line);
	border-radius: 14px;
	background: #fff;
	cursor: pointer;
	transition: border-color .15s, background-color .15s, transform .1s;
	font-size: 1em;
	line-height: 1.35;
}
.shsq .shsq-a:hover { border-color: var(--shsq-accent); }
.shsq .shsq-a:active { transform: scale(.99); }
.shsq .shsq-radio {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	margin: 0;
	pointer-events: none;
}
.shsq .shsq-letter {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 2px solid var(--shsq-accent);
	color: var(--shsq-accent);
	font-family: var(--shsq-font-head);
	font-weight: 800;
	font-size: 15px;
	line-height: 1;
	transition: background-color .15s, color .15s;
}
.shsq .shsq-atext { display: block; }
.shsq .shsq-pts {
	font-family: var(--shsq-font-head);
	font-weight: 800;
	font-size: 13px;
	color: var(--shsq-accent);
	opacity: 0;
	transition: opacity .2s;
	white-space: nowrap;
}
.shsq .shsq-radio:focus-visible ~ .shsq-letter { outline: 3px solid var(--shsq-ink); outline-offset: 2px; }
.shsq .shsq-a.is-picked { border-color: var(--shsq-accent); background: var(--shsq-soft); }
.shsq .shsq-a.is-picked .shsq-letter { background: var(--shsq-accent); color: #fff; }
.shsq .shsq-a.is-picked .shsq-letter { animation: shsq-poke .3s ease; }
@keyframes shsq-poke { 50% { transform: scale(1.18) rotate(-6deg); } }

/* After scoring: lock answers, show points on the picks */
.shsq.is-scored .shsq-a { cursor: default; }
.shsq.is-scored .shsq-a:hover { border-color: var(--shsq-line); }
.shsq.is-scored .shsq-a.is-picked:hover { border-color: var(--shsq-accent); }
.shsq.is-scored .shsq-a:not(.is-picked) { opacity: .5; }
.shsq.is-scored .shsq-a.is-picked .shsq-pts { opacity: 1; }
.shsq .shsq-q.is-missing .shsq-legend { color: #c0262d; }
.shsq .shsq-q.is-missing .shsq-a { border-color: #f1b7ba; }

/* Buttons -------------------------------------------------------------- */
.shsq .shsq-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 6px; }
.shsq .shsq-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 12px 28px;
	border-radius: 999px;
	border: 2px solid var(--shsq-accent);
	font-family: var(--shsq-font-head);
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: .02em;
	font-size: calc(17px * var(--shsq-scale));
	line-height: 1.1;
	cursor: pointer;
	transition: transform .1s, filter .15s, background-color .15s;
}
.shsq .shsq-btn-primary { background: var(--shsq-accent); color: #fff; }
.shsq .shsq-btn-primary:hover { filter: brightness(1.07); }
.shsq .shsq-btn-ghost { background: #fff; color: var(--shsq-accent); }
.shsq .shsq-btn-ghost:hover { background: var(--shsq-soft); }
.shsq .shsq-btn:active { transform: scale(.97); }
.shsq .shsq-btn:focus-visible { outline: 3px solid var(--shsq-ink); outline-offset: 3px; }
.shsq .shsq-hint { color: var(--shsq-muted); font-size: .9em; }
.shsq .shsq-hint.is-warn { color: #c0262d; font-weight: 600; }
.shsq.is-scored .shsq-actions { display: none; }

/* Result --------------------------------------------------------------- */
.shsq .shsq-result {
	display: block;
	margin-top: 8px;
	padding: calc(30px * var(--shsq-scale));
	border-radius: 22px;
	background: var(--shsq-accent);
	color: #fff;
	outline: none;
	scroll-margin-top: 100px; /* clears Divi's fixed header */
	animation: shsq-rise .45s ease both;
}
@keyframes shsq-rise { from { opacity: 0; transform: translateY(16px); } }
.shsq .shsq-result-label {
	font-family: var(--shsq-font-head);
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .08em;
	font-size: 14px;
	opacity: .9;
}
.shsq .shsq-score { display: flex; align-items: baseline; gap: 10px; margin-top: 4px; font-family: var(--shsq-font-head); }
.shsq .shsq-score-num { font-weight: 900; font-size: calc(84px * var(--shsq-scale)); line-height: 1; font-variant-numeric: tabular-nums; }
.shsq .shsq-score-unit { font-weight: 800; text-transform: uppercase; font-size: 18px; }
.shsq .shsq-meter {
	position: relative;
	height: 14px;
	margin: 16px 0 22px;
	border-radius: 99px;
	background: rgba(255,255,255,.3);
	overflow: hidden;
}
.shsq .shsq-meter-fill {
	position: absolute;
	inset: 0 auto 0 0;
	width: 0;
	background: #fff;
	border-radius: 99px;
	transition: width 1.1s cubic-bezier(.2,.8,.2,1);
}
.shsq .shsq-meter-tick { position: absolute; top: 0; bottom: 0; width: 3px; margin-left: -1px; background: var(--shsq-accent); }
.shsq .shsq-tier {
	display: block;
	font-family: var(--shsq-font-head);
	font-weight: 900;
	text-transform: uppercase;
	font-size: calc(34px * var(--shsq-scale));
	line-height: 1.02;
	color: #fff;
}
.shsq .shsq-tier-msg { margin-top: 10px; color: #fff; font-size: 1.05em; }

.shsq .shsq-card {
	margin-top: 24px;
	padding: 18px 20px;
	border-radius: 16px;
	background: #fff;
	color: var(--shsq-ink);
	font-size: .92em;
}
.shsq .shsq-card-head {
	font-family: var(--shsq-font-head);
	font-weight: 900;
	text-transform: uppercase;
	color: var(--shsq-accent);
	font-size: 15px;
	margin-bottom: 8px;
}
.shsq .shsq-card-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 4px 0; }
.shsq .shsq-letter-sm { width: 26px; height: 26px; font-size: 12px; }
.shsq .shsq-card-count { font-family: var(--shsq-font-head); font-weight: 800; color: var(--shsq-muted); }
.shsq .shsq-card-tiers { margin-top: 10px; padding-top: 10px; border-top: 2px dashed var(--shsq-line); }
.shsq .shsq-card-tier { display: grid; grid-template-columns: 5.5em 1fr; gap: 10px; padding: 3px 0; color: var(--shsq-muted); }
.shsq .shsq-card-range { font-family: var(--shsq-font-head); font-weight: 800; }
.shsq .shsq-card-tier.is-you { color: var(--shsq-ink); font-weight: 700; }
.shsq .shsq-card-tier.is-you .shsq-card-range { color: var(--shsq-accent); }

.shsq .shsq-result-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 22px; }
.shsq .shsq-result .shsq-btn-primary { background: #fff; color: var(--shsq-accent); border-color: #fff; }
.shsq .shsq-result .shsq-btn-ghost { background: transparent; color: #fff; border-color: #fff; }
.shsq .shsq-result .shsq-btn-ghost:hover { background: rgba(255,255,255,.12); }
.shsq .shsq-result .shsq-btn:focus-visible { outline-color: #fff; }
.shsq .shsq-copied { font-weight: 700; font-size: .9em; }

.shsq-admin-note { padding: 12px 16px; border: 2px dashed #c0262d; color: #c0262d; font-family: sans-serif; }

/* Phones & small tablets (matches Divi's 980px / 767px breakpoints) ----- */
@media (max-width: 980px) {
	.shsq .shsq-grid { grid-template-columns: 1fr; gap: 28px; }
	.shsq .shsq-side-inner { position: static; display: grid; grid-template-columns: 1fr auto; gap: 0 24px; align-items: end; }
	.shsq .shsq-title, .shsq .shsq-subtitle, .shsq .shsq-image-wrap { grid-column: 1 / -1; }
	.shsq .shsq-tally { display: none; }
	.shsq .shsq-image-wrap { display: none; }
}
@media (max-width: 767px) {
	.shsq { --shsq-scale: var(--shsq-scale-m, 1); font-size: calc(16px * var(--shsq-scale)); }
	.shsq .shsq-title { font-size: calc(40px * var(--shsq-scale)); }
	.shsq .shsq-subtitle { font-size: calc(26px * var(--shsq-scale)); margin-top: 14px; }
	.shsq .shsq-h3 { font-size: calc(22px * var(--shsq-scale)); }
	.shsq .shsq-legend { font-size: calc(17px * var(--shsq-scale)); }
	.shsq .shsq-a { gap: 12px; }
	.shsq .shsq-btn { width: 100%; }
	.shsq .shsq-result { padding: 22px 18px; border-radius: 18px; }
	.shsq .shsq-score-num { font-size: calc(64px * var(--shsq-scale)); }
	.shsq .shsq-tier { font-size: calc(27px * var(--shsq-scale)); }
	.shsq .shsq-card { padding: 14px 14px; }
}

/* Sticky progress pill on small screens (the side tally is hidden there) */
.shsq .shsq-mobile-tally { display: none; }
@media (max-width: 980px) {
	.shsq .shsq-mobile-tally {
		position: sticky;
		bottom: 12px;
		z-index: 5;
		display: flex;
		justify-content: center;
		pointer-events: none;
		margin-top: 8px;
	}
	.shsq .shsq-mobile-tally span {
		padding: 8px 16px;
		border-radius: 99px;
		background: var(--shsq-ink);
		color: #fff;
		font-family: var(--shsq-font-head);
		font-weight: 800;
		font-size: 13px;
		text-transform: uppercase;
		letter-spacing: .04em;
		box-shadow: 0 6px 18px rgba(0,0,0,.18);
	}
	.shsq.is-scored .shsq-mobile-tally, .shsq.is-done .shsq-mobile-tally { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.shsq * { animation: none !important; transition: none !important; }
}
