/* yapnr docs: small touches over the furo theme, in the brand palette.
 * --color-yapnr-accent (antique gold) is defined in conf.py for both themes. */

/* A gold rule under page titles. */
article h1 {
  padding-bottom: 0.35rem;
  border-bottom: 2px solid var(--color-yapnr-accent);
}

/* Current page in the sidebar: gold marker next to the green text. */
.sidebar-tree .current-page > .reference {
  box-shadow: inset 3px 0 0 var(--color-yapnr-accent);
}

/* Diagrams: centred with some room. conf.py sizes them by aspect ratio
 * (mermaid_height = "auto"); cap tall ones so they fit on one screen. */
pre.mermaid,
div.mermaid {
  text-align: center;
  margin: 1.5rem auto;
}

article pre.mermaid > svg {
  max-height: 45rem;
}

/* Tables with long code spans: let them scroll instead of overflowing. */
article table.docutils {
  display: block;
  overflow-x: auto;
}
