.field-page { max-width: 68rem; margin-inline: auto; padding-block: clamp(1.5rem, 5vw, 4rem); }
.field-page .breadcrumb { padding: 0; margin: 0 0 1.75rem; }
.field-heading { max-width: 48rem; margin-block-end: 2.5rem; }
.field-heading h1 { margin: 0 0 1rem; font-size: clamp(2.25rem, 5vw, 4.25rem); line-height: 1.06; letter-spacing: -.045em; }
.field-heading > p { font-size: 1.2rem; line-height: 1.5; max-width: 58ch; }
.field-article, .field-follow { max-width: 68ch; }
.field-section, .field-follow { margin: 2.25rem 0; }
.field-page h2 { margin: 0 0 .75rem; font-size: clamp(1.45rem, 2.8vw, 2rem); line-height: 1.2; }
.field-page p { line-height: 1.65; }
.field-section p { margin: .65rem 0; }
.field-section table { width: 100%; margin: 1.2rem 0; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.field-section caption { margin-bottom: .6rem; text-align: left; font-weight: 650; }
.field-section th, .field-section td { padding: .45rem .55rem; border-bottom: 1px solid currentColor; text-align: center; }
.field-section thead th { vertical-align: bottom; }
.field-page figure { margin: 1.25rem 0; }
.field-page figure svg { display: block; max-width: 100%; height: auto; }
.field-page figcaption { font-size: .95rem; line-height: 1.5; }
.field-index, .field-choices { padding: 0; list-style: none; }
.field-index { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 1.6rem 2.5rem; }
.field-index li, .field-choices li { border-top: 1px solid currentColor; padding: 1rem 0; }
.field-index li > span { display: block; margin-bottom: .7rem; }
.field-choices a { font-weight: 650; }
.field-index p, .field-choices p { margin: .4rem 0 0; }
.field-page a { text-underline-offset: .17em; }
@media print {
  .site-header, .site-footer, .skip-link, .preview-notice, .field-page .breadcrumb { display: none; }
  #main { width: auto; max-width: none; margin: 0; padding: 0; }
  .field-page, .field-heading, .field-article, .field-follow { padding: 0; max-width: none; }
  .field-page { color: #111; background: white; font-size: 11pt; }
  .field-article::before { content: "MathInSteps · mathinsteps.com/lessons/"; display: block; margin-bottom: 2mm; font-size: 9.5pt; }
  .field-heading h1 { margin: 0 0 2mm; font-size: 21pt; }
  .field-heading { margin-bottom: 4mm; }
  .field-heading > p { max-width: none; margin: 0; font-size: 12pt; }
  .field-section, .field-follow { margin: 3.5mm 0 0; }
  .field-page h2 { margin: 0 0 1mm; font-size: 14pt; break-after: avoid; }
  .field-page p { line-height: 1.32; orphans: 2; widows: 2; }
  .field-section p { margin: 1.5mm 0; }
  .field-section table { margin: 2.5mm 0; break-inside: avoid; }
  .field-section caption { margin-bottom: 1mm; }
  .field-section th, .field-section td { padding: 1mm 2mm; }
  .field-page figure { max-width: 118mm; margin: 2.5mm auto; }
  .field-page figcaption { margin: 1mm 0 0; font-size: 10.5pt; line-height: 1.25; }
  /* Keep the illustration with the worked example. Begin its discussion and
     transfer task on the next sheet, followed by both worksheet choices. */
  .field-section:has(figure) + .field-section { break-before: page; }
  .field-follow, .field-choices { break-inside: avoid; }
  .field-choices { margin: 0; }
  .field-choices li { padding: 1.5mm 0; }
  .field-choices li p { margin: .6mm 0 0; }
  .field-page li, .field-page figure { break-inside: avoid; }
  .field-page:has(.field-article table) { font-size: 10.5pt; }
  .field-article:has(table) p { line-height: 1.25; }
  .field-article:has(table) .field-heading { margin-bottom: 2mm; }
  .field-article:has(table) .field-heading > p { font-size: 11pt; }
  .field-article:has(table) .field-section, .field-article:has(table) .field-follow { margin: 2mm 0 0; }
  .field-article:has(table) .field-section p { margin: 1mm 0; }
  .field-article:has(table) .field-section table { margin: 1.5mm 0; }
  .field-article:has(table) .field-section th, .field-article:has(table) .field-section td { padding: .65mm 1.5mm; }
  .field-article:has(table) .field-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 4mm; }
  .field-article:has(table) .field-choices li { padding: 1mm 0; }
}
