/* CIS Academy — styles for the T1 TOC widgets (site chain, dice game, constraint sort, case). */
.tchain{display:flex;align-items:stretch;gap:8px;flex-wrap:wrap;margin:14px 0 10px}
.tlink{flex:1 1 140px;background:var(--sheet);border:1px solid var(--line);border-radius:14px;padding:14px;display:flex;flex-direction:column;gap:4px;transition:border-color .2s,box-shadow .2s}
.tlink b{font-size:.92rem}
.tlink .tv{font-size:2rem;font-weight:600;letter-spacing:-.03em;line-height:1}
.tlink .tu{font-size:.78rem;color:var(--steel)}
.tlink input{width:100%;accent-color:var(--ink);margin-top:6px}
.tlink.con{border-color:var(--drum-hi);box-shadow:0 0 0 3px rgba(227,127,41,.18)}
.tlink.con .tv{color:#a8561a}
.tarrow{align-self:center;color:var(--steel)}
.tchain-out,.tdice-out{margin:6px 0}
.tdice-ctl{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0}
.tdice{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}
.tst{background:var(--sheet);border:1px solid var(--line);border-radius:12px;padding:12px;display:flex;flex-direction:column;gap:4px;font-size:.86rem}
.tst.drum{border-color:var(--drum-hi)}
.tst .tq{display:block;margin-top:6px;padding-top:calc(var(--q,0) * 6px);background:linear-gradient(var(--drum-soft),var(--drum-soft)) bottom/100% calc(var(--q,0) * 6px) no-repeat;border-radius:6px;font-weight:600}
.tdice-sum{display:flex;gap:8px;flex-wrap:wrap}
.tsort{list-style:decimal;padding-left:22px;display:flex;flex-direction:column;gap:14px}
.tsort .opts{display:flex;gap:8px;flex-wrap:wrap;margin-top:6px}
.tsort .opts button{border:1px solid var(--line);background:var(--sheet);border-radius:999px;padding:6px 14px;cursor:pointer}
.tsort .opts button.right{background:#e3f1e8;border-color:var(--ok)}
.tsort .opts button.wrong{background:#f6e1e1;border-color:var(--open)}
.tsort .why{display:block;margin-top:6px;font-size:.9rem;color:var(--steel)}
.tcase{display:flex;flex-direction:column;gap:12px}
.tcase-story{display:flex;flex-direction:column;gap:8px}
.tcase h4{margin-top:6px}
.tcase-q{padding-left:22px;display:flex;flex-direction:column;gap:10px}
.tcase-q details{margin-top:4px}
.tcase-q summary{cursor:pointer;color:var(--ink);font-weight:500;text-decoration:underline;text-underline-offset:3px}
.tcase-q details p{margin-top:6px;background:var(--paper);border-radius:10px;padding:10px 12px}
@media (max-width:760px){.tdice{grid-template-columns:repeat(2,1fr)}.tarrow{display:none}}
/* Part C: relay race gantt and fleet check */
.trelay{display:flex;flex-direction:column;gap:14px;margin:14px 0 8px}
.tg b{display:block;font-size:.9rem;margin-bottom:6px}
.tg-track{position:relative;height:30px;background:var(--paper);border-radius:8px;overflow:hidden}
.tg-bar{position:absolute;top:5px;bottom:5px;background:#4F86C6;border-radius:4px;border:1px solid #fff}
.tg-bar.drum{background:#E37F29}
.tg-bar.lost{background:repeating-linear-gradient(45deg,#c9cfd4 0 4px,#e8ebee 4px 8px)}
.tg-prom{position:absolute;top:0;bottom:0;width:2px;background:#A23B3B}
.tg-key{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:.85rem;color:var(--steel)}
.tg-key .tg-bar,.tg-key .tg-prom{position:static;display:inline-block;width:18px;height:12px}
.tg-key .tg-prom{width:2px;height:14px}
.trelay-out{margin:6px 0}
.tfleet{display:flex;flex-direction:column;justify-content:center;gap:12px}
.tfleet-bar{height:18px;border-radius:9px;background:var(--paper);overflow:hidden}
.tfleet-bar i{display:block;height:100%;transition:width .3s}
.tfleet-bar i.fz-g{background:#2E7D4F}.tfleet-bar i.fz-y{background:#B7791F}.tfleet-bar i.fz-r{background:#A23B3B}
