.design-guide .guide-intro h1 em {
  color: var(--wine);
}
.notebook-study {
  border-block: 1px solid var(--line);
  padding: 26px 0 30px;
}
.notebook-study h2 {
  font-size: clamp(27px, 4vw, 38px);
  margin-bottom: 12px;
}
.notebook-exercise {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 230px);
  grid-template-rows: auto 1fr;
  gap: 16px 24px;
  min-width: 0;
  padding: 0;
  border: 0;
  margin: 0;
}
.notebook-exercise legend {
  margin-bottom: 14px;
  padding: 0;
  color: var(--muted);
  font-size: 14px;
}
.notebook-choices {
  display: grid;
  grid-area: 1 / 2;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.notebook-choices label {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
  color: var(--wine-dark);
  cursor: pointer;
  font-size: 12px;
}
.notebook-choices label:has(:checked) {
  border-color: var(--wine);
  background: var(--paper-deep);
  font-weight: 600;
}
.notebook-choices label:focus-within {
  outline: 2px solid var(--wine);
  outline-offset: 2px;
}
.notebook-choices input {
  flex: none;
  margin: 0;
  accent-color: var(--wine);
}
.notebook-sample {
  grid-area: 1 / 1 / 3 / 2;
  margin: 0;
}
.notebook-screen {
  position: relative;
}
.notebook-screen img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}
.notebook-highlight {
  display: none;
  position: absolute;
  pointer-events: none;
  left: 61.1%;
  top: var(--notebook-row, 51.7%);
  width: 26.3%;
  height: 5.9%;
  border: 2px solid #632f3f;
  border-radius: 4px;
  box-shadow: 0 0 0 1px #fff7e3;
}
.notebook-sample figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}
.notebook-prompts {
  grid-area: 2 / 2;
}
.notebook-prompts p {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}
.notebook-prompts strong {
  color: var(--wine-dark);
}
@supports selector(:has(:checked)) {
  .notebook-highlight { display: block; }
  .notebook-prompts p { display: none; }
  .notebook-exercise:has([value="collar"]:checked) { --notebook-row: 57.4%; }
  .notebook-exercise:has([value="sleeves"]:checked) { --notebook-row: 63.1%; }
  .notebook-exercise:has([value="skirt"]:checked) { --notebook-row: 68.8%; }
  .notebook-exercise:has([value="bodice"]:checked) [data-part="bodice"],
  .notebook-exercise:has([value="collar"]:checked) [data-part="collar"],
  .notebook-exercise:has([value="sleeves"]:checked) [data-part="sleeves"],
  .notebook-exercise:has([value="skirt"]:checked) [data-part="skirt"] { display: block; }
}
@media (max-width: 680px) {
  .notebook-exercise { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; }
  .notebook-choices, .notebook-sample, .notebook-prompts { grid-area: auto; }
  .notebook-choices { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
  .notebook-choices label { justify-content: center; padding-inline: 4px; gap: 4px; font-size: 11px; }
  .notebook-sample figcaption { font-size: 11px; }
  .notebook-prompts p { min-height: 72px; }
}
