.c01-intro p {
  margin: 0;
  line-height: 1.65;
}

.course-case-report .c01-reading h2 {
  color: var(--accent2);
}

.course-case-report .c01-intro p {
  color: var(--text);
}

.course-case-report .c01-reading {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.course-case-report .c01-reading h3 {
  display: block;
  font-size: clamp(17px, 1.6vw, 20px);
}

.course-case-report .formula,
.c01-projection-body .formula {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  padding-inline: clamp(10px, 2vw, 25px);
  text-align: center;
  overflow-x: auto;
}

.c01-diagram.c01-report-model {
  max-width: 730px;
  margin-inline: auto;
}

.c01-report-instruction {
  margin: 0 0 12px;
  color: var(--muted);
}

.c01-reading {
  scroll-margin-top: 14px;
}

.c01-intro p, .c01-reading p:not(.c01-result), .c01-response p, .c01-questions p {
  text-indent: 2em;
  text-align: justify;
  text-justify: inter-character;
}

.c01-reading > p {
  margin-block: 9px;
}

.c01-reading h2 {
  display: flex;
  align-items: center;
  gap: .55em;
}

.c01-heading-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  align-self: flex-start;
  width: 1.42em;
  height: 1.42em;
  border-radius: .32em;
  background: var(--surface2);
  color: var(--accent);
}

.c01-heading-icon svg {
  width: .95em;
  height: .95em;
}

.c01-reading h2, .c01-projection h2 {
  margin: 0 0 14px;
  font-size: clamp(21px, 2.3vw, 27px);
  line-height: 1.35;
}

.c01-reading h3, .c01-projection h3 {
  margin: 18px 0 8px;
  font-size: clamp(19px, 2vw, 23px);
  line-height: 1.45;
}

.c01-section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 18px;
  margin-bottom: 9px;
}

.c01-section-head h2 {
  margin-bottom: 0;
}

.c01-demo-body {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(11px, 1.75vw, 22px);
  box-shadow: var(--shadow);
}

.c01-section-head .projection-button {
  padding: 6px 12px;
  font-size: .84rem;
}

.c01-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.c01-options button {
  background: var(--surface2);
  border: 1px solid transparent;
  color: var(--text);
  border-radius: 8px;
  padding: 6px clamp(8px, 1.1vw, 14px);
  font-size: .9em;
  font-weight: 650;
  white-space: nowrap;
}

.c01-options button:hover {
  border-color: var(--accent);
}

.c01-options button[aria-pressed=true] {
  background: var(--accent2);
  border-color: var(--accent2);
  color: var(--surface);
}

.c01-slider {
  width: min(100%, 420px);
  margin-block: 16px;
}

.c01-slider label {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-weight: 650;
}

.c01-slider output {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.c01-slider input {
  width: 100%;
  accent-color: var(--accent);
}

.c01-result, .c01-takeaway {
  border-left: 3px solid var(--accent);
  padding: 9px 13px;
  background: var(--surface);
  margin-bottom: 0;
}

.c01-takeaway {
  background: var(--surface2);
  margin-block: 16px 0;
}

.c01-figure-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.c01-figure-grid figure, .c01-diagram, .c01-response {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  margin: 0;
  padding: 8px 11px;
  background: var(--plot);
}

.c01-response p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: .92em;
}

.c01-response figcaption, .c01-figure-grid figcaption:first-child {
  color: var(--text);
  font-weight: 650;
}

.c01-diagram figcaption {
  color: var(--muted);
  font-size: .9em;
  text-align: center;
}

.c01-inline-diagram {
  margin-top: 15px;
}

.c01-legend {
  font-size: .82em;
  gap: 5px 14px;
}

.c01-svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 410px;
  margin-inline: auto;
}

.c01-svg text {
  fill: var(--text);
  font-size: 20px;
}

.c01-svg .small-text, .c01-svg .axis-text {
  font-size: 17px;
}

.c01-svg .axis-text {
  fill: var(--muted);
}

.c01-svg .strong-text {
  font-weight: 650;
}

.c01-svg .diagram-block {
  fill: var(--surface2);
  stroke: var(--line);
  stroke-width: 2;
}

.c01-svg .diagram-equipment, .c01-svg .diagram-wire {
  fill: none;
  stroke: var(--muted);
  stroke-width: 2.2;
}

.c01-svg .diagram-pipe, .c01-svg .diagram-rail {
  fill: none;
  stroke: var(--line);
  stroke-width: 7;
}

.c01-svg .diagram-water {
  fill: var(--blue);
  fill-opacity: .17;
}

.c01-svg .diagram-level {
  stroke: var(--blue);
  stroke-width: 2.6;
}

.c01-svg .diagram-reference {
  fill: none;
  stroke: var(--muted);
  stroke-dasharray: 5 5;
  stroke-width: 1.6;
}

.c01-svg .diagram-dot, .c01-svg .diagram-valve {
  fill: var(--accent);
}

.c01-svg .trace {
  stroke: var(--blue);
  stroke-width: 2.8;
}

.c01-svg .disturbance {
  stroke: var(--orange);
  stroke-width: 2.8;
}

.c01-svg .diagram-active .diagram-block {
  stroke: var(--blue);
}

.c01-svg .diagram-disturbed .diagram-block {
  stroke: var(--orange);
}

.c01-svg .diagram-valve.diagram-active {
  fill: var(--orange);
}

.c01-equation {
  width: fit-content;
  max-width: 100%;
  margin: 12px auto;
  padding: 7px 13px;
  border-radius: 6px;
  background: var(--surface2);
  font-size: 1.12em;
  text-align: center;
  overflow-x: auto;
}

.c01-equation-note {
  display: block;
  margin-top: 4px;
  font-size: .8em;
  color: var(--muted);
}

.c01-steps {
  padding-left: 1.5em;
}

.c01-steps li {
  margin-bottom: 8px;
}

.c01-concepts {
  margin-block: 14px;
  display: grid;
  grid-template-columns: minmax(110px, auto) minmax(0, 1fr);
  gap: 10px 18px;
}

.c01-concepts dt {
  font-weight: 650;
}

.c01-concepts dd {
  margin: 0;
}

.c01-table-wrap {
  overflow-x: auto;
}

.c01-table-wrap:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.c01-table-wrap table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: .94em;
}

.c01-table-wrap caption {
  color: var(--muted);
  text-align: left;
  margin-bottom: 7px;
}

.c01-table-wrap th, .c01-table-wrap td {
  border-bottom: 1px solid var(--line);
  padding: 7px 11px;
  vertical-align: top;
}

.c01-table-wrap thead {
  background: var(--surface2);
}

.c01-questions summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.c01-questions summary::after {
  float: none;
  align-self: center;
  font-size: .78em;
  white-space: nowrap;
}


.c01-projection {
  inset: 0;
  max-width: none;
  max-height: none;
  width: 100%;
  height: 100%;
  padding: clamp(18px, 3vw, 45px);
  border: 0;
  background: var(--bg);
  color: var(--text);
  font-size: clamp(17px, 1.55vw, 25px);
  overflow: auto;
}

body:has(.c01-projection[open]) {
  overflow: hidden;
}

.c01-projection-shell {
  max-width: 1450px;
  margin-inline: auto;
}

.c01-projection-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 25px;
  align-items: start;
  margin-bottom: 15px;
}

.c01-projection-head div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.c01-projection .c01-response .c01-svg {
  max-height: min(55vh, 620px);
}

@media (max-width: 720px) {
  .c01-figure-grid {
    grid-template-columns: 1fr;
  }

  .c01-table-wrap table {
    min-width: 480px;
  }

  .c01-concepts {
    display: block;
  }

  .c01-concepts dd {
    margin-bottom: 10px;
  }
}

@media (max-width: 420px) {
  .c01-questions summary {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html:has(.c01-page:not([hidden])) {
    scroll-behavior: auto;
  }
}

.c01-figure-grid .c01-diagram .c01-svg {
  flex: 1 1 auto;
}

.c01-property-figures figcaption {
  text-align: center;
  color: var(--muted);
  font-size: .9em;
}


.c01-playback {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 15px;
  margin-block: 10px 12px;
}

.c01-playback button {
  min-width: 72px;
  padding: 6px 10px;
}

.c01-scrub {
  display: flex;
  flex: 1 1 240px;
  align-items: center;
  gap: 8px;
  font-size: .9em;
  color: var(--muted);
}

.c01-scrub input {
  flex: 1 1 auto;
  min-width: 60px;
  margin: 0;
  accent-color: var(--accent);
}

.c01-scrub output {
  min-width: 5.3em;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.c01-figure-grid > div {
  display: grid;
  min-width: 0;
}

.c01-svg .diagram-flow-particles {
  fill: none;
  stroke-width: 4;
  stroke-dasharray: 4 18;
}

.c01-svg .diagram-cart {
  fill: var(--blue);
  fill-opacity: .64;
  stroke: var(--blue);
  stroke-width: 2;
}

.c01-svg .diagram-target {
  fill: var(--orange);
}

.c01-svg .chart-steady {
  fill: none;
  stroke: var(--orange);
  stroke-width: 2;
  stroke-dasharray: 8 5;
}

.c01-svg .chart-event, .c01-svg .chart-guide {
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.4;
  stroke-dasharray: 3 5;
}

.c01-svg .chart-guide {
  opacity: .6;
}

.course-math {
  display: inline-block;
  max-width: 100%;
  object-fit: contain;
}

[data-theme="dark"] .course-math {
  filter: invert(1);
}

.c01-motor-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.c01-motor-toolbar .c01-options + .c01-options {
  border-left: 1px solid var(--line);
  padding-left: 12px;
}

.c01-motor-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  gap: 12px;
}

.c01-motor-grid figure:first-child {
  background: var(--surface2);
}

.c01-motor-grid [data-speed] figure {
  background: var(--plot);
}

.c01-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 12px 0 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface2);
}

.c01-metrics > div {
  min-width: 0;
  padding: 7px 12px;
}

.c01-metrics > div + div {
  border-left: 1px solid var(--line);
}

.c01-metrics dt, .c01-metrics small {
  color: var(--muted);
  font-size: .8em;
}

.c01-metrics dd {
  margin: 0;
  font-size: clamp(15px, 2vw, 22px);
  line-height: 1.3;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.c01-motor-loop {
  margin: 9px 0 0;
  border-color: var(--line);
}

.c01-motor-loop summary {
  padding: 6px 12px;
  font-size: .9em;
}

.c01-motor-loop summary::after {
  content: '+';
}

.c01-motor-loop[open] summary::after {
  content: '−';
}

.c01-motor-loop .c01-diagram {
  max-width: 770px;
  margin-inline: auto;
  border: 0;
}

.c01-svg {
  --motor-shell-light: #7aa8e2;
  --motor-shell-dark: #3c6fa9;
  --motor-rim: #315880;
}

[data-theme="dark"] .c01-svg {
  --motor-shell-light: #5a87b9;
  --motor-shell-dark: #294f7a;
  --motor-rim: #9ab5d4;
}

.c01-svg .motor-shell { fill: url(#motor-housing); stroke: var(--motor-rim); }
.c01-svg .motor-rear, .c01-svg .motor-terminal { fill: var(--motor-shell-dark); stroke: var(--motor-rim); }
.c01-svg .motor-front { fill: var(--motor-shell-light); stroke: var(--motor-rim); }
.c01-svg .motor-fin { stroke: var(--motor-rim); stroke-width: 2; opacity: .7; }
.c01-svg .motor-stand { fill: var(--line); }
.c01-svg .motor-mount { fill: var(--motor-shell-dark); stroke: var(--motor-rim); }
.c01-svg .motor-shaft { stroke: var(--muted); stroke-width: 14; }
.c01-svg .motor-shaft-glint { stroke: var(--surface2); stroke-width: 2; opacity: .7; }
.c01-svg .motor-hub, .c01-svg .motor-coupling { fill: var(--line); stroke: var(--muted); }
.c01-svg .motor-disc-edge { fill: var(--muted); }
.c01-svg .motor-disc { fill: var(--surface2); stroke: var(--muted); stroke-width: 2; }
.c01-svg .motor-spoke { stroke: var(--muted); stroke-width: 3; }
.c01-svg .motor-rotation-mark { fill: var(--accent); }
.c01-svg .motor-brake { fill: var(--line); stroke: var(--muted); stroke-width: 2; }
.c01-svg .motor-brake-on { fill: var(--orange); stroke: var(--orange); }
.c01-svg .motor-indicator-off { fill: var(--muted); }
.c01-svg .motor-indicator-on { fill: var(--orange); }
.c01-svg .motor-load-active { fill: var(--orange); font-weight: 700; }
.c01-svg .motor-callout { fill: none; stroke: var(--muted); stroke-width: 1.4; }

@media (max-width: 720px) {
  .c01-motor-grid {
    grid-template-columns: 1fr;
  }

  .c01-motor-toolbar .c01-options + .c01-options {
    border-left: 0;
    padding-left: 0;
  }

  .c01-metrics > div {
    padding-inline: 7px;
  }
}

