/* factor, GCF and LCM calculator */
.fc-wrap{border:2px solid var(--ink);border-radius:14px;padding:18px 20px;background:#fff;box-shadow:6px 6px 0 var(--pencil);margin:16px 0 26px}
.fc-wrap h2{margin:0 0 8px;font-size:1.3rem}
.fc-in label{display:block;font-weight:700;margin-bottom:6px}
.fc-row{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.fc-box{font:inherit;font-size:1.3rem;font-weight:700;padding:8px 12px;border:1.5px solid var(--line);border-radius:8px;min-height:48px;box-sizing:border-box;flex:1 1 200px;max-width:320px}
.fc-go{min-height:48px}
.fc-help{font-size:.9rem;color:var(--muted);margin:6px 0}
.fc-ex{display:flex;flex-wrap:wrap;gap:8px;align-items:center;font-size:.95rem;margin:4px 0 8px}
.fc-ex button{font:inherit;font-weight:600;border:1.5px solid var(--line);background:#fff;border-radius:999px;padding:6px 14px;min-height:48px;min-width:48px;cursor:pointer}
.fc-ex button:hover,.fc-ex button:focus-visible{border-color:var(--ink)}
.fc-out{margin-top:10px;overflow-wrap:anywhere}
.fc-big{font-size:1.5rem;font-weight:800;margin:6px 0 10px}
.fc-step{border-top:1.5px dashed var(--line);padding-top:8px;margin-top:10px}
.fc-step h4{margin:0 0 4px;font-size:1.05rem}
.fc-step p{margin:4px 0}
.fc-best{background:#fff3c4;padding:1px 6px;border-radius:6px}
.fc-common{color:var(--marker-dark)}
.fc-note{background:#f4f7ff;border-radius:8px;padding:8px 12px;margin:10px 0}
.fc-err{color:#b42318;font-weight:600}
.fc-trees{display:flex;flex-wrap:wrap;gap:12px}
.fc-tree{margin:6px 0;text-align:center;max-width:100%}
.fc-tree svg{max-width:100%;height:auto}
.fc-tree figcaption{font-size:.9rem;color:var(--muted)}
.fc-ladder{border-collapse:collapse;margin:6px 0;font-size:1.1rem}
.fc-ladder th{padding:4px 10px;border-right:2px solid var(--ink);text-align:right;color:#c2410c}
.fc-ladder td{padding:4px 14px;border-bottom:1.5px solid var(--line)}
.fc-ladder tr:last-child td{border-bottom:0}
