/*
 * Guest 10-minute Starter Check (plan §10). Tokens and buttons come from
 * journey-context.css (.pgc shares the --pgj-* palette). A calm, paper-like
 * single column: one question per screen, large answer targets, no timer,
 * no right/wrong colour while the check runs. Status always carries a text
 * label and a shape, never colour alone (WCAG 1.4.1).
 */
.pgc { max-width: 712px; margin: 0 auto; padding: 8px 16px 32px; }
.pgc-screen { display: grid; gap: 14px; }
.pgc-screen > * { margin: 0; }
.pgc-title { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); line-height: 1.2; color: var(--pgj-ink); margin: 0; }
.pgc-title:focus { outline: none; }
.pgc-title:focus-visible { outline: 3px solid var(--wp--preset--color--accent, #4d93ff); outline-offset: 4px; }
.pgc-title--message { font-size: clamp(1.25rem, 1.1rem + .8vw, 1.625rem); }
.pgc-lead { font-size: 1.0625rem; color: var(--pgj-ink); }
.pgc-note { font-size: .875rem; color: var(--pgj-muted); }
.pgc-eyebrow { font-size: .8125rem; font-weight: 600; letter-spacing: .02em; color: var(--pgj-muted); }
.pgc-exam {
	display: inline-flex; align-items: center; gap: 4px; justify-self: start;
	padding: 6px 12px; border-radius: 999px; background: var(--pgj-surface);
	font-size: .875rem; font-weight: 600; color: var(--pgj-ink);
}
.pgc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.pgc-actions .pgj-btn--primary { min-height: 52px; padding: 12px 24px; font-size: 1.0625rem; }
.pgc .pgj-status { margin: 0; }
.pgc-retry { margin-left: 6px; min-height: 36px; padding: 6px 12px; }
.pgc-fallback .pgc-status { color: var(--pgj-muted); }

/* ── Progress by skill, not by question count ─────────────────── */
.pgc-head { display: grid; gap: 6px; }
.pgc-progress { margin: 0; font-weight: 600; color: var(--pgj-ink); }
.pgc-skills { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.pgc-skills li {
	display: inline-flex; align-items: center; gap: 6px; margin: 0;
	padding: 4px 10px; border-radius: 999px; font-size: .8125rem;
	border: 1px solid var(--pgj-line); color: var(--pgj-muted);
}
.pgc-skills li::before { content: "○"; }
.pgc-skills li[data-state="checking"] { border-color: var(--pgj-primary); color: var(--pgj-ink); font-weight: 600; }
.pgc-skills li[data-state="checking"]::before { content: "➜"; color: var(--pgj-primary); }
.pgc-skills li[data-state="done"] { color: var(--pgj-body); }
.pgc-skills li[data-state="done"]::before { content: "✓"; }

/* ── One question per screen ──────────────────────────────────── */
.pgc-form { display: grid; gap: 16px; }
.pgc-question { margin: 0; padding: 20px; border: 1px solid var(--pgj-line); border-radius: 16px; background: var(--pgj-base); }
.pgc-stem { font-size: 1.125rem; line-height: 1.55; color: var(--pgj-ink); margin: 0 0 16px; }
.pgc-stem:focus { outline: none; }
.pgc-stem img, .pgc-option img { max-width: 100%; height: auto; }
.pgc-options { display: grid; gap: 10px; }
.pgc-option { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.pgc-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pgc-option__text {
	flex: 1; display: block; min-height: 52px; padding: 14px 16px 14px 48px; position: relative;
	border: 1px solid var(--pgj-line); border-radius: 12px; background: var(--pgj-base);
	color: var(--pgj-ink); font-size: 1rem; line-height: 1.45;
}
/* The choice mark is a shape: an empty ring, filled when chosen. */
.pgc-option__text::before {
	content: ""; position: absolute; left: 16px; top: 16px; width: 20px; height: 20px;
	border: 2px solid var(--pgj-muted); border-radius: 50%; background: var(--pgj-base);
}
.pgc-option:hover .pgc-option__text { border-color: var(--pgj-primary); }
.pgc-option input:checked + .pgc-option__text { border-color: var(--pgj-primary); box-shadow: inset 0 0 0 1px var(--pgj-primary); background: var(--pgj-surface); }
.pgc-option input:checked + .pgc-option__text::before { border-color: var(--pgj-primary); box-shadow: inset 0 0 0 4px var(--pgj-base); background: var(--pgj-primary); }
.pgc-option input:focus-visible + .pgc-option__text { outline: 3px solid var(--wp--preset--color--accent, #4d93ff); outline-offset: 2px; }
.pgc-question[aria-describedby] .pgc-option__text { border-color: var(--pgj-danger); }
.pgc-question .pgj-error { margin: 12px 0 0; }

/* ── Result ───────────────────────────────────────────────────── */
.pgc-finding { padding: 18px 20px 18px 18px; border-radius: 16px; background: var(--pgj-base); border: 1px solid var(--pgj-line); border-left: 6px solid var(--pgj-primary); display: grid; gap: 6px; }
.pgc-finding > * { margin: 0; }
.pgc-finding__label { font-size: .8125rem; font-weight: 700; letter-spacing: .02em; color: var(--pgj-ink); }
.pgc-finding__skill { font-size: 1.375rem; color: var(--pgj-ink); }
.pgc-next { padding: 18px 20px; border: 1px solid var(--pgj-line); border-radius: 16px; background: var(--pgj-base); display: grid; gap: 6px; justify-items: start; }
.pgc-next > * { margin: 0; }
.pgc-next h2 { font-size: .8125rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: var(--pgj-muted); }
.pgc-next__title { font-size: 1.125rem; font-weight: 600; color: var(--pgj-ink); }
.pgc-save { display: grid; gap: 6px; justify-items: start; }
.pgc-save > * { margin: 0; }
.pgc-limit { font-size: .875rem; color: var(--pgj-muted); }
.pgc-details { border-top: 1px solid var(--pgj-line); padding-top: 10px; }
.pgc-details summary { cursor: pointer; font-weight: 600; color: var(--pgj-primary); min-height: 44px; display: flex; align-items: center; }
.pgc-details summary:focus-visible { outline: 3px solid var(--wp--preset--color--accent, #4d93ff); outline-offset: 2px; }
.pgc-details__list { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.pgc-details__list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0; }
.pgc-details__icon { width: 1.25em; text-align: center; font-weight: 700; color: var(--pgj-ink); }
.pgc-details__label { font-size: .8125rem; color: var(--pgj-muted); }

/* ── The module rail (plan §4): Evaluate → Elevate → Excel ────────
 * Three steps, each with its name, what it means, a state word and a
 * shape. The active step is marked by weight and an arrow, not by colour. */
.pgc-rail { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 4px; padding: 0; list-style: none; counter-reset: none; }
.pgc-rail__step { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 10px 12px; min-width: 0; border: 1px solid var(--pgj-line); border-radius: 12px; background: var(--pgj-base); color: var(--pgj-muted); }
.pgc-rail__icon { flex: none; width: 1.5em; height: 1.5em; display: inline-grid; place-items: center; border-radius: 50%; border: 1.5px solid currentColor; font-size: .8125rem; font-weight: 700; line-height: 1; }
.pgc-rail__body { display: grid; gap: 1px; min-width: 0; }
.pgc-rail__name { font-weight: 700; color: var(--pgj-ink); }
.pgc-rail__meaning, .pgc-rail__line { font-size: .8125rem; overflow-wrap: anywhere; }
.pgc-rail__state { font-size: .75rem; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.pgc-rail__line { color: var(--pgj-body); }
.pgc-rail__step[data-state="active"] { border-color: var(--pgj-primary); box-shadow: inset 0 0 0 1px var(--pgj-primary); color: var(--pgj-ink); }
.pgc-rail__step[data-state="active"] .pgc-rail__icon { background: var(--pgj-primary); border-color: var(--pgj-primary); color: #fff; }
.pgc-rail__step[data-state="complete"] { color: var(--pgj-body); }
.pgc-rail__step[data-state="unavailable"], .pgc-rail__step[data-state="skipped"] { border-style: dashed; }
/* Narrow screens: still one left-to-right path, compact — icon, name and
 * state. The meaning and evidence lines stay in the accessible text. */
@media (max-width: 560px) {
	.pgc-rail { gap: 4px; }
	.pgc-rail__step { flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; text-align: center; }
	.pgc-rail__body { justify-items: center; }
	.pgc-rail__name { font-size: .875rem; }
	.pgc-rail__state { font-size: .6875rem; }
	.pgc-rail__meaning, .pgc-rail__line {
		position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
		overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
	}
}

/* ── Worked example, feedback and review ─────────────────────────── */
.pgc-example, .pgc-lesson, .pgc-why, .pgc-review-wrap { display: grid; gap: 8px; }
.pgc-example, .pgc-lesson { padding: 18px 20px; border: 1px solid var(--pgj-line); border-radius: 16px; background: var(--pgj-base); }
.pgc-example > *, .pgc-lesson > *, .pgc-why > *, .pgc-review-wrap > * { margin: 0; }
.pgc-example h2, .pgc-lesson h2, .pgc-why h2, .pgc-review-wrap h2 { font-size: .8125rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: var(--pgj-muted); }
.pgc-example__label { font-size: .8125rem; font-weight: 700; color: var(--pgj-ink); }
.pgc-rich { color: var(--pgj-ink); line-height: 1.55; overflow-wrap: anywhere; }
.pgc-rich > :first-child { margin-top: 0; }
.pgc-rich > :last-child { margin-bottom: 0; }
.pgc-rich img { max-width: 100%; height: auto; }
.pgc-question--review .pgc-stem { margin-bottom: 12px; }
.pgc-verdict { display: inline-flex; align-items: center; gap: 6px; justify-self: start; margin: 0; padding: 6px 12px; border-radius: 999px; font-weight: 700; border: 1.5px solid var(--pgj-line); color: var(--pgj-ink); background: var(--pgj-surface); }
.pgc-verdict:focus { outline: none; }
.pgc-verdict:focus-visible { outline: 3px solid var(--wp--preset--color--accent, #4d93ff); outline-offset: 3px; }
.pgc-verdict[data-correct="1"] { border-color: var(--pgj-primary); }
.pgc-review__options { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.pgc-review__options li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0; padding: 10px 14px; border: 1px solid var(--pgj-line); border-radius: 12px; background: var(--pgj-base); color: var(--pgj-ink); }
.pgc-review__options li[data-right="1"] { border-color: var(--pgj-primary); box-shadow: inset 0 0 0 1px var(--pgj-primary); }
.pgc-review__options li[data-yours="1"]:not([data-right="1"]) { border-style: dashed; border-color: var(--pgj-muted); }
.pgc-review__text { flex: 1 1 60%; min-width: 0; overflow-wrap: anywhere; }
.pgc-review__text img { max-width: 100%; height: auto; }
.pgc-tag { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; font-size: .75rem; font-weight: 700; background: var(--pgj-surface); color: var(--pgj-ink); border: 1px solid var(--pgj-line); }
.pgc-tag[data-tag="right"] { border-color: var(--pgj-primary); }
.pgc-review { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.pgc-review__item { display: grid; gap: 10px; margin: 0; padding: 16px; border: 1px solid var(--pgj-line); border-radius: 16px; background: var(--pgj-base); }
.pgc-review__item > * { margin: 0; }

/* ── Signed in: save the check to one child ──────────────────────── */
.pgc-claim__summary { display: grid; gap: 4px; margin: 0; padding-left: 1.25em; color: var(--pgj-ink); }
.pgc-claim__legend { font-weight: 700; color: var(--pgj-ink); margin-bottom: 10px; padding: 0; }
.pgc-claim { display: grid; gap: 10px; }
.pgc-claim__name { font-weight: 600; }
.pgc-claim__grade { color: var(--pgj-muted); }
.pgc-claim__reason { display: block; margin-top: 4px; font-size: .875rem; color: var(--pgj-muted); }
.pgc-option[data-disabled="1"] { cursor: not-allowed; }
.pgc-option[data-disabled="1"] .pgc-option__text { background: var(--pgj-surface); color: var(--pgj-muted); border-style: dashed; }
/* ── Privacy notice (D4): after the last answer, before the result ── */
.pgc-notice__points { display: grid; gap: 8px; margin: 0; padding-left: 1.25em; color: var(--pgj-ink); line-height: 1.5; }
.pgc-notice__guardian { display: grid; gap: 8px; }
.pgc-notice__guardian .pgc-option__text::before { border-radius: 5px; }
.pgc-notice__guardian .pgc-option input:checked + .pgc-option__text::before { box-shadow: none; content: "✓"; color: var(--pgj-base); font-size: .8rem; font-weight: 700; line-height: 16px; text-align: center; }
.pgc-notice__guardian input[aria-describedby] + .pgc-option__text { border-color: var(--pgj-danger); }
.pgc-notice__guardian .pgj-error { margin: 0; }
.pgc-signin { font-size: .875rem; color: var(--pgj-primary); min-height: 44px; display: inline-flex; align-items: center; }

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