/* Neural-operator benchmark post (ScireX). Scoped to .snx; follows the component set and
   brand-guideline colours of the other ZenteiQ Research posts (see dhir-train.css). */
.snx{
  --s-main:#FFFFFF; --s-panel:#F7F7F8; --s-sec:#F2F2F3; --body:#353535;
  --brand:#3C6F78; --brand-h:#254348; --accent:#3C6F78;
  --soft:rgba(60,111,120,.10); --soft-ink:#254348; --soft-line:#A2D9D2;
  --b-panel:#DCDCDC; --b-row:#E5E5E5;
  --c-tr:#3C6F78; --c-fno:#924344; --c-gino:#CCA352; --c-wno:#60C4B5; --c-ref:#987A3D; --c-grey:#AAAAAA;
  --on-brand:#FFFFFF; --ring:0 0 0 3px rgba(60,111,120,.22);
  --ease:cubic-bezier(.2,.7,.2,1);
}
.prose > .snx{max-width:none}
.snx p{margin:0 0 1em}
.snx button{font:inherit;color:inherit}
.snx h2,.snx h3,.snx h4{color:var(--ink);font-weight:600;letter-spacing:-.015em;line-height:1.2}
.snx :focus-visible{outline:none;box-shadow:var(--ring);border-radius:6px}
.snx .dtp{max-width:none}
.snx .dtp p,.snx .dtp li{font-size:18px}
.snx .dtp ul,.snx .dtp ol{padding-left:22px;margin:0 0 1em}
.snx .dtp li{margin:0 0 .45em}
.snx .lead{font-size:21px;line-height:1.6;color:var(--body);max-width:none}
.snx code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.86em;background:var(--s-sec);padding:.1em .35em;border-radius:4px}
.snx .vh{position:absolute;left:-9999px}

/* Key numbers and in-page links */
.snx .stats{display:grid;grid-template-columns:repeat(4,1fr);border-top:1px solid var(--b-panel);border-bottom:1px solid var(--b-panel);margin:26px 0 0}
.snx .stats div{padding:18px 18px 16px 0}
.snx .stats b{display:block;font-size:28px;font-weight:600;color:var(--ink);letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.snx .stats span{font-size:14px;color:var(--sec);line-height:1.4;display:block}
@media (max-width:720px){.snx .stats{grid-template-columns:repeat(2,1fr)}}
.snx .toc,.snx-hero .toc{display:flex;flex-wrap:wrap;gap:8px;margin:26px 0 0}
.snx .toc a,.snx-hero .toc a{font-size:14px;color:var(--sec);text-decoration:none;border:1px solid var(--b-panel,#DCDCDC);border-radius:999px;padding:6px 13px}
.snx .toc a:hover,.snx-hero .toc a:hover{border-color:var(--accent,#3C6F78);color:var(--ink)}

/* Sections */
.snx .sec{padding:64px 0 8px}
.snx .sec h2{font-size:clamp(27px,3.4vw,36px);margin:0 0 16px}
.snx .sec h3.sub{font-size:22px;margin:34px 0 8px}

/* Panels and controls */
.snx .panel{border:1px solid var(--b-panel);border-radius:16px;background:var(--s-panel);padding:24px;margin:24px 0 12px}
.snx .panel > h3{font-size:18px;margin:0 0 4px}
.snx .panel > .sub{font-size:15px;color:var(--sec);margin:0 0 16px}
.snx .seg{display:inline-flex;border:1px solid var(--b-panel);border-radius:10px;padding:3px;background:var(--s-main);gap:2px;flex-wrap:wrap}
.snx .seg button{border:0;background:transparent;padding:7px 13px;border-radius:7px;font-size:14px;color:var(--sec);cursor:pointer;min-height:36px}
.snx .seg button[aria-pressed="true"]{background:var(--soft);color:var(--soft-ink);font-weight:500}
.snx .ctrls{display:flex;flex-wrap:wrap;gap:10px 12px;align-items:center;margin-bottom:16px}
.snx .note{font-size:14px;color:var(--muted);margin:12px 0 0}
.snx .detail{margin-top:14px;font-size:15.5px;min-height:24px;color:var(--body)}
.snx .detail b{color:var(--ink)}
@media (max-width:640px){.snx .panel{padding:16px}}

/* Cards */
.snx .cards3,.snx .goals,.snx .evals{display:grid;gap:14px;margin:22px 0 8px}
.snx .cards3{grid-template-columns:repeat(3,1fr)}
.snx .goals,.snx .evals{grid-template-columns:repeat(2,1fr)}
.snx .cards3 > div,.snx .goals > div,.snx .evals > div{background:var(--s-main);border:1px solid var(--b-panel);border-radius:14px;padding:18px 20px}
.snx .cards3 b,.snx .goals b,.snx .evals b{display:block;color:var(--ink);font-weight:600;font-size:17px;margin-bottom:4px}
.snx .cards3 p,.snx .goals p,.snx .evals p{margin:0;font-size:15.5px;color:var(--sec);line-height:1.5}
@media (max-width:820px){.snx .cards3{grid-template-columns:1fr}}
@media (max-width:720px){.snx .goals,.snx .evals{grid-template-columns:1fr}}

/* Model family cards */
.snx .specs{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:26px 0 8px}
.snx .spec{border:1px solid var(--b-panel);border-radius:16px;padding:22px 24px;background:var(--s-main);border-top:4px solid var(--mc)}
.snx .spec h3{font-size:22px;margin:0 0 2px}
.snx .spec .kind{font-size:15px;color:var(--sec);margin:0 0 14px}
.snx .spec dl{display:grid;grid-template-columns:auto 1fr;gap:8px 18px;margin:0;font-size:15px}
.snx .spec dt{color:var(--muted)}
.snx .spec dd{margin:0;color:var(--ink)}
@media (max-width:720px){.snx .specs{grid-template-columns:1fr}}

/* Comparison and numbered flow */
.snx .vs{display:grid;grid-template-columns:1fr 1fr;border:1px solid var(--b-panel);border-radius:16px;overflow:hidden;margin:24px 0 8px}
.snx .vs > div{padding:22px 24px;background:var(--s-main)}
.snx .vs > div+div{border-left:1px solid var(--b-panel);background:var(--soft)}
.snx .vs h4{margin:0 0 10px;font-size:17px}
.snx .vs ul{margin:0;padding-left:18px;font-size:15.5px;color:var(--body)}
.snx .vs li{margin:0 0 6px}
@media (max-width:720px){.snx .vs{grid-template-columns:1fr}.snx .vs > div+div{border-left:0;border-top:1px solid var(--b-panel)}}
.snx .flow{display:grid;grid-template-columns:repeat(var(--n,4),1fr);border:1px solid var(--b-panel);border-radius:16px;overflow:hidden;margin:20px 0 8px;background:var(--s-main)}
.snx .flow > div{padding:18px 20px;border-right:1px solid var(--b-panel)}
.snx .flow > div:last-child{border-right:0;background:var(--soft)}
.snx .flow .n{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--brand);color:var(--on-brand);font-size:14px;font-weight:600;margin-bottom:10px}
.snx .flow b{display:block;color:var(--ink);font-size:16px;margin-bottom:4px}
.snx .flow p{margin:0;font-size:14.5px;color:var(--sec);line-height:1.5}
@media (max-width:900px){.snx .flow{grid-template-columns:1fr}.snx .flow > div{border-right:0;border-bottom:1px solid var(--b-panel)}.snx .flow > div:last-child{border-bottom:0}}

/* Small number tiles */
.snx .facts,.snx .kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:18px 0 6px}
.snx .facts > div,.snx .kpis > div{border:1px solid var(--b-panel);border-radius:12px;padding:14px 16px;background:var(--s-main)}
.snx .facts b,.snx .kpis b{display:block;font-size:22px;font-weight:600;color:var(--ink);font-variant-numeric:tabular-nums}
.snx .facts span,.snx .kpis span{font-size:14px;color:var(--sec);line-height:1.4;display:block}
@media (max-width:720px){.snx .facts,.snx .kpis{grid-template-columns:1fr}}

/* Benchmark explorer: list on the left, viewer on the right (same pattern as the sector picker) */
.snx .bench{display:grid;grid-template-columns:220px 1fr;border:1px solid var(--b-panel);border-radius:16px;overflow:hidden;margin:26px 0 12px;background:var(--s-panel)}
.snx .bench-list{display:flex;flex-direction:column;border-right:1px solid var(--b-panel);padding:8px}
.snx .bench-list button{border:0;background:transparent;text-align:left;padding:10px 14px;border-radius:10px;cursor:pointer;font-size:15px;color:var(--sec);min-height:44px;line-height:1.3}
.snx .bench-list button small{display:block;font-size:12.5px;color:var(--muted)}
.snx .bench-list button:hover{color:var(--ink);background:var(--s-main)}
.snx .bench-list button[aria-pressed="true"]{background:var(--s-main);color:var(--ink);font-weight:500;box-shadow:inset 3px 0 0 var(--accent)}
.snx .bench-body{padding:26px 28px;background:var(--s-main);min-width:0}
.snx .bench-body h3{font-size:22px;margin:0 0 8px}
.snx .bench-body .lede{font-size:16.5px;color:var(--sec);margin:0 0 18px}
@media (max-width:860px){
  .snx .bench{grid-template-columns:1fr}
  .snx .bench-list{flex-direction:row;overflow-x:auto;border-right:0;border-bottom:1px solid var(--b-panel)}
  .snx .bench-list button{white-space:nowrap}
  .snx .bench-list button[aria-pressed="true"]{box-shadow:inset 0 -3px 0 var(--accent)}
  .snx .bench-body{padding:20px}
}

/* Step-through viewer: frames change only on request, or slowly with Play, and cross-fade */
.snx .viewer{margin:0}
.snx .stage{position:relative;background:#fff;border:1px solid var(--b-row);border-radius:12px;overflow:hidden}
.snx .stage img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;opacity:0;transition:opacity .45s ease}
.snx .stage img.on{opacity:1}
.snx .stage img.base{position:relative;opacity:1;transition:none}
.snx .vbar{display:grid;grid-template-columns:auto auto 1fr auto;align-items:center;gap:8px;margin-top:12px}
.snx .vbtn{display:inline-grid;place-items:center;width:38px;height:38px;border-radius:9px;border:1px solid var(--b-panel);background:var(--s-main);color:var(--soft-ink);cursor:pointer}
.snx .vbtn:hover{border-color:var(--accent)}
.snx .vbtn svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.snx .vbtn.play svg{fill:currentColor;stroke-width:1.2}
.snx .vrange{width:100%;accent-color:var(--accent);height:28px;margin:0}
.snx .vcount{font-size:13.5px;color:var(--muted);font-variant-numeric:tabular-nums;min-width:58px;text-align:right}
.snx .vcap{max-width:none;margin-top:10px;font-size:15px;color:var(--body);background:var(--s-main);border:1px solid var(--soft-line);border-radius:10px;padding:10px 14px;min-height:46px;font-variant-numeric:tabular-nums}
.snx .vcap b{color:var(--soft-ink);font-weight:600}
.snx .vkey{margin-top:8px;font-size:13.5px;color:var(--muted)}
@media (prefers-reduced-motion:reduce){.snx .stage img{transition:none}}

/* Horizontal bar charts */
.snx .bars{display:grid;gap:12px}
.snx .brow{display:grid;grid-template-columns:150px 1fr;gap:16px;align-items:center}
.snx .brow .lbl{font-size:15px;color:var(--ink);font-weight:500;line-height:1.3}
.snx .brow .lbl small{display:block;color:var(--muted);font-weight:400;font-size:13px}
.snx .btrack{position:relative;height:28px;background:var(--s-sec);border-radius:6px}
.snx .bfill{position:absolute;left:0;top:0;bottom:0;width:0;border-radius:6px;transition:width .9s var(--ease)}
.snx .bval{position:absolute;top:50%;transform:translate(8px,-50%);left:0;font-weight:600;font-size:14.5px;color:var(--ink);white-space:nowrap;font-variant-numeric:tabular-nums;transition:left .9s var(--ease)}
.snx .brow.pair .btrack{height:auto;background:none;display:grid;gap:4px}
.snx .brow.pair .bt{position:relative;height:20px;background:var(--s-sec);border-radius:5px}
.snx .bval.na{font-weight:400;color:var(--muted);font-style:italic}
.snx .refline{position:absolute;top:-5px;bottom:-5px;border-left:1.5px dashed var(--c-ref);pointer-events:none}
.snx .legend{display:flex;flex-wrap:wrap;gap:6px 18px;font-size:14px;color:var(--sec);margin:0 0 16px}
.snx .legend i{display:inline-block;width:12px;height:12px;border-radius:3px;margin-right:7px;vertical-align:-1px}
.snx .legend i.dash{width:16px;height:0;border-radius:0;border-top:1.5px dashed var(--c-ref);vertical-align:middle}
.snx .legend i.dot{width:16px;height:0;border-radius:0;border-top:2px dotted var(--c-grey);vertical-align:middle}
@media (max-width:640px){.snx .brow{grid-template-columns:1fr;gap:6px}}
@media (prefers-reduced-motion:reduce){.snx .bfill,.snx .bval{transition:none}}

/* Tables (site .tbl), code and the expandable research notes */
.snx .tbl{margin:22px 0 8px}
.snx .tbl caption{caption-side:top;text-align:left;padding:14px 18px 0;font-size:14px;color:var(--sec)}
.snx .tbl td.l,.snx .tbl th.l{text-align:left}
.snx .tbl .best{font-weight:600;color:var(--soft-ink)}
.snx pre{margin:20px 0 8px;padding:18px 20px;background:var(--s-panel);border:1px solid var(--b-panel);border-radius:12px;overflow-x:auto;font-size:14px;line-height:1.6}
.snx pre code{background:none;padding:0;font-size:inherit}
.snx .deep{margin:22px 0 8px;border-top:1px solid var(--b-panel);border-bottom:1px solid var(--b-panel)}
.snx .deep + .deep{margin-top:-9px;border-top:0}
.snx .deep summary{cursor:pointer;list-style:none;padding:16px 34px 16px 0;font-size:17px;font-weight:500;color:var(--ink);position:relative}
.snx .deep summary::-webkit-details-marker{display:none}
.snx .deep summary::before{content:"For researchers";display:block;font-size:12px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--teal);margin-bottom:2px}
.snx .deep summary::after{content:"+";position:absolute;right:6px;top:24px;font-size:22px;color:var(--accent);font-weight:400}
.snx .deep[open] summary::after{content:"–"}
.snx .deep .in{padding:0 0 18px;max-width:none}
.snx .deep .in p,.snx .deep .in li{font-size:16px;color:var(--body)}
.snx .deep .in .tbl{max-width:none}
.snx .deep dl{margin:0 0 1em}
.snx .deep dt{font-weight:600;color:var(--ink);margin-top:10px}
.snx .deep dd{margin:2px 0 0;font-size:16px}
.snx .eq{margin:8px 0 18px;padding:14px 18px;background:var(--s-sec);border-left:3px solid var(--turq);border-radius:0 8px 8px 0;overflow-x:auto}

/* Limits, call-out, repository box */
.snx .lessons{margin:18px 0 0;border-top:1px solid var(--b-panel);max-width:none}
.snx .lessons > div{border-bottom:1px solid var(--b-panel);padding:16px 0}
.snx .lessons b{display:block;font-size:17px;font-weight:500;color:var(--ink);margin-bottom:2px}
.snx .lessons p{color:var(--sec);font-size:16.5px;margin:0;max-width:none}
.snx .thanks{margin:28px 0 0;padding:20px 22px;border-radius:14px;background:var(--soft);color:var(--soft-ink);font-size:16px;max-width:none}
.snx .thanks b{font-weight:600}
.snx .repo{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px;border:1px solid var(--b-panel);border-radius:16px;padding:20px 22px;background:var(--s-panel);margin:20px 0 0}
.snx .repo b{display:block;color:var(--ink);font-size:17px}
.snx .repo span{font-size:15px;color:var(--sec)}
.snx .repo .acts{display:flex;flex-wrap:wrap;gap:10px}
.snx .repo a.btn{font-size:15px;font-weight:500;color:var(--on-brand);background:var(--brand);border-color:var(--brand);padding:10px 16px;border-radius:9px;text-decoration:none;white-space:nowrap;min-height:0}
.snx .repo a.btn:hover{background:var(--brand-h);color:var(--on-brand)}
.snx .repo a.btn.alt{background:var(--s-main);color:var(--soft-ink);border:1px solid var(--brand)}
.snx .repo a.btn.alt:hover{background:var(--soft)}
.snx .refs{padding-left:22px;font-size:15.5px;line-height:1.6;color:var(--sec);max-width:none}
.snx .refs li{margin-bottom:8px}
@media (prefers-reduced-motion:reduce){.snx *{transition:none !important}}

/* Running text is justified (flush left and right), with hyphenation to avoid wide gaps */
.snx p,.snx li,.snx dd,.snx figcaption,.snx .tbl caption{text-align:justify;-webkit-hyphens:auto;hyphens:auto}
.snx .kind,.snx .meta,.snx .label{text-align:left;-webkit-hyphens:manual;hyphens:manual}
/* On phone widths justified lines leave wide gaps, so text stays flush left there */
@media (max-width:600px){.snx p,.snx li,.snx dd,.snx figcaption,.snx .tbl caption{text-align:left}}

/* Running text at 80% of the content column; tables, cards, viewers, charts and equations stay full width */
.snx p.tcap{font-size:14px;color:var(--sec);margin:24px 0 -8px}
.snx .dtp > p,.snx .dtp > ul,.snx .dtp > ol,.snx .note,.snx .lead,.snx .deep .in > p,.snx .refs,.snx p.tcap{max-width:80%}
/* References: flush left, not justified */
.snx .refs,.snx .refs li{text-align:left;-webkit-hyphens:manual;hyphens:manual}
@media (max-width:600px){.snx .dtp > p,.snx .dtp > ul,.snx .dtp > ol,.snx .note,.snx .lead,.snx .deep .in > p,.snx .refs{max-width:none}}
/* Subtitle under a section heading: smaller, in the label teal */
.snx p.h2sub{margin:-6px 0 18px;font-size:20px;line-height:1.35;font-weight:600;letter-spacing:-.01em;color:var(--teal);text-align:left}
/* Live demos in the header: dek, date line and pills at 80% width, the two demo cards side by side below */
.snx-hero{display:block}
.snx-hero-text{max-width:80%}   /* dek, date line and pills: 80% of the content width, like the running text */
.art-head .snx-hero .dek{max-width:none}
.art-head .wrap > h1{max-width:none}   /* the title runs the full width */
.snx-hero-live{margin:0}
.snx-hero .live{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.8fr);gap:16px;align-items:stretch;margin-top:32px}   /* the two demos side by side, full width; the split evens out their heights */
@media (max-width:600px){.snx-hero-text{max-width:none}.snx-hero .live{grid-template-columns:1fr}}
.snx .ldemo{border:1px solid var(--b-panel);border-radius:16px;background:var(--s-main);padding:14px;box-shadow:0 1px 2px rgba(32,32,32,.04)}
.snx .lhead{display:flex;justify-content:space-between;align-items:baseline;gap:10px;margin:0 0 10px;font-size:14px;color:#2A2A2A}
.snx .lhead b{font-weight:600}
.snx .ldot{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:var(--brand)}
.snx .ldot i{width:7px;height:7px;border-radius:50%;background:#60C4B5;box-shadow:0 0 0 4px rgba(96,196,181,.22);animation:snx-pulse 2s ease-in-out infinite}
.snx .ldemo.paused .ldot i{background:var(--c-grey);box-shadow:none;animation:none}
@keyframes snx-pulse{50%{box-shadow:0 0 0 7px rgba(96,196,181,0)}}
.snx canvas.lpipe{display:block;width:100%;aspect-ratio:2.9/1;border-radius:10px;background:var(--s-sec)}
.snx .llegend{display:flex;align-items:center;gap:8px;margin:8px 0 0;font-size:12px;color:var(--soft-ink)}
.snx .llegend i{flex:1;height:6px;border-radius:3px;background:linear-gradient(90deg,#440154,#3b528b,#21918c,#5ec962,#fde725)}
.snx .lstack{display:grid;gap:10px}
.snx .lstack figure{margin:0}
.snx .lstack figcaption{font-size:12px;color:var(--soft-ink);text-align:center;margin:6px 0 0;line-height:1.3}
.snx .lctl{display:grid;grid-template-columns:76px minmax(0,1fr);gap:8px;align-items:center;margin:10px 0 0;font-size:13px;color:var(--soft-ink)}
.snx .lseg{display:flex;flex-wrap:wrap;gap:4px}
.snx .lseg button{border:1px solid var(--b-panel);background:var(--s-main);padding:3px 8px;border-radius:7px;font-size:13px;line-height:1.5;color:var(--soft-ink);cursor:pointer}
.snx .lseg button:hover{border-color:var(--accent);color:#2A2A2A}
.snx .lseg button[aria-pressed="true"]{background:var(--brand);border-color:var(--brand);color:var(--on-brand);font-weight:500}
.snx .lnum button{min-width:26px;padding:3px 0}
.snx .lpair{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.snx .lpair figure{margin:0}
.snx .lpair canvas{display:block;width:100%;aspect-ratio:1;border-radius:10px;image-rendering:pixelated;background:#111}
.snx .lpair canvas[data-w]{cursor:grab;touch-action:none}
.snx .lpair canvas[data-w]:active{cursor:grabbing}
.snx .lpair figcaption{font-size:12px;color:var(--soft-ink);text-align:center;margin:6px 0 0;line-height:1.3}
/* Narrower screens: the cards go under the text, side by side; phones: one column */
.snx .vs li{text-align:left;-webkit-hyphens:manual;hyphens:manual}
