/* =====================================================================
   JOURNEY — VALUES QUEST
   ---------------------------------------------------------------------
   The report at the end of /values-quest/ (components/values/). The
   questions are flow.css's own; this file loads after it, on this page
   only, and uses its tokens. The two lives always carry their names:
   colour is never the only thing telling them apart.
   ===================================================================== */

.vq-report { max-width: 720px; }
.vq-wide { max-width: 56ch; }
.vq-report p { margin: 0; }
.vq-report .jf-eyebrow { margin: 0 0 14px; }
.vq-report .jf-text { margin-top: 14px; }
.vq-report .jf-fine { margin-top: 14px; }

.vq-section { margin-top: 64px; }
.vq-h2 {
	margin: 0;
	font-family: var(--serif);
	font-weight: 400;
	font-size: clamp(1.5rem, 1.3rem + .9vw, 1.875rem);
	line-height: 1.15;
	letter-spacing: -.01em;
	text-wrap: balance;
}
.vq-label {
	margin: 0;
	font-family: var(--sans);
	font-size: .875rem;
	font-weight: 600;
	line-height: 1.3;
	color: var(--ink);
}
.vq-line { font-size: 1.0625rem; line-height: 1.5; color: var(--ink-mute); text-wrap: pretty; }
.vq-h2 + .vq-line { margin-top: 10px; }
.vq-report .vq-note { margin-top: 12px; font-size: .875rem; line-height: 1.5; color: var(--ink-mute); }
.vq-block { margin-top: 28px; }
.vq-block > .vq-label { margin-bottom: 6px; }

.vq-icon { flex: none; display: block; }
.vq-row-main { flex: 1; min-width: 0; }
.vq-name { display: block; font-size: 1.0625rem; font-weight: 500; line-height: 1.3; color: var(--ink); }
.vq-sub { display: block; font-size: .9375rem; line-height: 1.4; color: var(--ink-mute); }

/* ---------- The figure ---------- */
.vq-figure {
	margin-top: 36px;
	padding: 28px;
	border: 1px solid var(--line);
	border-radius: 20px;
	background: var(--card);
}
.vq-score { display: flex; align-items: baseline; gap: 10px; }
.vq-report .vq-score { margin-top: 6px; }
.vq-number {
	font-family: var(--serif);
	font-size: clamp(4rem, 3.2rem + 3.6vw, 5.5rem);
	line-height: 1;
	letter-spacing: -.02em;
	font-variant-numeric: lining-nums;
}
.vq-of { font-size: 1.0625rem; color: var(--ink-mute); }
.vq-track { height: 8px; margin: 18px 0; border-radius: 99px; background: var(--track); overflow: hidden; }
.vq-track > span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--gold-cta), var(--gold-cta-deep)); }
.vq-figure > .vq-label + .vq-line { margin-top: 8px; }

/* ---------- Two columns ---------- */
.vq-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.vq-column { padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); }
.vq-leads { display: grid; gap: 14px; margin: 18px 0 0; padding: 0; list-style: none; }
.vq-leads > li { display: flex; align-items: center; gap: 14px; }
.vq-report .vq-column > .vq-line { margin-top: 12px; }
.vq-report .vq-pair { margin-top: 14px; font-size: 1.0625rem; line-height: 1.45; text-wrap: pretty; }
.vq-report .vq-pair + .vq-pair { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }

/* ---------- Rows with two meters ---------- */
.vq-rows { margin: 0; padding: 0; list-style: none; }
.vq-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); break-inside: avoid; }
.vq-rows > .vq-row:first-child { border-top: 0; }
.vq-rank { flex: none; width: 1.5rem; font-size: .9375rem; font-variant-numeric: tabular-nums; text-align: right; color: var(--ink-mute); }
.vq-meters { flex: none; display: grid; gap: 6px; }
.vq-meter { display: grid; grid-template-columns: 52px auto; align-items: center; gap: 8px; }
.vq-meter-name { font-size: .75rem; line-height: 1; color: var(--ink-mute); }
.vq-cells { display: flex; gap: 3px; }
.vq-cell { width: 18px; height: 8px; border-radius: 2px; background: #E3DDCE; }
.vq-ideal .vq-on { background: var(--gold-cta-deep); }
.vq-current .vq-on { background: var(--ink); }

/* ---------- The seven parts of a life ---------- */
.vq-spheres { display: grid; gap: 22px; margin: 24px 0 0; padding: 0; list-style: none; }
.vq-sphere { display: grid; gap: 7px; break-inside: avoid; }
.vq-sphere-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.vq-bar { display: grid; grid-template-columns: 52px 1fr 26px; align-items: center; gap: 8px; }
.vq-bar-track { height: 10px; border-radius: 3px; background: var(--track); overflow: hidden; }
.vq-bar-track > span { display: block; height: 100%; border-radius: 3px; background: var(--gold-cta-deep); }
.vq-current .vq-bar-track > span { background: var(--ink); }
.vq-bar-num { font-size: .8125rem; line-height: 1; text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-mute); }

/* ---------- One small next step ---------- */
.vq-next {
	display: flex;
	align-items: center;
	gap: 18px;
	margin-top: 20px;
	padding: 22px;
	border-radius: 20px;
	background: var(--gold-wash);
	box-shadow: inset 0 0 0 1px var(--gold-soft);
	break-inside: avoid;
}
.vq-step { display: block; margin-top: 4px; font-family: var(--serif); font-size: 1.375rem; line-height: 1.25; text-wrap: pretty; }

/* ---------- The end ---------- */
.vq-actions { margin-top: 64px; }
.vq-links { display: flex; flex-wrap: wrap; gap: 4px 24px; margin-top: 14px; font-size: .9375rem; color: var(--ink-mute); }
.vq-links .jf-link { min-height: 44px; }

@media (max-width: 560px) {
	.vq-section { margin-top: 52px; }
	.vq-figure { margin-top: 28px; padding: 22px 20px; }
	.vq-columns { grid-template-columns: 1fr; gap: 12px; }
	.vq-column { padding: 20px; }
	.vq-row { gap: 12px; }
	.vq-rank { width: 1.25rem; }
	.vq-cell { width: 13px; }
	.vq-meter { grid-template-columns: 46px auto; gap: 6px; }
	.vq-next { padding: 20px 18px; gap: 14px; align-items: flex-start; }
}
@media (max-width: 340px) {
	.vq-row { gap: 8px; }
	.vq-row .vq-icon { width: 30px; height: 30px; }
	.vq-row .vq-name { font-size: 1rem; }
	.vq-cell { width: 10px; }
}

@media print {
	@page { margin: 16mm; }
	body.jf-body { background: #fff; }
	.jf-progress, .jf-top, .vq-actions, .vq-kept { display: none; }
	/* a hair of room, or the printer clips the last border on the right */
	.jf-main { display: block; min-height: 0; padding: 0 2px; }
	.jf-screen { animation: none; }
	.vq-report { max-width: none; }
	.vq-report * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
	.vq-section { margin-top: 30px; }
	.vq-columns { grid-template-columns: 1fr 1fr; }
	.vq-figure, .vq-column, .vq-next { break-inside: avoid; }
	.vq-h2, .vq-label, .vq-h2 + .vq-line { break-after: avoid; }
	.vq-row { padding: 7px 0; }
}

/* each value's drawing above its sentence: traced from Journey's drawings (content/drawings.json); a fixed height, its own width */
.vq-drawing { display: block; height: 124px; width: auto; max-width: 240px; object-fit: contain; object-position: left center; margin: 0 0 12px -6px; }
@media (max-height: 960px) { .vq-drawing { height: 100px; max-width: 200px; margin-bottom: 10px; } }
@media (max-width: 600px) { .vq-drawing { height: 92px; max-width: 190px; margin-bottom: 8px; } }
@media (max-height: 700px) { .vq-drawing { height: 76px; max-width: 160px; margin-bottom: 6px; } }
@media (max-height: 560px) { .vq-drawing { display: none; } }
