/* Neuron-paper cards as little paper sheets: a slow idle float, a pointer tilt, and an
   unfolding open into the reader. Every rule is scoped to cards that
   neuron-gallery-cards.js has enhanced (.ngc-card), so removing that script and this
   stylesheet restores the original cards. Motion uses transform and opacity only. */
#neuron-scientist-gallery{
  --ngc-paper:#fcfaf5;
  --ngc-paper-top:#fefdfa;
  --ngc-paper-low:#faf8f2;
  --ngc-under1:#f6f2ea;
  --ngc-under2:#efeae0;
  --ngc-edge:#e2dcd0;
  --ngc-edge2:#d6cfc1;
  --ngc-ink:#24221e;
  --ngc-ink2:#56524a;
  --ngc-ink3:#9b9589;
  --ngc-shade:62,48,24;
  --ngc-serif:var(--display,"Source Serif 4",Georgia,"Times New Roman",serif);
  --ngc-lift:-6px;
  --ngc-grain:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .38 0 0 0 0 .32 0 0 0 0 .22 0 0 0 -.9 .62'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23g)' opacity='.16'/%3E%3C/svg%3E");
}

/* The link keeps its size and snap position; the sheet inside it does the moving. */
#neuron-scientist-gallery .ng-card.ngc-card{display:block;padding:0;border:0;border-radius:0;background:none;box-shadow:none;overflow:visible;transition:none;outline:none;-webkit-tap-highlight-color:transparent}
#neuron-scientist-gallery .ng-card.ngc-card:hover{border-color:transparent}
#neuron-scientist-gallery .ng-card.ngc-card.ng-opening{visibility:visible}
#neuron-scientist-gallery .ng-card.ngc-card.ng-opening .ngc-sheet{opacity:0}

#neuron-scientist-gallery .ngc-sheet{position:relative;z-index:0;height:100%;transform-origin:50% 50%;transition:transform .45s var(--ng-ease),scale .18s var(--ng-ease)}
#neuron-scientist-gallery .ngc-card.ngc-tilting .ngc-sheet{transition:scale .18s var(--ng-ease)}
#neuron-scientist-gallery .ngc-card:active .ngc-sheet{scale:.992}

/* Two sheets underneath, slightly askew, that fan out a little on hover. */
#neuron-scientist-gallery .ngc-stack,#neuron-scientist-gallery .ngc-shadow{position:absolute;inset:0;pointer-events:none}
#neuron-scientist-gallery .ngc-stack{z-index:-1}
#neuron-scientist-gallery .ngc-stack::before,#neuron-scientist-gallery .ngc-stack::after{content:"";position:absolute;inset:0;border:1px solid var(--ngc-edge);border-radius:5px;transition:transform .5s var(--ng-ease)}
#neuron-scientist-gallery .ngc-stack::before{background:var(--ngc-under2);border-color:var(--ngc-edge2);transform:translate(-1px,5px) rotate(var(--ngc-r2,-.5deg))}
#neuron-scientist-gallery .ngc-stack::after{background:var(--ngc-under1);transform:translate(1.5px,2.5px) rotate(var(--ngc-r1,.45deg))}
#neuron-scientist-gallery .ngc-card.ngc-hover .ngc-stack::before,#neuron-scientist-gallery .ngc-card:focus-visible .ngc-stack::before{transform:translate(-2px,7px) rotate(calc(var(--ngc-r2,-.5deg)*2.1))}
#neuron-scientist-gallery .ngc-card.ngc-hover .ngc-stack::after,#neuron-scientist-gallery .ngc-card:focus-visible .ngc-stack::after{transform:translate(2.5px,4px) rotate(calc(var(--ngc-r1,.45deg)*2.1))}

/* Resting ground shadow, plus a deeper one that only changes opacity. */
#neuron-scientist-gallery .ngc-shadow{z-index:-2;border-radius:6px;box-shadow:0 1px 2px rgba(var(--ngc-shade),.05),0 12px 22px -16px rgba(var(--ngc-shade),.3)}
#neuron-scientist-gallery .ngc-shadow::after{content:"";position:absolute;inset:0;border-radius:inherit;box-shadow:0 26px 38px -22px rgba(var(--ngc-shade),.42),0 10px 18px -12px rgba(var(--ngc-shade),.16);opacity:0;transition:opacity .35s var(--ng-ease)}
#neuron-scientist-gallery .ngc-card.ngc-hover .ngc-shadow::after,#neuron-scientist-gallery .ngc-card:focus-visible .ngc-shadow::after{opacity:1}

/* The page itself: warm stock, faint grain, a hairline edge. */
#neuron-scientist-gallery .ngc-page{position:relative;display:flex;flex-direction:column;height:100%;overflow:hidden;padding:27px 22px 15px 38px;border:1px solid var(--ngc-edge);border-radius:5px;background:var(--ngc-grain),linear-gradient(180deg,var(--ngc-paper-top),var(--ngc-paper) 38%,var(--ngc-paper-low));color:var(--ngc-ink)}
#neuron-scientist-gallery .ngc-page>*:not(.ngc-glare){position:relative;z-index:1}
#neuron-scientist-gallery .ngc-glare{position:absolute;left:-50%;top:-50%;width:200%;height:200%;z-index:0;pointer-events:none;background:radial-gradient(circle at 50% 50%,rgba(255,255,255,.95),rgba(255,254,250,.4) 12%,rgba(255,255,255,0) 26%);opacity:0;transition:opacity .4s var(--ng-ease)}
#neuron-scientist-gallery .ngc-card.ngc-hover .ngc-glare{opacity:1}

/* arXiv-style identifier running up the left margin. */
#neuron-scientist-gallery .ngc-card .ng-eb{position:absolute;left:0;top:0;bottom:0;width:30px;margin:0;writing-mode:vertical-rl;transform:rotate(180deg);text-align:center;font:400 11.5px/30px var(--ngc-serif);letter-spacing:.035em;text-transform:none;font-variant-numeric:lining-nums tabular-nums;color:var(--ngc-ink3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* Title page. */
#neuron-scientist-gallery .ng-card.ngc-card h3{flex:none;margin:0 0 13px;font-family:var(--ngc-serif);font-size:19.5px;font-weight:600;line-height:1.22;letter-spacing:-.004em;font-optical-sizing:auto;text-align:center;text-wrap:balance;color:var(--ngc-ink);-webkit-line-clamp:4}
#neuron-scientist-gallery .ng-card.ngc-card .ng-lede{flex:1 1 auto;display:block;min-height:3em;margin:0 3px 12px;overflow:hidden;-webkit-line-clamp:unset;font:400 12.5px/1.52 var(--ngc-serif);color:var(--ngc-ink2);text-align:left;text-wrap:pretty;hyphens:auto;-webkit-hyphens:auto;-webkit-mask-image:linear-gradient(180deg,#000 calc(100% - 3.9em),transparent calc(100% - 1.5em));mask-image:linear-gradient(180deg,#000 calc(100% - 3.9em),transparent calc(100% - 1.5em))}
#neuron-scientist-gallery .ng-card.ngc-card .ng-lede::before{content:"Abstract";display:block;margin:0 0 4px;text-align:center;font:600 9px/1.5 var(--ng-sans);letter-spacing:.17em;text-transform:uppercase;color:var(--ngc-ink)}

/* The mini chart reads as Figure 1. */
#neuron-scientist-gallery .ng-card.ngc-card .ng-mini{margin-top:auto;padding-top:11px;border-top:1px solid var(--ngc-edge)}
#neuron-scientist-gallery .ng-card.ngc-card .ng-mini:empty{display:none}
#neuron-scientist-gallery .ngc-card .ng-mini-ladder{color:var(--ngc-ink2)}
#neuron-scientist-gallery .ngc-card .ng-mini-strip .ng-axis{background:var(--ngc-edge2)}
#neuron-scientist-gallery .ngc-card .ngc-cap{margin:8px 0 0;font:italic 400 11px/1.35 var(--ngc-serif);color:var(--ngc-ink3);text-align:center}
#neuron-scientist-gallery .ngc-card .ngc-cap span{font-style:normal;font-weight:600;color:var(--ngc-ink2)}

/* Footer: status dot and the verdict as a quiet stamp. */
#neuron-scientist-gallery .ng-card.ngc-card .ng-foot{margin-top:10px;padding-top:0;border-top:0;color:var(--ngc-ink3)}
#neuron-scientist-gallery .ngc-card .ng-dot{width:6px;height:6px;background:var(--ngc-ink3)}
#neuron-scientist-gallery .ngc-card .ng-dot.ng-tested{background:var(--ngc-ink2)}
#neuron-scientist-gallery .ngc-card .ng-vpill{margin-left:auto;padding:1px 6px 0 7px;border:1px solid var(--ngc-edge2);border-radius:2px;background:transparent!important;font:600 8.5px/15px var(--ng-sans);letter-spacing:.14em;text-transform:uppercase;color:var(--ngc-ink2);transform:rotate(-2deg)}
@supports (color:color-mix(in srgb,red,blue)){
  #neuron-scientist-gallery .ngc-card .ng-vpill{border-color:color-mix(in srgb,var(--ngc-v,#9b9589) 78%,#2b2620)!important;color:color-mix(in srgb,var(--ngc-v,#56524a) 58%,#1f1c18);background:color-mix(in srgb,var(--ngc-v,#fff) 7%,transparent)!important}
}
#neuron-scientist-gallery .ng-card.ngc-card.ng-wip .ngc-page{background:var(--ngc-grain),var(--ngc-paper-low);border-style:dashed}

/* Keyboard focus gets the same lift as hover. */
#neuron-scientist-gallery .ng-card.ngc-card:focus-visible{outline:none}
#neuron-scientist-gallery .ng-card.ngc-card:focus-visible .ngc-page{outline:2px solid #1c6fb5;outline-offset:3px}
#neuron-scientist-gallery .ng-card.ngc-card:focus-visible .ngc-sheet{transform:translate3d(0,var(--ngc-lift),0)}

/* The cards used to float idly here (ngc-bob, ngc-sway); removed in the September animation tone-down. */
#neuron-scientist-gallery.ngc-reading .ngc-card .ngc-sheet{animation-play-state:paused}

/* Paper stock carried into the reader during the open and close (opacity only). */
#neuron-scientist-gallery .ngc-veil{position:absolute;inset:0;z-index:5;pointer-events:none;border-radius:inherit;background:var(--ngc-grain),linear-gradient(180deg,var(--ngc-paper-top),var(--ngc-paper) 38%,var(--ngc-paper-low));opacity:0}

/* The reader's loading view continues the title page while the full paper loads. */
#neuron-scientist-gallery.ngc-on .ng-reader-loading{max-width:720px}
#neuron-scientist-gallery.ngc-on .ng-loading-eyebrow{text-align:center;font:400 13px/1.5 var(--ngc-serif);letter-spacing:.03em;text-transform:none;color:var(--ngc-ink3)}
#neuron-scientist-gallery.ngc-on .ng-reader-loading h3{font-family:var(--ngc-serif);font-weight:600;letter-spacing:-.006em;text-align:center;text-wrap:balance;color:var(--ngc-ink)}
#neuron-scientist-gallery.ngc-on .ng-loading-lede{max-width:600px;margin-left:auto;margin-right:auto;font:400 16px/1.65 var(--ngc-serif);text-align:justify;hyphens:auto;-webkit-hyphens:auto;color:var(--ngc-ink2)}
#neuron-scientist-gallery.ngc-on .ng-loading-lede::before{content:"Abstract";display:block;margin:0 0 8px;text-align:center;font:600 10.5px/1.5 var(--ng-sans);letter-spacing:.17em;text-transform:uppercase;color:var(--ngc-ink)}
#neuron-scientist-gallery.ngc-on .ng-loading-lines,#neuron-scientist-gallery.ngc-on .ng-load-status{max-width:600px;margin-left:auto;margin-right:auto}

@media(max-width:720px){
  #neuron-scientist-gallery .ngc-page{padding:24px 18px 14px 33px}
  #neuron-scientist-gallery .ngc-card .ng-eb{width:27px;font-size:11px;line-height:27px}
  #neuron-scientist-gallery .ng-card.ngc-card h3{font-size:18.5px;margin-bottom:11px}
  #neuron-scientist-gallery .ng-card.ngc-card .ng-lede{font-size:12.5px;margin:0 1px 11px}
  #neuron-scientist-gallery .ngc-card .ng-vpill{font-size:8px;padding:1px 5px 0 6px}
}
@media(prefers-reduced-motion:reduce){
  #neuron-scientist-gallery .ngc-card .ngc-sheet{animation:none!important;transform:none!important;scale:none!important}
  #neuron-scientist-gallery .ngc-card .ngc-stack::before{transform:translate(-1px,5px) rotate(var(--ngc-r2,-.5deg))!important}
  #neuron-scientist-gallery .ngc-card .ngc-stack::after{transform:translate(1.5px,2.5px) rotate(var(--ngc-r1,.45deg))!important}
  #neuron-scientist-gallery .ngc-glare{display:none}
}
@media print{
  #neuron-scientist-gallery .ngc-sheet{animation:none!important;transform:none!important}
  #neuron-scientist-gallery .ngc-stack,#neuron-scientist-gallery .ngc-shadow,#neuron-scientist-gallery .ngc-glare{display:none}
}
