/* First paint of the portal: the loader index.html places inside #root.
   The full-page NexoLoader uses these same rules, so the splash and the React
   loader are one design. This file loads before the bundle, so its colours
   mirror the tokens of src/styles/styles.css instead of reading them. */
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/schibsted-grotesk-latin.woff2) format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/schibsted-grotesk-latin.woff2) format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

body {
  margin: 0;
}

.nexo-loader {
  --nexo-fundo: #fff;
  --nexo-tinta: #0b1620;
  --nexo-texto: #4a5560;
  --nexo-trilho: #e8eef2;
  --nexo-linha: #1f5fa8;
  --nexo-tile: #0b1620;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 24px;
  background: var(--nexo-fundo);
  color: var(--nexo-tinta);
  font-family: "Schibsted Grotesk", Arial, sans-serif;
  text-align: center;
}
html[data-theme="dark"] .nexo-loader {
  --nexo-fundo: #0b1620;
  --nexo-tinta: #f2f5f7;
  --nexo-texto: #b4c0cb;
  --nexo-trilho: #1b2e3d;
  --nexo-linha: #8fc6ea;
  --nexo-tile: #132330;
}

/* The base state of every part is the finished one, so the mark and the line
   stay visible whenever the animations do not run. */
.nexo-mark {
  display: block;
  flex: none;
}
.nexo-mark path {
  fill: none;
}
.nexo-mark-tile {
  fill: var(--nexo-tile);
}
.nexo-mark-stem,
.nexo-mark-arch {
  stroke: #f2f5f7;
  stroke-width: 7;
}
.nexo-mark-halo {
  stroke: var(--nexo-tile);
  stroke-width: 13;
}
.nexo-mark-visto {
  stroke: #8fc6ea;
  stroke-width: 7;
}

.nexo-loader .nexo-mark-stem,
.nexo-loader .nexo-mark-arch,
.nexo-loader .nexo-mark-halo,
.nexo-loader .nexo-mark-visto {
  stroke-dasharray: 1 2;
  animation: nexo-trace 420ms cubic-bezier(0.23, 1, 0.32, 1) both;
}
.nexo-loader .nexo-mark-stem {
  animation-duration: 220ms;
  animation-delay: calc(0ms - var(--nexo-elapsed, 0ms));
}
.nexo-loader .nexo-mark-arch {
  animation-duration: 300ms;
  animation-delay: calc(220ms - var(--nexo-elapsed, 0ms));
}
.nexo-loader .nexo-mark-halo,
.nexo-loader .nexo-mark-visto {
  animation-delay: calc(520ms - var(--nexo-elapsed, 0ms));
}

.nexo-loader-name {
  margin: 14px 0 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.5px;
  line-height: 1.2;
}
.nexo-loader-line {
  width: 160px;
  height: 3px;
  margin-top: 20px;
  overflow: hidden;
  background: var(--nexo-trilho);
  border-radius: 2px;
}
.nexo-loader-line span {
  display: block;
  height: 100%;
  background: var(--nexo-linha);
  transform: scaleX(0.92);
  transform-origin: left center;
  animation: nexo-advance 8s cubic-bezier(0.22, 0.61, 0.36, 1) both;
  animation-delay: calc(0ms - var(--nexo-elapsed, 0ms));
}
.nexo-loader-label {
  margin: 12px 0 0;
  color: var(--nexo-texto);
  font-size: 14px;
  line-height: 1.4;
}

@keyframes nexo-trace {
  from {
    stroke-dashoffset: 1;
  }
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes nexo-advance {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(0.92);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nexo-loader .nexo-mark-stem,
  .nexo-loader .nexo-mark-arch,
  .nexo-loader .nexo-mark-halo,
  .nexo-loader .nexo-mark-visto {
    stroke-dasharray: none;
    animation: none;
  }
  .nexo-loader-line span {
    animation: none;
  }
}
