/* Law & Ethics: a small dialogue, legible with native details and no script. */
#ethics-teachback{--et-ink:#262032;--et-text:#403a46;--et-muted:#594d61;--et-accent:#5a396b;--et-rule:#b2a5b6;--et-paper:#f7f3ee;--et-field:#f0e9ed;--et-serif:Georgia,"Times New Roman",serif;grid-column:1/-1;box-sizing:border-box;min-width:0;isolation:isolate;display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.14fr);gap:clamp(1.2rem,4.5vw,4rem);margin:clamp(.8rem,2.5vw,2rem) 0;padding:clamp(1.15rem,3.1vw,2.35rem) clamp(1rem,3vw,2.65rem);border-block:1px solid var(--et-rule);border-radius:0;color:var(--et-ink);background:var(--et-paper);font:400 1rem/1.52 var(--bw-font-sans,"Inter",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif);text-align:left;overflow-wrap:break-word}
html[data-bw-study-scheme=dark] #ethics-teachback,html[data-bw-theme=exam] #ethics-teachback,html[data-bw-theme=night] #ethics-teachback,html[data-bw-theme=lights-out] #ethics-teachback{--et-ink:#f6eef5;--et-text:#e6dfe7;--et-muted:#cfc2d0;--et-accent:#ecd0e5;--et-rule:#827487;--et-paper:#1c1820;--et-field:#302834}
html[data-bw-theme=lights-out] #ethics-teachback{--et-paper:#111015;--et-field:#242027}
#ethics-teachback *,#ethics-teachback *::before,#ethics-teachback *::after{box-sizing:border-box}
#ethics-teachback :is(p,h2,blockquote,cite,details,summary){background:none;color:inherit;font-family:inherit;text-align:left;letter-spacing:normal;text-transform:none;text-shadow:none;box-shadow:none;-webkit-text-fill-color:currentColor}
#ethics-teachback :is(.etb-scene,.etb-dialogue){min-width:0;align-self:start}
#ethics-teachback p{margin:0;line-height:1.52;font-size:1rem}
#ethics-teachback .etb-overline{margin:0 0 .55rem;color:var(--et-accent);font-size:.72rem;font-weight:750;letter-spacing:.09em;text-transform:uppercase}
#ethics-teachback h2{margin:0 0 .65rem;font:600 clamp(1.7rem,3.1vw,2.35rem)/1.1 var(--et-serif);letter-spacing:-.035em;color:var(--et-ink)}
#ethics-teachback .etb-setup{color:var(--et-text);max-width:42ch}
#ethics-teachback blockquote{margin:1.15rem 0 0;padding:.1rem 0 .1rem .95rem;border:0;border-inline-start:3px solid var(--et-rule);border-radius:0}
#ethics-teachback blockquote p{font:italic 1.36rem/1.22 var(--et-serif);color:var(--et-ink)}
#ethics-teachback cite{display:block;margin-top:.32rem;font-size:.79rem;font-style:normal;font-weight:600;color:var(--et-muted)}
#ethics-teachback .etb-prompt{color:var(--et-text);margin:0 0 .5rem;font-size:.94rem}
#ethics-teachback :is(.etb-prompt strong,.etb-reply b,.etb-final b){color:var(--et-ink);font-weight:720}
#ethics-teachback details{margin:0;padding:0;border:0;border-radius:0}
#ethics-teachback .etb-turn{border-top:1px solid var(--et-rule)}
#ethics-teachback .etb-turn:last-of-type{border-bottom:1px solid var(--et-rule)}
#ethics-teachback summary{display:flex;align-items:center;justify-content:space-between;gap:.68rem;list-style:none;min-height:48px;padding:.65rem .3rem .65rem 0;border:0;border-radius:0;cursor:pointer;font-size:1rem;font-weight:640;line-height:1.4;color:var(--et-ink);touch-action:manipulation}
#ethics-teachback summary::-webkit-details-marker{display:none}
#ethics-teachback summary::marker{content:""}
#ethics-teachback summary i{flex:0 0 .48rem;height:.48rem;display:block;margin-inline-end:.2rem;border:solid var(--et-accent);border-width:0 1.75px 1.75px 0;transform:rotate(45deg);align-self:center}
#ethics-teachback details[open]>summary i{transform:rotate(225deg)}
#ethics-teachback summary:focus-visible{outline:2px solid var(--et-accent);outline-offset:2px}
@media (hover:hover){#ethics-teachback summary:hover>span{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.18em}}
#ethics-teachback .etb-result{color:var(--et-text);padding:0 0 .85rem}
#ethics-teachback .etb-reply,#ethics-teachback .etb-final{background:var(--et-field);padding:.58rem .72rem;margin:.1rem 0 .55rem;border-inline-start:2px solid var(--et-rule);border-radius:0}
#ethics-teachback :is(.etb-reply,.etb-final) b{font-size:.82rem;letter-spacing:.01em;margin-inline-end:.28rem}
#ethics-teachback .etb-repair{margin-top:.25rem}
#ethics-teachback .etb-repair>summary{color:var(--et-accent);font-size:.94rem;text-decoration:underline;text-underline-offset:.18em;text-decoration-thickness:1px}
#ethics-teachback .etb-repair>div p+p{margin:.6rem 0 .1rem}
#ethics-teachback .etb-note{margin-top:.65rem;color:var(--et-muted);font-size:.86rem}
@media(max-width:720px){#ethics-teachback{grid-template-columns:minmax(0,1fr);gap:1rem;padding:1.08rem clamp(.75rem,4vw,1.4rem)}#ethics-teachback blockquote{margin-top:.8rem}#ethics-teachback blockquote p{font-size:1.22rem}}
@media(forced-colors:active){#ethics-teachback summary{color:LinkText}#ethics-teachback summary i{border-color:ButtonText}}
@media print{#ethics-teachback{display:block;color:#111;background:#fff;border-color:#777}#ethics-teachback .etb-dialogue{margin-top:1rem}#ethics-teachback details::details-content{display:contents;content-visibility:visible}#ethics-teachback summary i{display:none}}
/* The native hub enforces a low-emphasis color on all main paragraphs. These
   dialogue lines are the lesson itself, not captions. Restore their contrast
   only inside this exercise; keep labels and the takeaway visibly distinct. */
#ethics-teachback p{color:var(--et-text)!important}
#ethics-teachback .etb-overline{color:var(--et-accent)!important}
#ethics-teachback .etb-note,#ethics-teachback cite{color:var(--et-muted)!important}
#ethics-teachback blockquote p{color:var(--et-ink)!important}
@media(forced-colors:active){#ethics-teachback p,#ethics-teachback .etb-overline,#ethics-teachback .etb-note,#ethics-teachback cite,#ethics-teachback blockquote p{color:CanvasText!important}}
