/* The characterization filled in the old system (the owner, 26.10.2026; app/legacy-char-ui.js):
   the client card's closed row "אפיון מהמערכת הישנה" and the editors' page. The filled text as
   a card to read (key and value side by side on a computer, one under the other on a phone),
   then a closed row each for the brief, the scripts, the summary and the raw answers. */
.lch { display: grid; gap: 12px; min-width: 0; }
.lch-note { margin: 0; }
.lch-none { margin: 0; }
.lch-doc { display: grid; gap: 10px; padding: 14px 16px; border: 1px solid var(--ds-line); border-radius: var(--ds-r-item); background: var(--ds-surface); min-width: 0; }
.lch-stamp { margin: 0; font-size: 13px; font-weight: 600; color: var(--ds-muted); }
/* A heading of the old text: bold, navy, a thin line above it when something came before. */
.lch-h { margin: 6px 0 0; padding-top: 12px; border-top: 1px solid var(--ds-line); font-family: var(--ds-font-b); font-size: 17px; font-weight: 700; line-height: 1.4; color: var(--ds-navy-text); overflow-wrap: anywhere; }
.lch-doc > .lch-h:first-child, .lch-stamp + .lch-h, .lch-fb > .lch-h:first-child, .lch-fb > .hint + .lch-h { margin-top: 0; padding-top: 0; border-top: 0; }
.lch-dl { display: grid; grid-template-columns: minmax(8em, max-content) minmax(0, 1fr); gap: 8px 16px; margin: 0; }
.lch-dl > dt { font-weight: 600; color: var(--ds-ink-2); overflow-wrap: anywhere; }
.lch-dl > dd { margin: 0; white-space: pre-line; overflow-wrap: anywhere; line-height: 1.6; min-width: 0; }
.lch-p { margin: 0; white-space: pre-line; overflow-wrap: anywhere; line-height: 1.7; }
.lch-ul { margin: 0; padding-inline-start: 1.3em; display: grid; gap: 4px; line-height: 1.6; }
.lch-ul > li { overflow-wrap: anywhere; }

.lch-fold { border: 1px solid var(--ds-line); border-radius: var(--ds-r-item); background: var(--ds-surface); min-width: 0; }
.lch-fold > summary { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; min-height: 48px; padding: 6px 14px; cursor: pointer; list-style: none; border-radius: inherit; font-weight: 600; color: var(--ds-ink); }
.lch-fold > summary::-webkit-details-marker { display: none; }
.lch-fold > summary::after { content: ''; flex: none; inline-size: 7px; block-size: 7px; margin-inline-start: auto; border: solid var(--ds-ink-2); border-width: 0 0 2px 2px; transform: rotate(-45deg) translateY(-2px); transition: transform .15s; }
.lch-fold[open] > summary::after { transform: rotate(135deg) translate(-2px, 0); }
.lch-fold > summary:hover { background: var(--ds-soft); }
.lch-fold > summary:focus-visible { outline: 2px solid var(--ds-navy-mid, var(--accent)); outline-offset: -2px; }
.lch-fs { font-size: 13px; font-weight: 500; color: var(--ds-muted); }
.lch-fb { display: grid; gap: 10px; padding: 4px 14px 14px; min-width: 0; }
.lch-fb > .hint { margin: 0; }
.lch-answers > dt { font-variant-numeric: tabular-nums; }

/* The editors' page: the block inside the client's card, under "מה חייבים להגיד ומה אסור". */
details.ed-lch > summary { flex-wrap: wrap; align-content: center; column-gap: 8px; }
details.ed-lch > summary .lch-fs { flex-basis: 100%; }
details.ed-lch > .lch { margin-top: 4px; }

@media (max-width: 560px) {
  .lch-doc { padding: 12px; }
  .lch-dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .lch-dl > dd + dt { margin-top: 10px; }
  .lch-fold > summary { padding: 6px 12px; }
  .lch-fb { padding: 4px 12px 12px; }
}

@media print {
  .lch-note { display: none; }
  .lch-doc, .lch-fold { border: 0; padding: 0; background: none; }
  .lch-fold > summary { min-height: 0; padding: 8px 0 4px; }
  .lch-fold > summary::after { display: none; }
  .lch-fb { padding: 0; }
  .lch-h, .lch-dl > dt { break-after: avoid; }
  .lch-dl > dt + dd { break-before: avoid; }
}
