/* Local styles for Predictions & NAs */

/* ---------------------------------------------------------------------
   Spec tables (ported from marginal-posteriors/style.css so the four
   tables on this page render with consistent borders, header tint, and
   inline-code highlighting matching the rest of the learn pages).
   --------------------------------------------------------------------- */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.95rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
}
.spec-table th,
.spec-table td {
  padding: 0.7rem 1rem;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: top;
}
.spec-table th {
  background: #f1f5f9;
  font-weight: 600;
  color: #334155;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid #e2e8f0;
}
.spec-table tr:last-child td {
  border-bottom: 0;
}
.spec-table tr:hover td {
  background: #f8fafc;
}
.spec-table code {
  background: #eef2ff;
  padding: 0.12rem 0.45rem;
  border-radius: 4px;
  font-size: 0.86em;
  color: #4338ca;
  white-space: nowrap;
}
/* Parameter-spec tables nested inside a concept-box keep the box's
   bg + border rather than introducing a second outer frame. */
.concept-box .spec-table {
  border: 0;
  border-radius: 0;
  background: transparent;
}
.concept-box .spec-table th {
  background: rgba(99, 102, 241, 0.08);
}
@media (max-width: 768px) {
  .spec-table {
    font-size: 0.85rem;
  }
  .spec-table th,
  .spec-table td {
    padding: 0.55rem 0.7rem;
  }
}

/* iidkd-style code chunk box (dark, with inline syntax spans) */
.mycodebox {
  background: #1e1e1e;
  padding: 1.25rem;
  border-radius: 10px;
  overflow-x: auto;
  margin: 1rem 0;
}
.mycodebox pre {
  margin: 0;
  color: #d4d4d4;
  font-family: 'Fira Code', Consolas, monospace;
  font-size: 0.9rem;
}

/* iidkd-style subsection heading */
.subsection-heading {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 1.5rem 0 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid rgba(99, 102, 241, 0.35);
  color: inherit;
  letter-spacing: 0.01em;
}

/* iidkd-style collapsible per-parameter example */
.param-example {
  margin: 0.5rem 0;
  padding: 0.5rem 0.85rem;
  background: #f8fafc;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}
.param-example summary {
  cursor: pointer;
  font-weight: 600;
}
.param-example .mycodebox {
  margin: 0.6rem 0 0 0;
}
