/* grades.css - the look of the Grades page (grades.js; GRADES_PAGE 0001)
   ------------------------------------------------------------------------
   Every number here is the approved renders': Concept Art/grades_12_weeks
   .html G1 to G4 for the phone (.slist, .cgroup, .chead, .spanel, .srow,
   .srow.total, .slabel, .sval, .sval.dash, the bean's .sbar and .sthumb),
   wide_grades_and_quizzes.html G1 to G3 for a computer and a tablet on its
   side (.glist and its four .glist rules), the band colors shell.css's
   tokens (D550), and each course panel a list bubble lit by shell.css's two
   tokens and nothing else (D1699). NO GRADES YET is pulses.css's empty
   list (P1e, U7; D1879, D1733, D1736), its values copied here under this
   page's own classes. Loaded from this origin, as the page's Content
   Security Policy allows (style-src 'self'): no inline style; the bean's
   place, which grades.js computes, is set through the style object. Every
   number is before nav.js's scale s; .nv-wide on the page's screen is
   nav.js's wide layout.

   NEVER a row that looks tappable: no chevron, no caret, nothing of the page's
      own drawn or typed (D924 to D927). */

/* == THE PAGE: nav's body. The list scrolls in it, 14 px in from each
   side, the course panels 12 px apart, flush with its top and, scrolled to
   the end, its bottom (G2, G3: 348 + 12 + 348 = 708 px). == */
.gr-page {
  position: absolute;
  inset: 0;
}
.gr-scroll {
  position: absolute;
  inset: 0;
  padding: 0 14px;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.gr-scroll::-webkit-scrollbar {
  display: none;
}
.gr-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.gr-group {
  flex: none;
}

/* A course's heading (.chead): 14 px, 600, 18 px tall, 8 px above its
   panel, its color the course's band (the modifiers at the end). */
.gr-head {
  height: 18px;
  margin-bottom: 8px;
  padding-left: 4px;
  font-size: 14px;
  font-weight: 600;
  line-height: 18px;
  white-space: nowrap;
}

/* A course panel (.spanel): a list bubble (D1699), lit by shell.css's two
   tokens; 26 + 8 x 40 + 2 = 348 px with its heading. */
.gr-panel {
  border: 1px solid #2C3850;
  border-radius: 18px;
  overflow: hidden;
  background-color: #1D2739;
  background-image: var(--lit-bubble);
  box-shadow: var(--lit-bubble-shadow);
}
.gr-row {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
}
.gr-row + .gr-row {
  border-top: 1px solid #253045;
}
/* Final Score, under its stronger line (.srow.total). */
.gr-row.gr-total {
  border-top: 1px solid #37476B;
}
.gr-label {
  font-size: 15.5px;
  font-weight: 400;
  color: #AEBBD0;
  white-space: nowrap;
}
.gr-total .gr-label {
  font-weight: 600;
  color: #EAF0FA;
}
.gr-value {
  font-size: 15.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #EAF0FA;
  white-space: nowrap;
}
/* The one dash (D925, D561). */
.gr-value.gr-dash {
  font-weight: 600;
  color: #5C6B85;
}

/* §1e: the bean, 6 px, #8FA3C4, round, NO track; 6 px in from the list's
   right edge, 10 px clear of its top and bottom; only where it scrolls (G2,
   G3: 626 / 708 = 88.4% of its track as drawn). */
.gr-bean-track {
  position: absolute;
  top: 10px;
  bottom: 10px;
  right: 6px;
  z-index: 4;
  width: 6px;
  visibility: hidden;
  pointer-events: none;
}
.gr-bean-track.gr-scrolls {
  visibility: visible;
}
.gr-bean {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  border-radius: 99px;
  background: #8FA3C4;
}

/* == NO GRADES YET (D2033 (4); not drawn): pulses.css's P1e block,
   Nothing due today's (overlays_and_end_states.html E2) centered in the
   column 24 px from each side, Little Sai Thura calm above it
   (little_sai_thura_and_big_moments.html slot-e2, placed by
   SaiThuraFigure.place) at the stage's full 100 x 150, there being no
   button (D1733, D1736), over E2's line (.esp); no headline. Flat: no
   light, no panel (D1699). == */
.gr-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  text-align: center;
}
/* Over figure.css's calm stage (132 px): two classes of this page's own on
   the stage figure.js placed, so these rules outrank its .ls-stage.calm. */
.gr-empty .gr-stage.gr-calm {
  height: 156px;
}
.gr-empty .gr-stage.gr-calm .gr-fig {
  height: 150px;
  width: 100px;
}
/* E2's line (.esp): 14 px under what is above it, 16 px at 1.5. */
.gr-esp {
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.5;
  color: #AEBBD0;
}

/* == WIDE (CONCEPT_ART §1g; wide_grades_and_quizzes.html G1 to G3): each
   course a column, two side by side, 24 px apart and 24 px in from each
   side, newest on the left; a third under the first, 12 px below; every
   cell 20% larger: rows 48 px, type 18.5 px, the heading 17 px; a course
   416 px. The bean centered in the 24 px gutter. == */
.nv-wide .gr-scroll {
  padding: 0 24px;
}
.nv-wide .gr-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-content: start;
  gap: 12px 24px;
}
.nv-wide .gr-head {
  height: 20px;
  margin-bottom: 10px;
  font-size: 17px;
  line-height: 20px;
}
.nv-wide .gr-panel {
  border-radius: 21px;
}
.nv-wide .gr-row {
  height: 48px;
  padding: 0 22px;
}
.nv-wide .gr-label,
.nv-wide .gr-value {
  font-size: 18.5px;
}
.nv-wide .gr-bean-track {
  right: 9px;
}
/* U7's line: 16 px under, 19 px. */
.nv-wide .gr-esp {
  margin-top: 16px;
  font-size: 19px;
}

/* == THE BAND COLORS, declared last so a heading's color wins (D550): a
   course by its family, the shell's own tokens. == */
.gr-earth {
  color: var(--earth);
}
.gr-water {
  color: var(--water);
}
.gr-fire {
  color: var(--fire);
}
.gr-air {
  color: var(--air);
}
