/* =============================================================
   The Manager Gap self-check.

   Loaded only by self-check.html, on top of mgi.css. Everything the
   scorecard needs that the full assessment did not already have, and
   nothing else: the main page must not pay for this file.
   ============================================================= */

/* the eyebrow is styled per view in mgi.css, and the landing is not one
   of the views it covers */
.landing .eyebrow{ display: block; margin-bottom: 14px; }

/* ---------- the four states ----------
   Each name in its own colour, the same four the dots in the hero use and
   the same four a reading is later called by. The list is the first place
   a reader meets them, so the association starts here rather than on the
   scorecard. */

.landing .states li[data-state="cruise"] .state-name{ color: var(--cruise); }
.landing .states li[data-state="drift"] .state-name{ color: var(--drift); }
.landing .states li[data-state="headwinds"] .state-name{ color: var(--headwinds); }
.landing .states li[data-state="stall"] .state-name{ color: var(--stall); }

/* ---------- the score ----------
   A number the size of a headline, because it is the thing the reader
   came for. Mono, so it reads as a measurement rather than a grade, and
   the denominator is smaller than the score so the pair cannot be
   mistaken for a fraction out of a hundred. */

.sc-score{
  font-family: var(--mono);
  font-size: clamp(38px, 9vw, 58px);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin: 0 0 18px;
}

.sc-score .sc-of{
  font-size: 0.42em;
  letter-spacing: 0.02em;
  font-weight: 400;
  color: var(--ink-mute);
  margin-left: 2px;
}

/* ---------- the five items ----------
   The specific things, each with the answer the manager gave. This is
   the part that is worth more than the number: a score is arguable, a
   named thing nobody can remember is not. */

.sc-items{
  list-style: none;
  margin: 26px 0 26px;
  padding: 0;
  max-width: 40em;
  border-top: 1px solid var(--rule-soft);
}

.sc-items li{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--rule-soft);
  padding: 13px 0;
}

.sc-item-name{
  font-family: var(--serif);
  font-size: 16.5px;
  line-height: 1.45;
  color: var(--ink);
}

/* the answer, coloured by how far back it reaches. Four steps, not a
   traffic light: nothing here is a pass or a fail. */
.sc-item-when{
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: right;
  white-space: nowrap;
  flex: 0 0 auto;
  color: var(--ink-mute);
}

.sc-when-3{ color: var(--cruise); }
.sc-when-2{ color: var(--ink-2); }
.sc-when-1{ color: var(--drift); }
.sc-when-0{ color: var(--stall); font-weight: 600; }

/* the one that has gone longest, marked so the eye lands on it */
.sc-items li.sc-thinnest{
  border-left: 2px solid var(--ink);
  padding-left: 14px;
  margin-left: -16px;
}

@media (max-width: 480px){
  .sc-items li{
    display: block;
  }
  .sc-item-when{
    display: block;
    text-align: left;
    margin-top: 5px;
  }
  .sc-items li.sc-thinnest{ margin-left: 0; }
}

/* ---------- the cohort, and the way on ---------- */

.sc-cohort,
.sc-full{
  font-family: var(--serif);
  font-size: clamp(16px, 3.4vw, 18px);
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0 0 24px;
  max-width: 36em;
}

/* ---------- the offer ----------
   Sits under the state, which has already been given. It is set off from
   the reading above it so it reads as a separate proposition rather than
   as the next paragraph of the result. */

.offer{
  border-top: 2px solid var(--ink);
  margin-top: 8px;
}

.offer-head{
  font-family: var(--serif);
  font-size: clamp(21px, 4.4vw, 26px);
  line-height: 1.25;
  letter-spacing: -0.014em;
  font-weight: 600;
  margin: 0 0 18px;
  max-width: 22em;
}

.offer-list{
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  max-width: 36em;
}

.offer-list li{
  font-family: var(--serif);
  font-size: clamp(16px, 3.4vw, 17.5px);
  line-height: 1.55;
  color: var(--ink-2);
  padding: 0 0 10px 20px;
  position: relative;
}

/* a rule rather than a bullet: the page has no bullets anywhere else */
.offer-list li::before{
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 10px;
  height: 1px;
  background: var(--rule);
}

.offer form{ max-width: 26em; }

/* ---------- the worksheet ---------- */

.sheet{
  margin: 26px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--rule-soft);
  max-width: 36em;
}

.sheet[hidden]{ display: none; }

.sheet-label{
  display: block;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 8px;
}

.sheet-link{
  font-family: var(--serif);
  font-size: clamp(18px, 3.8vw, 21px);
  line-height: 1.3;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.sheet-link:hover{ color: var(--accent-lift); }

.sheet-note{
  font-family: var(--ui);
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-mute);
  margin: 12px 0 0;
}

/* the two halves of "what you get", each with its own lead-in */
.fold-intro{
  font-family: var(--ui);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-mute);
  margin: 0 0 6px;
}

.fold-intro + .findings-list + .fold-intro{ margin-top: 18px; }
