/* EasyPersonalityTest.com
   Layout: one calm centered column. The question is always the biggest thing on screen;
   everything else (progress, chapters, next step) sits on a single rail above or below it. */
:root {
  --bg: #F6F7FB; --surface: #FFFFFF; --ink: #1A1D3A; --ink-2: #474B6B; --ink-3: #6E7392; --line: #DFE2EE;
  --go: #0B8F6F; --go-dark: #087257; --go-tint: #DFF4EC; --no: #7A55D1; --no-tint: #ECE5FA;
  --analysts: #7350C9; --diplomats: #1F9160; --sentinels: #2476BD; --explorers: #C97A12;
  --analysts-tint: #EFEAFB; --diplomats-tint: #E2F4EA; --sentinels-tint: #E3EFF9; --explorers-tint: #FBEFDC;
  --role: var(--go); --role-tint: var(--go-tint);
  --sun: #FFC94A;
  --font-display: "Bricolage Grotesque", "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --r: 14px; --r-lg: 24px; --wide: 1080px; --read: 700px;
  --shadow: 0 1px 2px rgba(26,29,58,.06), 0 8px 28px rgba(26,29,58,.08);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--font-body); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--surface); }
img, svg { max-width: 100%; }
a { color: var(--go-dark); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; text-wrap: balance; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--wide); margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.wrap--read { max-width: calc(var(--read) + 32px); }
.role-analysts { --role: var(--analysts); --role-tint: var(--analysts-tint); }
.role-diplomats { --role: var(--diplomats); --role-tint: var(--diplomats-tint); }
.role-sentinels { --role: var(--sentinels); --role-tint: var(--sentinels-tint); }
.role-explorers { --role: var(--explorers); --role-tint: var(--explorers-tint); }

/* header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; gap: 12px; min-height: 60px; }
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); font: 800 clamp(15px, 4.2vw, 20px)/1 var(--font-display); letter-spacing: -.02em; white-space: nowrap; }
.logo__mark { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 3px; flex: none; }
.logo__mark i { width: 9px; height: 9px; border-radius: 50%; display: block; }
.logo__mark i:nth-child(1) { background: var(--analysts); } .logo__mark i:nth-child(2) { background: var(--diplomats); }
.logo__mark i:nth-child(3) { background: var(--sentinels); } .logo__mark i:nth-child(4) { background: var(--explorers); }
.logo b { color: var(--go); font-weight: 800; } .logo span { color: var(--ink-3); font-weight: 600; }
.top nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.top nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; padding: 8px 10px; border-radius: 10px; font-size: 15px; }
.top nav a:hover { background: var(--bg); }
.top nav a.navlink { display: none; }
@media (min-width: 720px) { .top nav a.navlink { display: inline-block; } }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; text-decoration: none; font: 700 17px/1 var(--font-body); padding: 15px 22px; border-radius: 999px; background: var(--go); color: #fff; transition: transform .12s, background .12s; }
.btn:hover { background: var(--go-dark); } .btn:active { transform: scale(.98); }
.btn--sm { padding: 10px 16px; font-size: 15px; white-space: nowrap; }
.top nav a.btn { color: #fff; padding: 10px 16px; } .top nav a.btn:hover { background: var(--go-dark); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn--ghost:hover { background: var(--surface); box-shadow: inset 0 0 0 2px var(--ink-3); }
.btn--role { background: var(--role); } .btn--role:hover { background: var(--role); filter: brightness(.92); }
.btn--big { font-size: 19px; padding: 18px 28px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.linkbtn { background: none; border: 0; padding: 6px 4px; font: 600 15px var(--font-body); color: var(--ink-3); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* home hero */
.hero { padding-block: clamp(28px, 6vw, 64px) 28px; text-align: center; }
.hero h1 { font-size: clamp(34px, 7.4vw, 68px); font-weight: 800; max-width: 15ch; margin-inline: auto; }
.hero h1 em { font-style: normal; color: var(--go); }
.hero__sub { font-size: clamp(17px, 2.6vw, 21px); color: var(--ink-2); max-width: 34em; margin: 16px auto 0; }
.facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.facts li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: 15px; color: var(--ink-2); }
.facts li::before { content: "✓ "; color: var(--go); font-weight: 800; }

/* question card */
.qcard { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: clamp(20px, 4vw, 36px) clamp(14px, 4vw, 36px); margin: 28px auto 0; max-width: 760px; text-align: center; border: 0; min-width: 0; }
.qcard__eyebrow { display: inline-block; background: var(--sun); color: var(--ink); font-weight: 700; font-size: 14px; padding: 5px 12px; border-radius: 999px; margin-bottom: 14px; }
.q { border: 0; margin: 0; padding: clamp(22px, 4vw, 34px) 0; min-width: 0; text-align: center; transition: opacity .25s; }
.q + .q { border-top: 2px solid var(--line); }
.q legend, .qcard legend { font: 700 clamp(19px, 3.4vw, 25px)/1.3 var(--font-display); padding: 0; margin: 0 auto 20px; max-width: 26em; text-wrap: balance; float: none; width: 100%; }
.q:not(.is-active) { opacity: .42; }
.q:not(.is-active):hover, .q:not(.is-active):focus-within { opacity: 1; }
.qcard .q, .qcard fieldset { opacity: 1; }
.scale { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.scale__opts { --u: clamp(34px, 10.2vw, 58px); display: flex; align-items: center; justify-content: center; gap: clamp(5px, 1.6vw, 16px); }
.opt { position: relative; display: block; cursor: pointer; border-radius: 50%; flex: none; }
.opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.opt span { display: grid; place-items: center; width: var(--s); height: var(--s); border-radius: 50%; border: 3px solid var(--c); background: var(--surface); transition: transform .12s, background .12s; }
.opt span::after { content: ""; width: 42%; height: 24%; border-left: 3px solid #fff; border-bottom: 3px solid #fff; transform: rotate(-45deg) translate(6%, -18%); opacity: 0; }
.opt:hover span { background: var(--ct); transform: scale(1.07); }
.opt input:checked + span { background: var(--c); } .opt input:checked + span::after { opacity: 1; }
.opt input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 3px; }
.opt[data-v="3"], .opt[data-v="2"], .opt[data-v="1"] { --c: var(--go); --ct: var(--go-tint); }
.opt[data-v="-3"], .opt[data-v="-2"], .opt[data-v="-1"] { --c: var(--no); --ct: var(--no-tint); }
.opt[data-v="0"] { --c: #A6ABC4; --ct: #EEF0F6; }
.opt[data-v="3"], .opt[data-v="-3"] { --s: var(--u); }
.opt[data-v="2"], .opt[data-v="-2"] { --s: calc(var(--u) * .84); }
.opt[data-v="1"], .opt[data-v="-1"] { --s: calc(var(--u) * .7); }
.opt[data-v="0"] { --s: calc(var(--u) * .6); }
.scale__ends { display: flex; justify-content: space-between; width: min(100%, 480px); font-weight: 700; font-size: 15px; }
.scale__ends .agree { color: var(--go-dark); } .scale__ends .disagree { color: var(--no); }
.hint { color: var(--ink-3); font-size: 15px; margin-top: 14px; }

/* test page */
.progress { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 61px); z-index: 15; background: var(--bg); padding-block: 12px 10px; }
.progress__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-weight: 700; font-size: 14.5px; white-space: nowrap; }
.progress__row span:last-child { color: var(--ink-3); font-weight: 600; text-align: right; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.bar { height: 10px; background: var(--line); border-radius: 999px; overflow: hidden; margin-top: 6px; }
.bar i { display: block; height: 100%; width: 0; background: var(--go); border-radius: 999px; transition: width .35s; }
.testcard { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 4px clamp(12px, 4vw, 40px); margin-top: 8px; }
.testnav { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 22px 60px; }
.testnav .btn.pulse { animation: pulse 1.2s ease-in-out 2; }
@keyframes pulse { 50% { box-shadow: 0 0 0 10px rgba(11,143,111,.18); } }
.notice { background: var(--no-tint); border-radius: var(--r); padding: 12px 16px; margin-top: 14px; font-weight: 600; }
.center { text-align: center; }
.tie { display: grid; gap: 12px; margin-top: 18px; }
.tie button { text-align: left; background: var(--surface); border: 2px solid var(--line); border-radius: var(--r); padding: 16px 18px; font: 600 17px/1.4 var(--font-body); color: var(--ink); cursor: pointer; }
.tie button:hover { border-color: var(--go); background: var(--go-tint); }
.calc { min-height: 50vh; display: grid; place-content: center; text-align: center; gap: 18px; }
.calc__dots { display: flex; gap: 10px; justify-content: center; }
.calc__dots i { width: 16px; height: 16px; border-radius: 50%; animation: bounce 1s infinite; }
.calc__dots i:nth-child(1) { background: var(--analysts); } .calc__dots i:nth-child(2) { background: var(--diplomats); animation-delay: .12s; }
.calc__dots i:nth-child(3) { background: var(--sentinels); animation-delay: .24s; } .calc__dots i:nth-child(4) { background: var(--explorers); animation-delay: .36s; }
@keyframes bounce { 50% { transform: translateY(-12px); } }

/* sections */
.sec { padding-block: clamp(36px, 7vw, 72px); }
.sec h2 { font-size: clamp(26px, 4.6vw, 40px); font-weight: 800; }
.sec__lead { color: var(--ink-2); max-width: 40em; margin-top: 10px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 26px; list-style: none; padding: 0; counter-reset: s; }
.steps li { background: var(--surface); border-radius: var(--r-lg); padding: 22px; counter-increment: s; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; font: 800 18px var(--font-display); margin-bottom: 12px; }
.steps h3 { font-size: 21px; margin-bottom: 6px; } .steps p { color: var(--ink-2); }
.group { margin-top: 30px; }
.group__h { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.group__h h3 { font-size: 24px; color: var(--role); } .group__h p { color: var(--ink-3); font-size: 15px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin-top: 14px; }
.tcard { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: center; background: var(--surface); border-radius: var(--r); padding: 16px; text-decoration: none; color: var(--ink); border: 2px solid transparent; transition: border-color .12s, transform .12s; min-width: 0; }
.tcard:hover { border-color: var(--role); transform: translateY(-2px); }
.tcard svg { width: 56px; height: 56px; }
.tcard b { display: block; font: 800 19px/1.2 var(--font-display); } .tcard code { font: 700 13px var(--font-body); color: var(--role); letter-spacing: .06em; }
.tcard p { grid-column: 1 / -1; color: var(--ink-2); font-size: 15px; line-height: 1.45; }
.cta { background: var(--ink); color: #fff; border-radius: var(--r-lg); padding: clamp(28px, 6vw, 56px) 20px; text-align: center; }
.cta h2 { font-size: clamp(26px, 5vw, 42px); } .cta p { color: #C9CCE2; margin: 10px auto 22px; max-width: 32em; }
.foot { border-top: 1px solid var(--line); margin-top: 48px; padding-block: 26px 40px; color: var(--ink-3); font-size: 14px; }
.foot__in { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; }
.foot a { color: var(--ink-2); font-weight: 600; } .foot p { flex-basis: 100%; max-width: 60em; }

/* type hero and chapters */
.thero { background: var(--role-tint); }
.thero__in { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; padding-block: clamp(20px, 4vw, 38px); }
.thero__kicker { font-weight: 700; color: var(--role); letter-spacing: .04em; font-size: 15px; }
.thero h1, .thero .h1 { font: 800 clamp(34px, 7vw, 62px)/1.05 var(--font-display); letter-spacing: -.01em; }
.thero__line { color: var(--ink-2); max-width: 34em; margin-top: 8px; }
.thero svg { width: clamp(84px, 18vw, 170px); height: auto; display: block; }
.yours { display: none; background: var(--ink); color: #fff; font-weight: 600; font-size: 15px; }
.yours.on { display: block; }
.yours__in { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; justify-content: space-between; padding-block: 9px; }
.yours a { color: var(--sun); }
.stepper { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: calc(env(safe-area-inset-top, 0px) + 61px); z-index: 10; }
.stepper ol { display: flex; gap: 4px; list-style: none; margin: 0; padding: 8px 0; overflow-x: auto; scrollbar-width: none; }
.stepper ol::-webkit-scrollbar { display: none; }
.stepper a { display: flex; align-items: center; gap: 7px; white-space: nowrap; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 14.5px; padding: 7px 12px 7px 7px; border-radius: 999px; }
.stepper a i { font-style: normal; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--bg); font-size: 13px; font-weight: 700; flex: none; }
.stepper a:hover { background: var(--bg); }
.stepper a[aria-current] { background: var(--role); color: #fff; } .stepper a[aria-current] i { background: #fff; color: var(--role); }
.stepper a.read i { background: var(--role-tint); color: var(--role); }
.chapter { padding-block: clamp(26px, 5vw, 48px) 10px; }
.chapter__n { font-weight: 700; color: var(--role); font-size: 15px; letter-spacing: .04em; }
.chapter h1, .chapter .ch { font-size: clamp(30px, 6vw, 48px); font-weight: 800; margin-top: 4px; }
.epi { margin: 24px 0 0; padding: 18px 22px; background: var(--role-tint); border-radius: var(--r); }
.epi blockquote { margin: 0; font: 600 clamp(19px, 3vw, 23px)/1.4 var(--font-display); }
.epi figcaption { margin-top: 8px; color: var(--ink-2); font-size: 15px; }
.prose { margin-top: 24px; font-size: clamp(17px, 2.2vw, 19px); line-height: 1.7; }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { font-size: clamp(23px, 3.8vw, 30px); margin-top: 1.7em; }
.prose h3 { font-size: 21px; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.25em; } .prose li + li { margin-top: .7em; }
.prose a { color: var(--role); font-weight: 600; }
.tablewrap { overflow-x: auto; } .prose table { border-collapse: collapse; font-size: 16px; } .prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.next { display: grid; gap: 14px; margin-top: 44px; }
.next__card { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--role); color: #fff; text-decoration: none; border-radius: var(--r-lg); padding: clamp(18px, 4vw, 28px); transition: transform .12s; }
.next__card:hover { transform: translateY(-2px); }
.next__card small { display: block; font-weight: 600; opacity: .85; font-size: 15px; }
.next__card b { display: block; font: 800 clamp(22px, 4.4vw, 32px)/1.15 var(--font-display); margin-top: 2px; }
.next__card span.arrow { font-size: 34px; line-height: 1; flex: none; }
.next__back { color: var(--ink-3); font-weight: 600; font-size: 15px; }
.box { background: var(--surface); border-radius: var(--r-lg); padding: clamp(18px, 4vw, 28px); margin-top: 28px; border: 2px solid var(--line); }
.box h2 { font-size: 24px; } .box p { color: var(--ink-2); margin-top: 6px; } .box .btn { margin-top: 14px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* results */
.reveal { background: var(--role-tint); text-align: center; padding-block: clamp(28px, 6vw, 60px); }
.reveal__k { font-weight: 700; color: var(--ink-2); font-size: clamp(16px, 2.6vw, 20px); }
.reveal__name { font: 800 clamp(48px, 13vw, 112px)/1 var(--font-display); color: var(--role); letter-spacing: -.02em; margin-top: 6px; animation: pop .6s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes pop { from { transform: scale(.7); opacity: 0; } }
.reveal__code { display: inline-block; margin-top: 12px; background: var(--surface); border-radius: 999px; padding: 6px 16px; font-weight: 800; letter-spacing: .1em; }
.reveal__desc { max-width: 32em; margin: 16px auto 0; font-size: clamp(17px, 2.6vw, 20px); color: var(--ink-2); }
.reveal svg { width: clamp(110px, 26vw, 180px); height: auto; margin-top: 18px; }
.traits { display: grid; gap: 14px; margin-top: 22px; }
.trait { background: var(--surface); border-radius: var(--r-lg); padding: 18px clamp(16px, 3vw, 24px); }
.trait__top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.trait__top small { font-weight: 700; color: var(--ink-3); letter-spacing: .08em; text-transform: uppercase; font-size: 13px; }
.trait__top b { font: 800 22px var(--font-display); color: var(--role); font-variant-numeric: tabular-nums; }
.tbar { position: relative; height: 14px; background: var(--bg); border-radius: 999px; margin: 12px 0 6px; }
.tbar i { position: absolute; top: 0; bottom: 0; background: var(--role); border-radius: 999px; transition: width .8s .2s, left .8s .2s; }
.tbar::after { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 2px; background: var(--ink-3); opacity: .5; }
.tbar__ends { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; color: var(--ink-3); }
.tbar__ends .on { color: var(--ink); font-weight: 800; }
.trait p { margin-top: 10px; color: var(--ink-2); } .trait p.why { font-size: 15px; color: var(--ink-3); }
.chlist { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; counter-reset: c; }
.chlist a { display: flex; align-items: center; gap: 14px; background: var(--surface); border-radius: var(--r); padding: 14px 16px; text-decoration: none; color: var(--ink); font-weight: 700; counter-increment: c; border: 2px solid transparent; }
.chlist a::before { content: counter(c); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--role-tint); color: var(--role); font-weight: 800; flex: none; }
.chlist a.read::before { content: "✓"; background: var(--role); color: #fff; }
.chlist a:hover { border-color: var(--role); } .chlist a::after { content: "→"; margin-left: auto; color: var(--ink-3); }
.sticky-cta { position: sticky; bottom: 0; padding: 12px 0 calc(12px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(transparent, var(--bg) 30%); text-align: center; z-index: 5; }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 600; z-index: 50; }
.copyfield { width: 100%; margin-top: 10px; padding: 10px 12px; border: 2px solid var(--line); border-radius: 10px; font: 15px var(--font-body); color: var(--ink); background: var(--bg); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

/* ---- v2: equal circles ---- */
.scale__opts { --u: clamp(34px, 10.4vw, 50px); gap: clamp(5px, 1.5vw, 14px); }
.opt[data-v] { --s: var(--u); }
.opt[data-v="2"], .opt[data-v="-2"] { --c: color-mix(in srgb, var(--cc) 78%, #fff); }
.opt[data-v="1"], .opt[data-v="-1"] { --c: color-mix(in srgb, var(--cc) 55%, #fff); }
.opt[data-v="3"], .opt[data-v="2"], .opt[data-v="1"] { --cc: var(--go); }
.opt[data-v="-3"], .opt[data-v="-2"], .opt[data-v="-1"] { --cc: var(--no); }
.scale__ends { display: grid; grid-template-columns: 1fr auto 1fr; width: min(100%, 470px); font-size: 13.5px; gap: 6px; }
.scale__ends .mid { color: var(--ink-3); font-weight: 600; } .scale__ends .disagree { text-align: right; }

/* ---- share ---- */
.share__h { font-weight: 700; margin-bottom: 8px; }
.share__row { display: flex; flex-wrap: wrap; gap: 8px; }
.sb { display: inline-flex; align-items: center; border: 0; cursor: pointer; text-decoration: none; font: 700 15px/1 var(--font-body); padding: 11px 16px; border-radius: 999px; color: #fff; background: var(--ink); transition: transform .12s, filter .12s; }
.sb:hover { transform: translateY(-1px); filter: brightness(1.08); }
.sb--fb { background: #1877F2; } .sb--wa { background: #128C4B; } .sb--x { background: #111; } .sb--th { background: #111; } .sb--pi { background: #BD081C; } .sb--rd { background: #D93A00; }
.sb--copy { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); } .sb--native { background: var(--go); }
.sharebox .share { margin-top: 14px; }
.reveal .share__row, .center .share__row { justify-content: center; }

/* ---- results, 16-type report layout ---- */
.reveal__art svg { width: clamp(110px, 26vw, 170px); height: auto; margin-top: 16px; }
.rlayout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; padding-bottom: 40px; }
.onpage { min-width: 0; }
.onpage { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 61px); z-index: 12; background: var(--bg); margin-inline: -16px; padding: 8px 16px; border-bottom: 1px solid var(--line); }
.onpage__card, .onpage__h, .onpage__share { display: none; }
.onpage ol { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.onpage ol::-webkit-scrollbar { display: none; }
.onpage a[data-sec] { display: flex; align-items: center; gap: 7px; white-space: nowrap; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 14.5px; padding: 7px 12px 7px 7px; border-radius: 999px; background: var(--surface); }
.onpage a[data-sec] i { font-style: normal; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--role-tint); color: var(--role); font-size: 13px; font-weight: 800; flex: none; }
.onpage a.on { background: var(--role); color: #fff; } .onpage a.on i { background: #fff; }
.rmain { min-width: 0; max-width: 760px; margin-inline: auto; width: 100%; }
.rintro { margin-top: 28px; } .rintro p { font-size: clamp(19px, 2.8vw, 23px); line-height: 1.55; } .rintro p + p { margin-top: .9em; color: var(--ink-2); }
.rshare-top { margin-top: 22px; padding: 16px 18px; background: var(--surface); border-radius: var(--r-lg); }
.rsec { padding-top: 56px; scroll-margin-top: 130px; }
.rsec h2 { display: flex; align-items: center; gap: 14px; font-size: clamp(27px, 5vw, 40px); font-weight: 800; }
.num { display: grid; place-items: center; width: 1.5em; height: 1.5em; border-radius: 50%; background: var(--role); color: #fff; font-size: .7em; flex: none; }
.rsec__lead { margin-top: 12px; font-size: clamp(17px, 2.3vw, 20px); color: var(--ink-2); line-height: 1.6; }
.rsec h3 { font-size: 21px; margin: 30px 0 12px; display: flex; align-items: center; gap: 10px; }
.rsec h3::before { content: "+"; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--go-tint); color: var(--go-dark); font: 800 20px/1 var(--font-body); flex: none; }
.rsec h3.neg::before { content: "!"; background: #FBE7E3; color: #B4412B; font-size: 17px; }
.swgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.sw { background: var(--surface); border-radius: var(--r); padding: 16px 18px; border-left: 5px solid var(--go); min-width: 0; }
.swgrid.neg .sw { border-left-color: #D9694F; }
.sw b { display: block; font: 800 18px/1.25 var(--font-display); } .sw p { margin-top: 6px; color: var(--ink-2); font-size: 16px; line-height: 1.5; }
.twocol { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 28px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ticks li { position: relative; background: var(--surface); border-radius: 12px; padding: 11px 14px 11px 42px; font-size: 16px; line-height: 1.45; }
.ticks li::before { content: "✓"; position: absolute; left: 14px; top: 10px; color: var(--go); font-weight: 800; }
.ticks.neg li::before { content: "✕"; color: #D9694F; }
.traits { display: grid; gap: 10px; margin-top: 20px; }
.traitwrap { background: var(--surface); border-radius: var(--r-lg); overflow: hidden; }
button.trait { display: block; width: 100%; text-align: left; background: none; border: 0; cursor: pointer; font: inherit; color: inherit; padding: 16px clamp(16px, 3vw, 22px); border-radius: 0; }
button.trait:hover { background: color-mix(in srgb, var(--role-tint) 50%, transparent); }
.trait__top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.trait__top small::after { content: " ▾"; color: var(--ink-3); } button.trait.open .trait__top small::after { content: " ▴"; }
.tbar { display: block; } .tbar__ends { display: flex; }
.trait__more { padding: 0 clamp(16px, 3vw, 22px) 18px; } .trait__more p { color: var(--ink-2); } .trait__more p.why { margin-top: 8px; font-size: 15px; color: var(--ink-3); font-style: italic; }
.next__card em { display: block; font-style: normal; font-weight: 500; opacity: .92; margin-top: 8px; font-size: 16px; line-height: 1.45; }
@media (min-width: 960px) {
  .rlayout { grid-template-columns: minmax(0, 1fr) 280px; gap: 56px; align-items: start; }
  .rmain { order: 1; margin: 0; max-width: none; } .onpage { order: 2; margin: 28px 0 0; padding: 0; border: 0; background: none; top: calc(env(safe-area-inset-top, 0px) + 84px); }
  .onpage__in { background: var(--surface); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow); }
  .onpage__card { display: flex; gap: 12px; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
  .onpage__card svg { width: 58px; height: 58px; display: block; } .onpage__card small { display: block; color: var(--ink-3); font-size: 13px; font-weight: 600; }
  .onpage__card b { display: block; font: 800 21px/1.1 var(--font-display); color: var(--role); } .onpage__card span { font-weight: 700; font-size: 13px; letter-spacing: .08em; }
  .onpage__h { display: block; font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 16px 0 8px; }
  .onpage ol { flex-direction: column; gap: 2px; overflow: visible; } .onpage a[data-sec] { background: none; white-space: normal; }
  .onpage__share { display: flex; margin-top: 14px; }
}

/* ---- chapters: web formatting ---- */
.readbar { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 61px); height: 4px; z-index: 19; margin-bottom: -4px; pointer-events: none; }
.readbar i { display: block; height: 100%; width: 0; background: var(--role); }
.chapter__n span { color: var(--ink-3); font-weight: 600; }
.letters { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 14px 0 0; padding: 0; }
.letters li { background: var(--surface); border-radius: 999px; padding: 4px 12px 4px 4px; font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 7px; }
.letters b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--role); color: #fff; font-size: 13px; }
.inthis { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 22px; }
.inthis span { font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); flex-basis: 100%; }
.inthis a { text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px; font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.inthis a:hover { border-color: var(--role); color: var(--role); }
.prose .lede { font-size: 1.16em; line-height: 1.6; font-weight: 500; }
.prose h2 { scroll-margin-top: 130px; padding-top: 1.1em; border-top: 2px solid var(--line); margin-top: 1.5em; }
.prose h2::before { content: ""; display: block; width: 44px; height: 6px; border-radius: 3px; background: var(--role); margin-bottom: 14px; }
.pull { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 6px solid var(--role); font: 700 clamp(21px, 3.4vw, 27px)/1.3 var(--font-display); color: var(--role); text-wrap: balance; }
.prose ul.cardlist { list-style: none; padding: 0; display: grid; gap: 12px; }
.prose ul.cardlist li { background: var(--surface); border-radius: var(--r); padding: 16px 18px; border-left: 5px solid var(--go); margin: 0; font-size: .95em; line-height: 1.55; }
.prose ul.cardlist.neg li { border-left-color: #D9694F; }
.prose ul.cardlist li strong { display: block; font: 800 1.12em/1.25 var(--font-display); margin-bottom: 4px; }

/* ---- v3 ---- */
@media (min-width: 960px) { .onpage a.on { background: var(--role-tint); color: var(--ink); } .onpage a.on i { background: var(--role); color: #fff; } }
.reveal__role { margin-top: 10px; color: var(--ink-2); font-size: 16px; } .reveal__role b { color: var(--role); }
.dropcap::first-letter { float: left; font: 800 4.1em/.78 var(--font-display); color: var(--role); padding: .08em .1em 0 0; }
.nutbox { background: var(--surface); border-radius: var(--r-lg); padding: clamp(18px, 4vw, 26px); margin: 22px 0; border-top: 6px solid var(--role); box-shadow: var(--shadow); }
.nutbox h2 { font-size: 22px; }
.nut { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; }
.nut li { position: relative; padding-left: 36px; font-size: clamp(17px, 2.4vw, 19px); line-height: 1.45; font-weight: 500; }
.nut li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%; background: var(--role); color: #fff; font-size: 14px; font-weight: 800; display: grid; place-items: center; }
.t-energy { --tc: #2F86C4; } .t-mind { --tc: #D49A1A; } .t-nature { --tc: #1F9160; } .t-tactics { --tc: #7350C9; } .t-identity { --tc: #D2584A; }
button.trait .tbar i { background: var(--tc); } button.trait .trait__top b { color: var(--tc); }
.cmpsel { margin-top: 14px; width: 100%; max-width: 340px; font: 600 17px var(--font-body); padding: 12px 14px; border-radius: 12px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); }
.cmp { display: grid; gap: 10px; margin-top: 14px; } .cmp:empty { display: none; }
.cmp__sum { font: 800 20px var(--font-display); color: var(--ink) !important; }
.cmp__row { background: var(--bg); border-radius: var(--r); padding: 14px 16px; border-left: 5px solid var(--go); }
.cmp__row.diff { border-left-color: var(--sun); }
.cmp__row small { display: block; font-weight: 700; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.cmp__row b { display: block; font: 800 18px var(--font-display); margin-top: 2px; } .cmp__row p { margin-top: 4px; }
.cmp .btn { justify-self: start; }
/* chapter layout with "Explore this type" menu */
.clayout { display: grid; grid-template-columns: minmax(0, 1fr); }
.clayout .chapter { max-width: var(--read); margin-inline: auto; width: 100%; min-width: 0; }
.explore { display: none; }
.chapterend { margin-top: 40px; text-align: center; font-weight: 700; color: var(--ink-3); display: flex; align-items: center; gap: 12px; }
.chapterend::before, .chapterend::after { content: ""; flex: 1; height: 2px; background: var(--line); }
.chapterend span { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--role); color: #fff; font-size: 14px; }
.next { margin-top: 22px; }
.next__card { padding: clamp(22px, 5vw, 34px); box-shadow: 0 10px 30px color-mix(in srgb, var(--role) 35%, transparent); }
.next__card .arrow { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #fff; color: var(--role); font-size: 28px; animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(6px); } }
.nextbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; display: flex; justify-content: center; align-items: center; gap: 14px; background: var(--role); color: #fff; text-decoration: none; font-size: 17px; padding: 14px max(16px, env(safe-area-inset-right, 0px)) calc(14px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); transform: translateY(110%); transition: transform .25s; }
.nextbar.on { transform: none; } .nextbar b { font-weight: 800; }
@media (min-width: 960px) {
  .clayout { grid-template-columns: 250px minmax(0, 1fr); gap: 56px; align-items: start; }
  .clayout .chapter { margin: 0; }
  .stepper { display: none; }
  .explore { display: block; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 84px); margin-top: 44px; }
  .explore h2 { font-size: 19px; margin-bottom: 10px; }
  .explore ol { list-style: none; margin: 0; padding: 0; }
  .explore li + li { border-top: 1px solid var(--line); }
  .explore a:not(.btn) { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 12px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 16px; border-left: 4px solid transparent; }
  .explore a:not(.btn) i { font-style: normal; color: var(--ink-3); }
  .explore a:not(.btn):hover { background: var(--surface); }
  .explore a[aria-current] { background: var(--surface); border-left-color: var(--role); } .explore a[aria-current] i { visibility: hidden; }
  .explore a.read i { visibility: visible; font-size: 0; } .explore a.read i::before { content: "✓"; font-size: 15px; color: var(--role); font-weight: 800; }
  .explore__cta { margin-top: 16px; width: 100%; }
}

/* ---- v4: results parts, trait cards, diagrams, compatibility ---- */
.rbody h2 { font-size: clamp(22px, 3.6vw, 28px); margin: 34px 0 14px; display: flex; align-items: center; gap: 10px; }
.rbody h2.pos::before, .rbody h2.neg::before, .pairpage h2.neg::before { content: "+"; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--go-tint); color: var(--go-dark); font: 800 20px/1 var(--font-body); flex: none; }
.rbody h2.neg::before, .pairpage h2.neg::before { content: "!"; background: #FBE7E3; color: #B4412B; font-size: 17px; }
.rbody .lede { font-size: clamp(18px, 2.6vw, 21px); line-height: 1.6; margin-top: 22px; }
.rbody .nutbox h2 { margin: 0; display: block; font-size: 22px; }
.rbody .box h2 { margin: 0; display: block; }
.tiles { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; margin-top: 22px; }
.tile { flex: 1 1 60px; min-width: 58px; text-decoration: none; background: var(--surface); border-radius: var(--r); padding: 12px 6px 10px; text-align: center; border-bottom: 5px solid var(--tc); color: var(--ink); }
.tile b { display: block; font: 800 clamp(28px, 7vw, 40px)/1 var(--font-display); color: var(--tc); } .tile span { display: block; font-size: 12.5px; font-weight: 700; margin-top: 6px; }
.tiles__dash { align-self: center; font: 800 26px var(--font-display); color: var(--ink-3); }
.tiles__cap { margin-top: 12px; color: var(--ink-2); }
.trc { background: var(--surface); border-radius: var(--r-lg); padding: clamp(18px, 4vw, 26px); margin-top: 16px; border-left: 6px solid var(--tc); scroll-margin-top: 140px; }
.trc__q { font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.trc__head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.trc__letter { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--tc); color: #fff; font: 800 26px var(--font-display); flex: none; }
.trc h3 { font-size: clamp(24px, 4.6vw, 32px); font-weight: 800; }
.trc__lvl { background: color-mix(in srgb, var(--tc) 14%, #fff); color: var(--ink); font-weight: 700; font-size: 14px; padding: 5px 12px; border-radius: 999px; }
.meter { position: relative; height: 12px; border-radius: 999px; margin: 20px 9px 6px; background: linear-gradient(90deg, color-mix(in srgb, var(--tc) 55%, #fff), var(--bg) 50%, color-mix(in srgb, var(--tc) 55%, #fff)); }
.meter::before { content: ""; position: absolute; left: 50%; top: -4px; bottom: -4px; width: 2px; background: var(--ink-3); opacity: .45; }
.meter i { position: absolute; top: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; background: var(--tc); border: 4px solid #fff; box-shadow: 0 2px 8px rgba(26,29,58,.3); transition: left .9s cubic-bezier(.2,.9,.3,1); }
.meter__ends { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; color: var(--ink-3); } .meter__ends .on { color: var(--ink); font-weight: 800; }
.trc__p { margin-top: 14px; font-size: clamp(17px, 2.4vw, 19px); line-height: 1.55; }
.trc__why { margin-top: 10px; padding: 10px 14px; background: var(--bg); border-radius: 12px; font-size: 15.5px; color: var(--ink-2); }
.trc__alt { margin-top: 10px; font-size: 14px; color: var(--ink-3); }
.crumbs { font-size: 14px; color: var(--ink-3); margin-bottom: 14px; display: flex; flex-wrap: wrap; gap: 6px; } .crumbs a { color: var(--ink-2); }
.gl, .tm, .md { margin: 26px 0 0; background: var(--surface); border-radius: var(--r-lg); padding: clamp(16px, 3.6vw, 24px); }
.gl figcaption, .tm figcaption, .md figcaption { font: 800 19px/1.3 var(--font-display); margin-bottom: 14px; }
.gl__row + .gl__row { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.gl__q { font-weight: 700; font-size: 13px; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }
.gl__seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; }
.gl__seg span { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 12px; background: var(--bg); color: var(--ink-3); font-weight: 600; font-size: 15px; min-width: 0; }
.gl__seg b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--line); color: var(--ink-3); font-size: 14px; flex: none; }
.gl__seg span.on { background: color-mix(in srgb, var(--tc) 14%, #fff); color: var(--ink); font-weight: 800; box-shadow: inset 0 0 0 2px var(--tc); } .gl__seg span.on b { background: var(--tc); color: #fff; }
.gl__d { margin-top: 8px; color: var(--ink-2); font-size: 16px; }
.tm { margin-top: 36px; } .tm figcaption { font-weight: 700; font-family: var(--font-body); font-size: 16px; }
.tm__row { display: grid; grid-template-columns: 84px repeat(4, minmax(0, 1fr)); gap: 6px; align-items: stretch; margin-top: 6px; }
.tm__row > span { font-weight: 800; font-size: 13px; color: var(--role); align-self: center; }
.tm__row a { text-decoration: none; background: var(--role-tint); color: var(--ink-2); border-radius: 10px; padding: 8px 4px; text-align: center; font-size: 11.5px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; }
.tm__row a b { display: block; font-size: 14px; color: var(--role); letter-spacing: .04em; }
.tm__row a.on { background: var(--role); color: #fff; box-shadow: 0 4px 14px color-mix(in srgb, var(--role) 45%, transparent); } .tm__row a.on b { color: #fff; }
@media (max-width: 520px) { .tm__row { grid-template-columns: repeat(4, minmax(0, 1fr)); } .tm__row > span { grid-column: 1 / -1; margin-top: 6px; } }
.compat { margin-top: 36px; } .compat h2 { font-size: 24px; } .compat p { color: var(--ink-2); margin-top: 6px; }
.compat__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 8px; margin-top: 14px; }
.compat__grid a { text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; font-size: 13.5px; color: var(--ink-2); }
.compat__grid a b { display: block; color: var(--ink); font-size: 15px; } .compat__grid a:hover { border-color: var(--go); }
.vs { background: var(--surface); border-bottom: 1px solid var(--line); padding-block: 22px 30px; text-align: center; }
.vs .crumbs { justify-content: center; }
.vs__pair { display: flex; justify-content: center; align-items: center; gap: clamp(10px, 4vw, 34px); margin-top: 8px; }
.vs__t { position: relative; text-decoration: none; color: var(--ink); background: var(--role-tint); border-radius: var(--r-lg); padding: 16px clamp(12px, 3vw, 26px); min-width: 0; flex: 0 1 220px; }
.vs__t svg { width: clamp(64px, 16vw, 110px); height: auto; display: block; margin: 0 auto 6px; }
.vs__t b { display: block; font: 800 clamp(18px, 4vw, 26px)/1.1 var(--font-display); color: var(--role); } .vs__t span { font-weight: 800; letter-spacing: .1em; font-size: 14px; }
.vs__and { font: 800 clamp(30px, 6vw, 48px) var(--font-display); color: var(--ink-3); }
.vs h1 { font-size: clamp(28px, 5.6vw, 46px); font-weight: 800; margin-top: 20px; }
.vs__sub { max-width: 40em; margin: 10px auto 0; color: var(--ink-2); font-size: clamp(17px, 2.4vw, 19px); }
.vs__meta { margin-top: 12px; display: inline-block; background: var(--sun); border-radius: 999px; padding: 5px 14px; font-weight: 600; }
.youtag { position: absolute; top: -10px; right: -6px; background: var(--ink); color: #fff !important; font-size: 12px !important; font-weight: 700; padding: 4px 10px; border-radius: 999px; letter-spacing: 0 !important; }
.side .youtag { position: static; display: inline-block; margin: 0 0 8px; }
.pairpage { font-size: clamp(17px, 2.2vw, 19px); line-height: 1.65; padding-bottom: 20px; }
.pairpage > h2 { font-size: clamp(24px, 4vw, 32px); margin: 44px 0 12px; display: flex; gap: 10px; align-items: center; }
.pairpage > p + p { margin-top: 1em; }
.answer { background: var(--surface); border-radius: var(--r-lg); padding: clamp(18px, 4vw, 26px); margin-top: 26px; border-top: 6px solid var(--go); box-shadow: var(--shadow); }
.answer h2 { font-size: 21px; margin-bottom: 8px; } .answer p + p { margin-top: .8em; }
.md__row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 6px 10px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.md__l { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; min-width: 0; } .md__l:last-of-type { justify-content: flex-end; flex-direction: row-reverse; }
.md__l b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--tc); color: #fff; font: 800 18px var(--font-display); flex: none; }
.md__m { text-align: center; font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }
.md__m i { display: block; font-style: normal; letter-spacing: 0; text-transform: none; font-size: 13px; margin-top: 3px; padding: 3px 10px; border-radius: 999px; background: var(--go-tint); color: var(--go-dark); }
.md__row.diff .md__m i { background: #FFF1CC; color: #7A5A00; }
.md__row p { grid-column: 1 / -1; font-size: 16px; color: var(--ink-2); line-height: 1.5; }
.sides { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.side { background: var(--role-tint); border-radius: var(--r-lg); padding: clamp(16px, 3.6vw, 24px); min-width: 0; }
.side h3 { font-size: 20px; color: var(--role); margin-bottom: 8px; } .side p { font-size: 17px; line-height: 1.6; } .side p + p { margin-top: .8em; }
.scenes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.scene { background: var(--surface); border-radius: var(--r-lg); padding: 18px 20px; min-width: 0; }
.scene small { display: inline-block; background: var(--sun); border-radius: 999px; padding: 3px 10px; font-weight: 700; font-size: 12.5px; }
.scene b { display: block; font: 800 20px/1.25 var(--font-display); margin: 8px 0 6px; } .scene p { font-size: 16.5px; line-height: 1.55; color: var(--ink-2); }
.says { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.says li { background: var(--go-tint); border-radius: 18px 18px 18px 4px; padding: 12px 16px; font-weight: 600; max-width: 34em; }
.asks { padding-left: 1.3em; display: grid; gap: 8px; }
.faq details { background: var(--surface); border-radius: var(--r); padding: 14px 18px; margin-top: 8px; }
.faq summary { font-weight: 700; cursor: pointer; } .faq details p { margin-top: 10px; color: var(--ink-2); font-size: 17px; }
.picker select { font: 600 17px var(--font-body); padding: 12px 14px; border-radius: 12px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); max-width: 100%; }
.matrix { border-collapse: separate; border-spacing: 3px; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.matrix th { font-weight: 800; padding: 2px 4px; white-space: nowrap; } .matrix th a { color: var(--ink); text-decoration: none; }
.matrix thead th { writing-mode: vertical-rl; transform: rotate(180deg); padding: 6px 2px; }
.matrix td a { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; text-decoration: none; font-weight: 800; color: var(--ink); }
.matrix td.s0 a { background: #EEF0F6; color: var(--ink-3); } .matrix td.s1 a { background: #D7EFE5; } .matrix td.s2 a { background: #A9DFC8; } .matrix td.s3 a { background: #57BE97; color: #fff; } .matrix td.s4 a { background: var(--go-dark); color: #fff; }
.matrix td a:hover { outline: 3px solid var(--ink); }

.tile span { font-size: 11.5px; overflow-wrap: anywhere; }

/* ---- v5: unmistakable continue ---- */
.next { margin-top: 18px; }
.next__card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 24px; padding: clamp(22px, 5vw, 34px); border-radius: var(--r-lg); cursor: pointer; position: relative; overflow: hidden; }
.next__card > span:first-child { flex: 1 1 260px; min-width: 0; }
.next__card small { text-transform: uppercase; letter-spacing: .08em; font-size: 13px; font-weight: 700; opacity: .9; }
.next__card b { font-size: clamp(26px, 5.4vw, 38px); margin-top: 6px; }
.next__card span.arrow { all: unset; flex: 1 1 100%; display: flex; align-items: center; justify-content: center; gap: 12px; background: #fff; color: var(--ink); border-radius: 999px; padding: 18px 28px; font: 800 20px/1 var(--font-body); font-size: 0; box-shadow: 0 6px 0 rgba(0,0,0,.18); transition: transform .12s, box-shadow .12s; animation: none; }
.next__card span.arrow::before { content: "Continue"; font-size: 20px; }
.next__card span.arrow::after { content: "→"; font-size: 24px; animation: nudge 1.3s ease-in-out infinite; }
.next__card:hover { transform: none; } .next__card:hover span.arrow { transform: translateY(-2px); box-shadow: 0 8px 0 rgba(0,0,0,.18); }
.next__card:active span.arrow { transform: translateY(4px); box-shadow: 0 2px 0 rgba(0,0,0,.18); }
.next__card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.16) 50%, transparent 60%); transform: translateX(-100%); animation: sheen 3.2s ease-in-out infinite; pointer-events: none; }
@keyframes sheen { 60%, 100% { transform: translateX(100%); } }
@media (min-width: 700px) { .next__card span.arrow { flex: 0 0 auto; padding: 20px 36px; } }
.next__back { display: inline-block; margin-top: 6px; }
@media (hover: hover) and (min-width: 960px) { .next::after { content: "Tip: press the → key to continue"; display: block; margin-top: 10px; font-size: 13.5px; color: var(--ink-3); text-align: center; } }
.nextbar { font-weight: 600; font-size: 18px; padding-block: 16px; }
.nextbar.on { box-shadow: 0 -6px 24px rgba(26,29,58,.18); }
.nextbar span:last-child { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--role); font-weight: 800; animation: nudge 1.3s ease-in-out infinite; }
.chapterend { margin-top: 44px; }
#next.btn { box-shadow: 0 5px 0 var(--go-dark); } #next.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--go-dark); }
/* summary first */
.reveal--tight { padding-block: clamp(18px, 4vw, 34px); }
.reveal--tight .reveal__name { font-size: clamp(44px, 11vw, 88px); }
.reveal--tight .reveal__art svg { width: clamp(72px, 16vw, 110px); margin-top: 10px; }
.reveal--tight .reveal__desc { margin-top: 10px; }
.nutbox--first { margin-top: 0; } .chapter > .nutbox, .chapter > .shortv { margin-top: 20px; }
.shortv { background: var(--surface); border-radius: var(--r-lg); padding: clamp(18px, 4vw, 26px); border-top: 6px solid var(--role); box-shadow: var(--shadow); }
.shortv h2 { font-size: 22px; } .shortv h3 { font-size: 17px; margin: 14px 0 8px; } .shortv h3.pos { color: var(--go-dark); } .shortv h3.neg { color: #B4412B; }
.shortv .ticks li { background: var(--bg); padding-block: 8px; font-weight: 600; }
.quick { margin-top: 20px; background: var(--surface); border-radius: 12px; padding: 12px 16px; font-size: 16px; border-left: 5px solid var(--go); }

@media (max-width: 520px) { .reveal--tight .reveal__art svg { width: 60px; } .reveal--tight .reveal__role { display: none; } }
@media (max-width: 700px) { body[data-ch]:not([data-ch="0"]) .thero__line, body[data-ch]:not([data-ch="0"]) .letters { display: none; } body[data-ch]:not([data-ch="0"]) .thero__in { padding-block: 12px; } body[data-ch]:not([data-ch="0"]) .thero svg { width: 56px; } }

/* ---- v6: compact share ---- */
.sharec { margin-top: 16px; }
.sharec__btn { display: inline-flex; align-items: center; gap: 8px; background: none; border: 2px solid var(--line); border-radius: 999px; padding: 9px 16px; font: 700 15px var(--font-body); color: var(--ink-2); cursor: pointer; }
.sharec__btn:hover { border-color: var(--role); color: var(--role); }
.sharec .share__row { margin-top: 10px; }
.sharemini { margin-top: 26px; text-align: center; } .sharemini .share__row { justify-content: center; }
.sharebox .sharec__btn { background: var(--go); border-color: var(--go); color: #fff; font-size: 16px; padding: 12px 20px; }

/* ---- v7: share rows back, out of the Continue path ---- */
.share--sm .share__row { gap: 6px; } .share--sm .sb { font-size: 13px; padding: 8px 12px; } .share--sm .share__h { font-size: 15px; margin-bottom: 8px; }
.nutbox .share { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.sharemid { margin: 1.8em 0; padding: 14px 16px; background: var(--surface); border-radius: var(--r-lg); }
.explore__share { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.explore a.sb { display: inline-flex; padding: 6px 10px; font-size: 12.5px; font-weight: 700; color: #fff; border-left: 0; } .explore a.sb:hover { background: var(--ink); }
.explore a.sb--fb, .explore a.sb--fb:hover { background: #1877F2; } .explore a.sb--wa, .explore a.sb--wa:hover { background: #128C4B; } .explore a.sb--x, .explore a.sb--th, .explore a.sb--x:hover, .explore a.sb--th:hover { background: #111; } .explore a.sb--pi, .explore a.sb--pi:hover { background: #BD081C; } .explore a.sb--rd, .explore a.sb--rd:hover { background: #D93A00; }
.explore .sb { padding: 6px 10px; font-size: 12.5px; } .explore .share__row { gap: 5px; }
@media (min-width: 900px) { .explore__in { max-height: calc(100vh - 100px); overflow-y: auto; scrollbar-width: thin; } }
.sharemid a.sb { color: #fff !important; text-decoration: none !important; }
