/* Nov 10, 2026: Fractions to decimals practice (#/fractions, js/fractions.js). Uses the site's color tokens from styles.css. */
.fd-lede{ margin-top:-.2em; color:var(--muted); }
.fd-explain ul{ padding-left:1.2em; }
.fd-explain li{ margin:.25em 0; }
.fd-of{ margin:10px 0 0; }
.fd-of:focus{ outline:none; } .fd-of:focus-visible{ outline:3px solid var(--focus); outline-offset:2px; }
.fd-frac{ white-space:nowrap; font-variant-numeric:tabular-nums; }
.fd-yn{ display:flex; flex-wrap:wrap; gap:8px; margin:.2em 0 .4em; }
.fd-yn button{ margin:0; min-height:48px; flex:1 1 9em; max-width:16em; }
.fd-yn button[aria-pressed="true"]{ background:var(--soft); font-weight:700; border-width:3px; }
.fd-yn button:disabled{ opacity:1; cursor:default; }
.fd-step2{ border-top:2px dashed var(--line); margin-top:14px; padding-top:6px; }
.fd-q .explain.fd-good{ background:var(--goodbg); border-color:var(--good); }
.fd-q .explain.fd-bad{ background:var(--badbg); border-color:var(--bad); }
.fd-q .explain p{ margin:.2em 0; overflow-wrap:anywhere; }
.fd-actions{ display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin:12px 0 0; }
.fd-actions button, .fd-actions .btn{ margin:0; }
#fdFb1:empty, #fdFb2:empty, #fdNextWrap:empty{ display:none; }
.fd-rules-again{ margin:14px 0 0; } .fd-rules-again summary{ cursor:pointer; color:var(--accent); font-weight:600; min-height:44px; display:flex; align-items:center; }
.fd-rules-again .card{ margin-top:6px; }
.fd-foot{ margin-top:16px; }
#main .fd-q, #main .fd-explain, #main .fd-start, #main .fd-end{ max-width:100%; overflow-wrap:anywhere; }
@media (max-width:480px){ .fd-yn button{ flex:1 1 100%; max-width:none; } .fd-actions .btn, .fd-actions button{ flex:1 1 100%; text-align:center; } }
.fd-stem{ margin:.5em 0 .6em; }
.fd-stem p{ margin:0; font-size:1.08em; line-height:1.55; }
.fd-stem > .ra-listen{ margin-bottom:6px; }
