/* DSR Practice v1.1.0 - reusable lesson practice component */
.dsr-practice{--dp-bg:#f3f8f4;--dp-fg:#1b1f1c;--dp-card:#ffffff;--dp-line:#c9d9cd;--dp-accent:#13703a;--dp-ok-bg:#e3f5e8;--dp-ok:#0f6a33;--dp-bad-bg:#fde8e8;--dp-bad:#a3161a;--dp-warn-bg:#fff4d6;--dp-warn:#6b4a00;
  background:var(--dp-bg);color:var(--dp-fg);border:2px solid var(--dp-line);border-radius:14px;padding:16px 14px;margin:24px 0;max-width:100%;box-sizing:border-box;overflow-wrap:anywhere}
/* v1.1: same colour variables for blocks outside the Practice box (Quick check, can-do lists) */
.dsr-quiz,.dsr-cando,.dsr-steps{--dp-bg:#f3f8f4;--dp-fg:#1b1f1c;--dp-card:#ffffff;--dp-line:#c9d9cd;--dp-accent:#13703a;--dp-ok-bg:#e3f5e8;--dp-ok:#0f6a33;--dp-bad-bg:#fde8e8;--dp-bad:#a3161a;--dp-warn-bg:#fff4d6;--dp-warn:#6b4a00;}
html[data-tutor-theme="dark"] :is(.dsr-quiz,.dsr-cando,.dsr-steps),body.dsr-dark :is(.dsr-quiz,.dsr-cando,.dsr-steps),html.dsr-dark :is(.dsr-quiz,.dsr-cando,.dsr-steps){--dp-bg:#16211a;--dp-fg:#eef3ef;--dp-card:#1f2b23;--dp-line:#3d5544;--dp-accent:#4cc27a;--dp-ok-bg:#123a22;--dp-ok:#8ee6ad;--dp-bad-bg:#40181a;--dp-bad:#ffb0b0;--dp-warn-bg:#3a2f10;--dp-warn:#ffe08a}
@media (prefers-color-scheme:dark){html:not([data-tutor-theme="light"]):not(.dsr-light) :is(.dsr-quiz,.dsr-cando,.dsr-steps){--dp-bg:#16211a;--dp-fg:#eef3ef;--dp-card:#1f2b23;--dp-line:#3d5544;--dp-accent:#4cc27a;--dp-ok-bg:#123a22;--dp-ok:#8ee6ad;--dp-bad-bg:#40181a;--dp-bad:#ffb0b0;--dp-warn-bg:#3a2f10;--dp-warn:#ffe08a}}
.dsr-quiz .dsr-quiz-q,.dsr-quiz .dsr-fb{color:var(--dp-fg)}
.dsr-practice *{box-sizing:border-box}
.dsr-practice h2,.dsr-practice h3,.dsr-practice h4,.dsr-practice p,.dsr-practice li,.dsr-practice strong,.dsr-practice summary,.dsr-practice label{color:var(--dp-fg)}
.dsr-practice>h2:first-child{margin-top:0}
.dsr-task{background:var(--dp-card);border:1px solid var(--dp-line);border-left:6px solid var(--dp-accent);border-radius:12px;padding:12px 14px;margin:14px 0}
.dsr-task h3{margin:0 0 6px;font-size:1.1em}
.dsr-task .dsr-goal{font-weight:600}
.dsr-task ol,.dsr-task ul{padding-left:1.3em;margin:6px 0}
.dsr-task li{margin:4px 0}
.dsr-didit{position:relative;background:var(--dp-ok-bg);color:var(--dp-ok);border-radius:10px;padding:10px 12px 10px 42px;margin:8px 0 0}
.dsr-didit::before{content:'';position:absolute;left:12px;top:12px;width:20px;height:20px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10' fill='%231b7a3c'/%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center/20px 20px}
.dsr-didit strong,.dsr-didit{color:var(--dp-ok)}
.dsr-safe{background:var(--dp-warn-bg);border-radius:10px;padding:10px 12px;margin:12px 0}
.dsr-safe,.dsr-safe strong,.dsr-safe p{color:var(--dp-warn)}
.dsr-map{margin:12px 0;width:100%;max-width:100%}
.dsr-map iframe{display:block;width:100%;max-width:100%;height:300px;border:0;border-radius:12px;background:#e8e8e8}
.dsr-map p,.dsr-map figcaption{font-size:.92em;margin:6px 0 0}
/* quiz */
.dsr-quiz{background:var(--dp-card);border:1px solid var(--dp-line);border-radius:12px;padding:12px 14px;margin:14px 0}
.dsr-quiz .dsr-quiz-q{font-weight:700;margin:0 0 8px}
.dsr-quiz ol.dsr-quiz-opts{list-style:upper-alpha;padding-left:1.4em;margin:6px 0}
.dsr-quiz.dsr-js ol.dsr-quiz-opts{list-style:none;padding:0}
.dsr-quiz .dsr-opt{display:flex;align-items:center;gap:10px;width:100%;min-height:52px;margin:8px 0;padding:10px 14px;font:inherit;font-size:1.05em;line-height:1.3;text-align:left;color:var(--dp-fg);background:var(--dp-card);border:2px solid var(--dp-line);border-radius:12px;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
@media (hover:hover) and (pointer:fine){.dsr-quiz .dsr-opt:not([disabled]):hover{border-color:var(--dp-accent)}}
.dsr-quiz .dsr-opt:focus-visible{outline:3px solid var(--dp-accent);outline-offset:2px}
.dsr-quiz .dsr-opt .dsr-let{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:50%;background:var(--dp-bg);color:var(--dp-fg);font-weight:700}
.dsr-quiz .dsr-opt[disabled]{cursor:default;opacity:.75}
.dsr-quiz .dsr-opt.is-right{background:var(--dp-ok-bg);border-color:var(--dp-ok);color:var(--dp-ok);opacity:1}
.dsr-quiz .dsr-opt.is-wrong{background:var(--dp-bad-bg);border-color:var(--dp-bad);color:var(--dp-bad);opacity:1}
.dsr-quiz .dsr-opt.is-right .dsr-let{background:var(--dp-ok);color:#fff}
.dsr-quiz .dsr-opt.is-wrong .dsr-let{background:var(--dp-bad);color:#fff}
.dsr-quiz .dsr-fb{margin:8px 0 0;padding:10px 12px;border-radius:10px;font-size:1.02em}
.dsr-quiz .dsr-fb:empty{display:none}
.dsr-quiz .dsr-fb.is-right{background:var(--dp-ok-bg);color:var(--dp-ok)}
.dsr-quiz .dsr-fb.is-wrong{background:var(--dp-bad-bg);color:var(--dp-bad)}
.dsr-quiz .dsr-fb strong{color:inherit}
.dsr-quiz .dsr-again{min-height:48px;margin:10px 0 0;padding:10px 18px;font:inherit;font-weight:700;color:#fff;background:var(--dp-accent);border:0;border-radius:12px;cursor:pointer}
.dsr-quiz .dsr-again:focus-visible{outline:3px solid var(--dp-fg);outline-offset:2px}
.dsr-quiz details.dsr-quiz-answer{margin:8px 0 0}
.dsr-quiz details.dsr-quiz-answer summary{cursor:pointer;font-weight:700;min-height:44px;display:flex;align-items:center}
.dsr-quiz.dsr-js details.dsr-quiz-answer{display:none}
/* checklist */
.dsr-checklist{list-style:none;padding:0;margin:8px 0}
.dsr-checklist li{margin:6px 0}
.dsr-checklist label{display:flex;gap:12px;align-items:flex-start;min-height:48px;padding:10px 12px;background:var(--dp-card);border:1px solid var(--dp-line);border-radius:12px;cursor:pointer}
.dsr-checklist input[type=checkbox]{flex:0 0 auto;width:26px;height:26px;margin:0;accent-color:var(--dp-accent)}
.dsr-checklist input:checked+span{text-decoration:line-through;opacity:.8}
.dsr-sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
/* dark mode: only when the site lets the page be dark */
html[data-tutor-theme="dark"] .dsr-practice,body.dsr-dark .dsr-practice,html.dsr-dark .dsr-practice{--dp-bg:#16211a;--dp-fg:#eef3ef;--dp-card:#1f2b23;--dp-line:#3d5544;--dp-accent:#4cc27a;--dp-ok-bg:#123a22;--dp-ok:#8ee6ad;--dp-bad-bg:#40181a;--dp-bad:#ffb0b0;--dp-warn-bg:#3a2f10;--dp-warn:#ffe08a}
@media (prefers-color-scheme:dark){html:not([data-tutor-theme="light"]):not(.dsr-light) .dsr-practice{--dp-bg:#16211a;--dp-fg:#eef3ef;--dp-card:#1f2b23;--dp-line:#3d5544;--dp-accent:#4cc27a;--dp-ok-bg:#123a22;--dp-ok:#8ee6ad;--dp-bad-bg:#40181a;--dp-bad:#ffb0b0;--dp-warn-bg:#3a2f10;--dp-warn:#ffe08a}}
html[data-tutor-theme="dark"] .dsr-quiz .dsr-again,body.dsr-dark .dsr-quiz .dsr-again{color:#0d1a12}
.dsr-safe p{margin:0}
.dsr-task>:last-child,.dsr-quiz>:last-child{margin-bottom:0}
@media (max-width:480px){.dsr-practice{padding:12px 10px;border-radius:12px}.dsr-task,.dsr-quiz{padding:10px 10px}.dsr-task ol{padding-left:1.15em}.dsr-map iframe{border-radius:10px}}

/* v1.1: 'can do' lists and mission steps: plain lines with a filled green check, nothing tickable */
.dsr-cando{list-style:none;padding:12px 14px;margin:8px 0;background:var(--dp-ok-bg);border-radius:12px}
.dsr-cando li{position:relative;padding:4px 0 4px 32px;margin:2px 0;color:var(--dp-fg)}
.dsr-cando li::before{content:'';position:absolute;left:0;top:6px;width:20px;height:20px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10' fill='%231b7a3c'/%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center/20px 20px}
.dsr-steps{margin:8px 0;padding-left:1.6em}
.dsr-steps li{margin:8px 0;padding-left:4px;line-height:1.45}
.dsr-steps li::marker{font-weight:700;color:var(--dp-accent)}
