:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #eef3f1;
  --ink: #17201c;
  --muted: #61706a;
  --line: #d9e0dc;
  --teal: #126b63;
  --amber: #c27a1a;
  --red: #a84d3d;
  --shadow: 0 18px 50px rgba(16, 28, 24, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 32px;
  background: #ffffff;
  border-bottom: 1px solid rgba(217, 224, 220, 0.9);
  backdrop-filter: blur(16px);
}

.brand,
.nav-links,
.controls {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 760;
}

.brand-mark {
  display: block;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.nav-links {
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.nav-links a:hover {
  color: var(--teal);
}

main {
  padding-top: 64px;
}

.hero {
  display: flex;
  justify-content: center;
  width: 100%;
  overflow: hidden;
  background: #030608;
}

.hero-image {
  display: block;
  width: 100%;
  max-width: 1672px;
  height: auto;
}

.paper-banner {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.paper-banner-inner {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 52px 0 48px;
  text-align: center;
}

.paper-title {
  max-width: 1160px;
  margin: 0 auto;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 40px;
  font-weight: 600;
  line-height: 1.24;
  letter-spacing: 0;
}

.paper-resources {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.paper-resource {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 112px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 720;
}

.paper-resource img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.paper-resource:disabled {
  background: #f8faf8;
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.62;
}

a.paper-resource:hover {
  border-color: var(--teal);
  background: #f4f8f7;
  color: var(--teal);
}

a.paper-resource:focus-visible {
  outline: 3px solid rgba(18, 107, 99, 0.24);
  outline-offset: 2px;
}

.school-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px 24px;
  margin-top: 48px;
}

.school-logos img {
  display: block;
  width: 82px;
  height: 64px;
  object-fit: contain;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--amber);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 700px;
  margin-bottom: 18px;
  font-size: clamp(44px, 8vw, 82px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 34px;
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.section {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 74px 0;
}

.section-heading,
.table-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.stat-grid,
.task-grid {
  display: grid;
  gap: 16px;
}

.stat-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat-card,
.task-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(16, 28, 24, 0.04);
}

.stat-card {
  padding: 22px;
}

.stat-value {
  display: block;
  margin-bottom: 4px;
  color: var(--teal);
  font-size: 34px;
  font-weight: 820;
  line-height: 1;
}

.stat-label {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.task-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.task-card {
  min-height: 154px;
  padding: 20px;
}

.task-meta {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 8px;
  margin-top: 14px;
}

.task-meta .pill {
  flex: 0 0 auto;
  white-space: nowrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: #edf4f2;
  color: var(--teal);
  font-size: 12px;
  font-weight: 750;
}

.pill.simulation {
  background: #fff3df;
  color: #8b5416;
}

.pill.robot {
  background: #e8f2ff;
  color: #285d8f;
}

.pill.umi {
  background: #edf7e9;
  color: #3f6b2f;
}

.pill.ego {
  background: #f4ebff;
  color: #6c3d91;
}

.pill.general {
  background: #eef0f4;
  color: #4d5664;
}

.table-section {
  width: min(1440px, calc(100% - 32px));
}

.table-header {
  align-items: center;
}

.table-header h2 {
  font-size: 26px;
  white-space: nowrap;
}

.controls {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.search,
.select {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

input,
select {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}

input {
  width: min(320px, 72vw);
  padding: 0 12px;
}

select {
  padding: 0 34px 0 10px;
}

.table-wrap {
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  min-width: 1280px;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8faf8;
  color: #3d4b46;
  font-size: 12px;
  font-weight: 820;
  text-transform: uppercase;
}

td {
  font-size: 14px;
}

tbody tr:hover {
  background: #fbfcf8;
}

.group-row {
  background: #f4f8f7;
}

.group-row:hover {
  background: #eef5f2;
}

.group-row td {
  padding: 16px 18px;
  border-top: 2px solid var(--line);
  border-bottom-color: #dce7e3;
}

.group-toggle,
.subcategory-toggle,
.section-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 14px 8px 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  text-align: left;
}

.subcategory-row {
  background: #f8fbf9;
}

.subcategory-row:hover {
  background: #f1f7f4;
}

.subcategory-row td {
  padding: 14px 18px 14px 32px;
  border-bottom-color: #dfe9e5;
}

.subcategory-toggle .dataset-name {
  font-weight: 780;
}

.section-row {
  background: #fbfcfb;
}

.section-row:hover {
  background: #f7faf8;
}

.section-row td {
  padding: 14px 12px;
  border-bottom-color: #e7eeeb;
}

.section-row td:first-child {
  padding-left: 42px;
}

.subgroup-section-row td:first-child {
  padding-left: 62px;
}

.section-row .section-demo-total {
  vertical-align: middle;
  color: var(--ink);
  font-weight: 760;
  white-space: nowrap;
}

.self-counted-marker {
  margin-left: 2px;
  color: var(--teal);
  font-size: 0.75em;
}

.section-row .section-demo-spacer {
  padding: 0;
}

.section-toggle .dataset-name {
  font-weight: 760;
}

.chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 1px solid #c8d8d2;
  border-radius: 5px;
  background: #ffffff;
  color: var(--teal);
  font-size: 13px;
  font-weight: 850;
  line-height: 1;
}

.group-links {
  display: inline-flex;
  gap: 6px;
  margin-top: 8px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 750;
}

.group-links a,
.link-list a {
  color: var(--teal);
  font-weight: 760;
}

.task-row td:first-child {
  padding-left: 42px;
}

.section-task-row td:first-child {
  padding-left: 72px;
}

.subgroup-section-row + .section-task-row td:first-child {
  padding-left: 92px;
}

.task-name {
  display: block;
  min-width: 190px;
  font-weight: 760;
}

.dataset-name {
  display: inline-flex;
  max-width: 420px;
  font-weight: 790;
}

.dataset-sub {
  color: var(--muted);
  font-size: 12px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 160px;
}

.mini-tag {
  display: inline-flex;
  padding: 3px 7px;
  border-radius: 5px;
  background: #f0f3f1;
  color: #4b5b55;
  font-size: 12px;
  font-weight: 650;
}

.link-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 118px;
}

.citation-details {
  min-width: 180px;
}

.citation-details summary {
  color: var(--teal);
  font-size: 13px;
  font-weight: 760;
  cursor: pointer;
}

.citation-details pre {
  overflow: auto;
  max-width: 420px;
  max-height: 220px;
  margin: 10px 0 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8faf8;
  color: #24332e;
  font-size: 12px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.muted {
  color: var(--muted);
}

.reference-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: stretch;
}

.reference-panel {
  min-height: 240px;
  padding: 24px;
  background: #14201c;
  color: #dfe9e4;
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(20, 32, 28, 0.16);
}

.reference-panel h2 {
  margin-bottom: 16px;
  font-size: 26px;
  color: #ffffff;
}

.reference-panel p {
  margin: 0;
  color: rgba(223, 233, 228, 0.78);
  font-size: 15px;
}

.bib-citation {
  overflow: auto;
  max-height: 260px;
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(223, 233, 228, 0.18);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(223, 233, 228, 0.9);
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.reference-panel a {
  color: #8fd7ce;
  font-weight: 720;
}

.reference-panel a:hover {
  text-decoration: underline;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 900px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    min-height: 92px;
    padding: 12px 20px;
  }

  .nav-links {
    width: 100%;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  main {
    padding-top: 92px;
  }

  .section,
  .table-section {
    width: min(100% - 28px, 1180px);
    padding: 54px 0;
  }

  .section-heading,
  .table-header,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .reference-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .stat-grid {
    grid-template-columns: 1fr;
  }

  .task-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .controls {
    justify-content: flex-start;
  }

  h1 {
    font-size: 46px;
  }
}

@media (max-width: 560px) {
  .task-grid {
    grid-template-columns: 1fr;
  }

  .paper-banner-inner {
    width: min(100% - 28px, 1180px);
    padding: 40px 0 38px;
  }

  .paper-title {
    font-size: 28px;
  }

  .school-logos {
    gap: 14px 18px;
    margin-top: 40px;
  }

  .school-logos img {
    width: 68px;
    height: 52px;
  }

  .table-header h2 {
    font-size: 18px;
  }
}
