.ng-page {
  --ng-ink: #2b1735;
  --ng-muted: #624e6c;
  --ng-accent: #732993;
  --ng-line: #e8daec;
  margin: 0;
  background: #fcf9fd;
  color: var(--ng-ink);
  font: 1rem/1.62 system-ui, sans-serif;
}
.ng-page [hidden] { display: none !important; }
.ng-page main a, .ng-footer a { color: var(--ng-accent); text-underline-offset: .2em; }
.ng-page :is(a, button, input):focus-visible { outline: 3px solid #b363d0; outline-offset: 4px; }
.ng-page [id] { scroll-margin-top: 24px; }
.ng-skip { position: absolute; top: 6px; left: 8px; z-index: 1000; transform: translateY(-140%); background: white; color: var(--ng-ink); padding: .6rem 1rem; }
.ng-skip:focus { transform: none; }
.ng-width { width: min(1170px, calc(100% - 64px)); margin-inline: auto; }

.ng-hero {
  padding: clamp(2.5rem, 6vw, 5rem) 0;
  background: radial-gradient(ellipse at 92% 0%, #53234f 0, transparent 55%), #251333;
  color: #fff6ff;
}
.ng-hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(1.5rem, 5vw, 4.2rem); align-items: center; }
.ng-overline { margin: 0; color: var(--ng-accent); font-size: .78rem; font-weight: 750; letter-spacing: .075em; text-transform: uppercase; }
.ng-hero .ng-overline, .ng-hero .ng-overline a { color: #f6c5fa; }
.ng-hero h1 { margin: .42rem 0 .9rem; font-size: clamp(1.9rem, 4.8vw, 4.25rem); line-height: 1.02; letter-spacing: -.06em; }
.ng-intro > p:not(.ng-overline) { margin: 0; max-width: 43ch; color: #eddbf2; font-size: clamp(1.04rem, 1.6vw, 1.2rem); }
.ng-actions { display: flex; gap: .7rem 1.25rem; flex-wrap: wrap; align-items: center; margin-top: 1.5rem; }
.ng-page .ng-hero .ng-actions a { color: #fff1ff; font-weight: 680; }
.ng-page .ng-hero .ng-actions .ng-primary { padding: .6rem 1.05rem; border-radius: 9px; color: #30133c; background: #f7defa; text-decoration: none; }
.ng-page .ng-hero .ng-actions .ng-primary:hover { background: white; }

.ng-visuals { padding-block: 2.4rem 2.8rem; }
.ng-visuals > h2, .ng-lookup > h2 { margin: 0 0 1rem; font-size: clamp(1.85rem, 4vw, 2.65rem); letter-spacing: -.043em; line-height: 1.12; }
.ng-visual-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
.ng-figure {
  display: flex;
  flex-direction: column;
  gap: .8rem;
  min-width: 0;
  margin: 0;
  padding: clamp(.9rem, 2.1vw, 1.35rem);
  border: 1px solid var(--ng-line);
  border-radius: 20px;
  background: #fff;
}
.ng-figure h2, .ng-figure h3 { margin: .17rem 0 0; font-size: clamp(1.18rem, 2.1vw, 1.45rem); line-height: 1.22; letter-spacing: -.025em; }
.ng-figure figcaption { color: var(--ng-muted); font-size: .91rem; line-height: 1.53; }
.ng-figure-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .85rem; margin-top: auto; font-size: .8rem; font-weight: 640; }
.ng-figure-actions > a:last-child { color: var(--ng-muted); }
.ng-page button {
  font: inherit;
  cursor: pointer;
}
.ng-figure-actions button, .ng-search button { border: 1px solid #e3cce8; border-radius: 7px; padding: .45rem .65rem; background: #f6eaf8; color: #502362; font-weight: 700; }
.ng-figure-actions button:hover, .ng-search button:hover { background: #ecdaef; }

.ng-feature { color: #fbecff; background: #351d45; border-color: #684773; box-shadow: 0 14px 36px #16091f42; }
.ng-feature figcaption { color: #ecdaf1; }
.ng-feature .ng-figure-actions a, .ng-feature .ng-figure-actions > a:last-child { color: #f7dbfc; }
.ng-feature .ng-figure-actions button { color: #fbeaff; background: #532d64; border-color: #93669f; }
.ng-feature .ng-figure-actions button:hover { background: #6a3d7a; }
.ng-synapse {
  isolation: isolate;
  position: relative;
  min-height: 148px;
  display: grid;
  grid-template-columns: 39% 25% 36%;
  align-items: start;
  justify-items: center;
  padding: .65rem .2rem 0;
  overflow: hidden;
  border: 1px solid #62416f;
  border-radius: 13px;
  background: radial-gradient(ellipse at 50% 93%, #512c61, #281638 69%);
  font-size: .73rem;
  font-weight: 740;
}
.ng-synapse > span { z-index: 2; text-align: center; }
.ng-cleft { color: #e9bee9; }
.ng-synapse :is(.ng-terminal, .ng-receptors) { box-sizing: border-box; position: absolute; top: 37%; bottom: 14%; display: grid; align-content: space-evenly; }
.ng-terminal { left: 0; width: 42%; justify-items: end; border: 2px solid #cb91e2; border-left: 0; border-radius: 0 50% 50% 0; padding-right: 7%; background: linear-gradient(90deg, #4e2b63, #7e47a7); }
.ng-terminal i { width: 14px; height: 14px; border-radius: 50%; border: 1px solid #ffd3ed; background: #b46bc0; }
.ng-receptors { right: 0; width: 34%; justify-items: start; border: 2px solid #9bd8d1; border-right: 0; border-radius: 46% 0 0 46%; padding-left: 5%; background: linear-gradient(90deg, #2d686f, #224451); }
.ng-receptors i { width: 11px; height: 8px; border-radius: 3px 0 0 3px; background: #a5e4d9; }
.ng-transmitters { position: absolute; z-index: 1; top: 48%; left: 44%; width: 20%; height: 42%; display: grid; grid-template-columns: repeat(3, 1fr); place-items: start center; }
.ng-transmitters i { width: 7px; height: 7px; border-radius: 50%; background: #ffd097; box-shadow: 0 0 10px #ed8b64; }
.ng-transmitters i:nth-child(2) { margin-top: 15px; }
.ng-transmitters i:nth-child(3) { margin-top: 28px; }

.ng-splicing, .ng-barrier, .ng-confidence {
  position: relative;
  min-height: 126px;
  border: 1px solid #e6daeb;
  border-radius: 11px;
  background: #f8f1fa;
  overflow: hidden;
  font-size: .7rem;
  font-weight: 710;
}
.ng-splicing { display: grid; align-content: center; gap: 7px; padding: 8px; }
.ng-splicing > div { display: grid; grid-template-columns: minmax(74px, 1fr) 1.35fr; align-items: center; gap: 3px; }
.ng-exons { position: relative; display: flex; align-items: center; gap: 1px; width: max-content; }
.ng-exons b {
  display: grid;
  place-items: center;
  width: clamp(20px, 6vw, 29px);
  height: 25px;
  border-radius: 4px;
  color: #fff;
  background: #8252a0;
  z-index: 1;
}
.ng-exons b:nth-child(2) { background: #ad5e31; }
.ng-exons b:last-child { background: #347a77; }
.ng-precursor { gap: 8px; }
.ng-precursor::before { content: ''; position: absolute; left: 9px; right: 9px; border-top: 2px dashed #9a829e; }

.ng-barrier {
  display: grid;
  grid-template-columns: 1fr 1fr;
  justify-items: center;
  align-items: start;
  padding-top: .55rem;
  background: linear-gradient(90deg, #f9e6f0 50%, #e8f4f1 50%);
}
.ng-wall { position: absolute; left: calc(50% - 6px); top: 31%; bottom: 9%; width: 12px; border-radius: 6px; background: repeating-linear-gradient(#78408a 0 15px, #dfbce7 15px 17px); }
.ng-crossing, .ng-blocked { position: absolute; padding: 1px 6px; border-radius: 5px; background: #fff; white-space: nowrap; }
.ng-crossing { top: 43%; left: 39%; color: #145e58; }
.ng-blocked { right: calc(50% + 6px); bottom: 18%; color: #7e345a; }
.ng-crossing b, .ng-blocked b { font-size: .88rem; }
.ng-confidence { --ng-estimate: 62%; padding: .4rem .5rem; }
.ng-null { position: absolute; z-index: 1; left: 49%; top: 25%; bottom: 8%; border-left: 1px dashed #845c8e; }
.ng-null span { position: absolute; top: -21px; left: 0; white-space: nowrap; transform: translateX(-45%); color: #634775; }
.ng-interval { position: relative; margin-block: 21px 0; height: 31px; color: #593566; }
.ng-interval b { position: absolute; bottom: 0; left: .32rem; font-size: .67rem; }
.ng-interval i { position: absolute; top: 9px; height: 3px; border-radius: 3px; background: #9259a8; }
.ng-wide i { left: 29%; right: 5%; }
.ng-narrow i { left: 54%; right: 30%; background: #347a77; }
.ng-interval span { position: absolute; z-index: 2; left: calc(var(--ng-estimate) - 4px); top: 6px; width: 9px; height: 9px; border-radius: 50%; background: #42264e; }

.ng-lookup { padding-block: 1.85rem 4rem; border-top: 1px solid var(--ng-line); }
.ng-search { margin-bottom: .65rem; }
.ng-search label { display: block; margin-bottom: .3rem; font-weight: 700; }
.ng-search > div { display: flex; max-width: 48rem; gap: .5rem; align-items: stretch; }
.ng-search input { min-width: 0; width: 100%; padding: .68rem .75rem; border: 1px solid #d2bcd8; border-radius: 8px; background: #fff; color: var(--ng-ink); font: inherit; }
.ng-search button { flex: none; white-space: nowrap; font-size: .86rem; }
.ng-count { margin: .45rem 0 0; color: var(--ng-muted); font-size: .86rem; }
.ng-letters { display: flex; flex-wrap: wrap; gap: .25rem; margin-bottom: .85rem; }
.ng-letters a { min-width: 30px; text-align: center; border-radius: 5px; padding: .26rem .3rem; font-size: .89rem; font-weight: 740; text-decoration: none; }
.ng-letters a:hover { background: #f1e4f4; text-decoration: underline; }
.ng-letter { display: grid; grid-template-columns: 2.15rem minmax(0, 1fr); gap: clamp(.4rem, 2.6vw, 1.6rem); border-top: 1px solid var(--ng-line); padding: 1.2rem 0; }
.ng-letter > h3 { margin: 0; color: var(--ng-accent); font-size: 1.55rem; line-height: 1.1; }
.ng-letter dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; row-gap: 1.5rem; }
.ng-term { min-width: 0; overflow-wrap: anywhere; }
.ng-term:target { border-left: 3px solid #ad66c4; padding-left: .7rem; }
.ng-term dt { font-size: 1.04rem; font-weight: 760; line-height: 1.3; }
.ng-term dd { margin: .36rem 0 0; color: var(--ng-muted); font-size: .91rem; line-height: 1.64; }
.ng-term dd p { margin: 0; }
.ng-term-links { display: flex; gap: .2rem .75rem; flex-wrap: wrap; margin-top: .38rem; font-weight: 630; font-size: .78rem; }
.ng-term-links a.ng-source { color: var(--ng-muted); }
.ng-empty { color: var(--ng-muted); }
.ng-footer { border-top: 1px solid var(--ng-line); }
.ng-footer > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 1.4rem; }
.ng-footer a { font-weight: 650; }
.ng-footer nav { display: flex; flex-wrap: wrap; gap: .5rem 1rem; }

.ng-run .ng-receptors { border-color: #c2fff1; }
.ng-run .ng-exons:not(.ng-precursor) { outline: 2px solid #b079c1; outline-offset: 2px; border-radius: 4px; }
.ng-run .ng-crossing { box-shadow: 0 0 0 2px #44887e; }
.ng-run .ng-interval i { box-shadow: 0 0 0 1px #a285aa; }
@media (prefers-reduced-motion: no-preference) {
  .ng-run .ng-transmitters { animation: ng-release .88s cubic-bezier(.22,.62,.35,1) both; }
  .ng-run .ng-receptors { animation: ng-receive .55s .66s ease-out both; }
  .ng-run .ng-exons:not(.ng-precursor) { animation: ng-transcript .62s .16s ease-out both; }
  .ng-run .ng-skipped { animation-delay: .45s !important; }
  .ng-run .ng-crossing { animation: ng-cross .92s ease-out both; }
  .ng-run .ng-interval i { transform-origin: 50% 50%; animation: ng-interval .76s ease-out both; }
  .ng-run .ng-narrow i { animation-delay: .25s; }
  @keyframes ng-release { from { transform: translateX(-68%); opacity: .2; } to { transform: translateX(48%); opacity: 1; } }
  @keyframes ng-receive { from { filter: brightness(.8); } to { filter: brightness(1.19); } }
  @keyframes ng-transcript { from { transform: translateY(-5px); opacity: .43; } to { transform: none; opacity: 1; } }
  @keyframes ng-cross { from { transform: translateX(-70%); } to { transform: translateX(40%); } }
  @keyframes ng-interval { from { transform: scaleX(.01); } to { transform: scaleX(1); } }
}
@media (max-width: 930px) {
  .ng-width { width: calc(100% - 40px); }
  .ng-visual-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 660px) {
  .ng-width { width: calc(100% - 32px); }
  .ng-hero-grid, .ng-visual-grid, .ng-letter dl { grid-template-columns: 1fr; }
  .ng-letter { grid-template-columns: 1.65rem minmax(0, 1fr); }
  .ng-hero h1 { font-size: clamp(1.83rem, 8.8vw, 3.3rem); }
  .ng-visuals { padding-block: 2rem; }
}
