/* Layout only for the page-level recommendation band. Colour and type come from .rec, .rec.page
 * and .rec.caution in app.css (ui.js rec()); this file lays out the reasons, which print in full
 * under the verdict line (common rule 7, 2026-09-30: no Reason/Hide reason control). */

.rec-band { margin: 0 0 var(--gap-section, 20px); }
.rec-band .rec.page { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.rec-band .rec-reasons { margin: 10px 0 0 14px; }
.rec-band .rec-reasons h3 { margin: 0 0 6px; color: var(--ink-2); }

/* A band that carries reasons is one white card (visual-base, 2026-10-02): the recommendation line is its top row, in
 * the evidence tint with the 4px jade rule, and the reasons sit under it on white, so nothing stands bare on the canvas.
 * The line keeps the colours of its own tone (green, or blue for a caution); only its box changes. */
.rec-band:has(> .rec-reasons) {
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
  box-shadow: var(--card-shadow, 0 1px 2px rgba(12, 31, 28, .08)); overflow: hidden;
}
.rec-band:has(> .rec-reasons) > .rec.page {
  margin: 0; border-top-width: 0; border-right-width: 0; border-radius: 0; padding: 11px 18px 11px 16px;
}
.rec-band:has(> .rec-reasons) > .rec-reasons { margin: 0; padding: 12px 18px 14px; }
.rec-band:has(> .rec-reasons) .rec-reasons h3 {
  margin: 0 0 8px; color: var(--jade-dark); font-family: "IBM Plex Sans", sans-serif; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
}
/* The reasons ran as one line of about 150 characters; two columns hold them to a readable 45 to 85 characters a line and
 * fill the card. A single column returns below about 640px. */
.rec-band:has(> .rec-reasons) .rec-why-list { margin: 0; columns: 2 38ch; column-gap: 44px; }
.rec-band:has(> .rec-reasons) .rec-why-list li { break-inside: avoid; }

/* Task 2185: the reasons were capped at 92ch, so a long deciding fact or question wrapped inside a
 * narrow measure while the panel beside it stayed empty, and the reader lost the end of the reason.
 * The cap is removed: each reason now runs to the width the panel leaves, at the 15px answer step
 * shared with the rest of the page, indented 15px from the verdict line above it. */
.rec-band .rec-why-list {
  margin: 8px 0 0;
  padding: 0 0 0 15px;
  list-style: disc;
}
.rec-band .rec-why-list li {
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-2);
  margin: 0 0 5px;
  max-width: none;
}
.rec-band .rec-why-list li:last-child { margin-bottom: 0; }

@media print {
  .rec-band { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* formatting pass, 2026-09-24; Task 2185 reworked the list above, and the shared
 * --text-answer step is the same 15px the rest of the page reads, so the two rules agree
 * instead of the later one re-capping the size the earlier one set. */
.rec-band .rec.page,
.rec-band .rec {
  font-size: var(--text-answer, 15px);
  line-height: var(--lh-body, 1.5);
  color: var(--ink, #0C1F1C);
}
.rec-band .rec-why-list li {
  color: var(--ink-2, #12302B);
}
