/* Logistic regression only. Load AFTER your unchanged styles/style.css.
   Bootstrap handles the responsive grid, controls, tables and spacing.
   These scoped overrides integrate those components with the blog theme. */
.logistic-article {
  --bs-primary: #1d4ed8;
  --bs-primary-rgb: 29, 78, 216;
  --bs-body-color: var(--ink);
  --bs-body-bg: var(--bg);
  --bs-border-color: var(--line);
}
.logistic-article .article-body section { scroll-margin-top: 24px; }
.logistic-article .article-body section > .small,
.logistic-article .lr-lab,
.logistic-article .lr-equation {
  font-family: var(--sans);
}
.logistic-article .article-body section > .small { margin-top: 3rem; margin-bottom: .6rem; }
.logistic-article .article-body section > .small + h2 { margin-top: 0; }
.logistic-article .lr-lab { font-size: .95rem; line-height: 1.6; }
.logistic-article .lr-lab .row > * { min-width: 0; }
.logistic-article .lr-lab svg { display: block; height: auto; }
.logistic-article .lr-lab output { display: block; }
.logistic-article .lr-lab p:last-child,
.logistic-article .lr-equation p:last-child { margin-bottom: 0; }
.logistic-article .lr-equation { overflow-x: auto; }
.logistic-article .article-body pre.code-panel { color: #f0f7ff; }
.logistic-article .code-panel code { color: inherit; background: none; padding: 0; }
.logistic-article .form-range { min-height: 44px; }
.logistic-article :is(button, input, select):focus-visible {
  outline: 2px solid var(--accent); outline-offset: 4px;
}
.logistic-article .btn-outline-primary {
  --bs-btn-color: var(--accent); --bs-btn-border-color: var(--accent);
  --bs-btn-hover-bg: var(--accent); --bs-btn-hover-border-color: var(--accent);
}
.logistic-article .table { --bs-table-color: var(--ink); }
.logistic-article .table caption { color: var(--muted); }
.logistic-article .reference-list { overflow-wrap: anywhere; }
@media (max-width: 480px) {
  .logistic-article .site-header .wrap { gap: 12px; }
  .logistic-article .site-nav { gap: 12px; font-size: .85rem; }
  .logistic-article .brand { font-size: 1.05rem; }
  .logistic-article .lr-lab .table { font-size: .8rem; }
}
@media (prefers-reduced-motion: reduce) {
  html:has(.logistic-article) { scroll-behavior: auto; }
}
@media print {
  .logistic-article .site-nav, .logistic-article button { display: none; }
  .logistic-article .lr-lab { break-inside: avoid; }
  .logistic-article .code-panel { white-space: pre-wrap; }
}
