/* The student navigation of the portal pages (sections/lms.html, shown by header.html on every page but the
   landing): items, the program of a course, the progress bar, the mark of the student, the compact footer.
   Phone and tablet: up to 1023px. */

.lms { font-family: var(--f-body); color: var(--text); }
.lms a { color: inherit; text-decoration: none; }
.lms summary { list-style: none; cursor: pointer; }
.lms summary::-webkit-details-marker { display: none; }
.lms .i { width: 18px; height: 18px; }

/* The student's mark: rose gold, a Playfair initial. */
.lms-avatar {
  flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border-radius: 50%; background: linear-gradient(180deg, #F6D9C4 0%, #C98F70 100%); color: #3A1410;
  font: 400 20px/1 'Playfair Display', serif; box-shadow: 0 6px 18px rgba(201, 143, 112, .25);
}

/* A progress bar: the fill is a step of 10 %. */
.lms-bar { position: relative; display: block; flex: 1; height: 6px; border-radius: 999px; background: rgba(243, 230, 220, .1); overflow: hidden; }
.lms-bar-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 999px; background: linear-gradient(90deg, #F6D9C4 0%, #C98F70 100%); }
.lms-bar-fill--10 { width: 10%; } .lms-bar-fill--20 { width: 20%; } .lms-bar-fill--30 { width: 30%; }
.lms-bar-fill--40 { width: 40%; } .lms-bar-fill--50 { width: 50%; } .lms-bar-fill--60 { width: 60%; }
.lms-bar-fill--70 { width: 70%; } .lms-bar-fill--80 { width: 80%; } .lms-bar-fill--90 { width: 90%; }
.lms-bar-fill--100 { width: 100%; }

/* The program of a course, compact. */
.lms-prog, .lms-prog-lessons { margin: 0; padding: 0; list-style: none; }
.lms-prog { display: grid; gap: 14px; }
.lms-prog-title {
  display: flex; gap: 8px; align-items: baseline; margin: 0 0 6px; font-size: 11px; font-weight: 600; line-height: 1.35;
  letter-spacing: .12em; text-transform: uppercase; color: var(--text-3);
}
.lms-prog-n { font: 400 15px/1 'Playfair Display', serif; letter-spacing: 0; color: var(--accent); }
.lms-prog-lessons { display: grid; gap: 2px; }
.lms-prog-lesson {
  display: flex; align-items: flex-start; gap: 9px; padding: 7px 10px; border-radius: 12px; font-size: 13px;
  line-height: 1.35; color: var(--text-2); transition: background-color .15s ease, color .15s ease;
}
.lms-prog-lesson .i { width: 15px; height: 15px; margin-top: 1px; color: var(--accent); }
.lms-prog-lesson--done .i { color: var(--accent-2); }
.lms-prog-lesson--locked { color: var(--text-3); }
.lms-prog-lesson--locked .i { color: var(--text-3); }
a.lms-prog-lesson:hover { background: rgba(232, 193, 166, .08); color: var(--text); }
.lms-prog-lesson--on { background: rgba(232, 193, 166, .14); color: var(--text); box-shadow: inset 0 0 0 1px rgba(232, 193, 166, .3); }

/* The compact footer. */
.ftr-lms {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px;
  margin-top: 96px; padding: 22px 32px 28px; border-top: 1px solid rgba(232, 193, 166, .14); font-size: 13px; color: var(--text-3);
}
.ftr-lms p { margin: 0; }
.ftr-lms-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.ftr-lms-links a { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); }
.ftr-lms-links a:hover { color: var(--accent); }
.ftr-lms .i { width: 15px; height: 15px; }

/* The sign-out button of the engine inside a panel. */
.lms-out .cb-logout {
  width: 100%; padding: 12px 16px; border: 1px solid rgba(232, 193, 166, .3); border-radius: 999px; background: transparent;
  color: var(--text-2); font: 600 13px/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; cursor: pointer;
}
