/* Reuse the public worksheet typography, navigation, colors, and controls. */
.explanation,
.next {
  max-width: 52rem;
  margin: 3rem 0;
}
.examples {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}
.examples article {
  border-top: 1px solid var(--line);
}
.hint {
  margin: 0 0 0.5rem;
}
legend {
  font-weight: 650;
}
dt {
  font-weight: 650;
  margin-top: 1.25rem;
}
dd {
  margin: 0.4rem 0 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  min-height: 3rem;
}
#print {
  scroll-margin-top: 1rem;
}
#copy-fallback {
  min-height: 20rem;
  margin-top: 1rem;
}
#status {
  min-height: 2em;
}
@media (max-width: 52rem) {
  .examples {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }
}
@page {
  size: A4 portrait;
  margin: 16mm;
}
@media print {
  /* The shared worksheet prints a separate result; this guide prints its live preview. */
  body > main {
    display: block !important;
    max-width: none;
    padding: 0;
  }
  main > :not(#worksheet),
  #worksheet > :not(.builder),
  .builder > :not(#plan-preview),
  #plan-preview .actions,
  #copy-fallback {
    display: none !important;
  }
  .builder {
    display: block;
  }
  #plan-preview {
    display: block;
    border: 0;
    padding: 0;
    background: white;
    color: black;
  }
  #plan-preview h2 {
    font-size: 20pt;
  }
  #plan-preview dd {
    color: black;
    min-height: 40pt;
    border-bottom: 1px solid #aaa;
  }
  #plan-preview dt {
    color: black;
    break-after: avoid;
  }
  .print-source {
    font-size: 9pt;
  }
}
