body.public-page #homeschool-course-worksheet,
body.public-page #homeschool-transcript-example {
  scroll-margin-top: 96px;
}

.hs-worksheet-sheet, .hs-worksheet-email {
  max-width: 56rem;
  padding: clamp(16px, 3vw, 28px);
  border: 1px solid var(--public-line, #d9e1ec);
  border-radius: 12px;
  background: #fff;
}

.hs-worksheet-sheet fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.hs-worksheet-sheet fieldset + fieldset { margin-top: 24px; }
.hs-worksheet-sheet legend { padding: 0; margin-bottom: 12px; font-size: 1.125rem; font-weight: 650; }
.hs-worksheet-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 22px; }
.hs-worksheet-field { display: flex; flex-direction: column; font-weight: 550; }
.hs-worksheet-field small { color: var(--public-muted); font-weight: 400; }
.hs-worksheet-field input, .hs-worksheet-email textarea {
  width: 100%;
  margin-top: 6px;
  padding: 9px 10px;
  color: inherit;
  background: var(--ds-canvas, #faf9f6);
  border: 1px solid var(--ds-muted, #4e5e74);
  border-radius: 6px;
}
.hs-worksheet-field input { min-height: 44px; }
.hs-worksheet-email { max-width: 47rem; }
.hs-worksheet-email label { display: block; font-weight: 600; }
.hs-worksheet-email textarea { display: block; line-height: 1.6; resize: vertical; }
.hs-worksheet-email .hs-actions { margin-top: 16px; }
.hs-worksheet-copy { max-width: 72ch; }
.hs-worksheet-copy li + li { margin-top: 8px; }
.hs-worksheet-print-value { display: none; }

@media (max-width: 640px) {
  .hs-worksheet-fields { grid-template-columns: 1fr; }
}

@media print {
  @page { margin: 14mm; }

  body.public-page:has(#homeschool-course-worksheet) #main > :not(#homeschool-course-worksheet),
  #homeschool-course-worksheet .hs-worksheet-controls { display: none !important; }
  body.public-page #homeschool-course-worksheet { padding: 0; color: #111; font-size: 10pt; }
  body.public-page #homeschool-course-worksheet h2 { font-size: 20pt; }
  body.public-page #homeschool-course-worksheet h2::before { content: 'DegreeSteps · Homeschool dual enrollment'; display: block; margin-bottom: 4mm; font-size: 10pt; }
  body.public-page #homeschool-course-worksheet .hs-section-lede { margin-bottom: 4mm; font-size: 10pt; color: #111; }
  .hs-worksheet-sheet { max-width: none; padding: 0; border: 0; }
  .hs-worksheet-sheet fieldset { break-inside: avoid; }
  .hs-worksheet-sheet fieldset + fieldset { margin-top: 5mm; }
  .hs-worksheet-sheet legend { margin-bottom: 3mm; font-size: 12pt; }
  .hs-worksheet-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3mm 6mm; }
  .hs-worksheet-field small { color: #111; }
  .hs-worksheet-field input, .hs-worksheet-print-value { min-height: 8mm; padding: 2mm 0 0; border: 0; border-bottom: 1px solid #777; border-radius: 0; background: #fff; font-weight: 400; }
  .hs-worksheet-field input { height: 8mm; margin: 0; }
  .hs-worksheet-print-value { overflow-wrap: anywhere; }
  #homeschool-course-worksheet[data-hs-print-values] input { display: none; }
  #homeschool-course-worksheet[data-hs-print-values] .hs-worksheet-print-value { display: block; }
}
