/* tsds.css
 * Extra styling for tsds.html; loaded after screening.css so these rules can override the shared base.
 * CSS controls appearance. JavaScript controls responses and generated notes.
 * Rules later in the file can override earlier rules with equal specificity.
 */

/* Layout for discrimination attributions and percentage inputs. */
.type-grid {
  display: grid;
}
/* One discrimination attribution with its selection and percentage. */
.type-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 100px;
  gap: 10px;
  align-items: center;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface-2);
}
.type-check {
  display: flex;
  align-items: baseline;
  gap: var(--space-options);
  font-size: var(--font-option);
  font-weight: 400;
  cursor: pointer;
}
.type-check input {
  flex: none;
  margin: 0;
}
.type-percentage {
  display: flex;
  align-items: center;
  gap: 6px;
}
.type-row input[type="number"] {
  width: 100%;
  padding: 9px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}
.type-row input[type="text"] {
  grid-column: 1 / -1;
  width: 100%;
  padding: 9px;
  border: 1px dashed var(--border);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}
.percentage-status {
  margin-top: 14px;
  color: var(--accent-secondary);
  font-weight: 700;
}
/* Display the number of answers in each response category. */
.distribution {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 18px;
}
.distribution div {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface-2);
}
/* Smaller-screen adjustments: reduce columns and spacing to fit the available width. */
@media (max-width: 760px) {
  .response-grid,
  .distribution {
    grid-template-columns: 1fr 1fr;
  }
}
/* Smaller-screen adjustments: reduce columns and spacing to fit the available width. */
@media (max-width: 480px) {
  .response-grid,
  .distribution {
    grid-template-columns: 1fr;
  }
}
