:root {
  color-scheme: dark;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #101412;
  color: #ecf3ed;
  font-synthesis: none;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  padding: clamp(12px, 3vw, 38px);
}

main {
  width: min(100%, 1600px);
  margin-inline: auto;
}

a {
  color: #79d8a1;
  text-decoration-color: #79d8a166;
  text-underline-offset: .2em;
}

a:hover { text-decoration-color: currentColor; }

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid #f4ce66;
  outline-offset: 4px;
}

.table-scroll {
  overflow-x: auto;
  border: 1px solid #33463a;
  border-radius: 18px;
  background: #171f1a;
  box-shadow: 0 12px 40px #00000024;
}

.readingpoints {
  width: 100%;
  min-width: 950px;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
  font-size: .94rem;
  line-height: 1.55;
}

.readingpoints th,
.readingpoints td {
  padding: 16px 18px;
  vertical-align: top;
  border-bottom: 1px solid #304035;
}

.readingpoints thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #223629;
  color: #e5f2e9;
  font-size: .76rem;
  font-weight: 750;
  letter-spacing: .055em;
  text-transform: uppercase;
  white-space: nowrap;
}

.readingpoints tbody tr.point-row:nth-of-type(4n + 1),
.readingpoints tbody tr.point-row:nth-of-type(4n + 2) {
  background: #19231c;
}

.readingpoints tbody tr.point-row:hover { background: #25352a; }

.readingpoints tbody tr:last-child > td { border-bottom: 0; }

.reading-point { font-weight: 700; color: #eef3ed; }
.lean-specification { max-width: 42ch; color: #d2dfd5; }
.arxiv-id { white-space: nowrap; font-variant-numeric: tabular-nums; }
.category { color: #f4ce66; white-space: nowrap; }
.paper-title { max-width: 34ch; color: #c2d3c7; }
.twitter-link { white-space: nowrap; }

/* One detail row follows each primary row; JavaScript may toggle `hidden`. */
.detail-row[hidden] { display: none; }
.detail-row > td { padding: 0; background: #101a14; }

.detail-panel {
  padding: clamp(18px, 3vw, 30px);
  border-left: 4px solid #79d8a1;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 18px 28px;
  margin: 0;
}

.detail-grid > div { min-width: 0; }
.detail-grid dt {
  margin: 0 0 5px;
  color: #92a99a;
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.detail-grid dd { margin: 0; overflow-wrap: anywhere; }

.status {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid #5b5532;
  border-radius: 999px;
  background: #3d381c;
  color: #f4ce66;
  font-size: .8rem;
  font-weight: 700;
}

.status[data-status="verified"] {
  border-color: #3b7655;
  background: #1d4530;
  color: #91e6b4;
}

.status[data-status="compiled"],
.status[data-status="implemented"] {
  border-color: #486e92;
  background: #1b3447;
  color: #a7d8ff;
}

.more-button {
  padding: 5px 9px;
  border: 1px solid #496753;
  border-radius: 8px;
  background: transparent;
  color: #b5dec3;
  cursor: pointer;
  font: inherit;
  font-size: .82rem;
}

.more-button:hover,
.more-button[aria-expanded="true"] {
  background: #2b4835;
  color: #eef3ed;
}

.empty-state,
.error-state {
  padding: 26px;
  color: #b5c6b9;
  text-align: center;
}

.error-state { color: #ff9995; }

@media (max-width: 700px) {
  body { padding: 12px; }
  .table-scroll { border-radius: 12px; }
  .readingpoints th,
  .readingpoints td { padding: 13px 14px; }
}

@media (prefers-reduced-motion: no-preference) {
  a, .more-button { transition: background-color .15s, color .15s, text-decoration-color .15s; }
}
