/* =========================================================
   Zomniverse — Documentation Loading State

   PATCH 2026-08-10 | DOCUMENTATION LOADING CSS EXTRACTION

   Owns only the visual presentation of the target-aware
   Documentation loading state.
========================================================= */

.learn-documentation-loading {
  width: min(100%, 900px);
  min-height: 420px;
  margin: 0 auto;
  padding: 70px 54px;

  box-sizing: border-box;

  background: #ffffff;
  color: #172033;
}


/* =========================================================
   LOADING INDICATOR
========================================================= */

.learn-documentation-loading__icon {
  display: flex;
  align-items: center;
  justify-content: flex-start;

  width: 32px;
  height: 32px;
  margin: 0 0 24px;

  color: #4f46e5;
  font-size: 1.35rem;
}


/* =========================================================
   CONTEXT LABEL
========================================================= */

.learn-documentation-loading__kicker {
  margin: 0 0 18px;

  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.2;

  letter-spacing: 0.12em;
  text-transform: uppercase;
}


/* =========================================================
   PRIMARY STATUS
========================================================= */

.learn-documentation-loading h2 {
  margin: 0;

  font-size: clamp(
    1.65rem,
    2.6vw,
    2.2rem
  );

  font-weight: 720;
  line-height: 1.2;
  letter-spacing: -0.025em;
}


/* =========================================================
   TARGET DESCRIPTION
========================================================= */

.learn-documentation-loading h2 + p {
  max-width: 780px;
  margin: 28px 0 0;

  font-size: 1rem;
  font-weight: 450;
  line-height: 1.65;
}


/* =========================================================
   SUBTLE LOADING MOTION
========================================================= */

.learn-documentation-loading__icon i {
  animation:
    learn-documentation-loader-spin
    850ms
    linear
    infinite;
}

@keyframes learn-documentation-loader-spin {
  to {
    transform: rotate(360deg);
  }
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 700px) {
  .learn-documentation-loading {
    min-height: 340px;
    padding: 48px 24px;
  }

  .learn-documentation-loading h2 + p {
    margin-top: 22px;
  }
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
  .learn-documentation-loading__icon i {
    animation-duration: 1.8s;
  }
}


/* =========================================================
   PRINT
========================================================= */

@media print {
  .learn-documentation-loading {
    display: none;
  }
}


/* =========================================================
   PATCH 2026-08-10 | LOADING TEXT CONTRAST
   Improves readability while preserving the muted loading hierarchy.
========================================================= */

.learn-documentation-loading__kicker {
  color: #4f5e7b;
  opacity: 1;
}

.learn-documentation-loading h2 {
  color: #172033;
  opacity: 1;
}

.learn-documentation-loading h2 + p {
  color: #3f4d63;
  opacity: 1;
}