/* MNEOS research depth pages — shared styles
 * Used by /research/mathematical-sciences/ and /research/computational-physics/.
 *
 * Additive only, loads after contrast-fix-2026-08-02.css. Reuses existing
 * design tokens from styles.css (--bg, --ink, --ink-dim, --accent, --border,
 * --bg-card) so these pages stay visually identical siblings of the rest of
 * the site. All colour choices below were checked against the dark ground
 * (#0B0D0F) and against --bg-card (#171A20); nothing here repeats the
 * light-theme-on-dark-ground bug documented in contrast-fix-2026-08-02.css.
 */

/* ==========================================================================
   Section numbering + long-form research sections
   ========================================================================== */
.r-depth-section {
  padding: 72px 0;
}
.r-depth-section + .r-depth-section {
  border-top: 1px solid var(--border);
}

.r-depth-section-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.r-depth-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--accent-dim, #2E4EA6);
  /* accent-dim on #0B0D0F fails AA at this size; lighten for the page ground */
  color: #8FB0FF;
  flex-shrink: 0;
}

.r-depth-section-head h2 {
  margin: 0;
}

.r-depth-body {
  max-width: 760px;
}
.r-depth-body p {
  color: var(--ink-dim);
  margin: 0 0 1.1em;
}
.r-depth-body p:last-child { margin-bottom: 0; }
.r-depth-body strong { color: var(--ink); }

/* ==========================================================================
   Surface references — the small tags naming the real MNEOS work a section
   ties back to (TacFOAM Phase II, Voice-to-CAD, ONR Sleep, DOS, etc.)
   ========================================================================== */
.r-depth-surfaces {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px dashed var(--border);
}

.r-depth-surface {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 7px 12px;
  font-size: 0.85rem;
}

.r-depth-surface-name {
  color: var(--ink);
  font-weight: 500;
}

/* Reuses the site's existing claim-status chip component and colours, which
   are already contrast-checked in contrast-fix-2026-08-02.css §"Status chips".
   Sized down slightly to sit inline inside a surface tag rather than a card. */
.r-depth-surface .claim-status {
  font-size: 0.68rem;
  padding: 2px 8px;
  margin: 0;
}

/* ==========================================================================
   Accessible inline math — plain-language first; symbols only when genuinely
   needed, always as real text with an aria-label, never as an image.
   ========================================================================== */
.r-math {
  font-family: var(--font-mono);
  font-size: 0.95em;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.05em 0.4em;
  color: var(--ink);
  white-space: nowrap;
}

/* ==========================================================================
   Evidence-rule callout (computational-physics page)
   Same visual family as the site's existing .r-loop2-rule note component,
   redrawn slightly larger since this is the page's central claim rather than
   a supporting aside. Cream text on a near-black panel — well over AA.
   ========================================================================== */
.r-evidence-rule {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--signal, #6FCF97);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  margin: 8px 0 36px;
}
.r-evidence-rule-kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal, #6FCF97);
  margin: 0 0 10px;
}
.r-evidence-rule-body {
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.55;
  margin: 0;
  max-width: 780px;
}

/* ==========================================================================
   Editorial-draft review banner (computational-physics page only)
   Amber left border on a dark panel, per spec. Text colours checked against
   the panel fill, not the page ground.
   ========================================================================== */
.r-review-banner {
  background: #171A20;
  border: 1px solid var(--border-strong);
  border-left: 4px solid #E8BC6E;
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin-bottom: 40px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.r-review-banner-icon {
  color: #E8BC6E;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  flex-shrink: 0;
  padding-top: 2px;
}
.r-review-banner p {
  margin: 0;
  color: #F3EFE7;
  font-size: 0.95rem;
  line-height: 1.5;
}
.r-review-banner strong {
  color: #E8BC6E;
}

/* ==========================================================================
   Section list / table of contents chip row under the dek
   ========================================================================== */
.r-depth-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}
.r-depth-toc a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: #A9C4FF;
  background: rgba(74, 125, 255, 0.10);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 14px;
  border-bottom: none;
}
.r-depth-toc a:hover,
.r-depth-toc a:focus-visible {
  color: var(--ink);
  border-color: var(--border-strong);
}

/* ==========================================================================
   Cross-link card between the two depth pages
   ========================================================================== */
.r-depth-crosslink {
  margin-top: 8px;
}
.r-depth-crosslink .card p {
  color: var(--ink-dim);
}

/* ==========================================================================
   Mobile — comfortable at 390px
   ========================================================================== */
@media (max-width: 480px) {
  .r-depth-section { padding: 52px 0; }
  .r-depth-section-head { gap: 10px; }
  .r-review-banner { flex-direction: column; }
}
