/* NOVA page, 07: Search keeps changing. NOVA keeps up. (assets/js/n-change.js). The position chart that draws itself, the three
   events beside it, three short points under it. Prefix nc-. */

.nc-stage { display: grid; grid-template-columns: minmax(0, 62fr) minmax(0, 38fr); gap: 28px; align-items: center; max-width: 1100px; margin: 0 auto; }
.nc-card { margin: 0; padding: 22px 24px 20px; border-radius: 22px; background: #fff; box-shadow: var(--nv-card-lg); transition: opacity .6s ease; }
.nc-card.fade { opacity: .35; }
.nc-hd { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; }
.nc-hd b { font: 600 16px/1.2 var(--sans); letter-spacing: -.01em; color: var(--ink); }
.nc-pl { font: 500 9.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(11,11,12,.46); }
.nc-badge { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px 0 9px; border-radius: 999px; background: #EEF7F1;
  font: 500 9.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--nv-ink-g); opacity: 0; scale: .88; transition: opacity .45s ease, scale .55s var(--ease-out); }
.nc-badge svg { width: 12px; height: 12px; }
.nc-card.s-win .nc-badge { opacity: 1; scale: 1; }

/* the plot */
.nc-plot { position: relative; height: 290px; }
.nc-svg { position: absolute; left: 0; top: 0; overflow: visible; }
.nc-grid { stroke: rgba(11,11,12,.07); stroke-width: 1; }
.nc-line { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.nc-upd { stroke: rgba(133,17,217,.32); stroke-width: 1.2; opacity: 0; transition: opacity .5s ease; }
.nc-card.s-hit .nc-upd { opacity: 1; }
.nc-yl { position: absolute; left: 0; translate: 0 -50%; font: 500 10px/1 var(--mono); letter-spacing: .04em; color: rgba(11,11,12,.42); opacity: 0; transition: opacity .6s ease; }
.nc-card.in .nc-yl { opacity: 1; }
.nc-flag { position: absolute; display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; background: #fff;
  box-shadow: 0 0 0 1px rgba(133,17,217,.22), 0 8px 18px -12px rgba(133,17,217,.45); font: 500 9px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
  color: #8511D9; opacity: 0; translate: -50% -80%; transition: opacity .45s ease, translate .55s var(--ease-out); }
.nc-card.s-hit .nc-flag { opacity: 1; translate: -50% -100%; }
.nc-fix { position: absolute; display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px 0 8px; border-radius: 999px; background: #fff;
  box-shadow: 0 0 0 1px rgba(11,11,12,.07), 0 10px 22px -12px rgba(16,44,40,.45); font: 500 9px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; color: var(--ink);
  opacity: 0; translate: 0 6px; transition: opacity .45s ease, translate .55s var(--ease-out); }
.nc-fix::before { content: ""; width: 11px; height: 11px; flex: none; background: var(--nv-grad);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; }
.nc-card.s-fix .nc-fix { opacity: 1; translate: 0 0; }
.nc-dot { position: absolute; left: 0; top: 0; width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px; border-radius: 50%; background: #3FA45E;
  box-shadow: 0 0 0 3px #fff, 0 6px 14px -4px rgba(46,158,80,.6); opacity: 0; transition: opacity .4s ease; }
.nc-card.in .nc-dot { opacity: 1; }

/* the events, lit as the line reaches them */
.nc-evs { position: relative; display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.nc-ev { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 15px 16px; border-radius: 16px; background: #fff;
  box-shadow: var(--nv-card); opacity: .38; translate: 6px 0; transition: opacity .5s ease, translate .7s var(--ease-out), box-shadow .6s ease; }
.nc-ev.on { opacity: 1; translate: 0 0; }
.nc-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; font-style: normal; }
.nc-ic svg { width: 17px; height: 17px; }
.nc-ev[data-k="hit"] .nc-ic { background: rgba(133,17,217,.08); color: #8511D9; }
.nc-ev[data-k="fix"] .nc-ic { background: #F1F8F4; }
.nc-ev[data-k="fix"] .nc-ic svg { width: 20px; height: 20px; }
.nc-ev[data-k="win"] .nc-ic { background: var(--green); color: #000; }
.nc-ev div { display: grid; gap: 3px; min-width: 0; }
.nc-ev b { font: 600 15px/1.25 var(--sans); letter-spacing: -.01em; color: var(--ink); }
.nc-ev span { font: 400 13.5px/1.35 var(--sans); color: var(--nv-mute); }
.nc-ev time { font: 500 10px/1 var(--mono); letter-spacing: .08em; color: rgba(11,11,12,.46); }

/* three short points */
.nc-feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1080px; margin: 64px auto 0; padding: 0; list-style: none; }
.nc-feats li { display: grid; align-content: start; gap: 8px; padding: 4px 34px 0; border-left: 1px solid var(--nv-line); }
.nc-feats li:first-child { border-left: 0; padding-left: 0; }
.nc-feats li:last-child { padding-right: 0; }
.nc-feats i { font: 500 10px/1 var(--mono); font-style: normal; letter-spacing: .14em; color: var(--nv-ink-t); }
.nc-feats b { margin-top: 6px; font: 600 17px/1.3 var(--sans); letter-spacing: -.012em; color: var(--ink); }
.nc-feats span { font: 400 15px/1.55 var(--sans); color: var(--nv-mute); text-wrap: pretty; }

@media (max-width: 900px) {
  .nc-stage { grid-template-columns: minmax(0, 1fr); max-width: 560px; gap: 18px; }
  .nc-plot { height: 230px; }
  .nc-ev { translate: 0 0; }
  .nc-feats { grid-template-columns: minmax(0, 1fr); gap: 26px; max-width: 560px; margin-top: 52px; }
  .nc-feats li { padding: 22px 0 0; border-left: 0; border-top: 1px solid var(--nv-line); }
  .nc-feats li:first-child { border-top: 0; padding-top: 0; }
}
@media (max-width: 480px) {
  .nc-card { padding: 18px 16px 14px; border-radius: 18px; }
  .nc-plot { height: 210px; }
  .nc-ev { grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; padding: 13px 14px; }
  .nc-ic { width: 34px; height: 34px; }
}
