/* Good Appliance Skills Quiz */
.gaq {
	--q-ink: #1c2730;
	--q-soft: #4a5862;
	--q-line: #d5dbd8;
	--q-tint: #eef1ef;
	--q-accent: #d9581a;
	--q-accent-dark: #b4450f;
	--q-good: #2e7d4a;
	--q-good-bg: #e2f1e6;
	--q-bad: #b4450f;
	--q-bad-bg: #fbe7dc;
	font-family: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
	color: var(--q-ink);
	font-size: 18px;
	line-height: 1.55;
	margin: 0 0 28px;
}
.gaq *, .gaq *::before, .gaq *::after { box-sizing: border-box; }
.gaq h2, .gaq h3 { font-family: "Archivo", system-ui, sans-serif; color: var(--q-ink); line-height: 1.2; margin: 0 0 12px; }
.gaq h2 { font-size: clamp(25px, 3.4vw, 32px); font-weight: 800; }
.gaq p { margin: 0 0 12px; }

.gaq-card { background: #fff; border: 3px solid var(--q-ink); border-radius: 10px; padding: 28px 30px; margin-bottom: 20px; }
.gaq-kicker { font-family: "Archivo", sans-serif; font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--q-accent-dark); margin-bottom: 8px !important; }
.gaq-introtext { color: var(--q-soft); max-width: 42em; }
.gaq-areas { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 16px 0; }
.gaq-areas li { background: var(--q-tint); border-radius: 999px; padding: 4px 14px; font-size: 15px; font-weight: 600; margin: 0; }
.gaq-meta { font-size: 15px; color: var(--q-soft); }

.gaq-btn {
	font-family: "Archivo", sans-serif;
	font-weight: 700;
	font-size: 17px;
	background: var(--q-accent);
	color: #fff;
	border: 2px solid var(--q-accent);
	border-radius: 6px;
	padding: 13px 26px;
	cursor: pointer;
	line-height: 1.2;
}
.gaq-btn:hover:not(:disabled), .gaq-btn:focus-visible { background: var(--q-accent-dark); border-color: var(--q-accent-dark); }
.gaq-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.gaq-btn-ghost { background: transparent; color: var(--q-ink); border-color: var(--q-ink); }
.gaq-btn-ghost:hover:not(:disabled) { background: var(--q-ink); color: #fff; border-color: var(--q-ink); }

/* Question */
.gaq-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 15px; }
.gaq-count { font-weight: 600; color: var(--q-soft); }
.gaq-tag { display: inline-block; background: var(--q-tint); border-radius: 999px; padding: 2px 12px; font-size: 14px; font-weight: 600; color: var(--q-ink); }
.gaq-progress { height: 6px; background: var(--q-tint); border-radius: 3px; margin: 10px 0 22px; overflow: hidden; }
.gaq-progress span { display: block; height: 100%; background: var(--q-accent); transition: width 0.25s; }
.gaq-q { font-size: 22px !important; font-weight: 700; margin-bottom: 18px !important; }
.gaq-img { display: block; max-width: 100%; height: auto; border: 1px solid var(--q-line); border-radius: 8px; margin: 0 0 18px; }

.gaq-opts { display: grid; gap: 10px; }
.gaq-opt {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	width: 100%;
	text-align: left;
	font: inherit;
	color: var(--q-ink);
	background: #fff;
	border: 2px solid var(--q-line);
	border-radius: 8px;
	padding: 13px 16px;
	cursor: pointer;
	transition: border-color 0.12s, background 0.12s;
}
.gaq-opt:hover { border-color: var(--q-ink); }
.gaq-opt:focus-visible { outline: 3px solid var(--q-accent); outline-offset: 2px; }
.gaq-opt.is-picked { border-color: var(--q-accent); background: #fdf1ea; }
.gaq-letter {
	flex: 0 0 30px;
	height: 30px;
	border-radius: 50%;
	border: 2px solid var(--q-ink);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: "Archivo", sans-serif;
	font-weight: 700;
	font-size: 15px;
}
.gaq-opt.is-picked .gaq-letter { background: var(--q-accent); border-color: var(--q-accent); color: #fff; }
.gaq-opttext { padding-top: 2px; }
.gaq-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }

/* Results */
.gaq-verdict { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin-bottom: 8px; }
.gaq-verdict-word { font-family: "Archivo", sans-serif; font-weight: 800; font-size: clamp(34px, 5vw, 46px); line-height: 1.05; }
.verdict-fit .gaq-verdict-word { color: var(--q-good); }
.verdict-close .gaq-verdict-word { color: var(--q-accent-dark); }
.verdict-notyet .gaq-verdict-word { color: var(--q-ink); }
.gaq-overall { font-size: 20px; font-weight: 600; color: var(--q-soft); }
.gaq-verdict-text { max-width: 40em; }
.gaq-sub { font-size: 20px !important; font-weight: 700 !important; margin-top: 22px !important; }
.gaq-legend { font-size: 15px; color: var(--q-soft); }
.gaq-rows { display: grid; gap: 16px; margin: 6px 0 24px; }
.gaq-row-label { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 16px; margin-bottom: 5px; }
.gaq-row-name { font-weight: 700; }
.gaq-row-num { color: var(--q-soft); }
.gaq-track { position: relative; height: 14px; background: var(--q-tint); border-radius: 7px; }
.gaq-fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--q-good); border-radius: 7px; }
.gaq-row.is-below .gaq-fill { background: var(--q-accent); }
.gaq-min { position: absolute; top: -4px; bottom: -4px; width: 3px; margin-left: -1.5px; background: var(--q-ink); border-radius: 2px; }
.gaq-row-status { font-size: 14px; color: var(--q-good); margin-top: 4px; font-weight: 600; }
.gaq-row.is-below .gaq-row-status { color: var(--q-bad); }

/* Review */
.gaq-review-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 16px; }
.gaq-review-head .gaq-sub { margin: 0 !important; }
.gaq-toggle { font-size: 15px; cursor: pointer; }
.gaq-review-list { margin: 16px 0 0; padding-left: 26px; }
.gaq-review-list li { padding: 14px 16px; margin: 0 0 12px; border-radius: 8px; border-left: 5px solid var(--q-good); background: var(--q-good-bg); }
.gaq-review-list li.is-wrong { border-left-color: var(--q-bad); background: var(--q-bad-bg); }
.gaq-review-list.only-missed li.is-right { display: none; }
.gaq-review-q { font-weight: 700; margin-top: 8px !important; }
.gaq-review-a { font-size: 16px; margin-bottom: 4px !important; }
.gaq-review-x { font-size: 16px; color: var(--q-soft); margin-top: 8px !important; margin-bottom: 0 !important; }

@media (max-width: 640px) {
	.gaq { font-size: 17px; }
	.gaq-card { padding: 20px 18px; }
	.gaq-q { font-size: 20px !important; }
	.gaq-nav .gaq-btn { flex: 1; }
}
