/* ===========================================================================
   v054 — Progress by module
   ---------------------------------------------------------------------------
   The page answered "how am I doing?" but a student sits four separate papers
   and revises them one at a time. Two additions: a scope picker, and a strip of
   one-line cards so all four units can be read at a glance without switching
   between them. Tapping either one scopes the whole page.
   =========================================================================== */

/* ---------- the scope picker ---------- */

.gpScopePicker {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 5px;
  margin-bottom: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f1f5f9;
}

.gpScopeChip {
  flex: 1 1 auto;
  min-width: 62px;
  min-height: 38px;
  padding: 8px 14px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
}
.gpScopeChip:hover { color: #315efb; }
.gpScopeChip.active {
  background: #fff;
  color: #315efb;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .10);
}

/* the chip beside the grade, so a scoped estimate never reads as a global one */
.gpLevelScope {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eef3ff;
  color: #315efb;
  font-size: 11.5px;
  font-weight: 800;
  vertical-align: middle;
}

/* ---------- the per-module strip ---------- */

.gpModules {
  margin-bottom: 16px;
  padding: 16px 16px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
}
.gpModulesHead h3 { margin: 0 0 4px; font-size: 15px; font-weight: 800; color: #0f172a; }
.gpModulesHead p { margin: 0 0 12px; font-size: 12px; color: #64748b; line-height: 1.5; }

.gpModuleRow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.gpModuleCard {
  display: grid;
  gap: 2px;
  justify-items: start;
  min-width: 0;
  padding: 12px 12px 10px;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
.gpModuleCard:hover { border-color: #315efb; box-shadow: 0 4px 14px rgba(49, 94, 251, .12); }
.gpModuleCard.active { border-color: #315efb; background: linear-gradient(180deg, #f6f9ff, #fff); }

.gpModuleName { font-size: 15px; font-weight: 900; color: #0f172a; letter-spacing: -.01em; }
.gpModuleNums { font-size: 15px; font-weight: 800; color: #0f172a; }
.gpModuleLabel { font-size: 10.5px; color: #94a3b8; }
.gpModuleMeta,
.gpModuleGap { display: flex; align-items: baseline; gap: 4px; margin-top: 3px; min-height: 16px; }
.gpModuleMeta b,
.gpModuleGap b { font-size: 12.5px; font-weight: 800; color: #0f172a; }
.gpModuleMeta em,
.gpModuleGap em { font-style: normal; font-size: 11px; color: #64748b; }
.gpModuleGap b { color: #b42318; }
.gpModuleMeta b { color: #0f766e; }

.gpModuleTrack {
  display: block;
  width: 100%;
  height: 5px;
  margin-top: 8px;
  border-radius: 999px;
  background: #eef2f7;
  overflow: hidden;
}
.gpModuleTrack i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #6d9bff, #315efb);
}

/* ---------- enlarged interfaces ---------- */

/* Four columns is a desktop idea. Zoom does not change the media query, so the
   effective width is what has to drive this. */
html[data-ui-eff="mid"] .gpModuleRow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
html[data-ui-eff="narrow"] .gpModuleRow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
html[data-ui-eff="narrow"] .gpScopeChip { flex: 1 1 40%; }
