/* Same face and palette as the main site: Academic Mono, warm off-white, off-black, blue links. */
@font-face {
  font-family: 'Academic Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/AcademicMono-Medium.woff2') format('woff2');
}
:root {
  --bg: #f8f2ea;
  --text: #1c1c1c;
  --muted: #5f5a54;
  --line: #d3d3d3;
  --link: #0000ff;
  font-family: 'Academic Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}
header,
main {
  max-width: 960px;
  margin: 0 auto;
  padding: 16px;
}
header {
  border-bottom: 1px solid var(--line);
}
a {
  color: var(--link);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
.brand {
  color: var(--text);
}
h1 {
  font-size: 1.25rem;
  font-weight: 500;
  margin: 8px 0;
}
.muted {
  color: var(--muted);
  font-size: 0.875rem;
  margin: 8px 0;
}
.search input {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 8px 10px;
  margin-top: 8px;
}
.search input:focus {
  outline: 2px solid var(--link);
  outline-offset: -1px;
}
table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
th,
td {
  text-align: left;
  vertical-align: top;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}
/* Long headers (Rank-by-AI, AI-Written?-by-AI) wrap at their hyphens. */
th {
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--muted);
  overflow-wrap: normal;
}
.id {
  width: 7.5rem;
  padding-right: 12px;
  color: var(--muted);
}
.id-inline {
  display: none;
}
.rank,
.rank-ai,
.ai {
  padding-left: 12px;
  font-variant-numeric: tabular-nums;
}
.rank {
  width: 5.5rem;
}
.rank-ai {
  width: 6.5rem;
}
.ai {
  width: 8.5rem;
  text-align: right;
}
/* On phones the Paper ID moves under the title and the number columns narrow, so titles keep their width. */
@media (max-width: 600px) {
  .id {
    display: none;
  }
  .id-inline {
    display: block;
    color: var(--muted);
    font-size: 0.75rem;
  }
  th {
    font-size: 0.75rem;
  }
  td.rank,
  td.rank-ai,
  td.ai {
    font-size: 0.875rem;
  }
  .rank,
  .rank-ai {
    width: 4rem;
    padding-left: 8px;
  }
  .ai {
    width: 4.75rem;
    padding-left: 6px;
  }
}
/* Sortable headers: the label is a button; an arrow marks the active sort and its direction. */
.sort {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  text-align: inherit;
  cursor: pointer;
}
.sort:hover,
th[aria-sort='ascending'] .sort,
th[aria-sort='descending'] .sort {
  color: var(--text);
}
.sort:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 1px;
}
.arrow {
  display: inline-block;
  width: 1ch;
}
th[aria-sort='ascending'] .arrow::after {
  content: '↑';
}
th[aria-sort='descending'] .arrow::after {
  content: '↓';
}
/* Column explanations: shown on hover, keyboard focus, or a tap (app.js toggles .open). */
.info {
  position: relative;
  display: inline-block;
}
.info-btn {
  width: 1.2em;
  height: 1.2em;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.75rem;
  line-height: 1;
  vertical-align: 0.15em;
  cursor: help;
}
.info-btn:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 1px;
}
.tip {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  z-index: 2;
  width: min(20rem, 80vw);
  padding: 8px 10px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 0.875rem;
  text-align: left;
  white-space: normal;
  overflow-wrap: normal;
}
/* The icons sit towards the right, so explanations open leftwards; app.js shifts one that would go off-screen. */
.tip {
  right: 0;
}
.info:hover .tip,
.info.open .tip,
.info-btn:focus-visible + .tip {
  display: block;
}
#more {
  height: 1px;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
