/* progress.css: a cohort's Progress and one learner's page (task PS-05). There is no accepted page for either, so
   both are built as the accepted administration's pages are (look-accepted/admin.html): the cohort's tab row above
   the band, the tool band, the house look's table box (.table-wrap, .admin-table, styles.css), regions drawn as cards
   (.card.house-region), compact labelled rows (.house-labelled.is-compact), the pills (.house-pills), the rail and
   the numbered section headings (house.css). Every colour, type family, radius and shadow is a custom property of
   styles.css or house.css.

   For PL-07, what is here and not in house.css: the row of a results page's own pages under the band (.prg-views),
   a second line in a table cell (.prg-small), a value no feature can give (.prg-unknown), a cell's short list of
   reasons (.prg-reasons), a wide table whose first column stays in view (.prg-table.is-wide), the downloads under a
   table (.prg-downloads), and the learner page's cards, questionnaire answers and wrong answers (.lrn-*). */

/* ---- the results pages ---- */

/* The row of Progress's own pages stands under the band, as the band's own continuation. */
.prg-views { margin: 22px 0 0; }
.prg-views .house-pills a { white-space: nowrap; }
.prg-views + .house-lede { margin-top: 18px; }
.prg-body > .house-section:first-child { padding-top: 30px; }
.prg-body > .empty-box { margin-top: 26px; }

/* A second line in a cell: the last session attended, a quiz's score under a day's check-in, a column's state. */
.prg-small { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 500; line-height: 1.45;
  color: var(--ink-3); letter-spacing: 0; text-transform: none; white-space: normal; }
/* A value that no feature can give: a dash, read as "Not known". Its words for a screen reader are positioned inside
   it, so that they never reach past a table box that scrolls (the house's .sr-only is placed absolutely). */
.prg-unknown { position: relative; color: var(--ink-3); }
.prg-reasons { margin: 0; padding: 0; list-style: none; font-size: 13.5px; line-height: 1.45; color: var(--warn); }
.prg-reasons > li + li { margin-top: 4px; }
.prg-table tr.is-withdrawn td { color: var(--ink-3); }
.prg-table thead th { vertical-align: bottom; }
.prg-table thead th a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prg-table thead th .prg-small { letter-spacing: 0; }
/* A wide table fits its box where it can: its headings wrap (styles.css) and its cells take what they need. Where it
   cannot (a day-by-day table of twenty sessions), it scrolls inside its box with the learners' names held in view and
   a shadow at the edge that has more (K1). The shadows are the box's own backgrounds: two that move with the table
   cover two that stay put, so a shadow shows only where there is more to scroll to. */
@media (min-width: 861px) {
  .prg-table.is-wide :is(th, td):first-child { position: sticky; left: 0; z-index: 1; background: var(--surface);
    box-shadow: inset -1px 0 0 var(--line); }
  .prg-table.is-wide thead th:first-child { background: var(--surface-2); }
  .prg-table.is-wide :is(th, td) { padding: 10px 9px; }
  .prg-table.is-wide th { font-size: 11px; letter-spacing: .06em; }
  .prg-table.is-wide .cell-name { min-width: 8.5rem; }
  .prg-table.is-wide .prg-attention { min-width: 10rem; }
  .prg-table.is-wide .prg-quizzes { min-width: 8.5rem; }  /* its sentence on three lines, not seven */
  .prg-table-wrap {
    background:
      linear-gradient(to right, var(--surface) 30%, transparent) left center / 48px 100% no-repeat local,
      linear-gradient(to left, var(--surface) 30%, transparent) right center / 48px 100% no-repeat local,
      radial-gradient(farthest-side at 100% 50%, color-mix(in srgb, var(--ink) 22%, transparent), transparent)
        right center / 16px 100% no-repeat scroll,
      var(--surface);
  }
}
.prg-section .field-note { margin: 12px 0 0; }
.prg-downloads { margin: 14px 0 0; }
/* A download's name can be longer than a phone is wide, so its pill wraps. */
.prg-downloads .file-link { white-space: normal; }
.prg-practice { margin-top: 0; }

/* ---- one learner's page ---- */

.lrn-card { margin: 0; }
.lrn-card > .house-labelled.is-compact { margin-top: 0; }
.lrn-gap { margin-top: 16px; }
.lrn-where { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink); max-width: 46rem; }
.lrn-section > div > h3 { margin: 28px 0 12px; font-size: 21px; line-height: 1.25; letter-spacing: -.012em; }
.lrn-section > div > h3:first-child { margin-top: 0; }
.lrn-section > div > .card + .card { margin-top: 12px; }
.lrn-section > div > .table-wrap + .card, .lrn-section > div > .card + .table-wrap { margin-top: 12px; }
.lrn-form-head { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.lrn-answers { margin-top: 10px; font-size: 14.5px; line-height: 1.5; }
.lrn-answers > summary, .lrn-wrong > summary { cursor: pointer; color: var(--ink-3); font-weight: 600; }
.lrn-answers > summary:focus-visible, .lrn-wrong > summary:focus-visible { outline: 2px solid var(--focus);
  outline-offset: 2px; border-radius: 4px; }
.lrn-part { margin-top: 12px; }
.lrn-part > h4 { margin: 0 0 4px; font-size: 14px; font-weight: 650; color: var(--ink); }
.lrn-part ul, .lrn-wrong ul { margin: 6px 0 0; padding-left: 1.1em; }
.lrn-part li + li, .lrn-wrong li + li { margin-top: 6px; }
.lrn-wrong { margin-top: 6px; font-size: 14px; }
.lrn-practice { margin-top: 4px; }
.lrn-section .house-state { margin-left: 8px; }
/* The self-ratings: the statement reads on one or two lines, and each questionnaire's column is just wide enough for
   its heading to wrap above a single digit (K2). */
.lrn-ratings .admin-table { table-layout: fixed; }
.lrn-ratings .admin-table th { padding: 10px 10px; font-size: 10.5px; letter-spacing: .06em; overflow-wrap: anywhere; hyphens: auto; }
.lrn-ratings .admin-table th:first-child { width: 42%; }
.lrn-ratings .admin-table td { padding: 10px 12px; }
.lrn-ratings .admin-table td.num { text-align: center; }
.lrn-ratings .lrn-statement { min-width: 0; font-size: 14.5px; line-height: 1.45; color: var(--ink); }
@media (max-width: 860px) {
  .lrn-ratings .admin-table { table-layout: auto; }
  .lrn-ratings .admin-table th:first-child { width: auto; }
}
