:root { color-scheme: light; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; color: #24324a; background: #f4f6fa; }
body { margin: 0; line-height: 1.6; }
/* Moodle requirements emit a focus-only skip link without loading the theme stylesheet. */
.visually-hidden-focusable { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.visually-hidden-focusable:focus { position: fixed; top: 8px; left: 8px; width: auto; height: auto; clip-path: none; padding: 8px 16px; background: white; border: 2px solid #165a91; z-index: 10000; }
.public-policy-footer { max-width: 880px; margin: 0 auto; padding: 16px 24px; border-top: 1px solid #d9e1ed; font-size: .9rem; }
/* tool_policy keeps a hidden source template and populates its live container through JS. */
.public-policy-footer .d-none { display: none !important; }
.public-policy-footer .eupopup-container { position: static; width: auto; padding: 12px; background: white; }
.public-policy-footer .eupopup-buttons { display: inline-block; margin-right: 1rem; }
.public-policy-footer .eupopup-closebutton { display: inline-block; padding: .25rem; }
main { max-width: 880px; margin: 0 auto; padding: 24px; overflow-wrap: anywhere; }
nav { color: #53627b; font-size: .9rem; }
.public-question, .public-invitation { background: white; border: 1px solid #d9e1ed; border-radius: 12px; padding: 28px; margin: 20px 0; }
h1 { font-size: 1.6rem; line-height: 1.3; margin-top: 0; }
.answer-choices { padding-left: 28px; }
.answer-choices li { padding: 12px; margin: 10px 0; border: 1px solid #d9e1ed; border-radius: 8px; }
.question-text img, .answer-choices img { max-width: 100%; height: auto; }
.question-matrix-scroll { max-width:100%; overflow-x:auto; }
table { border-collapse: collapse; max-width: 100%; }
th { overflow-wrap:normal; word-break:normal; white-space:nowrap; min-width:3.5em; }
.question-matrix-scroll th:first-child { white-space:normal; min-width:9rem; max-width:24rem; overflow-wrap:break-word; }
td, th { border: 1px solid #d9e1ed; padding: 8px; }
pre { overflow-x: auto; }
a { color: #1e4d9c; }
a:focus-visible { outline: 3px solid #e8a820; outline-offset: 4px; }
@media (max-width: 600px) { main { padding: 12px; } .public-question, .public-invitation { padding: 18px; } }

.question-neighbours { display:flex; justify-content:space-between; gap:12px; list-style:none; padding:0; }
.question-neighbours li { max-width:48%; }
.question-next { margin-left:auto; text-align:right; }
.public-question-number { font-weight:700; color:#53627b; margin:0 0 .4rem; }
.question-navigation-button { display:inline-block; padding:12px 18px; border:1px solid #1e4d9c; border-radius:8px; text-decoration:none; background:#fff; }
.question-navigation-button:hover { background:#eaf0fa; }
@media(max-width:400px) { .question-navigation-button { padding:10px; } }

.question-matrix-scroll:focus-visible { outline:3px solid #165a91; outline-offset:2px; }
