/* Single source of answer controls, reflowed from a compact list into a matrix. */
.matrix-block{margin:20px 0;min-width:0;max-width:100%}
.matrix-table{display:block;width:100%;white-space:normal;border-collapse:collapse}
.matrix-table thead{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0)}
.matrix-table tbody{display:grid;gap:12px}
.matrix-table .matrix-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:16px;border:1px solid var(--line);border-radius:10px;background:#fff}
.matrix-table th,.matrix-table td{min-width:0;white-space:normal;overflow-wrap:anywhere;letter-spacing:0;text-transform:none}
.matrix-table th[scope=row]{grid-column:1/-1;padding:0 0 6px;border:0;background:transparent;color:var(--ink);font-size:14px;font-weight:650;text-align:left;line-height:1.6}
.matrix-table .matrix-question-label{display:block}
.matrix-table .matrix-question-text{display:block;text-align:justify;text-align-last:left;text-justify:inter-word;font-weight:600}
.matrix-table td{padding:0;border:0}
.matrix-table td:has(.choice[hidden]){display:none}
.matrix-table .question-hint{display:block;margin:7px 0;font-size:12px;font-weight:400}
.matrix-table .field-error{font-weight:400;margin:6px 0 0}
.matrix-table .field-error:empty{display:none}
.matrix-table .choice{height:100%;min-height:46px;font-size:12px;line-height:1.5;padding:10px;align-items:center}
.matrix-table .choice input{width:18px;height:18px;min-height:18px}
.matrix-table .other-answer{font-weight:400;margin:10px 0 0}
.matrix-table .other-answer input{width:100%;min-width:0;font-size:14px}
.matrix-table .matrix-row.has-error{border-color:var(--red);background:#fff9f7}
.matrix-table .choice:focus-within{outline:2px solid var(--green);outline-offset:1px}
@media(min-width:760px){
 .matrix-block:not(.matrix-many){border:1px solid var(--line);border-radius:10px;overflow:hidden;background:#fff}
 .matrix-block:not(.matrix-many) .matrix-table{display:table;table-layout:fixed}
 .matrix-block:not(.matrix-many) .matrix-table thead{display:table-header-group;position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto}
 .matrix-block:not(.matrix-many) .matrix-table thead th{padding:14px 8px;background:var(--mint);font-size:11px;line-height:1.6;text-align:center;font-weight:700;border-bottom:1px solid var(--line)}
 .matrix-block:not(.matrix-many) .matrix-table thead th:first-child{width:42%;text-align:left;padding-left:16px}
 .matrix-block:not(.matrix-many) .matrix-table tbody{display:table-row-group}
 .matrix-block:not(.matrix-many) .matrix-table .matrix-row{display:table-row;padding:0;border:0;border-radius:0}
 .matrix-block:not(.matrix-many) .matrix-table th[scope=row]{padding:14px 16px;border-bottom:1px solid var(--line);vertical-align:middle}
 .matrix-block:not(.matrix-many) .matrix-table td{display:table-cell;padding:8px 5px;border-bottom:1px solid var(--line);vertical-align:middle}
 .matrix-block:not(.matrix-many) .matrix-table .matrix-row:last-child>th,.matrix-block:not(.matrix-many) .matrix-table .matrix-row:last-child>td{border-bottom:0}
 .matrix-block:not(.matrix-many) .matrix-table .choice{justify-content:center;min-height:44px;padding:10px 4px;border-color:transparent;border-radius:6px}
 .matrix-block:not(.matrix-many) .matrix-table .choice:hover{background:var(--wash)}
 .matrix-block:not(.matrix-many) .matrix-table .choice:has(input:checked){background:var(--mint);border-color:#91c6a4}
 .matrix-block:not(.matrix-many) .matrix-option-text{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0)}
}
@media(max-width:380px){.matrix-table .matrix-row{grid-template-columns:minmax(0,1fr)}}
