/* Module 3 screen-only folding; print always exposes the full body. */
.m3-fold-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0 1rem;
}

.m3-fold-toolbar button {
  border: 1px solid #9aa9b8;
  border-radius: 0.25rem;
  background: #f4f6f9;
  color: #19202c;
  cursor: pointer;
  font: inherit;
  padding: 0.3rem 0.65rem;
}

.m3-fold-toolbar button:focus-visible,
.m3-fold summary:focus-visible {
  outline: 3px solid #1f4e79;
  outline-offset: 2px;
}

details.m3-fold {
  margin: 1rem 0;
}

details.m3-fold > summary {
  cursor: pointer;
  color: #17365d;
  font-weight: 600;
  line-height: 1.45;
  padding: 0.2rem 0;
}

details.m3-fold[open] > summary {
  margin-bottom: 0.5rem;
}

.m3-fold-body > :first-child {
  margin-top: 0;
}

@media print {
  .m3-fold-toolbar {
    display: none !important;
  }

  details.m3-fold > summary {
    display: none;
  }

  details.m3-fold:not([open]) > .m3-fold-body {
    display: block !important;
  }
}
