/* compare-programs.html — page-only composition. Components come from ../system.css. */

.page-hero-media img { object-position: 46% 40%; }

/* ---------- documented programs ---------- */
.records-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 20px; align-items: start; }
.records-side { display: grid; gap: 20px; }
.records-empty { padding: clamp(24px, 2.6vw, 32px); }
.records-empty h3 { font-size: var(--t-h4); }
.standard { padding: 4px clamp(4px, .6vw, 8px) 0; }
.standard h3 { font-size: var(--t-body); }
.standard-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 2px; }
.standard-list li { position: relative; padding: 9px 0 9px 30px; font-size: var(--t-text); line-height: 1.4; color: var(--l-text); border-top: 1px solid var(--line); }
.standard-list li:last-child { border-bottom: 1px solid var(--line); }
.standard-list li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 11px; height: 6px; border-left: 1.5px solid var(--pine-bright); border-bottom: 1.5px solid var(--pine-bright); transform: rotate(-45deg); }
.standard .fine { margin-top: 16px; }

.records-board { padding: clamp(22px, 2.4vw, 32px); }
.board-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.board-head h3 { font-size: var(--t-body); }
.board-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 24px; align-items: end; margin-top: 22px; padding: 18px 0 22px; border-top: 1px solid var(--line); }
.board-choices { border: 0; margin: 0; padding: 0; min-width: 0; }
.board-choices legend { padding: 0; margin-bottom: 12px; font-size: var(--t-small); color: var(--l-muted); }
.board-status { display: grid; justify-items: end; gap: 10px; text-align: right; }
.board-status p { font-size: var(--t-micro); color: var(--l-faint); max-width: 30ch; }

/* checkbox chips on light (pick up to three) */
.pick-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pick-chips label { position: relative; cursor: pointer; }
.pick-chips input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.pick-chips span { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 14px; border-radius: var(--r-pill); background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; color: var(--l-text); transition: background-color var(--dur-fast), color var(--dur-fast), box-shadow var(--dur-fast), transform var(--dur) var(--ease-out); }
.pick-chips span::before { content: ""; width: 14px; height: 14px; flex: none; border-radius: 4px; box-shadow: inset 0 0 0 1.5px var(--l-faint); background: center / 10px no-repeat; transition: background-color var(--dur-fast), box-shadow var(--dur-fast); }
.pick-chips label:hover span { box-shadow: inset 0 0 0 1px var(--pine-bright); }
.pick-chips label:active span { transform: scale(.97); }
.pick-chips input:checked + span { background: var(--ink); color: #fff; box-shadow: none; }
.pick-chips input:checked + span::before { box-shadow: none; background-color: var(--mint); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 5.2l2 1.9L8 3' fill='none' stroke='%23050F0C' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.pick-chips input:disabled + span { opacity: .45; cursor: not-allowed; }
.pick-chips input:disabled { cursor: not-allowed; }
.pick-chips input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 3px; }

.board-scroll { margin-top: 2px; }
.program-table { min-width: 640px; }
.program-table thead th { white-space: nowrap; }
.program-table thead th:first-child { color: var(--l-faint); }
.program-table tbody th { width: 26%; color: var(--l-text); }
.program-table td { color: var(--l-faint); }
.program-table .ask { color: var(--brass-deep); }
.program-table [data-program-column].is-picked { background: rgba(20, 135, 111, .06); }

/* ---------- question sheet ---------- */
.sheet-section { isolation: isolate; overflow: clip; }
.sheet-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px; align-items: start; }
.scenario { position: sticky; top: calc(var(--nav-h) + 24px); }
.scenario-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 24px; }
.scenario-head h3 { font-size: var(--t-body); }
.scenario .form-error { margin-top: 16px; }

.sheet { padding: 0; overflow: hidden; }
.sheet > :not(.glow) { position: relative; z-index: 1; }
.sheet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: clamp(22px, 2.4vw, 32px) clamp(22px, 2.6vw, 36px) 20px; }
.sheet-head h3 { font-size: var(--t-h3); font-weight: 300; letter-spacing: -.035em; line-height: 1.1; }
.sheet-sub { margin-top: 8px; font-size: var(--t-small); }
.sheet-scenario { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 clamp(22px, 2.6vw, 36px); border-top: 1px solid var(--d-line); border-bottom: 1px solid var(--d-line); }
.sheet-scenario > div { padding: 14px 16px 14px 0; min-width: 0; }
.sheet-scenario > div:nth-child(3n+2), .sheet-scenario > div:nth-child(3n) { padding-left: 16px; border-left: 1px solid var(--d-line); }
.sheet-scenario > div:nth-child(n+4) { border-top: 1px solid var(--d-line); }
.sheet-scenario dt { font-size: var(--t-micro); color: var(--d-faint); }
.sheet-scenario dd { margin: 4px 0 0; font-size: var(--t-text); font-weight: 500; color: #fff; overflow-wrap: anywhere; transition: color var(--dur); }
.sheet-scenario dd.is-empty { font-weight: 400; color: var(--d-faint); }
.sheet-scenario dd.is-new { animation: dd-in .6s var(--ease-out); }
@keyframes dd-in { from { opacity: .2; transform: translateY(4px); } }

.question-list { list-style: none; margin: 0; padding: 8px clamp(22px, 2.6vw, 36px) 0; }
.question-list li { display: grid; grid-template-columns: minmax(150px, 2fr) minmax(0, 5fr); gap: 8px 24px; padding: 20px 0; border-bottom: 1px solid var(--d-line); }
.question-list h4 { font-size: var(--t-h4); font-weight: 500; letter-spacing: -.02em; line-height: 1.25; color: #fff; }
.question-list p { font-size: var(--t-text); line-height: 1.5; color: var(--d-muted); max-width: 52ch; }
.sheet-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 22px clamp(22px, 2.6vw, 36px) clamp(22px, 2.4vw, 30px); }
.sheet-note { margin-left: auto; font-size: var(--t-micro); color: var(--d-faint) !important; max-width: 30ch; text-align: right; }
.sheet-noscript { margin-top: 20px; }

/* ---------- your own numbers ---------- */
.media-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 45%; }
.numbers h2 { max-width: 14ch; }
.numbers-note { margin-top: 32px; max-width: 46ch; }


@media (max-width: 1180px) {
  .question-list li { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1000px) {
  .records-grid, .sheet-layout { grid-template-columns: minmax(0, 1fr); }
  .scenario { position: static; }
  .board-controls { grid-template-columns: minmax(0, 1fr); }
  .board-status { justify-items: start; text-align: left; }
}
@media (max-width: 760px) {
  .sheet-scenario { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sheet-scenario > div { padding-left: 0 !important; border-left: 0 !important; }
  .sheet-scenario > div:nth-child(even) { padding-left: 16px !important; border-left: 1px solid var(--d-line) !important; }
  .sheet-scenario > div:nth-child(n+3) { border-top: 1px solid var(--d-line); }
  .sheet-head { flex-direction: column; }
  .sheet-note { margin-left: 0; text-align: left; max-width: none; }
}

/* print: only the question sheet when printing from its button */
@media print {
  html.print-sheet main > :not(#questions), html.print-sheet .footer, html.print-sheet .skip-link { display: none !important; }
  html.print-sheet #questions .section-head, html.print-sheet .scenario, html.print-sheet .sheet-foot, html.print-sheet .mesh-quiet { display: none !important; }
  html.print-sheet .sheet-layout { display: block; }
  html.print-sheet .sheet, html.print-sheet .sheet * { background: #fff !important; color: #000 !important; box-shadow: none !important; }
  html.print-sheet .sheet-scenario, html.print-sheet .sheet-scenario > div, html.print-sheet .question-list li { border-color: #999 !important; }
  html.print-sheet .question-list li { break-inside: avoid; }
  html.print-sheet .question-list li::after { content: "Lender answer: ____________________________________________"; grid-column: 1 / -1; margin-top: 10px; font-size: 12px; color: #444; }
}
