/* CANA School: deep burgundy on light ivory (Styleguide 2026). Every neutral is a mix of the two. */
:root {
  --burgundy: #471224;
  --ivory: #fef0d5;
  --bg: #fff9ee;
  --paper: var(--ivory);
  --well: color-mix(in oklab, var(--burgundy) 7%, var(--ivory));
  --line: color-mix(in oklab, var(--burgundy) 13%, var(--ivory));
  --line-2: color-mix(in oklab, var(--burgundy) 24%, var(--ivory));
  --mute-2: color-mix(in oklab, var(--burgundy) 52%, var(--ivory));
  --mute: color-mix(in oklab, var(--burgundy) 72%, var(--ivory));
  --ink-2: color-mix(in oklab, var(--burgundy) 86%, var(--ivory));
  --ink: var(--burgundy);
  --ink-hover: color-mix(in oklab, var(--burgundy) 86%, var(--ivory));
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --fast: 150ms;
  --base: 180ms;
  --slow: 240ms;
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 14px;
  --r-xl: 22px;
  --shadow-sm: 0 1px 2px rgb(71 18 36 / 0.04), 0 1px 1px rgb(71 18 36 / 0.03);
  --shadow: 0 4px 16px rgb(71 18 36 / 0.06), 0 1.5px 6px rgb(71 18 36 / 0.04);
  --hatch: repeating-linear-gradient(-45deg, var(--ink) 0 1.5px, transparent 1.5px 5px);
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  /* The brand heading face is Roca One (commercial, not on Google Fonts); Literata stands in until its webfont is licensed. */
  --display: 'Roca One', 'Literata', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 120px; }
body {
  margin: 0;
  font: 400 15px/1.55 var(--font);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}
h1, h2, h3 { margin: 0; text-wrap: balance; font-weight: 600; }
h1, h2 { font-family: var(--display); font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
img, svg { display: block; }
/* Figures that sit in columns or tick over keep a fixed width */
.num, .prog-head, .type-row .sc, .trait .hd span b, .pcard .fit, .slider .hd b, .rank b, .gap .d, .val b, .eitem .hd span, .chart text, .radar .num { font-variant-numeric: tabular-nums; }
.kicker { font: 600 11px/1.2 var(--font); letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); }
.muted { color: var(--mute); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 30; background: var(--ink); color: var(--ivory); padding: 8px 12px; border-radius: var(--r-sm); }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.drench .top :focus-visible, .hero :focus-visible, .dark :focus-visible, .pcard[data-top] :focus-visible { outline-color: var(--ivory); }

/* Brand */
/* Seal and wordmark are single-colour SVGs used as masks, so they take the surrounding text colour. */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.brand i { display: block; flex: none; background: currentColor; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.brand-seal { --m: url(/brand/seal.svg); width: 38px; height: 38px; }
.brand-word { --m: url(/brand/wordmark.svg); width: 62px; height: 24px; }

/* Buttons */
.btn {
  --h: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 18px; border-radius: var(--r);
  border: 1px solid var(--ink); background: var(--ink); color: var(--ivory);
  font-weight: 550; font-size: 15px; text-decoration: none; white-space: nowrap;
  box-shadow: inset 0 1px 0 rgb(254 240 213 / 0.14), 0 1px 2px rgb(71 18 36 / 0.14), 0 2px 4px -2px rgb(71 18 36 / 0.18);
  transition: transform var(--fast) var(--ease), background-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease), opacity var(--fast);
}
.btn:active { transform: scale(0.97); box-shadow: inset 0 1px 2px rgb(71 18 36 / 0.3); }
.btn[disabled], .btn[aria-disabled='true'] { opacity: 0.35; cursor: not-allowed; transform: none; }
.btn-ghost { background: var(--bg); color: var(--ink); border-color: var(--line-2); box-shadow: inset 0 1px 0 var(--ivory), 0 1px 2px -1px rgb(71 18 36 / 0.1); }
.btn-text { background: none; border-color: transparent; color: var(--ink-2); box-shadow: none; padding: 0 10px; }
.btn-sm { --h: 34px; padding: 0 12px; font-size: 13.5px; border-radius: 8px; }
.btn-lg { --h: 52px; padding: 0 24px; font-size: 16px; }
.btn-block { width: 100%; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--ink-hover); }
  .btn-ghost:hover { background: var(--well); border-color: var(--mute-2); }
  .btn-text:hover { background: var(--well); }
}
.btn svg { width: 16px; height: 16px; }
/* Label that rolls when it changes (Share -> Copied) */
.roll { display: inline-grid; overflow: hidden; }
.roll > span { grid-area: 1 / 1; transition: transform var(--base) var(--ease), opacity var(--base) var(--ease); }
.roll > span[aria-hidden='true'] { transform: translateY(100%); opacity: 0; }
.roll.on > span:first-child { transform: translateY(-100%); opacity: 0; }
.roll.on > span:last-child { transform: none; opacity: 1; }

/* Segmented control with a sliding indicator */
.seg { position: relative; display: inline-flex; padding: 3px; gap: 2px; background: var(--well); border-radius: 10px; isolation: isolate; }
.seg button {
  position: relative; border: 0; background: none; height: 32px; padding: 0 12px; border-radius: 7px;
  font-size: 13.5px; font-weight: 500; color: var(--mute); white-space: nowrap;
  transition: color var(--base) var(--ease);
}
.seg button[aria-pressed='true'] { color: var(--ink); }
.seg::before {
  content: ''; position: absolute; z-index: -1; top: 3px; bottom: 3px; left: 0;
  width: var(--w, 0); transform: translateX(var(--x, 0)); border-radius: 7px;
  background: var(--bg); box-shadow: var(--shadow-sm), 0 0 0 1px rgb(71 18 36 / 0.04);
  transition: transform var(--slow) var(--ease), width var(--slow) var(--ease);
}
.seg.no-anim::before { transition: none; }
.sec-tools .seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.sec-tools .seg::-webkit-scrollbar { display: none; }
.seg-dark { background: rgb(254 240 213 / 0.08); }
.seg-dark button { color: rgb(254 240 213 / 0.55); }
.seg-dark button[aria-pressed='true'] { color: var(--ink); }
.seg-dark::before { background: var(--ivory); }
[data-lang-switch] button { height: 28px; padding: 0 9px; font: 500 12px var(--font); letter-spacing: 0.04em; }

/* Fields */
.field { display: grid; gap: 6px; }
.field label { font-size: 13.5px; font-weight: 550; }
.input {
  height: 48px; width: 100%; padding: 0 14px; border-radius: var(--r);
  border: 1px solid var(--line-2); background: var(--bg);
  transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgb(71 18 36 / 0.08); }
select.input {
  appearance: none; padding-right: 40px;
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23471224' stroke-width='1.5'%3E%3Cpath d='m3 4.5 3 3 3-3'/%3E%3C/svg%3E") no-repeat right 14px center;
}
.field[data-invalid] .input { border-color: var(--ink); border-style: dashed; }
.field .err { font-size: 12.5px; color: var(--ink); display: none; }
.field[data-invalid] .err { display: block; }
.field .err::before { content: '× '; font-weight: 700; }

/* Generic surfaces */
.panel { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 28px; }
.well { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; }
.dark { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.dark .muted, .dark .kicker { color: rgb(254 240 213 / 0.55); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line-2); font-size: 13px; background: var(--bg); white-space: nowrap; }
.dark .chip, .hero .chip { background: rgb(254 240 213 / 0.06); border-color: rgb(254 240 213 / 0.16); color: var(--ivory); }
.flat { margin-top: 22px; padding: 12px 14px; border: 1px dashed rgb(254 240 213 / 0.3); border-radius: 12px; font-size: 13.5px; color: rgb(254 240 213 / 0.75); max-width: 62ch; }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 7px; border-radius: 6px; font: 500 11.5px/1 var(--font); border: 1px solid var(--line-2); color: var(--ink-2); white-space: nowrap; }
.tag-solid { background: var(--ink); border-color: var(--ink); color: var(--ivory); }
.tag-dash { border-style: dashed; color: var(--mute); }
.tag-mono { font-family: var(--font); letter-spacing: 0.04em; }
.bar { height: 6px; border-radius: 99px; background: var(--well); overflow: hidden; position: relative; }
.bar > i { position: absolute; inset: 0 auto 0 0; width: var(--v); background: var(--ink); border-radius: inherit; }
.bar.soft > i { background: var(--mute-2); }

/* Site header (landing, results) */
.top { position: sticky; top: 0; z-index: 20; background: rgb(254 240 213 / 0.86); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.top-in { max-width: 1120px; margin: 0 auto; padding: 0 20px; height: 60px; display: flex; align-items: center; gap: 14px; }
.top-in .spacer { flex: 1; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---------- Landing ---------- */
/* Key visual from the styleguide: burgundy field, light rays, the form framed by an arch. */
body.drench { background: var(--ink); color: var(--ivory); }
.drench .top { position: static; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom-color: rgb(254 240 213 / 0.12); }
.drench .brand { color: var(--ivory); }
.drench .top .btn-text { color: rgb(254 240 213 / 0.8); }
.drench .top .seg { background: rgb(254 240 213 / 0.08); }
.drench .top .seg button { color: rgb(254 240 213 / 0.55); }
.drench .top .seg button[aria-pressed='true'] { color: var(--ink); }
.drench .top .seg::before { background: var(--ivory); box-shadow: none; }
@media (hover: hover) and (pointer: fine) { .drench .top .btn-text:hover { background: rgb(254 240 213 / 0.08); color: var(--ivory); } }
.drench .solo { position: relative; isolation: isolate; overflow: hidden; }
.drench .solo::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: repeating-conic-gradient(from 0deg at 50% 46%, rgb(254 240 213 / 0.09) 0 0.25deg, transparent 0.25deg 3.6deg);
  -webkit-mask: radial-gradient(circle at 50% 46%, transparent 220px, #000 380px); mask: radial-gradient(circle at 50% 46%, transparent 220px, #000 380px);
}
.drench .form { color: var(--ink); border: 0; border-radius: 240px 240px 22px 22px; padding: 44px 32px 32px; position: relative; box-shadow: 0 30px 60px -30px rgb(20 4 10 / 0.6); }
.drench .form::before { content: ''; position: absolute; inset: 8px; border: 1px solid var(--line-2); border-radius: 232px 232px 15px 15px; pointer-events: none; }
.form-seal { width: 64px; height: 64px; margin: 0 auto 2px; background: var(--ink); -webkit-mask: url(/brand/seal.svg) center / contain no-repeat; mask: url(/brand/seal.svg) center / contain no-repeat; }
.drench .form h1 { text-align: center; padding: 0 12px; }
.solo { min-height: calc(100dvh - 61px); display: grid; place-items: center; padding: 32px 16px 56px; }
.form { width: min(440px, 100%); display: grid; gap: 16px; box-shadow: var(--shadow); }
.form h1 { font-size: 26px; line-height: 1.15; }
.form .note { font-size: 13px; color: var(--mute); }
.resume { display: grid; gap: 8px; padding: 14px; border-radius: var(--r-lg); background: var(--paper); border: 1px dashed var(--line-2); }
.resume p { font-size: 13.5px; }
/* "About the test": a native popover hanging from the header button */
.about {
  position: fixed; inset: 68px max(16px, calc((100vw - 1120px) / 2 + 20px)) auto auto; margin: 0;
  width: min(420px, calc(100vw - 32px)); max-height: calc(100dvh - 84px); overflow-y: auto;
  padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--bg); color: var(--ink);
  box-shadow: 0 1px 2px rgb(71 18 36 / 0.03), 0 6px 16px -8px rgb(71 18 36 / 0.1), 0 16px 32px -16px rgb(71 18 36 / 0.08);
  transform-origin: top right; opacity: 0; transform: translateY(-4px) scale(0.98);
  transition: opacity var(--fast) var(--ease), transform var(--fast) var(--ease), overlay var(--fast) allow-discrete, display var(--fast) allow-discrete;
}
.about:popover-open { opacity: 1; transform: none; }
@starting-style { .about:popover-open { opacity: 0; transform: translateY(-4px) scale(0.98); } }
.about > * + * { margin-top: 12px; }
.about h2 { font-size: 21px; line-height: 1.2; }
.about .muted { font-size: 14px; }
.about h3 { margin-top: 22px; }
.about ol { list-style: none; margin: 8px 0 0; padding: 0; }
.about .parts li { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.about .parts li:first-child { border-top: 1px solid var(--line); }
.about .parts b { font-weight: 550; }
.about .parts small { font: 500 12px var(--font); color: var(--mute); }
.about .gets { display: grid; gap: 8px; }
.about .gets li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: baseline; font-size: 14px; }
.about li > span:first-child { font: 500 12px var(--font); color: var(--mute-2); }
.about .fine { margin-top: 20px; }

/* ---------- Test ---------- */
.quiz { min-height: 100dvh; display: grid; grid-template-rows: auto auto 1fr auto; background: var(--bg); }
.quiz .top { position: static; background: var(--bg); }
.prog { max-width: 760px; width: 100%; margin: 0 auto; padding: 18px 20px 0; }
.prog-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; font-size: 13px; color: var(--mute); }
.prog-head b { color: var(--ink); font-weight: 600; }
.prog-segs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.prog-seg { display: grid; gap: 7px; min-width: 0; }
.prog-seg .bar { height: 4px; }
.prog-seg .bar > i { transition: width var(--slow) var(--ease); }
.prog-seg span { font-size: 11.5px; color: var(--mute-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color var(--base); }
.prog-seg[data-state='current'] span { color: var(--ink); font-weight: 550; }
.prog-seg[data-state='done'] span { color: var(--mute); }
.stage { max-width: 760px; width: 100%; margin: 0 auto; padding: 32px 20px; display: grid; align-content: center; }
.q { display: grid; gap: 22px; text-align: center; }
.q-enter { animation: q-in var(--base) var(--ease); }
@keyframes q-in { from { opacity: 0; transform: translateY(8px); } }
.q .ask { color: var(--mute); font-size: 15px; }
.q h1 { font-size: clamp(22px, 3.4vw, 32px); line-height: 1.2; font-weight: 600; min-height: 2.4em; display: grid; place-items: center; }
.q .sub { color: var(--mute); font-size: 14.5px; margin-top: -10px; }
.scale { display: grid; gap: 10px; margin-top: 6px; }
.scale-ends { display: flex; justify-content: space-between; font-size: 13px; color: var(--mute); }
.scale-btns { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.scale-btns button {
  height: 60px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg);
  font: 600 18px var(--font); color: var(--ink-2);
  transition: transform var(--fast) var(--ease), background-color var(--fast) var(--ease), border-color var(--fast) var(--ease), color var(--fast);
}
.scale-btns button:active { transform: scale(0.96); }
.scale-btns button[aria-pressed='true'] { background: var(--ink); border-color: var(--ink); color: var(--ivory); }
@media (hover: hover) and (pointer: fine) { .scale-btns button:hover:not([aria-pressed='true']) { border-color: var(--ink); background: var(--paper); } }
.opts { display: grid; gap: 10px; text-align: left; }
.opts button {
  display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; padding: 14px 16px;
  border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg); text-align: left; font-size: 15px; line-height: 1.45;
  transition: transform var(--fast) var(--ease), background-color var(--fast) var(--ease), border-color var(--fast) var(--ease), color var(--fast);
}
.opts button:active { transform: scale(0.98); }
.opts button span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; border: 1px solid var(--line-2); font: 600 12.5px var(--font); }
.opts button[aria-pressed='true'] { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.opts button[aria-pressed='true'] span { border-color: rgb(254 240 213 / 0.4); }
@media (hover: hover) and (pointer: fine) { .opts button:hover:not([aria-pressed='true']) { border-color: var(--ink); background: var(--paper); } }
.q-situation { font-size: clamp(18px, 2.4vw, 22px) !important; line-height: 1.4 !important; min-height: 0 !important; text-align: left; place-items: start !important; }
.intro { text-align: left; display: grid; gap: 18px; max-width: 560px; margin: 0 auto; }
.intro .n { font: 500 72px/1 var(--display); color: var(--line-2); }
.intro h1 { font-size: clamp(30px, 4.6vw, 44px); line-height: 1.05; }
.intro p { font-size: 17px; color: var(--ink-2); }
.intro .meta { display: flex; gap: 8px; flex-wrap: wrap; }
.quiz-foot { max-width: 760px; width: 100%; margin: 0 auto; padding: 0 20px 22px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; }
.quiz-foot .hint { text-align: center; font-size: 12.5px; color: var(--mute-2); }
.sending { text-align: center; display: grid; gap: 14px; justify-items: center; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--ink); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Results ---------- */
.rtop .who { font-size: 13.5px; color: var(--mute); padding-left: 14px; border-left: 1px solid var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.snav { border-top: 1px solid var(--line); }
.snav ol { list-style: none; margin: 0 auto; padding: 0 20px; max-width: 1120px; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.snav ol::-webkit-scrollbar { display: none; }
.snav a { display: flex; gap: 7px; align-items: center; height: 42px; padding: 0 10px; text-decoration: none; font-size: 13.5px; color: var(--mute); white-space: nowrap; position: relative; transition: color var(--base) var(--ease); }
.snav a span { font: 500 11px var(--font); color: var(--mute-2); }
.snav a::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; background: var(--ink); transform: scaleX(0); transition: transform var(--slow) var(--ease); }
.snav a[aria-current='true'] { color: var(--ink); }
.snav a[aria-current='true']::after { transform: none; }
.banner { background: var(--ink); color: var(--ivory); font-size: 13.5px; text-align: center; padding: 10px 20px; }
.banner a { color: var(--ivory); font-weight: 600; }
.report { padding: 28px 0 80px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 88px; }
.report > section, .panel { min-width: 0; }
.hero { border-radius: 28px; padding: clamp(24px, 4vw, 48px); background: var(--ink); color: var(--ivory); display: grid; gap: 36px; position: relative; overflow: hidden; }
/* The seal as a faint watermark, as on the styleguide covers */
.hero::before { content: ''; position: absolute; width: 620px; aspect-ratio: 1; right: -170px; top: -150px; background: rgb(254 240 213 / 0.045); -webkit-mask: url(/brand/seal.svg) center / contain no-repeat; mask: url(/brand/seal.svg) center / contain no-repeat; pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1fr 300px; gap: 40px; position: relative; }
.hero h1 { font-size: 18px; font-weight: 500; color: rgb(254 240 213 / 0.7); letter-spacing: -0.01em; }
.hero .arch { font: 800 clamp(40px, 6.4vw, 76px)/1 var(--display); letter-spacing: -0.01em; margin: 10px 0 22px; }
.hero .text { font-size: 16.5px; line-height: 1.6; color: rgb(254 240 213 / 0.82); max-width: 58ch; }
.hero .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.stats { display: grid; gap: 10px; align-content: start; }
.stat { border: 1px solid rgb(254 240 213 / 0.14); border-radius: 16px; padding: 16px 18px; background: rgb(254 240 213 / 0.03); }
.stat .v { font: 700 30px/1.15 var(--display); letter-spacing: -0.01em; margin-top: 6px; }
.stat .v.code { letter-spacing: 0.04em; }
.stat .s { font-size: 13px; color: rgb(254 240 213 / 0.6); margin-top: 2px; }
.stat.invert { background: var(--ivory); color: var(--ink); }
.stat.invert .s, .stat.invert .kicker { color: var(--mute); }
.hero-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 20px; border-top: 1px solid rgb(254 240 213 / 0.12); font-size: 13px; color: rgb(254 240 213 / 0.55); position: relative; }
.hero-foot .mono { color: rgb(254 240 213 / 0.75); }

.sec-head { display: grid; grid-template-columns: 96px 1fr; gap: 8px; align-items: end; margin-bottom: 24px; }
.sec-head .n { font: 500 56px/0.85 var(--display); letter-spacing: -0.02em; color: var(--line-2); }
.sec-head h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.05; }
.sec-head p { color: var(--mute); margin-top: 6px; }
.sec-tools { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }

/* Interests */
.int-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.radar { width: 100%; max-width: 420px; margin: 0 auto; overflow: visible; }
.radar text { font: 600 13px var(--font); fill: var(--ink); }
.radar .num { font: 500 11px var(--font); fill: var(--mute); }
.types { display: grid; gap: 4px; }
.type-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; }
.type-row .l { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; font: 600 14px var(--font); border: 1px solid var(--line-2); }
.type-row[data-rank='0'] .l { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.type-row[data-rank='1'] .l { background: var(--well); border-color: var(--ink); }
.type-row[data-rank='2'] .l { border-color: var(--ink); border-style: dashed; }
.type-row .nm { display: flex; justify-content: space-between; gap: 8px; font-size: 14.5px; font-weight: 550; margin-bottom: 6px; }
.type-row .nm small { font-weight: 400; color: var(--mute); font-size: 12.5px; }
.type-row .sc { font: 600 15px var(--font); min-width: 52px; text-align: right; }
.type-row .sc small { color: var(--mute-2); font-weight: 400; }
.type-row[data-rank='0'] { background: var(--paper); }
.type-row .bar > i { background: var(--mute-2); }
.type-row[data-rank='0'] .bar > i, .type-row[data-rank='1'] .bar > i, .type-row[data-rank='2'] .bar > i { background: var(--ink); }
.type-row .tl { font-size: 12.5px; color: var(--mute); margin-top: 6px; }

/* Big Five */
.traits { display: grid; }
.trait { border-bottom: 1px solid var(--line); }
.trait:last-child { border-bottom: 0; }
.trait summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 38px minmax(0, 1fr) 28px; gap: 14px; align-items: center; padding: 18px 0; }
.trait summary::-webkit-details-marker { display: none; }
.trait .l { width: 38px; height: 38px; border-radius: 10px; background: var(--ink); color: var(--ivory); display: grid; place-items: center; font: 600 14px var(--font); }
.trait .hd { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 9px; }
.trait .hd b { font-weight: 600; font-size: 15.5px; }
.trait .hd span { font-size: 13px; color: var(--mute); }
.trait .hd span b { font: 600 15px var(--font); color: var(--ink); margin-left: 6px; }
.bipolar { position: relative; height: 8px; border-radius: 99px; background: var(--well); }
.bipolar i { position: absolute; top: 0; bottom: 0; left: 0; width: var(--v); background: var(--ink); border-radius: 99px; }
.bipolar::after { content: ''; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1.5px; background: var(--bg); box-shadow: 0 0 0 0.5px var(--line-2); }
.poles { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--mute-2); margin-top: 7px; }
.poles .on { color: var(--ink); font-weight: 550; }
.chev { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; border: 1px solid var(--line); transition: transform var(--slow) var(--ease), background-color var(--fast); }
.chev svg { width: 12px; height: 12px; }
details[open] > summary .chev { transform: rotate(180deg); }
.trait .body { padding: 0 42px 20px 52px; color: var(--ink-2); font-size: 14.5px; }
.callout { margin-top: 18px; border-radius: 16px; padding: 18px 20px; background: var(--ink); color: var(--ivory); display: grid; grid-template-columns: auto 1fr; gap: 14px; font-size: 14.5px; line-height: 1.6; }
.callout .kicker { color: rgb(254 240 213 / 0.55); padding-top: 3px; }
.b5code { font: 500 12.5px var(--font); letter-spacing: 0.04em; background: var(--ink); color: var(--ivory); border-radius: 8px; padding: 7px 10px; }

/* Careers */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pcard { position: relative; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 16px; background: var(--bg); transition: border-color var(--fast) var(--ease), background-color var(--fast) var(--ease); }
.pcard[data-top] { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.pcard[data-top] .muted, .pcard[data-top] .kicker { color: rgb(254 240 213 / 0.6); }
.pcard[data-top] .tag { color: var(--ivory); border-color: rgb(254 240 213 / 0.3); }
.pcard[data-top] .tag-solid { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }
.pcard[data-top] .tag-dash { color: rgb(254 240 213 / 0.6); }
@media (hover: hover) and (pointer: fine) { .pcard:not([data-top]):hover { border-color: var(--line-2); } }
.pcard summary { list-style: none; cursor: pointer; padding: 18px 18px 16px; display: grid; gap: 10px; }
.pcard summary::-webkit-details-marker { display: none; }
.pcard .row1 { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; align-items: start; }
.pcard .rk { font: 500 12px var(--font); color: var(--mute-2); padding-top: 4px; }
.pcard[data-top] .rk { color: rgb(254 240 213 / 0.5); }
.pcard h3 { font-size: 17px; letter-spacing: -0.015em; line-height: 1.25; }
.pcard .en { font-size: 12.5px; color: var(--mute); margin-top: 2px; }
.pcard[data-top] .en { color: rgb(254 240 213 / 0.55); }
.pcard .fit { text-align: right; }
.pcard .fit b { font: 700 24px var(--display); letter-spacing: -0.01em; display: block; line-height: 1; }
.pcard .fit small { font-size: 11.5px; color: var(--mute); }
.pcard[data-top] .fit small { color: rgb(254 240 213 / 0.55); }
.pcard .why { padding-left: 40px; font-size: 14px; color: var(--ink-2); }
.pcard[data-top] .why { color: rgb(254 240 213 / 0.85); }
.pcard .meta { padding-left: 40px; display: flex; flex-wrap: wrap; gap: 6px; }
.pcard .more { padding: 0 18px 18px 58px; display: grid; gap: 14px; font-size: 14px; }
.pcard .more h4 { margin: 0 0 4px; font: 500 11px var(--font); letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); }
.pcard[data-top] .more h4 { color: rgb(254 240 213 / 0.55); }
.pcard .cmp { display: flex; gap: 8px; align-items: center; padding: 0 18px 16px 58px; font-size: 12.5px; color: var(--mute); cursor: pointer; width: fit-content; }
.pcard[data-top] .cmp { color: rgb(254 240 213 / 0.6); }
.pcard .cmp input { width: 16px; height: 16px; accent-color: var(--ink); margin: 0; cursor: pointer; }
.pcard[data-top] .cmp input { accent-color: var(--ivory); }
.dots { display: inline-flex; gap: 3px; vertical-align: middle; }
.dots i { width: 8px; height: 8px; border-radius: 2px; border: 1px solid currentColor; opacity: 0.5; }
.dots i.on { background: currentColor; opacity: 1; }
.skill-need { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.skill-need span { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; }
.hint-line { text-align: center; color: var(--mute); font-size: 13px; padding-top: 16px; }
.compare { margin-top: 18px; overflow-x: auto; }
.compare table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
.compare th, .compare td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-size: 15px; font-weight: 600; }
.compare tbody th { font: 500 11px var(--font); letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); width: 150px; }
.compare .best { font-weight: 650; }
.compare .best::after { content: ' ●'; font-size: 9px; vertical-align: 2px; }

/* Income */
.sort { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--mute); }
.sort .input { height: 38px; width: auto; font-size: 14px; color: var(--ink); }
.money.one { grid-template-columns: 1fr; }
.legend i.ln { width: 18px; height: 0; border-top: 2px solid var(--ink); border-radius: 0; background: none; }
.legend i.ln.dash { border-top-style: dashed; }
.chart .legend { margin-top: 10px; padding-top: 0; border: 0; }
.inc-top { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.slider { display: grid; gap: 12px; padding: 18px 20px; border-radius: 16px; background: var(--ink); color: var(--ivory); }
.slider .hd { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.slider .hd b { font: 600 13px var(--font); background: var(--ivory); color: var(--ink); border-radius: 7px; padding: 4px 8px; }
input[type='range'] { appearance: none; -webkit-appearance: none; width: 100%; height: 22px; background: none; margin: 0; }
input[type='range']::-webkit-slider-runnable-track { height: 4px; border-radius: 99px; background: linear-gradient(var(--ivory), var(--ivory)) 0 / var(--p, 50%) 100% no-repeat, rgb(254 240 213 / 0.18); }
input[type='range']::-moz-range-track { height: 4px; border-radius: 99px; background: rgb(254 240 213 / 0.18); }
input[type='range']::-moz-range-progress { height: 4px; border-radius: 99px; background: var(--ivory); }
input[type='range']::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--ivory); margin-top: -8px; box-shadow: 0 0 0 4px rgb(254 240 213 / 0.18); }
input[type='range']::-moz-range-thumb { width: 20px; height: 20px; border: 0; border-radius: 50%; background: var(--ivory); }
input[type='range']:focus-visible { outline: none; }
input[type='range']:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgb(254 240 213 / 0.5); }
.slider .ticks { display: flex; justify-content: space-between; font-size: 11.5px; color: rgb(254 240 213 / 0.5); }
.money { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.money .box { border-radius: 16px; padding: 20px; border: 1px solid var(--line); text-align: center; }
.money .box.sel { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.money .box.home { border-style: dashed; border-color: var(--ink); }
.money .v { font: 700 clamp(28px, 3.6vw, 38px)/1.1 var(--display); letter-spacing: -0.01em; margin: 6px 0 2px; }
.money .s { font-size: 13px; color: var(--mute); }
.money .sel .s, .money .sel .kicker { color: rgb(254 240 213 / 0.6); }
.ctry { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 8px; }
.ctry button { height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); font-size: 13px; font-weight: 500; transition: background-color var(--fast) var(--ease), border-color var(--fast) var(--ease), color var(--fast), transform var(--fast) var(--ease); position: relative; padding: 0 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ctry button:active { transform: scale(0.97); }
.ctry button[data-home] { border-style: dashed; border-color: var(--ink); }
.ctry button[aria-pressed='true'] { background: var(--ink); color: var(--ivory); border-color: var(--ink); border-style: solid; }
@media (hover: hover) and (pointer: fine) { .ctry button:hover:not([aria-pressed='true']) { background: var(--well); } }
.chart { margin-top: 18px; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart text { font: 500 11px var(--font); fill: var(--mute); }
.chart .grid line { stroke: var(--line); }
.ranks { display: grid; gap: 4px; margin-top: 18px; }
.rank { display: grid; grid-template-columns: 22px 150px 1fr auto; gap: 12px; align-items: center; padding: 9px 12px; border-radius: 10px; font-size: 14px; border: 1px solid transparent; }
.rank .i { font: 500 12px var(--font); color: var(--mute-2); }
.rank b { font: 600 14px var(--font); }
.rank .bar { height: 5px; }
.rank .bar > i { background: var(--mute-2); transition: width var(--slow) var(--ease); }
.rank[data-sel] { background: var(--ink); color: var(--ivory); }
.rank[data-sel] .bar { background: rgb(254 240 213 / 0.15); }
.rank[data-sel] .bar > i { background: var(--ivory); }
.rank[data-sel] .i { color: rgb(254 240 213 / 0.5); }
.rank[data-home] { border: 1px dashed var(--ink); }
.rank[data-home] .bar > i { background: var(--ink); }
.rank small { color: var(--mute); font-size: 12px; margin-left: 6px; }
.rank[data-sel] small { color: rgb(254 240 213 / 0.6); }
.fine { font-size: 12.5px; color: var(--mute); margin-top: 14px; }

/* Plan */
.track { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); margin: 6px 0 26px; }
.track::before { content: ''; position: absolute; left: 12.5%; right: 12.5%; top: 8px; height: 2px; background: var(--line); }
.track .fill { position: absolute; left: 12.5%; top: 8px; height: 2px; background: var(--ink); width: var(--v); }
.track div { display: grid; justify-items: center; gap: 8px; font-size: 12.5px; color: var(--mute); position: relative; }
.track i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--bg); }
.track [data-state='past'] i { background: var(--line-2); }
.track [data-state='now'] i { border-color: var(--ink); background: var(--ink); box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px var(--ink); }
.track [data-state='now'] { color: var(--ink); font-weight: 600; }
.track [data-state='next'] i { border-color: var(--ink); }
.stage-group { display: grid; grid-template-columns: 44px 1fr; gap: 14px; margin-top: 22px; }
.stage-group .badge { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font: 600 13px var(--font); border: 1px solid var(--line-2); }
.stage-group[data-now] .badge { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.stage-group h3 { font-size: 17px; display: flex; gap: 8px; align-items: center; min-height: 44px; }
.tasks { grid-column: 2; display: grid; gap: 8px; }
.task { border: 1px solid var(--line); border-radius: 14px; background: var(--bg); position: relative; overflow: hidden; transition: opacity var(--base) var(--ease); }
.task::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; }
.task[data-p='critical']::before { background: var(--ink); }
.task[data-p='recommended']::before { background: var(--hatch); }
.task[data-p='optional']::before { border-left: 1.5px dashed var(--mute-2); width: 0; left: 1.5px; top: 6px; bottom: 6px; }
.task summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 22px minmax(0, 1fr) auto 28px; gap: 12px; align-items: center; padding: 14px 14px 14px 18px; }
.task summary::-webkit-details-marker { display: none; }
.task .t { font-weight: 550; font-size: 15px; transition: color var(--base); }
.task .d { padding: 0 56px 16px 52px; color: var(--ink-2); font-size: 14px; }
.task[data-done] .t { color: var(--mute-2); text-decoration: line-through; text-decoration-thickness: 1px; }
.check { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--line-2); margin: 0; display: grid; place-items: center; cursor: pointer; transition: background-color var(--fast) var(--ease), border-color var(--fast) var(--ease), transform var(--fast) var(--ease); }
.check:active { transform: scale(0.9); }
.check::after { content: ''; width: 10px; height: 6px; border: 2px solid var(--ivory); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform var(--base) var(--ease); }
.check:checked { background: var(--ink); border-color: var(--ink); }
.check:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--mute); margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.legend span { display: inline-flex; gap: 8px; align-items: center; }
.legend i { width: 4px; height: 16px; border-radius: 2px; }
.legend i.critical { background: var(--ink); }
.legend i.recommended { background: var(--hatch); }
.legend i.optional { width: 0; border-left: 1.5px dashed var(--mute-2); }

/* Readiness */
.rd-top { display: grid; grid-template-columns: auto 1fr 1fr; gap: 14px; align-items: stretch; }
.ring { display: grid; place-items: center; padding: 8px 18px; }
.ring svg { width: 120px; height: 120px; }
.ring text { font: 700 26px var(--display); letter-spacing: -0.01em; fill: var(--ink); }
.ring .lbl { font: 500 10px var(--font); letter-spacing: 0.08em; fill: var(--mute); }
.count { display: grid; align-content: center; gap: 2px; }
.count .v { font: 700 40px/1 var(--display); letter-spacing: -0.01em; }
.gaps { display: grid; gap: 8px; margin-top: 18px; }
.gap { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; }
.gap .i { width: 28px; height: 28px; border-radius: 8px; background: var(--ink); color: var(--ivory); display: grid; place-items: center; font: 600 12px var(--font); }
.gap .nm { font-weight: 550; margin-bottom: 8px; }
.gap .s { font-size: 12.5px; color: var(--mute); margin-top: 6px; }
.levels { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; }
.levels i { height: 8px; border-radius: 2px; background: var(--well); }
.levels i.have { background: var(--ink); }
.levels i.need { background: var(--hatch); box-shadow: inset 0 0 0 1px var(--ink); }
.gap .d { font: 600 14px var(--font); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* Energy */
.energy { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.energy h3 { font-size: 17px; margin-bottom: 4px; display: flex; gap: 10px; align-items: center; }
.energy h3 i { width: 14px; height: 14px; border-radius: 4px; }
.energy h3 i.f { background: var(--ink); }
.energy h3 i.d { background: var(--hatch); box-shadow: inset 0 0 0 1px var(--ink); }
.eitem { border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-top: 10px; }
.eitem .hd { display: flex; justify-content: space-between; gap: 10px; font-weight: 550; margin-bottom: 10px; }
.eitem .hd span { font: 500 12.5px var(--font); color: var(--mute); }
.meter { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.meter i { height: 10px; border-radius: 3px; background: var(--well); }
.meter.f i.on { background: var(--ink); }
.meter.d i.on { background: var(--hatch); box-shadow: inset 0 0 0 1px var(--ink); }
.eitem p { font-size: 13.5px; color: var(--mute); margin-top: 10px; }
.vals { display: grid; gap: 10px; }
.val { display: grid; grid-template-columns: 1fr 120px 22px; gap: 12px; align-items: center; font-size: 14px; }
.val b { font: 600 13px var(--font); text-align: right; }
.styles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.style { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: grid; gap: 6px; font-size: 13.5px; }
.style[data-top] { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.style .meter i { height: 6px; }
.style[data-top] .meter i { background: rgb(254 240 213 / 0.2); }
.style[data-top] .meter i.on { background: var(--ivory); }
.tips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tip { border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: grid; gap: 6px; }
.tip span { font: 500 12px var(--font); color: var(--mute-2); }
.tip b { font-weight: 600; }
.tip p { font-size: 13.5px; color: var(--mute); }
.sub-h { font-size: 15px; font-weight: 600; margin: 32px 0 12px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.sub-h small { font-weight: 400; font-size: 12.5px; color: var(--mute); }

.state { min-height: 60dvh; display: grid; place-items: center; text-align: center; gap: 12px; padding: 40px 20px; }
.state h1 { font-size: 30px; }

/* ---------- Admin ---------- */
.wrap.adm { padding-top: 32px; padding-bottom: 80px; }
.adm-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.adm-head .muted { margin-top: 4px; }
.adm-head h1 { font-size: 32px; }
.adm .sort .input { width: 240px; height: 38px; }
.adm-sum { display: grid; grid-template-columns: 1.3fr 1fr; gap: 14px; }
.adm-sum .panel { padding: 22px; }
.adm-sum .sub-h { margin-top: 0; }
.adm-sum .val { grid-template-columns: minmax(0, 1fr) 140px 28px; }
.adm-sum .val > span { display: flex; align-items: center; gap: 10px; min-width: 0; }
.val .lt { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 7px; border: 1px solid var(--line-2); background: var(--bg); font: 600 12.5px var(--font); }
.val .lt[data-lead] { background: var(--ink); border-color: var(--ink); color: var(--ivory); }
.adm-top { list-style: none; margin: 0; padding: 0; counter-reset: c; }
.adm-top li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; counter-increment: c; }
.adm-top li::before { content: counter(c, decimal-leading-zero); font: 500 12px var(--font); color: var(--mute-2); }
.adm-top li:last-child { border-bottom: 0; }
.adm-table { padding: 0; overflow-x: auto; position: relative; } /* positioned, so the sr-only header label is clipped too */
.adm-table table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 760px; }
.adm-table th { text-align: left; font: 500 11px var(--font); letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); padding: 14px 16px; border-bottom: 1px solid var(--line); }
.adm-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.adm-table tr:last-child td { border-bottom: 0; }
.adm-table td:first-child a { font-weight: 550; text-decoration: none; }
.adm-table td:last-child { text-align: right; }
@media (hover: hover) and (pointer: fine) { .adm-table tbody tr:hover { background: var(--paper); } .adm-table td:first-child a:hover { text-decoration: underline; } }
.adm-empty { padding: 24px 0; }
.adm .seg button span { margin-left: 4px; font-size: 12px; }

/* Small screens */
@media (max-width: 900px) {
  .hero-grid, .int-grid, .energy { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .tips { grid-template-columns: 1fr 1fr; }
  .adm-sum { grid-template-columns: 1fr; }
  .rd-top { grid-template-columns: 1fr 1fr; }
  .rd-top .ring { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  body { font-size: 14.5px; }
  .panel { padding: 18px; border-radius: 18px; }
  .sec-head { grid-template-columns: 1fr; }
  .sec-head .n { font-size: 36px; }
  .inc-top, .money { grid-template-columns: 1fr; }
  .ctry { grid-template-columns: repeat(3, 1fr); }
  .rank { grid-template-columns: 20px 1fr auto; }
  .rank .bar { grid-column: 2 / -1; }
  .scale-btns button { height: 56px; }
  .quiz-foot .hint { display: none; }
  .quiz-foot { grid-template-columns: 1fr 1fr; }
  .rtop .who, .top-in .hide-sm { display: none; }
  .top-in { gap: 8px; padding: 0 16px; }
  .wrap { padding: 0 16px; }
  #pdf { padding: 0 10px; }
  .pcard .why, .pcard .meta { padding-left: 0; }
  .pcard .more { padding-left: 18px; }
  .pcard .cmp { padding-left: 18px; }
  .trait .body { padding: 0 0 18px; }
  .trait summary { gap: 10px; }
  .trait .hd { flex-wrap: wrap; }
  .task .d { padding: 0 16px 16px 52px; }
  .stage-group { grid-template-columns: 1fr; }
  .stage-group .tasks { grid-column: 1; }
  .tips { grid-template-columns: 1fr; }
  .adm .sort, .adm .sort .input { width: 100%; }
  .adm-sum .val { grid-template-columns: minmax(0, 1fr) 80px 28px; }
  .val { grid-template-columns: 1fr 80px 22px; }
  .report { gap: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
}

/* PDF via the browser's print dialog */
@media print {
  @page { size: A4; margin: 14mm 12mm; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body { background: none; font-size: 12.5px; }
  .top, .snav, .banner, .no-print, .sec-tools, .pcard .cmp, .compare, .hint-line, .skip { display: none !important; }
  .report { padding: 0; gap: 0; }
  .report > section { break-before: page; }
  .report > section:first-child { break-before: auto; }
  .hero { border-radius: 16px; min-height: 250mm; align-content: center; }
  .panel { border-radius: 14px; padding: 18px; }
  .pcard, .task, .eitem, .gap, .trait, .tip, .rank { break-inside: avoid; }
  .pcard[hidden] { display: none; }
  .wrap { max-width: none; padding: 0; }
  .chev { display: none; }
  /* Paper is narrower than the tablet breakpoint: restore the two-column layouts. */
  .hero-grid { grid-template-columns: 1fr 230px; gap: 24px; }
  .hero .arch { font-size: 52px; }
  .int-grid, .energy, .cards, .money, .inc-top { grid-template-columns: 1fr 1fr; }
  .tips { grid-template-columns: repeat(3, 1fr); }
  .rd-top { grid-template-columns: auto 1fr 1fr; }
  .rd-top .ring { grid-column: auto; }
  .radar { max-width: 300px; }
  .ctry { grid-template-columns: repeat(5, 1fr); }
  .sec-head { grid-template-columns: 70px 1fr; margin-bottom: 14px; }
  .sec-head .n { font-size: 40px; }
}
