/* Optional evidence beside the passage it qualifies. The text exists once,
   in reading order; a grid reserves room even when a note outgrows its passage. */
body.minimal.reading-page.has-sidenotes article.note {
  max-width: 36rem;
  --sidenotes-wide: 0;
}
body.minimal.reading-page.has-sidenotes .prose {
  max-width: none;
  max-inline-size: none;
}
.annotated-passage, .passage-text, .margin-notes { min-width: 0; }
.has-sidenotes .passage-text > * + * { margin-top: 1.15em; }
.has-sidenotes .passage-text > :first-child { margin-top: 0; }
.has-sidenotes .margin-notes { margin-top: 1.1rem; }
.has-sidenotes .sidenote {
  border-block-start: 1px solid var(--hair);
  color: var(--muted);
  font: 400 1rem/1.5 var(--sans);
  overflow-wrap: anywhere;
  scroll-margin-top: calc(var(--navigation-height, 0px) + 1.5rem);
}
.has-sidenotes .sidenote + .sidenote { margin-top: 1.5rem; }
.has-sidenotes .sidenote summary {
  position: relative;
  padding: .75rem 1.6rem .75rem 0;
  min-height: 44px;
  list-style: none;
  color: var(--signal);
  font: 500 .875rem/1.5 var(--sans);
  cursor: pointer;
}
.has-sidenotes .sidenote summary::-webkit-details-marker { display: none; }
.has-sidenotes .sidenote summary::after {
  content: "";
  position: absolute;
  right: .25rem;
  top: 1rem;
  width: .625rem;
  height: .625rem;
  background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat,
              linear-gradient(currentColor, currentColor) center / 1px 100% no-repeat;
}
.has-sidenotes .sidenote[open] summary::after { background-size: 100% 1px, 0 0; }
.has-sidenotes .sidenote .sidenote-body { padding-bottom: .75rem; }
.has-sidenotes .sidenote .sidenote-body p {
  margin: 0;
  font: 400 1rem/1.55 var(--sans);
  color: var(--muted);
  text-align: start;
  hyphens: none;
}
.has-sidenotes .sidenote .sidenote-body p + p { margin-top: .7em; }
.has-sidenotes .sidenote a { color: var(--signal); }
.has-sidenotes .sidenote:target { border-color: var(--signal); }
.has-sidenotes .source-notes {
  border-top: 1px solid var(--hair);
  padding-top: 1.25rem;
}
.has-sidenotes .source-notes li {
  font-size: 1rem;
  line-height: 1.55;
}
@media screen and (min-width: 1200px) {
  body.minimal.reading-page.has-sidenotes article.note {
    grid-column: 3 / -1;
    max-width: 57rem;
    --sidenotes-wide: 1;
  }
  body.minimal.reading-page.has-sidenotes .note-breadcrumb a { grid-column: 1 / 3; }
  body.minimal.reading-page.has-sidenotes .reader-tools-disclosure { grid-column: 3 / 10; }
  .has-sidenotes .annotated-passage {
    display: grid;
    grid-template-columns: minmax(0, 36rem) minmax(0, 17rem);
    column-gap: 4rem;
    align-items: start;
  }
  .has-sidenotes .margin-notes { margin-top: 0; }
  body.minimal.reading-page.has-sidenotes .note-title,
  body.minimal.reading-page.has-sidenotes .prose > :not(.annotated-passage) { max-width: 36rem; }
  .has-sidenotes .sidenote summary { padding-top: .6rem; }
}
@media print {
  body.minimal.reading-page.has-sidenotes article.note { max-width: none; }
  .has-sidenotes .annotated-passage { display: block; }
  .has-sidenotes .margin-notes { margin: 3mm 0 4mm; }
  .has-sidenotes .sidenote { break-inside: avoid; color: #000; }
  .has-sidenotes .sidenote summary {
    padding: 2mm 0 1mm;
    min-height: 0;
    color: #000;
    font: 600 9pt/1.35 sans-serif;
  }
  .has-sidenotes .sidenote summary::after { content: none; }
  .has-sidenotes .sidenote::details-content { content-visibility: visible; display: block; }
  .has-sidenotes .sidenote .sidenote-body { display: block !important; padding-bottom: 1mm; }
  .has-sidenotes .sidenote .sidenote-body p { font: 400 9pt/1.4 sans-serif; color: #000; }
  .has-sidenotes .passage-text > * + * { margin-top: 1.4mm; }
  .has-sidenotes .sidenote + .sidenote { margin-top: 2mm; }
}

body.minimal.reading-page.published-essay .sidenote .sidenote-body p {
  font: 400 .9375rem/1.55 var(--sans);
  color: var(--muted);
}
body.minimal.reading-page.published-essay .source-notes {
  border-top: 1px solid var(--hair);
  padding-top: 1.25rem;
}
body.minimal.reading-page.published-essay .source-notes li,
body.minimal.reading-page.published-essay .research-note {
  font: 400 .9375rem/1.6 var(--sans);
  color: var(--muted);
  overflow-wrap: anywhere;
}
body.minimal.reading-page.published-essay .source-notes li + li { margin-top: 1rem; }
body.minimal.reading-page.published-essay nav[aria-label="Essay series"] {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--hair);
  max-width: 36rem;
  font: 400 1rem/1.5 var(--sans);
}
@media print {
  body.minimal.reading-page.published-essay .sidenote .sidenote-body p,
  body.minimal.reading-page.published-essay .source-notes li,
  body.minimal.reading-page.published-essay .research-note {
    font: 400 9pt/1.45 var(--sans) !important;
    color: #000;
  }
  body.minimal.reading-page.has-sidenotes .prose > :not(.annotated-passage) { max-width: none; }
}
