/* User Provided Stylesheet */

/* Secant Custom MyST Scientific Theme */
:root {
  --secant-accent: #38bdf8;
  --secant-emerald: #10b981;
  --secant-violet: #a855f7;
}

/* Top navigation bar polish */
header nav,
.myst-top-nav {
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(56, 189, 248, 0.18) !important;
}

/* Action buttons in top navbar */
header a[href*="github.com"],
header a[href*="PAPER"] {
  border-radius: 6px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* Scientific figure frames and captions */
figure {
  margin: 1.75rem 0;
  padding: 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(13, 17, 23, 0.03);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

html.dark figure {
  background: #0d1117;
  border-color: #30363d;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

figure:hover {
  border-color: rgba(56, 189, 248, 0.5);
}

figure figcaption {
  margin-top: 0.75rem;
  font-size: 0.92rem;
  line-height: 1.55;
  opacity: 0.92;
}

/* Hover cross-reference links (Figure X, Section Y, Equation Z) */
a.reference,
a[href^="#fig-"],
a[href^="#eq-"] {
  font-weight: 600;
  color: #0284c7;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
}

html.dark a.reference,
html.dark a[href^="#fig-"],
html.dark a[href^="#eq-"] {
  color: #38bdf8;
}

/* MyST wraps each table in this labelled scroll container. */
[aria-label="table content"] {
  max-width: 100%;
  min-width: 0;
  margin: 1.25rem 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

/* Keep short identifiers and numerical tokens intact at narrow widths. */
[aria-label="table content"] table {
  border-collapse: collapse;
  width: 100%;
  min-width: 38rem;
  table-layout: auto;
  font-size: 0.9rem;
  font-variant-numeric: lining-nums tabular-nums;
}

[aria-label="table content"] th,
[aria-label="table content"] td {
  padding: 0.7rem 0.9rem;
  vertical-align: top;
  line-height: 1.5;
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

[aria-label="table content"] th {
  font-weight: 600;
  letter-spacing: 0.01em;
  background: rgba(148, 163, 184, 0.08);
}

[aria-label="table content"] .text-right {
  text-align: right;
}

/* Defensive styling for a code span introduced by a future table edit. */
[aria-label="table content"] code {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
}
