/* Additions for the "Teaching System and Degrees" section.
   Base layout, colours and typography come from ../history/history.css */

.article h2 { scroll-margin-top: 80px; }

/* One combined working = one block */
.working {
  margin: 2.4em 0 0;
  padding-top: 2em;
  border-top: 1px solid var(--line);
  scroll-margin-top: 80px;
}
.article h3 + .working, .article .intro-text + .working { margin-top: 1.4em; }
.working .stage {
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4em;
}
.working h4 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  line-height: 1.15;
  margin: 0 0 0.7em;
}
.working .story {
  font-style: italic;
  color: rgba(244, 241, 234, 0.9);
}

/* Degree list with gradient degree numbers */
.article ul.grades { margin: 1.2em 0 1.4em; }
.article ul.grades li { padding-left: 0; }
.article ul.grades li::before { content: none; }
.article ul.grades li {
  padding: 0.55em 0 0.55em 1.1em;
  margin: 0;
  border-left: 1px solid var(--line);
  line-height: 1.6;
}
.article ul.grades .deg {
  display: inline-block;
  min-width: 4.6em;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(90deg, var(--b), var(--a));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.article ul.grades .note { display: block; margin-top: 0.3em; font-size: 0.9rem; color: var(--muted); }

.article figure a { display: inline-block; }
.article figure.wide img { width: 100%; }

/* Overview of the stages, linked to the blocks below */
.toc ol.stages { counter-reset: none; }
.toc .sub { padding-left: 1.2em; }

@media (max-width: 640px) {
  .article ul.grades .deg { display: block; min-width: 0; }
}
