/* Result view on the test page (stage 3). Port of proto/panel.css (result part)
   onto the theme's skeleton and the engine's markup. */

.quiz-engine-test { display: flex; flex-direction: column; }
.is-result .s-tests { order: 10; } .is-result .s-dist { order: 20; } .is-result .s-about { order: 30; } .is-result .s-sys { order: 40; }

/* share bar: row 1 stays stuck, row 2 scrolls away and its actions join row 1 as icons */
.sb { position: sticky; top: 0; z-index: 20; background: var(--bg); }
.sbr { display: flex; align-items: center; gap: 6px; padding-block: 5px; }
.sns { flex: 1; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 5px; }
.sns a, .sa, .b2 { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; border-radius: var(--r-ctl); font-size: 13px; font-weight: 500; letter-spacing: -.008em; background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px var(--line); transition: background-color .15s; }
.sns svg, .sa svg, .b2 svg { flex: none; width: 18px; height: 18px; }
.sns .quiz-engine-share-icon { fill: currentColor; }
.sact { display: none; gap: 5px; }
.sa { width: 44px; }
.sa span { display: none; }
.smenu { display: none; }
.sb.stuck .smenu { display: flex; }
.sb.stuck { box-shadow: 0 1px 0 var(--line); }
.sb.stuck .sact { display: flex; }
.sb2 { border-bottom: 1px solid var(--line); }
.sb2 .wrap { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 5px; padding-bottom: 7px; }
.b2 { width: 100%; }
@media (min-width: 900px) {
  .sb { box-shadow: 0 1px 0 var(--line); }
  .sbr { justify-content: space-between; padding-block: 8px; }
  .sns { flex: none; grid-auto-columns: 42px; }
  .sact { display: flex; gap: 6px; }
  .sa { width: auto; padding: 0 14px; }
  .sa span { display: inline; }
  .smenu, .sb.stuck .smenu { display: none; }
  .sb2 { display: none !important; }
}

/* result hero */
.hero { position: relative; padding: 22px 0 8px; overflow: clip; }
.heroG { position: relative; display: grid; gap: 20px; }
.heroT { container-type: inline-size; min-width: 0; }
.heroT .path { margin: -6px 0 8px; }
.yt { font-size: 17px; font-weight: 500; letter-spacing: -.016em; color: var(--tx-body); }
.nm { font-size: min(calc(100cqw / (var(--len, 4) * .68)), 200px); line-height: .98; font-weight: 600; letter-spacing: -.05em; margin-left: -.03em; }
.lp { max-width: 24em; margin-top: 12px; font-size: 20px; line-height: 1.2; font-weight: 500; letter-spacing: -.024em; text-wrap: pretty; }
.lp p { margin: 0; }
.card { border-radius: var(--r-card); background: var(--card); box-shadow: inset 0 0 0 1px var(--line2), 0 30px 60px -34px #000; }
@media (min-width: 900px) {
  .hero { padding: 44px 0 14px; }
  .heroG { grid-template-columns: minmax(0, 1fr) 500px; gap: 48px; align-items: start; }
  .yt { font-size: 20px; }
  .lp { font-size: 28px; }
}

/* generic screen: the engine's scales as bars, until a system has its own screen */
.rbars { display: grid; gap: 12px; padding: 18px 16px; }
.rbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px; row-gap: 6px; font-size: 15px; color: var(--tx2); }
.rbar-l { min-width: 0; overflow-wrap: anywhere; }
.rbar-v { font-variant-numeric: tabular-nums; font-weight: 500; }
.rbar-t { grid-column: 1 / -1; height: 6px; border-radius: var(--r-pill); background: rgba(255,255,255,.08); overflow: hidden; }
.rbar-t i { display: block; height: 100%; border-radius: var(--r-pill); background: rgba(255,255,255,.34); }
.rbar.on { color: var(--tx); }
.rbar.on .rbar-v { color: var(--sys); font-weight: 600; }
.rbar.on .rbar-t i { background: var(--sys); }

/* result text: one column on phones, cards on desktop */
.txt { padding-top: 32px; }
.txt p { max-width: 34em; margin: 0 0 1em; font-size: 17px; line-height: 1.55; letter-spacing: -.009em; color: var(--tx-body); }
@media (min-width: 900px) {
  .txt { padding-top: 64px; }
  .txt .wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .txt p { max-width: none; margin: 0; padding: 26px; border-radius: var(--r-ctl); background: var(--s1); box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; }
}

/* CTA: the engine's block, restyled */
.cta { padding-top: 40px; }
.quiz-engine-cta { position: relative; overflow: clip; padding: 28px 20px 20px; border-radius: var(--r-card); background: var(--card); box-shadow: inset 0 0 0 1px var(--line2); }
.quiz-engine-cta::before { content: ""; position: absolute; left: 50%; bottom: -220px; width: 1000px; height: 420px; transform: translateX(-50%); background: radial-gradient(50% 50% at 50% 50%, color-mix(in srgb, var(--sys) 58%, transparent), transparent 100%); pointer-events: none; }
.quiz-engine-cta > * { position: relative; }
.quiz-engine-cta h3 { font-size: clamp(28px, 3.8vw, 38px); line-height: 1.06; font-weight: 600; letter-spacing: -.034em; text-wrap: balance; }
.quiz-engine-cta p { max-width: 36em; margin-top: 10px; font-size: 17px; line-height: 1.42; color: var(--tx-body); letter-spacing: -.01em; }
.quiz-engine-cta-button { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 54px; margin-top: 20px; padding: 0 28px; border-radius: var(--r-ctl); background: var(--tx); color: var(--bg); font-size: 15px; font-weight: 500; text-align: center; transition: background-color .15s, transform .15s; }
.quiz-engine-cta-button:active { transform: scale(.98); }
@media (min-width: 900px) {
  .cta { padding-top: 56px; }
  .quiz-engine-cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 48px; padding: 44px; }
  .quiz-engine-cta h3, .quiz-engine-cta p { grid-column: 1; }
  .quiz-engine-cta-button { grid-column: 2; grid-row: 1 / 3; width: auto; margin: 0; }
}

/* CoreTypes plate, phones only */
.plate { position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 15; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 16px; border-radius: var(--r-ctl); background: var(--s3); box-shadow: inset 0 0 0 1px var(--line2), 0 18px 34px -12px #000; font-size: 15px; font-weight: 500; line-height: 1.2; letter-spacing: -.012em; transform: translateY(calc(100% + 16px)); visibility: hidden; transition: transform .35s var(--ease), visibility .35s; }
.plate.on { transform: none; visibility: visible; }
.plate .btn { flex: none; min-height: 44px; padding: 0 16px; }
@media (min-width: 900px) { .plate { display: none !important; } }

/* how others answer: the engine's list as rows (systems with a drawn diagram hide it) */
.quiz-engine-comparison-heading { font-size: 28px; line-height: 1.1; font-weight: 600; letter-spacing: -.03em; }
.quiz-engine-comparison { display: grid; gap: 2px; margin: 20px 0 0; padding: 0; list-style: none; }
.quiz-engine-comparison-item { position: relative; display: grid; align-items: center; min-height: 40px; padding: 0 10px 6px; border-radius: var(--r-badge); font-size: 15px; color: var(--tx2); font-variant-numeric: tabular-nums; }
.quiz-engine-comparison-bar { position: absolute; left: 10px; bottom: 6px; height: 3px; max-width: calc(100% - 20px); border-radius: var(--r-pill); background: rgba(255,255,255,.34); }
.quiz-engine-comparison-mine { color: var(--tx); background: color-mix(in srgb, var(--sys) 14%, var(--s1)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sys) 40%, transparent); }
.quiz-engine-comparison-mine .quiz-engine-comparison-bar { background: var(--sys); }
@media (min-width: 900px) {
  .quiz-engine-comparison-heading { font-size: 38px; }
  .quiz-engine-comparison { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
}

/* ---------- other types: one grid and the card of the chosen type with its full text ---------- */
.sub { margin-top: 6px; font-size: 15px; color: var(--tx2); }
.oty { display: grid; gap: 12px; margin-top: 18px; align-items: start; }
.tg { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 5px; }
.tc { display: flex; align-items: center; justify-content: center; gap: 7px; width: 100%; min-height: 56px; padding: 6px 2px; border-radius: var(--r-ctl); background: var(--s1); box-shadow: inset 0 0 0 1px var(--line); color: var(--tx-body); font-size: 15px; font-weight: 500; letter-spacing: -.005em; font-variant-numeric: tabular-nums; text-align: center; transition: background-color .15s, box-shadow .15s, color .15s; }
.tc[aria-pressed="true"] { background: var(--s3); box-shadow: inset 0 0 0 1.5px var(--tx); color: #fff; }
.tc.me { background: color-mix(in srgb, var(--sys) 14%, var(--s1)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sys) 40%, transparent); color: var(--sys); font-weight: 600; }
.tc.off { opacity: .4; }
.cmp { padding: 18px 16px 16px; animation: cin .3s var(--ease); }
@keyframes cin { from { opacity: 0; transform: translateY(5px); } }
.cmp-h { display: flex; align-items: flex-start; gap: 14px; }
.cmp-w { flex: 1; min-width: 0; }
.cmp-tag { display: block; margin-bottom: 2px; font-size: 13px; color: var(--tx2); }
.cmp-tag.fr { color: var(--tx); }
.cmp-c { font-size: 38px; line-height: 1.05; font-weight: 600; letter-spacing: -.035em; }
.cmp-c i { font-style: normal; color: var(--tx2); }
.cmp-c2 { font-size: 24px; letter-spacing: -.03em; line-height: 1.08; overflow-wrap: anywhere; hyphens: auto; }
.cmp-n { margin-top: 3px; font-size: 13px; color: var(--tx2); }
.cmp-n b { font-weight: 500; color: var(--sys); }
.cmp-d { display: grid; gap: 3px; margin: 8px 0 0; padding: 0; list-style: none; font-size: 13px; line-height: 1.3; color: var(--tx2); }
.cmp-d li { display: flex; flex-wrap: wrap; column-gap: 6px; row-gap: 0; }
.cmp-d b { font-weight: 600; color: var(--tx); }
.cmp-l { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 20px; line-height: 1.22; font-weight: 500; letter-spacing: -.02em; text-wrap: pretty; }
.cmp-l p { margin: 0; }
.cmp-b { margin-top: 12px; }
.cmp-b p { margin: 0 0 .85em; font-size: 15px; line-height: 1.55; letter-spacing: -.008em; color: var(--tx-body); }
.cmp-rd { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 46px; margin-top: 14px; border-radius: var(--r-ctl); font-size: 15px; font-weight: 500; text-align: center; background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px var(--line2); transition: background-color .15s; }
.cmp-nx { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 48px; margin-top: 4px; padding: 0 2px; border-top: 1px solid var(--line); font-size: 15px; color: var(--tx2); transition: color .15s; }
.cmp-nx b { font-weight: 600; color: var(--tx); }
.cmp-nx svg { flex: none; width: 18px; height: 18px; }
@media (min-width: 900px) {
  .oty { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 26px; }
  .tg { position: sticky; top: 72px; gap: 8px; }
  .tc { min-height: 84px; gap: 12px; font-size: 17px; }
  .cmp { padding: 26px 28px 20px; }
  .cmp-c { font-size: 56px; }
  .cmp-c2 { font-size: 38px; }
  .cmp-h { gap: 18px; }
}

/* ---------- dichotomies with forks (16 types, generic a-b) ---------- */
.dich { --rh: 76px; padding: 16px 0 8px; overflow: hidden; }
.dich > h2 { padding: 0 16px 10px; font-size: 15px; font-weight: 400; color: var(--tx2); }
.dg { display: grid; grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr); grid-auto-rows: var(--rh); }
.dc { display: flex; flex-direction: column; justify-content: center; min-width: 0; margin: 4px 0 4px 8px; padding: 0 4px 0 10px; border-radius: var(--r-ctl); color: var(--tx3); }
.dc.r { margin: 4px 8px 4px 0; padding: 0 10px 0 4px; text-align: right; align-items: flex-end; }
.dc .top { display: flex; align-items: baseline; gap: 8px; }
.dc.r .top { flex-direction: row-reverse; }
.dc b { font-size: 24px; line-height: 1.05; font-weight: 600; letter-spacing: -.02em; }
.dc em { font-style: normal; font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; }
.dc span { font-size: 13px; line-height: 1.18; overflow-wrap: anywhere; }
.dc.on { color: var(--tx); background: color-mix(in srgb, var(--sys) 20%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sys) 42%, transparent); }
.dc.on b { color: #fff; }
.dg .rail { grid-column: 2; grid-row: 1 / span 4; width: 56px; height: calc(var(--rh) * 4); }
.rl-g circle { fill: rgba(255,255,255,.22); }
.rl-l { stroke: var(--sys); stroke-width: 3; stroke-dasharray: 1; stroke-dashoffset: 1; animation: rl 1.1s .2s var(--ease) forwards; }
.rl-n { fill: var(--sys); stroke: var(--card); stroke-width: 3; transform-box: fill-box; transform-origin: center; animation: nd .4s calc(.2s + var(--i) * .22s) var(--ease) both; }
@keyframes rl { to { stroke-dashoffset: 0; } }
@keyframes nd { from { transform: scale(0); } }
.rl-f { stroke: var(--tx); stroke-opacity: .7; stroke-width: 2; stroke-dasharray: 1 6; }
.rl-fn { fill: none; stroke: var(--tx); stroke-opacity: .75; stroke-width: 2; }
.frl { display: flex; flex-wrap: wrap; column-gap: 16px; row-gap: 4px; margin: 10px 16px 0; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13px; color: var(--tx2); }
.frl span { display: inline-flex; align-items: center; gap: 7px; }
.frl b { font-weight: 600; color: var(--tx); }
.frl i { width: 18px; height: 3px; border-radius: var(--r-pill); background: var(--sys); }
.frl i.f { background: radial-gradient(circle, var(--tx) 1.2px, transparent 1.6px) 0 50% / 6px 3px repeat-x; }
.frl i.dot { width: 12px; height: 12px; border-radius: 50%; background: var(--sys); }
.frl i.ring { width: 12px; height: 12px; border: 2px solid var(--tx); border-radius: 50%; background: none; }
@media (min-width: 900px) {
  .dich { padding-top: 20px; }
  .dc b { font-size: 28px; } .dc span { font-size: 15px; }
  .dich > h2 { padding-inline: 20px; }
  .dc { margin-left: 10px; padding-left: 14px; }
  .dc.r { margin-right: 10px; margin-left: 0; padding-right: 14px; padding-left: 4px; }
}

/* type signature (16 types) */
.sig { flex: none; width: 13px; height: 24px; }
.sg-g circle { fill: rgba(255,255,255,.16); }
.sg-l { stroke: var(--tx3); stroke-width: 1.6; }
.sg-n { fill: var(--tx2); }
.tc.me .sg-l { stroke: var(--sys); } .tc.me .sg-n { fill: var(--tx); } .tc.me .sg-g circle { fill: rgba(0,0,0,.2); }
.cmp-s { flex: none; width: 42px; height: 90px; }
.cmp-o { stroke: var(--tx); stroke-width: 2.4; stroke-opacity: .85; stroke-dasharray: 1 6; }
.cmp-m { stroke: var(--sys); stroke-width: 3.4; }
@media (min-width: 900px) { .sig { width: 18px; height: 33px; } .cmp-s { width: 52px; height: 112px; } }

/* ---------- square diagrams: temperaments, DISC, attachment ---------- */
.sq-card { padding: 14px 12px 12px; }
.sq-card > h2 { padding: 0 4px 10px; font-size: 15px; font-weight: 400; color: var(--tx2); }
.lg2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px; row-gap: 2px; margin-top: 12px; padding: 10px 4px 0; border-top: 1px solid var(--line); }
.lg2-i { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; min-width: 0; padding: 2px 0; font-size: 13px; line-height: 1.25; color: var(--tx2); }
.lg2-i span { min-width: 0; overflow-wrap: anywhere; }
.lg2-i b { font-weight: 600; color: var(--tx); }
.lg2-i em { flex: none; font-style: normal; font-weight: 500; font-variant-numeric: tabular-nums; }
.lg2-i.me, .lg2-i.on { color: var(--tx); }
.lg2-i.on em { font-size: 15px; font-weight: 600; }
.qm { flex: none; width: 20px; height: 20px; }
.qe { fill: rgba(255,255,255,.13); } .qf { fill: var(--tx-body); }
.tc.me .qf { fill: var(--sys); }
.tc-t { min-width: 0; line-height: 1.2; text-align: left; hyphens: auto; overflow-wrap: anywhere; }
.qc { flex: none; width: 76px; height: 76px; }
.qc-e { fill: rgba(255,255,255,.07); } .qc-me { fill: var(--sys); } .qc-ot { fill: var(--tx); }
@media (min-width: 900px) {
  .sq-card { padding: 18px 20px 16px; } .sq-card > h2 { padding: 0 0 10px; }
  .lg2 { padding-inline: 0; } .lg2-i { font-size: 15px; }
  .qm { width: 26px; height: 26px; } .qc { width: 104px; height: 104px; }
  .tc .tc-t { font-size: 15px; }
}

/* attachment: point on two axes */
.aq { fill: rgba(255,255,255,.03); stroke: rgba(255,255,255,.08); stroke-width: 1.5; }
.aq.me { fill: color-mix(in srgb, var(--sys) 16%, var(--card)); stroke: color-mix(in srgb, var(--sys) 50%, transparent); }
.an { fill: var(--tx3); font-size: 15px; font-weight: 500; letter-spacing: -.01em; }
.an.me { fill: var(--tx); font-weight: 600; paint-order: stroke; stroke: var(--card); stroke-width: 4px; stroke-linejoin: round; }
.aax { fill: none; stroke: rgba(255,255,255,.3); stroke-width: 1.5; }
.aar { fill: none; stroke: rgba(255,255,255,.5); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* temperaments: Eysenck's circle */
.asq { display: block; width: 100%; max-width: 420px; height: auto; margin: 0 auto; overflow: visible; }
.tw { fill: rgba(255,255,255,.035); stroke: rgba(255,255,255,.09); stroke-width: 1.5; stroke-linejoin: round; }
.tw.me { fill: color-mix(in srgb, var(--sys) 22%, var(--card)); stroke: color-mix(in srgb, var(--sys) 55%, transparent); }
.twn { text-anchor: middle; fill: var(--tx3); font-size: 15px; font-weight: 500; letter-spacing: -.01em; }
.twn.me { fill: var(--tx); font-weight: 600; }
.dax { text-anchor: middle; fill: var(--tx2); font-size: 15px; font-weight: 500; }
.agd { fill: none; stroke: var(--sys); stroke-width: 1.5; stroke-dasharray: 2 5; stroke-linecap: round; animation: agf .5s 1s ease-out both; }
@keyframes agf { from { opacity: 0; } }
.apt { animation: apm 1s .15s var(--ease) both; }
@keyframes apm { from { transform: translate(var(--dx), var(--dy)); } }
.ao { fill: color-mix(in srgb, var(--sys) 30%, transparent); }
.ai { fill: var(--sys); stroke: var(--tx); stroke-width: 2.5; }
.tf { fill: none; stroke: var(--tx); stroke-width: 2.5; stroke-opacity: .8; animation: agf .5s 1.1s ease-out both; }

/* rows instead of cells: love languages, traits */
.tc.row { justify-content: flex-start; gap: 10px; min-height: 52px; padding: 8px 14px; }
.tc-n { flex: none; width: 18px; font-size: 15px; font-weight: 600; color: inherit; }
.tc.row .tc-t { flex: 1; }
.tc-v { flex: none; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (min-width: 900px) { .tc.row { min-height: 64px; padding: 10px 18px; font-size: 15px; gap: 14px; } }

/* enneagram */
.en-card { padding: 14px 12px 12px; }
.en-card > h2 { padding: 0 4px 6px; font-size: 15px; font-weight: 400; color: var(--tx2); }
.en-c { display: block; width: 100%; max-width: 420px; height: auto; margin: 0 auto; overflow: visible; }
.en-r { fill: none; stroke: rgba(255,255,255,.1); stroke-width: 1.5; }
.en-f { stroke: rgba(255,255,255,.09); stroke-width: 1.5; }
.en-l { stroke: var(--sys); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 400; stroke-dashoffset: 400; animation: enl .8s calc(.45s + var(--i) * .15s) var(--ease) forwards; }
@keyframes enl { to { stroke-dashoffset: 0; } }
.en-a { fill: none; stroke: rgba(255,255,255,.1); stroke-width: 5; stroke-linecap: round; }
.en-a.on { stroke: var(--sys); }
.en-n circle { fill: var(--s3); stroke: rgba(255,255,255,.2); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: enn .55s calc(var(--i) * .035s) var(--ease) both; }
@keyframes enn { from { transform: scale(0); } }
.en-n.near circle { stroke: var(--sys); }
.en-n.me circle { fill: var(--sys); stroke: none; }
.en-n text { text-anchor: middle; font-family: inherit; }
.en-n .num { fill: var(--tx-body); font-weight: 600; }
.en-n.me .num { fill: var(--on-sys); font-weight: 700; }
.en-n .pc { fill: var(--tx2); font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; }
.en-n.me .pc { fill: var(--on-sys); font-weight: 700; }
.en-lg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.en-lg div { padding: 0 4px; font-size: 13px; line-height: 1.25; color: var(--tx2); }
.en-lg b { display: block; margin-top: 2px; font-size: 15px; font-weight: 600; letter-spacing: -.012em; color: var(--tx); }
.edot { flex: none; width: 22px; height: 22px; }
.edr { fill: none; stroke: rgba(255,255,255,.2); stroke-width: 1.5; }
.edn { fill: var(--tx2); }
.tc.me .edn { fill: var(--sys); }
.cmp-e { flex: none; width: 92px; height: 92px; }
.cm-d { fill: rgba(255,255,255,.2); } .cm-me { fill: var(--sys); } .cm-ot { fill: var(--tx); }
.cm-l { stroke: var(--tx); stroke-width: 2.4; stroke-linecap: round; } .cm-l.soft { stroke-opacity: .45; stroke-dasharray: 1 6; }
@media (min-width: 900px) {
  .en-card { padding: 18px 20px 16px; } .en-card > h2 { padding: 0; } .en-c { max-width: 400px; }
  .en-lg div { font-size: 15px; } .en-lg b { font-size: 17px; }
  .edot { width: 30px; height: 30px; } .cmp-e { width: 112px; height: 112px; }
}

/* DISC */
.dsq { display: block; width: 100%; max-width: 420px; height: auto; margin: 0 auto; overflow: visible; }
.dq { fill: rgba(255,255,255,.03); stroke: rgba(255,255,255,.08); stroke-width: 1.5; }
.db rect { fill: color-mix(in srgb, var(--sys) 20%, var(--card)); stroke: color-mix(in srgb, var(--sys) 55%, transparent); stroke-width: 1.5; transform-box: view-box; transform-origin: 200px 200px; animation: dgr .8s calc(.1s + var(--n) * .07s) var(--ease) both; }
@keyframes dgr { from { transform: scale(0); } }
.db.me rect { fill: var(--sys); stroke: none; }
.db text { text-anchor: middle; font-family: inherit; }
.dl { fill: var(--tx); font-weight: 600; }
.db.me .dl { fill: var(--on-sys); font-weight: 700; letter-spacing: -.03em; }
.dp { fill: var(--on-sys); font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* archetypes */
.ww { padding: 14px 12px 14px; }
.ww > h2 { padding: 0 4px 8px; font-size: 15px; font-weight: 400; color: var(--tx2); }
.whl { display: block; width: 100%; max-width: 440px; height: auto; margin: 0 auto; overflow: visible; }
.wb { fill: rgba(255,255,255,.035); }
.wf { fill: color-mix(in srgb, var(--sys) 30%, var(--card)); transform-box: view-box; transform-origin: 200px 200px; animation: wg .9s calc(var(--n) * .03s) var(--ease) both; }
@keyframes wg { from { transform: scale(.28); } }
.wf.me { fill: var(--sys); }
.wt { fill: var(--tx-body); font-weight: 500; letter-spacing: -.008em; }
.wt.me { fill: var(--on-sys); font-weight: 700; }
.wc { text-anchor: middle; fill: var(--tx); font-size: 24px; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.wdot { flex: none; width: 22px; height: 22px; }
.wdr { fill: none; stroke: rgba(255,255,255,.22); stroke-width: 1.5; }
.wdn { fill: var(--tx-body); }
.tc.me .wdn { fill: var(--sys); }
.wcmp { flex: none; width: 88px; height: 88px; }
.wdm { fill: rgba(255,255,255,.22); }
@media (min-width: 900px) { .ww { padding: 18px 20px 16px; } .ww > h2 { padding-inline: 0; } .wdot { width: 26px; height: 26px; } .wcmp { width: 108px; height: 108px; } }

/* love languages */
.ll { padding: 14px 12px 12px; }
.ll > h2 { padding: 0 4px 10px; font-size: 15px; font-weight: 400; color: var(--tx2); }
.ll ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.lr { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: baseline; column-gap: 8px; row-gap: 2px; padding: 10px 6px 11px; color: var(--tx-body); }
.lr + .lr { border-top: 1px solid var(--line); }
.lr .no { font-size: 15px; font-weight: 600; color: var(--tx3); font-variant-numeric: tabular-nums; }
.lr .nn { min-width: 0; font-size: 15px; font-weight: 500; letter-spacing: -.012em; overflow-wrap: anywhere; }
.lr .vv { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.lt { grid-column: 2 / -1; height: 4px; margin-top: 5px; border-radius: var(--r-pill); background: rgba(255,255,255,.09); overflow: hidden; }
.lt i { display: block; height: 100%; width: var(--v); border-radius: var(--r-pill); background: color-mix(in srgb, var(--sys) 62%, transparent); transform-origin: left; animation: lgw .9s calc(.25s + var(--i) * .08s) var(--ease) both; }
@keyframes lgw { from { transform: scaleX(0); } }
.lr.top { grid-template-columns: minmax(0, 1fr) auto; padding: 16px; border-radius: var(--r-ctl); background: color-mix(in srgb, var(--sys) 14%, var(--s1)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sys) 40%, transparent); color: var(--tx); animation: lpp .6s var(--ease) both; }
@keyframes lpp { from { opacity: 0; transform: scale(.97); } }
.lr.top + .lr { border-top: 0; }
.lr.top .no { grid-column: 1 / -1; font-size: 13px; font-weight: 600; color: var(--sys); }
.lr.top .nn { font-size: 24px; line-height: 1.06; font-weight: 600; letter-spacing: -.034em; }
.lr.top .vv { font-size: 28px; font-weight: 600; letter-spacing: -.03em; color: var(--sys); }
.lr.top .lt { grid-column: 1 / -1; height: 6px; margin-top: 12px; background: rgba(255,255,255,.08); }
.lr.top .lt i { background: var(--sys); }
@media (min-width: 900px) { .ll { padding: 18px 20px 14px; } .ll > h2 { padding-inline: 0; } .lr .nn { font-size: 17px; } }

/* Big Five */
.b5 { padding: 14px 16px 16px; }
.b5 > h2 { font-size: 15px; font-weight: 400; color: var(--tx2); }
.b5e { display: flex; justify-content: space-between; margin-top: 10px; font-size: 13px; color: var(--tx3); }
.b5r { padding: 11px 0 12px; border-top: 1px solid var(--line); }
.b5e + .b5r { margin-top: 6px; }
.b5h { display: flex; align-items: baseline; gap: 9px; }
.b5h b { width: 16px; font-size: 17px; font-weight: 600; color: var(--tx2); }
.b5h span { flex: 1; min-width: 0; font-size: 15px; font-weight: 500; letter-spacing: -.012em; color: var(--tx-body); overflow-wrap: anywhere; hyphens: auto; }
.b5h em { font-style: normal; font-size: 20px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--tx-body); }
.b5t { position: relative; height: 16px; margin-top: 7px; }
.b5t::before { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 4px; border-radius: var(--r-pill); background: rgba(255,255,255,.1); }
.b5t::after { content: ""; position: absolute; left: 50%; top: 2px; width: 1.5px; height: 12px; background: rgba(255,255,255,.28); }
.b5f { position: absolute; left: 0; top: 6px; height: 4px; width: var(--v); border-radius: var(--r-pill); background: color-mix(in srgb, var(--sys) 55%, transparent); transform-origin: left; animation: b5g 1.1s calc(.15s + var(--i) * .08s) var(--ease) both; }
@keyframes b5g { from { transform: scaleX(0); } }
.b5m { position: absolute; left: var(--v); top: 1px; z-index: 1; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--tx); animation: b5s 1.1s calc(.15s + var(--i) * .08s) var(--ease) both; }
@keyframes b5s { from { left: 0; } }
.b5r.me .b5h b, .b5r.me .b5h span, .b5r.me .b5h em { color: var(--tx); }
.b5r.me .b5h em { font-size: 24px; }
.b5r.me .b5f { background: var(--sys); }
.b5r.me .b5m { width: 18px; height: 18px; top: -1px; margin-left: -9px; background: var(--sys); box-shadow: 0 0 0 3px var(--card), 0 0 0 4.5px var(--sys); }
@media (min-width: 900px) { .b5 { padding: 18px 22px 16px; } .b5h span { font-size: 17px; } }

/* ---------- generic screens ---------- */
.dich.gen .dc span { font-size: 12px; overflow-wrap: normal; }
@media (min-width: 900px) { .dich.gen .dc span { font-size: 15px; } }
.gs { padding: 14px 16px 16px; }
.gs > h2 { font-size: 15px; font-weight: 400; color: var(--tx2); }
.gse { display: flex; justify-content: space-between; margin-top: 10px; font-size: 13px; color: var(--tx3); }
.gsr { padding: 10px 0 11px; border-top: 1px solid var(--line); }
.gse + .gsr { margin-top: 6px; }
.gsh { display: flex; align-items: baseline; gap: 9px; color: var(--tx-body); }
.gsh span { flex: 1; min-width: 0; font-size: 15px; font-weight: 500; letter-spacing: -.012em; overflow-wrap: anywhere; hyphens: auto; }
.gsh em { font-style: normal; font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.gst { position: relative; height: 16px; margin-top: 6px; }
.gst::before { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 4px; border-radius: var(--r-pill); background: rgba(255,255,255,.1); }
.gst::after { content: ""; position: absolute; left: 50%; top: 2px; width: 1.5px; height: 12px; background: rgba(255,255,255,.28); }
.gsf { position: absolute; left: 0; top: 6px; height: 4px; width: var(--v); border-radius: var(--r-pill); background: color-mix(in srgb, var(--sys) 55%, transparent); transform-origin: left; animation: gsg 1.1s calc(.15s + var(--i) * .07s) var(--ease) both; }
@keyframes gsg { from { transform: scaleX(0); } }
.gsm { position: absolute; left: var(--v); top: 1px; z-index: 1; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--tx); animation: gss 1.1s calc(.15s + var(--i) * .07s) var(--ease) both; }
@keyframes gss { from { left: 0; } }
.gsr.me .gsh { color: var(--tx); } .gsr.me .gsh em { font-size: 24px; }
.gsr.me .gsf { background: var(--sys); }
.gsr.me .gsm { width: 18px; height: 18px; top: -1px; margin-left: -9px; background: var(--sys); box-shadow: 0 0 0 3px var(--card), 0 0 0 4.5px var(--sys); }
.dsc { padding: 14px 16px 16px; }
.dsc > h2 { font-size: 15px; font-weight: 400; color: var(--tx2); margin-bottom: 4px; }
.dr2 { padding: 10px 0 11px; border-top: 1px solid var(--line); }
.dr2h { display: flex; align-items: baseline; gap: 10px; color: var(--tx-body); }
.dr2h b { flex: 1; min-width: 0; font-size: 15px; font-weight: 600; letter-spacing: -.012em; overflow-wrap: anywhere; }
.dr2h em { font-style: normal; font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.dr2t { height: 8px; margin-top: 8px; border-radius: var(--r-badge); background: rgba(255,255,255,.07); overflow: hidden; }
.dr2t i { display: block; height: 100%; width: var(--w); border-radius: var(--r-badge); background: color-mix(in srgb, var(--sys) 50%, transparent); transform-origin: left; animation: gsg 1s calc(.2s + var(--i) * .08s) var(--ease) both; }
.dr2.me { padding-top: 4px; border-top: 0; }
.dr2.me .dr2h { color: var(--tx); } .dr2.me .dr2h b { font-size: 24px; letter-spacing: -.03em; } .dr2.me .dr2h em { font-size: 28px; letter-spacing: -.03em; }
.dr2.me .dr2t { height: 14px; } .dr2.me .dr2t i { background: var(--sys); }
.gg { padding: 14px 14px 12px; }
.gg > h2 { padding: 0 2px 6px; font-size: 15px; font-weight: 400; color: var(--tx2); }
.gauge { display: block; width: 100%; max-width: 440px; height: auto; margin: 0 auto; overflow: visible; }
.gz { fill: none; stroke: rgba(255,255,255,.1); stroke-width: 22; }
.gz.me { stroke: var(--sys); }
.gk { stroke: rgba(255,255,255,.22); stroke-width: 1.4; stroke-linecap: round; } .gk.big { stroke: rgba(255,255,255,.5); stroke-width: 2.2; }
.gn { transform-box: view-box; transform-origin: 200px 200px; transform: rotate(var(--a)); animation: gna 1.5s .25s cubic-bezier(.3, 1.35, .5, 1) both; }
@keyframes gna { from { transform: rotate(180deg); } }
.gn path { fill: var(--tx); }
.gh { fill: var(--tx); } .gh2 { fill: var(--card); }
.gv { text-anchor: middle; fill: var(--tx); font-size: 38px; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ge { fill: var(--tx2); font-size: 15px; font-weight: 500; }
.gzl { display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: 3px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.gzl span { font-size: 12px; line-height: 1.2; text-align: center; color: var(--tx3); hyphens: auto; overflow-wrap: anywhere; }
.gzl span.me { color: var(--tx); font-weight: 600; }
@media (max-width: 599px) { .gzl { display: none; } }
@media (min-width: 900px) { .gs, .dsc { padding: 18px 22px 16px; } .gg { padding: 18px 20px 14px; } .gzl span { font-size: 13px; } }

/* how others answer on the system's own diagram (design/systems/dist.js) */
.s-dist.viz .quiz-engine-comparison { display: none; }
.pdw { margin-top: 20px; padding: 20px 16px; border-radius: var(--r-card); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.pdw:empty { display: none; }
.pd { display: block; width: 100%; height: auto; margin: 0 auto; overflow: visible; }
.pd-c { fill: #fff; }
.pd-c.me { fill: var(--sys); }
.pd-n { fill: var(--tx-body); font-weight: 500; letter-spacing: -.01em; }
.pd-v { fill: var(--tx); font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.pd-ax { fill: var(--tx2); font-size: 15px; font-weight: 500; }
.pd-key { display: flex; flex-wrap: wrap; column-gap: 16px; row-gap: 4px; margin: 16px 0 0; font-size: 13px; color: var(--tx2); }
.pd-key b { color: var(--tx); font-weight: 600; } .pd-key .me, .pd-key .me b { color: var(--sys); }
.pd-ring { fill: none; stroke: var(--line2); stroke-width: 1.5; }
.pd-fig { stroke: rgba(255,255,255,.1); stroke-width: 1.5; }
.pd .me .pd-n, .pd .me .pd-v { fill: var(--on-sys); }
.pd .me .pd-n { font-weight: 600; }
.pd .me .pd-out, .pd .me .pd-l { fill: var(--sys); }
.pd-16 { max-width: 560px; } .pd-en { max-width: 440px; } .pd-ll { max-width: 560px; } .pd-at, .pd-di { max-width: 460px; } .pd-b5 { max-width: 560px; } .pd-tm { max-width: 440px; } .pd-ar { max-width: 460px; }
.vh { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (min-width: 900px) { .pdw { max-width: 680px; padding: 32px; } }

/* the engine's result block stays in the markup (texts are read from it) and is never shown in place */
.quiz-engine-results { display: none; }

@media (hover: hover) and (pointer: fine) {
  .sns a:hover, .sa:hover, .b2:hover { background: rgba(255,255,255,.14); }
  .quiz-engine-cta-button:hover { background: #fff; }
  button.tc:hover { background: var(--s3); box-shadow: inset 0 0 0 1px var(--line2); color: #fff; }
  button.tc[aria-pressed="true"]:hover { box-shadow: inset 0 0 0 1.5px var(--tx); }
  .cmp-rd:hover { background: rgba(255,255,255,.13); }
  .cmp-nx:hover { color: var(--tx); }
}
.is-result .s-others { order: 5; }

/* "Other types": the way back to one's own type (round 2) */
.cmp-back { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; min-height: 44px; margin: -6px 0 6px -4px; padding: 0 12px 0 8px; border-radius: var(--r-ctl); font-size: 13px; color: var(--tx2); text-align: left; }
.cmp-back svg { flex: none; width: 16px; height: 16px; transform: rotate(180deg); }
.cmp-back b { color: var(--sys); font-weight: 600; }
.tc.me[data-own] { cursor: pointer; }
@media (hover: hover) and (pointer: fine) {
  .cmp-back:hover { color: var(--tx); background: rgba(255,255,255,.06); }
  .tc.me[data-own]:hover { background: color-mix(in srgb, var(--sys) 22%, var(--s1)); }
}

/* ---------- career interests: Holland hexagon (proto/result-career.html) ---------- */
.hx { display: block; width: 100%; max-width: 400px; height: auto; margin: 0 auto; overflow: visible; font-family: inherit; }
.hx-g { fill: none; stroke: rgba(255,255,255,.07); stroke-width: 1.5; }
.hx-o { fill: none; stroke: rgba(255,255,255,.18); stroke-width: 1.5; }
.hx-p { fill: color-mix(in srgb, var(--sys) 22%, transparent); stroke: var(--sys); stroke-width: 2.5; stroke-linejoin: round; transform-box: view-box; transform-origin: 200px 200px; animation: hxg .9s .15s var(--ease) both; }
@keyframes hxg { from { transform: scale(.1); opacity: 0; } }
.hx-n circle { fill: var(--s2); stroke: rgba(255,255,255,.25); stroke-width: 1.5; }
.hx-n.me circle { fill: var(--sys); stroke: none; }
.hx-l { text-anchor: middle; font-weight: 700; fill: var(--tx); }
.hx-n.me .hx-l { fill: var(--on-sys); }
.hx-v { text-anchor: middle; font-size: 17px; font-weight: 600; fill: var(--tx2); font-variant-numeric: tabular-nums; }
.hx-n.me .hx-v { fill: var(--sys); font-size: 20px; }
.hcode { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 4px 4px 0; padding: 12px 0 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--tx2); }
.hcode b { font-size: 20px; font-weight: 600; letter-spacing: .04em; color: var(--tx); }
.hcode b i { font-style: normal; color: var(--sys); }
.lg2-hx { margin-top: 10px; }
/* Holland names are long ("Investigative"): one column on a phone */
@media (max-width: 599px) { .lg2-hx { grid-template-columns: 1fr; } }

/* ---------- political views: compass (proto/result-political.html) ---------- */
.pc { display: block; width: 100%; max-width: 400px; height: auto; margin: 0 auto; overflow: visible; font-family: inherit; }
.pc-q { fill: rgba(255,255,255,.025); }
.pc-q.me { fill: color-mix(in srgb, var(--sys) 16%, transparent); }
.pc-g { fill: none; stroke: rgba(255,255,255,.06); stroke-width: 1; }
.pc-o { fill: none; stroke: rgba(255,255,255,.18); stroke-width: 1.5; }
.pc-a { stroke: rgba(255,255,255,.32); stroke-width: 1.5; }
.pc-pr { fill: none; stroke: var(--sys); stroke-width: 1.5; stroke-dasharray: 3 5; opacity: .7; }
.pc-ax { text-anchor: middle; font-size: 15px; font-weight: 500; fill: var(--tx2); }
.pc-r { fill: none; stroke: var(--sys); stroke-width: 2; opacity: .55; }
.pc-d { fill: var(--sys); stroke: var(--card); stroke-width: 4; }
.pc-me { transform-box: view-box; transform-origin: 200px 200px; animation: pcm 1s .2s var(--ease) both; }
@keyframes pcm { from { transform: translate(0, 0) scale(.2); opacity: 0; } }
.pas { display: grid; gap: 10px; margin: 6px 4px 0; padding-top: 12px; border-top: 1px solid var(--line); }
.pa { display: grid; grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr); align-items: center; gap: 10px; font-size: 13px; color: var(--tx2); font-variant-numeric: tabular-nums; }
.pa > span:last-child { text-align: right; }
.pa b { font-weight: 500; }
.pa .on { color: var(--sys); font-weight: 600; }
.pa .on b { color: var(--tx); font-weight: 600; }
.pa-t { position: relative; height: 6px; border-radius: var(--r-pill); background: rgba(255,255,255,.08); }
.pa-t::after { content: ""; position: absolute; left: 50%; top: -3px; width: 1.5px; height: 12px; background: rgba(255,255,255,.3); }
.pa-f { position: absolute; top: 0; bottom: 0; left: var(--l); width: var(--w); border-radius: var(--r-pill); background: var(--sys); }
@media (min-width: 900px) { .pa { grid-template-columns: minmax(0, 1fr) 120px minmax(0, 1fr); font-size: 15px; } }

/* colour-type results in the generic "by descending": a dot of the real colour */
.cdot { display: inline-block; width: 12px; height: 12px; margin-right: 8px; border-radius: 50%; background: var(--d); vertical-align: -1px; }
.cdot.lt { box-shadow: inset 0 0 0 1px rgba(0,0,0,.35); }
@media (prefers-reduced-motion: reduce) { .hx-p, .pc-me { animation: none; } }
