/* Direction D: the reader layout of C at full page width. Text keeps a readable line by
   type size; the column beside it carries what the reader works with (the 3D model on a
   cause page, the live list of causes on a symptom page). Sources are small numbers in
   the text that open a card, with the full list at the end. */

@font-face{font-family:'Source';font-weight:400;font-display:swap;src:url(fonts/source-sans-3-400.woff2) format('woff2')}
@font-face{font-family:'Source';font-weight:400;font-display:swap;src:url(fonts/source-sans-3-400-cyrillic.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Source';font-weight:600;font-display:swap;src:url(fonts/source-sans-3-600.woff2) format('woff2')}
@font-face{font-family:'Mono';font-weight:400;font-display:swap;src:url(fonts/ibm-plex-mono-400.woff2) format('woff2')}
@font-face{font-family:'Serif';font-weight:400;font-style:normal;font-display:swap;src:url(fonts/source-serif-4-latin-400-normal.woff2) format('woff2')}
@font-face{font-family:'Serif';font-weight:400;font-style:normal;font-display:swap;src:url(fonts/source-serif-4-latin-ext-400-normal.woff2) format('woff2');unicode-range:U+0100-02AF,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Serif';font-weight:400;font-style:italic;font-display:swap;src:url(fonts/source-serif-4-latin-400-italic.woff2) format('woff2')}
@font-face{font-family:'Serif';font-weight:600;font-style:normal;font-display:swap;src:url(fonts/source-serif-4-latin-600-normal.woff2) format('woff2')}
@font-face{font-family:'Serif';font-weight:600;font-style:italic;font-display:swap;src:url(fonts/source-serif-4-latin-600-italic.woff2) format('woff2')}

/* Themes. "auto" follows the system; the reader can pin light, grey or dark. */
:root,[data-theme=light]{color-scheme:light;--bg:#ffffff;--panel:#f3f4f6;--raise:#ffffff;--ink:#181b1f;--mid:#555d68;--faint:#5f6670;--rule:#e2e5e9;--line:#c9ced5;--acc:#0b6b65;--acc-ink:#ffffff;--acc-soft:#e1f0ee;--off:#626973;--shadow:0 10px 32px rgba(20,24,30,.14),0 1px 3px rgba(20,24,30,.08)}
[data-theme=grey]{color-scheme:light;--bg:#e9ebee;--panel:#dee1e5;--raise:#f4f5f7;--ink:#1f2328;--mid:#525a64;--faint:#5c636d;--rule:#d0d4da;--line:#b9bfc7;--acc:#0a625d;--acc-ink:#ffffff;--acc-soft:#d0e5e2;--off:#636a73;--shadow:0 10px 32px rgba(20,24,30,.16),0 1px 3px rgba(20,24,30,.1)}
[data-theme=dark]{color-scheme:dark;--bg:#141619;--panel:#1c1f23;--raise:#23272c;--ink:#e6e9ec;--mid:#a0a8b2;--faint:#8b939d;--rule:#2c3137;--line:#414850;--acc:#6dcfc4;--acc-ink:#0d1f1d;--acc-soft:#16302e;--off:#848c96;--shadow:0 12px 36px rgba(0,0,0,.5),0 1px 3px rgba(0,0,0,.4)}
@media(prefers-color-scheme:dark){[data-theme=auto]{color-scheme:dark;--bg:#141619;--panel:#1c1f23;--raise:#23272c;--ink:#e6e9ec;--mid:#a0a8b2;--faint:#8b939d;--rule:#2c3137;--line:#414850;--acc:#6dcfc4;--acc-ink:#0d1f1d;--acc-soft:#16302e;--off:#848c96;--shadow:0 12px 36px rgba(0,0,0,.5),0 1px 3px rgba(0,0,0,.4)}}

/* Reader settings land here as variables. --measure is the text line; --page the whole page. */
:root{--size:23px;--lh:1.6;--measure:37em;--body:'Serif',Georgia,serif;--ui:Source,system-ui,sans-serif;--hdr:60px;--page:1320px;--gap:56px}
[data-font=sans]{--body:Source,system-ui,sans-serif}

*{box-sizing:border-box}
[hidden]{display:none!important}
html{scroll-padding-top:24px}
body{margin:0;background:var(--bg);color:var(--ink);font:400 16px/1.5 var(--ui);transition:background .2s,color .2s}
a{color:var(--acc);text-decoration:none}
a:hover{text-decoration:underline;text-underline-offset:3px}
button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}
svg.i{width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
:focus-visible{outline:2px solid var(--acc);outline-offset:2px;border-radius:4px}

/* Header: wordmark, search, account. It slides away while the reader scrolls down. */
.bar{position:fixed;top:0;left:0;right:0;z-index:30;height:var(--hdr);display:flex;align-items:center;gap:20px;padding:0 24px;background:var(--bg);border-bottom:1px solid transparent;transition:transform .25s ease,border-color .2s}
.bar.lift{border-bottom-color:var(--rule)}
.bar.away{transform:translateY(-100%)}
.brand{color:var(--ink);font:600 20px/1 var(--ui);letter-spacing:-.015em}
.brand:hover{text-decoration:none}
.search{flex:0 1 520px;margin:0 auto;display:flex;align-items:center;gap:10px;height:42px;padding:0 16px;border-radius:21px;background:var(--panel);color:var(--mid);cursor:text}
.search:focus-within{outline:2px solid var(--acc)}
.search input{all:unset;flex:1;min-width:0;font:400 16px var(--ui);color:var(--ink)}
.search input::placeholder{color:var(--mid)}
.login{display:flex;align-items:center;gap:8px;color:var(--mid);font:400 15.5px var(--ui);white-space:nowrap}
.login:hover{color:var(--ink);text-decoration:none}
.bar .sbtn{display:none}

/* The page: a text column and the column beside it. */
main{padding:calc(var(--hdr) + 48px) 32px 120px 96px}
article{max-width:var(--page);margin:0 auto;font:400 var(--size)/var(--lh) var(--body)}
.band{display:grid;grid-template-columns:minmax(0,var(--measure)) minmax(0,1fr);column-gap:var(--gap);align-items:start}
.band>.side{position:sticky;top:24px;transition:top .25s;font-size:16px;line-height:1.5}
body.hdr .band>.side{top:calc(var(--hdr) + 20px)}
.text{max-width:var(--measure)}
.crumb{font:400 15px/1.4 var(--ui);color:var(--mid);margin:0 0 12px}
.crumb a{color:var(--mid)}
.crumb a:hover{color:var(--ink)}
.title{display:flex;align-items:flex-start;gap:24px}
h1{font:600 2.3em/1.1 var(--ui);letter-spacing:-.022em;margin:0 0 .3em;flex:1}
.dek{font:400 1.14em/1.45 var(--body);color:var(--mid);margin:0 0 1.3em}
article p,article li{text-wrap:pretty}
article p{margin:0 0 1em}
h2{font:600 1.36em/1.25 var(--ui);letter-spacing:-.012em;margin:2.1em 0 .6em}
h3{font:600 1em/1.35 var(--ui)}
article ul,article ol{padding-left:1.2em}
article li{margin:0 0 .4em}

/* Source numbers: small, in the text, nothing else. Pointing at one opens its card. */
sup{line-height:0;font:600 .6em/0 var(--ui);vertical-align:.65em;white-space:nowrap;color:var(--faint);margin-left:1px}
sup a{color:var(--acc);padding:0 1px}
sup a:hover,sup a.on{text-decoration:underline;text-underline-offset:2px}
.cn{font:italic 400 .8em var(--ui);color:var(--mid);white-space:nowrap}
#srccard{position:absolute;z-index:40;width:340px;background:var(--raise);color:var(--ink);border:1px solid var(--rule);border-radius:10px;box-shadow:var(--shadow);padding:12px 14px 12px;font:400 14.5px/1.4 var(--ui)}
#srccard[hidden]{display:none}
#srccard .row+.row{margin-top:10px;padding-top:10px;border-top:1px solid var(--rule)}
#srccard .n{font-weight:600;color:var(--mid);font-size:13px}
#srccard .t{display:block;color:var(--ink);font-weight:600;margin:1px 0 2px}
#srccard .acts{display:flex;align-items:center;gap:16px;font-size:14px}
#srccard .acts a{display:inline-flex;align-items:center;gap:5px}
#srccard .acts svg.i{width:15px;height:15px}
#srccard .d{color:var(--mid)}

/* The rail: contents and reading settings, then the page actions. */
.rail{position:fixed;left:16px;top:50%;transform:translateY(-50%);z-index:20;display:flex;flex-direction:column;gap:2px;padding:6px;border-radius:14px;transition:opacity .3s}
.rail.dim{opacity:.35}
.rail:hover,.rail:focus-within,.rail.dim:hover{opacity:1}
.rail hr{width:20px;border:0;border-top:1px solid var(--rule);margin:6px auto}
.ib{position:relative;display:grid;place-items:center;width:40px;height:40px;border-radius:10px;color:var(--mid)}
.ib:hover{color:var(--ink);background:var(--panel);text-decoration:none}
.ib[aria-pressed=true],.ib[aria-expanded=true]{color:var(--acc);background:var(--acc-soft)}
.tip{position:fixed;z-index:60;pointer-events:none;background:var(--ink);color:var(--bg);font:500 13px/1.3 var(--ui);padding:6px 9px;border-radius:6px;white-space:nowrap}
.tip[hidden]{display:none}

/* Panels opened from the rail. */
.panel{position:fixed;z-index:45;left:76px;top:50%;transform:translateY(-50%);width:328px;max-height:calc(100vh - 40px);overflow:auto;background:var(--raise);border:1px solid var(--rule);border-radius:14px;box-shadow:var(--shadow);padding:16px 16px 18px;font:400 14.5px/1.4 var(--ui)}
.panel[hidden]{display:none}
.panel h2{font:600 15px/1.3 var(--ui);margin:0 0 12px;display:flex;align-items:center;justify-content:space-between}
.panel .close{display:grid;place-items:center;width:30px;height:30px;border-radius:8px;color:var(--mid)}
.panel .close:hover{background:var(--panel);color:var(--ink)}
.grp{margin:0 0 16px}
.grp:last-child{margin:0}
.grp>span{display:block;font:600 13px/1.3 var(--ui);color:var(--mid);margin:0 0 7px}
.seg{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:3px;padding:3px;border-radius:10px;background:var(--panel)}
.seg button{height:34px;border-radius:7px;color:var(--mid);font-size:14px;display:flex;align-items:center;justify-content:center;gap:6px;padding:0 8px}
.seg button:hover{color:var(--ink)}
.seg button[aria-pressed=true]{background:var(--raise);color:var(--ink);font-weight:600;box-shadow:0 1px 2px rgba(0,0,0,.12),0 0 0 1px var(--rule)}
.seg .serif{font-family:'Serif',serif;font-size:15.5px}
.themes{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.themes button{display:flex;flex-direction:column;align-items:center;gap:6px;font-size:13px;color:var(--mid);padding:0}
.sw{display:grid;place-items:center;width:100%;height:46px;border-radius:9px;font:400 17px 'Serif',serif;border:1px solid var(--rule);overflow:hidden}
.sw.light{background:#fff;color:#181b1f}
.sw.grey{background:#e9ebee;color:#1f2328}
.sw.dark{background:#141619;color:#e6e9ec;border-color:#2c3137}
.sw.auto{background:linear-gradient(135deg,#fff 0 50%,#141619 50% 100%);color:transparent}
.sw.auto svg.i{color:#555d68;background:#fff;border-radius:50%;padding:3px;width:26px;height:26px}
.themes button[aria-pressed=true]{color:var(--ink);font-weight:600}
.themes button[aria-pressed=true] .sw{outline:2px solid var(--acc);outline-offset:2px}
.sz button{font-family:'Serif',serif;color:var(--ink)}
.toc ol{list-style:none;margin:0;padding:0}
.toc li{margin:0}
.toc a{display:block;padding:7px 10px;border-radius:7px;color:var(--mid)}
.toc a:hover{background:var(--panel);color:var(--ink);text-decoration:none}
.toc a[aria-current=true]{color:var(--acc);font-weight:600;background:var(--acc-soft)}
.who p{margin:0 0 10px;color:var(--mid)}
.who .k{display:flex;align-items:center;gap:8px;color:var(--ink);font-weight:600;margin:0 0 4px}
.who .k i{width:10px;height:10px;border-radius:3px;background:var(--acc)}
body.authors article [data-by]{position:relative}
body.authors article [data-by]::before{content:"";position:absolute;left:-18px;top:.25em;bottom:.25em;width:3px;border-radius:2px;background:var(--acc)}

/* Shared controls: chips for answers, buttons. */
.chips{display:flex;flex-wrap:wrap;gap:6px}
.chip{min-height:36px;padding:6px 14px;border-radius:18px;border:1px solid var(--line);color:var(--ink);font:400 15px/1.3 var(--ui);text-align:left}
.chip:hover{border-color:var(--mid)}
.chip[aria-pressed=true]{background:var(--acc-soft);border-color:var(--acc);font-weight:600}
.chip.none{color:var(--mid);border-style:dashed}
.chip.none[aria-pressed=true]{background:none;border-color:var(--line);font-weight:400}
.btn{display:inline-flex;align-items:center;gap:8px;height:42px;padding:0 18px;border-radius:21px;background:var(--acc);color:var(--acc-ink);font:600 15.5px/1 var(--ui)}
.btn:hover{text-decoration:none;filter:brightness(1.08)}
.btn svg.i{width:18px;height:18px;stroke-width:2}
.btn:disabled{background:var(--panel);color:var(--off);cursor:default;filter:none}
.lnk{display:inline-flex;align-items:center;gap:6px;color:var(--mid);font:400 14.5px/1 var(--ui);padding:6px 8px;border-radius:8px}
.lnk:hover{color:var(--ink);background:var(--panel)}
.lnk svg.i{width:16px;height:16px}

/* Finder: the steps a reader answers, in the text column. */
.finder{font:400 16px/1.5 var(--ui);margin:0 0 2em}
.fhead{display:flex;align-items:baseline;gap:14px;margin:2.1em 0 .4em}
.fhead h2{margin:0;flex:1;font-size:calc(var(--size)*1.36)}
.fhead .prog{color:var(--mid);font-size:15px}
.steps{list-style:none;margin:0;padding:0;counter-reset:st}
.step{position:relative;padding:0 0 0 52px;margin:0}
.step::before{content:"";position:absolute;left:15px;top:34px;bottom:0;width:2px;background:var(--rule)}
.step:last-child::before{display:none}
.step .num{position:absolute;left:0;top:10px;width:32px;height:32px;border-radius:50%;display:grid;place-items:center;font:600 15px var(--ui);border:2px solid var(--line);color:var(--mid);background:var(--bg)}
.step.done .num{background:var(--acc);border-color:var(--acc);color:var(--acc-ink)}
.step.done .num svg.i{width:18px;height:18px;stroke-width:2.4}
.step.cur .num{border-color:var(--acc);color:var(--acc)}
.shead{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;min-height:52px;padding:6px 0}
.shead h3{margin:0;font-size:18px;flex:1}
.step.todo .shead h3{color:var(--mid);font-weight:400}
.shead .ans{color:var(--ink);font-size:15.5px}
.shead .ans b{font-weight:600}
.sbody{padding:2px 0 26px}
.sbody>p{margin:0 0 14px;color:var(--mid);max-width:42em}
.sbody>p b{color:var(--ink);font-weight:600}
.sfoot{display:flex;align-items:center;gap:12px;margin-top:16px}
.step.todo .sbody{display:none}
.step.done:not(.open) .sbody{display:none}
.step .later{color:var(--off);font-size:15px}
@media (max-width:900px){.step .later{flex-basis:100%;margin-top:-6px}.shead h3{font-size:17px}}

/* Step 1: the car seen from above, wheels as buttons. */
.locpick{display:grid;grid-template-columns:auto minmax(0,1fr);gap:20px 36px;align-items:center}
.pattern{font-size:15.5px;color:var(--mid)}
.pattern b{display:block;font-size:20px;color:var(--ink);font-weight:600;margin-bottom:4px}
.pattern p{margin:0 0 6px}

/* Answer choices with what each answer means. */
.choices{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:10px}
.choice{display:flex;flex-direction:column;gap:3px;padding:13px 15px;border:1px solid var(--line);border-radius:12px;text-align:left;font-size:15px;color:var(--mid)}
.choice.haspic{align-items:center;text-align:center;gap:8px}
.choice.haspic svg{width:84px;height:84px;color:var(--ink)}
.choice b{color:var(--ink);font-size:16px;font-weight:600}
.choice:hover{border-color:var(--mid)}
.choice[aria-pressed=true]{border-color:var(--acc);background:var(--acc-soft);box-shadow:inset 0 0 0 1px var(--acc)}

/* Step 4: checks done one after the other, each with its own answer. */
.checks{display:grid;gap:0;border-top:1px solid var(--rule)}
.check{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;padding:14px 0;border-bottom:1px solid var(--rule)}
.check .q{font-weight:600;color:var(--ink)}
.check .q small{display:block;font-weight:400;color:var(--mid);font-size:14.5px;margin-top:1px}
.check .res{font-size:14.5px;color:var(--mid);display:flex;gap:6px;align-items:flex-start}
.check .res svg.i{width:17px;height:17px;margin-top:1px}
.check .res.found{color:var(--acc)}

/* The brake line from pedal to wheel, joints tested from the wheel upwards. */
.line{position:relative;margin:6px 0 0;padding-left:0}
.line .pipe{position:absolute;left:19px;top:22px;bottom:22px;width:3px;background:var(--line)}
.pt{position:relative;display:grid;grid-template-columns:40px minmax(0,1fr);gap:0 14px;align-items:start}
.pt .dot{grid-row:1/3;display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:var(--bg);z-index:1}
.part .dot i{width:16px;height:16px;border-radius:5px;background:var(--line);transform:rotate(45deg)}
.part{padding:8px 0}
.part .nm{font-weight:600;color:var(--ink);display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-height:40px}
.part .nm a{color:inherit}
.part .nm a:hover{color:var(--acc)}
.part .st{font:400 14px/1.3 var(--ui);padding:2px 9px;border-radius:12px;background:var(--panel);color:var(--mid);font-weight:400}
.part .note{grid-column:2;color:var(--mid);font-size:14.5px;margin-top:-6px}
.part.cleared .nm{color:var(--off);font-weight:400}
.part.cleared .dot i{background:var(--rule)}
.part.na .nm{color:var(--off);font-weight:400}
.part.na .dot i{background:var(--rule)}
.part.holding .dot i{background:var(--acc)}
.part.holding .st{background:var(--acc);color:var(--acc-ink);font-weight:600}
.part.chainend .dot i{border-radius:50%;transform:none;background:var(--acc)}
.joint{padding:4px 0 10px}
.joint .dot{width:40px;height:40px}
.joint .dot b{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;border:2px solid var(--line);font:600 14px var(--ui);color:var(--mid);background:var(--bg)}
.joint.answered .dot b{background:var(--ink);border-color:var(--ink);color:var(--bg)}
.joint .q{font-weight:600;color:var(--ink);padding-top:8px}
.joint .chips{grid-column:2;margin-top:8px}
.joint .res{grid-column:2;margin-top:8px;font-size:14.5px;color:var(--mid)}

/* Causes beside the steps: every cause with its state and why. */
.causes{font:400 15.5px/1.45 var(--ui)}
.causes h2{font-size:20px;margin:0 0 2px}
.chead{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:0 0 12px}
.chead .cnt{color:var(--mid);font-size:15px;white-space:normal}
.chead{align-items:center;flex-wrap:wrap;row-gap:4px}
.chead h2{order:1}
.chead .nbtn{order:2;margin-left:auto}
.chead .cnt{order:3;flex-basis:100%}
.nbtn{display:inline-flex;align-items:center;gap:7px;padding:8px 14px;border:1px solid var(--line);border-radius:999px;font:500 15px/1 var(--ui);color:var(--ink);white-space:nowrap}
.nbtn:hover{border-color:var(--mid)}
.nbtn.on{border-color:var(--acc);background:var(--acc-soft);color:var(--ink)}
.causes .fband{margin:0 0 18px;padding:4px 0 8px;border-bottom:1px solid var(--line)}
.causes .fhead{margin:.4em 0 .4em}
.causes .fhead .prog{margin-right:auto}
.meter{display:flex;gap:3px;margin:0 0 14px}
.meter i{flex:1;height:5px;border-radius:3px;background:var(--rule);transition:background .2s}
.meter i.fit{background:var(--line)}
.meter i.found{background:var(--acc)}
.cgroup{margin:0 0 6px}
.cgroup>h3{font:600 13.5px/1.3 var(--ui);color:var(--mid);margin:14px 0 6px;display:flex;justify-content:space-between}
.crow{border-top:1px solid var(--rule)}
.crow:last-child{border-bottom:1px solid var(--rule)}
.crow>button{display:grid;grid-template-columns:22px minmax(0,1fr) 20px;gap:2px 10px;align-items:start;width:100%;text-align:left;padding:10px 2px}
.crow .ic{grid-row:1/3;margin-top:2px}
.crow .ic svg.i{width:20px;height:20px}
.crow .nm{font-weight:600;color:var(--ink)}
.crow .why{grid-column:2;color:var(--mid);font-size:14.5px;line-height:1.4}
.crow .chev{grid-row:1;grid-column:3;color:var(--faint);transition:transform .15s}
.crow .chev svg.i{width:18px;height:18px}
.crow[aria-expanded=true] .chev{transform:rotate(180deg)}
.crow .more{display:none;padding:0 2px 14px 34px;color:var(--ink);font-size:15px}
.crow[aria-expanded=true] .more{display:block}
.crow .more p{margin:0 0 10px;font:400 15.5px/1.5 var(--body)}
.crow .more .only{display:inline-block;font-size:13.5px;color:var(--mid);margin:0 0 6px}
.crow .go{display:inline-flex;align-items:center;gap:6px;font-weight:600}
.crow .go svg.i{width:16px;height:16px}
.crow.found .ic{color:var(--acc)}
.crow.found .nm{color:var(--acc)}
.crow.fits .ic{color:var(--mid)}
.crow.out .ic{color:var(--off)}
.crow.out .nm{color:var(--mid);font-weight:400}
.crow.out .why{color:var(--faint)}
.next{margin:0 0 16px;padding:14px 16px;border-radius:12px;background:var(--acc-soft);border:1px solid var(--acc)}
.next p{margin:0 0 10px;color:var(--ink)}
.next p b{font-weight:600}
.next[hidden]{display:none}
.fbar{display:none}

/* Cause page: test and fix at the top, the model beside them. */
.tf{display:grid;grid-template-columns:1fr 1fr;gap:0;border:1px solid var(--rule);border-radius:14px;margin:0 0 2em;font:400 15.5px/1.45 var(--ui);overflow:hidden}
.tf>section{padding:18px 20px 20px}
.tf>section+section{border-left:1px solid var(--rule)}
.tf h2{font-size:18px;margin:0 0 12px;display:flex;align-items:center;gap:8px}
.tf h2 svg.i{color:var(--acc)}
.tf ol{list-style:none;margin:0;padding:0;counter-reset:tf}
.tf li{counter-increment:tf;position:relative;padding:0 0 0 34px;margin:0 0 14px}
.tf li:last-child{margin-bottom:0}
.tf li::before{content:counter(tf);position:absolute;left:0;top:0;width:24px;height:24px;border-radius:50%;background:var(--panel);color:var(--mid);display:grid;place-items:center;font:600 13px var(--ui)}
.tf li.got::before{content:"";background:var(--acc) url(check.svg) center/14px no-repeat}
.tf li b{color:var(--ink);font-weight:600}
.tf li b.h{display:block}
.tf .out{display:grid;gap:6px;margin-top:8px}
.tf .out div{display:grid;grid-template-columns:auto 1fr;gap:8px;padding:8px 10px;border-radius:9px;background:var(--panel);color:var(--mid);font-size:14.5px}
.tf .out div em{font-style:normal;color:var(--ink);font-weight:600;white-space:nowrap}
.tf .out div em svg.i{width:15px;height:15px;vertical-align:-2px;margin-right:4px;color:var(--acc);stroke-width:2.2}
.tf .det{display:inline-block;margin-top:12px;font-size:14.5px}
.tf .mine{font-size:14px;color:var(--acc);font-weight:600;margin-top:4px;display:flex;gap:6px;align-items:center}
.tf .mine svg.i{width:15px;height:15px}
.from{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;margin:0 0 1.2em;padding:10px 14px;border-radius:10px;background:var(--panel);font:400 14.5px/1.4 var(--ui);color:var(--mid)}
.from[hidden]{display:none}
.from b{color:var(--ink);font-weight:600}
.from a{margin-left:auto;display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.from a svg.i{width:16px;height:16px}

/* Figures. */
figure{margin:1.6em 0;font-size:16px}
figcaption{font:400 14.5px/1.45 var(--ui);color:var(--mid);margin-top:10px}
.pads{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.fig{background:var(--panel);border-radius:10px;padding:12px}
.fig svg{display:block;width:100%;height:auto}
.fig svg text{font:13px var(--ui);fill:var(--mid)}
.state{font:400 14.5px/1.4 var(--ui);color:var(--mid);margin:6px 0 0}
.state.load::before{content:"";display:inline-block;width:10px;height:10px;margin-right:8px;border-radius:50%;border:2px solid var(--rule);border-top-color:var(--acc);animation:spin .8s linear infinite;vertical-align:-1px}
@keyframes spin{to{transform:rotate(1turn)}}
.flow{display:grid;gap:10px;font:400 15px/1.45 var(--ui)}
.node{border:1px solid var(--rule);border-radius:10px;padding:11px 13px;color:var(--mid)}
.node b{display:block;color:var(--ink);font-weight:600;margin-bottom:2px}
.node.here{border-color:var(--acc);background:var(--acc-soft)}
.split{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.arrow{display:flex;justify-content:center;color:var(--faint)}
.tb{overflow-x:auto;margin:.6em 0 1em}
table{border-collapse:collapse;width:100%;font:400 15.5px/1.45 var(--ui)}
th{text-align:left;font-weight:600;font-size:14px;color:var(--mid);padding:8px 16px 8px 0;border-bottom:1px solid var(--ink)}
td{padding:10px 16px 10px 0;border-bottom:1px solid var(--rule);vertical-align:top}
td:first-child{font-weight:600}
.further{font:400 16px/1.5 var(--ui)}

/* Model panel beside the text. */
.model figure{margin:0}
.v3{position:relative;height:min(58vh,540px);border-radius:12px;background:var(--panel);touch-action:none}
.v3 canvas{display:block;width:100%!important;height:100%!important}
.v3{overflow:hidden}
.band>*{min-width:0}
.v3-label{position:absolute;transform:translateY(-50%);font:13px var(--ui);padding:2px 8px;border-radius:6px;background:rgba(20,23,28,.84);color:#e8eaed;border:1px solid rgba(255,255,255,.16);cursor:pointer;white-space:nowrap}
.v3-label[aria-pressed=true]{background:#e8eaed;color:#14171c}
.v3-lead{stroke:rgba(120,128,138,.6)}
.ctl{display:flex;flex-wrap:wrap;align-items:center;gap:10px 18px;margin:12px 0 0;font:400 14.5px/1.3 var(--ui)}
.ctl .g{display:flex;align-items:center;gap:8px}
.ctl .lab{color:var(--mid)}
.ctl .seg{display:inline-grid;grid-auto-columns:auto}
.ctl .seg button{padding:0 12px;height:30px}
.ctl input[type=range]{width:150px;accent-color:var(--acc)}
.ctl .ib{width:34px;height:34px;border:1px solid var(--rule)}
.ctl .chip{min-height:34px;padding:0 13px;font-size:14.5px}
.grow{display:none}
.model .state{min-height:1.4em}

/* Sources at the end: the full list, two columns where the page is wide. */
.refs{font:400 14.5px/1.45 var(--ui);color:var(--mid);padding-left:2.4em;margin:0;columns:3 24em;column-gap:var(--gap)}
.refs li{margin:0 0 9px;padding:2px 6px;border-radius:5px;break-inside:avoid;scroll-margin-top:40vh}
.refs li::marker{color:var(--mid);font-weight:600}
.refs li:target,.refs li.on{background:var(--acc-soft);color:var(--ink)}
.refs a{word-break:break-word}

/* Hover card for linked parts. */
a[data-card]{text-decoration:underline;text-decoration-style:dotted;text-decoration-color:var(--faint);text-underline-offset:4px;color:inherit}
a[data-card]:hover{color:var(--acc);text-decoration-color:var(--acc)}
#card{position:absolute;z-index:50;width:280px;padding:12px 14px;background:var(--raise);border:1px solid var(--rule);border-radius:10px;box-shadow:var(--shadow);font:400 14.5px/1.4 var(--ui);color:var(--mid)}
#card b{display:block;color:var(--ink);font-size:15px;margin-bottom:3px}
#card[hidden]{display:none}

@media (max-width:1180px){
  :root{--gap:40px}
  main{padding-left:88px;padding-right:24px}
  .band{grid-template-columns:minmax(0,1.45fr) minmax(0,1fr)}
  .tf{grid-template-columns:1fr}
  .tf>section+section{border-left:0;border-top:1px solid var(--rule)}
}

/* Phones and narrow tablets: one column; the rail becomes a row under the title. */
@media (max-width:900px){
  :root{--hdr:54px}
  .bar{gap:10px;padding:0 10px 0 16px}
  .brand{font-size:19px}
  .search{display:none}
  .bar .sbtn{display:grid;margin-left:auto}
  .login span{display:none}
  .login{width:40px;height:40px;justify-content:center}
  main{padding:calc(var(--hdr) + 20px) 18px 90px}
  .band{display:block}
  .band>.side{position:static}
  h1{font-size:1.8em}
  .rail{position:static;transform:none;flex-direction:row;padding:0;margin:0 0 18px -8px;background:none;opacity:1!important}
  .rail hr{width:1px;height:20px;border:0;border-left:1px solid var(--rule);margin:auto 8px}
  .panel{left:0;right:0;top:auto;bottom:0;transform:none;width:auto;border-radius:16px 16px 0 0;max-height:80vh;padding:14px 18px calc(18px + env(safe-area-inset-bottom))}
  #srccard{width:auto}
  .refs{columns:1}
  .step{padding-left:44px}
  .step::before{left:13px}
  .step .num{width:28px;height:28px;font-size:14px;top:12px}
  .locpick{grid-template-columns:1fr;justify-items:start;gap:12px}
  .choices{grid-template-columns:1fr}
  .choices:has(.haspic){grid-template-columns:repeat(3,1fr);gap:8px}
  .choice.haspic{padding:10px 6px}
  .choice.haspic svg{width:60px;height:60px}
  .choice.haspic b{font-size:14px}
  .causes{margin-top:8px}
  .fbar{position:fixed;left:12px;right:12px;bottom:12px;z-index:25;display:flex;align-items:center;gap:12px;padding:10px 12px 10px 16px;border-radius:14px;background:var(--raise);border:1px solid var(--rule);box-shadow:var(--shadow);font:400 15px/1.3 var(--ui);transition:transform .2s,opacity .2s}
  .fbar.off{transform:translateY(130%);opacity:0;pointer-events:none}
  .fbar .meter{flex:1;margin:0}
  .fbar b{font-weight:600;white-space:nowrap}
  .fbar a{white-space:nowrap;font-weight:600;display:inline-flex;align-items:center;gap:4px}
  .model{margin:0 -18px 1.6em;padding:0 0 4px}
  .model .v3{height:44vh;border-radius:0}
  .model .ctl,.model .state,.model figcaption{padding:0 18px}
  .ctl .long{display:none}
  .ctl input[type=range]{width:96px}
  .split{grid-template-columns:1fr}
  .split>div:empty{display:none}
  .pads{grid-template-columns:1fr}
  .wgrp{display:none}
  td:first-child{white-space:normal}
}
.ctl .short{display:none}
@media (max-width:900px){.ctl .short{display:inline}}
@media (prefers-reduced-motion:reduce){*{transition:none!important}}

/* Page regions: the first band of a cause page puts the model beside both its text parts. */
.band.two{grid-template-rows:auto 1fr}
.band.two>.text.a{grid-column:1;grid-row:1}
.band.two>.side{grid-column:2;grid-row:1/3}
.band.two>.text.b{grid-column:1;grid-row:2}
.band+.band{margin-top:1em}
.wide>*{max-width:var(--measure)}
.wide>.tb{max-width:none}
.srcs{max-width:none}
.srcs>h2{max-width:var(--measure)}
.side.causes{max-height:calc(100vh - 48px);overflow:auto;padding-right:4px;scrollbar-width:thin}
body.hdr .side.causes{max-height:calc(100vh - var(--hdr) - 40px)}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
@media (max-width:900px){.side.causes{max-height:none;overflow:visible}}
@media (max-width:900px){
  .fhead{flex-wrap:wrap;row-gap:4px}
  .fhead h2{flex-basis:100%}
  .shead h3{flex-basis:100%}
  .step.done .shead{padding-bottom:10px}
  .shead .ans{flex:1}
}
.tf .out div .yours{grid-column:1/-1;display:flex;align-items:center;gap:5px;color:var(--acc);font-weight:600;font-size:13.5px}
.tf .out div .yours svg.i{width:14px;height:14px;stroke-width:2.4}
.tf .out div.picked{box-shadow:inset 0 0 0 1.5px var(--acc)}
.crow.soft .ic{color:var(--faint)}
.crow.soft .nm{color:var(--ink);font-weight:500}

/* Finder states added: answers that contradict each other, nothing fitting, two causes no
   test separates. */
.conflict{display:flex;gap:10px;align-items:flex-start;margin:0 0 14px;padding:12px 14px;border-radius:10px;border:1px solid var(--line);background:var(--panel);color:var(--ink);font-size:15px}
.conflict svg.i{flex:none;margin-top:1px;color:var(--mid)}
.next.none{background:var(--panel);border-color:var(--line)}
.next ul{margin:0 0 10px;padding-left:1.1em;color:var(--mid);font-size:14.5px}
.next li{margin:0 0 6px}
.next .edits{display:flex;flex-wrap:wrap;gap:2px 6px;margin-left:-8px}
.check .res svg.i[aria-hidden]{flex:none}
html{scroll-padding-bottom:96px}
@media (max-width:1180px){article{font-size:calc(var(--size) - 2px)}}
@media (max-width:900px){
  article{font-size:calc(var(--size) - 4px)}
  body.fbar-on .finder{padding-bottom:88px}
}
@media (max-width:1180px){.fhead h2{font-size:calc((var(--size) - 2px)*1.36)}}
@media (max-width:900px){.fhead h2{font-size:calc((var(--size) - 4px)*1.36)}}
.sbody>p,.check .q small,.check .res,.joint .res,.part .note,.conflict,.crow .why{max-width:62ch}

/* ---- Symptom pages: one reading column; the causes below the questions use the page's width. */
.solo{max-width:var(--measure);margin:0 auto}
.full{width:min(var(--page),calc(100vw - 128px));margin:2.4em 0 2.4em calc(50% - min(var(--page),calc(100vw - 128px))/2);font:400 16px/1.5 var(--ui)}
.full .why,.full .go,.full .nopage,.full .only,.full .next{font-family:var(--ui)}
.solo.srcs{max-width:var(--measure)}
.solo.srcs .refs{columns:1}
.notice{font:400 15px/1.45 var(--ui);color:var(--ink);background:var(--panel);border-radius:10px;padding:10px 14px}

/* Finder sections: what can be told away from the device, then what needs it. */
.steps>.sec{list-style:none;margin:22px 0 6px;padding:0}
.steps>.sec:first-child{margin-top:4px}
.steps>.sec h3{display:flex;align-items:center;gap:10px;margin:0;font:600 13.5px/1.3 var(--ui);letter-spacing:.02em;color:var(--mid)}
.steps>.sec h3 svg.i{width:18px;height:18px}
.steps>.sec p{margin:2px 0 0 28px;color:var(--mid);font-size:14.5px}
.needs{display:flex;gap:8px;align-items:flex-start;color:var(--ink)!important;background:var(--panel);border-radius:9px;padding:9px 12px;font-size:14.5px}
.needs svg.i{width:17px;height:17px;flex:none;margin-top:1px;color:var(--mid)}
.delta{margin:-6px 0 10px;font-size:14px;color:var(--mid)}
.step.open .delta{margin:12px 0 0}
.step.skipped .num{background:var(--panel);border-color:var(--line);color:var(--mid)}
.step.skipped .num svg.i{width:15px;height:15px}
.shead .ans.sk{color:var(--mid);font-style:italic}
.sfoot{flex-wrap:wrap}
.skipb{color:var(--mid)}
.mgroup{margin:0 0 14px}
.mgroup h4{margin:0 0 7px;font:600 14px/1.3 var(--ui);color:var(--mid)}

/* A diagram of the device with spots to mark. */
.diagram{position:relative;width:100%}
.diagram>svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.diagram>svg .fill{fill:var(--panel);stroke:var(--line);stroke-width:2}
.diagram>svg .soft{fill:none;stroke:var(--line);stroke-width:2;opacity:.7}
.diagram>svg .line{fill:none;stroke:var(--line);stroke-width:4;stroke-linecap:round}
.diagram .orient{position:absolute;left:0;right:0;top:-6px;display:flex;justify-content:center;align-items:center;gap:4px;color:var(--mid);font-size:14.5px}
.diagram .orient svg.i{width:16px;height:16px}
.spot{position:absolute;width:var(--sw);height:var(--sh);padding:0;color:var(--mid)}
.spot .mark{display:grid;place-items:center;width:100%;height:100%;border-radius:9px;background:var(--raise);border:2px solid var(--mid);color:var(--faint);box-shadow:0 1px 2px rgba(0,0,0,.12);transition:background .15s,border-color .15s}
.spot .mark svg.i{width:17px;height:17px;opacity:.45}
.spot .lab{position:absolute;white-space:nowrap;font-size:15px}
.spot.side-left .lab{right:calc(100% + 10px);top:50%;transform:translateY(-50%)}
.spot.side-right .lab{left:calc(100% + 10px);top:50%;transform:translateY(-50%)}
.spot.side-top .lab{bottom:calc(100% + 6px);left:50%;transform:translateX(-50%)}
.spot.side-bottom .lab{top:calc(100% + 6px);left:50%;transform:translateX(-50%)}
.spot:hover .mark{border-color:var(--acc);color:var(--acc)}
.spot:hover .mark svg.i{opacity:.9}
.spot:hover{color:var(--ink)}
.spot[aria-pressed=true]{color:var(--ink);font-weight:600}
.spot[aria-pressed=true] .mark{background:var(--acc);border-color:var(--acc);color:var(--acc-ink)}
.spot[aria-pressed=true] .mark svg.i{opacity:1}
.locpick{grid-template-columns:minmax(0,400px) minmax(0,1fr);padding-top:10px}

/* The causes, inline below the questions: cards in a grid as wide as the page. */
.causes{border-top:1px solid var(--rule);padding-top:22px}
.causes .chead h2{font:600 calc(var(--size)*1.36)/1.25 var(--ui);margin:0}
.causes .meter{max-width:520px}
.causes .next{max-width:var(--measure)}
.cgroup>h3{font:600 14px/1.3 var(--ui);color:var(--mid);margin:22px 0 10px;display:flex;gap:10px}
.cgroup>h3 .gn{color:var(--faint)}
.cgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(360px,1fr));gap:14px}
.ccard{border:1px solid var(--rule);border-radius:12px;padding:14px 16px 16px;display:flex;flex-direction:column;gap:6px}
.ccard .ch{display:flex;align-items:center;gap:10px}
.ccard .ic svg.i{width:20px;height:20px;display:block}
.ccard .nm{font:600 17px/1.3 var(--ui);color:var(--ink)}
a.nm:hover{color:var(--acc)}
.ccard .why{margin:0;font-size:14.5px;color:var(--mid);max-width:none}
.ccard .why b{color:var(--ink);font-weight:600}
.ccard .sum{margin:2px 0 0;font:400 16.5px/1.5 var(--body);color:var(--ink)}
.ccard .only{align-self:flex-start;font-size:13.5px;color:var(--mid);background:var(--panel);border-radius:5px;padding:1px 8px}
.ccard .go{margin-top:auto;padding-top:6px;display:inline-flex;align-items:center;gap:6px;font-weight:600;font-size:15px}
.ccard .go svg.i{width:16px;height:16px}
.ccard .nopage{margin-top:auto;padding-top:6px;color:var(--faint);font-size:14.5px}
.ccard .ph{font-size:12.5px;font-weight:600;color:var(--mid);border:1px dashed var(--line);border-radius:5px;padding:0 6px}
.ccard.found{border-color:var(--acc);box-shadow:inset 0 0 0 1px var(--acc)}
.ccard.found .ic,.ccard.found .nm{color:var(--acc)}
.ccard.fits .ic{color:var(--mid)}
.ccard.match .ic{color:var(--acc)}
.ccard.soft .ic{color:var(--faint)}
.ccard.out{background:var(--panel);border-color:transparent}
.ccard.out .ic{color:var(--off)}
.ccard.out .nm{color:var(--mid);font-weight:500}
.ccard.out .sum{color:var(--mid);font-size:15.5px}

/* The count bar follows the questions on every width. */
.fbar{position:fixed;left:50%;transform:translateX(-50%);bottom:14px;width:min(640px,calc(100vw - 24px));z-index:25;display:flex;align-items:center;gap:14px;padding:10px 12px 10px 16px;border-radius:14px;background:var(--raise);border:1px solid var(--rule);box-shadow:var(--shadow);font:400 15px/1.3 var(--ui);transition:transform .2s,opacity .2s}
.fbar.off{transform:translate(-50%,130%);opacity:0;pointer-events:none}
.fbar .meter{flex:0 0 120px;margin:0}
.fbar b{flex:1;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fbar a{white-space:nowrap;font-weight:600;display:inline-flex;align-items:center;gap:4px}
body.fbar-on .finder{padding-bottom:88px}

@media (max-width:900px){
  .full{width:auto;margin:2em 0}
  .cgrid{grid-template-columns:1fr}
  .locpick{grid-template-columns:1fr}
  .diagram{max-width:340px!important;margin:0 auto}
  .spot .lab{font-size:14px}
  .fbar{left:12px;right:12px;width:auto;transform:none}
  .fbar.off{transform:translateY(130%)}
  .fbar .meter{flex-basis:70px}
}

/* ---- Symptom page layout: the reading column, the questions with the system diagram
   beside them, then the causes; everything starts at the same left edge. */
.symp{max-width:var(--page);margin:0 auto}
.lead{max-width:var(--measure)}
.fband{display:grid;grid-template-columns:minmax(0,var(--measure)) minmax(0,1fr);column-gap:var(--gap);align-items:start}
.sysside{position:sticky;top:24px;margin-top:2.1em;font:400 15px/1.4 var(--ui);transition:top .25s}
body.hdr .sysside{top:calc(var(--hdr) + 16px)}
.symp .full{width:auto;margin:2.4em 0}
.systitle{font:600 16px/1.3 var(--ui);margin:0 0 12px;color:var(--ink)}
.stepsys{display:none}

/* The system diagram: parts in the order the fluid or current runs, each painted with the
   state of the causes that sit there. */
.system{display:flex;flex-direction:column;align-items:stretch}
.srow{display:flex;gap:8px}
.slink{align-self:center;width:2px;height:14px;background:var(--line)}
.snode{position:relative;flex:1;display:flex;flex-direction:column;align-items:flex-start;gap:1px;text-align:left;padding:8px 11px;border-radius:9px;border:1.5px solid var(--line);background:var(--bg);color:var(--ink);font:500 14.5px/1.25 var(--ui);transition:background .15s,border-color .15s,opacity .15s}
.snode .ss{font-size:12.5px;font-weight:400;color:var(--mid)}
.snode[data-state=found]{border-color:var(--acc);background:var(--acc-soft);box-shadow:inset 0 0 0 1px var(--acc);font-weight:600}
.snode[data-state=fit]{border-color:var(--mid)}
.snode[data-state=soft]{border-style:dashed;color:var(--mid)}
.snode[data-state=out]{border-color:var(--rule);background:var(--panel);color:var(--off)}
.snode[data-state=out] .ss{color:var(--off)}
.snode[data-state=none]{border-color:var(--rule);border-style:dotted;color:var(--mid)}
.snode.hl{outline:3px solid var(--acc);outline-offset:2px}
.smark{position:absolute;top:-9px;right:-7px;min-width:22px;height:22px;padding:0 6px;border-radius:11px;background:var(--ink);color:var(--bg);font:600 12px/22px var(--ui);text-align:center}
.sgroup{border:1.5px solid var(--rule);border-radius:12px;padding:8px}
.sgt{display:block;font:600 13px/1.3 var(--ui);color:var(--mid);margin:0 0 6px 2px}
.sboxes{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.sbox{display:flex;flex-direction:column;gap:6px}
.sbt{font:500 12.5px/1.3 var(--ui);color:var(--mid);margin-left:2px}
.skey{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;margin:12px 0 0;font-size:13px;color:var(--mid)}
.skey .k{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.skey i{display:inline-block;width:18px;height:12px;border-radius:3px;border:1.5px solid var(--line)}
.skey i[data-state=found]{border-color:var(--acc);background:var(--acc-soft)}
.skey i[data-state=fit]{border-color:var(--mid)}
.skey i[data-state=soft]{border-style:dashed}
.skey i[data-state=out]{background:var(--panel);border-color:var(--rule)}
.system.compact .snode{padding:5px 8px;font-size:13px}
.system.compact .snode .ss{display:none}
.system.compact .snode:not(:has(.smark)){opacity:.55}

/* Cause cards: the part's picture where the 3D part set has one. */
.ccard{position:relative}
.ccard .pic{position:absolute;top:14px;right:14px;width:96px;height:72px;object-fit:cover;border-radius:8px;background:var(--panel)}
.ccard:has(.pic) .ch,.ccard:has(.pic) .why{padding-right:108px}
.ccard:has(.pic){min-height:110px}
.ccard.hl{outline:3px solid var(--acc);outline-offset:2px}
.meter i.soft{background:var(--line);opacity:.5}
.fbar #fbar-c{white-space:nowrap;color:var(--mid)}
.fbar #fbar-n:empty{display:none}
.locpick{display:block}
.locpick .pattern{margin:8px 0 0;font-size:15.5px;color:var(--mid)}
.locpick .pattern b{font-size:17px;color:var(--ink)}

@media (max-width:1180px){
  .fband{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr)}
}
@media (max-width:900px){
  .fband{display:block}
  .sysside{position:static;margin:1.6em 0 0}
  .stepsys{display:block;margin:0 0 14px;padding:10px;border-radius:10px;background:var(--panel)}
  .fbar #fbar-c{display:none}
  .fbar #fbar-n{white-space:normal}
  .ccard .pic{width:72px;height:54px}
  .ccard:has(.pic) .ch,.ccard:has(.pic) .why{padding-right:82px}
}
.ccard:has(.pic) .why{min-height:50px}
h1,h2,h3,h4,.systitle,.ccard .nm,.snode .sl{text-wrap:balance}

/* Evidence on each cause card: how many reports like the reader's turned out to be this
   cause; the number opens the list of those reports. */
.evw{margin:2px 0 0}
.ev{font:600 14.5px/1.35 var(--ui);color:var(--acc);text-align:left;padding:2px 0}
.ev:hover{text-decoration:underline;text-underline-offset:3px}
.ev:disabled{color:var(--mid);font-weight:400;cursor:default;text-decoration:none}
.ev{display:inline-flex;align-items:center;gap:6px}
.ev svg.i{width:16px;height:16px;transition:transform .15s}
.ev[aria-expanded=true] svg.i{transform:rotate(180deg)}
.evlist{list-style:none;margin:6px 0 4px;padding:0;font:400 14px/1.4 var(--ui);border-top:1px solid var(--rule)}
.evlist li{display:block;padding:7px 0;border-bottom:1px solid var(--rule)}
.evlist .rcar{display:block;color:var(--mid)}
.evlist a{display:inline-flex;align-items:center;gap:5px}
.evlist a svg.i{width:14px;height:14px;flex:none}
.evlist .cf{float:right;margin-left:8px;font-size:12.5px;font-weight:600;color:var(--acc);border:1px solid var(--acc);border-radius:5px;padding:0 6px}
.chips.alts{margin:0 0 12px}
.ccard.out .ev{color:var(--mid)}
.cgrid{align-items:start}

/* The site's own additions to the mock's styles: what the mock wrote inline, the logo, and
   blocks written by people in "who wrote what". */
.seg.sz .a1{font-size:13px}.seg.sz .a2{font-size:16px}.seg.sz .a3{font-size:19px}.seg.sz .a4{font-size:22px}
.fig .state{margin:4px 0 0}
.brand{display:inline-flex;align-items:center}
.who .k.h i{background:var(--mid)}
body.authors article [data-by=h]::before{background:var(--mid)}
.brand .logo{display:block;height:26px;width:auto}
.brand .logo .i{fill:#2b2d6e}.brand .logo .t{fill:#d97706}
[data-theme=dark] .brand .logo .i{fill:#e6e7fb}[data-theme=dark] .brand .logo .t{fill:#ffc552}
@media(prefers-color-scheme:dark){[data-theme=auto] .brand .logo .i{fill:#e6e7fb}[data-theme=auto] .brand .logo .t{fill:#ffc552}}
@media (max-width:900px){.brand .logo{height:22px}}

/* ---- The start page: what is wrong, one search box, the symptoms below. Scoped to .home so the
   names it shares with the reading pages (crumb, chip, causes) keep their own look there. */
main.home{padding:calc(var(--hdr) + 40px) 32px 96px;font:400 16px/1.5 var(--ui)}
/* The logo starts where the page does. */
.bar.home{padding-left:max(32px,calc((100vw - var(--page))/2))}
.home .wrap{max-width:var(--page);margin:0 auto}
.home a{color:var(--acc)}
.home .thumb{width:56px;height:56px;border-radius:10px;background:var(--pic);display:grid;place-items:center;flex:none;overflow:hidden;color:#555d68}
.home .thumb img{width:100%;height:100%;object-fit:contain}
.home .thumb svg.i{width:26px;height:26px}
.home .thumb.ico{background:var(--panel);color:var(--mid)}
.home .crumb{color:var(--mid);font-size:14px;margin:0}
.home .cnt{color:var(--mid);font-size:14px;white-space:nowrap}
.home h2.sec{font:600 20px/1.3 var(--ui);letter-spacing:0;margin:0 0 14px;display:flex;align-items:baseline;gap:10px}
.home h2.sec .cnt{font-weight:400;font-size:15px}
.home mark{background:var(--acc-soft);color:inherit;border-radius:3px;padding:0 1px}
:root,[data-theme=light],[data-theme=grey]{--pic:#eef0f2}
[data-theme=dark]{--pic:#c9ced4}
@media(prefers-color-scheme:dark){[data-theme=auto]{--pic:#c9ced4}}

/* The question and its box. */
.home .ask{max-width:780px;margin:24px 0 44px}
.home .ask h1{font:600 44px/1.1 var(--ui);letter-spacing:-.025em;margin:0 0 18px}
.home .qbox{position:relative}
html:not(.js) .home .qbox{display:none}
.home .q{display:flex;align-items:center;gap:12px;height:64px;padding:0 10px 0 20px;border:2px solid var(--acc);border-radius:16px;background:var(--bg)}
.home .q svg.i{width:24px;height:24px;color:var(--acc)}
.home .q input{flex:1;min-width:0;border:0;outline:0;background:none;font:400 20px var(--ui);color:var(--ink)}
.home .q input::-webkit-search-cancel-button{display:none}
.home .q .clr{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;color:var(--mid)}
.home .q .clr[hidden]{display:none}
.home .q .clr svg.i{color:var(--mid)}
.home .q .clr:hover{background:var(--panel)}
.home .sugg{position:absolute;left:0;right:0;top:calc(100% + 8px);z-index:10;background:var(--raise);border:1px solid var(--rule);border-radius:14px;box-shadow:var(--shadow);padding:6px;max-height:min(520px,62vh);overflow:auto;margin:0;list-style:none}
.home .sugg[hidden]{display:none}
.home .sugg a{display:flex;align-items:center;gap:14px;padding:8px 10px;border-radius:10px;color:var(--ink)}
.home .sugg a:hover,.home .sugg [aria-selected=true] a{background:var(--panel);text-decoration:none}
.home .sugg .thumb{width:48px;height:48px}
.home .sugg .tx{min-width:0;flex:1}
.home .sugg b{font-weight:600;display:block}
.home .sugg .said{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 10px;color:var(--mid)}
.home .sugg q{font:italic 400 15.5px/1.35 var(--body)}
.home .sugg .lg{font-size:13px;color:var(--faint)}
.home .sugg .crumb{display:block}
.home .sugg .r{margin-left:auto;color:var(--mid);font-size:14px;white-space:nowrap;padding-left:8px}
.home .sugg .none{padding:12px 12px 4px;color:var(--ink);font-weight:600}
.home .sugg .h{padding:8px 12px 4px;color:var(--mid);font-size:14px}
.home .devrow{margin-top:16px;display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.home .devrow[hidden]{display:none}
.home .chip{display:inline-flex;align-items:center;gap:7px;height:38px;min-height:0;padding:0 14px;border:1px solid var(--line);border-radius:999px;font:400 15px var(--ui);color:var(--ink);white-space:nowrap}
.home .chip svg.i{width:18px;height:18px;color:var(--mid)}
.home .chip .n{color:var(--faint);font-size:13.5px}
.home .chip:hover{border-color:var(--mid)}
.home .chip[aria-pressed=true]{border-color:var(--acc);background:var(--acc-soft);font-weight:400}
.home .chip[aria-pressed=true] svg.i{color:var(--acc)}

/* While there are few symptoms: each one whole, its causes as pictures. */
.home .feature{font:400 16px/1.5 var(--ui);max-width:none;margin:0;display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);grid-template-areas:"t p" "a p";gap:32px;padding:28px;border:1px solid var(--rule);border-radius:16px;background:var(--raise)}
.home .feature+.feature{margin-top:24px}
.home .feature>.fi{grid-area:t}
.home .feature>.cpics{grid-area:p}
.home .feature>.also{grid-area:a;align-self:start}
.home .feature h2{font:600 34px/1.1 var(--ui);letter-spacing:-.02em;margin:6px 0 10px}
.home .feature h2 a{color:var(--ink)}
.home .feature .dek{font:400 19px/1.45 var(--body);color:var(--mid);margin:0 0 18px}
.home .facts{display:flex;flex-wrap:wrap;gap:6px 18px;color:var(--mid);font-size:15px;margin:0 0 22px}
.home .facts span{display:inline-flex;align-items:center;gap:6px}
.home .facts svg.i{width:17px;height:17px}
.home .open{display:inline-flex;align-items:center;gap:8px;height:44px;padding:0 18px;border-radius:10px;border:1px solid var(--line);color:var(--ink);font-weight:600}
.home .open:hover{border-color:var(--mid);text-decoration:none}
.home .open svg.i{width:18px;height:18px}
.home .cpics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0 -8px;padding:0;list-style:none}
.home .cpics a,.home .cpics .nolink{display:flex;flex-direction:column;gap:8px;padding:8px;border-radius:12px;color:var(--ink);font-size:14px;line-height:1.3;height:100%}
.home .cpics a:hover{background:var(--panel);text-decoration:none}
.home .cpics .ph{aspect-ratio:4/3;border-radius:8px;background:var(--pic);display:grid;place-items:center;overflow:hidden;color:var(--mid)}
.home .cpics .ph img{width:88%;height:88%;object-fit:contain}
.home .also{display:flex;flex-wrap:wrap;gap:10px}
.home .mini{display:flex;align-items:center;gap:12px;padding:8px 16px 8px 8px;border:1px solid var(--rule);border-radius:12px;color:var(--ink)}
.home .mini:hover{border-color:var(--line);text-decoration:none}
.home .mini .thumb{width:44px;height:44px}
.home .mini .thumb svg.i{width:22px;height:22px}
.home .mini b{display:block;font-weight:600}
.home .mini small{color:var(--mid);font-size:13.5px}

/* With many symptoms: the most reported, then every symptom by device and system. */
.home .top{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:0 0 48px;padding:0;list-style:none}
.home .top a{display:flex;gap:14px;align-items:center;padding:12px;border:1px solid var(--rule);border-radius:14px;color:var(--ink);height:100%}
.home .top a:hover{border-color:var(--line);text-decoration:none;background:var(--panel)}
.home .top a>span:last-child{min-width:0}
.home .top b{display:block;font-weight:600;line-height:1.25}
.home .top .crumb{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.home .index{columns:4 260px;column-gap:32px}
.home .index section{break-inside:avoid;margin:0 0 26px}
.home .index section[hidden]{display:none}
.home .index h3{font:600 17px/1.3 var(--ui);margin:0 0 8px;display:flex;align-items:center;gap:8px}
.home .index h3 svg.i{color:var(--mid)}
.home .index summary{display:flex;align-items:baseline;gap:10px;padding:6px 0;border-bottom:1px solid var(--rule);cursor:pointer;list-style:none;color:var(--ink)}
.home .index summary::-webkit-details-marker{display:none}
.home .index summary>span:first-child{flex:1}
.home .index summary svg.i{width:16px;height:16px;color:var(--faint);align-self:center;transition:transform .15s}
.home .index details[open] summary svg.i{transform:rotate(180deg)}
.home .index summary:hover{color:var(--acc)}
.home .index ul{list-style:none;margin:4px 0 10px;padding:0 0 0 12px;border-left:2px solid var(--rule)}
.home .index li a{display:block;padding:4px 0;color:var(--ink)}
.home .index li a:hover{color:var(--acc);text-decoration:none}

@media (max-width:1100px){.home .top{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:900px){
  main.home{padding:calc(var(--hdr) + 16px) 16px 64px}
  .home .ask{margin:8px 0 28px}
  .home .ask h1{font-size:32px;margin-bottom:14px}
  .home .q{height:56px;padding-left:14px;border-radius:14px}
  .home .q input{font-size:17px}
  .home .sugg{max-height:min(520px,calc(100vh - 200px))}
  .home .sugg .r{display:none}
  .home .devrow{flex-wrap:nowrap;overflow-x:auto;margin-right:-16px;padding-right:32px;scrollbar-width:none;mask-image:linear-gradient(to right,#000 calc(100% - 80px),transparent calc(100% - 8px))}
  .bar.home{padding-left:16px}
  .home .feature{grid-template-columns:1fr;grid-template-areas:"t" "p" "a";padding:18px;gap:20px}
  .home .feature h2{font-size:28px}
  .home .cpics{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
  .home .also .mini{flex:1 1 100%}
  .home .top{grid-template-columns:1fr;gap:8px}
}
