/* Keep the two original compact ranklist panels and striped data rows. */
#overall_ranklist_acc,
#overall_ranklist_act {
  box-sizing: border-box;
  width: 480px;
  max-width: calc(50% - 10px);
}
#overall_ranklist_acc .content,
#overall_ranklist_act .content { overflow: hidden; }
#overall_ranklist_acc h2,
#overall_ranklist_act h2,
#overall_ranklist_acc h4,
#overall_ranklist_act h4 { text-align: center; }
#overall_ranklist_acc h2,
#overall_ranklist_act h2 { margin: 3px 0 0; }
#overall_ranklist_acc h4,
#overall_ranklist_act h4 { margin: 0 0 17px; }
#overall-accranklist-table,
#overall-actranklist-table { width: 100%; table-layout: fixed; }
#overall-accranklist-table thead tr,
#overall-actranklist-table thead tr { border-bottom: 3px solid #000; }
#overall-accranklist-table th,
#overall-accranklist-table td,
#overall-actranklist-table th,
#overall-actranklist-table td { padding: 1px 4px; }
#overall-accranklist-table :is(th, td):first-child,
#overall-actranklist-table :is(th, td):first-child { width: 10%; text-align: center; }
#overall-accranklist-table :is(th, td):last-child,
#overall-actranklist-table :is(th, td):last-child { width: 12%; text-align: center; }
#overall-accranklist-table .sep td,
#overall-actranklist-table .sep td { text-align: center; }

/* The original standing identified each problem by its archived color. */
#contest_ranklist { overflow-x: auto; }
#contest_ranklist .content { min-width: 0; }
#contest_ranklist h1 { margin: 4px 0 22px; text-align: center; }
#contest-ranklist-table { width: 100%; min-width: 100%; }
#contest-ranklist-table thead tr { border-bottom: 3px solid #000; }
#contest-ranklist-table th,
#contest-ranklist-table td { height: 30px; box-sizing: border-box; padding: 2px 5px; text-align: center; }
#contest-ranklist-table :is(th, td):nth-child(2) { text-align: left; }
#contest-ranklist-table th.problem-heading { border-bottom: 3px solid #000; }

@media (max-width: 760px) {
  #overall_ranklist_acc,
  #overall_ranklist_act { width: calc(100% - 10px); max-width: none; float: none; }
}
