/* Story interactives. Colours are the site's tokens from base.html's tailwind config. */
.nz-ix, .nz-ix-preview {
  --ix-card: #191F28; --ix-line: #252C38; --ix-primary: #378EEA; --ix-btn: #2E74C6;
  --ix-off: #2A313D; --ix-mid: #D9A441; --ix-alt: #3FB6A8; --ix-accent: #F59E0B; --ix-muted: #9CA3AF;
}
.nz-ix {
  scroll-margin-top: 96px;
  position: relative;
  margin-top: 1rem; padding: 1.25rem; border: 1px solid var(--ix-line); border-radius: .75rem;
  background: var(--ix-card);
}
@media (max-width: 640px) { .nz-ix { padding: 1rem; } }
.nz-ix-glow { animation: nz-ix-glow 1.6s ease-out 1; }
@keyframes nz-ix-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(55, 142, 234, 0); }
  25% { box-shadow: 0 0 0 3px rgba(55, 142, 234, .75), 0 0 28px rgba(55, 142, 234, .35); }
}
.nz-ix-kicker { display: block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ix-primary); margin-bottom: .25rem; }
.nz-ix-title { font-size: 1.125rem; font-weight: 700; line-height: 1.3; color: #fff; }
.nz-ix-dek { margin-top: .25rem; font-size: .875rem; color: var(--ix-muted); }
.nz-ix-chart { margin-top: .875rem; }
.nz-ix-foot { margin-top: 1rem; padding-top: .75rem; border-top: 1px solid var(--ix-line); font-size: .75rem; line-height: 1.5; color: var(--ix-muted); }
.nz-ix-foot a, .nz-ix-detail a { color: var(--ix-primary); }
.nz-ix-foot a:hover, .nz-ix-detail a:hover { text-decoration: underline; }
.nz-ix-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.nz-ix-noscript table { width: 100%; margin-top: 1rem; font-size: .8125rem; border-collapse: collapse; }
.nz-ix-noscript th, .nz-ix-noscript td { padding: .25rem .5rem; border-bottom: 1px solid var(--ix-line); text-align: left; }

/* Preview card: the globe's spot, same 300px wide. */
.nz-ix-preview { flex-direction: column; width: 300px; min-height: 300px; align-self: flex-start; flex-shrink: 0; padding: .875rem; border: 1px solid var(--ix-line); border-radius: .5rem; background: #161B24; transition: border-color .15s; }
.nz-ix-preview:hover { border-color: var(--ix-primary); }
.nz-ix-preview-title { font-size: .9375rem; font-weight: 700; line-height: 1.3; color: #fff; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nz-ix-preview-mini { flex: 1; min-height: 130px; display: flex; align-items: center; justify-content: center; margin: .625rem 0; }
.nz-ix-preview-foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; font-size: .75rem; color: var(--ix-muted); }
.nz-ix-preview-cta { padding: .25rem .625rem; border-radius: 9999px; background: var(--ix-btn); color: #fff; font-weight: 600; white-space: nowrap; }

/* Teaser under the headline: an even outline, same family as the latest-event link. */

/* Sidebar sub-link. */

/* Shared scrubber: round play, thick bar. */
.nz-ix-scrubber { display: flex; align-items: center; gap: .875rem; margin-top: .875rem; }
.nz-ix-scrubber input { flex: 1; min-width: 0; height: 28px; accent-color: #378EEA; }
.nz-ix-play { width: 32px; height: 32px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--ix-btn); color: #fff; }
.nz-ix-play:hover { background: var(--ix-primary); }
.nz-ix-play svg { width: 13px; height: 13px; fill: currentColor; }

/* Shared lists and numbers. */
.nz-ix-readout { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; margin-bottom: .625rem; font-size: .875rem; color: #D1D5DB; }
.nz-ix-readout b { font-size: 1.875rem; line-height: 1; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.nz-ix-yearpill { padding: .0625rem .5rem; border-radius: 9999px; background: rgba(55, 142, 234, .15); color: var(--ix-primary); font-size: .75rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.nz-ix-moves { display: flex; flex-direction: column; gap: .375rem; font-size: .8125rem; color: #D1D5DB; }
.nz-ix-moves b { color: var(--ix-accent); font-weight: 600; font-variant-numeric: tabular-nums; margin-right: .25rem; }

/* us_tile_map */
.nz-ix-mapwrap { display: grid; grid-template-columns: minmax(0, 1fr) 170px; gap: 1.25rem; align-items: start; }
.nz-ix-mapwrap.is-snapshot { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 640px) { .nz-ix-mapwrap { grid-template-columns: minmax(0, 1fr); } }
.nz-ix-legend { display: flex; flex-wrap: wrap; gap: .25rem .875rem; margin-top: .625rem; font-size: .75rem; color: var(--ix-muted); }
.nz-ix-key { display: inline-flex; align-items: center; gap: .375rem; }
.nz-ix-key i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
.nz-ix-tiles { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 3px; max-width: 420px; }
.nz-ix-tile { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border-radius: 4px; font-size: clamp(8px, 2.3vw, 11px); font-weight: 600; transition: background-color .2s, color .2s; }
button.nz-ix-tile:hover, button.nz-ix-tile:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.nz-ix [data-tone="on"], .nz-ix-preview [data-tone="on"] { background: var(--ix-primary); color: #fff; }
.nz-ix [data-tone="off"], .nz-ix-preview [data-tone="off"] { background: var(--ix-off); color: #8791A1; }
.nz-ix [data-tone="mid"], .nz-ix-preview [data-tone="mid"] { background: var(--ix-mid); color: #0B1018; }
.nz-ix [data-tone="alt"], .nz-ix-preview [data-tone="alt"] { background: var(--ix-alt); color: #0B1018; }
.nz-ix-tiles-mini { width: 210px; gap: 2px; }
.nz-ix-tiles-mini .nz-ix-tile { border-radius: 2px; }
.nz-ix-sidehead { font-size: 11px; letter-spacing: .04em; color: var(--ix-muted); margin-bottom: .25rem; }
.nz-ix-spark { width: 100%; height: 46px; display: block; margin-bottom: .75rem; overflow: visible; }
.nz-ix-spark polyline { fill: none; stroke: var(--ix-primary); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.nz-ix-spark line { stroke: var(--ix-accent); stroke-width: 1; vector-effect: non-scaling-stroke; }
.nz-ix-detail { margin-top: .625rem; min-height: 1.5em; font-size: .8125rem; color: #D1D5DB; }

/* rank_compare */
.nz-ix-toggle { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--ix-line); border-radius: 9999px; margin-bottom: .75rem; }
.nz-ix-toggle button { padding: .25rem .75rem; border-radius: 9999px; font-size: .8125rem; color: #D1D5DB; }
.nz-ix-toggle button[aria-pressed="true"] { background: var(--ix-btn); color: #fff; font-weight: 600; }
.nz-ix-rankline { min-height: 1.5em; margin-bottom: .75rem; font-size: .875rem; color: #D1D5DB; }
.nz-ix-rankline b { color: var(--ix-accent); font-weight: 600; }
.nz-ix-rankline em { font-style: normal; font-weight: 700; color: var(--ix-accent); }
.nz-ix-dots { --ix-labelw: 7.5rem; }
@media (max-width: 640px) { .nz-ix-dots { --ix-labelw: 5.5rem; } }
.nz-ix-dots-axis { position: relative; height: 18px; margin-left: var(--ix-labelw); margin-right: 8px; font-size: 11px; color: var(--ix-muted); font-variant-numeric: tabular-nums; }
.nz-ix-dots-axis span { position: absolute; transform: translateX(-50%); }
.nz-ix-dots-rows { position: relative; }
.nz-ix-dotrow { position: absolute; left: 0; right: 0; height: 26px; display: flex; align-items: center; text-align: left; font-size: .8125rem; color: #D1D5DB; transition: top .4s ease; }
.nz-ix-dotlabel { width: var(--ix-labelw); flex-shrink: 0; padding-right: .5rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nz-ix-dottrack { position: relative; flex: 1; height: 14px; margin-right: 8px; display: block; }
.nz-ix-dottrack::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--ix-line); }
.nz-ix-dot, .nz-ix-ghost { position: absolute; top: 50%; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%; background: var(--ix-primary); transition: left .4s ease, opacity .3s; }
.nz-ix-ghost { width: 8px; height: 8px; margin: -4px 0 0 -4px; background: var(--ix-card); box-shadow: inset 0 0 0 1.5px #5C7FA8; }
.nz-ix-seg { position: absolute; top: 50%; height: 2px; margin-top: -1px; background: rgba(55, 142, 234, .55); transition: opacity .3s; }
.nz-ix-dotrow:hover .nz-ix-dotlabel { color: #fff; }
.is-highlight .nz-ix-dotlabel { color: var(--ix-accent); font-weight: 600; }
.is-highlight .nz-ix-dot, .nz-ix-dottrack.is-highlight .nz-ix-dot { background: var(--ix-accent); }
.is-highlight .nz-ix-seg, .nz-ix-dottrack.is-highlight .nz-ix-seg { background: rgba(245, 158, 11, .6); }
.nz-ix-dots-mini { width: 100%; display: flex; flex-direction: column; gap: 4px; }
.nz-ix-dots-mini .nz-ix-dottrack { flex: none; margin-right: 0; }

/* adoption_curve */
.nz-ix-adopt { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 1.25rem; align-items: start; }
@media (max-width: 640px) { .nz-ix-adopt { grid-template-columns: minmax(0, 1fr); } }
.nz-ix-bignum { font-size: 2.75rem; line-height: 1; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.nz-ix-bigunit { margin: .25rem 0 .75rem; font-size: .8125rem; color: var(--ix-muted); }
.nz-ix-curve { width: 100%; height: 190px; display: block; overflow: visible; }
.nz-ix-curve polyline { fill: none; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.nz-ix-curve-ghost { stroke: var(--ix-off); stroke-width: 1.5; }
.nz-ix-curve-line { stroke: var(--ix-primary); stroke-width: 2; }
.nz-ix-curve-area { fill: rgba(55, 142, 234, .18); stroke: none; }
.nz-ix-curve-mini { height: 130px; }
.nz-ix-axis { display: flex; justify-content: space-between; margin-top: .25rem; font-size: 11px; color: var(--ix-muted); font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  .nz-ix-tile, .nz-ix-dot, .nz-ix-ghost, .nz-ix-seg, .nz-ix-dotrow { transition: none; }
}
@media (max-width: 639px) { .nz-ix-dotlabel { white-space: normal; overflow: visible; text-overflow: clip; font-size: .6875rem; line-height: 1.05; } }

/* rank_race */
.nz-ix-race { position: relative; margin-top: .5rem; }
.nz-ix-racerow { position: absolute; left: 0; right: 0; display: flex; align-items: center; height: 26px; font-size: .8125rem; color: #D1D5DB; text-align: left; transition: top .7s ease; --ix-labelw: 110px; }
.nz-ix-racetrack { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; height: 18px; padding-right: 4.5rem; }
.nz-ix-racebar { display: block; height: 14px; min-width: 2px; border-radius: 3px; background: var(--ix-primary); transition: width .7s ease; max-width: 100%; }
.nz-ix-raceval { flex-shrink: 0; margin-left: .375rem; margin-right: -4.5rem; font-size: .75rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nz-ix-raceval small { color: var(--ix-muted); font-size: .6875rem; }
.nz-ix-racerow.is-carried .nz-ix-racebar { opacity: .45; }
.nz-ix-racerow.is-highlight { color: var(--ix-accent); font-weight: 600; }
.nz-ix-racerow.is-highlight .nz-ix-racebar { background: var(--ix-accent); }
.nz-ix-racenote { margin-top: .625rem; font-size: .75rem; color: var(--ix-muted); }
.nz-ix-race-mini { display: flex; flex-direction: column; gap: 6px; }
.nz-ix-race-mini i { display: block; height: 8px; border-radius: 2px; background: var(--ix-primary); }
.nz-ix-race-mini i.is-highlight { background: var(--ix-accent); }
@media (prefers-reduced-motion: reduce) { .nz-ix-racerow, .nz-ix-racebar { transition: none; } }
.nz-ix-race-mini { width: 100%; }

/* minute_replay */
.nz-ix-replay-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .75rem 1.5rem; margin-top: .75rem; }
.nz-ix-clock b { display: block; font-size: 2.75rem; line-height: 1; font-weight: 700; font-variant-numeric: tabular-nums; color: #fff; }
.nz-ix-clock small { display: block; margin-top: .25rem; font-size: .6875rem; color: var(--ix-muted); }
.nz-ix-counters { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; flex: 1; min-width: 0; }
.nz-ix-counters dt { font-size: .6875rem; line-height: 1.2; color: var(--ix-muted); }
.nz-ix-counters dd { font-size: 1.125rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ix-accent); }
.nz-ix-counters .is-waiting dd { color: var(--ix-muted); opacity: .5; }
.nz-ix-lanes { position: relative; margin: .75rem 12px 0; }
.nz-ix-playhead { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--ix-primary); opacity: .7; transition: left .3s linear; }
.nz-ix-lane { padding-bottom: .375rem; }
.nz-ix-lanename { display: block; margin-left: -12px; font-size: .6875rem; color: var(--ix-muted); }
.nz-ix-lanetrack { position: relative; height: 24px; }
.nz-ix-lanetrack::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--ix-line); }
.nz-ix-mark { position: absolute; top: 50%; width: 24px; height: 24px; margin: -12px 0 0 -12px; background: none; }
.nz-ix-mark::after { content: ""; position: absolute; left: 6px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--ix-primary); transition: transform .2s, opacity .2s; }
.nz-ix-mark.is-highlight::after { background: var(--ix-accent); }
.nz-ix-mark.is-future { opacity: 0; pointer-events: none; }
.nz-ix-mark.is-now::after { transform: scale(1.35); }
.nz-ix-events { min-height: 11rem; margin-top: .75rem; display: grid; gap: .5rem; align-content: start; }
.nz-ix-event { padding: .625rem .75rem; border: 1px solid var(--ix-line); border-radius: .5rem; font-size: .875rem; line-height: 1.45; color: #D1D5DB; }
.nz-ix-event.is-highlight { border-color: var(--ix-accent); }
.nz-ix-eventhead { font-size: .75rem; color: var(--ix-muted); margin-bottom: .125rem; }
.nz-ix-eventhead span { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ix-primary); }
.nz-ix-eventhead b { color: #fff; font-weight: 600; }
.nz-ix-replay-mini { width: 100%; display: grid; gap: 26px; padding: 12px 6px; }
.nz-ix-replay-mini div { position: relative; height: 1px; background: var(--ix-off); }
.nz-ix-replay-mini i { position: absolute; top: -5px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--ix-primary); }
.nz-ix-replay-mini i.is-highlight { background: var(--ix-accent); }
@media (prefers-reduced-motion: reduce) { .nz-ix-playhead, .nz-ix-mark::after { transition: none; } }
