/* Walking and fighting styles (CIT Tools). Builds on /CITtools/assets/ids/ids.css. */
.st-grid{grid-template-columns:repeat(auto-fill,minmax(228px,1fr));gap:8px}
.st-card{display:flex;flex-direction:column;gap:3px;min-width:0;padding:8px;border:1px solid var(--line);border-radius:10px;background:var(--panel);scroll-margin-top:16px}
.st-card:target{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent-dark)}
.st-pic{display:block;margin-bottom:4px}
.st-pic img{display:block;width:100%;height:auto;aspect-ratio:270/375;object-fit:cover;border-radius:8px;background:#101315}
.st-none{display:flex;align-items:center;justify-content:center;aspect-ratio:270/375;border-radius:8px;background:#101315;color:var(--dim);font-size:13px;line-height:1.45;text-align:center;padding:14px;margin-bottom:4px}
.st-grid b{font-size:16px;line-height:1.3;color:var(--text);overflow-wrap:anywhere}
.st-grid .st-id{font-size:13px;color:var(--accent);overflow-wrap:anywhere}
.st-grid .st-meta{font-size:12px;line-height:1.45;color:var(--muted)}
.st-grid .chip{display:inline-block;font-size:11px;padding:1px 8px;margin:2px 4px 0 0}
.st-card .code-row{margin-top:auto;padding:5px 5px 5px 9px;gap:6px;border:1px solid var(--line);border-radius:8px;background:#101315}
.st-card .st-meta + .code-row,.st-card .st-id + .code-row{margin-top:6px}
.st-card .code-row{flex-wrap:wrap}
.st-card .code-row code{flex:1 1 100%;font-size:12px;white-space:normal;word-break:normal;overflow-wrap:normal}
.st-card .copy{margin-left:auto}
.st-card .copy{padding:4px 9px}
/* the switch over the walking cards: which move the pictures show */
.st-phase{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:12px 0 4px}
.st-phase span{font-size:13px;color:var(--muted);margin-right:2px}
.st-phase button{padding:7px 13px;border:1px solid var(--line);border-radius:999px;background:var(--panel);color:var(--text);font:inherit;font-size:14px;cursor:pointer}
.st-phase button[aria-pressed="true"]{background:var(--accent);border-color:var(--accent);color:#0d0f10;font-weight:700}
.st-phase button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.searching .st-phase-note{display:none}
.st-note{font-size:13px}
/* a picture that plays on hover or tap: a small play mark in its corner until it plays */
.st-play{position:relative}
.st-play::after{content:"\25B6";position:absolute;left:8px;top:8px;width:26px;height:26px;border-radius:50%;background:rgba(0,0,0,.62);color:#fff;font-size:11px;line-height:26px;text-align:center;pointer-events:none}
.st-play.playing::after{opacity:0}
.st-cit-facts{margin-top:22px;padding:14px 16px;border:1px solid #1f4a41;border-radius:var(--radius);background:linear-gradient(180deg,#12201d,var(--panel) 70%)}
.st-cit-facts ul{margin:6px 0 0;padding-left:18px;color:var(--text);font-size:14px}
.st-cit-facts li+li{margin-top:4px}
.st-speed{width:100%;border-collapse:collapse;margin-top:10px;font-size:14px}
.st-speed th,.st-speed td{padding:6px 10px;border-bottom:1px solid var(--line);text-align:left}
.st-speed th{font-size:12px;letter-spacing:.5px;text-transform:uppercase;color:var(--dim);font-weight:600}
.st-speed td.n,.st-speed th.n{text-align:right;font-variant-numeric:tabular-nums}
.st-speed tbody tr:hover{background:var(--raised)}
.st-table{overflow-x:auto;border:1px solid var(--line);border-radius:var(--radius);background:var(--panel)}
.st-table .st-speed{margin-top:0}
.code + p{margin-top:10px}
@media (max-width:620px){
  .st-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
  .st-card{padding:6px}
  .st-grid b{font-size:15px}
  .st-speed th,.st-speed td{padding:6px 7px}
}
/* fighting styles: one wide card per style, its moves side by side (pictures from the Animation IDs tool) */
.st-fgrid{grid-template-columns:1fr;gap:10px}
.st-fight{padding:10px 12px}
.st-fhead{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px;margin-bottom:6px}
.st-fhead b{font-size:17px}
.st-fhead .st-meta{flex-basis:100%}
.st-moves{display:grid;grid-template-columns:repeat(auto-fill,minmax(118px,1fr));gap:8px;margin-bottom:8px}
.st-move{margin:0;min-width:0}
.st-mpic{display:block}
.st-mpic img{display:block;width:100%;height:auto;aspect-ratio:240/270;object-fit:cover;border-radius:8px;background:#101315}
.st-move figcaption{display:flex;flex-direction:column;gap:1px;margin-top:4px;font-size:12px;line-height:1.35}
.st-move figcaption b{font-size:13px;color:var(--text)}
.st-move figcaption span{color:var(--accent)}
.st-grid a,.st-fgrid a{display:inline;min-height:0;padding:0;border:0;border-radius:0;background:none}
.st-move figcaption a{color:var(--muted);overflow-wrap:anywhere}
.st-move figcaption a:hover{color:var(--accent)}
.st-fight .code-row{margin-top:0;max-width:420px;flex-wrap:nowrap}
.st-fight .code-row code{flex:1 1 auto;white-space:nowrap}
.st-fight .copy{margin-left:0}
@media (max-width:620px){
  .st-moves{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
  .st-play::after{left:5px;top:5px;width:22px;height:22px;line-height:22px}
}
