.site-nav .notes-toggle {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font-family: inherit;
  font-size: 1.5rem;
  line-height: inherit;
  padding: 0.2em 0.4em;
  margin-top: 1em;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.site-nav .notes-toggle[aria-pressed="true"] {
  color: var(--theme-text);
  background: var(--highlight-weak, rgba(176, 148, 96, 0.22));
}
.site-nav .notes-toggle[aria-pressed="false"] {
  color: var(--theme-copy-btn-text);
  background: transparent;
  text-decoration: none;
}
.site-nav .notes-toggle:hover,
.site-nav .notes-toggle:focus-visible { background: var(--highlight-weak); }
.site-nav .notes-toggle:focus-visible { outline: 1px solid currentColor; outline-offset: 2px; }

/* The overview always wraps around the same calendar, independently of Notes.
   Ordinary block flow lets lines below the calendar use the full reading width. */
[data-report-reading] > section > .report-overview {
  width: 88%;
  max-width: 88%;
  box-sizing: border-box;
}
[data-report-reading] > section > blockquote.report-overview {
  margin-inline: 0;
  padding-inline-start: 1.5rem;
}
[data-report-reading] > section > blockquote.report-overview p { width: auto; }
[data-report-reading] .report-calendar-slot { margin-inline-start: 1.5rem; }

/* Introductory citations use the existing inline disclosure, leaving no source
   column reserved inside the wide overview. Notes controls only body sources. */
[data-report-reading] .report-overview .marginnote {
  --report-inline-note: 1;
  display: none;
  float: none;
  clear: right;
  position: static;
  translate: none !important;
  inline-size: auto;
  width: auto;
  margin: 0.8rem 0;
}
[data-report-reading] .report-overview .marginnote.is-expanded { display: block; }

/* Keep the notes in the document, preserving every source ID and link. */
html[data-notes-visible="false"] [data-report-reading] .marginnote:not(.report-overview-note),
html[data-notes-visible="false"] [data-report-reading] .sidenote-only:not(.report-overview) {
  display: none;
}

/* Ordinary block flow lets each line wrap around the existing calendar float.
   The 88% right edge matches the original note column's outer edge. */
html[data-notes-visible="false"] [data-report-reading] > section > :is(p, h3, h4, h5, h6, pre, blockquote):not(.report-overview) {
  width: 88%;
  max-width: 88%;
}
html[data-notes-visible="false"] [data-report-reading] > section > :is(ul, ol, dl):not(.report-overview) {
  width: 88%;
  max-width: 88%;
  box-sizing: border-box;
}
html[data-notes-visible="false"] [data-report-reading] > section > blockquote:not(.report-overview) {
  box-sizing: border-box;
  margin-inline: 0;
  padding-inline-start: 1.5rem;
}
html[data-notes-visible="false"] [data-report-reading] > section > blockquote p { width: auto; }
html[data-notes-visible="false"] [data-report-reading] > section > .table-scroll:not(.report-overview) {
  width: 88%;
  max-width: 88%;
  clear: right;
}
@container report-reading (max-width: 58rem) {
  [data-report-reading] > section > .report-overview,
  html[data-notes-visible="false"] [data-report-reading] > section > :is(p, h3, h4, h5, h6, pre, blockquote, ul, ol, dl, .table-scroll):not(.report-overview) {
    width: 100%;
    max-width: 100%;
  }
  [data-report-reading] .report-calendar-slot { margin-inline-start: 0; }
}

@media (max-width: 760px) {
  [data-report-reading] > section > .report-overview { width: 100%; max-width: 100%; }
  .site-nav { flex-wrap: wrap; gap: 0.25rem 0.4rem; }
  .site-nav :is(a:any-link, .notes-toggle) { font-size: 1.15rem; padding: 0.2em; margin-top: 0.6em; }
  .site-nav .theme-toggle-btn { margin-right: 0; margin-top: 0.6em; }
}

/* Align the Home text with the article's left edge at every viewport width. */
header.site-header { margin-left: 0; }
.site-nav > a:first-child { padding-inline-start: 0; }
