/* A student's writing, read by the teacher (shared/writing-work.js; Write Your Work, W5). */

/* The grader's first page: a white sheet, grown as long as the writing, its words sized by GraderView (a letter
   page's 16 px, scaled with the sheet), with an inch of margin at that scale. */
.grader-work-sheet.is-writing {
  background: #fff;
}
.grader-work-sheet.is-writing .grader-work-page {
  position: static;
}
.grader-work-writing {
  /* A margin a share of the sheet's width, as a page's is; the words keep their reading size (W6). */
  padding: max(24px, 7%) max(24px, 8%) max(24px, 5%);
  color: #1c1c1e;
  font-size: 16px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  user-select: text;
  cursor: text;
}
.grader-work-writing > :first-child {
  margin-top: 0;
}
.grader-work-writing p {
  margin: 0 0 0.6em;
}
.grader-work-writing h1 {
  margin: 0.8em 0 0.4em;
  font-size: 1.5em;
  font-weight: 700;
  line-height: 1.25;
}
.grader-work-writing h2 {
  margin: 0.8em 0 0.4em;
  font-size: 1.2em;
  font-weight: 700;
  line-height: 1.3;
}
.grader-work-writing ul,
.grader-work-writing ol {
  margin: 0 0 0.6em;
  padding-left: 1.6em;
}
.grader-work-writing table {
  width: 100%;
  margin: 0 0 0.8em;
  border-collapse: collapse;
  table-layout: fixed;
}
.grader-work-writing td {
  padding: 0.35em 0.5em;
  border: 1px solid #c7c7cc;
  vertical-align: top;
}
/* A link shows as text, never as something to follow (decision 2). */
.grader-work-writing .wm-link {
  text-decoration: underline;
  text-decoration-color: #c7c7cc;
}
.grader-writing-wait {
  margin: 0;
  color: var(--text-2);
  font-size: 1em;
}

/* Its first lines where a photo's thumbnail would be: the Work Wall, the Work tab, the student page's pages,
   the See the Work glance. */
.wr-thumb {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 14px 0;
  overflow: hidden;
  background: #fff;
  color: #1c1c1e;
  text-align: left;
  font-size: 11px;
  line-height: 1.45;
}
.wr-thumb-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}
.wr-thumb-title,
.wr-thumb-line {
  display: block;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
/* Where it is not inside a box that holds a picture (the student page's pages), it takes a page's shape. */
.ovw-page .wr-thumb {
  position: relative;
  aspect-ratio: 3 / 4;
  min-height: 120px;
}

/* The See the Work glance: the writing's first lines as its first page, sized as a page there. */
.ww-glance-writing {
  position: relative;
  display: block;
  flex: none;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--divider-strong);
}
/* At the glance's size the first lines are read, not scanned: larger, and not cut short. */
.ww-glance-writing .wr-thumb {
  gap: 8px;
  padding: 24px 24px 0;
  font-size: 14px;
  line-height: 1.5;
}
.ww-glance-writing .wr-thumb-title {
  font-size: 18px;
}
.ww-glance-writing .wr-thumb-title,
.ww-glance-writing .wr-thumb-line {
  -webkit-line-clamp: 6;
}
