/* main_panel_dynamic_logit.css — Panel Dynamic Logistic Regression.
 *
 * Tool-local rules only. Everything the page shares with the rest of the site (cards, the
 * data-source chooser, chart cards, summary tables, the readout and its metric-headline
 * cards, interpretation aids) comes from shared/css. The blocks marked "copied from" are
 * house patterns that are tool-local by convention (briefs README rule 13), copied verbatim
 * from the tool named rather than reinvented.
 */

/* ---------------------------------------------------------------- teaching scaffold
   Copied from apps/advanced/turf/main_turf.css. Only .interpretation-aid is in main.css. */

.act-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #2563eb;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  white-space: nowrap;
  margin-right: 0.6rem;
  vertical-align: middle;
}

.act-narrative {
  font-size: 0.94rem;
  color: #4b5563;
  line-height: 1.65;
  margin: 0 0 1rem;
  max-width: 760px;
}

.chart-explainer {
  font-size: 0.9rem;
  color: var(--app-muted, #5f6b7a);
  margin: 0 0 1rem;
  line-height: 1.5;
}

.results-step-heading {
  margin-top: 1.75rem;
}

.callout-box {
  border-left: 4px solid #d1d5db;
  background: #f9fafb;
  border-radius: 6px;
  padding: 0.9rem 1.1rem;
  margin: 1.25rem 0 0;
  font-size: 0.92rem;
  line-height: 1.6;
}

.callout-box p { margin: 0 0 0.5rem; }
.callout-box ol, .callout-box ul { margin: 0; padding-left: 1.3rem; }
.callout-box li { margin-bottom: 0.4rem; }

.callout-amber {
  border-left-color: #f59e0b;
  background: #fffbeb;
}

.exploratory-questions {
  margin: 0;
  padding-left: 1.4rem;
  line-height: 1.65;
}

.exploratory-questions li { margin-bottom: 0.85rem; }

/* ---------------------------------------------------------------- scenario descriptions
   Copied from apps/time_series/arx/main_arx.css. */

.scenario-var-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.scenario-var-table tr { border-bottom: 1px solid #e5e7eb; }
.scenario-var-table tr:last-child { border-bottom: none; }

.scenario-var-table td {
  padding: 0.5rem 0.5rem 0.5rem 0;
  vertical-align: middle;
}

.scenario-var-table td:first-child {
  width: 140px;
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', monospace;
}

.var-tag {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-left: 0.5rem;
}

.var-tag.outcome { background: #dcfce7; color: #166534; }
.var-tag.predictor { background: #dbeafe; color: #1e40af; }
.var-tag.binary { background: #fef3c7; color: #92400e; }
.var-tag.time { background: #ccfbf1; color: #115e59; }

/* ---------------------------------------------------------------- run bar
   Copied from apps/regression/log_regression/main_log_regression.css. */

.run-analysis-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.run-analysis-btn {
  font-size: 1rem;
  padding: 0.55rem 1.4rem;
}

.run-analysis-btn--stale {
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.35);
}

.run-analysis-status {
  margin: 0;
  font-size: 0.88rem;
  color: #64748b;
}

/* ---------------------------------------------------------------- this tool's layout */

.money-opener {
  font-size: 1rem;
  line-height: 1.65;
  margin: 0 0 1rem;
}

.pd-columns-grid,
.pd-settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem 1.5rem;
  align-items: end;
  margin-bottom: 1rem;
}

.pd-columns-grid label,
.pd-settings-grid label {
  display: block;
  font-weight: 600;
  margin: 0.5rem 0 0.25rem;
}

.pd-columns-grid select,
.pd-settings-grid select,
.pd-settings-grid input[type="number"] {
  width: 100%;
}

.pd-driver-picker td,
.pd-driver-picker th {
  text-align: center;
}

.pd-driver-picker td:first-child,
.pd-driver-picker th:first-child {
  text-align: left;
}

.pd-advanced {
  margin: 0.5rem 0 0;
}

.pd-advanced summary {
  cursor: pointer;
  font-weight: 600;
}

.pd-inline-control {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 1.25rem 0 0.5rem;
}

.pd-inline-control label {
  font-weight: 600;
}

/* The row the student should look at: the model's own line and BIC's choice. */
.pd-row-emphasis td {
  font-weight: 700;
  background: #eff6ff;
}

.pd-row-reference td {
  color: var(--app-muted, #5f6b7a);
}

.pd-diagnostics-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.pd-diagnostics-list li {
  border-left: 4px solid #cbd5e1;
  background: #f8fafc;
  border-radius: 6px;
  padding: 0.6rem 0.9rem;
  margin-bottom: 0.6rem;
  line-height: 1.55;
}

/* Status is carried by a text label too, never by colour alone. */
.pd-diagnostics-list li.pd-status-watch { border-left-color: #f59e0b; background: #fffbeb; }
.pd-diagnostics-list li.pd-status-warn { border-left-color: #dc2626; background: #fef2f2; }
.pd-diagnostics-list li.pd-status-info { border-left-color: #2563eb; background: #eff6ff; }

.pd-status-label {
  font-weight: 700;
  margin-right: 0.4rem;
}

.pd-reveal-table {
  margin-top: 1rem;
}

@media (max-width: 640px) {
  .pd-driver-picker th,
  .pd-driver-picker td {
    padding: 0.35rem;
    font-size: 0.85rem;
  }
}

/* ---------------------------------------------------------------- panel-specific */

/* The three-model ladder: one column per model in the coefficient table. */
.pd-coef-table td:not(:first-child),
.pd-coef-table th:not(:first-child) {
  text-align: right;
  white-space: nowrap;
}

.pd-model-key {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
  line-height: 1.6;
}

.pd-model-key li { margin-bottom: 0.3rem; }

.pd-check-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 0.25rem 0 0.75rem;
}

.pd-check-row label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
}
