/* Original paper-card gallery, scoped to the essay; full papers open in a native dialog. */
/* Use the available page width, independent of the essay's narrow text column. */
.native-gallery-wrap.wide{--ng-gallery-padding:max(32px,calc((100vw - 1440px)/2));width:100vw;max-width:none;margin:42px calc(50% - 50vw) 43px}
@media(max-width:760px){.native-gallery-wrap.wide{--ng-gallery-padding:24px;margin-top:35px;margin-bottom:35px}}
@media print{.native-gallery-wrap.wide{--ng-gallery-width:100%;width:100%;margin:25px 0}}
#neuron-scientist-gallery{--ng-ink:#1d1d1f;--ng-ink2:#55555c;--ng-ink3:#8a8a90;--ng-rule:#e4e4e7;--ng-rule2:#cfcfd4;--ng-paper:#fff;--ng-shelf:#f6f6f7;--ng-sans:-apple-system,BlinkMacSystemFont,Inter,"Segoe UI",Helvetica,Arial,sans-serif;--ng-ease:cubic-bezier(.2,.8,.2,1);display:block;max-width:none;min-width:0;width:100%;box-sizing:border-box;margin:0;padding:30px var(--ng-gallery-padding) 24px;border-top:1px solid var(--ng-rule);border-bottom:1px solid var(--ng-rule);color:var(--ng-ink);font:14px/1.5 var(--ng-sans);text-align:left;-webkit-font-smoothing:antialiased}
#neuron-scientist-gallery *,#neuron-scientist-gallery *::before,#neuron-scientist-gallery *::after{box-sizing:border-box}
#neuron-scientist-gallery [hidden]{display:none!important}
#neuron-scientist-gallery .ng-header{padding:0 8px}
#neuron-scientist-gallery .ng-eyebrow{font:500 12px/1.5 var(--ng-sans);letter-spacing:.11em;text-transform:uppercase;color:var(--ng-ink3);margin:0 0 14px}
#neuron-scientist-gallery .ng-heading{display:flex;align-items:baseline;gap:18px;flex-wrap:wrap;margin:0 0 12px}
#neuron-scientist-gallery .ng-heading h3{font:600 18px/1.3 var(--ng-sans);letter-spacing:-.01em;color:var(--ng-ink);margin:0}
#neuron-scientist-gallery .ng-count{font:500 15px/1.4 var(--ng-sans);color:var(--ng-ink3);font-variant-numeric:tabular-nums}
#neuron-scientist-gallery .ng-intro{max-width:730px;margin:0;font:400 16px/1.6 var(--ng-sans);color:var(--ng-ink2)}
#neuron-scientist-gallery .ng-sortbar{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:22px 0 0;padding:0 8px;color:var(--ng-ink3)}
#neuron-scientist-gallery .ng-sortbar .ng-lab{text-transform:uppercase;letter-spacing:.08em;font-size:11px;margin-right:2px}
#neuron-scientist-gallery .ng-sortbar .ng-sep{width:1px;height:18px;background:var(--ng-rule2);margin:0 6px}
#neuron-scientist-gallery .ng-sortbar button{appearance:none;font:400 13px/20px var(--ng-sans);letter-spacing:0;text-transform:none;color:var(--ng-ink2);background:#fff;border:1px solid var(--ng-rule2);border-radius:999px;padding:3px 11px;min-height:28px;cursor:pointer;box-shadow:none;transition:border-color .15s,opacity .15s,background .15s}
#neuron-scientist-gallery .ng-sortbar button:hover{border-color:var(--ng-ink)}
#neuron-scientist-gallery .ng-sortbar button.ng-on{background:var(--ng-ink);border-color:var(--ng-ink);color:#fff}
#neuron-scientist-gallery .ng-sortbar button.ng-chip i{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:6px}
#neuron-scientist-gallery .ng-sortbar button.ng-chip.ng-on{background:#fff;color:var(--ng-ink);border-color:var(--ng-ink)}
#neuron-scientist-gallery .ng-sortbar button.ng-chip.ng-off{opacity:.45}
#neuron-scientist-gallery .ng-sortbar .ng-n{color:var(--ng-ink3);font-variant-numeric:tabular-nums;margin-left:4px}
#neuron-scientist-gallery .ng-shelf-wrap{position:relative;min-width:0;margin-top:10px;background:transparent}
#neuron-scientist-gallery .ng-shelf{--ng-columns:1;--ng-gap:26px;display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - (var(--ng-columns) - 1)*var(--ng-gap))/var(--ng-columns));gap:var(--ng-gap);overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;overflow-anchor:none;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;padding:30px 8px 38px;scroll-padding-inline:8px;scrollbar-width:none}
#neuron-scientist-gallery .ng-shelf::-webkit-scrollbar{display:none}
#neuron-scientist-gallery .ng-arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:2;width:38px;height:38px;border-radius:50%;border:1px solid var(--ng-rule);background:rgba(255,255,255,.96);color:var(--ng-ink);cursor:pointer;font:22px/1 var(--ng-sans);display:flex;align-items:center;justify-content:center;padding:0;box-shadow:none;transition:opacity .2s,transform .2s var(--ng-ease)}
#neuron-scientist-gallery .ng-arrow:hover{transform:translateY(-50%) scale(1.06)}
#neuron-scientist-gallery .ng-arrow[disabled]{opacity:.25;cursor:default;transform:translateY(-50%)}
#neuron-scientist-gallery .ng-left{left:-12px}
#neuron-scientist-gallery .ng-right{right:-12px}
#neuron-scientist-gallery button:focus-visible,#neuron-scientist-gallery a:focus-visible,#neuron-scientist-gallery .ng-shelf:focus-visible{outline:2px solid #1c6fb5;outline-offset:4px}
#neuron-scientist-gallery .ng-card{position:relative;min-width:0;width:100%;height:490px;scroll-snap-align:start;background:var(--ng-paper);border:1px solid var(--ng-rule);border-radius:15px;box-shadow:none;padding:25px 25px 21px;cursor:pointer;text-align:left;text-decoration:none;transition:transform .22s var(--ng-ease),box-shadow .22s var(--ng-ease),border-color .22s;display:flex;flex-direction:column;overflow:hidden;font:inherit;color:var(--ng-ink)}
#neuron-scientist-gallery .ng-card:hover{color:var(--ng-ink);transform:none;border-color:#aaaab2;box-shadow:none}
#neuron-scientist-gallery .ng-card:active{transform:none}
#neuron-scientist-gallery .ng-card.ng-opening{visibility:hidden}
#neuron-scientist-gallery .ng-card .ng-eb{flex:none;font:400 10.5px/1.5 var(--ng-sans);letter-spacing:.08em;text-transform:uppercase;color:var(--ng-ink3);margin:0 0 11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#neuron-scientist-gallery .ng-card h3{flex:none;font:600 18px/1.2 var(--ng-sans);letter-spacing:-.014em;margin:0 0 9px;padding:0;border:0;color:var(--ng-ink);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
#neuron-scientist-gallery .ng-card .ng-lede{flex:none;font:400 13px/1.45 var(--ng-sans);color:var(--ng-ink2);margin:0 0 12px;padding:0;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
#neuron-scientist-gallery .ng-card .ng-mini{flex:none;margin-top:auto}
#neuron-scientist-gallery .ng-mini-ladder{display:grid;grid-template-columns:100px minmax(0,1fr);gap:3px 10px;align-items:center;font:11px/1.45 var(--ng-sans);color:var(--ng-ink2)}
#neuron-scientist-gallery .ng-mini-ladder .ng-tag{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:right}
#neuron-scientist-gallery .ng-mini-ladder .ng-bar{height:6px;position:relative}
#neuron-scientist-gallery .ng-mini-ladder .ng-bar i{position:absolute;top:0;bottom:0;border-radius:2px;display:block}
#neuron-scientist-gallery .ng-mini-strip{position:relative;height:36px;margin:6px 0 2px}
#neuron-scientist-gallery .ng-mini-strip .ng-axis{position:absolute;left:0;right:0;top:20px;height:1px;background:var(--ng-rule2)}
#neuron-scientist-gallery .ng-mini-strip .ng-q{position:absolute;top:16px;width:5px;height:9px;border-radius:2px;transform:translateX(-50%)}
#neuron-scientist-gallery .ng-mini-strip .ng-ql{position:absolute;top:0;font-size:9px;color:var(--ng-ink3);transform:translateX(-50%);white-space:nowrap}
#neuron-scientist-gallery .ng-card .ng-foot{flex:none;display:flex;align-items:center;gap:7px;margin-top:13px;padding-top:11px;border-top:1px solid var(--ng-rule);font:11px/1.5 var(--ng-sans);color:var(--ng-ink3)}
#neuron-scientist-gallery .ng-card .ng-foot>span{white-space:nowrap}
#neuron-scientist-gallery .ng-ver{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis}
#neuron-scientist-gallery .ng-vpill{margin-left:auto;flex:none;display:inline-block;border:1px solid var(--ng-rule2);border-radius:999px;padding:1px 7px;font:10px/16px var(--ng-sans);white-space:nowrap;color:var(--ng-ink)}
#neuron-scientist-gallery .ng-dot{width:7px;height:7px;border-radius:50%;background:var(--ng-ink3);flex:none}
#neuron-scientist-gallery .ng-dot.ng-tested{background:var(--ng-ink)}
#neuron-scientist-gallery .ng-st{text-transform:uppercase;letter-spacing:.06em}
#neuron-scientist-gallery .ng-card.ng-wip{background:#fbfbfc;border-style:dashed;cursor:default}
#neuron-scientist-gallery .ng-card.ng-wip:hover{transform:none}
#neuron-scientist-gallery .ng-caption,#neuron-scientist-gallery .ng-fallback{font:400 12px/1.6 var(--ng-sans);color:var(--ng-ink3);padding:0 8px;margin:0}
#neuron-scientist-gallery .ng-caption a,#neuron-scientist-gallery .ng-fallback a{color:var(--ng-ink2);border:0;text-decoration:underline;text-underline-offset:3px;text-decoration-color:var(--ng-rule2)}
/* A card expands into a full original paper, above the unchanged essay. */
#neuron-scientist-gallery .ng-dialog{position:fixed;inset:0;width:min(1240px,94vw);height:94vh;height:94dvh;max-width:none;max-height:none;margin:auto;padding:0;border:1px solid #dedee3;border-radius:16px;background:#fff;color:var(--ng-ink);box-shadow:0 30px 90px -20px #00000066;overflow:hidden;overscroll-behavior:contain;font:14px/1.5 var(--ng-sans);transform-origin:top left}
#neuron-scientist-gallery .ng-dialog[open]{display:flex;flex-direction:column}
#neuron-scientist-gallery .ng-dialog::backdrop{background:rgba(28,28,32,.34);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);animation:ng-backdrop-in .38s var(--ng-ease)}
#neuron-scientist-gallery .ng-dialog.ng-closing::backdrop{animation:ng-backdrop-out .28s var(--ng-ease) forwards}
#neuron-scientist-gallery .ng-dialog-top{display:flex;flex:none;align-items:center;gap:16px;min-height:65px;padding:10px 14px 10px 24px;border-bottom:1px solid var(--ng-rule);background:#fff}
#neuron-scientist-gallery .ng-reader-heading{min-width:0;flex:1}
#neuron-scientist-gallery .ng-reader-eyebrow{font:400 10px/1.4 var(--ng-sans);letter-spacing:.09em;text-transform:uppercase;color:var(--ng-ink3)}
#neuron-scientist-gallery .ng-reader-heading h4{font:600 14px/1.5 var(--ng-sans);letter-spacing:-.01em;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin:2px 0 0;color:var(--ng-ink)}
#neuron-scientist-gallery .ng-original-link{flex:none;white-space:nowrap;font:400 12px/1.5 var(--ng-sans);color:var(--ng-ink2);border:1px solid var(--ng-rule);border-radius:7px;padding:6px 10px;text-decoration:none}
#neuron-scientist-gallery .ng-original-link:hover{border-color:var(--ng-ink3);color:var(--ng-ink)}
#neuron-scientist-gallery .ng-dialog-controls{display:flex;gap:4px;flex:none}
#neuron-scientist-gallery .ng-dialog-controls button{display:flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:50%;border:1px solid transparent;background:transparent;cursor:pointer;padding:0;color:var(--ng-ink2);font:24px/1 var(--ng-sans)}
#neuron-scientist-gallery .ng-dialog-controls button:hover{background:var(--ng-shelf);border-color:var(--ng-rule)}
#neuron-scientist-gallery .ng-dialog-controls button:disabled{opacity:.3;cursor:default}
#neuron-scientist-gallery .ng-reader-body{position:relative;flex:1;min-height:0;background:#fff;overflow:hidden}
#neuron-scientist-gallery .ng-paper-frame{position:absolute;inset:0;display:block;width:100%;height:100%;border:0;opacity:0;pointer-events:none;transition:opacity .26s var(--ng-ease)}
#neuron-scientist-gallery .ng-paper-frame.ng-ready{opacity:1;pointer-events:auto}
#neuron-scientist-gallery .ng-reader-loading{position:absolute;inset:0;max-width:790px;margin:auto;padding:clamp(28px,5vw,64px);overflow:auto;transition:opacity .24s;pointer-events:auto}
#neuron-scientist-gallery .ng-reader-loading.ng-loaded{opacity:0;pointer-events:none}
#neuron-scientist-gallery .ng-loading-eyebrow{font:11px/1.5 var(--ng-sans);letter-spacing:.1em;text-transform:uppercase;color:var(--ng-ink3);margin:0 0 20px}
#neuron-scientist-gallery .ng-reader-loading h3{font:600 clamp(24px,3vw,34px)/1.2 var(--ng-sans);letter-spacing:-.02em;margin:0 0 20px;color:var(--ng-ink)}
#neuron-scientist-gallery .ng-loading-lede{font:16px/1.7 var(--ng-sans);color:var(--ng-ink2);margin:0 0 28px}
#neuron-scientist-gallery .ng-loading-lines i{display:block;height:9px;margin-bottom:12px;border-radius:3px;background:#f1f1f3}   /* placeholder lines: still, no shimmer */
#neuron-scientist-gallery .ng-loading-lines i:nth-child(2){width:92%}
#neuron-scientist-gallery .ng-loading-lines i:nth-child(3){width:72%}
#neuron-scientist-gallery .ng-load-status{font:13px/1.5 var(--ng-sans);color:var(--ng-ink3);margin:28px 0 0}
#neuron-scientist-gallery .ng-load-actions{display:flex;gap:16px;align-items:center;flex-wrap:wrap;margin-top:14px}
#neuron-scientist-gallery .ng-load-actions a{font:13px/1.5 var(--ng-sans);color:var(--ng-ink2);text-decoration:underline;border:0}
#neuron-scientist-gallery .ng-retry{border:1px solid var(--ng-rule2);background:#fff;color:var(--ng-ink2);border-radius:6px;padding:5px 10px;font:13px/1.5 var(--ng-sans)}
@keyframes ng-backdrop-in{from{opacity:0}to{opacity:1}}
@keyframes ng-backdrop-out{to{opacity:0}}
@keyframes ng-shimmer{from{background-position:120% 0}to{background-position:-120% 0}}
@media(max-width:720px){
 #neuron-scientist-gallery{padding:24px var(--ng-gallery-padding) 20px}
 #neuron-scientist-gallery .ng-heading h3{font-size:17px}
 #neuron-scientist-gallery .ng-intro{font-size:15px}
 #neuron-scientist-gallery .ng-sortbar{gap:7px;margin-top:18px}
 #neuron-scientist-gallery .ng-sortbar .ng-sep{display:none}
 #neuron-scientist-gallery .ng-sortbar button{min-height:32px;font-size:12px}
 #neuron-scientist-gallery .ng-card{width:100%;height:482px;padding:23px 21px 20px}
 #neuron-scientist-gallery .ng-card .ng-lede{-webkit-line-clamp:2}
 #neuron-scientist-gallery .ng-card .ng-eb{font-size:10px}
 #neuron-scientist-gallery .ng-mini-ladder{grid-template-columns:85px minmax(0,1fr);gap:3px 8px}
 #neuron-scientist-gallery .ng-card .ng-foot{gap:5px;font-size:10px}
 #neuron-scientist-gallery .ng-vpill{font-size:9px;padding:1px 5px}
 #neuron-scientist-gallery .ng-shelf{--ng-gap:20px;padding:26px 8px 30px}
 #neuron-scientist-gallery .ng-left{left:-9px}
 #neuron-scientist-gallery .ng-right{right:-9px}
 #neuron-scientist-gallery .ng-dialog{width:calc(100vw - 16px);height:calc(100vh - 16px);height:calc(100dvh - 16px);border-radius:12px}
 #neuron-scientist-gallery .ng-dialog-top{padding:9px 8px 9px 14px;gap:8px;min-height:62px;flex-wrap:wrap}
 #neuron-scientist-gallery .ng-reader-heading{flex-basis:calc(100% - 124px)}
 #neuron-scientist-gallery .ng-dialog-controls{order:1}
 #neuron-scientist-gallery .ng-original-link{order:2;font-size:11px;padding:2px 0;border:0;margin-top:-3px}
 #neuron-scientist-gallery .ng-reader-loading{padding:28px 22px}
}
/* Complete cards fit each shelf; horizontal movement stays inside the carousel. */
@media(min-width:668px){#neuron-scientist-gallery .ng-shelf{--ng-columns:2}}
@media(min-width:1024px){#neuron-scientist-gallery .ng-shelf{--ng-columns:3}}
@media(min-width:1364px){#neuron-scientist-gallery .ng-shelf{--ng-columns:4}}
@media(prefers-reduced-motion:reduce){#neuron-scientist-gallery *,#neuron-scientist-gallery .ng-dialog::backdrop{animation:none!important;transition:none!important}#neuron-scientist-gallery .ng-shelf{scroll-behavior:auto}#neuron-scientist-gallery .ng-dialog.ng-closing::backdrop{opacity:0}}

#neuron-scientist-gallery .ng-copy-link{flex:none;white-space:nowrap;font:400 12px/1.5 var(--ng-sans);color:var(--ng-ink2);background:#fff;border:1px solid var(--ng-rule);border-radius:7px;padding:6px 10px;margin-left:8px;cursor:pointer}
#neuron-scientist-gallery .ng-copy-link:hover{color:var(--ng-ink)}
