/*
  28-handouts.css — v41.57 Codex handouts.
  All modal surfaces, so light parchment: --ink / --ink-soft / --muted / --line.
*/

.handout-figure {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--chart);
  overflow: hidden;
  cursor: zoom-in;
}
.handout-figure img { display: block; width: 100%; height: auto; }

.handout-form-preview {
  height: 150px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background-color: var(--chart);
  background-size: cover;
  background-position: center;
}

.handout-notes {
  color: var(--ink);
  font-size: .93rem;
  line-height: 1.55;
  white-space: pre-wrap;
}
.handout-secret-chip { align-self: flex-start; }

.handout-quest-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.handout-quest-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--chart-2);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.handout-quest-title { font-weight: 700; }
.handout-quest-status { color: var(--muted); font-size: .82rem; white-space: nowrap; }

/* Quest form picker */
.handout-pick-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 34vh;
  overflow-y: auto;
}
.handout-pick {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--chart-2);
  color: var(--ink);
  /* The option row is a <label>, and the global label style is uppercase and
     bold — meant for field captions. Same reset as the fleet doctrine rows. */
  font-size: .9rem;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  margin-bottom: 0;
  cursor: pointer;
}
/* styles.css exempts checkboxes from the full-width input rule, but scope it
   here too so a future change to that exemption cannot break this list. */
.handout-pick input[type="checkbox"] {
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  min-height: 0;
  padding: 0;
}
.handout-pick > span { flex: 1 1 auto; min-width: 0; }

/* ---------- v41.61: Codex panel rows and the quest sheet ---------- */
.handout-row-thumb {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 9px;
  border: 1px solid var(--line-strong);
  background-color: var(--chart);
  background-size: cover;
  background-position: center;
}
.quest-handouts {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.quest-handouts-label {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

/* ---------- v41.62: scalable picker ---------- */
.handout-pick-search { margin-bottom: 6px; }
.handout-pick-count {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 650;
  margin: 0 2px 6px;
}
.handout-pick[hidden] { display: none; }
/* Ticked rows sort to the top; mark them so the eye finds them immediately. */
.handout-pick:has(input:checked) {
  border-color: var(--brass);
  background: var(--chart);
}
