/* Respondent-only reading preference. No identity, response or preference storage. */
.mdl-response-reading { --mdl-reading-scale: 1; min-width: 0; }
.mdl-response-reading:has(> .mdl-font-size[data-size="85"]) { --mdl-reading-scale: .85; }
.mdl-response-reading:has(> .mdl-font-size[data-size="115"]) { --mdl-reading-scale: 1.15; }
.mdl-response-reading:has(> .mdl-font-size[data-size="130"]) { --mdl-reading-scale: 1.3; }
.mdl-response-reading:has(> .mdl-font-size[data-size="150"]) { --mdl-reading-scale: 1.5; }
.mdl-font-size { position: sticky; top: 8px; z-index: 10; background: #f6f7f9; border-radius: 10px; display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 6px; margin: 0 0 20px; color: #526079; font-size: .9rem; }
.mdl-font-label { margin-right: 6px; } .mdl-font-value { min-width: 3.3em; text-align: center; font-variant-numeric: tabular-nums; }
.mdl-font-size button { min-height: 44px; } .mdl-font-size button:focus-visible { outline: 3px solid #197a70; outline-offset: 2px; }
.mdl-response-reading .single-question-prompt,
.mdl-response-reading .question-card h2,
.mdl-response-reading .single-question-card h2,
.mdl-response-reading .question-card > p,
.mdl-response-reading .ibaco-question-prompt,
.mdl-response-reading .ibaco-review strong,
.mdl-response-reading .ibaco-review p,
.mdl-response-reading .response-renderer .field > span,
.mdl-response-reading .nps-question-prompt { font-size: calc(1.18rem * var(--mdl-reading-scale)); line-height: 1.6; overflow-wrap: anywhere; }
.mdl-response-reading .mud-radio-content,
.mdl-response-reading .answer > span,
.mdl-response-reading .response-renderer input:not([type="radio"]),
.mdl-response-reading .response-renderer textarea,
.mdl-response-reading .question-card textarea,
.mdl-response-reading .question-card .mud-input,
.mdl-response-reading .nps-anchors,
.mdl-response-reading .nps-selected,
.mdl-response-reading .nps-slider .mud-slider-tick-label { font-size: calc(1rem * var(--mdl-reading-scale)); line-height: 1.5; overflow-wrap: anywhere; }
@media(max-width:760px) { .mdl-font-size { justify-content: flex-start; gap: 4px; } }

.mdl-response-reading .ibaco-answer-options { width: 100%; min-width: 0; }
.mdl-response-reading .ibaco-answer-options .mud-input-control-input-container { width: 100%; min-width: 0; }
/* IBACO: same response surface for nominal and anonymous modes. */
.participant-main:has(.ibaco-invitation) { width: min(1160px,calc(100% - 48px)); }
.participant-state.ibaco-invitation { max-width: 1160px; text-align: left; margin: 12px auto; padding: clamp(18px,3vw,32px); }
.ibaco-shell.mdl-response-reading { max-width: 1160px; margin: 24px auto; padding: clamp(12px,3vw,24px); }
.ibaco-question-card { padding: clamp(16px,3vw,28px); border: 1px solid #e1e6ee; border-radius: 14px; background: #fff; box-shadow: 0 8px 24px #17203308; }
.mdl-response-reading .ibaco-question-number { color: #3443bd; font-size: .95rem; font-weight: 700; margin: 0 0 12px; }
.mdl-response-reading .ibaco-question-prompt { font-weight: 700; color: #172033; margin: 0 0 16px; }
.mdl-response-reading .ibaco-question-help, .mdl-response-reading .ibaco-save-status { font-size: .92rem; color: #526079; }
.mdl-response-reading .ibaco-answer-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 12px; width: 100%; margin: 20px 0; }
.mdl-response-reading .ibaco-answer-option { display: flex; align-items: center; width: 100%; min-width: 0; min-height: 108px; margin: 0; padding: 12px 8px; border: 1px solid #d4ddeb; border-radius: 12px; background: #f8f9fc; transition: border-color .15s,background .15s; }
.mdl-response-reading .ibaco-answer-option .mud-radio-content { min-width: 0; white-space: normal; }
.mdl-response-reading .ibaco-answer-option.selected { border-color: #3443bd; background: #eef0ff; }
.mdl-response-reading .ibaco-answer-option:focus-within { outline: 3px solid #197a70; outline-offset: 2px; }
.ibaco-progress-copy { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-top: 20px; color: #526079; font-size: .9rem; }
.ibaco-progress-copy p { margin: 8px 0; }
.ibaco-question-stepper { margin-top: 12px; min-width: 0; }
.ibaco-stepper-nav { max-width: 100%; overflow-x: auto; padding: 8px 0; border-bottom: 1px solid #e1e6ee; }
.ibaco-step-marker { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid #d4ddeb; background: #f6f7f9; color: #526079; font-weight: 700; font-size: .85rem; }
.ibaco-step-marker.current { background: #3443bd; border-color: #3443bd; color: #fff; box-shadow: 0 0 0 4px #3443bd18; }
.ibaco-step-marker.saved { background: #e7f5ef; border-color: #19724c; color: #19724c; }
.ibaco-step-check { position: absolute; right: -6px; top: -6px; border-radius: 50%; background: #19724c; color: #fff; width: 16px; height: 16px; }
.ibaco-step-connector { height: 2px; min-width: 12px; background: #d4ddeb; border-radius: 2px; }
.ibaco-question-stepper .mud-stepper-actions { padding-inline: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.ibaco-review article { padding: 16px; margin: 12px 0; border: 1px solid #e1e6ee; border-radius: 12px; background: #fff; }
.mdl-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media(max-width:760px) {
 .participant-main:has(.ibaco-invitation) { width: calc(100% - 24px); }
 .mdl-response-reading .ibaco-answer-grid { grid-template-columns: 1fr; gap: 10px; }
 .mdl-response-reading .ibaco-answer-option { min-height: 64px; padding: 12px; }
 .ibaco-question-stepper .mud-stepper-actions { gap: 8px; }
 .ibaco-progress-copy { align-items: flex-start; flex-direction: column; gap: 0; }
}

.mdl-response-reading .sociogram-collector .mud-stepper-content h2,
.mdl-response-reading .question-card .notice-box,
.mdl-response-reading .eco-review strong,
.mdl-response-reading .epjo-review strong,
.mdl-response-reading .eaeg-review strong,
.mdl-response-reading .expanded-block strong { font-size: calc(1.18rem * var(--mdl-reading-scale)); line-height: 1.6; }
.mdl-response-reading .sociogram-collector .mud-input-control .mud-input,
.mdl-response-reading .sociogram-collector .mud-input-control .mud-input-label,
.mdl-response-reading .sociogram-collector .mud-checkbox .mud-typography,
.mdl-response-reading .nps-surface .mud-input,
.mdl-response-reading .nps-surface .mud-input-label { font-size: calc(1rem * var(--mdl-reading-scale)); line-height: 1.5; }

.mdl-response-reading .nps-question-prompt { font-size: calc(1.65rem * var(--mdl-reading-scale)); }

.ibaco-question-number, .ibaco-review [tabindex="-1"] { scroll-margin-top: 128px; }
