/* Competitor rotator for the comparison tables (see compare-rotator.js).
   Everything here applies only once JS has added [data-rotating] to a table, so with JS off
   the tables keep showing every column exactly as before. */

.cmp-rot{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:20px 0 0;font-family:"IBM Plex Mono",monospace;font-size:12px;}
.cmp-rot__vs{color:var(--ink-3);margin-right:2px;white-space:nowrap;}
.cmp-rot__chips{display:flex;flex-wrap:wrap;gap:6px;}
.cmp-rot__chip,.cmp-rot__toggle{font:inherit;font-size:12px;line-height:1;color:var(--ink-2);background:var(--paper);border:1px solid var(--line);border-radius:999px;padding:8px 12px;cursor:pointer;display:inline-flex;align-items:center;gap:7px;}
.cmp-rot__chip:hover,.cmp-rot__toggle:hover{border-color:var(--ink-3);color:var(--ink);}
.cmp-rot__chip:focus-visible,.cmp-rot__toggle:focus-visible{outline:2px solid var(--accent);outline-offset:2px;}
.cmp-rot__chip .dot{width:9px;height:9px;border-radius:50%;flex-shrink:0;}
.cmp-rot__chip[aria-pressed="true"]{color:var(--ink);background:var(--bg-2);border-color:var(--chip-color,var(--ink));box-shadow:inset 0 0 0 1px var(--chip-color,var(--ink));}
.cmp-rot__toggle{margin-left:auto;border-radius:6px;}
.cmp-rot__bar{flex-basis:100%;height:2px;background:var(--line);border-radius:2px;overflow:hidden;}
.cmp-rot__fill{display:block;height:100%;width:0;background:var(--bar-color,var(--accent));}
.cmp-rot[data-state="paused"] .cmp-rot__fill{opacity:.35;}
.cmp-rot__status{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;}

/* Only the chosen competitor (plus Aielia, the reference) is in the table at a time. */
.cmp-table[data-rotating]{table-layout:fixed;}
.cmp-table[data-rotating] th,.cmp-table[data-rotating] td{min-width:0;}
.cmp-table[data-rotating] td{overflow-wrap:anywhere;}
.cmp-table[data-rotating] th.col-aielia .agent-label{flex-wrap:wrap;column-gap:.4em;}
.cmp-table[data-rotating] th:first-child,.cmp-table[data-rotating] td:first-child{width:170px;}
.cmp-table[data-rotating] [data-agent]:not([hidden]){animation:cmpRotFade .35s ease;}
@keyframes cmpRotFade{from{opacity:0}to{opacity:1}}

@media (max-width:640px){
  .cmp-rot__toggle{margin-left:0;}
  .cmp-table[data-rotating]{table-layout:auto;}
  .cmp-table[data-rotating] th,.cmp-table[data-rotating] td{min-width:112px;padding:12px 8px;}
  .cmp-table[data-rotating] thead th{font-size:10px;letter-spacing:.02em;}
  .cmp-table[data-rotating] th:first-child,.cmp-table[data-rotating] td:first-child{width:84px;min-width:84px;white-space:normal;font-size:11px;}
}
@media (prefers-reduced-motion:reduce){
  .cmp-table[data-rotating] [data-agent]:not([hidden]){animation:none;}
}
