/* main_turf.css — tool-only styles. Nothing shared is redefined here. */

.settings-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 520px;
}

#k-slider {
  width: 100%;
}

#k-value {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.scenario-quote {
  font-style: italic;
  border-left: 3px solid var(--color-border, #cbd5e1);
  padding-left: 0.75rem;
  margin: 0.5rem 0;
}

.table-wrap {
  overflow-x: auto;
}

/* The best row is announced by its chip as well, so colour is never the only signal. */
.row-best {
  background: color-mix(in srgb, var(--color-primary, #2563eb) 8%, transparent);
  font-weight: 600;
}

.chip {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.chip--best {
  background: var(--color-primary, #2563eb);
  color: #fff;
}

.chip--tie {
  background: #fef3c7;
  color: #92400e;
}

.table-note {
  font-size: 0.85rem;
  color: var(--color-text-muted, #64748b);
  margin-top: 0.5rem;
}

.dsc-hint--muted {
  color: var(--color-text-muted, #64748b);
  font-style: italic;
}

.upload-status {
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

.upload-status--error {
  color: var(--color-danger, #b91c1c);
  font-weight: 600;
}

.upload-confirm {
  margin-top: 0.75rem;
  padding: 0.75rem;
  border: 1px solid var(--color-border, #cbd5e1);
  border-radius: 8px;
  background: var(--color-surface-alt, #f8fafc);
}

.upload-confirm__title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.upload-confirm__summary {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
}

.constraint-grid {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.constraint-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.25rem 0;
  border-bottom: 1px solid var(--color-border-subtle, #e2e8f0);
}

.constraint-name {
  font-size: 0.9rem;
}

.constraint-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  white-space: nowrap;
  cursor: pointer;
}

.rule-preview {
  margin: 0.4rem 0 0;
  font-size: 0.9rem;
  color: var(--color-text-muted, #475569);
}

.portfolio-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.chart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1rem;
}

.cell-warn {
  color: var(--color-danger, #b91c1c);
  font-weight: 600;
}

.export-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ---------------------------------------------------------------- teaching scaffold
   The house pattern from the concept labs (threshold_lab, response_model_lab). Only
   .interpretation-aid is defined in main.css; the rest are tool-local by convention. */

.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;
}

/* The results step heading sits outside a card, above the readout. */
.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; }
