.workbook-page {
  --muted: #43536a;
}
.workbook-main {
  padding-top: 56px;
  padding-bottom: 64px;
}
.workbook-heading {
  max-width: 850px;
}
.workbook-heading h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.8rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
  margin: 14px 0 22px;
}
.workbook-lead {
  font-size: 1.15rem;
  line-height: 1.65;
  max-width: 75ch;
}
.workbook-page .brand img {
  flex-shrink: 0;
}
.workbook-page .header-inner > .text-link {
  display: flex;
  align-items: center;
  min-height: 44px;
}
.workbook-page .intro-label {
  color: #1836b2;
}
.workbook-page .button {
  min-height: 48px;
}
.workbook-page .actions {
  flex-wrap: wrap;
}
.file-type {
  font-size: 0.75em;
  font-weight: 500;
}
.export-bar {
  margin: 28px 0 36px;
  padding: 24px 0;
  border-top: 1px solid #c5d0df;
  border-bottom: 1px solid #c5d0df;
}
.export-bar p {
  max-width: 87ch;
  font-size: 0.92rem;
  line-height: 1.6;
  color: #43536a;
  margin: 12px 0 0;
}
.export-bar p:empty {
  display: none;
}
.privacy-note {
  font-weight: 600;
}
.example-lab {
  background: #eef4fa;
  border-top: 3px solid #1836b2;
  padding: 28px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px 40px;
}
.example-lab h2 {
  font-size: 1.5rem;
  margin: 8px 0 12px;
  line-height: 1.25;
}
.example-lab p {
  font-size: 0.95rem;
  line-height: 1.6;
}
.example-controls > label {
  display: block;
  font-weight: 650;
  margin-bottom: 8px;
}
.grade-buttons {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-top: 12px;
}
.workbook-page button:not(.button) {
  color: #172644;
  background: white;
  border: 1px solid #748399;
  border-radius: 3px;
  min-height: 44px;
  padding: 9px 14px;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}
.workbook-page button:not(.button):hover {
  background: #e2ebf7;
}
.workbook-page button:disabled {
  color: #536075;
  background: #f0f2f6;
  border-color: #c5d0df;
  cursor: default;
}
.workbook-page .grade-buttons button {
  font-size: 1rem;
  font-weight: 650;
  padding: 9px 0;
}
.workbook-page .grade-buttons button[aria-pressed="true"] {
  background: #1836b2;
  color: white;
  border-color: #1836b2;
}
.example-note {
  grid-column: 1/-1;
  background: #fff4df;
  padding: 16px 20px;
  border-left: 3px solid #a56a00;
}
.example-note p {
  margin: 6px 0;
}
#example-summary {
  font-weight: 650;
}
.workbook-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 24px 0;
}
.workbook-toolbar p {
  color: #43536a;
  font-size: 0.9rem;
}
.workbook-toolbar > div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.workbook-layout {
  display: grid;
  grid-template-columns: minmax(210px, 0.8fr) minmax(0, 2fr);
  gap: 64px;
  align-items: start;
}
.workbook-index {
  position: sticky;
  top: 100px;
  padding-top: 28px;
}
.workbook-index ol {
  list-style: none;
  padding: 0;
  margin: 12px 0 28px;
}
.workbook-index li {
  border-bottom: 1px solid #d5deea;
}
.workbook-index a {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 14px 0;
  line-height: 1.4;
  text-decoration: none;
  font-size: 0.92rem;
}
.workbook-index a:hover {
  text-decoration: underline;
}
.workbook-index a span {
  color: #43536a;
  font-size: 0.8rem;
}
.glossary {
  font-size: 0.9rem;
  color: #43536a;
  line-height: 1.6;
}
.glossary summary {
  color: #172644;
  cursor: pointer;
  min-height: 44px;
}
.form-intro {
  padding: 28px 0;
  color: #43536a;
  margin: 0;
  line-height: 1.65;
}
.workbook-section {
  border-top: 2px solid #172644;
  padding: 28px 0 32px;
  scroll-margin-top: 100px;
}
.workbook-section h2 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 12px 0 14px;
  display: flex;
  gap: 16px;
}
.section-number {
  color: #1836b2;
  font-weight: 450;
}
.section-purpose {
  color: #43536a;
  line-height: 1.6;
  margin: 0 0 32px;
}
.question {
  margin: 0 0 28px;
  padding: 0;
  border: 0;
  min-width: 0;
}
.question > label,
.question legend {
  font-weight: 650;
  font-size: 1rem;
  padding: 0;
  line-height: 1.45;
}
.field-help {
  font-size: 0.9rem;
  color: #43536a;
  line-height: 1.55;
  margin: 7px 0 10px;
}
.workbook-page input[type="text"],
.workbook-page textarea,
.workbook-page select {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  border: 1px solid #748399;
  border-radius: 3px;
  background: white;
  color: #172644;
  font: inherit;
  font-size: 1rem;
  line-height: 1.55;
  padding: 11px 12px;
}
.workbook-page select {
  min-height: 48px;
  padding-right: 28px;
}
.workbook-page textarea {
  resize: vertical;
  min-height: 110px;
}
.workbook-page :is(input, textarea, select, button, a, summary):focus-visible {
  outline: 3px solid #1836b2;
  outline-offset: 3px;
}
.workbook-page .button:focus-visible {
  outline-offset: 4px;
}
.check-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 16px;
}
.check-options label {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1.45;
}
.check-options input {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  accent-color: #1836b2;
}
.draft-section {
  border-top: 2px solid #1836b2;
  margin: 24px 0;
  padding: 32px;
  background: #eef4fa;
}
.draft-section h2 {
  font-size: 2rem;
  margin: 12px 0;
}
.draft-section > p {
  max-width: 80ch;
  line-height: 1.6;
}
.draft-section details {
  margin: 24px 0;
}
.draft-section summary {
  cursor: pointer;
  font-weight: 600;
  padding: 12px 0;
  min-height: 44px;
}
.draft-section textarea {
  margin: 10px 0;
  background: white;
}
.workbook-source {
  color: #43536a;
  font-size: 0.9rem;
  line-height: 1.65;
  max-width: 90ch;
}
.workbook-page [hidden] {
  display: none !important;
}
@media (max-width: 900px) {
  .workbook-layout {
    gap: 32px;
    grid-template-columns: 210px minmax(0, 1fr);
  }
  .example-lab {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .check-options {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 650px) {
  .workbook-main {
    padding-top: 32px;
  }
  .workbook-page .header-inner {
    gap: 12px;
  }
  .workbook-page .header-inner > .text-link {
    font-size: 0.78rem;
  }
  .workbook-layout {
    display: block;
  }
  .workbook-index {
    position: static;
    padding-top: 0;
  }
  .workbook-index ol {
    margin-bottom: 16px;
  }
  .workbook-index a {
    padding: 12px 0;
  }
  .glossary {
    margin-bottom: 12px;
  }
  .example-lab,
  .draft-section {
    padding: 20px 16px;
  }
  .workbook-section {
    scroll-margin-top: 90px;
  }
  .workbook-page .actions {
    align-items: stretch;
    flex-direction: column;
  }
  .workbook-page .button {
    justify-content: center;
    font-size: 0.9rem;
  }
  .workbook-toolbar > div {
    width: 100%;
  }
  .workbook-toolbar button {
    flex: 1;
  }
}
@media (max-width: 375px) {
  .grade-buttons {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media print {
  @page {
    size: Letter;
    margin: 0.55in;
  }
  .workbook-page .site-header,
  .workbook-index,
  .example-lab,
  .workbook-toolbar,
  .export-bar,
  .draft-section,
  .site-footer {
    display: none;
  }
  .workbook-main,
  .workbook-layout {
    display: block;
    width: 100%;
    padding: 0;
  }
  .workbook-section {
    break-before: page;
  }
  .question {
    break-inside: avoid;
  }
}
