/* /classes/ and /en/classes/ only (build.py links this file from those two pages and stamps it).
   Shared pieces live in site.css; put only this page's own rules here. Same limits as site.css:
   transitions on transform or opacity only (200 to 450 ms), no keyframes, no sticky or fixed.
   The page: who we teach (the clinic card and the adults card, the teacher line), how a class runs
   (the teal run of show), the level check paper, the phrase card on a wide desk, and the report
   sheet (the teacher view's one-page report, site/learn teacher, on made-up data). */

/* Who we teach: two cards side by side on desks, the teacher line under them */
.teacher-line { margin-top: 28px; max-width: 40em; font-size: clamp(17px, 1.5vw, 19px); line-height: 1.75; color: var(--ink); }
html[lang="en"] .teacher-line { line-height: 1.6; }

/* Text beside one piece of material (the level check, the report) */
.split { margin-top: 26px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; }
.split .h2 { margin-top: 0; }

/* The phrase card in the middle of a wide desk, as on a class slide */
.card-mat { margin-top: 36px; }
.card-desk { padding-top: 40px; padding-bottom: 36px; }

/* The report: one sheet, set like the teacher view's printed report */
.report-desk { padding-left: 16px; padding-right: 16px; }
.rp {
  width: 100%;
  max-width: 500px;
  padding: 22px 20px 26px;
  border-radius: 6px;
  background: var(--paper);
  box-shadow: var(--shadow-paper);
  color: var(--ink);
}
.rp-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.rp-head .mark { width: 22px; height: 22px; }
.rp-kind { font-size: 16px; font-weight: 800; line-height: 1.4; text-align: right; }
.rp-kind span { font-weight: 600; color: var(--muted); }
.rp-who { margin: 18px 0 16px; font-size: 28px; font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; }
.rp dt { font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--muted); }
.rp dd { margin: 0; }
/* Two tiles side by side only when each is 12em wide (the homework figure on one line); the 1 px
   gap over the rule colour draws the lines between them either way. */
.rp-tiles {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12em), 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--rule);
}
.rp-tile { min-width: 0; padding: 11px 14px 12px; background: var(--paper); }
.rp-tile dd { margin-top: 2px; font-size: 19px; font-weight: 800; line-height: 1.3; letter-spacing: -0.015em; font-variant-numeric: tabular-nums; }
.rp-blocks { margin: 0; }
.rp-block { margin-top: 20px; }
.rp-skills { margin-top: 8px; display: grid; gap: 8px; }
.rp-skills li { display: grid; grid-template-columns: 8em minmax(0, 1fr); align-items: center; gap: 12px; font-size: 16px; font-weight: 600; line-height: 1.5; font-variant-numeric: tabular-nums; }
.rp-bar { display: block; height: 9px; overflow: hidden; border-radius: 9px; background: var(--ground); }
.rp-bar i { display: block; width: var(--p, 0); height: 100%; border-radius: inherit; background: var(--teal); }
.rp-list { margin-top: 8px; padding-left: 20px; list-style: disc; display: grid; gap: 4px; font-size: 16px; line-height: 1.5; }
.rp-list li::marker { color: var(--teal); }
.split-fig figcaption { max-width: 34em; }

@media (min-width: 600px) {
  .rp { padding: 28px 30px 32px; }
}

@media (min-width: 960px) {
  /* the clinic card on seven columns, the adults card on five, the same height */
  .page-classes .strand { grid-column: 8 / 13; }
  .page-classes .strand-clinic { grid-column: 1 / 8; grid-row: auto; }
  .teacher-line { margin-top: 36px; }

  /* the run of show: the place or length of each step under its text, so the text keeps its width */
  .page-classes .run li { grid-template-columns: 52px minmax(0, 1fr); }
  .page-classes .run-time { grid-column: 2; grid-row: auto; margin-top: 8px; text-align: left; white-space: normal; }

  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 72px; align-items: start; }
  .card-desk { padding-top: 64px; padding-bottom: 56px; }
  .report-desk { padding-left: 32px; padding-right: 32px; }
}
