/* Robot Roll Call: a technical index. White page, black type, thin rules; blue only for the selected robot. */
body { margin: 0; background: #fff; color: #000; font: 15px/1.5 Arial, Helvetica, sans-serif; }
a { color: #000; text-underline-offset: 2px; }
a:hover { color: #0033cc; }
a:focus-visible { outline: 2px solid #0033cc; outline-offset: 2px; }
.rc { --cm: 1.75px; max-width: 1120px; margin: 0 auto; padding: 18px 16px 48px; }

.rc-head { border-bottom: 1px solid #000; padding-bottom: 14px; }
.rc-head .home { font: 900 15px/1 "Times New Roman", Times, serif; letter-spacing: .06em; text-decoration: none; }
/* the top row: the Report's name on the left, the way back to the full Report on the right */
.rc-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.rc-top .full { border: 1px solid #000; padding: 6px 10px; white-space: nowrap; color: #000; text-decoration: none;
                font: bold 11px/1.3 Arial, Helvetica, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.rc-top .full:hover { background: #000; color: #fff; }
.rc-head h1 { font: normal clamp(38px, 7vw, 68px)/1 "Times New Roman", Times, serif; margin: 22px 0 8px; letter-spacing: -.01em; }
.rc-head .dek { margin: 0; font-size: 15px; color: #444; }

/* The lineup: names above, every robot standing on the same line, scaled by height */
.lineup { display: flex; align-items: stretch; justify-content: space-between; border-bottom: 1px solid #000; padding-top: 22px;
          overflow-x: auto; }                      /* ten humanoids are wider than a narrow desktop window: scroll the lineup, not the page */
.bot { flex: none; min-width: 78px; display: flex; flex-direction: column; justify-content: space-between; align-items: center;
       text-decoration: none; color: #000; transition: opacity .2s; }
.bot .nm { font: bold 11px/1.25 Arial, Helvetica, sans-serif; letter-spacing: .12em; text-transform: uppercase; text-align: center;
           padding: 0 0 14px; white-space: nowrap; }
.bot .fig { display: block; width: auto; max-width: none; }
.bot .fig.none { width: 34%; background: #e9e9e9; }
.bot:hover .nm { color: #0033cc; }
.lineup.picked .bot { opacity: .25; }
.lineup.picked .bot:hover { opacity: .6; }
.lineup.picked .bot.on { opacity: 1; }
.bot.on .nm { color: #0033cc; }
.scale-note { font-size: 11.5px; color: #666; margin: 8px 0 0; letter-spacing: .02em; }

/* One robot's panel */
.spec { padding-top: 34px; }
.js .spec { display: none; }
.js .spec.on { display: block; }
.spec h2 { font: normal clamp(30px, 5vw, 46px)/1.05 "Times New Roman", Times, serif; margin: 0 0 18px; }
.spec h2 .mk { display: block; font: bold 11px/1.3 Arial, Helvetica, sans-serif; letter-spacing: .14em; text-transform: uppercase;
               color: #666; margin-bottom: 6px; }
.strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0; border-top: 1px solid #000; }
.strip div { padding: 10px 14px 12px 0; border-bottom: 1px solid #ccc; }
.strip dt, .stages dt { font: bold 10.5px/1.3 Arial, Helvetica, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #666; }
.strip dd { margin: 4px 0 0; font-size: 14px; line-height: 1.35; }

.ladder { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 0; margin: 22px 0 6px; padding: 0;
          font: bold 11px/1.3 Arial, Helvetica, sans-serif; letter-spacing: .12em; color: #aaa; }
.ladder li + li::before { content: "\2192"; margin: 0 10px; color: #ccc; font-weight: normal; }
.ladder li.at { color: #0033cc; }
.why { margin: 0; font-size: 14px; color: #333; max-width: 760px; }

.body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 48px; margin-top: 12px; }
.spec h3, .all h3 { font: bold 11px/1.3 Arial, Helvetica, sans-serif; letter-spacing: .14em; text-transform: uppercase;
                    border-top: 1px solid #000; padding-top: 10px; margin: 26px 0 10px; }
.body p { margin: 0 0 10px; }
.dt { font-weight: bold; }
.plain, .cover, .vers { margin: 0; padding: 0; list-style: none; }
.plain li { margin: 0 0 7px; padding-left: 16px; position: relative; }
.plain li::before { content: "\2013"; position: absolute; left: 0; color: #666; }
.cover li { margin: 0 0 11px; }
.cover .src { display: block; font-size: 12px; color: #666; margin-top: 1px; }
.vers li { display: grid; grid-template-columns: 9.5em 3.4em minmax(0, 1fr); gap: 0 10px; padding: 7px 0; border-bottom: 1px solid #ddd;
           font-size: 14px; color: #555; }
.vers li.now { color: #000; }
.vers b { font-weight: bold; }
.vers li:not(.now) b { font-weight: normal; }
.fine { font-size: 12px; color: #666; margin: 18px 0 0; }
.fine + .fine { margin-top: 4px; }
.fine a { color: #666; }

/* Every robot against the five stages */
.all { margin-top: 30px; }
.standing { width: 100%; border-collapse: collapse; font-size: 13.5px; table-layout: fixed; }
.standing thead th:first-child { width: 8.5em; }
.standing thead th { font: bold 10px/1.3 Arial, Helvetica, sans-serif; letter-spacing: .1em; color: #666; text-align: center;
                     padding: 0 6px 8px; vertical-align: bottom; }
.standing tbody th { text-align: left; font-weight: bold; white-space: nowrap; padding: 8px 12px 8px 0; }
.standing tbody th a { text-decoration: none; }
.standing td { text-align: center; color: #ddd; border-left: 1px solid #eee; }
.standing td.at { color: #000; }
.standing tbody tr { border-top: 1px solid #ddd; }
.standing tr.on th a, .standing tr.on td.at { color: #0033cc; }
.stages { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 20px; margin: 22px 0 0; }
.stages dd { margin: 4px 0 0; font-size: 12.5px; line-height: 1.4; color: #444; }

.rc-foot { border-top: 1px solid #000; margin-top: 40px; padding-top: 12px; font-size: 12.5px; color: #555; }
.rc-foot p { margin: 0 0 8px; max-width: 760px; }

@media (max-width: 819px) {
  .rc { --cm: 1.25px; }
  .lineup { overflow-x: auto; scroll-snap-type: x proximity; margin: 0 -16px; padding-left: 8px; padding-right: 8px; }
  .lineup { gap: 14px; }
  .bot { min-width: 66px; scroll-snap-align: center; }
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .body { grid-template-columns: minmax(0, 1fr); }
  .ladder { font-size: 10px; }
  .ladder li + li::before { margin: 0 6px; }
  .standing thead th { font-size: 8.5px; letter-spacing: .04em; padding: 0 2px 6px; }
  .stages { grid-template-columns: minmax(0, 1fr); gap: 10px 0; }
  .vers li { grid-template-columns: 7.5em 3em minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .bot { transition: none; } }

/* Why the page exists, and the way to send a correction */
.rc-head .why-page { margin: 12px 0 0; font-size: 15px; max-width: 760px; }
.rc-head .tell-link { margin: 8px 0 0; font: bold 13px/1.4 Arial, Helvetica, sans-serif; }
.rc-head .tell-link a { color: #0033cc; text-decoration: none; }
.rc-head .tell-link a:hover { text-decoration: underline; }
.strip.nums { grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 0; }
.tell { margin-top: 34px; max-width: 620px; }
.tell h3 { font: bold 11px/1.3 Arial, Helvetica, sans-serif; letter-spacing: .14em; text-transform: uppercase;
           border-top: 1px solid #000; padding-top: 10px; margin: 0 0 10px; }
.tell p { margin: 0 0 14px; }
.tell label { display: block; font: bold 12px/1.3 Arial, Helvetica, sans-serif; letter-spacing: .04em; margin: 0 0 12px; }
.tell .opt { font-weight: normal; color: #666; }
.tell input, .tell textarea { display: block; width: 100%; box-sizing: border-box; margin-top: 4px; padding: 8px 9px;
                              border: 1px solid #000; border-radius: 0; background: #fff; font: 15px Arial, Helvetica, sans-serif; }
.tell input:focus-visible, .tell textarea:focus-visible { outline: 2px solid #0033cc; outline-offset: 0; }
.tell button { background: #000; color: #fff; border: 1px solid #000; padding: 9px 22px; cursor: pointer;
               font: bold 12px Arial, Helvetica, sans-serif; letter-spacing: .12em; }
.tell button:hover { background: #0033cc; border-color: #0033cc; }
.tell .msg { font: bold 13px/1.4 Arial, Helvetica, sans-serif; margin: 10px 0 0; }
.tell .msg.ok { color: #060; }
.tell .msg.bad { color: #c00; }
.tell .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 819px) { .strip.nums { grid-template-columns: minmax(0, 1fr); } }

/* Classes of robot (CLASSES in tools/report_rollcall.py): a jump list in the header, then one section per class with its
   own lineup, drawn to its own scale (report/roll-call-scale.css sets each class's --cm) */
.classes { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
.classes a { border: 1px solid #000; padding: 6px 12px; text-decoration: none; color: #000;
             font: bold 11px/1.3 Arial, Helvetica, sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.classes a span { color: #666; margin-left: 4px; }
.classes a:hover { background: #000; color: #fff; }
.classes a:hover span { color: #ccc; }
.klass { padding-top: 26px; scroll-margin-top: 8px; }
.klass + .klass { border-top: 1px solid #000; margin-top: 36px; }
.klass .kt { font: normal clamp(28px, 4.4vw, 40px)/1.05 "Times New Roman", Times, serif; margin: 0 0 4px; }
.klass .kt .kn { font: bold 11px/1 Arial, Helvetica, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #666;
                 vertical-align: middle; margin-left: 8px; }
.klass .kb { margin: 0; font-size: 14px; color: #444; }
.klass .lineup:not(.k-humanoid) { justify-content: space-around; }
.standing tr.kh th { font: bold 10.5px/1.3 Arial, Helvetica, sans-serif; letter-spacing: .14em; text-transform: uppercase;
                     color: #666; padding: 16px 0 6px; text-align: left; }
.standing tr.kh { border-top: 0; }
/* a small class fits a phone without scrolling, so its places are narrow: let the names wrap and tighten */
@media (max-width: 819px) { .klass .lineup:not(.k-humanoid) .bot .nm { white-space: normal; letter-spacing: .04em; font-size: 10px; } }
