/* LR Question Set — plan/pages/lr-question-set.html.

   Everything not page-specific (.form-box, .col-label, .tab-bar, .chart-pane*,
   .progress-averages-row, .bookmark-filter-btn, .field-select-btn, .results-table,
   .type-info-box and everything under it, select.form-select, .content-column) is already in
   components.css and base.css and is consumed here, not copied — components.md's rename
   table, and sections.css's own header comment, which this follows. */

.builder-panel { }

.type-row-wrap { margin-bottom: 22px; }
.type-row-wrap:last-child { margin-bottom: 0; }

/* Matches schedule.html's Course Content blocks / rc-question-set.html's own selector box —
   modal-dark background, sharp-ish corners, no hover lift (not clickable). One rule, so every
   row gets it, including a row addTypeBtn adds later. */
.type-row {
  background: #313d56;
  border: 1px solid rgba(241,231,219,0.12);
  border-radius: 4px;
  padding: 24px 26px;
}

.type-row-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.type-row-eyebrow {
  font-variant: small-caps;
  font-size: 13px;
  letter-spacing: 0.06em;
  opacity: 0.5;
}
.remove-row-btn {
  background: transparent;
  border: 1px solid rgba(255,128,88,0.5);
  border-radius: 2px;
  color: var(--color-accent);
  opacity: 0.85;
  font-variant: small-caps;
  font-size: 11.5px;
  letter-spacing: 0.03em;
  padding: 5px 12px;
  cursor: pointer;
  font-family: inherit;
}
.remove-row-btn:hover { opacity: 1; background: rgba(255,128,88,0.12); }

.type-row-columns {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1.3fr 1fr;
  gap: 30px;
}

.add-type-btn {
  display: inline-block;
  width: auto;
  background: transparent;
  border: 1px dashed rgba(255,128,88,0.6);
  color: var(--color-accent);
  border-radius: 3px;
  padding: 8px 16px;
  font-family: inherit;
  font-variant: small-caps;
  font-size: 12.5px;
  letter-spacing: 0.03em;
  cursor: pointer;
  margin: 4px 0 28px;
}
.add-type-btn:hover { background: rgba(255,128,88,0.08); }
.add-type-btn:disabled { opacity: 0.35; cursor: not-allowed; }

.bottom-row {
  display: flex;
  align-items: flex-end;
  gap: 20px;
}

/* Its own boxed block, same modal-dark/sharp-corner treatment as .type-row — stays put in
   .bottom-row rather than joining a .type-row, matching the mockup. */
.qty-field {
  flex-shrink: 0;
  background: #313d56;
  border: 1px solid rgba(241,231,219,0.12);
  border-radius: 4px;
  padding: 16px 18px;
}
.qty-field .col-label { margin-bottom: 8px; }
select.qty-select.form-select { width: 90px; }
select.qty-select:disabled { opacity: 0.4; }

/* Its own hidden label spacer above the button, the same device rc-question-set.html's own
   swap column uses — without it, align-items: flex-end on .bottom-row lines up only the
   button's bottom edge with qty-field's own select, leaving the button's top sitting below
   qty-field's own label. */
.generate-col { flex-shrink: 0; }
.generate-col .col-label { margin-bottom: 8px; }

.generate-btn {
  background: var(--color-accent);
  color: var(--color-accent-text);
  border: none;
  border-radius: 2px;
  padding: 13px 26px;
  font-family: inherit;
  font-variant: small-caps;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  cursor: pointer;
}
.generate-btn:hover:not(:disabled) { opacity: 0.92; }
.generate-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.generate-reason {
  margin-top: 12px;
  font-size: 12.5px;
  opacity: 0.6;
  min-height: 1em;
}

.drill-sets-section { margin-top: 48px; }

.drill-sort-row { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin: 0 0 16px; }
.drill-sort-label { font-variant: small-caps; font-size: 12.5px; letter-spacing: 0.03em; opacity: 0.55; }

/* The drill set's own row wrapper — recolouring and click-to-expand on top of the shared
   .type-info-box, the same pattern .section-row supplies on the sections page. */
.drill-set-row {
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.drill-set-row:hover {
  background: rgba(241,231,219,0.09);
  border-color: rgba(241,231,219,0.22);
}
.drill-set-row-wrap.expanded .drill-set-row {
  background: rgba(241,231,219,0.09);
  border-color: rgba(241,231,219,0.22);
}
.drill-set-questions { display: none; margin: -6px 0 16px; }
.drill-set-row-wrap.expanded .drill-set-questions { display: block; }

/* Decision D5: the row's own line describing what selection built it, one line truncated with
   an ellipsis, the full text in the element's own title attribute. */
.drill-set-selection {
  font-size: 12px;
  opacity: 0.55;
  margin-top: 3px;
  max-width: 480px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 1200px) {
  .type-row-columns { grid-template-columns: 1fr 1fr; gap: 20px 30px; }
}
@media (max-width: 768px) {
  .type-row-columns { grid-template-columns: 1fr; }
  .drill-set-selection { max-width: none; white-space: normal; }
}
