/* 101quiz.com — site styles. Source of values: design/DESIGN.md (tokens) and the prototypes in design/projects/.
   Desktop rules sit under html.pg so the 1080 px story card keeps phone styles. */

/* ---------- Fonts: Geist and Geist Mono (SIL OFL 1.1), self-hosted, one file per alphabet ---------- */
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('fonts/Geist-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('fonts/Geist-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('fonts/Geist-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('fonts/Geist-symbols.woff2') format('woff2'); unicode-range: U+2248; }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('fonts/GeistMono-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('fonts/GeistMono-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('fonts/GeistMono-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('fonts/GeistMono-symbols.woff2') format('woff2'); unicode-range: U+2248; }

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;
  --canvas: #1b1f27;
  --surface: #262b36;
  --surface-2: #2f3542;
  --surface-3: #3a4150;
  --ink: #f2f4f7;
  --ink-2: #b9c0cc;
  --ink-3: #8e96a3;
  --hair: rgba(242, 244, 247, .14);
  --line: rgba(242, 244, 247, .22);
  --on-ink: #1b1f27;
  --value-0: #9253da;
  --value-25: #6586e7;
  --value-50: #10b9b5;
  --value-75: #72da68;
  --value-100: #fde725;
  --ruler: linear-gradient(90deg, var(--value-0), var(--value-25) 25%, var(--value-50) 50%, var(--value-75) 75%, var(--value-100));
  --sans: 'Geist', ui-sans-serif, system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --gut: 16px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--surface-2) var(--canvas); }
body { margin: 0; min-height: 100dvh; display: flex; flex-direction: column; background: var(--canvas); color: var(--ink); font: 400 16px/1.5 var(--sans); letter-spacing: -0.006em; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body > main { flex: 1 0 auto; }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; letter-spacing: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--ink); color: var(--on-ink); }
.tab { font-variant-numeric: tabular-nums; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gut); }

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

/* ---------- Logo ---------- */
.lg { display: inline-flex; align-items: center; gap: .32em; color: var(--ink); font: 800 21px/1 var(--sans); letter-spacing: -0.045em; white-space: nowrap; }
.lg svg { width: 1.2em; height: 1.2em; flex: none; }

/* ---------- Header (all pages) ---------- */
.ch-head .wrap, .ch-foot .wrap { padding: 0 16px; }
.ch-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.ch-head a.home { display: inline-flex; padding: 6px 0; }
.ch-head nav a { padding: 10px 0 10px 14px; font: 600 15px/1 var(--sans); color: var(--ink-2); }
.ch-head nav a[aria-current] { color: var(--ink); }

/* ---------- Footer (all pages) ---------- */
.ch-foot { margin-top: 64px; border-top: 1px solid var(--hair); font: 400 14.5px/1.4 var(--sans); color: var(--ink-2); }
.ch-foot .wrap { display: grid; gap: 22px; padding-top: 28px; padding-bottom: 40px; }
.ch-foot .ch-lists { display: grid; gap: 10px; }
.ch-foot ul { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.ch-foot li a { display: inline-block; padding: 4px 0; font-weight: 600; }
.ch-foot li a[aria-current] { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.ch-foot .ch-secs a { font-weight: 500; color: var(--ink-3); }
.ch-foot .ch-copy { font: 400 12.5px var(--mono); color: var(--ink-3); }
/* Language switcher: quiet button, popover opening upward (DESIGN.md, Language switcher) */
.ch-lang { position: relative; justify-self: start; }
.ch-lang > button { display: inline-flex; align-items: center; gap: 8px; height: 44px; margin-left: -10px; padding: 0 10px; border: 0; border-radius: 12px; background: none; color: var(--ink-3); font: 500 14.5px/1 var(--sans); cursor: pointer; transition: background-color .15s, color .15s; }
.ch-lang > button[aria-expanded="true"] { background: var(--surface); color: var(--ink); }
.ch-lang svg { flex: none; width: 17px; height: 17px; }
.ch-lang .chev { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.ch-lang > button[aria-expanded="true"] .chev { transform: rotate(180deg); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ch-lang .ch-pop { position: absolute; z-index: 40; bottom: calc(100% + 8px); left: -10px; min-width: 220px; max-width: calc(100vw - 12px); max-height: min(60vh, 420px); overflow: hidden auto; padding: 6px; border-radius: 14px; background: var(--surface-2); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .7); scrollbar-color: var(--surface-3) transparent; }
.ch-lang .ch-pop ul { display: grid; gap: 2px; }
.ch-lang .ch-pop.many ul { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(var(--r), auto); grid-auto-flow: column; min-width: min(340px, calc(100vw - 24px)); }
.ch-foot .ch-lang .ch-pop li a { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; padding: 0 12px; border-radius: 6px; font-weight: 500; color: var(--ink-2); }
.ch-foot .ch-lang .ch-pop li a[aria-current] { color: var(--ink); font-weight: 700; text-decoration: none; }
.ch-lang .ch-pop li a[aria-current]::after { content: ""; flex: none; width: 15px; height: 15px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; }
@media (prefers-reduced-motion: no-preference) { .ch-lang .ch-pop:not([hidden]) { animation: ch-pop .18s var(--ease); } }
@keyframes ch-pop { from { opacity: 0; transform: translateY(6px); } }

@media (hover: hover) and (pointer: fine) {
  .ch-head nav a:hover { color: var(--ink); }
  .ch-foot li a:hover { color: var(--ink); }
  .ch-lang > button:hover { background: var(--surface); color: var(--ink); }
  .ch-foot .ch-lang .ch-pop li a:hover { background: var(--surface-3); color: var(--ink); }
  .btn:hover { background: #ffffff; }
  .btn.ghost:hover { background: var(--surface-2); }
  .card-t:hover { background: var(--surface-2); }
  .card-t:hover .c-go { background: #ffffff; }
  .params a:hover { text-decoration-color: var(--ink); }
  .quiz-engine-answer:hover { border-color: var(--line); background: var(--surface-2); }
  .quiz-engine-answer:has(input:checked):hover { background: var(--ink); border-color: var(--ink); }
  .quiz-engine-submit:hover { background: #ffffff; }
  .sbig:hover, .quiz-engine-cta-button:hover { background: #ffffff; }
  .sico:hover { background: var(--surface-2); }
  .back:hover { color: var(--ink); }
  .home-page .d-title a:hover { color: #ffffff; text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: .12em; text-decoration-color: var(--line); }
  .home-page .d-meta a:hover { color: var(--ink); text-decoration-color: var(--ink); }
  .home-page .d-x a:hover { color: #ffffff; }
  .home-page .opt:hover { border-color: var(--line); background: var(--surface-2); }
  .home-page .opt[aria-checked="true"]:hover { background: var(--ink); }
  .home-page .sec:hover .sbar { background: var(--surface-2); }
  .home-page .sec:hover .sec-l svg { color: var(--ink); transform: translateX(3px); }
  .catalog-page .crumbs a:hover { color: var(--ink); text-decoration-color: var(--ink); }
  .catalog-page .sec:hover .sbar { background: var(--surface-2); }
  .catalog-page .sec:hover .sec-l, .catalog-page.on-sec .sec:hover .sec-l { color: #ffffff; }
  .catalog-page .pages a:hover { background: var(--surface-2); }
  .catalog-page .pages a[aria-current]:hover { background: var(--ink); }
  .service-page .toc a:hover { color: var(--ink); }
  .service-page .prose a:hover, .service-page .mail:hover { text-decoration-color: var(--ink); }
  .service-page .copy:hover { background: var(--surface-2); }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 54px; padding: 0 24px; border: 0; border-radius: 12px; background: var(--ink); color: var(--on-ink); font-size: 17px; font-weight: 700; cursor: pointer; transition: background-color .15s, transform .15s var(--ease); }
.btn:active { transform: scale(.985); }
.btn.ghost { background: var(--surface); color: var(--ink); }

/* ---------- Test card (home, catalogue, other tests, 404) ---------- */
.cards { display: grid; gap: 10px; margin-top: 16px; }
.card-t { display: flex; flex-direction: column; min-height: 168px; padding: 16px; border-radius: 16px; background: var(--surface); transition: background-color .2s; }
.card-t h3 { font-size: 22px; line-height: 1.08; font-weight: 800; letter-spacing: -0.04em; text-wrap: balance; }
.card-t .c-hook { margin-top: 8px; font-size: 14px; line-height: 1.4; color: var(--ink-2); }
.card-t .c-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 14px; font: 400 12.5px var(--mono); color: var(--ink-3); }
.card-t .c-mt { display: grid; gap: 2px; min-width: 0; }
.card-t .c-mt span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-t .c-mt span:first-child { color: var(--ink-2); }
.card-t .c-go { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--on-ink); transition: background-color .15s; }
.card-t .c-go svg { width: 18px; height: 18px; }

.card-t .c-done { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--hair); font-size: 13px; font-weight: 700; color: var(--ink); }
.card-t .c-done[hidden] { display: none; }
.card-t .c-done svg { width: 15px; height: 15px; flex: none; }
.card-t .c-done span { font-weight: 500; color: var(--ink-2); }

/* ---------- Home page (design/projects/home/proto/home.html); scoped: its class names repeat the test page's ---------- */
.home-page .top { padding-top: 6px; }
.home-page .h1 { margin: 0; font-size: 22px; line-height: 1.04; font-weight: 800; letter-spacing: -0.045em; text-wrap: balance; }
.home-page .lead { display: block; margin-top: 8px; font-size: 16px; line-height: 1.4; color: var(--ink-2); text-wrap: balance; }
.home-page .proto { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; font: 400 12.5px/1.4 var(--mono); color: var(--ink-3); }
.home-page .proto i { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
.home-page .day { margin-top: 28px; display: grid; grid-template-areas: "t" "m" "r" "s"; }
.home-page .d-side { grid-area: s; }
.home-page .d-title { grid-area: t; container-type: inline-size; }
.home-page .d-title a { display: block; font-weight: 800; line-height: .95; letter-spacing: -0.055em; text-wrap: balance; font-size: min(max(38px, min(48px, calc(100cqi / (var(--third) * 0.62)))), calc(100cqi / (var(--word) * 0.62))); }
.home-page .d-meta { grid-area: m; margin-top: 10px; font-size: 16px; line-height: 1.4; color: var(--ink-2); }
.home-page .d-meta a { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.home-page .d-meta b { font-weight: 600; color: var(--ink); }
.home-page .d-q { margin-top: 22px; }
.home-page .d-x { margin-top: 16px; }
.home-page .d-x p { font-size: 16px; line-height: 1.45; color: var(--ink-2); max-width: 34em; }
.home-page .d-x a { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 16px; font-weight: 700; }
.home-page .d-x a svg { width: 16px; height: 16px; }
.home-page .qhead { display: flex; justify-content: space-between; font: 500 13px/1 var(--mono); color: var(--ink-2); }
.home-page .qhead b { color: var(--ink); font-weight: 500; }
.home-page .q-text { margin-top: 14px; font-size: 20px; line-height: 1.2; font-weight: 700; letter-spacing: -0.03em; text-wrap: pretty; }
.home-page .answers { display: grid; gap: 6px; margin-top: 14px; }
.home-page .opt { display: flex; align-items: center; width: 100%; min-height: 52px; padding: 12px 16px; border: 1px solid var(--hair); border-radius: 14px; background: var(--surface); text-align: left; font-size: 16px; line-height: 1.28; font-weight: 500; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s, transform .15s var(--ease); }
.home-page .opt:active { transform: scale(.99); }
.home-page .opt[aria-checked="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.home-page .note { margin-top: 10px; font: 500 13px/1.35 var(--mono); color: var(--ink); }
.home-page .d-r { grid-area: r; margin-top: 18px; }
.home-page .r-cap { font: 400 12.5px/1.3 var(--mono); color: var(--ink-3); }
.home-page .rul-rows { display: grid; gap: 8px; margin-top: 8px; }
.home-page .rul-l { font-size: 14px; line-height: 1.2; font-weight: 600; letter-spacing: -0.015em; }
.home-page .rul-rows > div:nth-child(n+2), .home-page .r-cap { display: none; }
.home-page .rul { position: relative; height: 22px; margin-top: 4px; border-radius: 3px; background: var(--surface); }
.home-page .rul i { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(255, 255, 255, .08); }
.home-page .rul b { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); font-size: 16px; line-height: 1; font-weight: 800; letter-spacing: -0.05em; color: var(--ink-2); }
.home-page .r-leg { height: 8px; margin-top: 10px; border-radius: 2px; background: var(--ruler); }
.home-page .r-ax { position: relative; height: 13px; margin-top: 6px; font: 500 12.5px/1 var(--mono); color: var(--ink-3); }
.home-page .r-ax span { position: absolute; top: 0; transform: translateX(-50%); }
.home-page .r-ax span:first-child { transform: none; }
.home-page .r-ax span:last-child { transform: translateX(-100%); }
.home-page .rul-main { margin-top: 0; font-size: 14px; line-height: 1.4; color: var(--ink-2); }
.home-page .rul-main b { font-weight: 600; color: var(--ink); }
.home-page .block { margin-top: 52px; }
.home-page .block-h { text-wrap: balance; }
.home-page .cap-s { margin-top: 6px; font-size: 14px; color: var(--ink-3); }
.home-page .secs { display: grid; gap: 10px; margin: 16px calc(-1 * var(--gut)) 0; }
.home-page .sec { display: block; }
.home-page .sec-l { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 0 var(--gut); font-size: 16px; line-height: 1.15; font-weight: 800; letter-spacing: -0.03em; }
.home-page .sec-l svg { flex: none; width: 18px; height: 18px; align-self: center; color: var(--ink-3); transition: color .15s, transform .2s var(--ease); }
.home-page .sec:focus-visible { outline-offset: 2px; border-radius: 0; }
.home-page .sbar { display: block; position: relative; height: 38px; margin-top: 5px; background: var(--surface); overflow: hidden; transition: background-color .15s; }
.home-page .sbar .fill { position: absolute; left: 0; top: 0; bottom: 0; overflow: hidden; font-style: normal; background: var(--c); transform-origin: left; }
.home-page .sbar .n { position: absolute; left: var(--gut); top: 50%; transform: translateY(-50%); display: flex; align-items: baseline; gap: 6px; color: var(--t); white-space: nowrap; }
.home-page .sbar .fill .n { color: var(--t); }
.home-page .sbar > .n { visibility: hidden; }
.home-page .sbar.out > .n { visibility: visible; left: calc(var(--fw) + 8px); }
.home-page .sbar.out .fill .n { display: none; }
.home-page .sbar .n b { font-size: 26px; line-height: 1; font-weight: 800; letter-spacing: -0.06em; }
.home-page .sbar .n span { font-size: 13px; font-weight: 600; letter-spacing: -0.01em; }
.home-page .all { margin-top: 14px; }
.home-page .all .btn svg { width: 18px; height: 18px; }
.home-page .pbar { position: relative; height: 46px; margin: 14px calc(-1 * var(--gut)) 0; background: var(--surface); overflow: hidden; }
.home-page .pbar .fill { position: absolute; left: 0; top: 0; bottom: 0; min-width: 4px; background: var(--c); transform-origin: left; }
.home-page .pbar .n { position: absolute; left: var(--gut); top: 50%; transform: translateY(-50%); font-size: 32px; line-height: 1; font-weight: 800; letter-spacing: -0.06em; color: var(--t, #ffffff); white-space: nowrap; }
.home-page .pbar .n small { font-size: .5em; letter-spacing: -0.02em; }
.home-page .passed .proto { margin-top: 8px; }
.home-page .prose-about { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--hair); }
.home-page .prose-about h2 { font-size: 20px; line-height: 1.15; font-weight: 800; letter-spacing: -0.03em; }
.home-page .prose-about p { margin-top: 10px; max-width: 40em; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
/* Bar growth: each bar grows once from zero as it enters the view (no motion without IntersectionObserver or with reduced motion) */
.armed .home-page .sbar .fill { clip-path: inset(0 100% 0 0); }
.armed .home-page .pbar .fill { transform: scaleX(0); }
.armed .home-page .sbar .n, .armed .home-page .pbar .n { opacity: 0; }
.home-page .sbar .fill { transition: clip-path .8s var(--ease); transition-delay: var(--d, 0s); }
.home-page .pbar .fill { transition: transform .8s var(--ease); transition-delay: var(--d, 0s); }
.home-page .sbar .n, .home-page .pbar .n { transition: opacity .3s ease-out; transition-delay: calc(var(--d, 0s) + .25s); }
.armed .home-page .in .fill { transform: none; clip-path: inset(0 0 0 0); }
.armed .home-page .in .n { opacity: 1; }

/* ---------- Catalogue and section page (design/projects/catalog/proto/catalog.html); scoped ---------- */
.catalog-page .head { padding-top: 10px; }
.catalog-page .crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 14px; color: var(--ink-3); }
.catalog-page .crumbs a { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.catalog-page .crumbs svg { width: 14px; height: 14px; }
.catalog-page .title { container-type: inline-size; margin-top: 6px; }
.catalog-page .crumbs + .title { margin-top: 10px; }
.catalog-page .h1 { margin: 0; font-weight: 800; line-height: .95; letter-spacing: -0.045em; text-wrap: balance; font-size: max(34px, min(64px, calc(100cqi / (var(--len) * 0.68)))); }
.catalog-page .h1 .cnt { color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.catalog-page .lead { display: block; margin-top: 12px; max-width: 34em; font-size: 16px; line-height: 1.45; color: var(--ink-2); }
.catalog-page .secs-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 20px; }
.catalog-page .secs-h h2 { font-size: 20px; line-height: 1.1; font-weight: 800; letter-spacing: -0.03em; }
.catalog-page .secs-h p { font-size: 13px; color: var(--ink-3); text-align: right; }
.catalog-page .secs { display: grid; grid-template-columns: 1fr 1fr; column-gap: 14px; row-gap: 8px; margin-top: 12px; }
.catalog-page .secs.one { grid-template-columns: 1fr; }
.catalog-page .sec { display: block; min-width: 0; }
.catalog-page .sec-l { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; line-height: 1.2; font-weight: 700; letter-spacing: -0.015em; color: var(--ink); }
.catalog-page .sbar { display: block; position: relative; height: 24px; margin-top: 4px; border-radius: 3px; background: var(--surface); overflow: hidden; transition: background-color .15s; }
.catalog-page .sbar .fill { position: absolute; left: 0; top: 0; bottom: 0; min-width: 4px; overflow: hidden; font-style: normal; background: var(--c); transform-origin: left; }
.catalog-page .sbar .n { position: absolute; left: 9px; top: 50%; transform: translateY(-50%); display: flex; align-items: baseline; gap: 4px; color: var(--t); white-space: nowrap; }
.catalog-page .sbar .fill .n { color: var(--t); }
.catalog-page .sbar > .n { visibility: hidden; }
.catalog-page .sbar.out > .n { visibility: visible; left: calc(var(--fw) + 8px); }
.catalog-page .sbar.out .fill .n { display: none; }
.catalog-page .sbar .n b { font-size: 18px; line-height: 1; font-weight: 800; letter-spacing: -0.05em; }
.catalog-page .sbar .n span { font-size: 12.5px; font-weight: 600; }
.catalog-page.on-sec .sec .sec-l { color: var(--ink-3); }
.catalog-page.on-sec .sec[aria-current] .sec-l { color: var(--ink); }
.catalog-page .sec[aria-current] .sbar { outline: 2px solid var(--ink); outline-offset: 2px; }
.catalog-page .block { margin-top: 32px; }
.catalog-page .block-h { text-wrap: balance; }
.catalog-page .passed .cap { margin-top: 6px; font: 400 12.5px/1.4 var(--mono); color: var(--ink-3); }
.catalog-page .pbar { position: relative; height: 46px; margin: 14px calc(-1 * var(--gut)) 0; background: var(--surface); overflow: hidden; }
.catalog-page .pbar .fill { position: absolute; left: 0; top: 0; bottom: 0; min-width: 4px; background: var(--c); transform-origin: left; }
.catalog-page .pbar .n { position: absolute; left: var(--gut); top: 50%; transform: translateY(-50%); font-size: 32px; line-height: 1; font-weight: 800; letter-spacing: -0.06em; color: var(--t, #ffffff); white-space: nowrap; }
.catalog-page .pbar .n small { font-size: .5em; letter-spacing: -0.02em; }
.catalog-page .list-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.catalog-page .list-h p { font: 400 12.5px/1.3 var(--mono); color: var(--ink-3); }
.catalog-page .more { display: none; width: 100%; margin-top: 12px; }
@media (max-width: 599px) { .catalog-page .cards.clip .card-t:nth-child(n+13) { display: none; } .catalog-page .cards.clip ~ .more { display: flex; } }
.catalog-page .pages { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 24px; }
.catalog-page .pages a, .catalog-page .pages span { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 12px; font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.catalog-page .pages a { background: var(--surface); transition: background-color .15s; }
.catalog-page .pages a[aria-current] { background: var(--ink); color: var(--on-ink); }
.catalog-page .pages .gap { min-width: 24px; padding: 0; color: var(--ink-3); }
.catalog-page .pages .dis { color: var(--ink-3); opacity: .5; background: var(--surface); }
.catalog-page .pages svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.catalog-page .pages .of { margin-left: auto; min-width: 0; padding: 0; font: 400 12.5px var(--mono); color: var(--ink-3); }
.catalog-page .prose-about { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--hair); }
.catalog-page .prose-about h2 { font-size: 20px; line-height: 1.15; font-weight: 800; letter-spacing: -0.03em; }
.catalog-page .prose-about p { margin-top: 10px; max-width: 40em; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.armed .catalog-page .sbar .fill { clip-path: inset(0 100% 0 0); }
.armed .catalog-page .pbar .fill { transform: scaleX(0); }
.armed .catalog-page .sbar .n, .armed .catalog-page .pbar .n { opacity: 0; }
.catalog-page .sbar .fill { transition: clip-path .8s var(--ease); transition-delay: var(--d, 0s); }
.catalog-page .pbar .fill { transition: transform .8s var(--ease); transition-delay: var(--d, 0s); }
.catalog-page .sbar .n, .catalog-page .pbar .n { transition: opacity .3s ease-out; transition-delay: calc(var(--d, 0s) + .25s); }
.armed .catalog-page .in .fill { transform: none; clip-path: inset(0 0 0 0); }
.armed .catalog-page .in .n { opacity: 1; }

/* ---------- Service pages and 404 (design/projects/service/proto/service.html); scoped ---------- */
.service-page .page-h { padding-top: 14px; container-type: inline-size; }
.service-page .h1 { margin: 0; font-size: min(40px, calc(100cqi / (var(--word) * 0.62))); line-height: 1; font-weight: 800; letter-spacing: -0.045em; text-wrap: balance; }
.service-page .upd { margin-top: 10px; font: 400 12.5px/1.4 var(--mono); color: var(--ink-3); }
.service-page .lead-box > p:first-child { margin-top: 14px; max-width: 36em; font-size: 17px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.service-page .lead-box > p + p:not(.mail-row):not(.contact-row) { margin-top: 36px; max-width: 40em; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.service-page .mail-row { margin-top: 22px; }
.service-page .mail { display: inline-block; max-width: 100%; font-size: clamp(26px, 8.2vw, 56px); line-height: 1; font-weight: 800; letter-spacing: -0.045em; color: var(--ink); text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--line); text-underline-offset: .14em; overflow-wrap: anywhere; }
.service-page .copy { display: inline-flex; align-items: center; gap: 8px; height: 44px; margin-top: 16px; padding: 0 16px; border: 0; border-radius: 12px; background: var(--surface); color: var(--ink); font: 700 15px var(--sans); cursor: pointer; transition: background-color .15s; }
.service-page .copy svg { width: 17px; height: 17px; }
.service-page .copy[data-done] { color: var(--ink-2); }
.service-page .doc { margin-top: 0; }
.service-page .toc { margin-top: 24px; padding: 14px 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.service-page .toc h2 { font-size: 14px; line-height: 1.2; font-weight: 700; color: var(--ink-3); }
.service-page .toc ol { display: grid; gap: 2px; margin-top: 8px; }
.service-page .toc a { display: block; padding: 6px 0; font-size: 15.5px; line-height: 1.3; font-weight: 600; color: var(--ink-2); }
.service-page .toc a[aria-current] { color: var(--ink); }
.service-page .prose { max-width: 40em; margin-top: 0; color: inherit; }
.service-page .prose section { margin-top: 36px; scroll-margin-top: 16px; }
.service-page .prose h2 { font-size: 22px; line-height: 1.15; font-weight: 800; letter-spacing: -0.03em; text-wrap: balance; }
.service-page .prose p, .service-page .prose li { font-size: 16px; line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }
.service-page .prose p { margin-top: 12px; }
.service-page .prose ul { display: grid; gap: 6px; margin: 12px 0 0; padding-left: 1.1em; list-style: disc; }
.service-page .prose li::marker { color: var(--ink-3); }
.service-page .prose b, .service-page .prose strong { color: var(--ink); font-weight: 600; }
/* cookie and storage names in Privacy: the site's mono face, wrapping anywhere on a phone */
.service-page .prose code { font: 500 .92em/1 var(--mono); color: var(--ink); overflow-wrap: anywhere; }
.service-page .prose a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.service-page .calc { margin-top: 18px; }
.service-page .calc .lbl { margin: 0; font-size: 13.5px; line-height: 1.22; font-weight: 600; letter-spacing: -0.015em; color: var(--ink); }
.service-page .calc .bar { position: relative; height: 42px; margin: 6px calc(-1 * var(--gut)) 0; background: var(--surface); overflow: hidden; }
.service-page .calc .bar .tick { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(255, 255, 255, .08); }
.service-page .calc .fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--c); transform-origin: left; transition: transform .8s var(--ease); }
.service-page .calc .n { position: absolute; left: var(--gut); top: 50%; transform: translateY(-50%); font-size: 32px; line-height: 1; font-weight: 800; letter-spacing: -0.06em; color: var(--t); }
.service-page .calc .n small { font-size: .5em; letter-spacing: -0.02em; }
.service-page .calc .math { margin-top: 12px; font: 400 13.5px/1.55 var(--mono); color: var(--ink-2); }
.service-page .calc .math b { color: var(--ink); font-weight: 500; }
.service-page .legend { margin-top: 18px; padding: 0; display: block; }
.service-page .legend p { margin: 0; font-size: 14px; line-height: 1.4; color: var(--ink-2); }
.service-page .legend .rul { position: relative; height: 12px; margin-top: 10px; border-radius: 3px; background: var(--ruler); }
.service-page .legend .mk { position: absolute; top: -5px; bottom: -5px; width: 3px; margin-left: -1.5px; border-radius: 2px; background: var(--ink); box-shadow: 0 0 0 2px var(--canvas); }
.service-page .legend .ax { position: relative; height: 14px; margin-top: 8px; font: 500 12.5px/1 var(--mono); color: var(--ink-3); }
.service-page .legend .ax span { position: absolute; top: 0; transform: translateX(-50%); }
.service-page .legend .ax span:first-child { transform: none; }
.service-page .legend .ax span:last-child { transform: translateX(-100%); }
.armed .service-page .calc .fill { transform: scaleX(0); }
.armed .service-page .calc.in .fill { transform: none; }
.service-page .e404 .line { margin-top: 14px; max-width: 26em; font-size: 23px; line-height: 1.2; font-weight: 800; letter-spacing: -0.035em; text-wrap: balance; }
.service-page .chip { display: inline-block; padding: 0 .2em .05em; border-radius: .12em; background: var(--c); color: var(--t); white-space: nowrap; font-variant-numeric: tabular-nums; }
.service-page .e404 .btn { margin-top: 22px; }
.service-page .e404 .btn svg { width: 18px; height: 18px; }
.service-page .fresh { margin-top: 44px; }

/* ---------- Blocks below the test ---------- */
.block { margin-top: 44px; }
.block-h { font-size: 26px; line-height: 1.08; font-weight: 800; letter-spacing: -0.04em; }
.block-p { margin-top: 8px; max-width: 34em; font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }

/* ---------- Test page: header ---------- */
.banner { margin-top: 6px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); font-size: 15px; font-weight: 600; line-height: 1.3; }
.banner b { font-weight: 800; }
.t-head { padding-top: 10px; }
.h1 { margin-top: 4px; font-size: clamp(30px, 8.4vw, 64px); line-height: 1; font-weight: 800; letter-spacing: -0.045em; text-wrap: balance; }
.params { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 12px; font-size: 14px; color: var(--ink-2); }
.params i { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-3); }
.params a { font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.params.sec-only { display: none; margin-top: 6px; }
.passes { margin-top: 6px; font: 400 12.5px/1.3 var(--mono); color: var(--ink-3); }
.resume { margin-top: 16px; }
.resume p { font-size: 16px; font-weight: 600; }
.resume div { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.resume .btn { padding: 0 12px; font-size: 15.5px; white-space: nowrap; }

/* ---------- Test page: one question per screen ---------- */
.quiz { position: relative; margin-top: 18px; }
.progress { position: sticky; top: 0; z-index: 20; margin: 0 calc(-1 * var(--gut)); padding: 10px var(--gut) 12px; background: rgba(27, 31, 39, .94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.progress p { font: 500 13px/1 var(--mono); color: var(--ink-2); }
.progress p b { color: var(--ink); font-weight: 500; }
.ticks { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 3px; height: 6px; margin-top: 8px; }
.ticks i { border-radius: 1px; background: var(--surface-2); }
.ticks i.on { background: var(--ink); }
.ticks i.cur { background: var(--ink-3); }

/* The engine's own progress bar and error box: the theme draws its own. */
.quiz-engine-progress, .quiz-engine-errors { display: none !important; }
.quiz-engine-form { margin: 0; }
/* One scroll per answer, the theme's. 200 ms after an answer the engine scrolls to the next question minus its 12 px gap
   and this offset; the theme still hides that question (display: none), so the engine measures it at 0 and only nudged
   the page 12 px up, 50 ms before the theme scrolled it back: the jolt after every answer (Lex's check, 2026-11-23).
   -12px makes the engine's move a no-op; the result block it scrolls to is visible and lands at its top. */
:root:has(.test-page) { --quiz-engine-scroll-offset: -12px; }
/* focus and anchors stop below the sticky share bar (Designer, 2026-11-23: ~58 px phone, ~70 px desktop) */
html:has(.sharebar) { scroll-padding-top: 64px; }
.quiz-engine-question { display: none; min-width: 0; margin: 0; padding: 14px 0 0; border: 0; }
/* Before the theme script runs, the first question is the current one: the page must arrive in the state the script
   will set, or showing it pushes the intro and "About this test" ~500 px down (CLS 0.33-0.40 on a phone, Lex 2026-11-23).
   The script marks the form .qz-on in its first show(). */
.quiz-engine-question.qz-current, .quiz-engine-form:not(.qz-on) > .quiz-engine-question:first-of-type { display: grid; gap: 8px; }
.quiz-engine-question legend { float: left; grid-column: 1 / -1; width: 100%; margin-bottom: 12px; padding: 0; font-size: clamp(23px, 6.4vw, 32px); line-height: 1.18; font-weight: 700; letter-spacing: -0.035em; text-wrap: pretty; }
.quiz-engine-answer { position: relative; display: flex; align-items: center; width: 100%; min-height: 62px; padding: 14px 18px; border: 1px solid var(--hair); border-radius: 14px; background: var(--surface); font-size: 17px; line-height: 1.3; font-weight: 500; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s, transform .15s var(--ease); }
.quiz-engine-answer:active { transform: scale(.99); }
.quiz-engine-answer input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.quiz-engine-answer:has(input:checked) { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.quiz-engine-answer:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 3px; }
.qz-busy .quiz-engine-answer { pointer-events: none; }
.slide { animation: qz-slide .35s var(--ease) both; }
@keyframes qz-slide { from { opacity: 0; transform: translateY(14px); } }

/* Name step: the theme's heading, the engine's label and field. */
.quiz-engine-name-prompt.qz-current { display: block; }
.name-h { font-size: clamp(24px, 6.6vw, 34px); line-height: 1.12; font-weight: 800; letter-spacing: -0.04em; text-wrap: balance; }
.quiz-engine-name-prompt label { display: block; margin-top: 22px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.quiz-engine-name-prompt input { width: 100%; height: 56px; margin-top: 6px; padding: 0 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-size: 18px; font-weight: 600; outline: none; }
.quiz-engine-name-prompt input:focus { border-color: var(--ink); }
.quiz-engine-name-prompt input:focus-visible { box-shadow: 0 0 0 1px var(--ink); }
.quiz-engine-submit { display: none; width: 100%; height: 54px; margin-top: 18px; border: 0; border-radius: 12px; background: var(--ink); color: var(--on-ink); font-size: 17px; font-weight: 700; cursor: pointer; transition: background-color .15s, transform .15s var(--ease); }
.qz-on-name .quiz-engine-submit { display: flex; align-items: center; justify-content: center; }
.quiz-engine-submit:active { transform: scale(.985); }
.err { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; align-items: start; margin-top: 18px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.err svg { width: 22px; height: 22px; }
.err p { font-size: 15.5px; font-weight: 700; line-height: 1.3; }
.back { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; padding: 10px 10px 10px 0; border: 0; background: none; font-size: 15px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.back svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.intro { margin-top: 26px; max-width: 34em; font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.intro p + p { margin-top: .6em; }

/* States: start (question 1 under the header, intro, about open, other tests),
   test (about folded, intro and other tests gone), result (run gone). */
.test-page[data-state="test"] .quiz { min-height: 100svh; }
.test-page[data-state="test"] .intro,
.test-page[data-state="test"] .others { display: none; }
.test-page[data-state="result"] .quiz .progress,
.test-page[data-state="result"] .quiz-engine-form,
.test-page[data-state="result"] .back,
.test-page[data-state="result"] .intro,
.test-page[data-state="result"] .resume,
.test-page[data-state="result"] .passes,
.test-page[data-state="result"] .params:not(.sec-only) { display: none; }
.test-page[data-state="result"] .params.sec-only { display: flex; }

.test-page[data-state="result"] .stage { display: none; }

/* ---------- Share bar: sticky on the phone ---------- */
.sharebar { position: sticky; top: 0; z-index: 30; margin: 10px calc(-1 * var(--gut)) 0; padding: 6px var(--gut); background: rgba(27, 31, 39, .94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.share { display: flex; gap: 5px; }
.share .nets { display: contents; }
.sbig { flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; height: 46px; padding: 0 10px; border: 0; border-radius: 12px; background: var(--ink); color: var(--on-ink); font-size: 14.5px; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; cursor: pointer; transition: background-color .15s; }
.sbig svg { width: 16px; height: 16px; flex: none; }
.sico { flex: none; display: grid; place-items: center; width: 32px; height: 46px; border: 0; border-radius: 10px; background: var(--surface); color: var(--ink); cursor: pointer; transition: background-color .15s; }
.sico svg { width: 17px; height: 17px; fill: currentColor; }
.sico[data-share="download_card"] svg { fill: none; }
@media (max-width: 389px) { .sbig { padding: 0 8px; font-size: 14px; } .sbig svg { display: none; } }

/* ---------- Result report ---------- */
.result { position: relative; padding-top: 10px; }
.proto { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font: 400 11.5px/1.4 var(--mono); color: var(--ink-3); }
.proto > span { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; }
.proto i { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
.proto > span > span { white-space: nowrap; }
.rname { container-type: inline-size; margin-top: 8px; }
.rname h2 { font-weight: 800; font-size: min(74px, calc(100cqi / (var(--len) * 0.6))); line-height: .95; letter-spacing: -0.055em; white-space: nowrap; outline: none; }
.rname.long h2 { white-space: normal; font-size: min(max(38px, min(52px, calc(100cqi / (var(--half) * 0.62)))), calc(100cqi / (var(--word) * 0.62))); text-wrap: balance; }
.ix { font: 500 11px/1 var(--mono); color: var(--ink-3); margin-right: 6px; }
/* a1b2c3: circle and the leading numbers (two on the phone) */
.lead { display: grid; grid-template-columns: 108px minmax(0, 1fr); align-items: center; gap: 16px; margin-top: 10px; }
.circle svg { display: block; width: 100%; height: auto; overflow: visible; }
.stats { display: grid; gap: 5px; }
.stat b { display: block; font-weight: 800; font-size: 46px; line-height: .9; letter-spacing: -0.06em; }
.stat b small, .hero b small { font-size: .5em; letter-spacing: -0.02em; }
.stat > span { display: block; margin-top: 3px; font-size: 13px; line-height: 1.2; color: var(--ink-2); }
.stat.second b { font-size: 27px; color: var(--ink-2); }
.stat.minor { display: none; align-items: baseline; gap: 8px; }
.stat.minor b { font-size: 22px; color: var(--ink-2); }
.stat.minor > span { margin: 0; }
/* 123: gauge on a full-width panel in the value colour */
.hero { display: grid; grid-template-columns: 132px minmax(0, 1fr); align-items: center; gap: 12px; margin: 10px calc(-1 * var(--gut)) 0; padding: 10px var(--gut); background: var(--c); color: var(--t); }
.hero .gauge { width: 100%; }
.hero b { display: block; font-weight: 800; font-size: 68px; line-height: .9; letter-spacing: -0.06em; white-space: nowrap; }
.hero p { margin-top: 4px; font-size: 14px; font-weight: 600; line-height: 1.2; }
.gauge svg { display: block; width: 100%; height: auto; overflow: visible; }
/* abc: shares that add up to 100% — one stacked bar */
.shares { margin: 12px calc(-1 * var(--gut)) 0; }
.stack { display: flex; gap: 3px; height: 64px; }
.seg { position: relative; display: flex; align-items: center; padding: 0 10px; min-width: 0; background: var(--c); color: var(--t); overflow: hidden; transform-origin: left; }
.seg b { font-weight: 800; font-size: 26px; line-height: 1; letter-spacing: -0.05em; white-space: nowrap; }
.seg b small { font-size: .5em; }
.seg.win b { font-size: 40px; }
.seg.win { box-shadow: inset 0 -4px 0 var(--ink); }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; padding: 0 var(--gut); font-size: 13px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 9px; height: 9px; border-radius: 2px; background: var(--c); }
.legend .win { font-weight: 700; color: var(--ink); }
/* abc: a number that does not fit its segment is hidden there and shown in the legend (fixText in result.js) */
.seg.hid b { visibility: hidden; }
html .test-page .main.shares .stack.nonum { height: 20px; }
.legend b { display: none; margin-left: 4px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); }
.legend .lv b { display: inline; }
.legend .win b { font-weight: 800; }
.shares-note { padding: 0 var(--gut); margin-top: 2px; font: 400 11.5px/1.3 var(--mono); color: var(--ink-3); }
/* a-b: one track per pair, both poles named; the fill runs from the middle to the winning pole */
.pairs { display: grid; gap: 8px; margin-top: 10px; }
.pair-l { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; font-weight: 600; line-height: 1.2; color: var(--ink-3); }
.pairs:has(> .pair:nth-child(4)) { gap: 6px; }
.pair-l .w { color: var(--ink); font-weight: 800; }
.ptrack { position: relative; height: 14px; margin-top: 4px; border-radius: 3px; background: var(--surface); }
.ptrack::after { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; background: var(--ink-3); }
.ptrack .fill { position: absolute; top: 0; bottom: 0; background: var(--c); }
.ptrack .fill.r { border-radius: 0 3px 3px 0; }
.ptrack .fill.l { border-radius: 3px 0 0 3px; }
/* the pair's number: the winning pole's strength, at the fill tip (position set inline by result.js) */
.ptrack .pn { position: absolute; top: 50%; transform: translateY(-50%); font-size: 13px; line-height: 1; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: #ffffff; white-space: nowrap; }
/* Hit line and fun-scale bars */
.hit { margin-top: 12px; font-size: 23px; line-height: 1.12; font-weight: 800; letter-spacing: -0.04em; text-wrap: balance; }
.hit .chip { display: inline-block; padding: 0 .2em .05em; border-radius: .12em; background: var(--c); color: var(--t); white-space: nowrap; font-variant-numeric: tabular-nums; }
.bars { display: grid; gap: 6px; margin: 12px calc(-1 * var(--gut)) 0; }
.bar-l { padding: 0 var(--gut); font-size: 13.5px; line-height: 1.22; font-weight: 600; letter-spacing: -0.015em; text-wrap: balance; }
.bar { position: relative; height: 42px; margin-top: 4px; background: var(--surface); overflow: hidden; }
.bar .fill { position: absolute; left: 0; top: 0; bottom: 0; min-width: 4px; background: var(--c); transform-origin: left; }
.bar .n { position: absolute; left: var(--gut); top: 50%; transform: translateY(-50%); font-weight: 800; font-size: 32px; line-height: 1; letter-spacing: -0.06em; color: var(--t); }
.bar .n small { font-size: .5em; letter-spacing: -0.02em; }
.bar .tick { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(255, 255, 255, .08); }
.verdict { margin-top: 10px; font-size: 14px; line-height: 1.42; color: var(--ink-2); text-wrap: pretty; }
.verdict p + p { margin-top: .5em; }
.r-dom { margin-top: 4px; font: 500 11.5px/1.3 var(--mono); color: var(--ink-3); text-align: right; }
/* Reveal: one sweep down the report */
.scanline { position: absolute; left: calc(-1 * var(--gut)); right: calc(-1 * var(--gut)); top: 0; height: 2px; z-index: 5; background: var(--ink); box-shadow: 0 0 14px 2px rgba(242, 244, 247, .45); pointer-events: none; opacity: 0; }
.scanline::before { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 64px; background: linear-gradient(to top, rgba(242, 244, 247, .09), transparent); }
.scanning .scanline { animation: qz-sweep var(--dur, 1.5s) cubic-bezier(.45, 0, .55, 1) both; }
.scanning .lit { animation: qz-lit .25s ease-out both; animation-delay: var(--at, 0s); }
.scanning .fill.lit, .scanning .seg.lit { animation: qz-grow .7s var(--ease) both; animation-delay: var(--at, 0s); }
.ptrack .fill.l.lit { transform-origin: right; }
.ptrack .fill.r.lit { transform-origin: left; }
@keyframes qz-sweep { 0% { top: 0; opacity: 1; } 90% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
@keyframes qz-lit { from { opacity: 0; } }
@keyframes qz-grow { from { transform: scaleX(0); } }
/* The engine's own pieces of the result that the design replaces. */
.quiz-engine-share, .quiz-engine-result-image { display: none !important; }

/* Short phone (375x667, 360x740): the same report, denser */
@media (max-width: 599px) and (max-height: 759px) {
  .result { padding-top: 6px; }
  .rname { margin-top: 4px; }
  .lead, .hero, .pairs { margin-top: 6px; }
  .result .shares { margin-top: 8px; }
  .result .stack { height: 54px; }
  .result .seg.win b { font-size: 34px; }
  .result .bar-l { font-size: 12.5px; line-height: 1.15; letter-spacing: -0.02em; }
  .rname.long h2 { line-height: .9; }
  .hit { margin-top: 8px; font-size: 21px; }
  .bars { margin-top: 8px; gap: 4px; }
  .bar { height: 34px; margin-top: 3px; }
  .bar .n { font-size: 27px; }
  .verdict { margin-top: 8px; line-height: 1.38; }
}

/* ---------- Below the result ---------- */
.again-row { margin-top: 28px; }
.retake { width: 100%; }
.quiz-engine-cta { margin-top: 40px; padding: 22px 18px; border-radius: 18px; background: var(--surface); }
.quiz-engine-cta h3 { font-size: 26px; line-height: 1.08; font-weight: 800; letter-spacing: -0.04em; }
.quiz-engine-cta p { margin-top: 8px; max-width: 34em; font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }
.quiz-engine-cta-button { display: flex; align-items: center; justify-content: center; width: 100%; height: 54px; margin-top: 18px; padding: 0 24px; border-radius: 12px; background: var(--ink); color: var(--on-ink); font-size: 17px; font-weight: 700; transition: background-color .15s, transform .15s var(--ease); }
.quiz-engine-cta-button:active { transform: scale(.985); }
.reread-n { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.reread-n div { padding: 14px; border-radius: 14px; background: var(--surface); }
.reread-n b { display: block; font-weight: 800; font-size: 40px; line-height: 1; letter-spacing: -0.06em; }
.reread-n b small { font-size: .5em; letter-spacing: -0.02em; }
.reread-n span { display: block; margin-top: 6px; font-size: 13px; line-height: 1.25; color: var(--ink-2); }
.reread-d { margin-top: 8px; font: 400 12.5px/1.3 var(--mono); color: var(--ink-3); }
.shares.in-block { margin-left: 0; margin-right: 0; }
.dist .stack { height: 48px; }
.dist .seg b, .dist .seg.win b { font-size: 20px; }
.dist-list { display: grid; gap: 6px; margin-top: 12px; }
.dist-list li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; align-items: center; gap: 10px; font-size: 15px; color: var(--ink-2); }
.dist-list i { width: 10px; height: 10px; border-radius: 2px; background: var(--c); }
.dist-list b { font: 500 15px var(--mono); color: var(--ink-2); }
.dist-list .own { color: var(--ink); font-weight: 700; }
.dist-list .own b { color: var(--ink); }

/* CoreTypes strip on the phone: shows after 50 px of scrolling the result, never on the first screen */
.ctstrip { position: fixed; left: 6px; right: 6px; bottom: 6px; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 40px; padding: 5px 5px 5px 12px; border-radius: 11px; background: var(--surface-2); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .7); font-size: 13px; font-weight: 600; transform: translateY(calc(100% + 12px)); opacity: 0; visibility: hidden; transition: transform .32s var(--ease), opacity .2s ease-out, visibility 0s linear .32s; }
.ctstrip.on { transform: none; opacity: 1; visibility: visible; transition: transform .32s var(--ease), opacity .2s ease-out, visibility 0s; }
.ctstrip span { line-height: 1.2; text-wrap: balance; }
.ctstrip a { flex: none; padding: 6px 12px; border-radius: 8px; background: var(--ink); color: var(--on-ink); font-size: 13px; font-weight: 700; white-space: nowrap; }
@media (max-width: 999px) {
  .with-strip .ch-foot { padding-bottom: 56px; }
  html:has(.ctstrip.on) { scroll-padding-bottom: 56px; }
}

/* ---------- Story card: the phone's first screen (390 wide) scaled 2.7692x to 1080x1920 ---------- */
.story-holder { position: fixed; left: -12000px; top: 0; pointer-events: none; }
.card.story { position: relative; width: 1080px; height: 1920px; overflow: hidden; background: var(--canvas); color: var(--ink); }
.story .in { --gut: 16px; position: absolute; left: 0; top: 0; width: 390px; height: 693.33px; padding: 46px 16px; display: flex; flex-direction: column; transform: scale(2.7692); transform-origin: 0 0; }
.story .top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.story .brand { display: inline-flex; align-items: center; gap: .32em; font-weight: 800; font-size: 15px; letter-spacing: -0.045em; }
.story .brand svg { width: 1.2em; height: 1.2em; flex: none; }
.story .top > span:last-child { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 500 11px var(--mono); color: var(--ink-3); }
.story .proto { margin-top: 12px; }
.story .rname.long h2 { line-height: .9; }
.story .s-claim { margin-top: 14px; font-size: 17px; line-height: 1.15; font-weight: 800; letter-spacing: -0.035em; text-wrap: balance; }
.story .s-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 10px; font: 500 12px/1 var(--mono); color: var(--ink-2); }
.story .s-foot b { font: 800 17px/1.1 var(--sans); letter-spacing: -0.03em; color: var(--ink); }

/* ---------- About this test ---------- */
.about { margin-top: 44px; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.about summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; font-size: 20px; font-weight: 800; letter-spacing: -0.03em; cursor: pointer; list-style: none; }
.about summary::-webkit-details-marker { display: none; }
.about summary svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--ink-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.about[open] summary svg { transform: rotate(180deg); }
/* Before the start and on the result the block is simply open: a heading, not a toggle. */
.test-page:not([data-state="test"]) .about summary { min-height: 0; padding: 18px 0 10px; cursor: default; pointer-events: none; }
.test-page:not([data-state="test"]) .about summary svg { display: none; }
.about .prose { max-width: 38em; margin-top: 0; padding-bottom: 22px; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.about .prose h2 { display: none; }
.about .prose h3 { margin-top: 18px; font-size: 16.5px; font-weight: 700; color: var(--ink); }
.about .prose p + p { margin-top: 8px; }
.about .quiz-engine-references h2 { display: block; margin-top: 18px; font-size: 16.5px; font-weight: 700; color: var(--ink); }
.about .quiz-engine-references ol { display: grid; gap: 6px; margin-top: 8px; padding-left: 1.1em; list-style: decimal; font-size: 14px; line-height: 1.45; color: var(--ink-3); }
.about .quiz-engine-references a { color: var(--ink-3); }
.about .quiz-engine-attribution { margin-top: 18px; font-weight: 600; color: var(--ink); }
.rate { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 14px; }
.rate > span { font: 400 13px var(--mono); color: var(--ink-3); }
/* Lex Rating widget, restyled by the theme only (Designer, 2026-11-22; DESIGN.md "Test rating"):
   28 px stars on the phone, 24 px from 1000 px; a 44 px tall hit area without changing the visible
   size; hover lights the stars up to the pointer (fine pointers only, so a tap never sticks). The
   size variable is set inline by the plugin, hence !important. */
.rate .lex-rating-wp { --lex-rating-wp-star-size: 28px !important; }
.rate .lex-rating-wp__stars-input { top: -8px; height: calc(100% + 16px); }
.rate .lex-rating-wp__value { font: 400 13px var(--mono); color: var(--ink-2); }
@media (hover: hover) and (pointer: fine) {
  .rate .lex-rating-wp__stars:has(.lex-rating-wp__star-hit:nth-child(1):hover) .lex-rating-wp__stars-fg { width: 20% !important; }
  .rate .lex-rating-wp__stars:has(.lex-rating-wp__star-hit:nth-child(2):hover) .lex-rating-wp__stars-fg { width: 40% !important; }
  .rate .lex-rating-wp__stars:has(.lex-rating-wp__star-hit:nth-child(3):hover) .lex-rating-wp__stars-fg { width: 60% !important; }
  .rate .lex-rating-wp__stars:has(.lex-rating-wp__star-hit:nth-child(4):hover) .lex-rating-wp__stars-fg { width: 80% !important; }
  .rate .lex-rating-wp__stars:has(.lex-rating-wp__star-hit:nth-child(5):hover) .lex-rating-wp__stars-fg { width: 100% !important; }
}

/* ---------- Generic page (until each page type gets its own template) ---------- */
.page-main { padding-top: 24px; }
.page-h1 { font-size: 40px; line-height: 1.05; font-weight: 800; letter-spacing: -0.045em; text-wrap: balance; }
.prose { margin-top: 20px; max-width: 40em; color: var(--ink-2); }
.prose p + p { margin-top: 1em; }
.prose a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }

/* ---------- Tablet column ---------- */
@media (min-width: 600px) {
  html.pg .wrap { max-width: 640px; }
  html.pg .cards { grid-template-columns: 1fr 1fr; }
  html.pg .home-page .secs, html.pg .home-page .pbar { margin-left: 0; margin-right: 0; }
  html.pg .home-page .sec-l { padding: 0; }
  html.pg .home-page .sbar, html.pg .home-page .pbar { border-radius: 4px; }
  html.pg .home-page .sbar .n, html.pg .home-page .pbar .n { left: 16px; }
  html.pg .home-page .answers { grid-template-columns: 1fr 1fr; }
  html.pg .home-page .opt { min-height: 64px; }
  html.pg .catalog-page .pbar { margin-left: 0; margin-right: 0; border-radius: 4px; }
  html.pg .catalog-page .pbar .n { left: 16px; }
  html.pg .service-page .calc .bar { margin-left: 0; margin-right: 0; border-radius: 4px; }
  html.pg .service-page .calc .n { left: 16px; }
}

/* ---------- Desktop ---------- */
@media (min-width: 1000px) {
  html.pg { --gut: 48px; }
  html.pg .ch-head .wrap, html.pg .ch-foot .wrap { padding: 0 48px; }
  html.pg .ch-head .wrap { height: 76px; }
  html.pg .lg { font-size: 23px; }
  html.pg .ch-foot { margin-top: 88px; }
  html.pg .ch-foot .wrap { grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 56px; align-items: start; padding-top: 34px; padding-bottom: 48px; }
  html.pg .ch-foot .ch-copy { grid-column: 1 / -1; }
  html.pg .ch-lang { justify-self: end; margin-top: -12px; }
  html.pg .ch-lang > button { margin: 0 -10px 0 0; }
  html.pg .ch-lang .ch-pop { left: auto; right: -10px; }
  html.pg .page-h1 { font-size: 64px; }
  html.pg .wrap { max-width: 1240px; }
  html.pg .stage > .intro, html.pg .stage > .quiz { max-width: 820px; }
  html.pg .stage .intro { font-size: 17.5px; }
  html.pg .test-page[data-state="test"] .quiz { min-height: 0; }
  html.pg .quiz { margin-top: 40px; }
  html.pg .t-head { padding-top: 28px; }
  html.pg .h1 { font-size: 64px; }
  html.pg .params { font-size: 15px; }
  html.pg .progress { position: static; margin: 0; padding: 0 0 14px; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  html.pg .quiz-engine-question legend { font-size: 34px; }
  html.pg .quiz-engine-question.qz-current, html.pg .quiz-engine-form:not(.qz-on) > .quiz-engine-question:first-of-type { grid-template-columns: 1fr 1fr; gap: 10px; }
  html.pg .quiz-engine-answer { min-height: 76px; font-size: 17.5px; }
  html.pg .quiz-engine-name-prompt.qz-current { max-width: 560px; }
  html.pg .qz-on-name .quiz-engine-submit, html.pg .err { max-width: 560px; }
  html.pg .block { margin-top: 64px; }
  html.pg .block-h { font-size: 32px; }
  html.pg .cards { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  html.pg .about summary { font-size: 22px; min-height: 72px; }
  html.pg .test-page:not([data-state="test"]) .about summary { font-size: 26px; padding: 26px 0 12px; min-height: 0; }
  html.pg .about .prose { max-width: 44em; }
  html.pg .rate .lex-rating-wp { --lex-rating-wp-star-size: 24px !important; }
  html.pg .rate .lex-rating-wp__stars-input { top: -10px; height: calc(100% + 20px); }

  /* Result on the desktop: two columns, no sticky panels, no strip. Scoped to the
     page so the story card (outside it) keeps the phone layout. */
  /* the share bar sticks to the top on the desktop too (Lex, 2026-11-23), on the canvas tint like the phone */
  html.pg .test-page .sharebar { margin: 18px calc(-1 * var(--gut)) 0; padding: 10px var(--gut); }
  html.pg .test-page .data > .bars:first-child { margin-top: 0; }
  html.pg:has(.sharebar) { scroll-padding-top: 80px; }
  html.pg .test-page .share { gap: 8px; }
  html.pg .test-page .sbig { flex: none; height: 50px; padding: 0 26px; font-size: 16px; }
  html.pg .test-page .sico { width: 50px; height: 50px; border-radius: 12px; }
  html.pg .test-page .sico svg { width: 19px; height: 19px; }
  html.pg .test-page .r-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); grid-template-areas: "proto proto" "name data" "main data" "verdict data" "dom data"; grid-template-rows: auto auto auto auto 1fr; column-gap: 72px; padding-top: 22px; }
  html.pg .test-page .r-grid > .proto { grid-area: proto; font-size: 13px; }
  html.pg .test-page .r-grid > .rname { grid-area: name; margin-top: 18px; }
  html.pg .test-page .r-grid > .main { grid-area: main; align-self: start; }
  html.pg .test-page .r-grid > .data { grid-area: data; align-self: start; margin-top: 18px; }
  html.pg .test-page .r-grid > .verdict { grid-area: verdict; align-self: start; margin-top: 26px; font-size: 17px; line-height: 1.5; max-width: 30em; }
  html.pg .test-page .r-grid > .r-dom { grid-area: dom; text-align: left; font-size: 13px; }
  html.pg .test-page .rname h2 { font-size: min(116px, calc(100cqi / (var(--len) * 0.6))); }
  html.pg .test-page .rname.long h2 { font-size: min(max(56px, min(84px, calc(100cqi / (var(--half) * 0.62)))), calc(100cqi / (var(--word) * 0.62))); }
  html.pg .test-page .lead { grid-template-columns: 240px minmax(0, 1fr); gap: 30px; margin-top: 26px; }
  html.pg .test-page .stat b { font-size: 88px; }
  html.pg .test-page .stat.second b { font-size: 48px; }
  html.pg .test-page .stat.minor { display: flex; }
  html.pg .test-page .stat.minor b { font-size: 28px; }
  html.pg .test-page .stat > span { font-size: 15px; }
  html.pg .test-page .hero { margin: 26px 0 0; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; padding: 20px 26px; border-radius: 6px; }
  html.pg .test-page .hero b { font-size: 112px; }
  html.pg .test-page .hero p { font-size: 17px; }
  html.pg .test-page .shares { margin: 26px 0 0; }
  html.pg .test-page .shares.in-block { margin: 16px 0 0; }
  html.pg .test-page .stack { height: 88px; }
  html.pg .test-page .seg { padding: 0 14px; }
  html.pg .test-page .seg b { font-size: 34px; }
  html.pg .test-page .seg.win b { font-size: 56px; }
  html.pg .test-page .legend, html.pg .test-page .shares-note { padding: 0; }
  html.pg .test-page .legend { font-size: 15px; }
  html.pg .test-page .pairs { gap: 16px; margin-top: 26px; }
  html.pg .test-page .pair-l { font-size: 17px; }
  html.pg .test-page .ptrack { height: 26px; }
  html.pg .test-page .ptrack .pn { font-size: 17px; }
  html.pg .test-page .main.shares .stack.nonum { height: 28px; }
  html.pg .test-page .hit { margin-top: 0; font-size: 38px; }
  html.pg .test-page .bars { margin: 20px 0 0; gap: 14px; }
  html.pg .test-page .bar-l { padding: 0; font-size: 16.5px; }
  html.pg .test-page .bar { height: 72px; margin-top: 8px; border-radius: 4px; }
  html.pg .test-page .bar .n { left: 20px; font-size: 54px; }
  html.pg .test-page .scanline { left: 0; right: 0; }
  html.pg .test-page .below { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); column-gap: 72px; align-items: start; }
  html.pg .test-page .below > * { grid-column: 1 / -1; }
  html.pg .test-page .below .reread { grid-column: 1; }
  html.pg .test-page .below .dist { grid-column: 2; }
  html.pg .test-page .below:has(.reread[hidden]) .dist { grid-column: 1 / -1; }
  html.pg .test-page .quiz-engine-cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "h a" "p a"; align-items: center; column-gap: 40px; margin-top: 72px; padding: 34px 40px; }
  html.pg .test-page .quiz-engine-cta h3 { grid-area: h; font-size: 32px; }
  html.pg .test-page .quiz-engine-cta p { grid-area: p; }
  html.pg .test-page .quiz-engine-cta-button { grid-area: a; width: auto; margin-top: 0; }
  html.pg .test-page .again-row { margin-top: 40px; }
  html.pg .test-page .retake { width: auto; }
  html.pg .test-page .reread-n b { font-size: 52px; }
  html.pg .test-page .dist .seg b, html.pg .test-page .dist .seg.win b { font-size: 24px; }
  html.pg .ctstrip { display: none; }

  /* Home on the desktop: site heading and today's test as one scene */
  html.pg .home-page .top { display: grid; grid-template-columns: minmax(0, 1fr) 540px; column-gap: 64px; align-items: baseline; padding-top: 24px; }
  html.pg .home-page .h1 { flex: none; font-size: 32px; }
  html.pg .home-page .lead { margin-top: 0; font-size: 17px; }
  html.pg .home-page .day { margin-top: 28px; grid-template-columns: minmax(0, 1fr) 540px; column-gap: 64px; grid-template-areas: "t s" "m s" "r s"; grid-template-rows: auto auto 1fr; }
  html.pg .home-page .d-side { align-self: start; }
  html.pg .home-page .d-r { margin-top: 26px; }
  html.pg .home-page .rul-main { margin-top: 6px; }
  html.pg .home-page .rul-rows > div:nth-child(n+2), html.pg .home-page .r-cap { display: block; }
  html.pg .home-page .rul { height: 30px; }
  html.pg .home-page .rul b { font-size: 20px; }
  html.pg .home-page .d-title a { font-size: min(max(56px, min(96px, calc(100cqi / (var(--half) * 0.54)))), calc(100cqi / (var(--word) * 0.6))); }
  html.pg .home-page .d-meta { margin-top: 18px; font-size: 17px; }
  html.pg .home-page .d-q { margin-top: 0; padding: 22px; border-radius: 18px; background: var(--surface); }
  html.pg .home-page .d-q .opt { background: var(--surface-2); border-color: transparent; }
  html.pg .home-page .d-q .opt[aria-checked="true"] { background: var(--ink); }
  html.pg .home-page .d-q .ticks i { background: var(--surface-3); }
  html.pg .home-page .d-q .ticks i.on { background: var(--ink); }
  html.pg .home-page .d-q .ticks i.cur { background: var(--ink-3); }
  html.pg .home-page .q-text { font-size: 26px; }
  html.pg .home-page .answers { gap: 8px; }
  html.pg .home-page .opt { min-height: 76px; font-size: 17px; }
  html.pg .home-page .d-x { margin-top: 26px; }
  html.pg .home-page .d-x p { font-size: 17px; }
  html.pg .home-page .block { margin-top: 64px; }
  html.pg .home-page .secs-wrap { margin-top: 44px; }
  html.pg .home-page .secs-wrap > div:first-child { display: flex; align-items: baseline; gap: 20px; }
  html.pg .home-page .cap-s { margin-top: 0; }
  html.pg .home-page .secs { margin-top: 18px; gap: 8px; }
  html.pg .home-page .secs.two { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(var(--rows), auto); grid-auto-flow: column; column-gap: 48px; }
  html.pg .home-page .sec { display: grid; grid-template-columns: 220px minmax(0, 1fr); align-items: center; gap: 24px; }
  html.pg .home-page .secs.two .sec { grid-template-columns: 200px minmax(0, 1fr); gap: 16px; }
  html.pg .home-page .secs.two .sec-l { font-size: 18px; }
  html.pg .home-page .secs.two .sec-l svg { display: none; }
  html.pg .home-page .sec-l { font-size: 20px; }
  html.pg .home-page .sbar { height: 46px; margin-top: 0; }
  html.pg .home-page .sbar .n b { font-size: 32px; }
  html.pg .home-page .cards { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  html.pg .home-page .passed { display: grid; grid-template-columns: 280px minmax(0, 1fr); column-gap: 40px; align-items: center; }
  html.pg .home-page .passed[hidden] { display: none; }
  html.pg .home-page .pbar { margin-top: 0; height: 56px; }
  html.pg .home-page .pbar .n { left: 20px; font-size: 46px; }
  html.pg .home-page .prose-about { display: grid; grid-template-columns: 280px minmax(0, 1fr); column-gap: 40px; margin-top: 80px; }
  html.pg .home-page .prose-about h2 { grid-column: 1; grid-row: 1 / span 6; }
  html.pg .home-page .prose-about p { grid-column: 2; font-size: 17px; }
  html.pg .home-page .prose-about p:first-of-type { margin-top: 0; }

  /* Catalogue on the desktop: title and lead in one row, sections four per row, cards three per row */
  html.pg .catalog-page .head { padding-top: 28px; }
  html.pg .catalog-page .cat-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); column-gap: 64px; align-items: end; }
  html.pg .catalog-page .cat-intro .crumbs { grid-column: 1 / -1; }
  html.pg .catalog-page .h1 { font-size: max(48px, min(96px, calc(100cqi / (var(--len) * 0.64)))); }
  html.pg .catalog-page .lead { font-size: 17px; margin: 0 0 10px; }
  html.pg .catalog-page .secs-h { margin-top: 36px; justify-content: flex-start; gap: 20px; }
  html.pg .catalog-page .secs, html.pg .catalog-page .secs.one { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 24px; row-gap: 12px; margin-top: 14px; }
  html.pg .catalog-page .sbar { height: 30px; }
  html.pg .catalog-page .sbar .n b { font-size: 20px; }
  html.pg .catalog-page .block { margin-top: 56px; }
  html.pg .catalog-page .passed { display: grid; grid-template-columns: 280px minmax(0, 1fr); column-gap: 40px; align-items: center; }
  html.pg .catalog-page .passed[hidden] { display: none; }
  html.pg .catalog-page .pbar { margin-top: 0; height: 56px; }
  html.pg .catalog-page .pbar .n { left: 20px; font-size: 46px; }
  html.pg .catalog-page .prose-about { display: grid; grid-template-columns: 280px minmax(0, 1fr); column-gap: 40px; margin-top: 80px; }
  html.pg .catalog-page .prose-about h2 { grid-column: 1; grid-row: 1 / span 6; }
  html.pg .catalog-page .prose-about p { grid-column: 2; margin-top: 0; font-size: 17px; }

  /* Service pages on the desktop: sticky contents on the left (240 px), text column on the right */
  html.pg .service-page .page-h { padding-top: 36px; }
  html.pg .service-page .h1 { font-size: min(64px, calc(100cqi / (var(--word) * 0.62))); }
  html.pg .service-page .lead-box > p:first-child { font-size: 19px; margin-top: 18px; }
  html.pg .service-page .doc { display: grid; grid-template-columns: 240px minmax(0, 1fr); column-gap: 72px; align-items: start; margin-top: 36px; }
  html.pg .service-page .doc.no-toc { grid-template-columns: minmax(0, 1fr); }
  html.pg .service-page .toc { position: sticky; top: 24px; margin-top: 0; padding: 0; border: 0; }
  html.pg .service-page .toc ol { margin-top: 10px; gap: 0; border-left: 1px solid var(--hair); }
  html.pg .service-page .toc a { padding: 7px 0 7px 14px; margin-left: -1px; border-left: 2px solid transparent; font-size: 15px; }
  html.pg .service-page .toc a[aria-current] { border-left-color: var(--ink); }
  html.pg .service-page .prose section:first-child { margin-top: 0; }
  html.pg .service-page .prose h2 { font-size: 28px; }
  html.pg .service-page .prose p, html.pg .service-page .prose li { font-size: 17px; }
  html.pg .service-page .calc .lbl { font-size: 16.5px; }
  html.pg .service-page .calc .bar { height: 72px; margin-top: 8px; }
  html.pg .service-page .calc .n { left: 20px; font-size: 54px; }
  html.pg .service-page .e404 .line { font-size: 34px; }
  html.pg .service-page .fresh { margin-top: 64px; }
}

/* ---------- Narrow desktop, 1000-1199 px: the result's left column is only ~300 px at the full
   desktop layout, so the leading number ("100%") ran into the fun-scale column (Architect's site
   check, 2026-11-22). Here the data column narrows and the circle, gauge and numbers follow the
   window width; from 1200 px the full desktop sizes apply. ---------- */
@media (min-width: 1000px) and (max-width: 1199px) {
  html.pg .test-page .r-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); column-gap: 48px; }
  html.pg .test-page .lead { grid-template-columns: 160px minmax(0, 1fr); gap: 22px; }
  html.pg .test-page .stat b { font-size: 6.5vw; }
  html.pg .test-page .stat.second b { font-size: 3.6vw; }
  html.pg .test-page .stat.minor b { font-size: 2.4vw; }
  html.pg .test-page .hero { grid-template-columns: 150px minmax(0, 1fr); gap: 18px; padding: 18px 22px; }
  html.pg .test-page .hero b { font-size: 6.5vw; }
  html.pg .test-page .hit { font-size: 32px; }
  html.pg .test-page .bar .n { font-size: 46px; }
}
