/* Typography applies only to the learning analysis workspace. */
.learning-analysis :is(
  .learning-metric small,
  .learning-chart-caption,
  .learning-compare-note span,
  .learning-line-chart .axis-label,
  .learning-line-chart .point-title,
  .dictation-chart .axis-label,
  .dictation-chart .axis-title,
  .dictation-chart .point-title,
  .dictation-overview-metric small,
  .dictation-mastery-card small,
  .dictation-stage-row span small,
  .dictation-track-student>small,
  .dictation-track-transition small,
  .dictation-trace-note,
  .dictation-history-table th small,
  .dictation-history-card>small,
  .progress-student small,
  .progress-movement small,
  .progress-pattern small,
  .progress-expanded-title span,
  .exam-history-controls>span,
  .exam-history-legend,
  .exam-history-detail p,
  .exam-simple-score>b small,
  .exam-simple-score>span,
  .exam-simple-compare small,
  .exam-simple-result>small,
  .objective-module-card small,
  .objective-file-meta span,
  .objective-scores-table th small,
  .objective-sort-button small,
  .objective-student>summary small
) { font-size:12px; }

.learning-analysis :is(
  .learning-section-head p,
  .learning-project-picker,
  .learning-student-picker,
  .learning-note,
  .learning-metric span,
  .learning-change-card span,
  .learning-rank-table th,
  .learning-compare-table th,
  .learning-mover-list span,
  .learning-line-chart .point-label,
  .dictation-chart .value-label,
  .dictation-chart-head span,
  .dictation-chart-legend,
  .dictation-mastery-card span,
  .dictation-overview-metric span,
  .dictation-decision-hero p,
  .dictation-overview-copy>p,
  .dictation-action-head p,
  .dictation-action-item span,
  .dictation-group-head p,
  .dictation-group-empty,
  .dictation-student-item span,
  .dictation-follow-item span,
  .dictation-method p,
  .dictation-trail-row time,
  .dictation-trail-row span,
  .dictation-student-section-head p,
  .dictation-student-summary p,
  .dictation-student-advice,
  .dictation-track-heading,
  .dictation-track-legend,
  .dictation-track-cell,
  .dictation-follow-chip,
  .dictation-trace-toggle,
  .dictation-history-table,
  .dictation-edit-record,
  .dictation-history-card>strong,
  .progress-track-head,
  .progress-no-trace,
  .progress-method p,
  .progress-pattern b,
  .exam-history-controls label,
  .exam-history-note,
  .exam-history-audit th,
  .exam-simple-table-head,
  .exam-simple-result>b,
  .exam-simple-help,
  .objective-eyebrow,
  .objective-command p,
  .objective-head p,
  .objective-scope-label,
  .objective-decision-strip>p,
  .objective-decision-stat span,
  .objective-module-card span,
  .objective-panel-heading p,
  .objective-subcard>p,
  .objective-subcard-head p,
  .objective-table th,
  .objective-question>summary span,
  .objective-warning,
  .objective-score-foot,
  .objective-class-module>span
) { font-size:13px; }

.learning-analysis :is(
  .learning-kind-tab,
  .learning-project-picker select,
  .learning-student-picker select,
  .learning-rank-table td,
  .learning-compare-table td,
  .learning-details summary,
  .distribution-row>span,
  .distribution-row>strong,
  .dictation-stage-row span,
  .dictation-action-item strong,
  .dictation-student-item strong,
  .dictation-follow-item strong,
  .dictation-student-picker,
  .dictation-method summary,
  .dictation-track-row,
  .dictation-track-transition b,
  .progress-track-comparison .progress-student strong,
  .progress-expanded-title strong,
  .exam-history-controls select,
  .exam-history-audit td,
  .exam-simple-compare b,
  .objective-scope-tab,
  .objective-table td,
  .objective-question>summary b,
  .objective-student>summary b,
  .analytics-empty
) { font-size:14px; }

.learning-analysis :is(
  .learning-section-head h3,
  .dictation-action-head h3,
  .dictation-student-section-head h3,
  .exam-comparison-head h3
) { font-size:18px; }

.learning-analysis :is(.learning-section-head p,.learning-note,.dictation-method p,.progress-method p,.exam-history-note,.objective-command p) {
  line-height:1.65;
  overflow-wrap:anywhere;
}
.learning-analysis .learning-kind-tabs { flex-wrap:wrap; }
.learning-analysis .exam-history-comparison .exam-comparison-change small { font-size:12px; }
.learning-analysis .progress-track-comparison .progress-student small { font-size:12px; }
.learning-analysis .dictation-student-history .dictation-trail-row span { font-size:13px; }

/* Comparison summaries and the compact mobile history cards. */
.learning-analysis :is(
  .exam-comparison-head p,
  .exam-comparison-footnote,
  .exam-comparison-method,
  .exam-comparison-cohort,
  .exam-comparison-count,
  .exam-comparison-row-detail,
  .exam-comparison-stat span,
  .dictation-change-card span,
  .dictation-change-method,
  .homework-missing-list span
) { font-size:13px; }
.learning-analysis :is(
  .exam-comparison-axis,
  .exam-comparison-stat small,
  .exam-comparison-change small,
  .dictation-change-card p,
  .dictation-change-table thead small,
  .dictation-change-student span
) { font-size:12px; }
.learning-analysis :is(
  .exam-comparison-toolbar input,
  .exam-comparison-filters button,
  .dictation-change-tools input,
  .dictation-change-tools button,
  .dictation-change-table,
  .exam-comparison-row-head
) { font-size:13px; }
.learning-analysis #dictationChangeCount { font-size:13px; }
.learning-analysis .dictation-change-table td[data-dictation-title]::before { font-size:11px; }

/*
 * Imported exam diagnostics use a deliberate four-step type hierarchy:
 * panel title > card title > supporting copy > micro metadata.
 * Keep these values local to the browser UI; exported reports are unaffected.
 */
.learning-analysis .objective-analysis .objective-panel-heading h4 {
  font-size:17px;
  line-height:1.3;
  font-weight:750;
  letter-spacing:-.015em;
}
.learning-analysis .objective-analysis :is(
  .objective-panel-heading p,
  .objective-question>summary div>span,
  .objective-student>summary small,
  .objective-list-empty,
  .objective-scores-table td span,
  .objective-class-card-head small,
  .objective-class-average span
) {
  font-size:12.5px;
  line-height:1.55;
  overflow-wrap:anywhere;
}
.learning-analysis .objective-analysis :is(
  .objective-question>summary b,
  .objective-student>summary b,
  .objective-question>summary>strong,
  .objective-student-rank
) {
  font-size:15px;
  line-height:1.35;
  font-weight:750;
  overflow-wrap:anywhere;
}
.learning-analysis .objective-analysis :is(
  .objective-question>summary>em,
  .objective-student>summary>em,
  .objective-question-detail :is(b,span,i),
  .objective-student-wrongs :is(span,i)
) {
  font-size:12.5px;
  line-height:1.5;
  overflow-wrap:anywhere;
}
.learning-analysis .objective-analysis select.objective-threshold {
  font-size:13.5px;
  font-weight:700;
}
.learning-analysis .objective-analysis :is(
  .objective-question>summary>strong,
  .objective-student-rank
) {
  font-variant-numeric:tabular-nums;
}
.learning-analysis .objective-analysis :is(
  .objective-question>summary>em,
  .objective-student>summary>em
) {
  font-weight:750;
  white-space:nowrap;
}
.learning-analysis .objective-analysis .objective-subcard-head {
  flex-wrap:wrap;
}
.learning-analysis .objective-analysis :is(.objective-question,.objective-student)>summary>em {
  min-width:0;
  max-width:100%;
  text-align:center;
}
.learning-analysis .objective-subcard {
  container:objective-card / inline-size;
  min-width:0;
}
@container objective-card (max-width:340px) {
  .learning-analysis .objective-analysis :is(.objective-question,.objective-student)>summary {
    grid-template-columns:auto minmax(0,1fr);
  }
  .learning-analysis .objective-analysis :is(.objective-question,.objective-student)>summary>em {
    grid-column:2;
    justify-self:start;
  }
}

/* All distribution rows share their label and value widths. */
.learning-analysis .learning-distribution {
  grid-template-columns:max-content minmax(16px,1fr) max-content;
  column-gap:clamp(6px,1vw,10px);
}
.learning-analysis .distribution-row {
  grid-column:1 / -1;
  grid-template-columns:subgrid;
  min-width:0;
  min-height:24px;
  column-gap:inherit;
}
.learning-analysis .distribution-row>strong,
.learning-analysis .distribution-row>span {
  white-space:nowrap;
  line-height:1.4;
}
.learning-analysis .distribution-row>strong {
  font-variant-numeric:tabular-nums;
}
.learning-analysis .learning-two-column>.learning-section {
  min-width:0;
}
.learning-analysis :is(.learning-metric,.dictation-mastery-card,.dictation-overview-metric) {
  min-width:0;
  overflow-wrap:anywhere;
}
.learning-analysis .dictation-stage-row>b {
  font-size:12px;
  font-variant-numeric:tabular-nums;
}
@media(max-width:540px) {
  .learning-analysis .distribution-row>span,
  .learning-analysis .distribution-row>strong {
    font-size:13px;
  }
}
