/* MyST Theme Options */

:root {
  --cite-group-open: '[';
  --cite-group-close: ']';
}

/* User Provided Stylesheet */

/* Custom styling for the Linear Structural Dynamics book. */

/* Algorithm (prf:algorithm) and proof blocks: subtle framed box. */
.prf-algorithm,
.proof.algorithm {
  border: 1px solid #d0d7de;
  border-left: 4px solid #1565C0;
  border-radius: 4px;
  padding: 0.75rem 1rem;
  background: #fbfcfd;
}

figcaption {
  font-size: 0.9rem;
  color: #444;
}

table {
  border-collapse: collapse;
}
table thead th {
  border-bottom: 2px solid #2b2b2b;
}

.plotly-graph-div {
  max-width: 100%;
}

/* ------------------------------------------------------------------ */
/* Light, semi-transparent container around executable code-cell       */
/* outputs (printed text, result tables, figures). The :has() guards   */
/* keep the box only on cells that actually produce output.            */
/* ------------------------------------------------------------------ */
[data-name="outputs-container"]:has(.jupyter-output),
[data-name="outputs-container"]:has(table),
[data-name="outputs-container"]:has(img),
[data-name="outputs-container"]:has(picture),
[data-name="outputs-container"]:has(svg) {
  background: rgba(2, 6, 23, 0.03);
  border: 1px solid rgba(2, 6, 23, 0.12);
  border-radius: 8px;
  padding: 0.7rem 0.95rem;
  margin-bottom: 1.25rem;
}
.dark [data-name="outputs-container"]:has(.jupyter-output),
.dark [data-name="outputs-container"]:has(table),
.dark [data-name="outputs-container"]:has(img),
.dark [data-name="outputs-container"]:has(picture),
.dark [data-name="outputs-container"]:has(svg) {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.14);
}
[data-name="outputs-container"] {
  overflow-x: auto;
}

/* Inline (code-generated) figures: mystmd renders the caption before the image
   in the DOM. Flip to the conventional image-then-caption order so they match
   static {figure} directives. Scoped to notebook-cell figures. */
.myst-jp-nb-block figure.fig-figure {
  display: flex;
  flex-direction: column;
}
.myst-jp-nb-block figure.fig-figure > figcaption {
  order: 10;
}
