/* Hide the index/redirect "Contents" entry from the book sidebar.
   Quarto books require an index page in the chapters list, but our index
   is a meta-refresh redirect to the first real chapter and shouldn't be
   listed as a navigable sidebar item. */
#quarto-sidebar li.sidebar-item:has(> .sidebar-item-container > a[href$="/index.html"]) {
  display: none;
}
/* End of proof: small-caps QED, matching the PDF (structures.cls \qedsymbol).
   flow-root keeps the floated mark inside the proof when the proof ends in
   display math (otherwise the float drifts into the next block). */
.proof-block.atomic-block {
  display: flow-root;
}
.proof-block.atomic-block > p:last-child::after {
  content: "qed";
  font-variant: small-caps;
  float: right;
  padding-left: 1em;
}
/* Enumerate items are lettered (a), (b), ... as in the PDF (\item[(a)]);
   tex2qmd.lua emits the list as lower-alpha and this adds the parentheses. */
ol[type="a"] > li::marker {
  content: "(" counter(list-item, lower-alpha) ") ";
}
/* Note appended by build-chapter.sh when a chapter is published only through
   section N (the rest is still in draft). */
.web-cut-note {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(128, 128, 128, 0.35);
  opacity: 0.8;
}
/* Index of notation (quarto/notation.qmd includes the per-chapter fragments
   that tex2qmd.lua writes): keep each symbol on one line. */
.notation-index table {
  width: 100%;
}
.notation-index table td:first-child {
  white-space: nowrap;
  padding-right: 1.5em;
}
/* Inline heuristic (\heuristic in structures.cls): its own short paragraph
   with a thin grey bar in the margin, as in the PDF. */
.heuristic {
  border-left: 1.5px solid rgba(128, 128, 128, 0.6);
  padding-left: 0.5em;
  margin: 0.75em 0;
}
.heuristic > p:last-child {
  margin-bottom: 0;
}
